@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,58 @@
|
|
|
1
|
+
# Pre-landing integrity closure
|
|
2
|
+
|
|
3
|
+
## 现象
|
|
4
|
+
|
|
5
|
+
模型用量与调用边界的第一轮修复通过了聚焦测试,但落地前复审发现四个完整性问题:
|
|
6
|
+
|
|
7
|
+
1. 审查只绑定 handoff 文件,没有绑定被审实现内容,且当前工作树仍有文件不在 scope;
|
|
8
|
+
2. 内置 `openai-compatible` usage 没有 claim 也能被写入并计为真实用量;
|
|
9
|
+
3. provider 成功后 stdout 写入失败会留下 success usage 与失败进程相互矛盾;
|
|
10
|
+
4. `reviewer` 可配置成 managed API,但该输出不能满足 N4,造成无效 Token 消耗。
|
|
11
|
+
|
|
12
|
+
## 红灯证据
|
|
13
|
+
|
|
14
|
+
- `python3 scripts/test-task-gate.py`:`hash-implementation` 子命令不存在,内容变化不会让门禁失败;
|
|
15
|
+
- `python3 scripts/test-cm-usage-report.py`:无 claim 的 managed usage 被计为 1 次调用、999 input tokens;
|
|
16
|
+
- `python3 scripts/test-cm-openai-compatible-call.py`:stdout 关闭后抛出 `BrokenPipeError`,日志仍为 success;
|
|
17
|
+
- `python3 scripts/test-workflow-config.py`:`reviewer.adapter: openai-compatible` 被错误接受。
|
|
18
|
+
|
|
19
|
+
## 根因
|
|
20
|
+
|
|
21
|
+
- N4/N5 只校验 handoff 与 review 文件之间的 SHA,没有重算 `changed_files` 的内容摘要;
|
|
22
|
+
- writer 把“允许无 claim 的通用 usage”错误地同样应用到内置 managed adapter;
|
|
23
|
+
- adapter 在记录 success 后才把结果交给 stdout,输出通道不在成功边界内;
|
|
24
|
+
- 角色配置只校验适配器字段组合,没有校验 managed reviewer 与 N4 凭证合同不兼容。
|
|
25
|
+
|
|
26
|
+
## 最小修复
|
|
27
|
+
|
|
28
|
+
- 新 handoff 可写 `implementation_sha256`;`check-n4`、`check-n5` 和 `mark-done`
|
|
29
|
+
使用 `--project-root` 重算。历史无摘要凭证只能显式 `--allow-legacy-unbound` 恢复;
|
|
30
|
+
- 内置 `openai-compatible` usage 必须先有完整身份一致的 claim,writer 与 reporter 双层拒绝;
|
|
31
|
+
- provider 结果先成功写入并 flush stdout,再记录 success;输出失败记录 error 且无 traceback;
|
|
32
|
+
- 配置解析阶段拒绝 `reviewer.adapter: openai-compatible`,不发起无效 API 调用;
|
|
33
|
+
- 更新 CM AI、Fix、Refactor 与用户文档,使新凭证路径真正消费内容绑定。
|
|
34
|
+
|
|
35
|
+
放弃方案:不引入数据库、模型网关或新的审查通道;沿用现有 JSONL、文件凭证与本地 N4。
|
|
36
|
+
|
|
37
|
+
## 回归
|
|
38
|
+
|
|
39
|
+
- `python3 scripts/test-cm-usage-report.py`: PASS
|
|
40
|
+
- `python3 scripts/test-cm-openai-compatible-call.py`: PASS
|
|
41
|
+
- `python3 scripts/test-workflow-config.py`: PASS
|
|
42
|
+
- `python3 scripts/test-task-gate.py`: PASS
|
|
43
|
+
- Python compilation and `git diff --check`: PASS
|
|
44
|
+
|
|
45
|
+
## 审核状态与摘要边界
|
|
46
|
+
|
|
47
|
+
attempt-2 的 `implementation_sha256` 绑定的是 **a2 handoff 生成前的 40 个实现与落地
|
|
48
|
+
路径**,并不声称覆盖生成后才出现的 a2 handoff 和 r2 review 两份证据文件。后两者若
|
|
49
|
+
参与自己的摘要会形成无法稳定计算的自引用,因此由 handoff SHA、review header 与任务
|
|
50
|
+
状态转换单独绑定。
|
|
51
|
+
|
|
52
|
+
完整仓库门禁均通过,四个功能问题本身已经收口;但独立 round 2 发现旧文案把这 40 个
|
|
53
|
+
路径误写成“所有当前 modified/untracked landing paths”,因此该任务最终 disposition
|
|
54
|
+
是 `blocked`,见
|
|
55
|
+
`docs/fixes/.reviews/fix-model-call-boundary-identity-T-FIX-model-call-boundary-identity-r2.md`。
|
|
56
|
+
本段与上一份档案的状态修正由独立小修复任务
|
|
57
|
+
`fix-review-evidence-scope-honesty-T-FIX-review-evidence-scope-honesty-*` 重新绑定和审查,
|
|
58
|
+
不会改写或伪装原任务的两轮历史。
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# OpenAI-compatible 深层 JSON fixture 跨版本修复
|
|
2
|
+
|
|
3
|
+
## 现象
|
|
4
|
+
|
|
5
|
+
`scripts/test-cm-openai-compatible-call.py` 在 Python 3.9 通过,但在 CI 的
|
|
6
|
+
Python 3.12 上失败。Linux 与 Windows 均停在深层请求 JSON 的错误文案断言;
|
|
7
|
+
修复第一处后,深层 provider 响应存在同样问题。
|
|
8
|
+
|
|
9
|
+
## 红灯证据
|
|
10
|
+
|
|
11
|
+
- `python3.12 scripts/test-cm-openai-compatible-call.py`:失败于原第 760 行,
|
|
12
|
+
预期 `stdin is not valid strict UTF-8 JSON`;
|
|
13
|
+
- 同一份 2000 层请求在 Python 3.9 返回“无效严格 JSON”,在 Python 3.12
|
|
14
|
+
返回 `stdin exceeds the maximum JSON nesting depth`;
|
|
15
|
+
- 请求侧修正后,Python 3.12 在 provider 响应侧的同类断言继续失败。
|
|
16
|
+
|
|
17
|
+
## 根因
|
|
18
|
+
|
|
19
|
+
fixture 用 2000 层 JSON 同时测试“Python 解析器递归上限”和“适配器 128 层
|
|
20
|
+
深度上限”,并把 Python 3.9 先抛出的 `RecursionError` 文案当成产品契约。
|
|
21
|
+
Python 3.12 能解析该输入,随后正确命中适配器自己的深度保护,因此测试结果
|
|
22
|
+
随解释器版本变化。
|
|
23
|
+
|
|
24
|
+
## 最小修复
|
|
25
|
+
|
|
26
|
+
- 请求与响应 fixture 都改为 256 层:足以稳定超过产品的 128 层限制,同时
|
|
27
|
+
不依赖 Python 解析器先失败;
|
|
28
|
+
- 两侧都断言产品定义的 `exceeds the maximum JSON nesting depth` 错误;
|
|
29
|
+
- 不修改适配器运行时行为、协议、日志或错误码。
|
|
30
|
+
|
|
31
|
+
## 回归
|
|
32
|
+
|
|
33
|
+
- `python3 scripts/test-cm-openai-compatible-call.py`: PASS(Python 3.9.6)
|
|
34
|
+
- `python3.12 scripts/test-cm-openai-compatible-call.py`: PASS(Python 3.12)
|
|
35
|
+
- Python 3.12 `./scripts/cm-check-runtime.sh`: PASS
|
|
36
|
+
- public repository validation、public safety、Bash syntax、shell compatibility、
|
|
37
|
+
workflow config、task gate 与 `git diff --check`: PASS
|
|
38
|
+
|
|
39
|
+
独立审查凭证位于 `docs/fixes/.reviews/`,并通过内容摘要绑定本次两个改动文件。
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# CM JS N1–N2 admission R1 boundary fixes
|
|
2
|
+
|
|
3
|
+
Date: 2026-09-03
|
|
4
|
+
Status: fixed and locally verified; fresh independent R2 pending.
|
|
5
|
+
|
|
6
|
+
## Symptoms and reproductions
|
|
7
|
+
|
|
8
|
+
Fresh independent R1 reproduced four failures against the original candidate:
|
|
9
|
+
|
|
10
|
+
1. An approved status listing only `1.approved` still selected a newly added
|
|
11
|
+
`2.unapproved/T-001`.
|
|
12
|
+
2. A test contract's `T-999` reference passed when `T-999` appeared only in design prose.
|
|
13
|
+
3. A feature `tasks.md` symlink outside specs supplied the selected task.
|
|
14
|
+
4. `login-T-001-r1.md` incorrectly suppressed missing-review evidence for
|
|
15
|
+
`2.profile/T-001`.
|
|
16
|
+
|
|
17
|
+
Each reproduction was added to
|
|
18
|
+
`experiments/js-orchestration/cm-ai-admission.test.mjs` and failed before its repair.
|
|
19
|
+
|
|
20
|
+
## Root cause
|
|
21
|
+
|
|
22
|
+
The read-only admission already parsed the relevant files, but four authority identities
|
|
23
|
+
were only partially bound: approved feature inventory, structured declarations, feature
|
|
24
|
+
realpaths, and feature-plus-task review filenames.
|
|
25
|
+
|
|
26
|
+
## Minimal repair
|
|
27
|
+
|
|
28
|
+
- Compare approved `features` as an exact set with discovered numbered feature directories;
|
|
29
|
+
drift returns `awaiting_spec_approval/spec_features_changed`.
|
|
30
|
+
- Build AC references only from structured AC declaration rows and task references only from
|
|
31
|
+
actual `tasks.md` task rows.
|
|
32
|
+
- Resolve each required triplet file and require its realpath to remain under the feature root.
|
|
33
|
+
- Match historical review evidence by feature name plus task id, while accepting the existing
|
|
34
|
+
numbered and unnumbered feature filename forms.
|
|
35
|
+
|
|
36
|
+
No generic registry, DAG, pipeline, database, provider identity scheme, N3–N8 behavior or
|
|
37
|
+
automatic Learning analyzer was added.
|
|
38
|
+
|
|
39
|
+
## Verification
|
|
40
|
+
|
|
41
|
+
- Focused admission suite: 13/13 passed.
|
|
42
|
+
- Full Node suite: 977/977 passed.
|
|
43
|
+
- Module syntax and `git diff --check`: passed.
|
|
44
|
+
- `./scripts/cm-check-runtime.sh`: passed, plugin v0.10.4.
|
|
45
|
+
- `python3 scripts/validate-public-repo.py`: passed, 8 core skills.
|
|
46
|
+
- Public safety scan: same five pre-existing findings; no new finding.
|
|
47
|
+
|
|
48
|
+
Current hashes:
|
|
49
|
+
|
|
50
|
+
- `cm-ai-admission.mjs`: `df3aa4f0ddaa12aaac743f9736a5e33ebebd4a1dbf13978504565348f17d1a44`
|
|
51
|
+
- `cm-ai-admission.test.mjs`: `941da7b393b4c1b30a9f29bd9c1b2f0674d7f173f97fc8d69b1781cca01b5b8a`
|
|
52
|
+
- `experiments/js-orchestration/README.md`: `ef47c3e8ba72df1c9403c30a148f21bed1aa55b8ff7d0fc085d0cf08b37192b3`
|
|
53
|
+
|
|
54
|
+
## Review and delivery boundary
|
|
55
|
+
|
|
56
|
+
R1 was `changes_requested`. These changes are attempt 2 and have not received fresh R2.
|
|
57
|
+
No task/F01 checkbox, review credential, Git commit, push, install, release, real specs write,
|
|
58
|
+
or provider call was produced by this repair.
|
|
59
|
+
|
|
60
|
+
## Learning
|
|
61
|
+
|
|
62
|
+
Two evidence-backed `[已结构化]` lessons were added to the root `AGENTS.md`: approved
|
|
63
|
+
snapshots bind complete inventories, and identity boundaries require structured declarations,
|
|
64
|
+
realpath containment, and feature-plus-task evidence matching. They must be included in R2.
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# CM JS N1–N2 admission R2 path/identity successor
|
|
2
|
+
|
|
3
|
+
日期:2026-09-03
|
|
4
|
+
状态:fixed and locally verified;`ready_for_review`,最终裁决以对应 Review 证据为准。
|
|
5
|
+
|
|
6
|
+
## 现象与来源
|
|
7
|
+
|
|
8
|
+
Fresh R2(thread `01a06b0d-5372-70e0-8398-e79ac2b9fdaa`)在原 13 项测试全绿后,
|
|
9
|
+
用临时对抗夹具复现三个残留边界:
|
|
10
|
+
|
|
11
|
+
1. specs 外的 `.cm-specs-status` 可决定批准状态;
|
|
12
|
+
2. `test-cases.json` 可链接到 specs 外或相邻 feature;
|
|
13
|
+
3. 重复 feature slug 或外链 `.reviews` 可错误消除历史 Review 欠账 warning。
|
|
14
|
+
|
|
15
|
+
R2 按两轮上限裁决原 attempt 2 `blocked`。用户随后只授权一个新的极窄 successor,
|
|
16
|
+
不是 attempt 3,也不授权其他产品能力。
|
|
17
|
+
|
|
18
|
+
## 基线与红灯
|
|
19
|
+
|
|
20
|
+
- 修改前 focused:13/13 passed。
|
|
21
|
+
- 新增五个直接复现用例后:13 passed、5 failed、exit 1。
|
|
22
|
+
- 错误实际值:前三项返回 `ready` 而非 `blocked`;后两项返回 `complete` 而非
|
|
23
|
+
`blocked`。
|
|
24
|
+
|
|
25
|
+
五个失败分别覆盖:批准文件外链、旧合同外链、记录合同跨 feature、重复 slug、
|
|
26
|
+
`.reviews` 目录外链。测试文件:
|
|
27
|
+
`experiments/js-orchestration/cm-ai-admission.test.mjs`。
|
|
28
|
+
|
|
29
|
+
## 根因
|
|
30
|
+
|
|
31
|
+
N1–N2 admission 已验证 feature 三件套与普通 feature/task 名称,但没有把批准状态、
|
|
32
|
+
可选测试合同、Review 目录和去编号后的 slug 纳入同一个物理/逻辑身份边界。
|
|
33
|
+
|
|
34
|
+
## 最小修法
|
|
35
|
+
|
|
36
|
+
- `.cm-specs-status` 的 realpath 必须留在 specs root;否则 `spec_status_invalid`。
|
|
37
|
+
- recorded 与 legacy 测试合同的 realpath 必须留在对应 feature root;否则分别按
|
|
38
|
+
`spec_status_invalid` / `test_cases_invalid` 阻断。
|
|
39
|
+
- feature discovery 拒绝重复的无编号 slug。
|
|
40
|
+
- `.reviews` 必须是直接目录,不能是 symlink;否则 `review_evidence_invalid`。
|
|
41
|
+
- 只改 admission 根因层和对应文档,没有进入 N3–N5 或增加通用安全抽象。
|
|
42
|
+
|
|
43
|
+
## 绿灯与回归
|
|
44
|
+
|
|
45
|
+
- focused:18/18 passed。
|
|
46
|
+
- syntax:passed。
|
|
47
|
+
- full Node:982/982 passed,exit 0。
|
|
48
|
+
- runtime:passed,plugin v0.10.4。
|
|
49
|
+
- public repository validation:passed,8 core skills。
|
|
50
|
+
- `git diff --check`:passed;候选新文件另以完整哈希和 Node 解析绑定。
|
|
51
|
+
- safety:exit 1,仍精确为原有五项:
|
|
52
|
+
- `docs/marketing/wechat-draft-dry-run.json:5,8`
|
|
53
|
+
- `experiments/js-orchestration/tool-preview.mjs:40,98`
|
|
54
|
+
- `experiments/js-orchestration/worker-codex.mjs:26`
|
|
55
|
+
本 successor 未修改或豁免这些位置。
|
|
56
|
+
|
|
57
|
+
## Learning
|
|
58
|
+
|
|
59
|
+
将已有“身份边界不能靠字符串碰巧命中”教训增量扩充:固定路径还必须验证真实来源,
|
|
60
|
+
feature slug 必须唯一,证据目录不得通过 symlink 改变权威根。该改写与代码一起等待
|
|
61
|
+
successor 独立 Review,不在 Review 后追加。
|
|
62
|
+
|
|
63
|
+
## Successor Review R1 与 attempt 2
|
|
64
|
+
|
|
65
|
+
Fresh successor R1(thread `01a06b2b-ef9e-7d03-b150-5282e3c48308`)确认原五类
|
|
66
|
+
R2 输入与 982 项全量回归通过,但复现一个同范围 Medium:`1.login` 完整名会与
|
|
67
|
+
`2.1.login` 的无编号 slug 碰撞,一份 `1.login-T-001-r1.md` 会消除两项欠账。
|
|
68
|
+
|
|
69
|
+
- R1 verdict:`changes_requested`,N5 正确拒绝。
|
|
70
|
+
- 新增一个直接回归后红灯:18 passed、1 failed,实际 `complete`、预期 `blocked`。
|
|
71
|
+
- 最小修复:对所有完整 feature 名和无编号 slug 构成的实际 Review 匹配键做全局唯一检查。
|
|
72
|
+
- focused 修复后:19/19 passed。
|
|
73
|
+
- attempt 2 full Node:983/983 passed,exit 0。
|
|
74
|
+
- attempt 2 runtime/public/syntax/diff:passed;safety 仍精确为原有五项。
|
|
75
|
+
- attempt 2 fresh R2:待执行。
|
|
76
|
+
|
|
77
|
+
## 未做
|
|
78
|
+
|
|
79
|
+
- 不处理 R2 标注为非阻断的 `- AC-999:` 解释风险。
|
|
80
|
+
- 不扩展 hardlink、通用 TOCTOU、provider 身份或安全平台。
|
|
81
|
+
- 不处理历史 safety 五项,不写真实 specs/tasks,不安装、不提交、不推送、不发布。
|
|
82
|
+
- 安装版 `$cm-fix` 引用的 `runtime/model-efficiency.md` 与 `hash-implementation` 子命令
|
|
83
|
+
在当前源码仓库不存在;沿用源码 v1 handoff、逐文件 SHA 与 manifest SHA,不补造接口。
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# S4-C1b-V3 authorization cancel-then-throw
|
|
2
|
+
|
|
3
|
+
Status: fixed and independently approved. Accepted replacement review task:
|
|
4
|
+
`T-FIX-cancel-throw-v2`.
|
|
5
|
+
|
|
6
|
+
## Symptom
|
|
7
|
+
|
|
8
|
+
A trusted V3 reviewer authorization callback may call `runner.cancel()` and then
|
|
9
|
+
throw. The cancel control is durably written and adapter dispatch is avoided, but
|
|
10
|
+
the catch path changes the terminal state to `unknown/authorization_invalid`.
|
|
11
|
+
Checkpoint validation then cannot persist the cancel/non-cancelled mismatch, so
|
|
12
|
+
recovery degrades to `unknown/reconciliation_required`.
|
|
13
|
+
|
|
14
|
+
## Reproduction
|
|
15
|
+
|
|
16
|
+
Command:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
node --test experiments/js-orchestration/review-invocation-v3.test.mjs
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Pre-fix result on 2026-09-03: exit 1, 30 tests, 29 passed, 1 failed. The sole
|
|
23
|
+
failure was `V3 cancellation inside authorize remains durable when the callback
|
|
24
|
+
throws`, where actual `end.state` was `unknown` and expected was `cancelled`.
|
|
25
|
+
|
|
26
|
+
## Root cause
|
|
27
|
+
|
|
28
|
+
`runner.cancel()` persists the authoritative `control` record and sets the shared
|
|
29
|
+
controller/state to cancelled. The exceptional exit from `authorize` then calls
|
|
30
|
+
`halt('unknown', ...)` unconditionally, replacing the causally established terminal
|
|
31
|
+
state before the effect checkpoint is written.
|
|
32
|
+
|
|
33
|
+
## Repair decision
|
|
34
|
+
|
|
35
|
+
In the existing authorization catch, return immediately when state is already
|
|
36
|
+
cancelled or the shared controller is aborted. Otherwise preserve the existing
|
|
37
|
+
authorization-error classification. This is smaller than changing checkpoint
|
|
38
|
+
validation or adding another terminal/result variant, and keeps cancellation
|
|
39
|
+
causality at the boundary where it is lost.
|
|
40
|
+
|
|
41
|
+
Rejected alternatives:
|
|
42
|
+
|
|
43
|
+
- Relaxing checkpoint validation would accept internally contradictory histories.
|
|
44
|
+
- Reclassifying every authorization exception as cancellation would invent cancel
|
|
45
|
+
authority when no durable control exists.
|
|
46
|
+
- Redesigning V3 or adding a new durable record type is unnecessary.
|
|
47
|
+
|
|
48
|
+
## Impact and regression scope
|
|
49
|
+
|
|
50
|
+
Product impact is limited to the reviewer authorization callback's exceptional exit
|
|
51
|
+
before registration and dispatch. Regression must cover the focused V3 suite, full
|
|
52
|
+
Node orchestration suite, runtime/public/diff/shell gates, unchanged safety findings,
|
|
53
|
+
and fresh independent review of the two product-file hashes.
|
|
54
|
+
|
|
55
|
+
## Learning check
|
|
56
|
+
|
|
57
|
+
Candidate: reentrant host callbacks must preserve durable cancellation on both normal
|
|
58
|
+
and exceptional exits before dispatch. It remains recorded in task evidence rather
|
|
59
|
+
than being mixed into the already dirty root `AGENTS.md`, matching the human-approved
|
|
60
|
+
two-product-file correction scope.
|
|
61
|
+
|
|
62
|
+
## Review history
|
|
63
|
+
|
|
64
|
+
- Independent R1 found zero product-code defects and independently confirmed both the
|
|
65
|
+
cancel-then-throw and ordinary-throw branches. It requested one evidence-envelope
|
|
66
|
+
correction: the installed workflow gate accepted a newer top-level
|
|
67
|
+
`implementation_sha256`, but the source repository's current authoritative schema
|
|
68
|
+
rejects that field.
|
|
69
|
+
- Attempt 2 preserves the exact product bytes and moves the combined implementation
|
|
70
|
+
digest into the schema-supported evidence list. No shared schema or gate was widened.
|
|
71
|
+
|
|
72
|
+
The source repository gate cannot form attempt 2 from an attempt-1 handoff that was
|
|
73
|
+
itself schema-invalid. The original handoff, attempted follow-up, and R1 review were
|
|
74
|
+
therefore preserved as failed audit evidence. A replacement attempt-1 handoff using
|
|
75
|
+
only repository-supported fields passed N4 and received a fresh independent review.
|
|
76
|
+
|
|
77
|
+
## Result
|
|
78
|
+
|
|
79
|
+
- Repair: the authorization catch returns immediately when durable cancellation or
|
|
80
|
+
its shared abort signal has already won; ordinary exceptions still become
|
|
81
|
+
`unknown/authorization_invalid`.
|
|
82
|
+
- Focused regression: red 29/30 before repair; green 30/30 before and after review.
|
|
83
|
+
- Full regression: 964/964 before and after review.
|
|
84
|
+
- Other gates: runtime/public/diff/shell passed; public safety retained the exact
|
|
85
|
+
five pre-existing out-of-scope findings, unwaived.
|
|
86
|
+
- Independent review:
|
|
87
|
+
`docs/fixes/.reviews/fix-cancel-throw-v2-T-FIX-cancel-throw-v2-r1.md` — approved,
|
|
88
|
+
zero findings. Repository N5 returned `outcome: approved`.
|
|
89
|
+
- No provider, install, Git, receipt/completion, F01, real task, or AGENTS write.
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# F01 Codex 双失败终态归一化
|
|
2
|
+
|
|
3
|
+
状态:实现与离线回归完成,等待 fresh 独立 Review。任务:
|
|
4
|
+
`T-FIX-f01-dual-failure-terminal`。
|
|
5
|
+
|
|
6
|
+
## 现象
|
|
7
|
+
|
|
8
|
+
唯一获批的 F01 synthetic live review 依次收到
|
|
9
|
+
`thread.started → turn.started → error → turn.failed`。worker 把两个 failure terminal
|
|
10
|
+
都转发给只接受单终态的 normalized observer,导致 V3 将本应为普通传输失败的结果
|
|
11
|
+
保存为 `unknown/observation_invalid`。同一 live harness 还错误地把 string-valued
|
|
12
|
+
`reviewInvocation.started` 当对象读取,使结果摘要中的 provider thread 为 null。
|
|
13
|
+
|
|
14
|
+
本修复不重跑 provider,不改变该 live attempt 的历史证据,也不勾选 F01。
|
|
15
|
+
|
|
16
|
+
## 复现与红灯证据
|
|
17
|
+
|
|
18
|
+
修复前运行:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
node --test --test-name-pattern='duplicate provider failure|error then turn.failed|one observed non-authoritative' \
|
|
22
|
+
experiments/js-orchestration/smoke.test.mjs \
|
|
23
|
+
experiments/js-orchestration/codex-review-adapter.test.mjs \
|
|
24
|
+
.omx/research/f01-codex-review-live/smoke.test.mjs
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
结果:exit 1,3/3 失败。
|
|
28
|
+
|
|
29
|
+
- worker 事件中同时出现 `error` 与 `turn.failed`;
|
|
30
|
+
- V3 实际为 `observation_invalid`,期望为 `transport_incomplete`;
|
|
31
|
+
- smoke validator 实际为 `provider_thread_invalid`,因为 fixture 已改为磁盘真实的
|
|
32
|
+
string-valued `started`。
|
|
33
|
+
|
|
34
|
+
## 根因与证据链
|
|
35
|
+
|
|
36
|
+
调用链:provider JSONL → `worker-codex.mjs` → normalized observation → V3 runner →
|
|
37
|
+
持久化状态/报告摘要。
|
|
38
|
+
|
|
39
|
+
| 边 | 预期证据 | 实际证据 | 结论 |
|
|
40
|
+
| --- | --- | --- | --- |
|
|
41
|
+
| provider → worker | 一个进程可输出已观察到的两个失败事件 | fixture 精确重放 `error → turn.failed` | 最后正常边 |
|
|
42
|
+
| worker → observer | 一次失败只形成一个 normalized terminal | 修复前两个 terminal 都被转发 | 首个失败边 |
|
|
43
|
+
| observer → V3 | 单失败终态为 `unknown/transport_incomplete` | 修复前 duplicate terminal 被拒绝为 `observation_invalid` | 下游按合同 fail closed |
|
|
44
|
+
| V3 → smoke 摘要 | 从 `reviewInvocation.started` 读取 thread string | harness 读取 `.started.providerThreadId` | 独立报告瑕疵 |
|
|
45
|
+
|
|
46
|
+
已证实假设:worker 在 `stop('provider_failed')` 前无终态去重,且 stdout 同一 chunk
|
|
47
|
+
中的后续事件仍会进入 `accept`。反证试验是在不改 observer 的前提下只抑制第二个
|
|
48
|
+
failure terminal;新增两层测试随即转绿,observer 的原 `duplicate_terminal` 拒绝用例
|
|
49
|
+
仍通过。
|
|
50
|
+
|
|
51
|
+
## 修法与放弃方案
|
|
52
|
+
|
|
53
|
+
- worker 记录是否已转发 top-level failure terminal;首个照常转发并停止进程,后续
|
|
54
|
+
`error`/`turn.failed` 只维持失败停止,不再进入 normalized observation。
|
|
55
|
+
- 进程关闭事件仍由原 close handler 记录;dispatch 限制、取消、timeout、item error、
|
|
56
|
+
输出 schema 和 V3 状态语法均不变。
|
|
57
|
+
- smoke harness 通过一个纯读取 helper 接受 V3 的 string-valued `started`,validator、
|
|
58
|
+
`result.json` 和 console 摘要共用同一取值。
|
|
59
|
+
|
|
60
|
+
放弃方案:不放宽 observer 的 duplicate-terminal 语法,因为那会扩大所有 provider
|
|
61
|
+
观察结果的完成语法;不修改 runner/V3 schema;不重跑 live attempt;不新增 provider
|
|
62
|
+
重试、身份协议或通用事件状态机。
|
|
63
|
+
|
|
64
|
+
## 波及面与回归结果
|
|
65
|
+
|
|
66
|
+
波及面仅为 Codex CLI worker 的失败事件归一化、V3 组合结果,以及一次性 live smoke
|
|
67
|
+
的本地报告读取。成功、取消、超时、item diagnostic、单 failure terminal 和 observer
|
|
68
|
+
拒绝重复终态的合同保持原样。
|
|
69
|
+
|
|
70
|
+
- 新增聚焦反例:红 0/3 → 绿 3/3;
|
|
71
|
+
- 相关三文件套件:84/84 通过;
|
|
72
|
+
- 全 JS 编排套件:996/996 通过;
|
|
73
|
+
- `./scripts/cm-check-runtime.sh`:通过;
|
|
74
|
+
- Shell/Python fixtures:通过;
|
|
75
|
+
- public、JS/Shell syntax、`git diff --check`:通过;
|
|
76
|
+
- public safety:仍为原有 5 项,分布于 marketing fixture、`tool-preview.mjs` 和
|
|
77
|
+
`worker-codex.mjs` 的既有路径/endpoint;本修复未新增、未修复、未豁免。
|
|
78
|
+
|
|
79
|
+
## 权限与非目标
|
|
80
|
+
|
|
81
|
+
本 task 只使用离线 synthetic fixture。没有 provider/preflight/live 调用,没有重试,
|
|
82
|
+
没有安装、Git、发布、真实 tasks 写入、receipt、completion 或 F01 checkbox 变化。
|
|
83
|
+
没有进入 F01 第三项、F02、F05 Learning 产品接线或平台化工作。
|
|
84
|
+
|
|
85
|
+
## Learning 复盘
|
|
86
|
+
|
|
87
|
+
已将“同一 provider 失败方言应在 worker 适配边界归一,不能放宽 observer 单终态语法”
|
|
88
|
+
作为一条 `[已结构化]` 项目教训增量写入根 `AGENTS.md`。它由本次 worker 与 V3 组合
|
|
89
|
+
回归防护,必须随本 task 一起独立 Review;批准后再回读确认。
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Fable JS workflow WIP 体检记录
|
|
2
|
+
|
|
3
|
+
本记录整理自 `fable5.1-js-workflow` 的 `34adedb`,其体检对象是 WIP 提交
|
|
4
|
+
`e9450efce760cf2d5996a45fe7bf00b59236beae`。它不是 main 的测试结果、修复完成证明或独立 Review 凭证。
|
|
5
|
+
|
|
6
|
+
## 原报告记录的结果
|
|
7
|
+
|
|
8
|
+
| 检查 | 原报告结果 |
|
|
9
|
+
| --- | --- |
|
|
10
|
+
| JavaScript 语法 | 69/69 |
|
|
11
|
+
| 五个核心 runtime 模块导入 | 5/5 |
|
|
12
|
+
| runtime 机械一致性 | PASSED |
|
|
13
|
+
| 实验目录测试 | 报告记录 828/1403 通过、575 失败 |
|
|
14
|
+
|
|
15
|
+
本次整理没有重跑上述检查,也未独立确认完整测试计数。原报告说明输出经过截断,
|
|
16
|
+
仅按 traceback 抽样分类,不能据此估算各类失败数量或产品功能失败比例。
|
|
17
|
+
|
|
18
|
+
## 可核查的问题线索
|
|
19
|
+
|
|
20
|
+
- WIP 测试通过 `runpy.run_path` 加载 Python harness,并读取 `write_handoff`、
|
|
21
|
+
`write_review`。本次查看的原有日志包含 `KeyError: 'write_handoff'`,说明至少部分测试
|
|
22
|
+
在准备 fixture 时就失败。应先核对测试与 harness 的接口,不能直接认定产品执行失败。
|
|
23
|
+
- 原报告还记录 `420 !== 1444` 等断言失败。其根因尚未核实;不能将数值差异直接解释为
|
|
24
|
+
文件字节数变化,也不能把抽样中的字段差异认定为所有失败的共同原因。
|
|
25
|
+
- 语法、模块导入、关键字命中与机械一致性检查覆盖不同问题;其中一项通过不能代替行为测试。
|
|
26
|
+
|
|
27
|
+
## 与 main 的关系及处理结果
|
|
28
|
+
|
|
29
|
+
main `2de4775877537c4193a80dc470b8eb54fd63c6c7` 已包含另行整理的 JS 迁移及后续修复。
|
|
30
|
+
Fable WIP 尚缺少该 main 的 CI action SHA 修正、部分日志事件兼容和任务完成 projectRoot 接线。
|
|
31
|
+
这是分支内容差异;三方合并的具体结果仍取决于共同祖先与冲突处理。
|
|
32
|
+
|
|
33
|
+
本次仅将这份经校准的历史记录提取到 main 基线:
|
|
34
|
+
|
|
35
|
+
- runtime、scripts、Skills、安装器及项目规则继续使用 main 的版本。
|
|
36
|
+
- 宣传文章、封面图片、草稿接口结果保留在原分支,不作为 Workflow 功能变更引入。
|
|
37
|
+
- 原报告提出的三条候选教训未晋升为 AGENTS 指令;没有引入任意失败率阈值或扩大测试要求。
|
|
38
|
+
- 原分支与原报告保留,便于追溯。未声称上述实验测试失败已修复,也未据此关闭真实任务验收。
|
|
39
|
+
|
|
40
|
+
main 合并提交的既有 CI:
|
|
41
|
+
[run 34069120477](https://github.com/kingxiaozhe/cm-workflow/actions/runs/34069120477)。
|
|
42
|
+
该 CI 覆盖其配置的任务,不代表上述完整实验测试套件通过。
|
|
43
|
+
|
|
44
|
+
学习复盘:沿用“未验证猜测不成为项目指令”的现行 Learning 合同,无新增项目教训。
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
# Installation
|
|
2
|
+
|
|
3
|
+
## Requirements
|
|
4
|
+
|
|
5
|
+
- Git, Python 3.9 or newer, and Node.js 18 or newer.
|
|
6
|
+
- For Codex: a current Codex installation with the bundled plugin creator
|
|
7
|
+
helpers available under `CODEX_HOME`.
|
|
8
|
+
- For Claude Code on macOS/Linux: Bash 3.2 or newer.
|
|
9
|
+
- For Claude Code on Windows: Windows PowerShell 5.1 or newer, plus Git for
|
|
10
|
+
Windows (Git Bash). WSL users can install and run the Bash entry inside WSL.
|
|
11
|
+
|
|
12
|
+
Clone the repository somewhere other than `~/plugins/cm-workflow`:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
git clone https://github.com/kingxiaozhe/cm-workflow.git
|
|
16
|
+
cd cm-workflow
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
The Codex installer reserves `~/plugins/cm-workflow` as its managed install
|
|
20
|
+
destination and refuses to replace a source checkout located there.
|
|
21
|
+
|
|
22
|
+
## Codex
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
./install-codex.sh
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
The installer:
|
|
29
|
+
|
|
30
|
+
1. validates the source with CM's dependency-free repository and runtime checks;
|
|
31
|
+
2. also runs Codex's bundled YAML validator when PyYAML is available;
|
|
32
|
+
3. updates the personal marketplace through the bundled scaffold helper;
|
|
33
|
+
4. assembles and validates a temporary plugin;
|
|
34
|
+
5. replaces the managed plugin directory, applies a cachebuster, and runs
|
|
35
|
+
`codex plugin add`.
|
|
36
|
+
|
|
37
|
+
If the final Codex ingestion fails, both the previous managed plugin and the
|
|
38
|
+
personal marketplace are restored. PyYAML is therefore an optional stronger
|
|
39
|
+
validation dependency, not an installation prerequisite.
|
|
40
|
+
|
|
41
|
+
Existing installs require confirmation. For an intentional unattended upgrade:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
./install-codex.sh --yes
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Start a new Codex thread after installation, then run `$cm-check`. To derive a
|
|
48
|
+
test-case draft from an implemented feature, use
|
|
49
|
+
`$cm-test {project} {feature} --generate-cases`; to verify it without modifying
|
|
50
|
+
source, use `$cm-test`. The installed manual is available at
|
|
51
|
+
`~/plugins/cm-workflow/docs/user-guide.md`.
|
|
52
|
+
The optional project configuration template is installed at
|
|
53
|
+
`~/plugins/cm-workflow/templates/cm-workflow.yml`.
|
|
54
|
+
|
|
55
|
+
## npm candidate (macOS Codex)
|
|
56
|
+
|
|
57
|
+
The source includes a dependency-free `cm-workflow install [--yes]` command.
|
|
58
|
+
This change has not yet been published to npm. Until a release is verified,
|
|
59
|
+
continue using the source installation above; do not assume `@latest` includes
|
|
60
|
+
this command. The npm entry requires macOS and Node.js 24.14+, plus the same
|
|
61
|
+
Python and Codex plugin helpers as the source installer.
|
|
62
|
+
|
|
63
|
+
Maintainers can inspect and try the actual local package:
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
npm pack --ignore-scripts
|
|
67
|
+
# Substitute the exact .tgz filename printed by npm pack:
|
|
68
|
+
npm exec --yes --package ./PACKAGE.tgz -- cm-workflow --help
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Explicitly running `cm-workflow install` through that package installs into the
|
|
72
|
+
same `~/plugins/cm-workflow` directory and personal marketplace as the source
|
|
73
|
+
installer. Existing installations require confirmation; `install --yes` accepts
|
|
74
|
+
replacement. The npm `--yes` before `--package` only accepts npm's package-fetch
|
|
75
|
+
prompt; it does not accept plugin replacement. Direct edits to the managed
|
|
76
|
+
plugin are overwritten; source checkouts, project code and specs remain outside
|
|
77
|
+
the managed destination. Installing older source afterward can downgrade it.
|
|
78
|
+
Start a new Codex task after an upgrade.
|
|
79
|
+
|
|
80
|
+
The isolated fixture is `python3 scripts/test-npm-install.py`. It packs the
|
|
81
|
+
candidate, exercises the npm command, then relocates only installer path
|
|
82
|
+
assignments into a temporary directory. The actual file transaction and bundled
|
|
83
|
+
Codex helper programs execute; the final `codex plugin add` is a test double.
|
|
84
|
+
It covers fresh install, source-to-package upgrade, declined replacement and
|
|
85
|
+
failed registration rollback. It does not prove live registry installation,
|
|
86
|
+
real Codex cache ingestion or a fresh-machine setup.
|
|
87
|
+
|
|
88
|
+
## Local cross-project logs
|
|
89
|
+
|
|
90
|
+
The installers do not create or upload logs. On the first logged workflow
|
|
91
|
+
event, the shared writer creates:
|
|
92
|
+
|
|
93
|
+
```text
|
|
94
|
+
~/.cm-workflow/logs/index.jsonl
|
|
95
|
+
~/.cm-workflow/logs/runs/YYYY-MM/{run_id}.jsonl
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
Set `CM_WORKFLOW_LOG_HOME` before starting Codex or Claude Code to choose a
|
|
99
|
+
different local root. On POSIX systems these global directories and files are
|
|
100
|
+
restricted to the current user. They contain normalized operational metadata,
|
|
101
|
+
not prompts, model responses, source text, external conversation URLs, or
|
|
102
|
+
credentials. A specs-local `运行日志.jsonl` remains the authoritative record.
|
|
103
|
+
|
|
104
|
+
## Claude Code on macOS/Linux
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
./install.sh
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
All CM-owned destination files are checked before any copy. The bundle is
|
|
111
|
+
all-or-nothing: declining a conflict changes nothing, and a failed post-install
|
|
112
|
+
check restores the previous CM files. Use `--yes` only when you intentionally
|
|
113
|
+
accept replacement of all listed CM files:
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
./install.sh --yes
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
The installer runs the shared mechanical check before reporting success. Start a
|
|
120
|
+
new Claude Code session, then run `/cm-check`. The installer also keeps the
|
|
121
|
+
historic `/cm:check` alias on macOS/Linux. The installed manual is available at
|
|
122
|
+
`~/.claude/cm-workflow/docs/user-guide.md` unless `CLAUDE_HOME` overrides the
|
|
123
|
+
destination.
|
|
124
|
+
The two disabled-by-default auto-update helper scripts are copied to
|
|
125
|
+
`~/.cm-workflow`; overriding `CLAUDE_HOME` alone therefore does not make an
|
|
126
|
+
installer run fully isolated. Override both `HOME` and `CLAUDE_HOME` for an
|
|
127
|
+
authorized temporary-directory smoke test.
|
|
128
|
+
The optional project configuration template is installed at
|
|
129
|
+
`$CLAUDE_HOME/templates/cm-workflow.yml` (or `~/.claude/templates/cm-workflow.yml`).
|
|
130
|
+
The installed `/cm-ai` Skill invokes the same read-only
|
|
131
|
+
`$CLAUDE_HOME/scripts/cm-ai-admission.mjs` N1/N2 authority used by Codex; no
|
|
132
|
+
Claude-specific workflow fork is installed.
|
|
133
|
+
|
|
134
|
+
## Claude Code on Windows
|
|
135
|
+
|
|
136
|
+
```powershell
|
|
137
|
+
powershell -ExecutionPolicy Bypass -File install.ps1
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
Existing CM files are listed before replacement. Windows uses the same
|
|
141
|
+
all-or-nothing transaction and restores the previous CM files if validation
|
|
142
|
+
fails. Use `-Force` for an intentional unattended install:
|
|
143
|
+
|
|
144
|
+
```powershell
|
|
145
|
+
powershell -ExecutionPolicy Bypass -File install.ps1 -Force
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
Core Markdown workflows use `/cm-*` names such as `/cm-check`, `/cm-ai`, and
|
|
149
|
+
`/cm-test`. The PowerShell installer and `/cm-check` delegate the shared
|
|
150
|
+
mechanical check to Git Bash; set `CLAUDE_CODE_GIT_BASH_PATH` if Bash is not on
|
|
151
|
+
`PATH`. Windows cannot store the historic colon filenames used by `/cm:*`, so
|
|
152
|
+
those aliases are macOS/Linux only. Bash-based statusline and visualization
|
|
153
|
+
helpers likewise require WSL or Git Bash.
|
|
154
|
+
The optional project configuration template is installed at
|
|
155
|
+
`$CLAUDE_HOME/templates/cm-workflow.yml` (or `%USERPROFILE%\.claude\templates\cm-workflow.yml`).
|
|
156
|
+
The installed `/cm-ai` Skill uses the same Node.js admission entry as other
|
|
157
|
+
platforms; any admitted task still uses the shared Review/N5 gates.
|
|
158
|
+
|
|
159
|
+
## Optional Claude auto-update (macOS/Linux)
|
|
160
|
+
|
|
161
|
+
The Bash installer copies the updater on a best-effort basis but does not activate
|
|
162
|
+
it. A copy failure is reported as a warning and does not invalidate a core runtime
|
|
163
|
+
that already passed its installed self-check. The PowerShell
|
|
164
|
+
installer intentionally does not copy this Bash-based updater; Windows users who
|
|
165
|
+
want it must run the Bash installer from WSL or Git Bash. To enable it on a
|
|
166
|
+
supported Bash environment, add the following commands to Claude Code's
|
|
167
|
+
`hooks.SessionStart` configuration after reviewing the scripts:
|
|
168
|
+
|
|
169
|
+
```json
|
|
170
|
+
[
|
|
171
|
+
{
|
|
172
|
+
"type": "command",
|
|
173
|
+
"command": "~/.cm-workflow/cm-announce.sh",
|
|
174
|
+
"timeout": 5
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"type": "command",
|
|
178
|
+
"command": "~/.cm-workflow/cm-update.sh",
|
|
179
|
+
"timeout": 120,
|
|
180
|
+
"async": true
|
|
181
|
+
}
|
|
182
|
+
]
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
Set `CM_UPDATE_REMOTE` when your team intentionally uses a fork.
|
|
186
|
+
|
|
187
|
+
## Uninstall
|
|
188
|
+
|
|
189
|
+
For a Codex install registered by the installer, remove the enabled plugin and
|
|
190
|
+
its local cache with:
|
|
191
|
+
|
|
192
|
+
```bash
|
|
193
|
+
codex plugin remove cm-workflow@personal
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
This intentionally leaves the local `~/plugins/cm-workflow` source and the
|
|
197
|
+
`personal` marketplace definition available for inspection or reinstall. Remove
|
|
198
|
+
those separately only after reviewing that they are still CM-owned.
|
|
199
|
+
|
|
200
|
+
Claude Code compatibility installs do not have an automatic uninstall because
|
|
201
|
+
their destination directories may contain user-modified copies. Remove only the
|
|
202
|
+
CM-owned paths you have reviewed, or restore from your own backup.
|