@opengsd/gsd-path 1.5.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +1 -1
- package/CHANGELOG.md +169 -0
- package/DOCS.md +4 -3
- package/FULL.md +68 -7
- package/HOOKS.md +81 -4
- package/MIGRATE.md +12 -0
- package/QUICK.md +4 -2
- package/README.md +69 -16
- package/RUNTIME.md +23 -5
- package/UPDATE.md +35 -0
- package/WORKFLOW.md +66 -7
- package/package.json +1 -1
- package/scripts/_common.py +150 -1
- package/scripts/build_recovery.py +62 -30
- package/scripts/build_state.py +195 -5
- package/scripts/check_handoffs.py +92 -30
- package/scripts/check_task_briefs.py +27 -19
- package/scripts/detect_project.py +17 -2
- package/scripts/discussion_records.py +9 -1
- package/scripts/discussion_validate.py +7 -6
- package/scripts/dispatch_driver.py +174 -36
- package/scripts/git_guard.py +42 -7
- package/scripts/guard_hook.py +1216 -47
- package/scripts/install.mjs +76 -3
- package/scripts/install.py +182 -37
- package/scripts/integration.py +115 -68
- package/scripts/isolation.py +192 -23
- package/scripts/members.py +68 -25
- package/scripts/migrate_core.py +2 -0
- package/scripts/model_policy.py +13 -2
- package/scripts/pipeline_diagnose.py +17 -2
- package/scripts/pipeline_git.py +87 -35
- package/scripts/pipeline_state.py +31 -7
- package/scripts/pipeline_undo.py +17 -8
- package/scripts/promote_lookahead.py +3 -3
- package/scripts/review_findings.py +180 -44
- package/scripts/roadmap.py +9 -1
- package/scripts/runtime_store.py +1 -0
- package/scripts/state_checkpoint.py +30 -9
- package/scripts/state_promote.py +92 -5
- package/scripts/task_context.py +2 -0
- package/scripts/workflow_run.py +9 -2
- package/skills/gsd-path/DEFINE.md +6 -2
- package/skills/gsd-path/PLAN.md +6 -2
- package/skills/gsd-path/ROADMAP.md +16 -6
- package/skills/gsd-path/SHIP.md +38 -11
- package/skills/gsd-path/SKILL.md +52 -24
- package/skills/gsd-path/references/build-native.md +96 -9
- package/skills/gsd-path/references/build-recovery.md +13 -0
- package/skills/gsd-path/references/coder.md +7 -3
- package/skills/gsd-path/references/model-policy.md +3 -1
- package/skills/gsd-path/references/operating-rules.md +14 -5
- package/skills/gsd-path/references/planner.md +13 -1
- package/skills/gsd-path/references/reviewer-final.md +5 -5
- package/skills/gsd-path/references/reviewer-wave.md +46 -13
- package/skills/gsd-path/references/runtime-selection.md +10 -0
- package/skills/gsd-path/scripts/_common.py +150 -1
- package/skills/gsd-path/scripts/build_recovery.py +62 -30
- package/skills/gsd-path/scripts/build_state.py +195 -5
- package/skills/gsd-path/scripts/check_handoffs.py +92 -30
- package/skills/gsd-path/scripts/check_task_briefs.py +27 -19
- package/skills/gsd-path/scripts/detect_project.py +17 -2
- package/skills/gsd-path/scripts/discussion_records.py +9 -1
- package/skills/gsd-path/scripts/discussion_validate.py +7 -6
- package/skills/gsd-path/scripts/dispatch_driver.py +174 -36
- package/skills/gsd-path/scripts/git_guard.py +42 -7
- package/skills/gsd-path/scripts/integration.py +115 -68
- package/skills/gsd-path/scripts/isolation.py +192 -23
- package/skills/gsd-path/scripts/members.py +68 -25
- package/skills/gsd-path/scripts/model_policy.py +13 -2
- package/skills/gsd-path/scripts/pipeline_git.py +87 -35
- package/skills/gsd-path/scripts/pipeline_state.py +31 -7
- package/skills/gsd-path/scripts/promote_lookahead.py +3 -3
- package/skills/gsd-path/scripts/review_findings.py +180 -44
- package/skills/gsd-path/scripts/roadmap.py +9 -1
- package/skills/gsd-path/scripts/state_checkpoint.py +30 -9
- package/skills/gsd-path/scripts/state_promote.py +92 -5
- package/skills/gsd-path/scripts/task_context.py +2 -0
- package/skills/gsd-path/scripts/workflow_run.py +9 -2
- package/skills/gsd-path/templates/final-review.md +5 -5
- package/skills/gsd-path/templates/state.md +1 -0
- package/skills/gsd-path/templates/task.md +1 -0
- package/skills/gsd-path/templates/wave-review.md +18 -9
- package/skills/gsd-path-build/references/build-native.md +96 -9
- package/skills/gsd-path-build/references/build-recovery.md +13 -0
- package/skills/gsd-path-build/references/coder.md +7 -3
- package/skills/gsd-path-build/references/model-policy.md +3 -1
- package/skills/gsd-path-build/references/operating-rules.md +14 -5
- package/skills/gsd-path-build/references/reviewer-final.md +5 -5
- package/skills/gsd-path-build/references/reviewer-wave.md +46 -13
- package/skills/gsd-path-build/references/runtime-selection.md +10 -0
- package/skills/gsd-path-build/scripts/_common.py +150 -1
- package/skills/gsd-path-build/scripts/build_recovery.py +62 -30
- package/skills/gsd-path-build/scripts/build_state.py +195 -5
- package/skills/gsd-path-build/scripts/check_handoffs.py +92 -30
- package/skills/gsd-path-build/scripts/check_task_briefs.py +27 -19
- package/skills/gsd-path-build/scripts/detect_project.py +17 -2
- package/skills/gsd-path-build/scripts/discussion_records.py +9 -1
- package/skills/gsd-path-build/scripts/discussion_validate.py +7 -6
- package/skills/gsd-path-build/scripts/dispatch_driver.py +174 -36
- package/skills/gsd-path-build/scripts/integration.py +115 -68
- package/skills/gsd-path-build/scripts/isolation.py +192 -23
- package/skills/gsd-path-build/scripts/members.py +68 -25
- package/skills/gsd-path-build/scripts/model_policy.py +13 -2
- package/skills/gsd-path-build/scripts/pipeline_git.py +87 -35
- package/skills/gsd-path-build/scripts/pipeline_state.py +31 -7
- package/skills/gsd-path-build/scripts/promote_lookahead.py +3 -3
- package/skills/gsd-path-build/scripts/review_findings.py +180 -44
- package/skills/gsd-path-build/scripts/roadmap.py +9 -1
- package/skills/gsd-path-build/scripts/state_checkpoint.py +30 -9
- package/skills/gsd-path-build/scripts/state_promote.py +92 -5
- package/skills/gsd-path-build/scripts/task_context.py +2 -0
- package/skills/gsd-path-build/scripts/workflow_run.py +9 -2
- package/skills/gsd-path-build/templates/task.md +1 -0
- package/skills/gsd-path-build/templates/wave-review.md +18 -9
- package/skills/gsd-path-decide/references/model-policy.md +3 -1
- package/skills/gsd-path-decide/references/operating-rules.md +14 -5
- package/skills/gsd-path-decide/references/runtime-selection.md +10 -0
- package/skills/gsd-path-decide/scripts/_common.py +150 -1
- package/skills/gsd-path-decide/scripts/build_recovery.py +62 -30
- package/skills/gsd-path-decide/scripts/check_handoffs.py +92 -30
- package/skills/gsd-path-decide/scripts/check_task_briefs.py +27 -19
- package/skills/gsd-path-decide/scripts/detect_project.py +17 -2
- package/skills/gsd-path-decide/scripts/discussion_records.py +9 -1
- package/skills/gsd-path-decide/scripts/discussion_validate.py +7 -6
- package/skills/gsd-path-decide/scripts/integration.py +115 -68
- package/skills/gsd-path-decide/scripts/isolation.py +192 -23
- package/skills/gsd-path-decide/scripts/members.py +68 -25
- package/skills/gsd-path-decide/scripts/model_policy.py +13 -2
- package/skills/gsd-path-decide/scripts/pipeline_git.py +87 -35
- package/skills/gsd-path-decide/scripts/pipeline_state.py +31 -7
- package/skills/gsd-path-decide/scripts/promote_lookahead.py +3 -3
- package/skills/gsd-path-decide/scripts/roadmap.py +9 -1
- package/skills/gsd-path-decide/scripts/state_checkpoint.py +30 -9
- package/skills/gsd-path-decide/scripts/state_promote.py +92 -5
- package/skills/gsd-path-define/SKILL.md +6 -2
- package/skills/gsd-path-define/references/build-recovery.md +13 -0
- package/skills/gsd-path-define/references/operating-rules.md +14 -5
- package/skills/gsd-path-define/references/runtime-selection.md +10 -0
- package/skills/gsd-path-define/scripts/_common.py +150 -1
- package/skills/gsd-path-define/scripts/build_recovery.py +62 -30
- package/skills/gsd-path-define/scripts/check_handoffs.py +92 -30
- package/skills/gsd-path-define/scripts/check_task_briefs.py +27 -19
- package/skills/gsd-path-define/scripts/detect_project.py +17 -2
- package/skills/gsd-path-define/scripts/discussion_records.py +9 -1
- package/skills/gsd-path-define/scripts/discussion_validate.py +7 -6
- package/skills/gsd-path-define/scripts/integration.py +115 -68
- package/skills/gsd-path-define/scripts/isolation.py +192 -23
- package/skills/gsd-path-define/scripts/members.py +68 -25
- package/skills/gsd-path-define/scripts/model_policy.py +13 -2
- package/skills/gsd-path-define/scripts/pipeline_git.py +87 -35
- package/skills/gsd-path-define/scripts/pipeline_state.py +31 -7
- package/skills/gsd-path-define/scripts/promote_lookahead.py +3 -3
- package/skills/gsd-path-define/scripts/roadmap.py +9 -1
- package/skills/gsd-path-define/scripts/state_checkpoint.py +30 -9
- package/skills/gsd-path-define/scripts/state_promote.py +92 -5
- package/skills/gsd-path-define/templates/state.md +1 -0
- package/skills/gsd-path-discuss/references/operating-rules.md +14 -5
- package/skills/gsd-path-discuss/references/runtime-selection.md +10 -0
- package/skills/gsd-path-discuss/scripts/_common.py +150 -1
- package/skills/gsd-path-discuss/scripts/discussion_records.py +9 -1
- package/skills/gsd-path-discuss/scripts/model_policy.py +13 -2
- package/skills/gsd-path-docs-audit/references/model-policy.md +3 -1
- package/skills/gsd-path-docs-audit/references/operating-rules.md +14 -5
- package/skills/gsd-path-docs-audit/references/runtime-selection.md +10 -0
- package/skills/gsd-path-docs-audit/scripts/_common.py +150 -1
- package/skills/gsd-path-docs-audit/scripts/build_recovery.py +62 -30
- package/skills/gsd-path-docs-audit/scripts/check_handoffs.py +92 -30
- package/skills/gsd-path-docs-audit/scripts/check_task_briefs.py +27 -19
- package/skills/gsd-path-docs-audit/scripts/detect_project.py +17 -2
- package/skills/gsd-path-docs-audit/scripts/discussion_records.py +9 -1
- package/skills/gsd-path-docs-audit/scripts/discussion_validate.py +7 -6
- package/skills/gsd-path-docs-audit/scripts/integration.py +115 -68
- package/skills/gsd-path-docs-audit/scripts/isolation.py +192 -23
- package/skills/gsd-path-docs-audit/scripts/members.py +68 -25
- package/skills/gsd-path-docs-audit/scripts/model_policy.py +13 -2
- package/skills/gsd-path-docs-audit/scripts/pipeline_git.py +87 -35
- package/skills/gsd-path-docs-audit/scripts/pipeline_state.py +31 -7
- package/skills/gsd-path-docs-audit/scripts/promote_lookahead.py +3 -3
- package/skills/gsd-path-docs-audit/scripts/roadmap.py +9 -1
- package/skills/gsd-path-docs-audit/scripts/state_checkpoint.py +30 -9
- package/skills/gsd-path-docs-audit/scripts/state_promote.py +92 -5
- package/skills/gsd-path-forensics/references/operating-rules.md +14 -5
- package/skills/gsd-path-forensics/references/runtime-selection.md +10 -0
- package/skills/gsd-path-forensics/scripts/_common.py +150 -1
- package/skills/gsd-path-forensics/scripts/discussion_records.py +9 -1
- package/skills/gsd-path-forensics/scripts/model_policy.py +13 -2
- package/skills/gsd-path-forensics/scripts/pipeline_diagnose.py +17 -2
- package/skills/gsd-path-forensics/scripts/pipeline_undo.py +17 -8
- package/skills/gsd-path-inspect/references/model-policy.md +3 -1
- package/skills/gsd-path-inspect/references/operating-rules.md +14 -5
- package/skills/gsd-path-inspect/references/runtime-selection.md +10 -0
- package/skills/gsd-path-inspect/scripts/_common.py +150 -1
- package/skills/gsd-path-inspect/scripts/build_recovery.py +62 -30
- package/skills/gsd-path-inspect/scripts/check_handoffs.py +92 -30
- package/skills/gsd-path-inspect/scripts/check_task_briefs.py +27 -19
- package/skills/gsd-path-inspect/scripts/detect_project.py +17 -2
- package/skills/gsd-path-inspect/scripts/discussion_records.py +9 -1
- package/skills/gsd-path-inspect/scripts/discussion_validate.py +7 -6
- package/skills/gsd-path-inspect/scripts/integration.py +115 -68
- package/skills/gsd-path-inspect/scripts/isolation.py +192 -23
- package/skills/gsd-path-inspect/scripts/members.py +68 -25
- package/skills/gsd-path-inspect/scripts/model_policy.py +13 -2
- package/skills/gsd-path-inspect/scripts/pipeline_git.py +87 -35
- package/skills/gsd-path-inspect/scripts/pipeline_state.py +31 -7
- package/skills/gsd-path-inspect/scripts/promote_lookahead.py +3 -3
- package/skills/gsd-path-inspect/scripts/roadmap.py +9 -1
- package/skills/gsd-path-inspect/scripts/state_checkpoint.py +30 -9
- package/skills/gsd-path-inspect/scripts/state_promote.py +92 -5
- package/skills/gsd-path-inspect/scripts/workflow_run.py +9 -2
- package/skills/gsd-path-inspect/templates/state.md +1 -0
- package/skills/gsd-path-loop/references/operating-rules.md +14 -5
- package/skills/gsd-path-loop/references/runtime-selection.md +10 -0
- package/skills/gsd-path-loop/scripts/_common.py +150 -1
- package/skills/gsd-path-loop/scripts/discussion_records.py +9 -1
- package/skills/gsd-path-loop/scripts/model_policy.py +13 -2
- package/skills/gsd-path-migrate/SKILL.md +8 -0
- package/skills/gsd-path-migrate/references/operating-rules.md +14 -5
- package/skills/gsd-path-migrate/references/runtime-selection.md +10 -0
- package/skills/gsd-path-migrate/scripts/_common.py +150 -1
- package/skills/gsd-path-migrate/scripts/discussion_records.py +9 -1
- package/skills/gsd-path-migrate/scripts/migrate_core.py +2 -0
- package/skills/gsd-path-migrate/scripts/model_policy.py +13 -2
- package/skills/gsd-path-plan/SKILL.md +6 -2
- package/skills/gsd-path-plan/references/build-recovery.md +13 -0
- package/skills/gsd-path-plan/references/model-policy.md +3 -1
- package/skills/gsd-path-plan/references/operating-rules.md +14 -5
- package/skills/gsd-path-plan/references/planner.md +13 -1
- package/skills/gsd-path-plan/references/runtime-selection.md +10 -0
- package/skills/gsd-path-plan/scripts/_common.py +150 -1
- package/skills/gsd-path-plan/scripts/build_recovery.py +62 -30
- package/skills/gsd-path-plan/scripts/check_handoffs.py +92 -30
- package/skills/gsd-path-plan/scripts/check_task_briefs.py +27 -19
- package/skills/gsd-path-plan/scripts/detect_project.py +17 -2
- package/skills/gsd-path-plan/scripts/discussion_records.py +9 -1
- package/skills/gsd-path-plan/scripts/discussion_validate.py +7 -6
- package/skills/gsd-path-plan/scripts/integration.py +115 -68
- package/skills/gsd-path-plan/scripts/isolation.py +192 -23
- package/skills/gsd-path-plan/scripts/members.py +68 -25
- package/skills/gsd-path-plan/scripts/model_policy.py +13 -2
- package/skills/gsd-path-plan/scripts/pipeline_git.py +87 -35
- package/skills/gsd-path-plan/scripts/pipeline_state.py +31 -7
- package/skills/gsd-path-plan/scripts/promote_lookahead.py +3 -3
- package/skills/gsd-path-plan/scripts/roadmap.py +9 -1
- package/skills/gsd-path-plan/scripts/state_checkpoint.py +30 -9
- package/skills/gsd-path-plan/scripts/state_promote.py +92 -5
- package/skills/gsd-path-plan/scripts/workflow_run.py +9 -2
- package/skills/gsd-path-plan/templates/task.md +1 -0
- package/skills/gsd-path-research/references/model-policy.md +3 -1
- package/skills/gsd-path-research/references/operating-rules.md +14 -5
- package/skills/gsd-path-research/references/runtime-selection.md +10 -0
- package/skills/gsd-path-research/scripts/_common.py +150 -1
- package/skills/gsd-path-research/scripts/build_recovery.py +62 -30
- package/skills/gsd-path-research/scripts/check_handoffs.py +92 -30
- package/skills/gsd-path-research/scripts/check_task_briefs.py +27 -19
- package/skills/gsd-path-research/scripts/detect_project.py +17 -2
- package/skills/gsd-path-research/scripts/discussion_records.py +9 -1
- package/skills/gsd-path-research/scripts/discussion_validate.py +7 -6
- package/skills/gsd-path-research/scripts/integration.py +115 -68
- package/skills/gsd-path-research/scripts/isolation.py +192 -23
- package/skills/gsd-path-research/scripts/members.py +68 -25
- package/skills/gsd-path-research/scripts/model_policy.py +13 -2
- package/skills/gsd-path-research/scripts/pipeline_git.py +87 -35
- package/skills/gsd-path-research/scripts/pipeline_state.py +31 -7
- package/skills/gsd-path-research/scripts/promote_lookahead.py +3 -3
- package/skills/gsd-path-research/scripts/roadmap.py +9 -1
- package/skills/gsd-path-research/scripts/state_checkpoint.py +30 -9
- package/skills/gsd-path-research/scripts/state_promote.py +92 -5
- package/skills/gsd-path-roadmap/SKILL.md +16 -6
- package/skills/gsd-path-roadmap/references/model-policy.md +3 -1
- package/skills/gsd-path-roadmap/references/operating-rules.md +14 -5
- package/skills/gsd-path-roadmap/references/runtime-selection.md +10 -0
- package/skills/gsd-path-roadmap/scripts/_common.py +150 -1
- package/skills/gsd-path-roadmap/scripts/build_recovery.py +62 -30
- package/skills/gsd-path-roadmap/scripts/check_handoffs.py +92 -30
- package/skills/gsd-path-roadmap/scripts/check_task_briefs.py +27 -19
- package/skills/gsd-path-roadmap/scripts/detect_project.py +17 -2
- package/skills/gsd-path-roadmap/scripts/discussion_records.py +9 -1
- package/skills/gsd-path-roadmap/scripts/discussion_validate.py +7 -6
- package/skills/gsd-path-roadmap/scripts/integration.py +115 -68
- package/skills/gsd-path-roadmap/scripts/isolation.py +192 -23
- package/skills/gsd-path-roadmap/scripts/members.py +68 -25
- package/skills/gsd-path-roadmap/scripts/model_policy.py +13 -2
- package/skills/gsd-path-roadmap/scripts/pipeline_git.py +87 -35
- package/skills/gsd-path-roadmap/scripts/pipeline_state.py +31 -7
- package/skills/gsd-path-roadmap/scripts/promote_lookahead.py +3 -3
- package/skills/gsd-path-roadmap/scripts/roadmap.py +9 -1
- package/skills/gsd-path-roadmap/scripts/state_checkpoint.py +30 -9
- package/skills/gsd-path-roadmap/scripts/state_promote.py +92 -5
- package/skills/gsd-path-ship/SKILL.md +38 -11
- package/skills/gsd-path-ship/references/model-policy.md +3 -1
- package/skills/gsd-path-ship/references/operating-rules.md +14 -5
- package/skills/gsd-path-ship/references/reviewer-final.md +5 -5
- package/skills/gsd-path-ship/references/reviewer-wave.md +46 -13
- package/skills/gsd-path-ship/references/runtime-selection.md +10 -0
- package/skills/gsd-path-ship/scripts/_common.py +150 -1
- package/skills/gsd-path-ship/scripts/build_recovery.py +62 -30
- package/skills/gsd-path-ship/scripts/build_state.py +195 -5
- package/skills/gsd-path-ship/scripts/check_handoffs.py +92 -30
- package/skills/gsd-path-ship/scripts/check_task_briefs.py +27 -19
- package/skills/gsd-path-ship/scripts/detect_project.py +17 -2
- package/skills/gsd-path-ship/scripts/discussion_records.py +9 -1
- package/skills/gsd-path-ship/scripts/discussion_validate.py +7 -6
- package/skills/gsd-path-ship/scripts/integration.py +115 -68
- package/skills/gsd-path-ship/scripts/isolation.py +192 -23
- package/skills/gsd-path-ship/scripts/members.py +68 -25
- package/skills/gsd-path-ship/scripts/model_policy.py +13 -2
- package/skills/gsd-path-ship/scripts/pipeline_git.py +87 -35
- package/skills/gsd-path-ship/scripts/pipeline_state.py +31 -7
- package/skills/gsd-path-ship/scripts/promote_lookahead.py +3 -3
- package/skills/gsd-path-ship/scripts/roadmap.py +9 -1
- package/skills/gsd-path-ship/scripts/state_checkpoint.py +30 -9
- package/skills/gsd-path-ship/scripts/state_promote.py +92 -5
- package/skills/gsd-path-ship/scripts/workflow_run.py +9 -2
- package/skills/gsd-path-ship/templates/final-review.md +5 -5
- package/skills/gsd-path-ship/templates/wave-review.md +18 -9
- package/skills/gsd-path-undo/references/operating-rules.md +14 -5
- package/skills/gsd-path-undo/references/runtime-selection.md +10 -0
- package/skills/gsd-path-undo/scripts/_common.py +150 -1
- package/skills/gsd-path-undo/scripts/discussion_records.py +9 -1
- package/skills/gsd-path-undo/scripts/model_policy.py +13 -2
- package/skills/gsd-path-undo/scripts/pipeline_undo.py +17 -8
- package/skills/path/DEFINE.md +6 -2
- package/skills/path/PLAN.md +6 -2
- package/skills/path/ROADMAP.md +16 -6
- package/skills/path/SHIP.md +38 -11
- package/skills/path/SKILL.md +52 -24
- package/skills/path/references/build-native.md +96 -9
- package/skills/path/references/build-recovery.md +13 -0
- package/skills/path/references/coder.md +7 -3
- package/skills/path/references/model-policy.md +3 -1
- package/skills/path/references/operating-rules.md +14 -5
- package/skills/path/references/planner.md +13 -1
- package/skills/path/references/reviewer-final.md +5 -5
- package/skills/path/references/reviewer-wave.md +46 -13
- package/skills/path/references/runtime-selection.md +10 -0
- package/skills/path/scripts/_common.py +150 -1
- package/skills/path/scripts/build_recovery.py +62 -30
- package/skills/path/scripts/build_state.py +195 -5
- package/skills/path/scripts/check_handoffs.py +92 -30
- package/skills/path/scripts/check_task_briefs.py +27 -19
- package/skills/path/scripts/detect_project.py +17 -2
- package/skills/path/scripts/discussion_records.py +9 -1
- package/skills/path/scripts/discussion_validate.py +7 -6
- package/skills/path/scripts/dispatch_driver.py +174 -36
- package/skills/path/scripts/git_guard.py +42 -7
- package/skills/path/scripts/integration.py +115 -68
- package/skills/path/scripts/isolation.py +192 -23
- package/skills/path/scripts/members.py +68 -25
- package/skills/path/scripts/model_policy.py +13 -2
- package/skills/path/scripts/pipeline_git.py +87 -35
- package/skills/path/scripts/pipeline_state.py +31 -7
- package/skills/path/scripts/promote_lookahead.py +3 -3
- package/skills/path/scripts/review_findings.py +180 -44
- package/skills/path/scripts/roadmap.py +9 -1
- package/skills/path/scripts/state_checkpoint.py +30 -9
- package/skills/path/scripts/state_promote.py +92 -5
- package/skills/path/scripts/task_context.py +2 -0
- package/skills/path/scripts/workflow_run.py +9 -2
- package/skills/path/templates/final-review.md +5 -5
- package/skills/path/templates/state.md +1 -0
- package/skills/path/templates/task.md +1 -0
- package/skills/path/templates/wave-review.md +18 -9
package/scripts/workflow_run.py
CHANGED
|
@@ -210,8 +210,14 @@ def run_workflow(repo: Path, action: str, project_dir: str, expected_head: str =
|
|
|
210
210
|
"--base", expected_head, "--task-id", task_id,
|
|
211
211
|
"--round-size", str(round_size))
|
|
212
212
|
if task["mode"] == "serial":
|
|
213
|
+
name = f"task-{task_id.lower()}-verify"
|
|
214
|
+
stale = isolation.sidecar_root(repo, "verify", name)
|
|
215
|
+
if os.path.lexists(stale / ".git"):
|
|
216
|
+
# An earlier prepare-task left this sidecar. Only one that is proven untouched is replaced.
|
|
217
|
+
steps.append({"script": "isolation.py", "result": isolation.retire_stale_verify(
|
|
218
|
+
repo, stale, isolation.verify_branch_name(name))})
|
|
213
219
|
step("isolation.py", "isolate-verify", "--repo", str(repo),
|
|
214
|
-
"--base", expected_head, "--name",
|
|
220
|
+
"--base", expected_head, "--name", name)
|
|
215
221
|
elif action == "build-evidence":
|
|
216
222
|
proof = step("build_state.py", "verify-landed", *common, "--head", expected_head)
|
|
217
223
|
# The landing proof has one canonical home; lean final-review reuse allows only this path.
|
|
@@ -278,7 +284,8 @@ def run_workflow(repo: Path, action: str, project_dir: str, expected_head: str =
|
|
|
278
284
|
if action == "approve-plan":
|
|
279
285
|
step("pipeline_state.py", "approve", *common, "--kind", "plan",
|
|
280
286
|
"--expected-head", expected_head)
|
|
281
|
-
except (StepFailed, OSError, subprocess.CalledProcessError,
|
|
287
|
+
except (StepFailed, isolation.IsolationError, OSError, subprocess.CalledProcessError,
|
|
288
|
+
ValueError, KeyError, TypeError) as error:
|
|
282
289
|
return {"status": "blocked", "reason": str(error), "steps": steps,
|
|
283
290
|
"next": next_step}
|
|
284
291
|
return {"status": "complete", "steps": steps, **outputs}
|
|
@@ -168,8 +168,12 @@ State ownership. There is no re-interview of charter or roadmap scope:
|
|
|
168
168
|
and prohibition ruling for the user to accept or change; it never rules on
|
|
169
169
|
them silently. A requested change that contradicts the
|
|
170
170
|
charter or the resolved roadmap entry is a scope change — this phase never
|
|
171
|
-
edits the roadmap; surface it to the user for a `$gsd-path-roadmap`
|
|
172
|
-
|
|
171
|
+
edits the roadmap; surface it to the user for a `$gsd-path-roadmap`
|
|
172
|
+
re-slice. Before intent approval, that re-slice keeps `define/active` and
|
|
173
|
+
can change the scope of this milestone's `active` entry; after its
|
|
174
|
+
approval, draft INTENT.md again from the changed entry. In `corrections`
|
|
175
|
+
mode the intent is already approved, so the re-slice waits for the next
|
|
176
|
+
milestone boundary.
|
|
173
177
|
4. On approval, finalize per the Output contract, setting `milestone` to the
|
|
174
178
|
resolved entry's slug. The router continues with milestone-scoped research
|
|
175
179
|
when the entry lists open questions, otherwise planning.
|
package/skills/gsd-path/PLAN.md
CHANGED
|
@@ -119,6 +119,9 @@ as stated in Lookahead mode.
|
|
|
119
119
|
in the same wave. Same-wave tasks may share files only when one
|
|
120
120
|
transitively depends on the other through `deps`; the build executes
|
|
121
121
|
them in dependency layers.
|
|
122
|
+
- Require an optional `supersedes` field to be a list of different task
|
|
123
|
+
ids; each one names an existing task of an earlier wave, in the same
|
|
124
|
+
repo, that shares a declared file with the task.
|
|
122
125
|
- Reject a declared dependency that carries neither data nor a prerequisite
|
|
123
126
|
effect. A `deps` edge is valid only when the dependent consumes a symbol,
|
|
124
127
|
signature, schema, endpoint, file format, or path named in that
|
|
@@ -260,8 +263,9 @@ as stated in Lookahead mode.
|
|
|
260
263
|
|
|
261
264
|
Before approval, the helper validates the task graph and brief paths.
|
|
262
265
|
Pending briefs may reference files supplied by transitive dependencies.
|
|
263
|
-
|
|
264
|
-
|
|
266
|
+
A landed brief is immutable history: the helper checks its `files` scope
|
|
267
|
+
at the recorded historical base and does not check the paths that its
|
|
268
|
+
prose and Verify name.
|
|
265
269
|
This applies to plan re-approval too; the dispatch CLI remains HEAD-only
|
|
266
270
|
with no overrides.
|
|
267
271
|
|
|
@@ -27,7 +27,8 @@ return to `$gsd-path` for ownership checking. Legal entry is
|
|
|
27
27
|
yet, `roadmap/active|blocked`, or a
|
|
28
28
|
milestone-boundary re-slice: `inspect/active` or `define/active` with no
|
|
29
29
|
approved INTENT.md for the next milestone and a user request to re-scope the
|
|
30
|
-
remaining `pending` entries,
|
|
30
|
+
remaining `pending` entries or, at `define/active` only, to change the scope
|
|
31
|
+
of the `active` entry,
|
|
31
32
|
or `roadmap/active` with STATE.milestone null and an `abandoned` entry in
|
|
32
33
|
ROADMAP.md (the post-abandon re-slice the build orchestrator hands off).
|
|
33
34
|
Enter from `decide/done` only with `pipeline_state.py transition`, exact
|
|
@@ -35,6 +36,8 @@ expected phase/status/milestone/branch/archive fields, event `roadmap started`,
|
|
|
35
36
|
and `--set-phase roadmap --set-status active`; never edit STATE directly. In a
|
|
36
37
|
milestone-boundary re-slice, preserve the entering `inspect/active` or
|
|
37
38
|
`define/active` state throughout the re-slice.
|
|
39
|
+
A `define/active` state that the router reports in `corrections` mode already
|
|
40
|
+
has an approved INTENT.md; it blocks.
|
|
38
41
|
Any later phase blocks; mid-milestone
|
|
39
42
|
re-scope is never legal — finish or ship the active milestone first. A
|
|
40
43
|
`decide/done` state with ROADMAP.md already present is milestone-scope decide;
|
|
@@ -71,8 +74,11 @@ precondition fails.
|
|
|
71
74
|
give `.project/ROADMAP.before-reslice.md` with the instruction to preserve
|
|
72
75
|
`shipped` entries byte-for-byte except Status/Archive/Integrated fields and
|
|
73
76
|
to never modify `abandoned` entries at all. For a milestone-boundary
|
|
74
|
-
re-slice
|
|
75
|
-
`pending` entries are in scope.
|
|
77
|
+
re-slice entered at `inspect/active`, also preserve the existing `active`
|
|
78
|
+
entry byte-for-byte; only `pending` entries are in scope. Entered at
|
|
79
|
+
`define/active`, the `active` entry may also change as the user ruled, but
|
|
80
|
+
its heading (id and slug) and its Status, Depends on, Archive, and
|
|
81
|
+
Integrated fields stay unchanged.
|
|
76
82
|
The output is exactly `.project/ROADMAP.md` — no other location is
|
|
77
83
|
canonical.
|
|
78
84
|
3. Gate ROADMAP.md:
|
|
@@ -96,8 +102,11 @@ precondition fails.
|
|
|
96
102
|
- On a re-slice, `shipped` entries differ from
|
|
97
103
|
`.project/ROADMAP.before-reslice.md` only in Status/Archive/Integrated;
|
|
98
104
|
`abandoned` entries are byte-for-byte identical.
|
|
99
|
-
- On a milestone-boundary re-slice
|
|
100
|
-
identical to
|
|
105
|
+
- On a milestone-boundary re-slice entered at `inspect/active`, the prior
|
|
106
|
+
`active` entry is byte-for-byte identical to
|
|
107
|
+
`.project/ROADMAP.before-reslice.md`. Entered at `define/active`, it
|
|
108
|
+
stays the only `active` entry and keeps its heading and its Status,
|
|
109
|
+
Depends on, Archive, and Integrated fields.
|
|
101
110
|
4. Redispatch one complete corrected brief under logical task name `roadmap`,
|
|
102
111
|
following the runtime dispatch contract and including all gate failures.
|
|
103
112
|
Allow one revision round. If it still fails, keep the entering
|
|
@@ -160,7 +169,8 @@ precondition fails.
|
|
|
160
169
|
|
|
161
170
|
The helper owns roadmap selection, expected state, baseline cleanup and
|
|
162
171
|
the approval checkpoint. It journals before mutation, retains the baseline
|
|
163
|
-
bytes for recovery, and refuses changes to settled
|
|
172
|
+
bytes for recovery, and refuses changes to settled entries and every
|
|
173
|
+
`active` entry change that step 2 does not permit.
|
|
164
174
|
A milestone-boundary re-slice retains Inspect or Define; a post-abandon
|
|
165
175
|
re-slice enters Inspect. Require its typed result to report `status:
|
|
166
176
|
approved`, the requested kind, milestone and returned commit. After an
|
package/skills/gsd-path/SHIP.md
CHANGED
|
@@ -267,7 +267,11 @@ The persisted `STATE.archive` field is the transaction identity.
|
|
|
267
267
|
`python3 <absolute archive_milestone.py> close-members --repo <root>`
|
|
268
268
|
after preflight passes and before recording shipment. It closes each
|
|
269
269
|
locked member in lock order in that member's integration mode and
|
|
270
|
-
journals each one.
|
|
270
|
+
journals each one. Each member closes onto the default branch that
|
|
271
|
+
MEMBERS.md records for it (`main` when its section has no
|
|
272
|
+
`Default branch`); when the command reports
|
|
273
|
+
`remote default must be <recorded>`, stop and report it. When it returns
|
|
274
|
+
`awaiting-merge`, report the member PR
|
|
271
275
|
link, stop, and rerun the same command after the user merges it; never
|
|
272
276
|
merge a member PR yourself. When it returns `integrated`, keep its `body`
|
|
273
277
|
for the ship commit below.
|
|
@@ -310,8 +314,10 @@ The persisted `STATE.archive` field is the transaction identity.
|
|
|
310
314
|
milestone is not shipped until integration below passes.
|
|
311
315
|
7. Integrate only after the postcommit `validate` passes, with the recorded
|
|
312
316
|
ship commit and exact reviewed HEAD unchanged. Run `python3 <absolute archive_milestone.py> integrate --repo <root> --slug <STATE.milestone>`.
|
|
313
|
-
This helper validates the ship commit, fetches origin, requires remote
|
|
314
|
-
default `main
|
|
317
|
+
This helper validates the ship commit, fetches origin, requires the remote
|
|
318
|
+
default to equal STATE `default_branch` (`main` when the field is absent),
|
|
319
|
+
and follows the locked `STATE.integration` mode. `main` and `origin/main`
|
|
320
|
+
below mean that recorded branch:
|
|
315
321
|
|
|
316
322
|
- `direct` owns the resumable merge transaction. It creates the canonical
|
|
317
323
|
named integration worktree, performs the hook-verified `--no-ff` merge,
|
|
@@ -335,15 +341,36 @@ The persisted `STATE.archive` field is the transaction identity.
|
|
|
335
341
|
PR is open, the helper returns `status: awaiting-merge`. Present
|
|
336
342
|
**Outcome**, link
|
|
337
343
|
the returned PR as **Review**, and state in **Next** that the user must
|
|
338
|
-
merge it with GitHub's merge-commit method. Stop this ship
|
|
339
|
-
Path never enables auto-merge or merges the PR. On rerun after
|
|
340
|
-
GitHub user merges it, the helper requires the PR head to remain
|
|
341
|
-
commit and its landing to be
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
344
|
+
merge it with GitHub's merge-commit or rebase method. Stop this ship
|
|
345
|
+
invocation; Path never enables auto-merge or merges the PR. On rerun after
|
|
346
|
+
a human GitHub user merges it, the helper requires the PR head to remain
|
|
347
|
+
the ship commit and its landing to be on `origin/main` first-parent
|
|
348
|
+
history as either a two-parent merge with that ship commit as second
|
|
349
|
+
parent, or a rebase merge: the last of a first-parent run of single-parent
|
|
350
|
+
commits whose `git patch-id --stable` values match, in order, the
|
|
351
|
+
non-merge commits from the landing to the ship commit (with equal trees
|
|
352
|
+
when `main` did not move). It then writes and pushes the annotated
|
|
353
|
+
milestone tag containing the PR URL, ship SHA, and landing SHA. A
|
|
354
|
+
milestone that was rebase-merged before this support existed recovers by
|
|
355
|
+
rerunning ship. A closed unmerged PR, squash, merge queue, moved
|
|
345
356
|
head, duplicate PR, or non-GitHub.com origin blocks. The remote bound
|
|
346
357
|
branch may be absent after a valid merge because GitHub may auto-delete it.
|
|
358
|
+
- `external-landing` is for an origin where Path cannot open the review
|
|
359
|
+
itself, such as GitLab, Gitea, or GitHub Enterprise Server. It needs no
|
|
360
|
+
forge CLI. The helper publishes the bound branch at the exact ship commit,
|
|
361
|
+
never pushes `main`, and returns `status: awaiting-merge` with `branch`,
|
|
362
|
+
`merge_subject`, and `merge_body`. Present **Outcome**, and state in
|
|
363
|
+
**Next** that the user must open a merge request from `branch` to `main`
|
|
364
|
+
in their own forge and merge it with a merge commit. The merge commit
|
|
365
|
+
message must be exactly `merge_subject`, a blank line, then `merge_body`;
|
|
366
|
+
show both values verbatim in a code block. Stop this ship invocation;
|
|
367
|
+
Path never opens or merges the request. The forge may delete the source
|
|
368
|
+
branch after the merge. On rerun after the merge, the helper requires exactly
|
|
369
|
+
one commit with that subject on `origin/main` first-parent history, that
|
|
370
|
+
exact body, and two parents with the ship commit as second parent. It
|
|
371
|
+
then writes and pushes the annotated milestone tag containing the ship
|
|
372
|
+
SHA and landing SHA. A squash, rebase, fast-forward, or different merge
|
|
373
|
+
message blocks.
|
|
347
374
|
|
|
348
375
|
A passing run returns the same proof exposed by `validate-integrated`.
|
|
349
376
|
A non-zero result blocks; rerun the exact `integrate` command to resume a
|
|
@@ -354,7 +381,7 @@ The persisted `STATE.archive` field is the transaction identity.
|
|
|
354
381
|
continuing. Never merge into or re-ship the closed branch.
|
|
355
382
|
For a later validation recheck with origin network access, run
|
|
356
383
|
`python3 <absolute archive_milestone.py> validate-integrated --repo <root> --slug <STATE.milestone>`.
|
|
357
|
-
|
|
384
|
+
All integration modes refresh the remote-default and mirrored milestone-tag
|
|
358
385
|
refs when an `origin` remote exists. Without that remote, validation resolves
|
|
359
386
|
the existing remote-default refs locally, preserving offline direct-mode
|
|
360
387
|
fixtures. PR mode also revalidates the PR identity, state, merge provenance,
|
package/skills/gsd-path/SKILL.md
CHANGED
|
@@ -179,6 +179,23 @@ selects a milestone branch.
|
|
|
179
179
|
`define/active`; report that no brownfield signal fired, and route to
|
|
180
180
|
the bundled [define contract](DEFINE.md).
|
|
181
181
|
|
|
182
|
+
## Default branch
|
|
183
|
+
|
|
184
|
+
`initialize` records the default branch of `origin` one time, as STATE
|
|
185
|
+
`default_branch`. It reads the local `refs/remotes/origin/HEAD`; when that ref
|
|
186
|
+
is unset it records `main`. When the repository has an `origin`, run
|
|
187
|
+
`git remote set-head origin --auto` before `initialize`, so that the record is
|
|
188
|
+
the default branch of the forge. A STATE file without the field means `main`.
|
|
189
|
+
|
|
190
|
+
`<default_branch>` in the commands below is the `default_branch` value in the
|
|
191
|
+
`validate`, `route`, and `status` JSON, beside `state`. Never edit the field,
|
|
192
|
+
and never take the name from a later `origin/HEAD` lookup. When a helper
|
|
193
|
+
reports that the remote default differs from the recorded one, stop and report
|
|
194
|
+
it. In a project with members, STATE `default_branch` is the default branch of
|
|
195
|
+
the coordinator only. `members.py add` records the default branch of each
|
|
196
|
+
member in `.project/MEMBERS.md`; the member helpers read that record. The
|
|
197
|
+
names can differ.
|
|
198
|
+
|
|
182
199
|
## Integration choice
|
|
183
200
|
|
|
184
201
|
New state uses the user shipping default (built-in: `direct`) for
|
|
@@ -190,7 +207,7 @@ helper; never edit these fields by hand:
|
|
|
190
207
|
python3 <absolute-bundled-pipeline-state.py> configure-integration \
|
|
191
208
|
--repo <absolute-root> \
|
|
192
209
|
--scope <default-or-milestone> \
|
|
193
|
-
--mode <direct
|
|
210
|
+
--mode <direct|pull-request|external-landing>
|
|
194
211
|
```
|
|
195
212
|
|
|
196
213
|
`default` changes the project setting and changes the current milestone only
|
|
@@ -212,16 +229,23 @@ milestone boundary, never during build or ship. Resolve the bundled
|
|
|
212
229
|
`scripts/members.py` to an absolute path and use it; never edit MEMBERS.md
|
|
213
230
|
or a member marker by hand.
|
|
214
231
|
|
|
215
|
-
- To add an existing repository, it needs a GitHub.com `origin
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
232
|
+
- To add an existing repository, it needs a GitHub.com `origin`, a clean
|
|
233
|
+
worktree, and no active milestone of its own. Its default branch can have
|
|
234
|
+
any name. Run `git remote set-head origin --auto` in the member first: `add`
|
|
235
|
+
reads the member's local `origin/HEAD` one time and records the name in
|
|
236
|
+
MEMBERS.md as `Default branch`; an unset `origin/HEAD` records `main`. Ask
|
|
237
|
+
for the member name, checkout path, and integration (`direct`,
|
|
238
|
+
`pull-request`, or `default`, which follows the milestone's choice), then run
|
|
219
239
|
`python3 <members.py> add --repo <absolute-root> --name <name> --checkout <path> --integration <mode>`.
|
|
240
|
+
When `validate` or member close later reports
|
|
241
|
+
`remote default must be <recorded>`, stop and report it; never edit the
|
|
242
|
+
record.
|
|
220
243
|
- To create a new member repository, present the exact `owner/name`,
|
|
221
244
|
visibility, and checkout path as the **Review** surface and get approval
|
|
222
245
|
first, as for a new GitHub repository. Then run the same command with
|
|
223
246
|
`--create <owner/name> --visibility <visibility>`. It journals the approved
|
|
224
|
-
target before creating anything; rerun the identical command to resume.
|
|
247
|
+
target before creating anything; rerun the identical command to resume. A
|
|
248
|
+
new member repository uses `main`.
|
|
225
249
|
- After adding a member, tell the user to install its guard hooks:
|
|
226
250
|
`npx @opengsd/gsd-path@latest --member-of <absolute-root> --project <member checkout>`.
|
|
227
251
|
- `python3 <members.py> validate --repo <absolute-root>` checks every member;
|
|
@@ -269,8 +293,8 @@ integration ancestry, cleanliness, and journal ownership before continuing.
|
|
|
269
293
|
After it returns, continue the state transition or lookahead promotion below.
|
|
270
294
|
Do not reconstruct this classification from Git output or Log prose.
|
|
271
295
|
When the route returns `allow_remote_absent: true`, also pass
|
|
272
|
-
`--allow-missing-previous`; this is valid only because
|
|
273
|
-
auto-deleted the published bound branch.
|
|
296
|
+
`--allow-missing-previous`; this is valid only because the forge may have
|
|
297
|
+
auto-deleted the published bound branch after the merge.
|
|
274
298
|
|
|
275
299
|
Before ordinary routing, inspect `STATE.archive`.
|
|
276
300
|
|
|
@@ -328,7 +352,7 @@ promotion, `resume-next-handoff` resumes the verified `bind-next` transaction,
|
|
|
328
352
|
`resume-undo` invokes `$gsd-path-undo` with the returned kind and expected HEAD,
|
|
329
353
|
`block` stops with the returned reason. `bind-initial`
|
|
330
354
|
means initialization is complete and phase work must wait for the initial
|
|
331
|
-
router binding: resolve the exact fetched `origin
|
|
355
|
+
router binding: resolve the exact fetched `origin/<default_branch>` SHA, call `bind-initial` as
|
|
332
356
|
above with `route.branch`, then persist its returned branch with
|
|
333
357
|
`pipeline_state.py transition` using the route result's `state` phase and status plus its
|
|
334
358
|
null branch and archive as expected fields. Set `--set-branch` to the helper's
|
|
@@ -371,7 +395,8 @@ on `NEEDS-USER`. Planning owns the single build-approval gate; never ask a
|
|
|
371
395
|
second time. One user-driven exception to normal routing: at a program milestone
|
|
372
396
|
boundary — `inspect/active` or `define/active` with no approved INTENT.md for
|
|
373
397
|
the next milestone — a user request to re-scope the remaining `pending`
|
|
374
|
-
entries
|
|
398
|
+
entries, or at `define/active` the `active` entry, routes to the bundled
|
|
399
|
+
[roadmap contract](ROADMAP.md) in re-slice mode.
|
|
375
400
|
|
|
376
401
|
## Lookahead planning (program flow)
|
|
377
402
|
|
|
@@ -400,7 +425,9 @@ template](templates/state.md) with `pipeline: gsd-path/v2`, `phase:
|
|
|
400
425
|
inspect`, `status: active`, the selector's exact returned `milestone` slug as
|
|
401
426
|
`milestone`, `branch: null`, and `archive: null`. Copy the active project's
|
|
402
427
|
`integration_default` into both integration mode fields and set
|
|
403
|
-
`integration_source: default`.
|
|
428
|
+
`integration_source: default`. Set `default_branch` to the active project's
|
|
429
|
+
value; when the active STATE.md has no `default_branch` line, delete that line
|
|
430
|
+
from the new file. Then follow the bundled
|
|
404
431
|
phase contracts in their Lookahead mode — inspect, define (milestone +
|
|
405
432
|
brownfield), research (only when the entry lists open questions), decide, and
|
|
406
433
|
plan — rooted at `.project/next/`.
|
|
@@ -424,14 +451,14 @@ bundled integration check (`validate-integrated`); pending integration routes
|
|
|
424
451
|
back to ship, never here. Preserve the previous archive path, ship SHA,
|
|
425
452
|
integration SHA, and build branch in the state Log. Before fetching or binding
|
|
426
453
|
the next program branch, fetch origin and resolve the exact current
|
|
427
|
-
`origin
|
|
454
|
+
`origin/<default_branch>` SHA. For a program roadmap, resolve the branch from that exact
|
|
428
455
|
fetched commit through the bundled helper. With a saved lookahead track, run:
|
|
429
456
|
|
|
430
457
|
```text
|
|
431
458
|
python3 <absolute-bundled-promote-lookahead.py> select-base \
|
|
432
459
|
--repo <absolute-primary-root> \
|
|
433
|
-
--base <exact-
|
|
434
|
-
--remote-default origin
|
|
460
|
+
--base <exact-remote-default-sha> \
|
|
461
|
+
--remote-default origin/<default_branch> \
|
|
435
462
|
--lookahead
|
|
436
463
|
```
|
|
437
464
|
|
|
@@ -440,8 +467,8 @@ Without a saved lookahead track, run:
|
|
|
440
467
|
```text
|
|
441
468
|
python3 <absolute-bundled-promote-lookahead.py> select-base \
|
|
442
469
|
--repo <absolute-primary-root> \
|
|
443
|
-
--base <exact-
|
|
444
|
-
--remote-default origin
|
|
470
|
+
--base <exact-remote-default-sha> \
|
|
471
|
+
--remote-default origin/<default_branch>
|
|
445
472
|
```
|
|
446
473
|
|
|
447
474
|
When the helper returns `status: complete`, report program completion and stop;
|
|
@@ -457,21 +484,22 @@ python3 <absolute-bundled-pipeline-git.py> bind-next \
|
|
|
457
484
|
--branch <selected-branch> \
|
|
458
485
|
--previous-branch <STATE.branch> \
|
|
459
486
|
--ship <exact-ship-sha> \
|
|
460
|
-
--remote-default origin
|
|
461
|
-
--base <exact-
|
|
487
|
+
--remote-default origin/<default_branch> \
|
|
488
|
+
--base <exact-remote-default-sha> \
|
|
462
489
|
--landing <validate-integrated-landing-sha>
|
|
463
490
|
```
|
|
464
491
|
|
|
465
492
|
Add `--allow-missing-previous` when `validate-integrated` returned
|
|
466
|
-
`mode: pull-request` and `origin/<STATE.branch>`
|
|
467
|
-
that
|
|
468
|
-
the handoff. The helper independently
|
|
469
|
-
milestone tag
|
|
493
|
+
`mode: pull-request` or `mode: external-landing` and `origin/<STATE.branch>`
|
|
494
|
+
is absent. The forge may delete that source branch after merge; the local
|
|
495
|
+
branch and exact ship SHA still bind the handoff. The helper independently
|
|
496
|
+
verifies the published milestone tag for `STATE.integration` and the merge
|
|
497
|
+
topology before accepting the missing branch.
|
|
470
498
|
|
|
471
499
|
The helper requires the previous branch, while it still exists locally, to
|
|
472
500
|
remain at the ship SHA, proves the ship commit is integrated into the exact
|
|
473
501
|
base, rejects local or remote branch collisions,
|
|
474
|
-
and switches the clean primary worktree without tracking
|
|
502
|
+
and switches the clean primary worktree without tracking the default branch. It then
|
|
475
503
|
retires the integrated previous branch — deleted locally and on origin; the
|
|
476
504
|
ship commit stays reachable from the integration merge and its tag. Repeating the
|
|
477
505
|
same command while the new branch is current at the unchanged base is the
|
|
@@ -488,7 +516,7 @@ Log, then:
|
|
|
488
516
|
--repo <absolute-primary-root> \
|
|
489
517
|
--milestone <next-slug> \
|
|
490
518
|
--branch gsd-path/M00N \
|
|
491
|
-
--base <exact-current-
|
|
519
|
+
--base <exact-current-remote-default-sha> \
|
|
492
520
|
--landing <exact-milestone-merge-sha>
|
|
493
521
|
```
|
|
494
522
|
|
|
@@ -128,6 +128,10 @@ dispatch contract and perform steps 1–5 by hand.
|
|
|
128
128
|
rerun `recover`. The original lineage must stay reachable: keep a local
|
|
129
129
|
branch on the old tip until the milestone ships. Adopted tasks report
|
|
130
130
|
`attested` with `provenance: owner-authorized-rebase`.
|
|
131
|
+
- `block` with a `leftover` path: the task is landed, and that path is what
|
|
132
|
+
a failed removal left of its isolate; it holds nothing that Git does not
|
|
133
|
+
have. Do not set `build/blocked`. Stop with the returned reason; after
|
|
134
|
+
the path is removed, rerun `recover`.
|
|
131
135
|
- `block` for any other reason: set `build/blocked` with the returned
|
|
132
136
|
reason and stop.
|
|
133
137
|
- `none`: take no recovery action for that task.
|
|
@@ -142,6 +146,13 @@ dispatch contract and perform steps 1–5 by hand.
|
|
|
142
146
|
order, or overlap-check tasks in prose. Readiness is continuous, not
|
|
143
147
|
layered: a task becomes selectable the moment its last dependency lands,
|
|
144
148
|
even while unrelated tasks still run, so rerun `ready` after each landing.
|
|
149
|
+
Two tasks that each share a file with the same `done` task of an earlier
|
|
150
|
+
wave never run together: `ready` returns one and holds the other until the
|
|
151
|
+
first is `done`. The second then starts from a base that has the first
|
|
152
|
+
landing, and the step 5 rerun of the earlier Verify checks both edits. A
|
|
153
|
+
task with a retained isolate keeps its turn. A task that a `supersedes`
|
|
154
|
+
field retires still counts: the superseding task never runs together
|
|
155
|
+
with a task that shares a file with the superseded task.
|
|
145
156
|
A `NEEDS-ORCHESTRATOR` block stays unselectable until its `Orchestrator
|
|
146
157
|
answer` is recorded in the task Log and the task is back to `pending`.
|
|
147
158
|
An all-done wave whose latest canonical review cycle has any blocked lens
|
|
@@ -151,6 +162,11 @@ dispatch contract and perform steps 1–5 by hand.
|
|
|
151
162
|
repair remains, `ready` returns no tasks and adds `blocked_review` (`wave`,
|
|
152
163
|
`cycle`, `waiting_waves`); a later passing canonical review cycle releases
|
|
153
164
|
the waiting waves.
|
|
165
|
+
`unreviewed_waves`, when present, lists earlier waves whose tasks are all
|
|
166
|
+
`done` and that have no canonical review file. A repair wave is not
|
|
167
|
+
listed: the next review cycle of its source wave judges it. `ready` reports
|
|
168
|
+
the listed waves and does not hold the returned tasks: run step 6 for each
|
|
169
|
+
listed wave before you dispatch.
|
|
154
170
|
Its typed errors are the recovery rule:
|
|
155
171
|
- `task-recovery-required`: for each listed failed or blocked task run
|
|
156
172
|
`python3 <absolute build_state.py> reconcile --repo <absolute primary>
|
|
@@ -263,7 +279,8 @@ dispatch contract and perform steps 1–5 by hand.
|
|
|
263
279
|
defective task contract before establishing the round base. Run ready work
|
|
264
280
|
up to capacity. Verify commands marked `Heavy: yes` (`verify_heavy` in the
|
|
265
281
|
ready set) run one at a time across every concurrent task, including the
|
|
266
|
-
step 5 rerun; light ones are unconstrained.
|
|
282
|
+
step 5 rerun; light ones are unconstrained. `verify_heavy` is also true
|
|
283
|
+
when step 5 reruns a heavy Verify of an earlier task. Do not wait for the whole
|
|
267
284
|
round before unlocking dependents: each task landing in step 5 re-opens
|
|
268
285
|
step 2, and a newly ready
|
|
269
286
|
task dispatches in a fresh round at the current clean HEAD while unrelated
|
|
@@ -289,8 +306,35 @@ dispatch contract and perform steps 1–5 by hand.
|
|
|
289
306
|
native child tools; no child command is needed. It reproduces serial work
|
|
290
307
|
in its prepared sidecar, runs authoritative Verify, records exact output,
|
|
291
308
|
lands through `isolation.py`, records eligible ledger evidence, and retires
|
|
292
|
-
the isolate.
|
|
293
|
-
|
|
309
|
+
the isolate. Authoritative Verify is the task's own Verify, then the
|
|
310
|
+
Verify of each `done` task of an earlier wave, in the same repo, that
|
|
311
|
+
shares a declared file with this task. `finish` selects those commands;
|
|
312
|
+
never select them by hand. An earlier command does not run again in two
|
|
313
|
+
cases only: it is identical to the own Verify, or the own Verify is the
|
|
314
|
+
unchanged Verify that `fix-tasks` wrote from the task's `deps` and the
|
|
315
|
+
command belongs to one of them. A Verify that only contains the command
|
|
316
|
+
text does not replace the rerun. A failed earlier-task Verify blocks the landing as a
|
|
317
|
+
failed own Verify does. The receipt (`regressions`) and the task Log
|
|
318
|
+
entry `orchestrator regression Verify of <task id>` name the earlier
|
|
319
|
+
task. The ledger records only the own command.
|
|
320
|
+
A plan-approved `supersedes` field retires the Verify of each earlier
|
|
321
|
+
task that it names: `finish` does not run that Verify for the task, or
|
|
322
|
+
for a task that lands after the task is `done`. The receipt (`retired`)
|
|
323
|
+
and the task Log entry `orchestrator regression Verify of <task id>
|
|
324
|
+
retired: superseded by <task id>` name both tasks. When the generated
|
|
325
|
+
Verify of a fix task loses only the copy of a retired Verify, the
|
|
326
|
+
`retired` entry has the key `part` and the Log entry is `orchestrator
|
|
327
|
+
regression Verify of <fix task id>: part of <task id> retired:
|
|
328
|
+
superseded by <task id>`. The superseding
|
|
329
|
+
task inherits the role of each task that it names, also through a
|
|
330
|
+
chain: after it is `done`, its Verify runs in the place of the retired
|
|
331
|
+
Verify for each later landing that shares a file with a superseded
|
|
332
|
+
task, also in its own wave. The Log entry is `orchestrator regression
|
|
333
|
+
Verify of <task id> (supersedes <task id>)`.
|
|
334
|
+
A `landed` receipt proves those steps; do not run them again
|
|
335
|
+
or author another implementation narrative. A `cleanup_warning` on a
|
|
336
|
+
landing means only that the isolate was not removed: the task is landed,
|
|
337
|
+
and the next `round` or `finish` checks the isolate again. A blocked receipt preserves
|
|
294
338
|
its failure evidence and follows the recovery rule, never a manual bypass.
|
|
295
339
|
Keep the pre-finish declared-path check above. Each landing re-opens step 2
|
|
296
340
|
so ready dependents can run while unrelated children remain in flight.
|
|
@@ -503,26 +547,69 @@ dispatch contract and perform steps 1–5 by hand.
|
|
|
503
547
|
again.
|
|
504
548
|
- Otherwise batch `fix_batches` into complete fix tasks from the task
|
|
505
549
|
template — one task per batch, never one per finding — each carrying
|
|
506
|
-
its groups' failed criteria and observed evidence verbatim.
|
|
550
|
+
its groups' failed criteria and observed evidence verbatim. Each batch
|
|
551
|
+
is in one repo: a batch with `repo` is for that member and its fix task
|
|
552
|
+
has `repo: <member>`; a batch without `repo` is for the coordinator. A
|
|
553
|
+
finding whose source tasks are in two repos gives one batch for each
|
|
554
|
+
repo. A group
|
|
507
555
|
with `repeat` true is evidence its earlier fix failed, never a new
|
|
508
556
|
finding; a re-review never spawns a duplicate fix task for a finding
|
|
509
|
-
|
|
557
|
+
that a fix task not yet `done` already carries in the same repo. A
|
|
558
|
+
repeat after its fix
|
|
559
|
+
landed gets the next fix task. After a build recovery, a changed wave
|
|
560
|
+
is reviewed again from cycle 1; the fix tasks and PLAN.md repair wave
|
|
561
|
+
of the review that recovery set aside do not count for the new one.
|
|
562
|
+
Write each fix task to `.project/tasks/` with `wave`
|
|
510
563
|
set to the current wave or a newly appended `## Wave N` heading in
|
|
511
|
-
PLAN.md before dispatch. Its dependencies include every source task
|
|
512
|
-
the batch
|
|
564
|
+
PLAN.md before dispatch. Its dependencies include every source task of
|
|
565
|
+
the batch that is in the same repo, and every landed fix task of the
|
|
566
|
+
same source wave and repo that carried one of its findings; its Verify
|
|
567
|
+
runs the Verify of those source tasks; its files are the batch files or a subset of them, never
|
|
568
|
+
none. When a finding names a fix site outside the batch files, follow
|
|
569
|
+
[build recovery](build-recovery.md) to plan, which adds a repair task
|
|
570
|
+
with those files, the batch's `## Review findings` and the same
|
|
571
|
+
dependencies; `repair-evidence` accepts that task. In
|
|
572
|
+
`## Review findings`, use one
|
|
513
573
|
`### <locator>` block per group, `Criterion: <verbatim criterion>`, and
|
|
514
574
|
every observation verbatim. Run the repair through the same isolated
|
|
515
575
|
layer loop, even when its appended wave repairs an earlier blocked wave.
|
|
576
|
+
An appended repair wave has the highest wave number and still runs before
|
|
577
|
+
the pending waves, because `ready` gates them on the blocked wave (step
|
|
578
|
+
2). Do not renumber waves or move the repair wave.
|
|
516
579
|
After landing, call `review_findings.py repair-evidence --repo <primary>
|
|
517
580
|
--wave <source wave> --cycle <source cycle> --task <repair id>` and save
|
|
518
|
-
its JSON as the repair evidence for the next review. The helper
|
|
581
|
+
its JSON as the repair evidence for the next review. The helper selects
|
|
582
|
+
the batch by the repair's locators and repo, then validates
|
|
519
583
|
the carried batch, original and repair landings, isolated product scope,
|
|
520
|
-
unchanged source reports and reusable Verify.
|
|
584
|
+
unchanged source reports and reusable Verify. For a member repair it
|
|
585
|
+
checks the product in the member repository, against the member commits
|
|
586
|
+
and the member Verify record, and the receipt adds `member`,
|
|
587
|
+
`member_base` and `member_commit`. Another change to the checked files
|
|
588
|
+
is accepted only when it is the landing of a linked repair: a `done`
|
|
589
|
+
task of the same repo that carries one of the repair's findings in
|
|
590
|
+
`## Review findings`, with the same locator and criterion, and is
|
|
591
|
+
joined to the repair by `deps`. A finding on an acceptance criterion of
|
|
592
|
+
a fix task counts as the finding that this fix task carries with the
|
|
593
|
+
same criterion; the same criterion text under another locator is
|
|
594
|
+
another finding. Linked
|
|
595
|
+
repairs in the repair base are in `earlier_repairs`. Linked repairs
|
|
596
|
+
after the repair are in `later_repairs`; then the landing and the
|
|
597
|
+
recorded Verify of the last one are the evidence, and `chain_files`
|
|
598
|
+
lists the files checked from the repair base to the tip: those of the
|
|
599
|
+
repair and of every later linked repair. From the repair base to the
|
|
600
|
+
parent of the repair landing, no landing can change these files, also
|
|
601
|
+
not a linked one. On success, brief the next
|
|
521
602
|
original-wave review with this receipt and the reviewer role's
|
|
522
603
|
**Re-review after a proven repair** contract. Reuse command evidence;
|
|
523
604
|
the new review judges the repaired product against the original criteria.
|
|
524
605
|
Preserve prior verdicts and source tasks. On helper rejection, resolve
|
|
525
606
|
the evidence blocker rather than redispatching an already proven fix.
|
|
607
|
+
When the blocker cannot be resolved, for example `repair base contains
|
|
608
|
+
unlinked changes to original product` or `product changed after the
|
|
609
|
+
repair landing` because a task that is not a linked repair changed the
|
|
610
|
+
same files, run the next review cycle of the source wave in full at the
|
|
611
|
+
current HEAD, without the receipt. This is the supported fallback: it
|
|
612
|
+
needs no ruling and no plan change.
|
|
526
613
|
At the cap, record all attempts in the STATE.md log and ask the user —
|
|
527
614
|
through an interactive user-input tool when available — after linking
|
|
528
615
|
the resolved absolute blocking wave review, every deep lens file for the
|
|
@@ -69,6 +69,19 @@ checks landed-task preservation and restored intent ownership, restores review
|
|
|
69
69
|
evidence only for unchanged contracts, and creates the normal journaled plan
|
|
70
70
|
checkpoint. A failed approval leaves recovery open.
|
|
71
71
|
|
|
72
|
+
A wave keeps its review evidence when INTENT.md, its own `## Wave N` section,
|
|
73
|
+
its task files, and every other non-wave PLAN.md section are byte-identical to
|
|
74
|
+
the recovery base. Two edits are exempt: the value of the `max_review_cycles`
|
|
75
|
+
and `wave_budget` lines in `## Config`, and all of `## Dependency notes`. In
|
|
76
|
+
`## Config` only those two values may change; any other edit there, a comment
|
|
77
|
+
edit included, drops the evidence of every wave, as does any other non-wave
|
|
78
|
+
edit. A `- review_panel:` line that is added, removed, or changed anywhere in
|
|
79
|
+
PLAN.md also drops the evidence of every wave. The approval result reports
|
|
80
|
+
this in `recovery_reviews`: `restored` lists the waves that kept their evidence, and
|
|
81
|
+
`review_again` lists each wave that lost it, with the reason. Review every
|
|
82
|
+
`review_again` wave again after build resumes; completion refuses a wave
|
|
83
|
+
without a passing review.
|
|
84
|
+
|
|
72
85
|
Return through `plan/done → build/active` with event `build started`. The dispatch
|
|
73
86
|
driver uses a separate record directory for this recovery base, while retaining
|
|
74
87
|
the milestone budget ledger. Resume only from the new approved task inventory.
|
|
@@ -51,9 +51,13 @@ costs the run.
|
|
|
51
51
|
2. Satisfy every acceptance criterion and every owned INTENT success
|
|
52
52
|
criterion within the Approach constraints, matching conventions in the
|
|
53
53
|
listed files.
|
|
54
|
-
3. Edit only
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
3. Edit only paths in `files`, plus the task file's Log. A declared
|
|
55
|
+
directory covers the files below it; a declared file covers only itself.
|
|
56
|
+
There is no exception for imports, routes, generated files, or wiring.
|
|
57
|
+
4. Run Verify. Fix failures only within the allowed paths. The orchestrator
|
|
58
|
+
also runs the Verify of each earlier-wave task that shares a file with
|
|
59
|
+
yours. A Log entry `orchestrator regression Verify of <task id>` with
|
|
60
|
+
`fail` names a task you broke; make its Verify pass too.
|
|
57
61
|
5. Append the implementation and Verify result to Log. On a block, append the
|
|
58
62
|
specific reason. Do not edit frontmatter state.
|
|
59
63
|
|
|
@@ -70,7 +70,9 @@ settings block; their default inheritance remains usable.
|
|
|
70
70
|
Resolve the bundled helper to an absolute path. Use one record under the Git
|
|
71
71
|
common directory's `gsd-path/model-selection/` directory per assignment. Scope
|
|
72
72
|
the path and `--scope` to the milestone, active/lookahead track, and review cycle
|
|
73
|
-
where applicable; later work must not reuse an earlier record.
|
|
73
|
+
where applicable; later work must not reuse an earlier record. The helper
|
|
74
|
+
refuses a relative `--record`, and `release` of a missing record names the
|
|
75
|
+
path and creates nothing.
|
|
74
76
|
|
|
75
77
|
```text
|
|
76
78
|
python3 -B <helper> resolve --repo <primary> --scope <milestone/track/cycle> --assignment <logical-name> --role <role> --record <absolute-record> --capabilities <advertised-json>
|
|
@@ -38,8 +38,8 @@ bundles this file; spawned agents follow their role brief instead.
|
|
|
38
38
|
the lookahead planning track for the next milestone; it follows the same
|
|
39
39
|
marker rule, owns no task frontmatter, and never binds a branch.
|
|
40
40
|
- STATE.integration_default is the project closeout choice and
|
|
41
|
-
STATE.integration is the current milestone choice. Both are `direct
|
|
42
|
-
`pull-request`; STATE.integration_source is `default` or `milestone` and
|
|
41
|
+
STATE.integration is the current milestone choice. Both are `direct`,
|
|
42
|
+
`pull-request`, or `external-landing`; STATE.integration_source is `default` or `milestone` and
|
|
43
43
|
preserves explicit override provenance. Older v2 state defaults to `direct`,
|
|
44
44
|
and modes may be changed only through `pipeline_state.py
|
|
45
45
|
configure-integration` before build. A next milestone resets its current
|
|
@@ -82,7 +82,9 @@ bundles this file; spawned agents follow their role brief instead.
|
|
|
82
82
|
`isolation.py attest` may stand in for it: one `.project/`-only commit that
|
|
83
83
|
names the base, the attested HEAD, the declared files that changed, the
|
|
84
84
|
task Verify recorded as passing at that HEAD, and the ruling verbatim.
|
|
85
|
-
`recover` reports it as `attested`, never as a proven landing.
|
|
85
|
+
`recover` reports it as `attested`, never as a proven landing. Attestation
|
|
86
|
+
matches the declared files literally: work that is only below a declared
|
|
87
|
+
directory can land but cannot be attested.
|
|
86
88
|
- All pipeline work for a milestone lives on `gsd-path/M00N` (M001, M002,
|
|
87
89
|
…) bound in STATE.branch. The next milestone binds a new unused
|
|
88
90
|
`gsd-path/M00N` at the remote default after the previous ship integrates.
|
|
@@ -90,6 +92,12 @@ bundles this file; spawned agents follow their role brief instead.
|
|
|
90
92
|
branch — either Path's direct merge or a Path-owned PR merged by the user.
|
|
91
93
|
The bound branch never receives merges or back-merges and is never the
|
|
92
94
|
GitHub default.
|
|
95
|
+
- The default branch is the one that STATE `default_branch` records at
|
|
96
|
+
initialization; a STATE file without the field means `main`. `main` and
|
|
97
|
+
`origin/main` in these rules mean that branch. Never change the record and
|
|
98
|
+
never take the name from a later `origin/HEAD` lookup. For a member
|
|
99
|
+
repository, the branch is the one that its `.project/MEMBERS.md` section
|
|
100
|
+
records as `Default branch`; a section without the field means `main`.
|
|
93
101
|
- After initialization writes STATE.md, and before entering the first pipeline
|
|
94
102
|
phase in an existing Git repository, the router calls
|
|
95
103
|
`scripts/pipeline_git.py bind-initial` with the selected M00N and exact
|
|
@@ -128,8 +136,9 @@ bundles this file; spawned agents follow their role brief instead.
|
|
|
128
136
|
for the current STATE.branch milestone must be an ancestor of origin/main;
|
|
129
137
|
if it is not, that milestone's integration is incomplete and control routes
|
|
130
138
|
to ship, not build. Direct mode requires the matching canonical `integrate:`
|
|
131
|
-
commit; PR mode requires tag metadata and a two-parent merge whose
|
|
132
|
-
parent is the ship commit
|
|
139
|
+
commit; PR mode requires tag metadata and either a two-parent merge whose
|
|
140
|
+
second parent is the ship commit or a proven rebase merge of the ship
|
|
141
|
+
commits. A null branch returns
|
|
133
142
|
to the router; build never creates, selects, switches, or rebinds it.
|
|
134
143
|
- The ship phase makes exactly one commit on the bound branch — the
|
|
135
144
|
`.project/`-only ship commit recording
|