@opengsd/gsd-path 1.0.0
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 +397 -0
- package/DOCS.md +341 -0
- package/FULL.md +475 -0
- package/GUIDE.md +23 -0
- package/HOOKS.md +273 -0
- package/LICENSE +21 -0
- package/MIGRATE.md +100 -0
- package/QUICK.md +146 -0
- package/README.md +280 -0
- package/RUNTIME.md +229 -0
- package/UPDATE.md +196 -0
- package/WORKFLOW.md +683 -0
- package/package.json +80 -0
- package/platforms/claude/dispatch.md +63 -0
- package/platforms/copilot/dispatch.md +61 -0
- package/platforms/cursor/agent.md +17 -0
- package/platforms/cursor/dispatch.md +63 -0
- package/platforms/grok/dispatch.md +61 -0
- package/platforms/kimi/dispatch.md +64 -0
- package/platforms/kiro/dispatch.md +58 -0
- package/platforms/opencode/dispatch.md +62 -0
- package/platforms/qwen/dispatch.md +60 -0
- package/platforms/shared-agents/dispatch.md +131 -0
- package/plugin.json +14 -0
- package/scripts/_common.py +180 -0
- package/scripts/archive_milestone.py +2265 -0
- package/scripts/bootstrap_repository.py +710 -0
- package/scripts/build_state.py +854 -0
- package/scripts/check_docs_audit.py +463 -0
- package/scripts/check_handoffs.py +1855 -0
- package/scripts/check_task_briefs.py +376 -0
- package/scripts/check_update.py +93 -0
- package/scripts/core_hook_gate.py +34 -0
- package/scripts/core_hook_settings.py +119 -0
- package/scripts/detect_project.py +1517 -0
- package/scripts/discussion_records.py +619 -0
- package/scripts/discussion_validate.py +1321 -0
- package/scripts/dispatch_driver.py +1812 -0
- package/scripts/git_guard.py +759 -0
- package/scripts/guard_hook.py +2124 -0
- package/scripts/install.mjs +3239 -0
- package/scripts/install.py +3008 -0
- package/scripts/integration.py +1433 -0
- package/scripts/isolation.py +3538 -0
- package/scripts/lean_verification.py +256 -0
- package/scripts/loop_run.py +837 -0
- package/scripts/migrate_core.py +169 -0
- package/scripts/pipeline_diagnose.py +715 -0
- package/scripts/pipeline_git.py +940 -0
- package/scripts/pipeline_state.py +2291 -0
- package/scripts/pipeline_undo.py +1039 -0
- package/scripts/promote_lookahead.py +415 -0
- package/scripts/review_findings.py +714 -0
- package/scripts/review_panel.py +553 -0
- package/scripts/skill-resources.json +340 -0
- package/scripts/state_checkpoint.py +1039 -0
- package/scripts/state_promote.py +743 -0
- package/scripts/status_runtime.py +122 -0
- package/scripts/sync_skill_resources.py +259 -0
- package/scripts/token_budget.py +146 -0
- package/scripts/wizard.mjs +179 -0
- package/scripts/workflow_run.py +117 -0
- package/skills/gsd-path/BUILD.md +700 -0
- package/skills/gsd-path/DECIDE.md +115 -0
- package/skills/gsd-path/DEFINE.md +297 -0
- package/skills/gsd-path/DOCS-AUDIT.md +190 -0
- package/skills/gsd-path/INSPECT.md +167 -0
- package/skills/gsd-path/PLAN.md +411 -0
- package/skills/gsd-path/RESEARCH.md +159 -0
- package/skills/gsd-path/ROADMAP.md +215 -0
- package/skills/gsd-path/SHIP.md +412 -0
- package/skills/gsd-path/SKILL.md +471 -0
- package/skills/gsd-path/agents/openai.yaml +6 -0
- package/skills/gsd-path/references/codebase-mapper.md +52 -0
- package/skills/gsd-path/references/coder.md +90 -0
- package/skills/gsd-path/references/decider.md +36 -0
- package/skills/gsd-path/references/dispatch.md +131 -0
- package/skills/gsd-path/references/docs-auditor.md +60 -0
- package/skills/gsd-path/references/planner.md +104 -0
- package/skills/gsd-path/references/researcher.md +42 -0
- package/skills/gsd-path/references/reviewer.md +188 -0
- package/skills/gsd-path/references/roadmapper.md +48 -0
- package/skills/gsd-path/scripts/_common.py +180 -0
- package/skills/gsd-path/scripts/archive_milestone.py +2265 -0
- package/skills/gsd-path/scripts/bootstrap_repository.py +710 -0
- package/skills/gsd-path/scripts/build_state.py +854 -0
- package/skills/gsd-path/scripts/check_docs_audit.py +463 -0
- package/skills/gsd-path/scripts/check_handoffs.py +1855 -0
- package/skills/gsd-path/scripts/check_task_briefs.py +376 -0
- package/skills/gsd-path/scripts/check_update.py +93 -0
- package/skills/gsd-path/scripts/detect_project.py +1517 -0
- package/skills/gsd-path/scripts/discussion_records.py +619 -0
- package/skills/gsd-path/scripts/discussion_validate.py +1321 -0
- package/skills/gsd-path/scripts/dispatch_driver.py +1812 -0
- package/skills/gsd-path/scripts/integration.py +1433 -0
- package/skills/gsd-path/scripts/isolation.py +3538 -0
- package/skills/gsd-path/scripts/lean_verification.py +256 -0
- package/skills/gsd-path/scripts/loop_run.py +837 -0
- package/skills/gsd-path/scripts/pipeline_git.py +940 -0
- package/skills/gsd-path/scripts/pipeline_state.py +2291 -0
- package/skills/gsd-path/scripts/promote_lookahead.py +415 -0
- package/skills/gsd-path/scripts/review_findings.py +714 -0
- package/skills/gsd-path/scripts/review_panel.py +553 -0
- package/skills/gsd-path/scripts/state_checkpoint.py +1039 -0
- package/skills/gsd-path/scripts/state_promote.py +743 -0
- package/skills/gsd-path/scripts/token_budget.py +146 -0
- package/skills/gsd-path/scripts/workflow_run.py +117 -0
- package/skills/gsd-path/templates/answers.md +29 -0
- package/skills/gsd-path/templates/archive-manifest.md +37 -0
- package/skills/gsd-path/templates/charter.md +50 -0
- package/skills/gsd-path/templates/codebase.md +46 -0
- package/skills/gsd-path/templates/dialogue.md +21 -0
- package/skills/gsd-path/templates/docs-audit.md +69 -0
- package/skills/gsd-path/templates/evidence.md +24 -0
- package/skills/gsd-path/templates/final-review.md +27 -0
- package/skills/gsd-path/templates/gap-review.md +20 -0
- package/skills/gsd-path/templates/intent.md +98 -0
- package/skills/gsd-path/templates/loop.md +59 -0
- package/skills/gsd-path/templates/patch-findings.md +16 -0
- package/skills/gsd-path/templates/plan-panel.md +25 -0
- package/skills/gsd-path/templates/plan.md +89 -0
- package/skills/gsd-path/templates/repository.md +16 -0
- package/skills/gsd-path/templates/research-handoff.md +25 -0
- package/skills/gsd-path/templates/roadmap.md +38 -0
- package/skills/gsd-path/templates/skeptic.md +36 -0
- package/skills/gsd-path/templates/state.md +27 -0
- package/skills/gsd-path/templates/synthesis.md +36 -0
- package/skills/gsd-path/templates/task.md +74 -0
- package/skills/gsd-path/templates/wave-panel.md +25 -0
- package/skills/gsd-path/templates/wave-review.md +64 -0
- package/skills/gsd-path-build/SKILL.md +700 -0
- package/skills/gsd-path-build/agents/openai.yaml +6 -0
- package/skills/gsd-path-build/references/coder.md +90 -0
- package/skills/gsd-path-build/references/dispatch.md +131 -0
- package/skills/gsd-path-build/references/reviewer.md +188 -0
- package/skills/gsd-path-build/scripts/_common.py +180 -0
- package/skills/gsd-path-build/scripts/archive_milestone.py +2265 -0
- package/skills/gsd-path-build/scripts/build_state.py +854 -0
- package/skills/gsd-path-build/scripts/check_handoffs.py +1855 -0
- package/skills/gsd-path-build/scripts/check_task_briefs.py +376 -0
- package/skills/gsd-path-build/scripts/discussion_records.py +619 -0
- package/skills/gsd-path-build/scripts/discussion_validate.py +1321 -0
- package/skills/gsd-path-build/scripts/dispatch_driver.py +1812 -0
- package/skills/gsd-path-build/scripts/integration.py +1433 -0
- package/skills/gsd-path-build/scripts/isolation.py +3538 -0
- package/skills/gsd-path-build/scripts/loop_run.py +837 -0
- package/skills/gsd-path-build/scripts/pipeline_git.py +940 -0
- package/skills/gsd-path-build/scripts/pipeline_state.py +2291 -0
- package/skills/gsd-path-build/scripts/review_findings.py +714 -0
- package/skills/gsd-path-build/scripts/review_panel.py +553 -0
- package/skills/gsd-path-build/scripts/state_checkpoint.py +1039 -0
- package/skills/gsd-path-build/scripts/state_promote.py +743 -0
- package/skills/gsd-path-build/scripts/token_budget.py +146 -0
- package/skills/gsd-path-build/scripts/workflow_run.py +117 -0
- package/skills/gsd-path-build/templates/skeptic.md +36 -0
- package/skills/gsd-path-build/templates/task.md +74 -0
- package/skills/gsd-path-build/templates/wave-panel.md +25 -0
- package/skills/gsd-path-build/templates/wave-review.md +64 -0
- package/skills/gsd-path-decide/SKILL.md +115 -0
- package/skills/gsd-path-decide/agents/openai.yaml +6 -0
- package/skills/gsd-path-decide/references/decider.md +36 -0
- package/skills/gsd-path-decide/references/dispatch.md +131 -0
- package/skills/gsd-path-decide/scripts/_common.py +180 -0
- package/skills/gsd-path-decide/scripts/check_handoffs.py +1855 -0
- package/skills/gsd-path-decide/scripts/check_task_briefs.py +376 -0
- package/skills/gsd-path-decide/scripts/discussion_records.py +619 -0
- package/skills/gsd-path-decide/scripts/isolation.py +3538 -0
- package/skills/gsd-path-decide/scripts/pipeline_git.py +940 -0
- package/skills/gsd-path-decide/scripts/pipeline_state.py +2291 -0
- package/skills/gsd-path-decide/scripts/state_checkpoint.py +1039 -0
- package/skills/gsd-path-decide/scripts/state_promote.py +743 -0
- package/skills/gsd-path-decide/templates/synthesis.md +36 -0
- package/skills/gsd-path-define/SKILL.md +297 -0
- package/skills/gsd-path-define/agents/openai.yaml +6 -0
- package/skills/gsd-path-define/scripts/_common.py +180 -0
- package/skills/gsd-path-define/scripts/check_handoffs.py +1855 -0
- package/skills/gsd-path-define/scripts/check_task_briefs.py +376 -0
- package/skills/gsd-path-define/scripts/detect_project.py +1517 -0
- package/skills/gsd-path-define/scripts/discussion_records.py +619 -0
- package/skills/gsd-path-define/scripts/isolation.py +3538 -0
- package/skills/gsd-path-define/scripts/pipeline_git.py +940 -0
- package/skills/gsd-path-define/scripts/pipeline_state.py +2291 -0
- package/skills/gsd-path-define/scripts/state_checkpoint.py +1039 -0
- package/skills/gsd-path-define/scripts/state_promote.py +743 -0
- package/skills/gsd-path-define/templates/charter.md +50 -0
- package/skills/gsd-path-define/templates/intent.md +98 -0
- package/skills/gsd-path-define/templates/state.md +27 -0
- package/skills/gsd-path-discuss/SKILL.md +162 -0
- package/skills/gsd-path-discuss/agents/openai.yaml +6 -0
- package/skills/gsd-path-discuss/scripts/_common.py +180 -0
- package/skills/gsd-path-discuss/scripts/discussion_records.py +619 -0
- package/skills/gsd-path-discuss/templates/answers.md +29 -0
- package/skills/gsd-path-discuss/templates/dialogue.md +21 -0
- package/skills/gsd-path-docs-audit/SKILL.md +190 -0
- package/skills/gsd-path-docs-audit/agents/openai.yaml +6 -0
- package/skills/gsd-path-docs-audit/references/dispatch.md +131 -0
- package/skills/gsd-path-docs-audit/references/docs-auditor.md +60 -0
- package/skills/gsd-path-docs-audit/scripts/_common.py +180 -0
- package/skills/gsd-path-docs-audit/scripts/check_docs_audit.py +463 -0
- package/skills/gsd-path-docs-audit/scripts/check_handoffs.py +1855 -0
- package/skills/gsd-path-docs-audit/scripts/check_task_briefs.py +376 -0
- package/skills/gsd-path-docs-audit/scripts/discussion_records.py +619 -0
- package/skills/gsd-path-docs-audit/scripts/isolation.py +3538 -0
- package/skills/gsd-path-docs-audit/scripts/pipeline_git.py +940 -0
- package/skills/gsd-path-docs-audit/scripts/pipeline_state.py +2291 -0
- package/skills/gsd-path-docs-audit/scripts/state_checkpoint.py +1039 -0
- package/skills/gsd-path-docs-audit/scripts/state_promote.py +743 -0
- package/skills/gsd-path-docs-audit/templates/docs-audit.md +69 -0
- package/skills/gsd-path-forensics/SKILL.md +39 -0
- package/skills/gsd-path-forensics/agents/openai.yaml +6 -0
- package/skills/gsd-path-forensics/scripts/_common.py +180 -0
- package/skills/gsd-path-forensics/scripts/discussion_records.py +619 -0
- package/skills/gsd-path-forensics/scripts/pipeline_diagnose.py +715 -0
- package/skills/gsd-path-forensics/scripts/pipeline_undo.py +1039 -0
- package/skills/gsd-path-inspect/SKILL.md +167 -0
- package/skills/gsd-path-inspect/agents/openai.yaml +6 -0
- package/skills/gsd-path-inspect/references/codebase-mapper.md +52 -0
- package/skills/gsd-path-inspect/references/dispatch.md +131 -0
- package/skills/gsd-path-inspect/references/docs-auditor.md +60 -0
- package/skills/gsd-path-inspect/scripts/_common.py +180 -0
- package/skills/gsd-path-inspect/scripts/check_docs_audit.py +463 -0
- package/skills/gsd-path-inspect/scripts/check_handoffs.py +1855 -0
- package/skills/gsd-path-inspect/scripts/check_task_briefs.py +376 -0
- package/skills/gsd-path-inspect/scripts/detect_project.py +1517 -0
- package/skills/gsd-path-inspect/scripts/discussion_records.py +619 -0
- package/skills/gsd-path-inspect/scripts/isolation.py +3538 -0
- package/skills/gsd-path-inspect/scripts/pipeline_git.py +940 -0
- package/skills/gsd-path-inspect/scripts/pipeline_state.py +2291 -0
- package/skills/gsd-path-inspect/scripts/state_checkpoint.py +1039 -0
- package/skills/gsd-path-inspect/scripts/state_promote.py +743 -0
- package/skills/gsd-path-inspect/templates/codebase.md +46 -0
- package/skills/gsd-path-inspect/templates/docs-audit.md +69 -0
- package/skills/gsd-path-inspect/templates/state.md +27 -0
- package/skills/gsd-path-loop/SKILL.md +98 -0
- package/skills/gsd-path-loop/agents/openai.yaml +6 -0
- package/skills/gsd-path-loop/examples/ci-repair.LOOP.md +61 -0
- package/skills/gsd-path-loop/scripts/_common.py +180 -0
- package/skills/gsd-path-loop/scripts/discussion_records.py +619 -0
- package/skills/gsd-path-loop/scripts/loop_run.py +837 -0
- package/skills/gsd-path-loop/templates/loop.md +59 -0
- package/skills/gsd-path-migrate/SKILL.md +134 -0
- package/skills/gsd-path-migrate/agents/openai.yaml +6 -0
- package/skills/gsd-path-migrate/scripts/core_hook_gate.py +34 -0
- package/skills/gsd-path-migrate/scripts/core_hook_settings.py +119 -0
- package/skills/gsd-path-migrate/scripts/discussion_records.py +619 -0
- package/skills/gsd-path-migrate/scripts/migrate_core.py +169 -0
- package/skills/gsd-path-plan/SKILL.md +411 -0
- package/skills/gsd-path-plan/agents/openai.yaml +6 -0
- package/skills/gsd-path-plan/references/dispatch.md +131 -0
- package/skills/gsd-path-plan/references/planner.md +104 -0
- package/skills/gsd-path-plan/scripts/_common.py +180 -0
- package/skills/gsd-path-plan/scripts/check_handoffs.py +1855 -0
- package/skills/gsd-path-plan/scripts/check_task_briefs.py +376 -0
- package/skills/gsd-path-plan/scripts/discussion_records.py +619 -0
- package/skills/gsd-path-plan/scripts/isolation.py +3538 -0
- package/skills/gsd-path-plan/scripts/pipeline_git.py +940 -0
- package/skills/gsd-path-plan/scripts/pipeline_state.py +2291 -0
- package/skills/gsd-path-plan/scripts/review_panel.py +553 -0
- package/skills/gsd-path-plan/scripts/state_checkpoint.py +1039 -0
- package/skills/gsd-path-plan/scripts/state_promote.py +743 -0
- package/skills/gsd-path-plan/scripts/workflow_run.py +117 -0
- package/skills/gsd-path-plan/templates/patch-findings.md +16 -0
- package/skills/gsd-path-plan/templates/plan-panel.md +25 -0
- package/skills/gsd-path-plan/templates/plan.md +89 -0
- package/skills/gsd-path-plan/templates/task.md +74 -0
- package/skills/gsd-path-research/SKILL.md +159 -0
- package/skills/gsd-path-research/agents/openai.yaml +6 -0
- package/skills/gsd-path-research/references/dispatch.md +131 -0
- package/skills/gsd-path-research/references/researcher.md +42 -0
- package/skills/gsd-path-research/scripts/_common.py +180 -0
- package/skills/gsd-path-research/scripts/check_handoffs.py +1855 -0
- package/skills/gsd-path-research/scripts/check_task_briefs.py +376 -0
- package/skills/gsd-path-research/scripts/discussion_records.py +619 -0
- package/skills/gsd-path-research/scripts/isolation.py +3538 -0
- package/skills/gsd-path-research/scripts/pipeline_git.py +940 -0
- package/skills/gsd-path-research/scripts/pipeline_state.py +2291 -0
- package/skills/gsd-path-research/scripts/state_checkpoint.py +1039 -0
- package/skills/gsd-path-research/scripts/state_promote.py +743 -0
- package/skills/gsd-path-research/templates/evidence.md +24 -0
- package/skills/gsd-path-research/templates/research-handoff.md +25 -0
- package/skills/gsd-path-roadmap/SKILL.md +215 -0
- package/skills/gsd-path-roadmap/agents/openai.yaml +6 -0
- package/skills/gsd-path-roadmap/references/dispatch.md +131 -0
- package/skills/gsd-path-roadmap/references/roadmapper.md +48 -0
- package/skills/gsd-path-roadmap/scripts/_common.py +180 -0
- package/skills/gsd-path-roadmap/scripts/archive_milestone.py +2265 -0
- package/skills/gsd-path-roadmap/scripts/check_handoffs.py +1855 -0
- package/skills/gsd-path-roadmap/scripts/check_task_briefs.py +376 -0
- package/skills/gsd-path-roadmap/scripts/detect_project.py +1517 -0
- package/skills/gsd-path-roadmap/scripts/discussion_records.py +619 -0
- package/skills/gsd-path-roadmap/scripts/discussion_validate.py +1321 -0
- package/skills/gsd-path-roadmap/scripts/integration.py +1433 -0
- package/skills/gsd-path-roadmap/scripts/isolation.py +3538 -0
- package/skills/gsd-path-roadmap/scripts/pipeline_git.py +940 -0
- package/skills/gsd-path-roadmap/scripts/pipeline_state.py +2291 -0
- package/skills/gsd-path-roadmap/scripts/promote_lookahead.py +415 -0
- package/skills/gsd-path-roadmap/scripts/review_panel.py +553 -0
- package/skills/gsd-path-roadmap/scripts/state_checkpoint.py +1039 -0
- package/skills/gsd-path-roadmap/scripts/state_promote.py +743 -0
- package/skills/gsd-path-roadmap/templates/roadmap.md +38 -0
- package/skills/gsd-path-ship/SKILL.md +412 -0
- package/skills/gsd-path-ship/agents/openai.yaml +6 -0
- package/skills/gsd-path-ship/references/dispatch.md +131 -0
- package/skills/gsd-path-ship/references/reviewer.md +188 -0
- package/skills/gsd-path-ship/scripts/_common.py +180 -0
- package/skills/gsd-path-ship/scripts/archive_milestone.py +2265 -0
- package/skills/gsd-path-ship/scripts/build_state.py +854 -0
- package/skills/gsd-path-ship/scripts/check_handoffs.py +1855 -0
- package/skills/gsd-path-ship/scripts/check_task_briefs.py +376 -0
- package/skills/gsd-path-ship/scripts/discussion_records.py +619 -0
- package/skills/gsd-path-ship/scripts/discussion_validate.py +1321 -0
- package/skills/gsd-path-ship/scripts/integration.py +1433 -0
- package/skills/gsd-path-ship/scripts/isolation.py +3538 -0
- package/skills/gsd-path-ship/scripts/lean_verification.py +256 -0
- package/skills/gsd-path-ship/scripts/pipeline_git.py +940 -0
- package/skills/gsd-path-ship/scripts/pipeline_state.py +2291 -0
- package/skills/gsd-path-ship/scripts/review_panel.py +553 -0
- package/skills/gsd-path-ship/scripts/state_checkpoint.py +1039 -0
- package/skills/gsd-path-ship/scripts/state_promote.py +743 -0
- package/skills/gsd-path-ship/scripts/workflow_run.py +117 -0
- package/skills/gsd-path-ship/templates/archive-manifest.md +37 -0
- package/skills/gsd-path-ship/templates/final-review.md +27 -0
- package/skills/gsd-path-ship/templates/gap-review.md +20 -0
- package/skills/gsd-path-ship/templates/patch-findings.md +16 -0
- package/skills/gsd-path-ship/templates/wave-review.md +64 -0
- package/skills/gsd-path-undo/SKILL.md +45 -0
- package/skills/gsd-path-undo/agents/openai.yaml +6 -0
- package/skills/gsd-path-undo/scripts/_common.py +180 -0
- package/skills/gsd-path-undo/scripts/discussion_records.py +619 -0
- package/skills/gsd-path-undo/scripts/pipeline_undo.py +1039 -0
- package/skills/path/BUILD.md +700 -0
- package/skills/path/DECIDE.md +115 -0
- package/skills/path/DEFINE.md +297 -0
- package/skills/path/DOCS-AUDIT.md +190 -0
- package/skills/path/INSPECT.md +167 -0
- package/skills/path/PLAN.md +411 -0
- package/skills/path/RESEARCH.md +159 -0
- package/skills/path/ROADMAP.md +215 -0
- package/skills/path/SHIP.md +412 -0
- package/skills/path/SKILL.md +471 -0
- package/skills/path/agents/openai.yaml +6 -0
- package/skills/path/references/codebase-mapper.md +52 -0
- package/skills/path/references/coder.md +90 -0
- package/skills/path/references/decider.md +36 -0
- package/skills/path/references/dispatch.md +131 -0
- package/skills/path/references/docs-auditor.md +60 -0
- package/skills/path/references/planner.md +104 -0
- package/skills/path/references/researcher.md +42 -0
- package/skills/path/references/reviewer.md +188 -0
- package/skills/path/references/roadmapper.md +48 -0
- package/skills/path/scripts/_common.py +180 -0
- package/skills/path/scripts/archive_milestone.py +2265 -0
- package/skills/path/scripts/bootstrap_repository.py +710 -0
- package/skills/path/scripts/build_state.py +854 -0
- package/skills/path/scripts/check_docs_audit.py +463 -0
- package/skills/path/scripts/check_handoffs.py +1855 -0
- package/skills/path/scripts/check_task_briefs.py +376 -0
- package/skills/path/scripts/check_update.py +93 -0
- package/skills/path/scripts/detect_project.py +1517 -0
- package/skills/path/scripts/discussion_records.py +619 -0
- package/skills/path/scripts/discussion_validate.py +1321 -0
- package/skills/path/scripts/dispatch_driver.py +1812 -0
- package/skills/path/scripts/integration.py +1433 -0
- package/skills/path/scripts/isolation.py +3538 -0
- package/skills/path/scripts/lean_verification.py +256 -0
- package/skills/path/scripts/loop_run.py +837 -0
- package/skills/path/scripts/pipeline_git.py +940 -0
- package/skills/path/scripts/pipeline_state.py +2291 -0
- package/skills/path/scripts/promote_lookahead.py +415 -0
- package/skills/path/scripts/review_findings.py +714 -0
- package/skills/path/scripts/review_panel.py +553 -0
- package/skills/path/scripts/state_checkpoint.py +1039 -0
- package/skills/path/scripts/state_promote.py +743 -0
- package/skills/path/scripts/token_budget.py +146 -0
- package/skills/path/scripts/workflow_run.py +117 -0
- package/skills/path/templates/answers.md +29 -0
- package/skills/path/templates/archive-manifest.md +37 -0
- package/skills/path/templates/charter.md +50 -0
- package/skills/path/templates/codebase.md +46 -0
- package/skills/path/templates/dialogue.md +21 -0
- package/skills/path/templates/docs-audit.md +69 -0
- package/skills/path/templates/evidence.md +24 -0
- package/skills/path/templates/final-review.md +27 -0
- package/skills/path/templates/gap-review.md +20 -0
- package/skills/path/templates/intent.md +98 -0
- package/skills/path/templates/loop.md +59 -0
- package/skills/path/templates/patch-findings.md +16 -0
- package/skills/path/templates/plan-panel.md +25 -0
- package/skills/path/templates/plan.md +89 -0
- package/skills/path/templates/repository.md +16 -0
- package/skills/path/templates/research-handoff.md +25 -0
- package/skills/path/templates/roadmap.md +38 -0
- package/skills/path/templates/skeptic.md +36 -0
- package/skills/path/templates/state.md +27 -0
- package/skills/path/templates/synthesis.md +36 -0
- package/skills/path/templates/task.md +74 -0
- package/skills/path/templates/wave-panel.md +25 -0
- package/skills/path/templates/wave-review.md +64 -0
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
"""Reuse complete review evidence without another model review."""
|
|
2
|
+
|
|
3
|
+
import argparse
|
|
4
|
+
import hashlib
|
|
5
|
+
import json
|
|
6
|
+
import re
|
|
7
|
+
import subprocess
|
|
8
|
+
import sys
|
|
9
|
+
from pathlib import Path
|
|
10
|
+
|
|
11
|
+
if __package__:
|
|
12
|
+
from scripts import _common
|
|
13
|
+
from scripts import check_handoffs as contracts
|
|
14
|
+
from scripts import build_state, isolation
|
|
15
|
+
else:
|
|
16
|
+
import _common
|
|
17
|
+
import check_handoffs as contracts
|
|
18
|
+
import build_state
|
|
19
|
+
import isolation
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def _git(repo, *arguments):
|
|
23
|
+
return subprocess.run(["git", "-C", str(repo), *arguments],
|
|
24
|
+
capture_output=True, text=True, check=True).stdout.strip()
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def _reusable_wave(repo, expected_head):
|
|
28
|
+
contracts._require_state(repo, "ship", "active", ".project")
|
|
29
|
+
if _git(repo, "rev-parse", "HEAD") != expected_head:
|
|
30
|
+
raise contracts.HandoffError("primary HEAD changed")
|
|
31
|
+
intent = contracts._read(repo, ".project/intent/INTENT.md")
|
|
32
|
+
if contracts._line_value(intent, "Lane:") != "quick":
|
|
33
|
+
raise contracts.HandoffError("only a complete quick-lane wave can replace final review")
|
|
34
|
+
plan = contracts._read(repo, ".project/plan/PLAN.md")
|
|
35
|
+
depths, _ = contracts._plan_waves(plan)
|
|
36
|
+
if depths != {1: "full"}:
|
|
37
|
+
raise contracts.HandoffError("reuse requires one independently reviewed full wave")
|
|
38
|
+
candidates = []
|
|
39
|
+
for path in (repo / ".project/review").glob("wave-1.cycle*.md"):
|
|
40
|
+
match = re.fullmatch(r"wave-1\.cycle([1-9]\d*)\.md", path.name)
|
|
41
|
+
if match:
|
|
42
|
+
candidates.append((int(match[1]), path))
|
|
43
|
+
if not candidates:
|
|
44
|
+
raise contracts.HandoffError("full wave review is missing")
|
|
45
|
+
_, path = max(candidates)
|
|
46
|
+
relative = path.relative_to(repo).as_posix()
|
|
47
|
+
text = contracts._read(repo, relative)
|
|
48
|
+
if contracts._line_value(text, "Review scope:") != "final":
|
|
49
|
+
raise contracts.HandoffError("wave reviewer did not assess final scope")
|
|
50
|
+
reviewed = contracts._reviewed_head(text, relative)
|
|
51
|
+
_git(repo, "merge-base", "--is-ancestor", reviewed, expected_head)
|
|
52
|
+
if _git(repo, "show", f"{expected_head}:{relative}") != text.strip():
|
|
53
|
+
raise contracts.HandoffError("wave evidence differs from its committed version")
|
|
54
|
+
bookkeeping = {
|
|
55
|
+
".project/STATE.md", relative, ".project/build/verify-ledger.jsonl",
|
|
56
|
+
".project/build/evidence.json",
|
|
57
|
+
}
|
|
58
|
+
changed = set(_git(repo, "diff", "--name-only", reviewed, expected_head).splitlines())
|
|
59
|
+
if changed - bookkeeping:
|
|
60
|
+
raise contracts.HandoffError("product or approved contracts changed after review")
|
|
61
|
+
dirty = isolation.uncommitted_paths(repo)
|
|
62
|
+
current_outputs = bookkeeping | {".project/review/FINAL.md", ".project/review/final-gap-1.md"}
|
|
63
|
+
if dirty - current_outputs:
|
|
64
|
+
raise contracts.HandoffError("review inputs have uncommitted changes")
|
|
65
|
+
wave = contracts.validate_wave_evidence(repo, review=relative)
|
|
66
|
+
criteria = contracts._success_criteria(intent)
|
|
67
|
+
if wave["verdict"] != "pass" or set(wave["owned"]) != set(criteria):
|
|
68
|
+
raise contracts.HandoffError("wave does not prove every success criterion")
|
|
69
|
+
return relative, text, criteria, reviewed
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
def _final_view(relative, text, criteria, reviewed, head):
|
|
73
|
+
coverage = contracts._section(text, "Intent coverage")
|
|
74
|
+
headings = list(re.finditer(r"(?m)^### (SC[1-9]\d*) — (.+): pass\s*$", coverage))
|
|
75
|
+
blocks = {}
|
|
76
|
+
for index, heading in enumerate(headings):
|
|
77
|
+
end = headings[index + 1].start() if index + 1 < len(headings) else len(coverage)
|
|
78
|
+
blocks[heading[1]] = coverage[heading.end():end]
|
|
79
|
+
lines = ["# Final Review — reused full wave", "", f"Reviewed HEAD: {head}",
|
|
80
|
+
"Overall verdict: pass", f"Source review: {relative}",
|
|
81
|
+
f"Source commit: {reviewed}", "", "## Success criteria", ""]
|
|
82
|
+
for criterion, title in criteria.items():
|
|
83
|
+
block = blocks[criterion]
|
|
84
|
+
evidence = " ".join(re.findall(r"(?m)^- ✅ (.+)$", block))
|
|
85
|
+
fields = {}
|
|
86
|
+
for field in ("Surface", "Check", "Observed"):
|
|
87
|
+
if f"- **{field}**:" in block:
|
|
88
|
+
fields[field] = contracts._raw_source_field(block, field, relative)
|
|
89
|
+
if "Surface" in fields and not {"Check", "Observed"}.issubset(fields):
|
|
90
|
+
raise contracts.HandoffError(f"{criterion} lacks its recorded surface walkthrough")
|
|
91
|
+
lines += [f"### {criterion} — {title}", "", "- **Verdict**: met",
|
|
92
|
+
f"- **Check**: {fields.get('Check', 'none')}",
|
|
93
|
+
f"- **Observed**: {fields.get('Observed', evidence)}",
|
|
94
|
+
f"- **Reference**: {relative} — {criterion}",
|
|
95
|
+
"- **Finding**: none", "- **Fix direction**: none"]
|
|
96
|
+
if "Surface" in fields:
|
|
97
|
+
lines.append(f"- **Surface**: {fields['Surface']}")
|
|
98
|
+
lines.append("")
|
|
99
|
+
return "\n".join(lines)
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
def reuse_final(repo, expected_head):
|
|
103
|
+
"""Materialize a final view only when the existing proof still covers it."""
|
|
104
|
+
repo = Path(repo).resolve()
|
|
105
|
+
try:
|
|
106
|
+
relative, text, criteria, reviewed = _reusable_wave(repo, expected_head)
|
|
107
|
+
final = _final_view(relative, text, criteria, reviewed, expected_head)
|
|
108
|
+
contracts.validate_final(repo, final_text=final)
|
|
109
|
+
destination = repo / ".project/review/FINAL.md"
|
|
110
|
+
if destination.is_symlink():
|
|
111
|
+
raise contracts.HandoffError("FINAL.md must be a real file")
|
|
112
|
+
if destination.exists() and destination.read_text() != final:
|
|
113
|
+
raise contracts.HandoffError("existing final evidence needs explicit reconciliation")
|
|
114
|
+
if not destination.exists():
|
|
115
|
+
_common.atomic_write(destination, final)
|
|
116
|
+
return {"reused": True, "path": str(destination), "source": relative,
|
|
117
|
+
"source_commit": reviewed, "reviewed_head": expected_head}
|
|
118
|
+
except (contracts.HandoffError, subprocess.CalledProcessError, OSError, KeyError) as error:
|
|
119
|
+
return {"reused": False, "reason": str(error)}
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
def _gap_view(command, head, execution, waves):
|
|
123
|
+
passed = execution["exit_code"] == 0
|
|
124
|
+
return f"""# Gap Review — 1: project Verify
|
|
125
|
+
|
|
126
|
+
Reviewed HEAD: {head}
|
|
127
|
+
Gap verdict: {'pass' if passed else 'blocked'}
|
|
128
|
+
Risk: project Verify
|
|
129
|
+
Waves checked: {', '.join(str(wave) for wave in waves)}
|
|
130
|
+
|
|
131
|
+
## Checked evidence
|
|
132
|
+
|
|
133
|
+
- **Check**: `{command}`
|
|
134
|
+
- **Observed**: Exit {execution['exit_code']}; exact stdout and stderr are in the command/commit ledger entry.
|
|
135
|
+
- **Reference**: .project/build/verify-ledger.jsonl — {head}, command above
|
|
136
|
+
|
|
137
|
+
## Finding
|
|
138
|
+
|
|
139
|
+
- **Found**: Project Verify {'passed' if passed else 'failed'} at the reviewed commit.
|
|
140
|
+
- **Fix direction**: {'none' if passed else 'Resolve the recorded command failure before shipping.'}
|
|
141
|
+
"""
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
def _require_ship_inputs(repo, expected_head):
|
|
145
|
+
contracts._require_state(repo, "ship", "active", ".project")
|
|
146
|
+
if _git(repo, "rev-parse", "HEAD") != expected_head:
|
|
147
|
+
raise contracts.HandoffError("primary HEAD changed")
|
|
148
|
+
unexpected = sorted(path.name for path in (repo / ".project").iterdir()
|
|
149
|
+
if path.name not in isolation.PROJECT_ENTRIES)
|
|
150
|
+
if unexpected:
|
|
151
|
+
raise contracts.HandoffError("unsupported .project artifacts: " + ", ".join(unexpected))
|
|
152
|
+
dirty = isolation.uncommitted_paths(repo)
|
|
153
|
+
outputs = {".project/STATE.md", ".project/build/verify-ledger.jsonl",
|
|
154
|
+
".project/build/evidence.json"}
|
|
155
|
+
adoption_path = isolation.REBASE_ADOPTION_PATH
|
|
156
|
+
if adoption_path in dirty:
|
|
157
|
+
build_state.verify_landed_tasks(str(repo), ".project", expected_head)
|
|
158
|
+
outputs.add(adoption_path)
|
|
159
|
+
if any(path not in outputs and not path.startswith(".project/review/") for path in dirty):
|
|
160
|
+
raise contracts.HandoffError("verification inputs have uncommitted changes")
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
def _retire_execution(repo, head, execution):
|
|
164
|
+
worktree = Path(execution["worktree"])
|
|
165
|
+
if worktree.exists():
|
|
166
|
+
isolation.clean_verify(repo, worktree, head, execution["branch"])
|
|
167
|
+
isolation.retire(repo, worktree, execution["branch"], force=False)
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
def verify_project(repo, expected_head):
|
|
171
|
+
"""Execute project Verify in isolation, retaining output for retry reuse."""
|
|
172
|
+
repo = Path(repo).resolve()
|
|
173
|
+
_require_ship_inputs(repo, expected_head)
|
|
174
|
+
plan = contracts._read(repo, ".project/plan/PLAN.md")
|
|
175
|
+
command = contracts._line_value(plan, "Project verify:")
|
|
176
|
+
_, waves = contracts._plan_waves(plan)
|
|
177
|
+
lookup = build_state.verify_lookup(str(repo), command, expected_head)
|
|
178
|
+
entry = lookup["entry"]
|
|
179
|
+
relative = ".project/review/final-gap-1.md"
|
|
180
|
+
destination = repo / relative
|
|
181
|
+
if destination.is_symlink():
|
|
182
|
+
raise contracts.HandoffError("project verification evidence must be a real file")
|
|
183
|
+
expected_destination = hashlib.sha256(destination.read_bytes()).hexdigest() if destination.exists() else None
|
|
184
|
+
execution = entry.get("execution") if entry else None
|
|
185
|
+
if entry and execution is None:
|
|
186
|
+
raise contracts.HandoffError("recorded verification lacks output; preserve and reconcile its evidence")
|
|
187
|
+
if execution is not None:
|
|
188
|
+
for journal in isolation.collect_artifact_recoveries(repo):
|
|
189
|
+
if (journal["source_worktree"] == execution["worktree"]
|
|
190
|
+
and journal["branch"] == execution["branch"]
|
|
191
|
+
and journal["base"] == expected_head
|
|
192
|
+
and journal["source"] == relative
|
|
193
|
+
and journal["destination"] == relative):
|
|
194
|
+
isolation.collect_artifact(
|
|
195
|
+
repo, Path(execution["worktree"]), expected_head, execution["branch"],
|
|
196
|
+
relative, relative, journal["expected_destination"],
|
|
197
|
+
)
|
|
198
|
+
_retire_execution(repo, expected_head, execution)
|
|
199
|
+
view = _gap_view(command, expected_head, execution, waves)
|
|
200
|
+
if not destination.exists() or destination.read_text() != view:
|
|
201
|
+
_common.atomic_write(destination, view)
|
|
202
|
+
return {"passed": entry["result"] == "pass", "reused": True,
|
|
203
|
+
"path": str(destination), "execution": execution}
|
|
204
|
+
sidecar = isolation.isolate_verify(repo, expected_head, "project-verify")
|
|
205
|
+
worktree = Path(sidecar["worktree"])
|
|
206
|
+
completed = subprocess.run(["bash", "-c", command], cwd=worktree,
|
|
207
|
+
text=True, capture_output=True)
|
|
208
|
+
execution = {"exit_code": completed.returncode, "stdout": completed.stdout,
|
|
209
|
+
"stderr": completed.stderr, "worktree": str(worktree), "branch": sidecar["branch"]}
|
|
210
|
+
passed = completed.returncode == 0
|
|
211
|
+
build_state.verify_record(str(repo), command, expected_head,
|
|
212
|
+
"pass" if passed else "fail", execution=execution)
|
|
213
|
+
isolation.clean_verify(repo, worktree, expected_head, sidecar["branch"])
|
|
214
|
+
_common.atomic_write(worktree / relative, _gap_view(command, expected_head, execution, waves))
|
|
215
|
+
collection = isolation.collect_artifact(repo, worktree, expected_head, sidecar["branch"],
|
|
216
|
+
relative, relative, expected_destination)
|
|
217
|
+
isolation.retire(repo, worktree, sidecar["branch"], force=False)
|
|
218
|
+
return {"passed": passed, "reused": False, "path": str(destination),
|
|
219
|
+
"execution": execution, "collection": collection}
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
def prepare_final(repo, expected_head):
|
|
223
|
+
verification = verify_project(repo, expected_head)
|
|
224
|
+
if not verification["passed"]:
|
|
225
|
+
return {"status": "blocked", "verification": verification,
|
|
226
|
+
"reason": "project Verify failed; use its recorded output"}
|
|
227
|
+
final = reuse_final(repo, expected_head)
|
|
228
|
+
if not final["reused"] and (Path(repo) / ".project/review/FINAL.md").exists():
|
|
229
|
+
try:
|
|
230
|
+
valid = contracts.validate_final(Path(repo))
|
|
231
|
+
if valid["verdict"] == "pass":
|
|
232
|
+
final = {"reused": True, "path": str(Path(repo) / ".project/review/FINAL.md"),
|
|
233
|
+
"reviewed_head": expected_head, "source": "existing final review"}
|
|
234
|
+
except contracts.HandoffError:
|
|
235
|
+
pass
|
|
236
|
+
return {"status": "complete", "verification": verification, "final": final,
|
|
237
|
+
"next": "final-gate" if final["reused"] else "review-final"}
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
def main(argv=None):
|
|
241
|
+
parser = argparse.ArgumentParser(description=__doc__)
|
|
242
|
+
parser.add_argument("--repo", type=Path, required=True)
|
|
243
|
+
parser.add_argument("--expected-head", required=True)
|
|
244
|
+
args = parser.parse_args(argv)
|
|
245
|
+
try:
|
|
246
|
+
result = prepare_final(args.repo.resolve(), args.expected_head)
|
|
247
|
+
except (contracts.HandoffError, isolation.IsolationError, build_state.BuildStateError,
|
|
248
|
+
OSError, subprocess.CalledProcessError) as error:
|
|
249
|
+
print(str(error), file=sys.stderr)
|
|
250
|
+
return 1
|
|
251
|
+
print(json.dumps(result, sort_keys=True))
|
|
252
|
+
return 0 if result["status"] == "complete" else 1
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
if __name__ == "__main__":
|
|
256
|
+
raise SystemExit(main())
|