@aibyzero/cm-workflow 0.10.5
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/.codex-plugin/plugin.json +30 -0
- package/AGENTS.md +74 -0
- package/CONTRIBUTING.md +62 -0
- package/LICENSE +21 -0
- package/README.md +263 -0
- package/SECURITY.md +49 -0
- package/THIRD_PARTY_NOTICES.md +29 -0
- package/VERSION +1 -0
- package/agents/cm-backend-agent.md +34 -0
- package/agents/cm-contract-agent.md +34 -0
- package/agents/cm-database-agent.md +34 -0
- package/agents/cm-frontend-agent.md +33 -0
- package/agents/cm-miniprogram-agent.md +33 -0
- package/agents/cm-ui-agent.md +34 -0
- package/assets/docs/command-picker-mobile.svg +56 -0
- package/assets/docs/command-picker.svg +56 -0
- package/assets/docs/user-guide-hero-mobile.svg +35 -0
- package/assets/docs/user-guide-hero.svg +36 -0
- package/assets/readme/delivery-flow.svg +86 -0
- package/assets/readme/hero.svg +77 -0
- package/assets/readme/recovery-record.svg +73 -0
- package/assets/readme/test-evidence.svg +64 -0
- package/compat/claude-commands/cm-ai.md +3 -0
- package/compat/claude-commands/cm-check.md +3 -0
- package/compat/claude-commands/cm-fix.md +3 -0
- package/compat/claude-commands/cm-idea.md +3 -0
- package/compat/claude-commands/cm-init.md +3 -0
- package/compat/claude-commands/cm-prd.md +3 -0
- package/compat/claude-commands/cm-refactor.md +3 -0
- package/compat/claude-commands/cm-test.md +3 -0
- package/docs/architecture.md +155 -0
- package/docs/fixes/.reviews/fix-cancel-throw-T-FIX-cancel-throw-a1-handoff.json +57 -0
- package/docs/fixes/.reviews/fix-cancel-throw-T-FIX-cancel-throw-a2-handoff.json +58 -0
- package/docs/fixes/.reviews/fix-cancel-throw-T-FIX-cancel-throw-r1.md +121 -0
- package/docs/fixes/.reviews/fix-cancel-throw-v2-T-FIX-cancel-throw-v2-a1-handoff.json +56 -0
- package/docs/fixes/.reviews/fix-cancel-throw-v2-T-FIX-cancel-throw-v2-r1.md +100 -0
- package/docs/fixes/.reviews/fix-cm-js-n1n2-admission-successor-T-FIX-cm-js-n1n2-admission-successor-a1-handoff.json +61 -0
- package/docs/fixes/.reviews/fix-cm-js-n1n2-admission-successor-T-FIX-cm-js-n1n2-admission-successor-a2-handoff.json +63 -0
- package/docs/fixes/.reviews/fix-cm-js-n1n2-admission-successor-T-FIX-cm-js-n1n2-admission-successor-r1.md +58 -0
- package/docs/fixes/.reviews/fix-cm-js-n1n2-admission-successor-T-FIX-cm-js-n1n2-admission-successor-r2.md +55 -0
- package/docs/fixes/.reviews/fix-f01-dual-failure-terminal-T-FIX-f01-dual-failure-terminal-a1-handoff.json +65 -0
- package/docs/fixes/.reviews/fix-f01-dual-failure-terminal-T-FIX-f01-dual-failure-terminal-r1.md +88 -0
- package/docs/fixes/.reviews/fix-manifest-runtime-checkbox-drift-r1.md +33 -0
- package/docs/fixes/.reviews/fix-manifest-runtime-checkbox-drift-r2.md +31 -0
- package/docs/fixes/.reviews/fix-model-call-boundary-identity-T-FIX-model-call-boundary-identity-a1-handoff.json +56 -0
- package/docs/fixes/.reviews/fix-model-call-boundary-identity-T-FIX-model-call-boundary-identity-a2-handoff.json +85 -0
- package/docs/fixes/.reviews/fix-model-call-boundary-identity-T-FIX-model-call-boundary-identity-r1.md +53 -0
- package/docs/fixes/.reviews/fix-model-call-boundary-identity-T-FIX-model-call-boundary-identity-r2.md +80 -0
- package/docs/fixes/.reviews/fix-review-evidence-scope-honesty-T-FIX-review-evidence-scope-honesty-a1-handoff.json +35 -0
- package/docs/fixes/.reviews/fix-review-evidence-scope-honesty-T-FIX-review-evidence-scope-honesty-r1.md +33 -0
- package/docs/fixes/.reviews/fix-windows-cp1252-log-output-r1.md +30 -0
- package/docs/fixes/.reviews/fix-windows-cp1252-log-output-r2.md +16 -0
- package/docs/fixes/.reviews/openai-compatible-depth-fixture-T-FIX-openai-compatible-depth-fixture-a1-handoff.json +40 -0
- package/docs/fixes/.reviews/openai-compatible-depth-fixture-T-FIX-openai-compatible-depth-fixture-r1.md +30 -0
- package/docs/fixes/20260729-windows-cp1252-log-output.md +65 -0
- package/docs/fixes/20260804-manifest-runtime-checkbox-drift.md +67 -0
- package/docs/fixes/20260806-model-call-boundary-identity.md +80 -0
- package/docs/fixes/20260807-prelanding-integrity.md +58 -0
- package/docs/fixes/20260826-openai-compatible-depth-fixture.md +39 -0
- package/docs/fixes/20260903-cm-js-n1n2-admission-r1.md +64 -0
- package/docs/fixes/20260903-cm-js-n1n2-admission-successor.md +83 -0
- package/docs/fixes/20260903-s4c1b-v3-cancel-throw.md +89 -0
- package/docs/fixes/20260904-f01-codex-dual-failure-terminal.md +89 -0
- package/docs/fixes/20260907-wip-triage-log.md +44 -0
- package/docs/installation.md +202 -0
- package/docs/js-workflow-control.md +1010 -0
- package/docs/sample-prd/prd-funding-rate-alert.md +42 -0
- package/docs/sample-specs/docs//351/234/200/346/261/202/347/244/272/344/276/213.md +24 -0
- package/docs/user-guide.md +526 -0
- package/docs//351/207/215/346/236/204/346/265/201/347/250/213/350/256/276/350/256/241/README.md +19 -0
- package/docs//351/207/215/346/236/204/346/265/201/347/250/213/350/256/276/350/256/241/refactor-flow.excalidraw +3650 -0
- package/docs//351/207/215/346/236/204/346/265/201/347/250/213/350/256/276/350/256/241/refactor-flow.mp4 +0 -0
- package/docs//351/207/215/346/236/204/346/265/201/347/250/213/350/256/276/350/256/241/refactor-flow.png +0 -0
- package/docs//351/207/215/346/236/204/346/265/201/347/250/213/350/256/276/350/256/241/refactor-flow.spec.json +223 -0
- package/install-codex.sh +184 -0
- package/install.ps1 +206 -0
- package/install.sh +244 -0
- package/package.json +58 -0
- package/runtime/external-expert.md +302 -0
- package/runtime/js/cm-ai/accepted-fix.mjs +28 -0
- package/runtime/js/cm-ai/claude-developer-adapter.mjs +6 -0
- package/runtime/js/cm-ai/claude-review-adapter.mjs +16 -0
- package/runtime/js/cm-ai/claude-review-stream.mjs +53 -0
- package/runtime/js/cm-ai/claude-tool-preview.mjs +107 -0
- package/runtime/js/cm-ai/cm-ai-admission.mjs +353 -0
- package/runtime/js/cm-ai/cm-ai-context-refresh.mjs +217 -0
- package/runtime/js/cm-ai/cm-ai-conversation-entry.mjs +538 -0
- package/runtime/js/cm-ai/cm-ai-learning-handoff-writer.mjs +119 -0
- package/runtime/js/cm-ai/cm-ai-learning-writer.mjs +172 -0
- package/runtime/js/cm-ai/cm-ai-qa-log.mjs +320 -0
- package/runtime/js/cm-ai/cm-ai-run-finalizer.mjs +107 -0
- package/runtime/js/cm-ai/code-projects.mjs +85 -0
- package/runtime/js/cm-ai/codex-config.mjs +48 -0
- package/runtime/js/cm-ai/codex-developer-adapter.mjs +5 -0
- package/runtime/js/cm-ai/codex-developer-basic-output.schema.json +6 -0
- package/runtime/js/cm-ai/codex-developer-output.schema.json +37 -0
- package/runtime/js/cm-ai/codex-review-adapter.mjs +73 -0
- package/runtime/js/cm-ai/contracts.mjs +156 -0
- package/runtime/js/cm-ai/developer-adapter.mjs +93 -0
- package/runtime/js/cm-ai/durable-runner-state.mjs +504 -0
- package/runtime/js/cm-ai/effect-contract.mjs +102 -0
- package/runtime/js/cm-ai/execution-platform.mjs +7 -0
- package/runtime/js/cm-ai/execution-store.mjs +211 -0
- package/runtime/js/cm-ai/fix-code-association.mjs +40 -0
- package/runtime/js/cm-ai/gate-bridge.mjs +25 -0
- package/runtime/js/cm-ai/host-bootstrap.mjs +170 -0
- package/runtime/js/cm-ai/host-check.mjs +89 -0
- package/runtime/js/cm-ai/host-conversation-execution.mjs +125 -0
- package/runtime/js/cm-ai/host-documentation.mjs +40 -0
- package/runtime/js/cm-ai/host-handoff.mjs +71 -0
- package/runtime/js/cm-ai/host-project-execution.mjs +58 -0
- package/runtime/js/cm-ai/host-qa-executor.mjs +238 -0
- package/runtime/js/cm-ai/host-qa-fix-owner.mjs +131 -0
- package/runtime/js/cm-ai/host-qa-fix.mjs +30 -0
- package/runtime/js/cm-ai/host-qa-policy.mjs +70 -0
- package/runtime/js/cm-ai/host-review-authority.mjs +36 -0
- package/runtime/js/cm-ai/host-review-file.mjs +56 -0
- package/runtime/js/cm-ai/host-role-routing.mjs +41 -0
- package/runtime/js/cm-ai/host-session.mjs +96 -0
- package/runtime/js/cm-ai/host-tool-bridge.mjs +53 -0
- package/runtime/js/cm-ai/host-workflow-capabilities.mjs +45 -0
- package/runtime/js/cm-ai/host.mjs +20 -0
- package/runtime/js/cm-ai/index.mjs +7 -0
- package/runtime/js/cm-ai/provider-review-observation.mjs +86 -0
- package/runtime/js/cm-ai/qa-fix-definition.mjs +21 -0
- package/runtime/js/cm-ai/review-evidence-file.mjs +38 -0
- package/runtime/js/cm-ai/review-package.mjs +426 -0
- package/runtime/js/cm-ai/review-result.schema.json +40 -0
- package/runtime/js/cm-ai/review-runner.mjs +35 -0
- package/runtime/js/cm-ai/task-commit-codec.mjs +54 -0
- package/runtime/js/cm-ai/task-commit.mjs +201 -0
- package/runtime/js/cm-ai/task-owner.mjs +97 -0
- package/runtime/js/cm-ai/task-runner.mjs +766 -0
- package/runtime/js/cm-ai/tool-preview.mjs +205 -0
- package/runtime/js/cm-ai/worker-claude.mjs +104 -0
- package/runtime/js/cm-ai/worker-codex-developer.mjs +124 -0
- package/runtime/js/cm-ai/worker-codex.mjs +143 -0
- package/runtime/js/cm-check/host.mjs +101 -0
- package/runtime/js/cm-fix/baseline.mjs +70 -0
- package/runtime/js/cm-fix/cause-evidence.mjs +24 -0
- package/runtime/js/cm-fix/cause-invocation.mjs +40 -0
- package/runtime/js/cm-fix/cause-package.mjs +68 -0
- package/runtime/js/cm-fix/dossier.mjs +140 -0
- package/runtime/js/cm-fix/execution.mjs +1549 -0
- package/runtime/js/cm-fix/final-review-evidence.mjs +20 -0
- package/runtime/js/cm-fix/final-review.mjs +156 -0
- package/runtime/js/cm-fix/finish.mjs +124 -0
- package/runtime/js/cm-fix/handoff.mjs +64 -0
- package/runtime/js/cm-fix/host-review.mjs +38 -0
- package/runtime/js/cm-fix/host.mjs +96 -0
- package/runtime/js/cm-fix/investigation.mjs +25 -0
- package/runtime/js/cm-fix/layout.mjs +17 -0
- package/runtime/js/cm-fix/learning-writeback.mjs +86 -0
- package/runtime/js/cm-fix/learning.mjs +31 -0
- package/runtime/js/cm-fix/metrics.mjs +75 -0
- package/runtime/js/cm-fix/progress.mjs +64 -0
- package/runtime/js/cm-fix/protected-edits.mjs +95 -0
- package/runtime/js/cm-fix/qa-source.mjs +58 -0
- package/runtime/js/cm-fix/red-test.mjs +92 -0
- package/runtime/js/cm-fix/regression-evidence.mjs +64 -0
- package/runtime/js/cm-fix/regression.mjs +41 -0
- package/runtime/js/cm-fix/repair.mjs +95 -0
- package/runtime/js/cm-fix/reproduce.mjs +54 -0
- package/runtime/js/cm-fix/retrospective.mjs +41 -0
- package/runtime/js/cm-fix/review-baseline.mjs +47 -0
- package/runtime/js/cm-fix/start.mjs +49 -0
- package/runtime/js/cm-fix/test-author.mjs +63 -0
- package/runtime/js/cm-fix/visual.mjs +72 -0
- package/runtime/js/cm-fix/walkthrough.mjs +126 -0
- package/runtime/js/cm-idea/session.mjs +79 -0
- package/runtime/js/cm-init/draft-generation.mjs +66 -0
- package/runtime/js/cm-init/draft-inspection.mjs +70 -0
- package/runtime/js/cm-init/project-analysis.mjs +60 -0
- package/runtime/js/cm-init/project-scan.mjs +55 -0
- package/runtime/js/cm-init/review-evidence.mjs +80 -0
- package/runtime/js/cm-prd/accepted-design.mjs +46 -0
- package/runtime/js/cm-prd/analysis.mjs +260 -0
- package/runtime/js/cm-prd/change.mjs +268 -0
- package/runtime/js/cm-prd/correction-check.mjs +49 -0
- package/runtime/js/cm-prd/design-risk.mjs +30 -0
- package/runtime/js/cm-prd/disposition-plan.mjs +33 -0
- package/runtime/js/cm-prd/draft-save.mjs +122 -0
- package/runtime/js/cm-prd/draft.mjs +70 -0
- package/runtime/js/cm-prd/materials.mjs +48 -0
- package/runtime/js/cm-prd/review-correction.mjs +158 -0
- package/runtime/js/cm-prd/review-disposition.mjs +96 -0
- package/runtime/js/cm-prd/review-findings.mjs +36 -0
- package/runtime/js/cm-prd/review-host.mjs +48 -0
- package/runtime/js/cm-prd/review-preparation.mjs +49 -0
- package/runtime/js/cm-prd/review-publication.mjs +56 -0
- package/runtime/js/cm-prd/self-check.mjs +75 -0
- package/runtime/js/cm-prd/session.mjs +74 -0
- package/runtime/js/cm-prd/summary.mjs +133 -0
- package/runtime/js/cm-refactor/host.mjs +2 -0
- package/runtime/js/cm-refactor/records.mjs +86 -0
- package/runtime/js/cm-refactor/workflow.mjs +478 -0
- package/runtime/js/cm-test/declared-command.mjs +32 -0
- package/runtime/js/cm-test/host.mjs +319 -0
- package/runtime/js/cm-test/logic-results.mjs +39 -0
- package/runtime/js/cm-test/recovery.mjs +58 -0
- package/runtime/js/cm-test/session.mjs +56 -0
- package/runtime/js/cm-test/source-snapshot.mjs +136 -0
- package/runtime/logging.md +207 -0
- package/runtime/model-efficiency.md +201 -0
- package/runtime/orchestration.md +113 -0
- package/runtime/project-context.md +43 -0
- package/runtime/project-learning.md +49 -0
- package/runtime/review.md +140 -0
- package/runtime/steelman-review.md +111 -0
- package/runtime/task-gates.md +283 -0
- package/runtime/task-handoff.schema.json +103 -0
- package/runtime/test-contract.md +212 -0
- package/runtime/workflow-config.md +118 -0
- package/runtime/workflow-routing.md +82 -0
- package/scripts/cm-ai-admission.mjs +50 -0
- package/scripts/cm-ai-admission.test.mjs +38 -0
- package/scripts/cm-ai-batch-host.mjs +77 -0
- package/scripts/cm-ai-batch-host.test.mjs +155 -0
- package/scripts/cm-ai-batch-run.mjs +136 -0
- package/scripts/cm-ai-batch-run.test.mjs +128 -0
- package/scripts/cm-ai-bootstrap.test.mjs +228 -0
- package/scripts/cm-ai-fix-integration.test.mjs +233 -0
- package/scripts/cm-ai-host.mjs +175 -0
- package/scripts/cm-ai-host.test.mjs +368 -0
- package/scripts/cm-ai-multi-root.test.mjs +289 -0
- package/scripts/cm-ai-nested-execution.test.mjs +313 -0
- package/scripts/cm-ai-run.mjs +293 -0
- package/scripts/cm-ai-run.test.mjs +336 -0
- package/scripts/cm-check-entry.mjs +120 -0
- package/scripts/cm-check-host.mjs +29 -0
- package/scripts/cm-check-host.test.mjs +71 -0
- package/scripts/cm-check-runtime.ps1 +69 -0
- package/scripts/cm-check-runtime.sh +910 -0
- package/scripts/cm-claude-probe.test.mjs +54 -0
- package/scripts/cm-claude-review-stream.test.mjs +45 -0
- package/scripts/cm-claude-worker.test.mjs +92 -0
- package/scripts/cm-codex-developer-adapter.test.mjs +85 -0
- package/scripts/cm-codex-developer-worker.test.mjs +128 -0
- package/scripts/cm-codex-review-progress.test.mjs +96 -0
- package/scripts/cm-execution-platform.test.mjs +47 -0
- package/scripts/cm-fix-cause-invocation.test.mjs +72 -0
- package/scripts/cm-fix-cause-package.test.mjs +68 -0
- package/scripts/cm-fix-code-association.test.mjs +55 -0
- package/scripts/cm-fix-entry.mjs +132 -0
- package/scripts/cm-fix-execution.test.mjs +63 -0
- package/scripts/cm-fix-final-review.test.mjs +124 -0
- package/scripts/cm-fix-host-review-assembly.test.mjs +34 -0
- package/scripts/cm-fix-host-review.test.mjs +261 -0
- package/scripts/cm-fix-host-sequence.test.mjs +26 -0
- package/scripts/cm-fix-host.mjs +89 -0
- package/scripts/cm-fix-host.test.mjs +105 -0
- package/scripts/cm-fix-learning-writeback.test.mjs +73 -0
- package/scripts/cm-fix-learning.test.mjs +66 -0
- package/scripts/cm-fix-metrics.test.mjs +58 -0
- package/scripts/cm-fix-no-existing-tests.test.mjs +92 -0
- package/scripts/cm-fix-observation-dossier.test.mjs +452 -0
- package/scripts/cm-fix-progress.test.mjs +45 -0
- package/scripts/cm-fix-protected-edits.test.mjs +54 -0
- package/scripts/cm-fix-qa-source.test.mjs +206 -0
- package/scripts/cm-fix-red-owner.test.mjs +143 -0
- package/scripts/cm-fix-red-test.test.mjs +38 -0
- package/scripts/cm-fix-regression.test.mjs +57 -0
- package/scripts/cm-fix-repair-owner.test.mjs +370 -0
- package/scripts/cm-fix-repair.test.mjs +68 -0
- package/scripts/cm-fix-reproduce.test.mjs +31 -0
- package/scripts/cm-fix-retrospective.test.mjs +46 -0
- package/scripts/cm-fix-review-baseline.test.mjs +54 -0
- package/scripts/cm-fix-review-recovery.test.mjs +197 -0
- package/scripts/cm-fix-test-author.test.mjs +105 -0
- package/scripts/cm-fix-visual-bare.test.mjs +171 -0
- package/scripts/cm-fix-walkthrough.test.mjs +45 -0
- package/scripts/cm-host-check.test.mjs +113 -0
- package/scripts/cm-host-documentation.test.mjs +45 -0
- package/scripts/cm-host-handoff.test.mjs +58 -0
- package/scripts/cm-host-qa-executor.test.mjs +156 -0
- package/scripts/cm-host-qa-policy.test.mjs +59 -0
- package/scripts/cm-host-review-authority.test.mjs +60 -0
- package/scripts/cm-host-role-routing.test.mjs +33 -0
- package/scripts/cm-idea-entry.mjs +104 -0
- package/scripts/cm-idea-host.mjs +144 -0
- package/scripts/cm-idea-host.test.mjs +75 -0
- package/scripts/cm-idea-recovery.test.mjs +90 -0
- package/scripts/cm-init-analysis-host.test.mjs +50 -0
- package/scripts/cm-init-draft-generation.test.mjs +52 -0
- package/scripts/cm-init-draft-inspection.test.mjs +41 -0
- package/scripts/cm-init-entry.mjs +170 -0
- package/scripts/cm-init-host.mjs +284 -0
- package/scripts/cm-init-host.test.mjs +231 -0
- package/scripts/cm-init-project-analysis.test.mjs +47 -0
- package/scripts/cm-init-project-scan.test.mjs +41 -0
- package/scripts/cm-init-revision-host.test.mjs +61 -0
- package/scripts/cm-init-session.test.mjs +122 -0
- package/scripts/cm-log-event.mjs +538 -0
- package/scripts/cm-log-event.py +133 -0
- package/scripts/cm-log-event.test.mjs +70 -0
- package/scripts/cm-openai-compatible-call.py +661 -0
- package/scripts/cm-prd-analysis.test.mjs +67 -0
- package/scripts/cm-prd-completion.test.mjs +190 -0
- package/scripts/cm-prd-design-phase.test.mjs +296 -0
- package/scripts/cm-prd-draft-save.test.mjs +63 -0
- package/scripts/cm-prd-draft.test.mjs +39 -0
- package/scripts/cm-prd-entry.mjs +245 -0
- package/scripts/cm-prd-host.mjs +273 -0
- package/scripts/cm-prd-host.test.mjs +169 -0
- package/scripts/cm-prd-materials.test.mjs +41 -0
- package/scripts/cm-prd-review-claim.test.mjs +42 -0
- package/scripts/cm-prd-review-disposition.test.mjs +196 -0
- package/scripts/cm-prd-review-gate.mjs +194 -0
- package/scripts/cm-prd-review-gate.py +26 -0
- package/scripts/cm-prd-review-host.test.mjs +30 -0
- package/scripts/cm-prd-review-preparation.test.mjs +69 -0
- package/scripts/cm-prd-review-publication.test.mjs +95 -0
- package/scripts/cm-prd-revision.test.mjs +32 -0
- package/scripts/cm-prd-self-check.test.mjs +23 -0
- package/scripts/cm-prd-sources.test.mjs +76 -0
- package/scripts/cm-prd-timing.py +272 -0
- package/scripts/cm-refactor-entry.mjs +145 -0
- package/scripts/cm-refactor-host.mjs +26 -0
- package/scripts/cm-refactor-host.test.mjs +201 -0
- package/scripts/cm-review-dependency-snapshot.test.mjs +67 -0
- package/scripts/cm-review-inventory.test.mjs +109 -0
- package/scripts/cm-spec-manifest.mjs +104 -0
- package/scripts/cm-spec-manifest.py +26 -0
- package/scripts/cm-task-gate.mjs +879 -0
- package/scripts/cm-task-gate.py +312 -0
- package/scripts/cm-task-gate.test.mjs +202 -0
- package/scripts/cm-test-declared-command.test.mjs +18 -0
- package/scripts/cm-test-entry.mjs +231 -0
- package/scripts/cm-test-host.mjs +40 -0
- package/scripts/cm-test-host.test.mjs +169 -0
- package/scripts/cm-test-logic-results.test.mjs +26 -0
- package/scripts/cm-test-session.test.mjs +138 -0
- package/scripts/cm-usage-report.py +516 -0
- package/scripts/cm-workflow-config.mjs +463 -0
- package/scripts/cm-workflow-config.test.mjs +181 -0
- package/scripts/cm-workflow.mjs +36 -0
- package/scripts/cm-workflow.test.mjs +51 -0
- package/scripts/cm_workflow_config.py +52 -0
- package/scripts/fixtures/claude-review-process.mjs +35 -0
- package/scripts/fixtures/codex-review-process.mjs +22 -0
- package/scripts/fixtures/prd-review-gate-python-oracle.py +320 -0
- package/scripts/fixtures/spec-manifest-python-oracle.py +172 -0
- package/scripts/scan-public-safety.py +117 -0
- package/scripts/test-cm-log-event.py +1213 -0
- package/scripts/test-cm-openai-compatible-call.py +1185 -0
- package/scripts/test-cm-prd-review-gate.py +272 -0
- package/scripts/test-cm-prd-timing.py +168 -0
- package/scripts/test-cm-usage-report.py +584 -0
- package/scripts/test-npm-install.py +171 -0
- package/scripts/test-scan-public-safety.py +76 -0
- package/scripts/test-shell-compat.sh +365 -0
- package/scripts/test-spec-manifest.py +263 -0
- package/scripts/test-task-gate.py +46 -0
- package/scripts/test-workflow-config.py +30 -0
- package/scripts/validate-public-repo.py +245 -0
- package/scripts/validate-test-cases.mjs +71 -0
- package/scripts/validate-test-cases.py +27 -0
- package/scripts/validate-test-cases.test.mjs +36 -0
- package/skills/cm-ai/SKILL.md +137 -0
- package/skills/cm-ai/references/N1-init.md +108 -0
- package/skills/cm-ai/references/N2-enter-feature.md +38 -0
- package/skills/cm-ai/references/N3-execute-task.md +123 -0
- package/skills/cm-ai/references/N4-review.md +103 -0
- package/skills/cm-ai/references/N5-mark-done.md +117 -0
- package/skills/cm-ai/references/N6-qa-eval.md +102 -0
- package/skills/cm-ai/references/N7-context.md +23 -0
- package/skills/cm-ai/references/N8-finish.md +103 -0
- package/skills/cm-ai/references/js-host.md +126 -0
- package/skills/cm-backend-engineer/SKILL.md +100 -0
- package/skills/cm-check/SKILL.md +52 -0
- package/skills/cm-check/references/js-host.md +44 -0
- package/skills/cm-contract-engineer/SKILL.md +136 -0
- package/skills/cm-database-engineer/SKILL.md +89 -0
- package/skills/cm-devops-engineer/SKILL.md +137 -0
- package/skills/cm-doc-syncer/SKILL.md +150 -0
- package/skills/cm-finance-expert/SKILL.md +85 -0
- package/skills/cm-fix/SKILL.md +199 -0
- package/skills/cm-fix/references/cross-boundary-debugging.md +44 -0
- package/skills/cm-fix/references/js-host.md +135 -0
- package/skills/cm-frontend-engineer/SKILL.md +127 -0
- package/skills/cm-idea/SKILL.md +55 -0
- package/skills/cm-idea/references/domains/trading.md +97 -0
- package/skills/cm-idea/references/example-prd.md +92 -0
- package/skills/cm-idea/references/idea-to-prd.md +282 -0
- package/skills/cm-idea/references/js-host.md +63 -0
- package/skills/cm-init/SKILL.md +191 -0
- package/skills/cm-init/references/js-host.md +123 -0
- package/skills/cm-miniprogram-engineer/SKILL.md +141 -0
- package/skills/cm-miniprogram-engineer/references/platform-readiness.md +58 -0
- package/skills/cm-miniprogram-engineer/references/release-checklist.md +59 -0
- package/skills/cm-prd/SKILL.md +548 -0
- package/skills/cm-prd/references/brownfield.md +13 -0
- package/skills/cm-prd/references/change-mode.md +145 -0
- package/skills/cm-prd/references/context-scope.md +62 -0
- package/skills/cm-prd/references/greenfield.md +80 -0
- package/skills/cm-prd/references/js-change-recovery.md +57 -0
- package/skills/cm-prd/references/js-host.md +98 -0
- package/skills/cm-prd/references/phase-timing.md +68 -0
- package/skills/cm-prd/references/spec-self-check.md +22 -0
- package/skills/cm-product-manager/SKILL.md +83 -0
- package/skills/cm-qa-engineer/SKILL.md +142 -0
- package/skills/cm-refactor/SKILL.md +236 -0
- package/skills/cm-refactor/references/js-batch.md +75 -0
- package/skills/cm-refactor/references/js-host.md +78 -0
- package/skills/cm-test/SKILL.md +288 -0
- package/skills/cm-test/references/js-host.md +118 -0
- package/skills/cm-ui-engineer/SKILL.md +105 -0
- package/skills/codebase-context/SKILL.md +489 -0
- package/skills/darwin-skill/NOTICE.md +26 -0
- package/skills/darwin-skill/README.md +272 -0
- package/skills/darwin-skill/SKILL.md +492 -0
- package/skills/darwin-skill/references/runtime-neutrality.md +68 -0
- package/skills/darwin-skill/references/skilllens-evidence.md +142 -0
- package/skills/darwin-skill/scripts/screenshot.mjs +71 -0
- package/skills/darwin-skill/templates/result-card-dark.html +698 -0
- package/skills/darwin-skill/templates/result-card-white.html +444 -0
- package/skills/darwin-skill/templates/result-card.html +616 -0
- package/skills/external-expert/SKILL.md +250 -0
- package/templates/arch-reference.md +68 -0
- package/templates/auto-update/cm-announce.sh +19 -0
- package/templates/auto-update/cm-update.sh +274 -0
- package/templates/cm-workflow.yml +52 -0
- package/templates/dashboard/dashboard.html +153 -0
- package/templates/dashboard/serve.sh +10 -0
- package/templates/hooks/pre-commit-cm-task-check +67 -0
- package/templates/pixel/cm-pixel.html +388 -0
- package/templates/pixel/cm-pixel.sh +212 -0
- package/templates/pixel/dev/README.md +20 -0
- package/templates/pixel/dev/atlas-preview.png +0 -0
- package/templates/pixel/dev/build.py +55 -0
- package/templates/pixel/dev/sheets/roguelikeChar_transparent.png +0 -0
- package/templates/pixel/dev/sheets/roguelikeCity_tilemap.png +0 -0
- package/templates/pixel/dev/sheets/roguelikeIndoor_transparent.png +0 -0
- package/templates/pixel/dev/template.html +388 -0
- package/templates/pixel/serve.sh +12 -0
- package/templates/refactor/cm-refactor-denies.json +14 -0
- package/templates/rules/backend-api.md +36 -0
- package/templates/rules/coding-style.md +44 -0
- package/templates/rules/database.md +27 -0
- package/templates/rules/finance.md +32 -0
- package/templates/rules/frontend.md +32 -0
- package/templates/rules/git-workflow.md +25 -0
- package/templates/rules/miniprogram.md +31 -0
- package/templates/rules/security.md +31 -0
- package/templates/rules/smart-contract.md +28 -0
- package/templates/rules/testing.md +36 -0
- package/templates/statusline/cm-statusline.sh +73 -0
- package/templates/ui-lens/cm-ui-lens-extract.mjs +55 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="380" viewBox="0 0 1200 380" role="img" aria-labelledby="title desc">
|
|
2
|
+
<title id="title">CM Workflow test evidence receipts</title>
|
|
3
|
+
<desc id="desc">Three editorial evidence receipts distinguish code logic review, actual project command execution, and browser-based user path testing.</desc>
|
|
4
|
+
|
|
5
|
+
<rect width="1200" height="380" fill="#F4F0E8"/>
|
|
6
|
+
<path d="M48 38H1152M48 336H1152" stroke="#151515" stroke-width="1.5"/>
|
|
7
|
+
|
|
8
|
+
<text x="48" y="70" fill="#C44B32" font-size="18" font-weight="800"
|
|
9
|
+
font-family="ui-monospace, SFMono-Regular, Menlo, monospace" letter-spacing="2">TEST EVIDENCE RECEIPTS</text>
|
|
10
|
+
<text x="48" y="108" fill="#151515" font-size="30" font-weight="700"
|
|
11
|
+
font-family="Georgia, Songti SC, serif">三种测试,三类凭证,不互相冒充</text>
|
|
12
|
+
<text x="1152" y="70" fill="#777168" font-size="17" text-anchor="end"
|
|
13
|
+
font-family="ui-monospace, SFMono-Regular, Menlo, monospace">READONLY BY DEFAULT</text>
|
|
14
|
+
|
|
15
|
+
<g transform="translate(48 136)">
|
|
16
|
+
<rect width="344" height="164" fill="#FAF8F2" stroke="#AAA399"/>
|
|
17
|
+
<text x="18" y="31" fill="#777168" font-size="15" font-weight="800"
|
|
18
|
+
font-family="ui-monospace, SFMono-Regular, Menlo, monospace">RECEIPT 01</text>
|
|
19
|
+
<text x="18" y="70" fill="#151515" font-size="29" font-weight="700"
|
|
20
|
+
font-family="Georgia, Songti SC, serif">Logic</text>
|
|
21
|
+
<path d="M18 84H326" stroke="#AAA399"/>
|
|
22
|
+
<text x="18" y="111" fill="#151515" font-size="17"
|
|
23
|
+
font-family="-apple-system, BlinkMacSystemFont, Segoe UI, sans-serif">入口 · 分支 · 状态 · 输出</text>
|
|
24
|
+
<text x="18" y="143" fill="#C44B32" font-size="15" font-weight="800"
|
|
25
|
+
font-family="ui-monospace, SFMono-Regular, Menlo, monospace">SUPPORTED ≠ EXECUTED</text>
|
|
26
|
+
</g>
|
|
27
|
+
|
|
28
|
+
<g transform="translate(428 136)">
|
|
29
|
+
<rect width="344" height="164" fill="#FAF8F2" stroke="#AAA399"/>
|
|
30
|
+
<text x="18" y="31" fill="#777168" font-size="15" font-weight="800"
|
|
31
|
+
font-family="ui-monospace, SFMono-Regular, Menlo, monospace">RECEIPT 02</text>
|
|
32
|
+
<text x="18" y="70" fill="#151515" font-size="29" font-weight="700"
|
|
33
|
+
font-family="Georgia, Songti SC, serif">Commands</text>
|
|
34
|
+
<path d="M18 84H326" stroke="#AAA399"/>
|
|
35
|
+
<text x="18" y="111" fill="#151515" font-size="17"
|
|
36
|
+
font-family="-apple-system, BlinkMacSystemFont, Segoe UI, sans-serif">正式脚本 · 退出码 · 测试日志</text>
|
|
37
|
+
<g transform="translate(18 126)">
|
|
38
|
+
<rect width="118" height="24" fill="#2E6655"/>
|
|
39
|
+
<text x="59" y="17" fill="#F4F0E8" font-size="13" font-weight="800" text-anchor="middle"
|
|
40
|
+
font-family="ui-monospace, SFMono-Regular, Menlo, monospace">ACTUAL RUN</text>
|
|
41
|
+
</g>
|
|
42
|
+
</g>
|
|
43
|
+
|
|
44
|
+
<g transform="translate(808 136)">
|
|
45
|
+
<rect width="344" height="164" fill="#FAF8F2" stroke="#AAA399"/>
|
|
46
|
+
<text x="18" y="31" fill="#777168" font-size="15" font-weight="800"
|
|
47
|
+
font-family="ui-monospace, SFMono-Regular, Menlo, monospace">RECEIPT 03</text>
|
|
48
|
+
<text x="18" y="70" fill="#151515" font-size="29" font-weight="700"
|
|
49
|
+
font-family="Georgia, Songti SC, serif">Browser</text>
|
|
50
|
+
<path d="M18 84H326" stroke="#AAA399"/>
|
|
51
|
+
<text x="18" y="111" fill="#151515" font-size="17"
|
|
52
|
+
font-family="-apple-system, BlinkMacSystemFont, Segoe UI, sans-serif">操作 · URL · 可观察结果 · 截图</text>
|
|
53
|
+
<g transform="translate(18 126)">
|
|
54
|
+
<rect width="104" height="24" fill="#151515"/>
|
|
55
|
+
<text x="52" y="17" fill="#F4F0E8" font-size="13" font-weight="800" text-anchor="middle"
|
|
56
|
+
font-family="ui-monospace, SFMono-Regular, Menlo, monospace">USER PATH</text>
|
|
57
|
+
</g>
|
|
58
|
+
</g>
|
|
59
|
+
|
|
60
|
+
<text x="48" y="326" fill="#C44B32" font-size="16" font-weight="800"
|
|
61
|
+
font-family="ui-monospace, SFMono-Regular, Menlo, monospace">NO SOURCE EDIT · NO DEPENDENCY INSTALL · NO WEAKENED ASSERTION</text>
|
|
62
|
+
<text x="1152" y="326" fill="#2E6655" font-size="16" font-weight="800" text-anchor="end"
|
|
63
|
+
font-family="ui-monospace, SFMono-Regular, Menlo, monospace">EVIDENCE ATTACHED ✓</text>
|
|
64
|
+
</svg>
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
# Architecture
|
|
2
|
+
|
|
3
|
+
CM Workflow has one workflow implementation and two runtime entry surfaces.
|
|
4
|
+
|
|
5
|
+
```mermaid
|
|
6
|
+
flowchart LR
|
|
7
|
+
Codex["Codex $cm-*"] --> Skills["skills/cm-*/SKILL.md"]
|
|
8
|
+
Claude["Claude Code /cm-*"] --> Skills
|
|
9
|
+
Legacy["macOS/Linux /cm:* alias"] --> Wrappers["compat/claude-commands/"]
|
|
10
|
+
Wrappers --> Skills
|
|
11
|
+
Skills --> Context["runtime/project-context.md"]
|
|
12
|
+
Skills --> Orchestration["runtime/orchestration.md"]
|
|
13
|
+
Skills --> Review["runtime/review.md"]
|
|
14
|
+
Skills --> TaskGates["runtime/task-gates.md"]
|
|
15
|
+
Skills --> Logging["runtime/logging.md"]
|
|
16
|
+
Skills --> External["runtime/external-expert.md"]
|
|
17
|
+
RuntimeJS["runtime/js/cm-ai: shipped source + active N1/N2 admission"]
|
|
18
|
+
Skills --> References["flow references: N1-N8 / PRD modes"]
|
|
19
|
+
Skills --> Templates["templates/"]
|
|
20
|
+
Skills --> Specs["requirements / design / tasks / optional test-cases"]
|
|
21
|
+
Specs --> Target["target code repository"]
|
|
22
|
+
External --> Provider["optional external browser / manual handoff"]
|
|
23
|
+
Provider --> ExternalEvidence["specs .external/"]
|
|
24
|
+
Logging --> Writer["scripts/cm-log-event.mjs JS authority"]
|
|
25
|
+
Writer --> LockAdapter["cm-log-event.py platform lock adapter"]
|
|
26
|
+
Writer --> ProjectLog["specs 运行日志.jsonl + .cm-run.json/.lock"]
|
|
27
|
+
Writer --> GlobalLog["~/.cm-workflow/logs private mirror"]
|
|
28
|
+
Config["optional .cm-workflow.yml/.json"] --> ConfigCheck["scripts/cm-workflow-config.mjs"]
|
|
29
|
+
ConfigCheck --> Routing["runtime/workflow-routing.md"]
|
|
30
|
+
Routing --> Skills
|
|
31
|
+
TaskGates --> GateCheck["scripts/cm-task-gate.mjs JS authority"]
|
|
32
|
+
GateCheck --> GateLock["cm-task-gate.py completion lock adapter"]
|
|
33
|
+
GateCheck --> Reviews["specs .reviews handoff + verdict evidence"]
|
|
34
|
+
Check["scripts/cm-check-runtime.sh"] -. validates .-> Skills
|
|
35
|
+
Check -. validates .-> Wrappers
|
|
36
|
+
Check -. validates .-> RuntimeJS
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Sources of truth
|
|
40
|
+
|
|
41
|
+
- Each numbered feature's `tasks.md` is the authoritative business-task state.
|
|
42
|
+
- An optional project `.cm-workflow.yml`/`.yaml`/`.json` selects finite workflow
|
|
43
|
+
profiles, role adapters, model aliases, and test/delivery policies. It is
|
|
44
|
+
configuration, not permission or task state; missing configuration means the
|
|
45
|
+
built-in defaults remain active. The contract lives in
|
|
46
|
+
`runtime/workflow-config.md`; node projection and route-state semantics live in
|
|
47
|
+
`runtime/workflow-routing.md`.
|
|
48
|
+
- `.cm-specs-status` binds approval to a full requirements/design/tasks/test semantic manifest;
|
|
49
|
+
only N5/N6 task and AC completion markers are normalized so an interrupted run can resume;
|
|
50
|
+
`.cm-status.json`, `.cm-run.json`, `运行日志.jsonl`, `.reviews/`,
|
|
51
|
+
`METRICS.md`, and `LESSONS.md` are the durable audit and recovery artifacts.
|
|
52
|
+
- The user-global `~/.cm-workflow/logs/` tree is a reconstructable local mirror,
|
|
53
|
+
not an authoritative state store or telemetry endpoint.
|
|
54
|
+
- Codex plans, OMX state, subagent threads, and Claude task panels are
|
|
55
|
+
reconstructable mirrors.
|
|
56
|
+
- Per-feature `test-cases.json` is the optional AI-readable test intent.
|
|
57
|
+
Execution results stay in `.reviews/`; no competing result database is added.
|
|
58
|
+
- N3 implementation handoffs and N4 verdicts also stay in `.reviews/` as
|
|
59
|
+
content-bound evidence. `runtime/task-gates.md` validates their transition; they
|
|
60
|
+
never replace the checkbox state in `tasks.md`.
|
|
61
|
+
|
|
62
|
+
## Runtime compatibility
|
|
63
|
+
|
|
64
|
+
Codex discovers the plugin through `.codex-plugin/plugin.json` and calls Skills
|
|
65
|
+
directly. Claude Code invokes the same Skills as `/cm-*` on every platform.
|
|
66
|
+
The macOS/Linux installer also maps the three-line compatibility wrappers to
|
|
67
|
+
the historic `/cm:*` aliases. Windows uses `/cm-*` because `:` is not legal in
|
|
68
|
+
native filenames. Workflow assets resolve relative to the active Skill; no flow
|
|
69
|
+
may hardcode a Codex cache path or treat `~/.claude` as the universal source
|
|
70
|
+
root.
|
|
71
|
+
|
|
72
|
+
`runtime/js/cm-ai/` is the sole source root for the accepted JS orchestration
|
|
73
|
+
modules. `experiments/js-orchestration/` keeps thin re-exports plus historical
|
|
74
|
+
fixtures so prior evidence paths remain readable. The active `cm-ai` Skill owns
|
|
75
|
+
conversation/tool orchestration and invokes the shared JS gates directly; the
|
|
76
|
+
dormant full-host factory is not a prerequisite and Claude does not need a second
|
|
77
|
+
adapter protocol. Platform installation evidence and real task dogfood remain
|
|
78
|
+
separate F09 work.
|
|
79
|
+
|
|
80
|
+
## Review model
|
|
81
|
+
|
|
82
|
+
Implementation cannot be marked complete without task-scoped review evidence.
|
|
83
|
+
The preferred channel is a fresh Codex subagent or independent thread, followed
|
|
84
|
+
by an isolated read-only Codex CLI review. If both are unavailable, new
|
|
85
|
+
implementation pauses and existing work remains pending review. `self-degraded`
|
|
86
|
+
is diagnostic/historical evidence only; it cannot authorize new completion.
|
|
87
|
+
N3 must first produce a schema-valid `ready_for_review` handoff. N4 owns the
|
|
88
|
+
`approved | changes_requested | blocked` verdict, and N5 runs the shared gate
|
|
89
|
+
instead of treating any matching filename as approval. At most two attempts are
|
|
90
|
+
allowed. N5 requires both `approved` and `independent: true`, preserves task-file
|
|
91
|
+
line endings, and changes only the target checkbox. Post-review changes to code,
|
|
92
|
+
tests, or execution instructions need new evidence, including suggestions made
|
|
93
|
+
during N5 lesson recording; N5 itself records suggestions rather than implementing
|
|
94
|
+
them. Historical completed tasks are not automatically reopened.
|
|
95
|
+
Parallel writers also pass the same gate tool with distinct registered
|
|
96
|
+
worktrees and branches; failure downgrades execution to serial.
|
|
97
|
+
|
|
98
|
+
This gate checks declarations and content-bound review evidence; it does not make
|
|
99
|
+
one provider's result evidence for another provider. Codex and Claude both keep
|
|
100
|
+
conversation orchestration in the active Skill and use the same JS gates, while a
|
|
101
|
+
fresh context supplies independent review. Real durable N1–N8 dogfood and authorized
|
|
102
|
+
installation evidence remain later work; no Claude-native adapter is required.
|
|
103
|
+
|
|
104
|
+
## External reasoning model
|
|
105
|
+
|
|
106
|
+
`external-expert` is an independent utility Skill for product deliberation,
|
|
107
|
+
problem or academic research, diagnosis, test design, and critique. CM defaults
|
|
108
|
+
to EXPLICIT activation. A user can opt only the current invocation into AUTO,
|
|
109
|
+
which routes to LOCAL, CONSULT, or VERIFY; HANDOFF is explicit-only. A global
|
|
110
|
+
router cannot silently enable CM AUTO. The local main agent chooses outbound
|
|
111
|
+
context, applies accepted changes, and runs verification.
|
|
112
|
+
|
|
113
|
+
Requests and raw responses live under `.external/`; they cannot satisfy N4.
|
|
114
|
+
If an external conversation contributed to a plan, diagnosis, tests, or patch,
|
|
115
|
+
it is an authoring channel and is ineligible to review the same work.
|
|
116
|
+
|
|
117
|
+
Before browser dispatch, the runtime routes visible modes through
|
|
118
|
+
`Pro → Extra High → High → SKIPPED`. Fallback inside this chain is automatic;
|
|
119
|
+
Medium and Instant are excluded. `SKIPPED` sends nothing and returns control to
|
|
120
|
+
the local workflow. An explicit strict-Pro request blocks when Pro is missing.
|
|
121
|
+
Task routing is a separate earlier gate; AUTO never authorizes local-file
|
|
122
|
+
transmission and mixed-task implementation remains local.
|
|
123
|
+
|
|
124
|
+
## Logging model
|
|
125
|
+
|
|
126
|
+
`runtime/logging.md` defines one event envelope for Codex and Claude Code.
|
|
127
|
+
`scripts/cm-log-event.mjs` writes the specs-local `运行日志.jsonl` first, mirrors
|
|
128
|
+
the same event into a per-run global JSONL file, and maintains an append-only
|
|
129
|
+
`index.jsonl`. `.cm-run.json` lets a new session reuse an active `run_id`; a
|
|
130
|
+
completed run causes the next invocation to rotate to a new id. Project and
|
|
131
|
+
global standard-library file locks held by the thin Python platform adapter
|
|
132
|
+
serialize concurrent writers, while a
|
|
133
|
+
deterministic event id deduplicates an otherwise identical retry.
|
|
134
|
+
|
|
135
|
+
The project log is authoritative. If the global mirror fails, a specs-backed
|
|
136
|
+
workflow records a `degrade` event locally and continues. A global-only utility
|
|
137
|
+
has no safe fallback and fails explicitly. Global directories and files use
|
|
138
|
+
private owner-only permissions where the operating system supports POSIX modes.
|
|
139
|
+
The envelope contains operational metadata only; prompts, responses, source
|
|
140
|
+
content, external conversation links, and credentials stay out of it.
|
|
141
|
+
|
|
142
|
+
Long-running desktop and browser work emits event-based progress checkpoints,
|
|
143
|
+
not a timer-driven heartbeat. Temporary profiles, processes, aliases, worktrees,
|
|
144
|
+
and fixtures use paired resource events; an unmatched acquisition blocks the
|
|
145
|
+
next task or run completion. Each acquisition has a unique run-local resource
|
|
146
|
+
id, so a delayed cleanup cannot close a later resource.
|
|
147
|
+
|
|
148
|
+
## Testing model
|
|
149
|
+
|
|
150
|
+
`cm-prd` can generate one `test-cases.json` per behavior-bearing feature.
|
|
151
|
+
`cm-ai` consumes logic cases during task review and browser cases during QA.
|
|
152
|
+
`cm-test` is a separate, default-read-only entry for already implemented
|
|
153
|
+
features. Its `--generate-cases` mode reads existing code and writes a validated
|
|
154
|
+
inferred draft, then stops before execution. Test failures can be handed to
|
|
155
|
+
`cm-fix` only by an explicit user decision.
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": 1,
|
|
3
|
+
"task_id": "T-FIX-cancel-throw",
|
|
4
|
+
"attempt": 1,
|
|
5
|
+
"status": "ready_for_review",
|
|
6
|
+
"changed_files": [
|
|
7
|
+
"experiments/js-orchestration/review-invocation-v3.test.mjs",
|
|
8
|
+
"experiments/js-orchestration/task-runner.mjs"
|
|
9
|
+
],
|
|
10
|
+
"implementation_sha256": "e6406c088aef3795145c74c39a644a214da414b9fa44d7260ab85f46f9ec3100",
|
|
11
|
+
"verification": [
|
|
12
|
+
{
|
|
13
|
+
"command": "node --test experiments/js-orchestration/review-invocation-v3.test.mjs",
|
|
14
|
+
"status": "passed",
|
|
15
|
+
"evidence": "Pre-fix 29/30 with only cancel-then-throw actual unknown vs expected cancelled; post-fix 30/30 passed."
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"command": "node --test experiments/js-orchestration/*.test.mjs",
|
|
19
|
+
"status": "passed",
|
|
20
|
+
"evidence": "964/964 passed after the correction."
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"command": "./scripts/cm-check-runtime.sh",
|
|
24
|
+
"status": "passed",
|
|
25
|
+
"evidence": "Runtime check passed, including global log, workflow config, readonly preparation, task gate, and ownership fixtures."
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"command": "python3 scripts/validate-public-repo.py",
|
|
29
|
+
"status": "passed",
|
|
30
|
+
"evidence": "Public repository validation passed for v0.10.4."
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"command": "find . -type f -name '*.sh' -print0 | xargs -0 -n1 /bin/bash -n",
|
|
34
|
+
"status": "passed",
|
|
35
|
+
"evidence": "All shell files passed syntax validation."
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"command": "git diff --check",
|
|
39
|
+
"status": "passed",
|
|
40
|
+
"evidence": "No whitespace errors."
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"evidence": [
|
|
44
|
+
"Human authorization and exact scope: .omx/plans/cm-js-s4c1b-v3-cancel-throw-fix.md",
|
|
45
|
+
"Independent reproduction and minimum correction: .omx/research/s4c1b-v3/implementation-review-r2.md",
|
|
46
|
+
"Defect archive with red evidence and root cause: docs/fixes/20260903-s4c1b-v3-cancel-throw.md",
|
|
47
|
+
"Predecessor task-runner SHA-256: 37dd02f6143697bbdc6e807ca6af11cebd147d4eea951994c4f963fcfbaf8dd7",
|
|
48
|
+
"Predecessor focused-test SHA-256: 954699ee3f38dcdf2e2078b6b4fec20b711d7b11469e93e6477f43434d836e2b",
|
|
49
|
+
"Current task-runner SHA-256: 9224a6007142f44b1f624cd76bc3848e7441ad97bda03c75ffeae46bf2baf626",
|
|
50
|
+
"Current focused-test SHA-256: 8450d76555adff7dc84b03d873a447f1ef96dd06a05c1c1c2ce5580c9aa20dcb",
|
|
51
|
+
"Task-only behavior delta: preserve cancelled/aborted in the authorize catch; add one cancel-then-throw recovery regression.",
|
|
52
|
+
"Public safety scan remained exit 1 with the exact five pre-existing findings in docs/marketing/wechat-draft-dry-run.json, tool-preview.mjs, and worker-codex.mjs; none is in this task scope and none is waived.",
|
|
53
|
+
"Pre-task dirty status hash: 46777ce1f47b86d7086766d30372046334de6d181b933263751fde4c8e01ee73. All unrelated tracked and untracked user changes are excluded."
|
|
54
|
+
],
|
|
55
|
+
"blockers": [],
|
|
56
|
+
"scope_deviation": []
|
|
57
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": 1,
|
|
3
|
+
"task_id": "T-FIX-cancel-throw",
|
|
4
|
+
"attempt": 2,
|
|
5
|
+
"status": "ready_for_review",
|
|
6
|
+
"changed_files": [
|
|
7
|
+
"experiments/js-orchestration/review-invocation-v3.test.mjs",
|
|
8
|
+
"experiments/js-orchestration/task-runner.mjs"
|
|
9
|
+
],
|
|
10
|
+
"verification": [
|
|
11
|
+
{
|
|
12
|
+
"command": "node --test experiments/js-orchestration/review-invocation-v3.test.mjs",
|
|
13
|
+
"status": "passed",
|
|
14
|
+
"evidence": "Pre-fix 29/30 with only cancel-then-throw actual unknown vs expected cancelled; post-fix 30/30 passed."
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"command": "node --test experiments/js-orchestration/*.test.mjs",
|
|
18
|
+
"status": "passed",
|
|
19
|
+
"evidence": "964/964 passed after the correction."
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"command": "./scripts/cm-check-runtime.sh",
|
|
23
|
+
"status": "passed",
|
|
24
|
+
"evidence": "Runtime check passed, including global log, workflow config, readonly preparation, task gate, and ownership fixtures."
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"command": "python3 scripts/validate-public-repo.py",
|
|
28
|
+
"status": "passed",
|
|
29
|
+
"evidence": "Public repository validation passed for v0.10.4."
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"command": "find . -type f -name '*.sh' -print0 | xargs -0 -n1 /bin/bash -n",
|
|
33
|
+
"status": "passed",
|
|
34
|
+
"evidence": "All shell files passed syntax validation."
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"command": "git diff --check",
|
|
38
|
+
"status": "passed",
|
|
39
|
+
"evidence": "No whitespace errors."
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"evidence": [
|
|
43
|
+
"Human authorization and exact scope: .omx/plans/cm-js-s4c1b-v3-cancel-throw-fix.md",
|
|
44
|
+
"Independent reproduction and minimum correction: .omx/research/s4c1b-v3/implementation-review-r2.md",
|
|
45
|
+
"Defect archive with red evidence and root cause: docs/fixes/20260903-s4c1b-v3-cancel-throw.md",
|
|
46
|
+
"Product implementation SHA-256 over the ordered two-file scope: e6406c088aef3795145c74c39a644a214da414b9fa44d7260ab85f46f9ec3100",
|
|
47
|
+
"Predecessor task-runner SHA-256: 37dd02f6143697bbdc6e807ca6af11cebd147d4eea951994c4f963fcfbaf8dd7",
|
|
48
|
+
"Predecessor focused-test SHA-256: 954699ee3f38dcdf2e2078b6b4fec20b711d7b11469e93e6477f43434d836e2b",
|
|
49
|
+
"Current task-runner SHA-256: 9224a6007142f44b1f624cd76bc3848e7441ad97bda03c75ffeae46bf2baf626",
|
|
50
|
+
"Current focused-test SHA-256: 8450d76555adff7dc84b03d873a447f1ef96dd06a05c1c1c2ce5580c9aa20dcb",
|
|
51
|
+
"Task-only behavior delta: preserve cancelled/aborted in the authorize catch; add one cancel-then-throw recovery regression.",
|
|
52
|
+
"Attempt 2 corrects only the handoff envelope by moving the product digest from the unsupported top-level implementation_sha256 field into this schema-supported evidence list; product files are byte-identical to attempt 1.",
|
|
53
|
+
"Public safety scan remained exit 1 with the exact five pre-existing findings in docs/marketing/wechat-draft-dry-run.json, tool-preview.mjs, and worker-codex.mjs; none is in this task scope and none is waived.",
|
|
54
|
+
"Pre-task dirty status hash: 46777ce1f47b86d7086766d30372046334de6d181b933263751fde4c8e01ee73. All unrelated tracked and untracked user changes are excluded."
|
|
55
|
+
],
|
|
56
|
+
"blockers": [],
|
|
57
|
+
"scope_deviation": []
|
|
58
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
---
|
|
2
|
+
at: 2026-09-03T20:10:01-07:00
|
|
3
|
+
reviewer: codex-subagent
|
|
4
|
+
independent: true
|
|
5
|
+
task: T-FIX-cancel-throw
|
|
6
|
+
attempt: 1
|
|
7
|
+
round: 1
|
|
8
|
+
verdict: changes_requested
|
|
9
|
+
blocking_findings: 1
|
|
10
|
+
handoff: fix-cancel-throw-T-FIX-cancel-throw-a1-handoff.json
|
|
11
|
+
handoff_sha256: d4bbcc592ca9b901b90f03bdeb49523380a5dffba291d32a1b5f85dd384eb7d5
|
|
12
|
+
scope:
|
|
13
|
+
- experiments/js-orchestration/review-invocation-v3.test.mjs
|
|
14
|
+
- experiments/js-orchestration/task-runner.mjs
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
# Findings
|
|
18
|
+
|
|
19
|
+
## P1-01 — the submitted handoff is not accepted by the repository's N4 contract
|
|
20
|
+
|
|
21
|
+
The handoff contains a top-level `implementation_sha256` field. The authoritative
|
|
22
|
+
`runtime/task-handoff.schema.json` does not declare that field, and
|
|
23
|
+
`scripts/cm-task-gate.py` requires the handoff's keys to match the schema exactly.
|
|
24
|
+
An independent run of the required gate failed:
|
|
25
|
+
|
|
26
|
+
```text
|
|
27
|
+
python3 scripts/cm-task-gate.py check-n4 \
|
|
28
|
+
--task T-FIX-cancel-throw \
|
|
29
|
+
--feature fix-cancel-throw \
|
|
30
|
+
--reviews-dir docs/fixes/.reviews \
|
|
31
|
+
--handoff docs/fixes/.reviews/fix-cancel-throw-T-FIX-cancel-throw-a1-handoff.json
|
|
32
|
+
|
|
33
|
+
ERROR: handoff has unknown fields: implementation_sha256
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
This is blocking because `runtime/review.md` requires N4 to accept the
|
|
37
|
+
`ready_for_review` handoff before independent approval, and N5 reloads the same
|
|
38
|
+
handoff through the same strict parser. The field value does equal the delegated
|
|
39
|
+
value `e6406c088aef3795145c74c39a644a214da414b9fa44d7260ab85f46f9ec3100`,
|
|
40
|
+
and the handoff bytes match the supplied SHA-256
|
|
41
|
+
`d4bbcc592ca9b901b90f03bdeb49523380a5dffba291d32a1b5f85dd384eb7d5`,
|
|
42
|
+
but neither fact makes an invalid envelope admissible.
|
|
43
|
+
|
|
44
|
+
Minimum correction: remove the unsupported top-level field. If the task wants to
|
|
45
|
+
retain that digest as author evidence, place it in an existing `evidence` string,
|
|
46
|
+
which is already schema-supported. Do not widen the shared handoff schema for this
|
|
47
|
+
local correction. Regenerate the handoff SHA-256, rerun N4, and request a fresh
|
|
48
|
+
independent review bound to the corrected handoff. The current review cannot
|
|
49
|
+
authorize N5 after the handoff changes.
|
|
50
|
+
|
|
51
|
+
# Product-code review
|
|
52
|
+
|
|
53
|
+
No product-code blocking finding was found in the two-file correction.
|
|
54
|
+
|
|
55
|
+
The catch in `task-runner.mjs` now checks the already authoritative cancellation
|
|
56
|
+
state/signal before classifying an authorization exception. It therefore preserves
|
|
57
|
+
durable cancellation without masking a normal exception. It does not change grant
|
|
58
|
+
validation, registration, dispatch, durable schema, receipt authority, or completion
|
|
59
|
+
authority.
|
|
60
|
+
|
|
61
|
+
The added test exercises the exact formerly failing sequence and asserts all material
|
|
62
|
+
outcomes: terminal `cancelled/cancelled`, zero adapter dispatch, no invocation
|
|
63
|
+
diagnostic/registration, durable suffix
|
|
64
|
+
`effect-intent -> control -> effect-checkpoint`, and identical reopened state. It is
|
|
65
|
+
behavioral rather than an implementation-only assertion.
|
|
66
|
+
|
|
67
|
+
An independent two-scenario temporary-tree probe used a genuine
|
|
68
|
+
`openTaskExecutionStore` and confirmed:
|
|
69
|
+
|
|
70
|
+
- cancel then throw: zero dispatch, `cancelled/cancelled`, the exact three-record
|
|
71
|
+
suffix, `cancellationRequested:true`, and identical resume;
|
|
72
|
+
- plain authorization throw without cancellation: zero dispatch,
|
|
73
|
+
`unknown/authorization_invalid`, no control record,
|
|
74
|
+
`cancellationRequested:false`, and identical resume.
|
|
75
|
+
|
|
76
|
+
This closes the predecessor P1 without inventing cancellation authority for ordinary
|
|
77
|
+
authorization errors.
|
|
78
|
+
|
|
79
|
+
# Verification
|
|
80
|
+
|
|
81
|
+
- Product hashes matched the handoff evidence:
|
|
82
|
+
- `experiments/js-orchestration/task-runner.mjs` —
|
|
83
|
+
`9224a6007142f44b1f624cd76bc3848e7441ad97bda03c75ffeae46bf2baf626`
|
|
84
|
+
- `experiments/js-orchestration/review-invocation-v3.test.mjs` —
|
|
85
|
+
`8450d76555adff7dc84b03d873a447f1ef96dd06a05c1c1c2ce5580c9aa20dcb`
|
|
86
|
+
- `node --test experiments/js-orchestration/review-invocation-v3.test.mjs` —
|
|
87
|
+
exit 0, **30/30 passed** independently.
|
|
88
|
+
- `node --check` on both scoped product files — exit 0.
|
|
89
|
+
- `git diff --check` — exit 0.
|
|
90
|
+
- The independent adversarial probe above passed both cancellation and non-cancellation
|
|
91
|
+
branches using synthetic temporary files only; no provider, credential, real task,
|
|
92
|
+
installation, or Git action was used.
|
|
93
|
+
- Parent-reported full Node result was **964/964 passed**, with runtime/public/diff/
|
|
94
|
+
shell gates passing and the same five pre-existing safety findings. Those broader
|
|
95
|
+
author results were not independently rerun here and do not override the failed N4
|
|
96
|
+
evidence gate.
|
|
97
|
+
|
|
98
|
+
# Scope and residual risk
|
|
99
|
+
|
|
100
|
+
The product delta is exactly the authorized catch guard and one regression in the two
|
|
101
|
+
declared files. No overdevelopment, dependency, schema change, provider integration,
|
|
102
|
+
receipt/completion path, F01 completion, or unrelated cleanup was found.
|
|
103
|
+
|
|
104
|
+
The unchanged broader V3 limits remain: this is local host-trust fixture evidence,
|
|
105
|
+
not remote provenance, real provider authorization, remote cancellation, or
|
|
106
|
+
completion authority. The five pre-existing public-safety findings remain outside
|
|
107
|
+
this task and unwaived.
|
|
108
|
+
|
|
109
|
+
# Learning check
|
|
110
|
+
|
|
111
|
+
The scoped candidate is supported: reentrant host callbacks must preserve durable
|
|
112
|
+
cancellation on both normal and exceptional exits before dispatch. The reviewer did
|
|
113
|
+
not edit `AGENTS.md`; that file remains outside the human-authorized product scope.
|
|
114
|
+
|
|
115
|
+
# Verdict and next action
|
|
116
|
+
|
|
117
|
+
**changes_requested.** The two-file implementation is technically sound, but its
|
|
118
|
+
current handoff cannot pass N4 and therefore cannot receive a valid approval. Remove
|
|
119
|
+
the unsupported handoff field without changing product code, regenerate and validate
|
|
120
|
+
the handoff, then obtain a fresh independent review bound to its new SHA-256. Do not
|
|
121
|
+
run N5 or mark the task complete from this evidence.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": 1,
|
|
3
|
+
"task_id": "T-FIX-cancel-throw-v2",
|
|
4
|
+
"attempt": 1,
|
|
5
|
+
"status": "ready_for_review",
|
|
6
|
+
"changed_files": [
|
|
7
|
+
"experiments/js-orchestration/review-invocation-v3.test.mjs",
|
|
8
|
+
"experiments/js-orchestration/task-runner.mjs"
|
|
9
|
+
],
|
|
10
|
+
"verification": [
|
|
11
|
+
{
|
|
12
|
+
"command": "node --test experiments/js-orchestration/review-invocation-v3.test.mjs",
|
|
13
|
+
"status": "passed",
|
|
14
|
+
"evidence": "Pre-fix 29/30 with only cancel-then-throw actual unknown vs expected cancelled; post-fix 30/30 passed."
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"command": "node --test experiments/js-orchestration/*.test.mjs",
|
|
18
|
+
"status": "passed",
|
|
19
|
+
"evidence": "964/964 passed after the correction."
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"command": "./scripts/cm-check-runtime.sh",
|
|
23
|
+
"status": "passed",
|
|
24
|
+
"evidence": "Runtime check passed, including global log, workflow config, readonly preparation, task gate, and ownership fixtures."
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"command": "python3 scripts/validate-public-repo.py",
|
|
28
|
+
"status": "passed",
|
|
29
|
+
"evidence": "Public repository validation passed for v0.10.4."
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"command": "find . -type f -name '*.sh' -print0 | xargs -0 -n1 /bin/bash -n",
|
|
33
|
+
"status": "passed",
|
|
34
|
+
"evidence": "All shell files passed syntax validation."
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"command": "git diff --check",
|
|
38
|
+
"status": "passed",
|
|
39
|
+
"evidence": "No whitespace errors."
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"evidence": [
|
|
43
|
+
"Human authorization and exact scope: .omx/plans/cm-js-s4c1b-v3-cancel-throw-fix.md",
|
|
44
|
+
"Independent reproduction and minimum correction: .omx/research/s4c1b-v3/implementation-review-r2.md",
|
|
45
|
+
"Defect archive with red evidence and root cause: docs/fixes/20260903-s4c1b-v3-cancel-throw.md",
|
|
46
|
+
"Product implementation SHA-256 over the ordered two-file scope: e6406c088aef3795145c74c39a644a214da414b9fa44d7260ab85f46f9ec3100",
|
|
47
|
+
"Current task-runner SHA-256: 9224a6007142f44b1f624cd76bc3848e7441ad97bda03c75ffeae46bf2baf626",
|
|
48
|
+
"Current focused-test SHA-256: 8450d76555adff7dc84b03d873a447f1ef96dd06a05c1c1c2ce5580c9aa20dcb",
|
|
49
|
+
"Task-only behavior delta: preserve cancelled/aborted in the authorize catch; add one cancel-then-throw recovery regression.",
|
|
50
|
+
"The original T-FIX-cancel-throw R1 found no product defect but rejected its newer installed-plugin handoff envelope. Those original artifacts remain unchanged. This replacement task uses only fields accepted by the source repository schema; no product byte changed after R1.",
|
|
51
|
+
"Public safety scan remained exit 1 with the exact five pre-existing findings in docs/marketing/wechat-draft-dry-run.json, tool-preview.mjs, and worker-codex.mjs; none is in this task scope and none is waived.",
|
|
52
|
+
"Pre-task dirty status hash: 46777ce1f47b86d7086766d30372046334de6d181b933263751fde4c8e01ee73. All unrelated tracked and untracked user changes are excluded."
|
|
53
|
+
],
|
|
54
|
+
"blockers": [],
|
|
55
|
+
"scope_deviation": []
|
|
56
|
+
}
|