Decisions

  • Pending: Vault maintenance frequency (daily / weekly)?
  • Pending: Hook approach — validate-feature-format as PreToolUse or separate script?

User Tasks


Summary

Opus regularly cleans, organizes, and maintains both the vault and the codebase.

Problem / Motivation

Over time the vault accumulates stale notes, misplaced files, and inconsistent formatting. The codebase grows without consistent quality checks. Without scheduled maintenance, entropy wins.

Proposed Solution

Scheduled maintenance routines that run on a regular basis (daily/weekly) to audit and improve the system. Vault maintenance can start before VPS (run locally). Code maintenance depends on having actual code and tests.


Open Questions

No open questions.


Phase Overview

PhaseDescriptionStatus
Phase 1Vault maintenance
Phase 2Codebase maintenance
Phase 3Scheduled execution

Phase 1: Vault Maintenance —

Goal: Ensure vault files follow templates, are in correct folders, and have consistent formatting.

File / FeatureDetailsOwnerStatus
Template compliance checkAll feature requests follow the templateopus
File placement auditFlag files in wrong foldersopus
Naming/frontmatter checkReport inconsistenciesopus
Archive completed featuresMove features older than X days to done/opus
Vault health reportGenerate summary of vault stateopus
validate-feature-format hookPreToolUse: validates naming, frontmatter on saveopus
auto-format hookPostToolUse: auto-fix formatting issuesopus

Phase 2: Codebase Maintenance —

Goal: Automated code quality checks and test coverage.

File / FeatureDetailsOwnerStatus
Lint all codePython, shell scripts, configsopus
Full test suiteRun tests and report failuresmv
Dead code checkUnused files, stale importsopus
Test coverageVerify all features have testsmv
Coverage reportTest coverage percentagemv

Phase 3: Scheduled Execution —

Goal: Automate maintenance on a regular schedule with results visible in briefings.

File / FeatureDetailsOwnerStatus
Weekly vault auditAutomated, report in daily briefingopus
Weekly code quality checkAutomated lint + test runmv
Monthly deep cleanupLarger restructuring proposalsopus
Maintenance loggingAll maintenance logged in vault/30_daily/changes/opus

Prerequisites / Gap Analysis

Requirements

RequirementDescription
REQ-1Vault template finalized (for compliance checks)
REQ-2Python codebase exists (for Phase 2)

Current State

ComponentStatusDetails
Feature request templatedone_templates/feature-request.md exists
Hook infrastructuredone.claude/hooks/ exists
Python codebaseNot yet started

Gap (What’s missing?)

GapEffortBlocker?
Validation hookMedNo
Auto-format hookMedNo
Python code + testsHighYes (for Phase 2)

Test

Manual tests

TestExpectedActualLast
Weekly vault health report generatedReport file createdpending-
Codebase has test coverageCoverage report generatedpending-

AI-verified tests

ScenarioExpected behaviorVerification method

E2E tests

ScenarioAssertion

Integration tests

ComponentCoverage

Unit tests

ComponentTestsCoverage

History

DateEventDetails
2026-02-26CreatedFrom brain dump
2026-02-26ExpandedAdded codebase maintenance, testing, scheduled execution
2026-02-27RenumberedFrom FR-043 to FR-032
2026-02-28ReformattedAligned to feature-request template

References

  • FR-048 (System Self-Review) — config evolution, this is vault/code hygiene
  • FR-037 (Daily Briefings) — maintenance results feed into briefing
  • FR-044 (Task Scheduler) — provides scheduled execution runtime