⚠️ SUPERSEDED (2026-06-02) — historical record only.This plan predates the monorepo consolidation and the verifiable registry. Its premises no longer match reality: it proposes moving content out to separate repos (
k9-svc-repo,rsr-engine-repo,a2ml-repo), but those satellites were absorbed into this monorepo on 2026-02-08, and several "redundancies" it lists (e.g. duplicate K9 templates / RSR workflows) have since been resolved or re-scoped.What replaced it:
- Discoverability is now solved by the generated index
.machine_readable/REGISTRY.a2ml(prose:REGISTRY.adoc) — every spec, its home, and a content-addressedsource_hash.- "Where do I go for X" is answered by the routing table at the top of
README.adocand by0-AI-MANIFEST.a2ml.- Drift (the thing this plan tried to prevent by hand) is now detected automatically:
registry-verify.yml(CI) + Hypatia rule HYP-S006.Any still-relevant idea below should be re-filed as a registry entry or an issue. The text is retained unedited for provenance.
Issue: K9 templates appear in multiple locations:
.machine_readable/contractiles/k9/template-*.k9.ncl(3 copies)0-ai-gatekeeper-protocol/contractiles/k9/template-*.k9.ncl(3 copies per subdir)0-ai-gatekeeper-protocol/*/contractiles/k9/template-*.k9.ncl(multiple copies)
Solution: Consolidate into single source in k9-svc monorepo
Issue: rsr-antipattern.yml appears in:
.github/workflows/rsr-antipattern.yml0-ai-gatekeeper-protocol/.github/workflows/rsr-antipattern.yml0-ai-gatekeeper-protocol/mcp-repo-guardian/.github/workflows/rsr-antipattern.yml
Solution: Move to RSR engine repo, reference via GitHub workflow reuse
Issue: A2ML templates exist in both:
a2ml-templates/(6 files)rhodium-standard-repositories/templates/(20+ files with some overlap)
Solution: Separate concerns - A2ML templates in a2ml-repo, RSR compliance templates in rsr-engine-repo
Current: Scattered across .machine_readable/contractiles/ and protocol dirs
Better: Centralize in k9-svc-repo with clear categorization:
k9-svc-repo/
templates/
contractiles/
dust/
intend/
lust/
must/
trust/
k9/
kennel/
yard/
hunt/
Current: Buried in rhodium-standard-repositories/badges/
Better: Promote to top-level in rsr-engine-repo:
rsr-engine-repo/
badges/
rsr-bronze.svg
rsr-silver.svg
rsr-gold.svg
rsr-rhodium.svg
README.md # Badge usage guidelines
Current: Mixed in .machine_readable/6a2/ with other files
Better: Organize by standard:
standards/
.machine_readable/
crg/
COMPONENT-READINESS-GRADES.a2ml
trg/
TOOLCHAIN-READINESS-GRADES.a2ml
rsr/
RSR-SPEC.a2ml
Gap: No formal specification for how CRG/TRG/RSR interact
Add: standards/interop/ directory with:
- CRG-TRG mapping specification
- RSR compliance matrix
- Version compatibility rules
Gap: K9 automation hooks lack formal interface definition
Add: standards/automation/ with:
- K9 contract interface spec
- CI/CD integration patterns
- Automation safety levels
Gap: No formal template versioning policy
Add: standards/templates/ with:
- Template versioning spec
- Compatibility requirements
- Deprecation policy
Gap: RSR certifier lacks formal test specification
Add: rsr-engine-repo/spec/ with:
- Test coverage requirements
- Certification validation rules
- Audit trail format
- Consolidate K9 templates into k9-svc-repo
- Remove duplicate RSR workflow files
- Separate A2ML vs RSR templates
- Clean up scattered contractile templates
- Move RSR badges to rsr-engine-repo/badges/
- Reorganize machine-readable specs by standard
- Centralize contractile templates in k9-svc-repo
- Promote RSR workflows to reusable GitHub actions
- Create interop/ directory with CRG-TRG-RSR mappings
- Add automation/ directory with K9 interface specs
- Develop templates/ directory with versioning standards
- Formalize compliance testing in rsr-engine-repo
- Update all README files with new structure
- Add migration guide for existing projects
- Create template usage documentation
- Document version compatibility matrix
- Template Accessibility: All templates reachable via registry
- No Broken References:
grep -rfor old paths - CI/CD Functionality: All workflows pass
- RSR Compliance: Run certifier on new structure
- Documentation Completeness: All changes documented
# Check for remaining duplicates
find . -name "template-*.k9.ncl" | wc -l # Should be 3 total
# Verify RSR workflow consolidation
find . -name "*rsr-antipattern*" | wc -l # Should be 1
# Validate template registry
rsr-certifier validate-registry template-registry.json- Broken Template References: Use symlinks during transition
- CI/CD Failures: Test workflows in staging first
- Documentation Gaps: Create redirect pages
- Template Version Mismatches: Implement gradual deprecation
# Quick rollback script
git checkout reorganization-start-point
git subtree add --prefix=standards/a2ml a2ml-repo main
# Repeat for other repos- Reduced Maintenance: 40% fewer duplicate files
- Clearer Structure: Logical grouping by function
- Better Discoverability: Centralized template locations
- Improved Compliance: Complete standards coverage
- Easier Onboarding: Consistent documentation structure