Skip to content

[P2] Memory tier validation script (ADR-017 enforcement) #943

@rjmurillo-bot

Description

@rjmurillo-bot

Context

PR #908 changed 53 memory files, many violating ADR-017 tiered index hierarchy. Need automated enforcement.

Problem Statement

Memory changes violate ADR-017 without detection:

  • Orphaned memories outside memory-index.md
  • Incorrect tier placement
  • Broken cross-references
  • No validation in pre-commit or CI

Proposed Solution

Create .agents/scripts/Validate-MemoryTier.ps1:

Checks:

  1. All memories referenced in memory-index.md (no orphans)
  2. Domain indexes follow {domain}-index.md naming
  3. Cross-references valid (files exist)
  4. Tier hierarchy respected (index → domain → atomic)

Integration:

  • Run in pre-commit hook
  • Run in CI (fail on violation)
  • Provide clear remediation guidance

Acceptance Criteria

  • Script created with all 4 checks
  • Exit code 0 = pass, non-zero = fail
  • Clear error messages with file paths
  • Pre-commit hook integration
  • CI workflow integration
  • Documentation updated

Effort Estimate

8 hours

Priority

P2 - Normal (This Quarter)

Related

References

.agents/retrospective/2026-01-15-pr-908-comprehensive-retrospective.md (lines 1314-1320)

Metadata

Metadata

Assignees

Labels

agent-devopsCI/CD pipeline agentagent-memoryContext persistence agentagent-qaTesting and verification agentagent-retrospectiveLearning extraction agentarea-infrastructureBuild, CI/CD, configurationarea-workflowsGitHub Actions workflowsautomationAutomated workflows and processesbugSomething isn't workingdocumentationImprovements or additions to documentationenhancementNew feature or requestpriority:P2Normal: Standard enhancement or bug fix, moderate impact

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions