Skip to content

[carve-out 9/9] After-eviction hygiene: implementation-inside-canon detector + session-detritus auto-archiver #498

Description

@hyperpolymath

Child of #479. The cleanup only sticks if recurrence is detected automatically — this is the "wire first" half of the campaign.

  1. Implementation-inside-canon detector (hypatia rule, review-tier, flag-only): fires when a REGISTRY.a2ml LOCAL spec home contains build/product manifests — Cargo.toml, deno.json, package.json, Containerfile, compose.yaml, guix.scm (non-stub), CNAME, ads.txt. Today it would trip on exactly the directories being evicted (a2ml, k9-svc, avow, axel, consent-aware-http, gatekeeper); after the evictions it becomes the guard that keeps the canon clean. Define it as a standards/hypatia-rules/*.a2ml rule file — the RuleLoader on hypatia main (hypatia#581) already parses those, so definition-in-standards is the implementation path, per the single-source-of-truth contract.
  2. Session-detritus auto-archiver (gitbot-fleet fix script, idempotent): matches *-COMPLETE*.md, *SESSION_SUMMARY*, DEPLOYMENT-SUCCESS.md, SONNET-TASKS.md etc. in spec directories → moves to docs/archive/ with an idempotent PR, mirroring gitbot-fleet's archive convention. Dispatch tier: review initially; promote to auto_execute only after the usual confidence run.
  3. Bonus guards from the audit, same PR family: dangling-reference lint for root docs; submodule-truth guard (child 4/9); stale-Last updated footer lint via the HYP-S006 route.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions