Repository navigation
REF-002: make storage v3 the only supported layout - #314
Merged
Merged
Conversation
…im REF-002. BUG-001 and CHORE-004 are Complete on main, CHORE-006 is In Progress (packs regenerated; quick spec outstanding), and REF-002 T01 (archive deletes, no spdd/*/archive/) landed ahead of its canvas, but MILESTONE-3.md, the requirement files, ROADMAP, and CHANGELOG still said To Do. Sync them, release the stale SPIKE-005 claim, and claim REF-002 on this branch. Co-authored-by: John Menke <jmjava@gmail.com>
Scope lock: delete storage migrate / agent-context upgrade, the registry TSV fallback, legacy detect/adf/quiet paths, the Project.home root fallback, and the shell consolidation (merge/prune/legacy-layout-archive) in favor of a refusal that points to a fresh init. Defers template grounding text to DOC-005 and the sdlc.sh lookup branch to REF-003; keeps installer/rollback.py (v3 upgrade backups). Measured: strict home fails 72 unit tests in 22 files, so that is its own operation (T06) with an explicit-home fixture. Operations T02-T07 ordered shell-first so no commit calls a deleted subcommand. Co-authored-by: John Menke <jmjava@gmail.com>
upgrade-project.sh loses Phase 1 (legacy memory -> storage migrate), Phase 2 (merge root trees into sdlc-spdd/, prune shells, archive leftovers under .sdlc/legacy-layout-archive/), the --consolidate no-op, and the Consolidated summary. framework-install.sh loses framework_merge_dir_into, framework_consolidate_path, framework_prune_legacy_layout_shells, framework_archive_legacy_path, framework_archive_remaining_legacy_layout. skills.sh loses migrate_playbooks_extensions_to_skills and its meta helpers; init/upgrade no longer call it. paths.sh harness/skills resolvers no longer probe agent-context/. start-agent-session, capture-session-memory, and resolve-context-backend read <home>/scripts and <home>/harness only; resolve-context-backend now resolves the v3 home instead of hard-coding root-relative agent-context/ and .sdlc/ paths. No detection or refusal logic replaces this: storage v3 is the only layout and older trees are unsupported (owner, 2026-09-14; breaking change accepted). Tests: test-upgrade-consolidate.sh, test-framework-install-consolidate.sh and their workflow are deleted; the two playbook-migration cases leave test-resolve-agent-context.sh; test-scripts-lib.sh asserts the helpers are gone; test-sdlc-workflow.sh seeds the bash twin at <home>/scripts/ instead of agent-context/. Co-authored-by: John Menke <jmjava@gmail.com>
…parsers. Removes storage_migrate.py (StorageMigration), agent_context_upgrade.py (AgentContextUpgrade), the 'storage status|migrate' and 'agent-context detect|upgrade|quiet-status' subparsers with cmd_storage/cmd_agent_context, and the legacy markdown parsers block in context_model.py that only served the migration. quiet-status survives as a top-level verb (cmd_quiet_status); quiet.py resolves the marker at <home>/harness/quiet-mode.md via Project.harness_dir instead of <root>/agent-context/harness/. Tests: test_storage_migrate.py deleted; the legacy-seeding tests in test_remaining_cleanup_slices.py and test_hard_review_gaps.py keep only their v3 assertions, plus a case asserting the removed verbs exit 2. Docs: engine-v2, framework-upgrade, storage-v3, installing, maintaining, agent-session-scripts, quiet-mode (and shipped copies), README, and the C4 container/component diagrams no longer describe storage migrate. Co-authored-by: John Menke <jmjava@gmail.com>
TeamRegistry drops legacy_tsv_path and the read-only agent-context/ work-registry.tsv parse in _read_events; a missing registry.jsonl means no events. The bash twin (templates/agent-context/sdlc-team-registry.sh) drops SDLC_TEAM_REGISTRY_LEGACY, the TSV branches in _team_registry_read_events and _team_registry_rows, and the agent-context/ candidate in _team_workflow_script; its hook hint points at sdlc-spdd/scripts/hooks/. Adds test_registry_ignores_pre_v3_tsv. Component diagram and TESTING.md describe registry.jsonl as the only store; engine-v2 module tree loses storage_migrate.py. Co-authored-by: John Menke <jmjava@gmail.com>
installer/detect.py drops LEGACY_MARKERS (agent-context/sdlc-workflow.sh, agent-context/work-registry.tsv) and the two root-layout entries in MARKERS (spdd/memory/lessons.jsonl, scripts/sdlc-spdd/sdlc.sh); a pre-v3 root now detects as 'fresh'/'install'. adf_work._next_number scans project.spdd_dir and project.requirements_dir instead of root/agent-context/features and root-relative paths. db/db_query/db_schema docstrings stop calling ledger records 'agent-context' rows. Tests: test_adf_work and test_db no longer seed agent-context/; adds test_detect_target_recognises_only_v3_markers. Co-authored-by: John Menke <jmjava@gmail.com>
Co-authored-by: John Menke <jmjava@gmail.com>
Co-authored-by: John Menke <jmjava@gmail.com>
Co-authored-by: John Menke <jmjava@gmail.com>
Co-authored-by: John Menke <jmjava@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SDLC_HOMEor<root>/sdlc-spdd).REASONS Canvas
REF-002-purge-pre-v3-compatsdlc-spdd/spdd/canvas/REF-002-purge-pre-v3-compat.mdChecklist
validate-command-adapters,test-adapter-install,validate-canvas,validate-diagrams)Manual Smoke (Required for high-risk changes)
plan -> architect -> code -> review)verify-agent-command-effects.shpassed forplan,architect,code,review, andcaptureTest Plan
All 26 PR checks pass on
ed93d9f, including Playwright, live Guide + Neo4j, live consumers, GitHub issue sync, unit, integration, shellcheck, adapters, and diagrams.Passing locally on the latest revision:
python -m pytest engine/tests_unit -q— 284 passedpython -m pytest engine/tests_integration -q— 128 passedpython -m pytest tests/research -q— 87 passednpm ci,npm run build, test module) — 29 passed, 1 skipped