@ai-atomic-framework/cli 0.1.0-beta.1 → 0.1.0-beta.3

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.
Files changed (688) hide show
  1. package/dist/_vendor/agent-pack-claude-code/dist/index.js +40 -0
  2. package/dist/_vendor/agent-pack-claude-code/templates/atm-bootstrap.md.tmpl +9 -0
  3. package/dist/_vendor/agent-pack-claude-code/templates/atm-evidence.md.tmpl +10 -0
  4. package/dist/_vendor/agent-pack-claude-code/templates/atm-handoff.md.tmpl +9 -0
  5. package/dist/_vendor/agent-pack-claude-code/templates/atm-lock.md.tmpl +10 -0
  6. package/dist/_vendor/agent-pack-claude-code/templates/atm-next.md.tmpl +12 -0
  7. package/dist/_vendor/agent-pack-claude-code/templates/atm-verify.md.tmpl +8 -0
  8. package/dist/_vendor/agent-pack-copilot/dist/index.js +30 -0
  9. package/dist/_vendor/agent-pack-cursor/dist/index.js +30 -0
  10. package/dist/_vendor/agent-pack-gemini/dist/index.js +30 -0
  11. package/dist/_vendor/agent-pack-sdk/dist/experimental/index.js +54 -0
  12. package/dist/_vendor/agent-pack-sdk/dist/index.js +40 -0
  13. package/dist/_vendor/agent-pack-sdk/dist/install-manifest.js +49 -0
  14. package/dist/_vendor/agent-pack-windsurf/dist/index.js +54 -0
  15. package/dist/_vendor/atm-markdown-task-source/dist/index.js +87 -0
  16. package/dist/_vendor/atm-markdown-task-source/dist/task-card-parser.js +1 -0
  17. package/dist/_vendor/atm-markdown-task-source/dist/templates.js +48 -0
  18. package/dist/_vendor/atm-markdown-task-source/templates/aao-l2-split-template.md +47 -0
  19. package/dist/_vendor/core/dist/agent-execute/execute-agent-task.js +295 -0
  20. package/dist/_vendor/core/dist/agent-execute/execution-constants.js +16 -0
  21. package/dist/_vendor/core/dist/agent-execute/execution-documents.js +83 -0
  22. package/dist/_vendor/core/dist/agent-execute/execution-validation.js +97 -0
  23. package/dist/_vendor/core/dist/agent-prompt/build-agent-prompt.js +191 -0
  24. package/dist/_vendor/core/dist/architecture/index.js +1 -0
  25. package/dist/_vendor/core/dist/architecture/module-boundary.js +167 -0
  26. package/dist/_vendor/core/dist/batch/plan-run-journal.js +181 -0
  27. package/dist/_vendor/core/dist/broker/adapters/atom-map.js +205 -0
  28. package/dist/_vendor/core/dist/broker/adapters/batch-planner.js +121 -0
  29. package/dist/_vendor/core/dist/broker/adapters/cas.js +26 -0
  30. package/dist/_vendor/core/dist/broker/adapters/fallback-file-lock.js +64 -0
  31. package/dist/_vendor/core/dist/broker/adapters/index.js +8 -0
  32. package/dist/_vendor/core/dist/broker/adapters/json-record.js +170 -0
  33. package/dist/_vendor/core/dist/broker/adapters/numeric-scalar.js +155 -0
  34. package/dist/_vendor/core/dist/broker/adapters/registry.js +79 -0
  35. package/dist/_vendor/core/dist/broker/adapters/text-range.js +143 -0
  36. package/dist/_vendor/core/dist/broker/admission/contracts.js +1 -0
  37. package/dist/_vendor/core/dist/broker/admission/evaluate-broker-admission.js +127 -0
  38. package/dist/_vendor/core/dist/broker/agr.js +22 -0
  39. package/dist/_vendor/core/dist/broker/apply-evidence.js +32 -0
  40. package/dist/_vendor/core/dist/broker/atm-core-scope.js +139 -0
  41. package/dist/_vendor/core/dist/broker/boundaries/content-anchor.js +60 -0
  42. package/dist/_vendor/core/dist/broker/boundaries/index.js +2 -0
  43. package/dist/_vendor/core/dist/broker/boundaries/resolver.js +76 -0
  44. package/dist/_vendor/core/dist/broker/candidate-bridge.js +76 -0
  45. package/dist/_vendor/core/dist/broker/census/index.js +40 -0
  46. package/dist/_vendor/core/dist/broker/compose.js +187 -0
  47. package/dist/_vendor/core/dist/broker/conflict-key-overlap.js +59 -0
  48. package/dist/_vendor/core/dist/broker/conflict-matrix.js +350 -0
  49. package/dist/_vendor/core/dist/broker/cross-task-mutation-guard.js +507 -0
  50. package/dist/_vendor/core/dist/broker/decision/admission.js +58 -0
  51. package/dist/_vendor/core/dist/broker/decision/decomposition.js +188 -0
  52. package/dist/_vendor/core/dist/broker/decision/failure.js +5 -0
  53. package/dist/_vendor/core/dist/broker/decision/physical-overlap.js +78 -0
  54. package/dist/_vendor/core/dist/broker/decision/proposal-overlap.js +173 -0
  55. package/dist/_vendor/core/dist/broker/decision/surfaces.js +12 -0
  56. package/dist/_vendor/core/dist/broker/decision.js +213 -0
  57. package/dist/_vendor/core/dist/broker/failure-reason.js +79 -0
  58. package/dist/_vendor/core/dist/broker/foreign-generated-residue-disposition.js +66 -0
  59. package/dist/_vendor/core/dist/broker/freeze.js +126 -0
  60. package/dist/_vendor/core/dist/broker/generated-projection-steward.js +213 -0
  61. package/dist/_vendor/core/dist/broker/global-resource-projection.js +116 -0
  62. package/dist/_vendor/core/dist/broker/historical-work-admission-attestation.js +173 -0
  63. package/dist/_vendor/core/dist/broker/index.js +44 -0
  64. package/dist/_vendor/core/dist/broker/intent-enrichment.js +10 -0
  65. package/dist/_vendor/core/dist/broker/lifecycle/index.js +149 -0
  66. package/dist/_vendor/core/dist/broker/lifecycle.js +242 -0
  67. package/dist/_vendor/core/dist/broker/merge-plan.js +83 -0
  68. package/dist/_vendor/core/dist/broker/orphan-cleanup.js +108 -0
  69. package/dist/_vendor/core/dist/broker/parallel-admission-policy.js +229 -0
  70. package/dist/_vendor/core/dist/broker/patch-candidate-materializer.js +126 -0
  71. package/dist/_vendor/core/dist/broker/patch-envelope-atm-core.js +45 -0
  72. package/dist/_vendor/core/dist/broker/patch-envelope.js +97 -0
  73. package/dist/_vendor/core/dist/broker/policy.js +89 -0
  74. package/dist/_vendor/core/dist/broker/post-compose-semantic-validation-policy.js +199 -0
  75. package/dist/_vendor/core/dist/broker/projections/atomic-broker-projection.js +142 -0
  76. package/dist/_vendor/core/dist/broker/proposal.js +203 -0
  77. package/dist/_vendor/core/dist/broker/reconcile/broker-projection-reconcile.js +57 -0
  78. package/dist/_vendor/core/dist/broker/recovery.js +182 -0
  79. package/dist/_vendor/core/dist/broker/registry-store.js +176 -0
  80. package/dist/_vendor/core/dist/broker/registry.js +365 -0
  81. package/dist/_vendor/core/dist/broker/related-task-batching.js +34 -0
  82. package/dist/_vendor/core/dist/broker/replay/dashboard.js +130 -0
  83. package/dist/_vendor/core/dist/broker/replay/index.js +164 -0
  84. package/dist/_vendor/core/dist/broker/replay/lifecycle-receipt-observability.js +133 -0
  85. package/dist/_vendor/core/dist/broker/replay/lifecycle-receipt-types.js +47 -0
  86. package/dist/_vendor/core/dist/broker/replay/lifecycle-receipt-validation.js +13 -0
  87. package/dist/_vendor/core/dist/broker/replay/lifecycle-receipts.js +261 -0
  88. package/dist/_vendor/core/dist/broker/replay/runner-discrimination.js +311 -0
  89. package/dist/_vendor/core/dist/broker/resource-overlap.js +203 -0
  90. package/dist/_vendor/core/dist/broker/runner-bootstrap.js +65 -0
  91. package/dist/_vendor/core/dist/broker/runner-build-output-inventory.js +359 -0
  92. package/dist/_vendor/core/dist/broker/runner-execution-attestation.js +24 -0
  93. package/dist/_vendor/core/dist/broker/runner-ref-store.js +65 -0
  94. package/dist/_vendor/core/dist/broker/runner-registry-snapshot.js +58 -0
  95. package/dist/_vendor/core/dist/broker/runner-selection-verification-ports.js +1 -0
  96. package/dist/_vendor/core/dist/broker/runner-shadow-feedback-sink.js +12 -0
  97. package/dist/_vendor/core/dist/broker/runner-submit-pipeline.js +67 -0
  98. package/dist/_vendor/core/dist/broker/runner-sync-session.js +302 -0
  99. package/dist/_vendor/core/dist/broker/runner-sync-steward-queue.js +436 -0
  100. package/dist/_vendor/core/dist/broker/runner-version-contract.js +188 -0
  101. package/dist/_vendor/core/dist/broker/runner-version-registry.js +163 -0
  102. package/dist/_vendor/core/dist/broker/runner-version-selection-verifier.js +182 -0
  103. package/dist/_vendor/core/dist/broker/runner-version-state.js +63 -0
  104. package/dist/_vendor/core/dist/broker/semantic-adjudication/index.js +1 -0
  105. package/dist/_vendor/core/dist/broker/semantic-adjudication/policy.js +122 -0
  106. package/dist/_vendor/core/dist/broker/semantic-contract.js +1 -0
  107. package/dist/_vendor/core/dist/broker/shared-delivery-commit.js +177 -0
  108. package/dist/_vendor/core/dist/broker/shared-delivery-saga.js +187 -0
  109. package/dist/_vendor/core/dist/broker/shared-surface-queue.js +185 -0
  110. package/dist/_vendor/core/dist/broker/shared-write-provenance-policy.js +252 -0
  111. package/dist/_vendor/core/dist/broker/steward-transactional-apply.js +369 -0
  112. package/dist/_vendor/core/dist/broker/steward.js +464 -0
  113. package/dist/_vendor/core/dist/broker/team-lane/support.js +186 -0
  114. package/dist/_vendor/core/dist/broker/team-lane.js +357 -0
  115. package/dist/_vendor/core/dist/broker/team-wave-admission.js +111 -0
  116. package/dist/_vendor/core/dist/broker/team-wave-checkpoint.js +52 -0
  117. package/dist/_vendor/core/dist/broker/team-wave-envelope.js +59 -0
  118. package/dist/_vendor/core/dist/broker/team-wave-evidence.js +56 -0
  119. package/dist/_vendor/core/dist/broker/team-wave-planner.js +142 -0
  120. package/dist/_vendor/core/dist/broker/team-worker-report.js +63 -0
  121. package/dist/_vendor/core/dist/broker/terminal-history-entitlement.js +79 -0
  122. package/dist/_vendor/core/dist/broker/test-case-contribution.js +142 -0
  123. package/dist/_vendor/core/dist/broker/ticket-authority/index.js +114 -0
  124. package/dist/_vendor/core/dist/broker/ticket-policy.js +65 -0
  125. package/dist/_vendor/core/dist/broker/ticket-state.js +106 -0
  126. package/dist/_vendor/core/dist/broker/ticket-store.js +476 -0
  127. package/dist/_vendor/core/dist/broker/transaction-authority.js +125 -0
  128. package/dist/_vendor/core/dist/broker/transactional-composer.js +205 -0
  129. package/dist/_vendor/core/dist/broker/types.js +27 -0
  130. package/dist/_vendor/core/dist/broker/unified-patch.js +116 -0
  131. package/dist/_vendor/core/dist/broker/wave-broker-scheduler.js +190 -0
  132. package/dist/_vendor/core/dist/broker/wave-generated-executor.js +194 -0
  133. package/dist/_vendor/core/dist/broker/wave-manifest.js +138 -0
  134. package/dist/_vendor/core/dist/broker/work-admission-ticket.js +301 -0
  135. package/dist/_vendor/core/dist/broker/workspace-topology-policy.js +46 -0
  136. package/dist/_vendor/core/dist/broker/write-scope-policy.js +220 -0
  137. package/dist/_vendor/core/dist/broker/write-ticket.js +61 -0
  138. package/dist/_vendor/core/dist/cache/guide-cache.js +234 -0
  139. package/dist/_vendor/core/dist/commit-attribution/sealed-commit-bundle.js +209 -0
  140. package/dist/_vendor/core/dist/commit-candidate/commit-candidate-store.js +96 -0
  141. package/dist/_vendor/core/dist/commit-candidate/commit-candidate.js +134 -0
  142. package/dist/_vendor/core/dist/daemon/daemon-config.js +143 -0
  143. package/dist/_vendor/core/dist/daemon/daemon-watcher.js +150 -0
  144. package/dist/_vendor/core/dist/equivalence/run-map-equivalence.js +358 -0
  145. package/dist/_vendor/core/dist/error-code-registry.generated.js +3 -0
  146. package/dist/_vendor/core/dist/evidence/acceptance-predicate.js +109 -0
  147. package/dist/_vendor/core/dist/evidence/acceptance-spec-mutation.js +22 -0
  148. package/dist/_vendor/core/dist/evidence/adapter-parity.js +91 -0
  149. package/dist/_vendor/core/dist/evidence/anti-gaming-control.js +20 -0
  150. package/dist/_vendor/core/dist/evidence/causal-neighborhood.js +17 -0
  151. package/dist/_vendor/core/dist/evidence/closure-assurance-machine.js +248 -0
  152. package/dist/_vendor/core/dist/evidence/complexity-interface-size.js +17 -0
  153. package/dist/_vendor/core/dist/evidence/concurrency-fuzz-generators.js +22 -0
  154. package/dist/_vendor/core/dist/evidence/concurrency-schedule-obligations.js +67 -0
  155. package/dist/_vendor/core/dist/evidence/constraint-solver.js +137 -0
  156. package/dist/_vendor/core/dist/evidence/coverage-certificate.js +24 -0
  157. package/dist/_vendor/core/dist/evidence/coverage-ratchet-baseline.js +47 -0
  158. package/dist/_vendor/core/dist/evidence/coverage-semantics.js +94 -0
  159. package/dist/_vendor/core/dist/evidence/coverage-universe-compiler.js +204 -0
  160. package/dist/_vendor/core/dist/evidence/dependency-graph-bypass-gate.js +98 -0
  161. package/dist/_vendor/core/dist/evidence/diagnostic-loop.js +145 -0
  162. package/dist/_vendor/core/dist/evidence/diff-evidence.js +200 -0
  163. package/dist/_vendor/core/dist/evidence/evidence-freshness-certificate.js +39 -0
  164. package/dist/_vendor/core/dist/evidence/evidence-ledger.js +49 -0
  165. package/dist/_vendor/core/dist/evidence/example-branch-generators.js +27 -0
  166. package/dist/_vendor/core/dist/evidence/fault-fingerprint.js +56 -0
  167. package/dist/_vendor/core/dist/evidence/four-plan-independent-certificate.js +291 -0
  168. package/dist/_vendor/core/dist/evidence/gap-planning.js +105 -0
  169. package/dist/_vendor/core/dist/evidence/git-boundary-evidence.js +61 -0
  170. package/dist/_vendor/core/dist/evidence/governance-model-adapters.js +43 -0
  171. package/dist/_vendor/core/dist/evidence/hostile-dogfood.js +136 -0
  172. package/dist/_vendor/core/dist/evidence/index.js +50 -0
  173. package/dist/_vendor/core/dist/evidence/legal-recovery-checkpoints.js +46 -0
  174. package/dist/_vendor/core/dist/evidence/mutation-lineage.js +321 -0
  175. package/dist/_vendor/core/dist/evidence/obligation-inventory.js +144 -0
  176. package/dist/_vendor/core/dist/evidence/observed-source-adapters.js +9 -0
  177. package/dist/_vendor/core/dist/evidence/observed-source.js +68 -0
  178. package/dist/_vendor/core/dist/evidence/oracle-adjudication.js +18 -0
  179. package/dist/_vendor/core/dist/evidence/performance-resilience-ratchet.js +62 -0
  180. package/dist/_vendor/core/dist/evidence/phase-suite.js +128 -0
  181. package/dist/_vendor/core/dist/evidence/plan-closeout-dashboard.js +124 -0
  182. package/dist/_vendor/core/dist/evidence/property-metamorphic-generators.js +103 -0
  183. package/dist/_vendor/core/dist/evidence/quality-authority.js +16 -0
  184. package/dist/_vendor/core/dist/evidence/quality-gauntlet.js +162 -0
  185. package/dist/_vendor/core/dist/evidence/quality-vector.js +12 -0
  186. package/dist/_vendor/core/dist/evidence/realness.js +116 -0
  187. package/dist/_vendor/core/dist/evidence/regression-family.js +69 -0
  188. package/dist/_vendor/core/dist/evidence/sandboxed-test-patch.js +65 -0
  189. package/dist/_vendor/core/dist/evidence/security-quality-receipts.js +53 -0
  190. package/dist/_vendor/core/dist/evidence/shadow-comparison.js +147 -0
  191. package/dist/_vendor/core/dist/evidence/state-replay.js +109 -0
  192. package/dist/_vendor/core/dist/evidence/structural-coverage.js +106 -0
  193. package/dist/_vendor/core/dist/evidence/tdd-cycle.js +285 -0
  194. package/dist/_vendor/core/dist/evidence/test-case-catalog.js +427 -0
  195. package/dist/_vendor/core/dist/evidence/validation-contract.js +350 -0
  196. package/dist/_vendor/core/dist/evidence/validation-receipt.js +315 -0
  197. package/dist/_vendor/core/dist/evidence/validator-catalog-selection.js +221 -0
  198. package/dist/_vendor/core/dist/evidence/validator-lifecycle.js +160 -0
  199. package/dist/_vendor/core/dist/evidence/wave-exit-observer-input-digest.js +107 -0
  200. package/dist/_vendor/core/dist/evidence/wave-exit-observer-receipt-writer.js +288 -0
  201. package/dist/_vendor/core/dist/evidence/wave-exit-observer-receipt.js +445 -0
  202. package/dist/_vendor/core/dist/git/admission.js +376 -0
  203. package/dist/_vendor/core/dist/git/diff-mutation-request.js +161 -0
  204. package/dist/_vendor/core/dist/git/format-adapter-bridge.js +370 -0
  205. package/dist/_vendor/core/dist/git/index.js +4 -0
  206. package/dist/_vendor/core/dist/git/publication-delivery-slice.js +180 -0
  207. package/dist/_vendor/core/dist/governance/operation-cleanup-contract.js +47 -0
  208. package/dist/_vendor/core/dist/governance/scope-lock.js +284 -0
  209. package/dist/_vendor/core/dist/guidance/first-layer-command-contracts.js +172 -0
  210. package/dist/_vendor/core/dist/guidance/guidance-packet.js +73 -0
  211. package/dist/_vendor/core/dist/guidance/index.js +8 -0
  212. package/dist/_vendor/core/dist/guidance/intent-classifier.js +495 -0
  213. package/dist/_vendor/core/dist/guidance/legacy-route-plan.js +317 -0
  214. package/dist/_vendor/core/dist/guidance/mutation-gate.js +120 -0
  215. package/dist/_vendor/core/dist/guidance/project-probe.js +370 -0
  216. package/dist/_vendor/core/dist/guidance/route-engine.js +253 -0
  217. package/dist/_vendor/core/dist/guidance/session-store.js +104 -0
  218. package/dist/_vendor/core/dist/hash-lock/hash-lock.js +89 -0
  219. package/dist/_vendor/core/dist/index.js +26 -0
  220. package/dist/_vendor/core/dist/lane/lane-capability-provider.js +242 -0
  221. package/dist/_vendor/core/dist/lane/lifecycle.js +62 -0
  222. package/dist/_vendor/core/dist/lane/wip-ownership-transition.js +134 -0
  223. package/dist/_vendor/core/dist/manager/atom-generator.js +455 -0
  224. package/dist/_vendor/core/dist/manager/atom-space.js +41 -0
  225. package/dist/_vendor/core/dist/manager/id-allocator.js +80 -0
  226. package/dist/_vendor/core/dist/manager/map-generator/errors.js +15 -0
  227. package/dist/_vendor/core/dist/manager/map-generator/normalize-fields.js +70 -0
  228. package/dist/_vendor/core/dist/manager/map-generator/normalize-lineage.js +76 -0
  229. package/dist/_vendor/core/dist/manager/map-generator/runtime-support.js +194 -0
  230. package/dist/_vendor/core/dist/manager/map-generator/spec-support.js +164 -0
  231. package/dist/_vendor/core/dist/manager/map-generator/types.js +1 -0
  232. package/dist/_vendor/core/dist/manager/map-generator.js +151 -0
  233. package/dist/_vendor/core/dist/manager/map-id-allocator.js +68 -0
  234. package/dist/_vendor/core/dist/manager/scaffold.js +144 -0
  235. package/dist/_vendor/core/dist/manager/test-runner/report-support.js +212 -0
  236. package/dist/_vendor/core/dist/manager/test-runner.js +417 -0
  237. package/dist/_vendor/core/dist/maps/atom-memo-cache.js +102 -0
  238. package/dist/_vendor/core/dist/maps/edge-contract-runner.js +133 -0
  239. package/dist/_vendor/core/dist/maps/fingerprint-checker.js +81 -0
  240. package/dist/_vendor/core/dist/maps/map-health-report.js +137 -0
  241. package/dist/_vendor/core/dist/maps/mermaid-gen.js +55 -0
  242. package/dist/_vendor/core/dist/maps/shadow-comparator.js +127 -0
  243. package/dist/_vendor/core/dist/police/constants.js +2 -0
  244. package/dist/_vendor/core/dist/police/dependency-graph.js +109 -0
  245. package/dist/_vendor/core/dist/police/family.js +295 -0
  246. package/dist/_vendor/core/dist/police/forbidden-import-scanner.js +72 -0
  247. package/dist/_vendor/core/dist/police/index.js +41 -0
  248. package/dist/_vendor/core/dist/police/layer-boundary.js +94 -0
  249. package/dist/_vendor/core/dist/police/registry-consistency.js +52 -0
  250. package/dist/_vendor/core/dist/police/regression-compare.js +197 -0
  251. package/dist/_vendor/core/dist/police/rescue-family.js +299 -0
  252. package/dist/_vendor/core/dist/police/role-registry.js +29 -0
  253. package/dist/_vendor/core/dist/police/roles/adopter-neutrality.js +44 -0
  254. package/dist/_vendor/core/dist/police/roles/atomization.js +81 -0
  255. package/dist/_vendor/core/dist/police/roles/decomposition.js +115 -0
  256. package/dist/_vendor/core/dist/police/roles/dedup.js +84 -0
  257. package/dist/_vendor/core/dist/police/roles/demand.js +40 -0
  258. package/dist/_vendor/core/dist/police/roles/evidence-integrity.js +107 -0
  259. package/dist/_vendor/core/dist/police/roles/evolution.js +115 -0
  260. package/dist/_vendor/core/dist/police/roles/map-integration.js +77 -0
  261. package/dist/_vendor/core/dist/police/roles/noise-control.js +45 -0
  262. package/dist/_vendor/core/dist/police/roles/polymorph.js +143 -0
  263. package/dist/_vendor/core/dist/police/roles/quality.js +85 -0
  264. package/dist/_vendor/core/dist/police/roles/reversibility.js +48 -0
  265. package/dist/_vendor/core/dist/police/roles/rollback.js +98 -0
  266. package/dist/_vendor/core/dist/police/schema-validator.js +84 -0
  267. package/dist/_vendor/core/dist/police/shared.js +103 -0
  268. package/dist/_vendor/core/dist/police/suppression-keys.js +22 -0
  269. package/dist/_vendor/core/dist/police/types.js +1 -0
  270. package/dist/_vendor/core/dist/polymorph/dimension-detector.js +41 -0
  271. package/dist/_vendor/core/dist/polymorph/impact.js +226 -0
  272. package/dist/_vendor/core/dist/polymorph/template.js +60 -0
  273. package/dist/_vendor/core/dist/registry/atom-capsule.js +147 -0
  274. package/dist/_vendor/core/dist/registry/atom-ref-readability/callsites.js +131 -0
  275. package/dist/_vendor/core/dist/registry/atom-ref-readability/catalog.js +201 -0
  276. package/dist/_vendor/core/dist/registry/atom-ref-readability/files.js +51 -0
  277. package/dist/_vendor/core/dist/registry/atom-ref-readability/render.js +84 -0
  278. package/dist/_vendor/core/dist/registry/atom-ref-readability/reports.js +46 -0
  279. package/dist/_vendor/core/dist/registry/atom-ref-readability/types.js +32 -0
  280. package/dist/_vendor/core/dist/registry/atom-ref-readability.js +95 -0
  281. package/dist/_vendor/core/dist/registry/atom-runtime.generated.js +48 -0
  282. package/dist/_vendor/core/dist/registry/atom-runtime.js +42 -0
  283. package/dist/_vendor/core/dist/registry/capsule-registry.js +119 -0
  284. package/dist/_vendor/core/dist/registry/catalog-category-deriver.js +60 -0
  285. package/dist/_vendor/core/dist/registry/decomposition-plan.js +332 -0
  286. package/dist/_vendor/core/dist/registry/diff.js +275 -0
  287. package/dist/_vendor/core/dist/registry/map-capsule-registry.js +75 -0
  288. package/dist/_vendor/core/dist/registry/map-capsule.js +116 -0
  289. package/dist/_vendor/core/dist/registry/map-hash.js +53 -0
  290. package/dist/_vendor/core/dist/registry/map-registry.js +81 -0
  291. package/dist/_vendor/core/dist/registry/progression-policy.js +229 -0
  292. package/dist/_vendor/core/dist/registry/registry/document.js +53 -0
  293. package/dist/_vendor/core/dist/registry/registry/drift.js +61 -0
  294. package/dist/_vendor/core/dist/registry/registry/entry.js +150 -0
  295. package/dist/_vendor/core/dist/registry/registry/paths.js +67 -0
  296. package/dist/_vendor/core/dist/registry/registry/types.js +1 -0
  297. package/dist/_vendor/core/dist/registry/registry/validation.js +400 -0
  298. package/dist/_vendor/core/dist/registry/registry-catalog.js +171 -0
  299. package/dist/_vendor/core/dist/registry/registry-index.js +183 -0
  300. package/dist/_vendor/core/dist/registry/registry-migration.js +71 -0
  301. package/dist/_vendor/core/dist/registry/registry.js +6 -0
  302. package/dist/_vendor/core/dist/registry/replacement-lane/constants.js +20 -0
  303. package/dist/_vendor/core/dist/registry/replacement-lane/evidence.js +162 -0
  304. package/dist/_vendor/core/dist/registry/replacement-lane/support.js +88 -0
  305. package/dist/_vendor/core/dist/registry/replacement-lane/target.js +62 -0
  306. package/dist/_vendor/core/dist/registry/replacement-lane/transition.js +102 -0
  307. package/dist/_vendor/core/dist/registry/replacement-lane/types.js +5 -0
  308. package/dist/_vendor/core/dist/registry/replacement-lane/validation.js +128 -0
  309. package/dist/_vendor/core/dist/registry/replacement-lane.js +2 -0
  310. package/dist/_vendor/core/dist/registry/retirement-proof.js +71 -0
  311. package/dist/_vendor/core/dist/registry/rollback-map.js +91 -0
  312. package/dist/_vendor/core/dist/registry/rollback-proof.js +66 -0
  313. package/dist/_vendor/core/dist/registry/rollback-registry-helpers.js +18 -0
  314. package/dist/_vendor/core/dist/registry/rollback-types.js +6 -0
  315. package/dist/_vendor/core/dist/registry/rollback.js +156 -0
  316. package/dist/_vendor/core/dist/registry/semantic-fingerprint.js +93 -0
  317. package/dist/_vendor/core/dist/registry/status-machine.js +293 -0
  318. package/dist/_vendor/core/dist/registry/status-migration.js +33 -0
  319. package/dist/_vendor/core/dist/registry/urn.js +179 -0
  320. package/dist/_vendor/core/dist/rescue/atom-reloader.js +96 -0
  321. package/dist/_vendor/core/dist/rescue/disaster-recovery.js +156 -0
  322. package/dist/_vendor/core/dist/rescue/lineage-replayer.js +81 -0
  323. package/dist/_vendor/core/dist/rescue/registry-rebuilder.js +176 -0
  324. package/dist/_vendor/core/dist/routing/index.js +1 -0
  325. package/dist/_vendor/core/dist/routing/route-context.js +150 -0
  326. package/dist/_vendor/core/dist/schemas/broker-ticket.js +1 -0
  327. package/dist/_vendor/core/dist/schemas/command-manifest.js +1 -0
  328. package/dist/_vendor/core/dist/schemas/linked-surface-closure.js +1 -0
  329. package/dist/_vendor/core/dist/schemas/parallel-replay-scenario.js +1 -0
  330. package/dist/_vendor/core/dist/scope/linked-surface/index.js +125 -0
  331. package/dist/_vendor/core/dist/skills/engineering-change-method.js +106 -0
  332. package/dist/_vendor/core/dist/skills/incident-learning-candidate.js +150 -0
  333. package/dist/_vendor/core/dist/skills/index.js +2 -0
  334. package/dist/_vendor/core/dist/source-inventory/source-inventory.js +64 -0
  335. package/dist/_vendor/core/dist/spec/parse-spec/types.js +1 -0
  336. package/dist/_vendor/core/dist/spec/parse-spec.js +416 -0
  337. package/dist/_vendor/core/dist/team-agents/index.js +1 -0
  338. package/dist/_vendor/core/dist/team-agents/restricted-execution-gateway.js +413 -0
  339. package/dist/_vendor/core/dist/team-agents/worker-executor.js +158 -0
  340. package/dist/_vendor/core/dist/team-runtime/context-manifest.js +27 -0
  341. package/dist/_vendor/core/dist/team-runtime/contribution-manifest.js +31 -0
  342. package/dist/_vendor/core/dist/team-runtime/execution-orchestrator.js +55 -0
  343. package/dist/_vendor/core/dist/team-runtime/handoff-ledger.js +153 -0
  344. package/dist/_vendor/core/dist/team-runtime/nodejs-worker-adapter.js +78 -0
  345. package/dist/_vendor/core/dist/team-runtime/observability.js +148 -0
  346. package/dist/_vendor/core/dist/team-runtime/permission-broker.js +247 -0
  347. package/dist/_vendor/core/dist/team-runtime/pricing/cost-accounting.js +97 -0
  348. package/dist/_vendor/core/dist/team-runtime/provider-contract.js +59 -0
  349. package/dist/_vendor/core/dist/team-runtime/provider-registry.js +48 -0
  350. package/dist/_vendor/core/dist/team-runtime/provider-selection.js +122 -0
  351. package/dist/_vendor/core/dist/team-runtime/providers/anthropic.js +184 -0
  352. package/dist/_vendor/core/dist/team-runtime/providers/azure-openai.js +235 -0
  353. package/dist/_vendor/core/dist/team-runtime/providers/claude-code.js +307 -0
  354. package/dist/_vendor/core/dist/team-runtime/providers/gemini-direct.js +107 -0
  355. package/dist/_vendor/core/dist/team-runtime/providers/gemini.js +154 -0
  356. package/dist/_vendor/core/dist/team-runtime/providers/microsoft-foundry.js +254 -0
  357. package/dist/_vendor/core/dist/team-runtime/providers/openai.js +394 -0
  358. package/dist/_vendor/core/dist/telemetry/broker/decision-outcome.js +350 -0
  359. package/dist/_vendor/core/dist/telemetry/broker/index.js +1 -0
  360. package/dist/_vendor/core/dist/telemetry/compact-receipts.js +105 -0
  361. package/dist/_vendor/core/dist/telemetry/index.js +353 -0
  362. package/dist/_vendor/core/dist/telemetry/observation.js +123 -0
  363. package/dist/_vendor/core/dist/telemetry/parallel-replay/index.js +61 -0
  364. package/dist/_vendor/core/dist/telemetry/shared-write-coverage.js +52 -0
  365. package/dist/_vendor/core/dist/test-runner/map-integration.js +197 -0
  366. package/dist/_vendor/core/dist/test-runner/metrics-collector.js +33 -0
  367. package/dist/_vendor/core/dist/test-runner/propagation.js +217 -0
  368. package/dist/_vendor/core/dist/upgrade/behaviors/reshape.js +248 -0
  369. package/dist/_vendor/core/dist/upgrade/behaviors/retire.js +170 -0
  370. package/dist/_vendor/core/dist/upgrade/decomposition-decision.js +54 -0
  371. package/dist/_vendor/core/dist/upgrade/evolution-draft.js +208 -0
  372. package/dist/_vendor/core/dist/upgrade/map-curator/types.js +1 -0
  373. package/dist/_vendor/core/dist/upgrade/map-curator.js +458 -0
  374. package/dist/_vendor/core/dist/upgrade/map-propose.js +94 -0
  375. package/dist/_vendor/core/dist/upgrade/metrics-to-proposal.js +126 -0
  376. package/dist/_vendor/core/dist/upgrade/propose/failure-reason.js +33 -0
  377. package/dist/_vendor/core/dist/upgrade/propose/gates.js +392 -0
  378. package/dist/_vendor/core/dist/upgrade/propose/normalize-input.js +183 -0
  379. package/dist/_vendor/core/dist/upgrade/propose.js +363 -0
  380. package/dist/_vendor/core/dist/validation/ajv-factory.js +38 -0
  381. package/dist/_vendor/integration-claude-code/dist/index.js +20 -0
  382. package/dist/_vendor/integration-codex/dist/index.js +20 -0
  383. package/dist/_vendor/integration-copilot/dist/index.js +20 -0
  384. package/dist/_vendor/integration-cursor/dist/index.js +20 -0
  385. package/dist/_vendor/integration-gemini/dist/index.js +96 -0
  386. package/dist/_vendor/integrations-core/dist/compiler/charter-block.js +138 -0
  387. package/dist/_vendor/integrations-core/dist/compiler/compile.js +285 -0
  388. package/dist/_vendor/integrations-core/dist/compiler/skill-projection-parity.js +148 -0
  389. package/dist/_vendor/integrations-core/dist/compiler/skill-source-universe.js +104 -0
  390. package/dist/_vendor/integrations-core/dist/compiler/skill-templates.js +354 -0
  391. package/dist/_vendor/integrations-core/dist/distribution/editor-global-overlay.js +230 -0
  392. package/dist/_vendor/integrations-core/dist/distribution/external-skill-catalog.js +332 -0
  393. package/dist/_vendor/integrations-core/dist/distribution/install-profile.js +71 -0
  394. package/dist/_vendor/integrations-core/dist/distribution/skill-catalog.js +39 -0
  395. package/dist/_vendor/integrations-core/dist/distribution/skill-distribution-manager.js +102 -0
  396. package/dist/_vendor/integrations-core/dist/index.js +30 -0
  397. package/dist/_vendor/integrations-core/dist/manifest/construct.js +157 -0
  398. package/dist/_vendor/integrations-core/dist/manifest/schema.js +43 -0
  399. package/dist/_vendor/integrations-core/dist/manifest/types.js +1 -0
  400. package/dist/_vendor/integrations-core/dist/verify/types.js +9 -0
  401. package/dist/_vendor/integrations-core/dist/verify/uninstall-safety.js +63 -0
  402. package/dist/_vendor/integrations-core/dist/verify/verify-installed.js +45 -0
  403. package/dist/_vendor/integrations-core/templates/skills/atm-atom-map-refactor.skill.md +145 -0
  404. package/dist/_vendor/integrations-core/templates/skills/atm-bug-backlog.skill.md +101 -0
  405. package/dist/_vendor/integrations-core/templates/skills/atm-create.skill.md +50 -0
  406. package/dist/_vendor/integrations-core/templates/skills/atm-deep-module-refactor.files/references/deepening.md +28 -0
  407. package/dist/_vendor/integrations-core/templates/skills/atm-deep-module-refactor.files/references/design-it-twice.md +21 -0
  408. package/dist/_vendor/integrations-core/templates/skills/atm-deep-module-refactor.skill.md +124 -0
  409. package/dist/_vendor/integrations-core/templates/skills/atm-diagnostic-loop.skill.md +92 -0
  410. package/dist/_vendor/integrations-core/templates/skills/atm-dispatch.skill.md +456 -0
  411. package/dist/_vendor/integrations-core/templates/skills/atm-error-code-resolver.skill.md +117 -0
  412. package/dist/_vendor/integrations-core/templates/skills/atm-evidence.skill.md +121 -0
  413. package/dist/_vendor/integrations-core/templates/skills/atm-framework-quickfix.skill.md +83 -0
  414. package/dist/_vendor/integrations-core/templates/skills/atm-framework-temp-claim.skill.md +275 -0
  415. package/dist/_vendor/integrations-core/templates/skills/atm-git-pathspec-emergency-commit.skill.md +172 -0
  416. package/dist/_vendor/integrations-core/templates/skills/atm-governance-router.files/references/boundary-confusion.md +42 -0
  417. package/dist/_vendor/integrations-core/templates/skills/atm-governance-router.files/references/entry-friction.md +29 -0
  418. package/dist/_vendor/integrations-core/templates/skills/atm-governance-router.files/references/fallback-design.md +23 -0
  419. package/dist/_vendor/integrations-core/templates/skills/atm-governance-router.files/references/index.md +84 -0
  420. package/dist/_vendor/integrations-core/templates/skills/atm-governance-router.files/references/learning-loop.md +22 -0
  421. package/dist/_vendor/integrations-core/templates/skills/atm-governance-router.files/references/route-interpretation.md +19 -0
  422. package/dist/_vendor/integrations-core/templates/skills/atm-governance-router.files/references/tooling-mismatch.md +97 -0
  423. package/dist/_vendor/integrations-core/templates/skills/atm-governance-router.skill.md +482 -0
  424. package/dist/_vendor/integrations-core/templates/skills/atm-handoff.skill.md +100 -0
  425. package/dist/_vendor/integrations-core/templates/skills/atm-internal-build-sync.skill.md +72 -0
  426. package/dist/_vendor/integrations-core/templates/skills/atm-lock.skill.md +57 -0
  427. package/dist/_vendor/integrations-core/templates/skills/atm-memory-consolidate.skill.md +75 -0
  428. package/dist/_vendor/integrations-core/templates/skills/atm-minimal-patch-rebuilder.skill.md +103 -0
  429. package/dist/_vendor/integrations-core/templates/skills/atm-next.skill.md +309 -0
  430. package/dist/_vendor/integrations-core/templates/skills/atm-orient.skill.md +59 -0
  431. package/dist/_vendor/integrations-core/templates/skills/atm-plan-authoring.skill.md +147 -0
  432. package/dist/_vendor/integrations-core/templates/skills/atm-residue-cleanup.skill.md +35 -0
  433. package/dist/_vendor/integrations-core/templates/skills/atm-task-card-authoring.skill.md +433 -0
  434. package/dist/_vendor/integrations-core/templates/skills/atm-task-intent-resolver.skill.md +112 -0
  435. package/dist/_vendor/integrations-core/templates/skills/atm-upgrade-scan.skill.md +50 -0
  436. package/dist/_vendor/integrations-core/templates/skills/mailbox-worker-execution.skill.md +93 -0
  437. package/dist/_vendor/integrations-core/templates/skills/skill.schema.json +172 -0
  438. package/dist/_vendor/language-csharp/dist/index.js +16 -0
  439. package/dist/_vendor/language-csharp/dist/language-csharp-adapter.js +240 -0
  440. package/dist/_vendor/language-js/dist/index.js +16 -0
  441. package/dist/_vendor/language-js/dist/language-js-adapter.js +423 -0
  442. package/dist/_vendor/language-python/dist/index.js +19 -0
  443. package/dist/_vendor/language-python/dist/language-python-adapter/planning.js +197 -0
  444. package/dist/_vendor/language-python/dist/language-python-adapter/profile.js +199 -0
  445. package/dist/_vendor/language-python/dist/language-python-adapter/scanner.js +77 -0
  446. package/dist/_vendor/language-python/dist/language-python-adapter/shared.js +37 -0
  447. package/dist/_vendor/language-python/dist/language-python-adapter/validation.js +42 -0
  448. package/dist/_vendor/language-python/dist/language-python-adapter.js +37 -0
  449. package/dist/_vendor/plugin-experience-loop/dist/index.js +411 -0
  450. package/dist/_vendor/plugin-experience-loop/schemas/memory-nudge.schema.json +29 -0
  451. package/dist/_vendor/plugin-experience-loop/schemas/skill-amendment.schema.json +49 -0
  452. package/dist/_vendor/plugin-experience-loop/schemas/skill-candidate.schema.json +69 -0
  453. package/dist/_vendor/plugin-governance-local/dist/bootstrap/bootstrap/bootstrap-support.js +462 -0
  454. package/dist/_vendor/plugin-governance-local/dist/bootstrap/bootstrap/implementation.js +483 -0
  455. package/dist/_vendor/plugin-governance-local/dist/bootstrap/bootstrap/root-entry-patching.js +129 -0
  456. package/dist/_vendor/plugin-governance-local/dist/bootstrap/bootstrap.js +1 -0
  457. package/dist/_vendor/plugin-governance-local/dist/bootstrap/budget.js +75 -0
  458. package/dist/_vendor/plugin-governance-local/dist/bootstrap/prompt.js +101 -0
  459. package/dist/_vendor/plugin-governance-local/dist/bootstrap/types.js +1 -0
  460. package/dist/_vendor/plugin-governance-local/dist/default-guards.js +51 -0
  461. package/dist/_vendor/plugin-governance-local/dist/index.js +23 -0
  462. package/dist/_vendor/plugin-governance-local/dist/layout.js +22 -0
  463. package/dist/_vendor/plugin-governance-local/dist/stores/helpers.js +293 -0
  464. package/dist/_vendor/plugin-governance-local/dist/stores.js +484 -0
  465. package/dist/_vendor/plugin-governance-local/dist/versioning.js +68 -0
  466. package/dist/_vendor/plugin-human-review/dist/decision-log.js +130 -0
  467. package/dist/_vendor/plugin-human-review/dist/index.js +8 -0
  468. package/dist/_vendor/plugin-human-review/dist/map-curator-bridge.js +67 -0
  469. package/dist/_vendor/plugin-human-review/dist/queue.js +196 -0
  470. package/dist/_vendor/plugin-review-advisory/dist/conversation-machine-findings.js +191 -0
  471. package/dist/_vendor/plugin-review-advisory/dist/deep-module-provider.js +99 -0
  472. package/dist/_vendor/plugin-review-advisory/dist/index.js +306 -0
  473. package/dist/_vendor/plugin-review-advisory/dist/promotion-gates.js +145 -0
  474. package/dist/_vendor/plugin-rule-guard/dist/index.js +8 -0
  475. package/dist/_vendor/plugin-rule-guard/dist/lifecycle-police.js +116 -0
  476. package/dist/_vendor/plugin-rule-guard/dist/neutrality-scanner.js +188 -0
  477. package/dist/_vendor/plugin-rule-guard/dist/rule-justification.js +27 -0
  478. package/dist/_vendor/plugin-sdk/dist/atomization-planning.js +157 -0
  479. package/dist/_vendor/plugin-sdk/dist/behavior-registry.js +145 -0
  480. package/dist/_vendor/plugin-sdk/dist/behavior.js +6 -0
  481. package/dist/_vendor/plugin-sdk/dist/capability.js +1 -0
  482. package/dist/_vendor/plugin-sdk/dist/conversation/conversation-evidence-extractor.js +130 -0
  483. package/dist/_vendor/plugin-sdk/dist/conversation/conversation-feedback-loop.js +178 -0
  484. package/dist/_vendor/plugin-sdk/dist/conversation/conversation-patch-draft-bridge.js +246 -0
  485. package/dist/_vendor/plugin-sdk/dist/conversation/conversation-review-finding.js +6 -0
  486. package/dist/_vendor/plugin-sdk/dist/conversation/conversation-transcript-reviewer.js +177 -0
  487. package/dist/_vendor/plugin-sdk/dist/conversation/index.js +5 -0
  488. package/dist/_vendor/plugin-sdk/dist/detector/evidence-pattern-detector.js +184 -0
  489. package/dist/_vendor/plugin-sdk/dist/detector/index.js +1 -0
  490. package/dist/_vendor/plugin-sdk/dist/effect-node.js +1 -0
  491. package/dist/_vendor/plugin-sdk/dist/external-task-source.js +1 -0
  492. package/dist/_vendor/plugin-sdk/dist/governance/index.js +1 -0
  493. package/dist/_vendor/plugin-sdk/dist/governance/layout.js +17 -0
  494. package/dist/_vendor/plugin-sdk/dist/governance/stores.js +1 -0
  495. package/dist/_vendor/plugin-sdk/dist/index.js +12 -0
  496. package/dist/_vendor/plugin-sdk/dist/injector-plugin.js +1 -0
  497. package/dist/_vendor/plugin-sdk/dist/language-adapter.js +1 -0
  498. package/dist/_vendor/plugin-sdk/dist/lifecycle.js +5 -0
  499. package/dist/_vendor/plugin-sdk/dist/police.js +1 -0
  500. package/dist/_vendor/plugin-sdk/dist/project-adapter.js +1 -0
  501. package/dist/_vendor/plugin-sdk/dist/test-runner.js +1 -0
  502. package/dist/commands/agent-pack.js +6 -6
  503. package/dist/commands/atm-chart/constants.js +2 -2
  504. package/dist/commands/atm-chart/render-verify.js +1 -1
  505. package/dist/commands/atm-chart.js +1 -1
  506. package/dist/commands/atom-capsule.js +2 -2
  507. package/dist/commands/atom-ref.js +1 -1
  508. package/dist/commands/batch/implementation.js +3 -3
  509. package/dist/commands/batch/plan-executor.js +3 -3
  510. package/dist/commands/bootstrap.js +1 -1
  511. package/dist/commands/broker/batch-execute-actions.js +5 -5
  512. package/dist/commands/broker/broker-decision-observation.js +1 -1
  513. package/dist/commands/broker/census/index.js +1 -1
  514. package/dist/commands/broker/migrate/implementation.js +2 -2
  515. package/dist/commands/broker/parallel-admission/final-verdict.js +1 -1
  516. package/dist/commands/broker/parser.js +1 -1
  517. package/dist/commands/broker/persistence.js +2 -2
  518. package/dist/commands/broker/plan-batch-action.js +4 -4
  519. package/dist/commands/broker/policy-actions.js +1 -1
  520. package/dist/commands/broker/post-compose-semantic-validation.js +1 -1
  521. package/dist/commands/broker/proposal-actions.js +1 -1
  522. package/dist/commands/broker/reconcile/implementation.js +3 -3
  523. package/dist/commands/broker/registry-actions.js +8 -8
  524. package/dist/commands/broker/replay/dashboard-view-model.js +1 -1
  525. package/dist/commands/broker/replay/dashboard.js +1 -1
  526. package/dist/commands/broker/replay/implementation.js +1 -1
  527. package/dist/commands/broker/runner-sync-supersession.js +1 -1
  528. package/dist/commands/broker/shared-delivery-commit-transaction.js +1 -1
  529. package/dist/commands/broker/shared-surface.js +3 -3
  530. package/dist/commands/broker/steward-queues.js +2 -2
  531. package/dist/commands/broker/steward-runtime-actions.js +5 -5
  532. package/dist/commands/broker/wave-scheduler-actions.js +1 -1
  533. package/dist/commands/broker-conflict-resolution.js +1 -1
  534. package/dist/commands/budget.js +1 -1
  535. package/dist/commands/cache.js +1 -1
  536. package/dist/commands/candidates.js +4 -4
  537. package/dist/commands/create-map.js +2 -2
  538. package/dist/commands/create.js +1 -1
  539. package/dist/commands/daemon.js +4 -4
  540. package/dist/commands/doctor/lifecycle.js +18 -1
  541. package/dist/commands/doctor/run-doctor.js +1 -1
  542. package/dist/commands/doctor/utilities.js +1 -1
  543. package/dist/commands/evidence/bundle-io/implementation.js +1 -1
  544. package/dist/commands/evidence/command-runs.js +1 -1
  545. package/dist/commands/evidence/observed-source-loader.js +1 -1
  546. package/dist/commands/evidence/verbs/diagnose.js +1 -1
  547. package/dist/commands/evidence/verbs/run.js +2 -2
  548. package/dist/commands/evidence/verbs/wave-exit-observer.js +2 -2
  549. package/dist/commands/experience.js +4 -4
  550. package/dist/commands/explain.js +1 -1
  551. package/dist/commands/framework-development/closure-packet-schema/implementation.js +2 -2
  552. package/dist/commands/framework-development/framework-temp-lock-projection.js +1 -1
  553. package/dist/commands/framework-development/framework-temp-publication-capability.js +10 -3
  554. package/dist/commands/framework-development/runner-publication-close-handoff.js +1 -1
  555. package/dist/commands/framework-development/runner-publication-lifecycle.js +24 -2
  556. package/dist/commands/framework-development/runner-sync-admission.js +1 -1
  557. package/dist/commands/git-governance/implementation/admission-command.js +5 -5
  558. package/dist/commands/git-governance/implementation/broker-hook-bypass-preflight.js +1 -1
  559. package/dist/commands/git-governance/implementation/commit-attempt-boundary.js +9 -1
  560. package/dist/commands/git-governance/implementation/commit-authority-scopes.js +21 -7
  561. package/dist/commands/git-governance/implementation/commit-bundle-resolution.js +1 -1
  562. package/dist/commands/git-governance/implementation/commit-command.js +12 -1
  563. package/dist/commands/git-governance/implementation/git-head-evidence-transaction.js +1 -1
  564. package/dist/commands/git-governance/implementation/identity-check-command.js +1 -1
  565. package/dist/commands/git-governance/implementation/push-command.js +2 -2
  566. package/dist/commands/git-governance/implementation/sealed-commit-attribution.js +1 -1
  567. package/dist/commands/git-governance/implementation/task-scope-staging.js +13 -1
  568. package/dist/commands/git-governance/protected-governance-state.js +1 -1
  569. package/dist/commands/git-governance/work-admission-check.js +37 -8
  570. package/dist/commands/git-governance.js +2 -2
  571. package/dist/commands/git.js +1 -1
  572. package/dist/commands/guard.js +1 -1
  573. package/dist/commands/guide.js +1 -1
  574. package/dist/commands/handoff.js +1 -1
  575. package/dist/commands/health-report.js +1 -1
  576. package/dist/commands/hook/commit-range-guard/implementation.js +1 -1
  577. package/dist/commands/hook/pre-commit/implementation.js +2 -2
  578. package/dist/commands/hook/pre-commit/scope-ownership.js +2 -2
  579. package/dist/commands/hook/pre-commit/support.js +21 -1
  580. package/dist/commands/integration/adapter-parity.js +1 -1
  581. package/dist/commands/integration/adapters.js +5 -5
  582. package/dist/commands/integration/health.js +1 -1
  583. package/dist/commands/integration-hooks/implementation.js +1 -1
  584. package/dist/commands/lane-session/mutation-authority-adapter.js +1 -1
  585. package/dist/commands/lock.js +1 -1
  586. package/dist/commands/map-capsule.js +3 -3
  587. package/dist/commands/next/claim-admission.js +1 -1
  588. package/dist/commands/next/claim-helpers.js +1 -1
  589. package/dist/commands/next/claim-orchestration.js +1 -1
  590. package/dist/commands/next/plan-scoped-preflight.js +1 -1
  591. package/dist/commands/next/playbook-projection/legacy-guidance.js +1 -1
  592. package/dist/commands/next/result-compaction.js +1 -1
  593. package/dist/commands/next/route-resolution/pending-worktree.js +2 -2
  594. package/dist/commands/next.js +2 -2
  595. package/dist/commands/orient.js +1 -1
  596. package/dist/commands/police.js +1 -1
  597. package/dist/commands/registry-diff.js +1 -1
  598. package/dist/commands/registry-shared.js +2 -2
  599. package/dist/commands/registry.js +4 -4
  600. package/dist/commands/replacement-lane.js +1 -1
  601. package/dist/commands/rescue.js +2 -2
  602. package/dist/commands/review-advisory.js +2 -2
  603. package/dist/commands/review.js +4 -4
  604. package/dist/commands/rollback.js +2 -2
  605. package/dist/commands/route/freeze-patch.js +3 -3
  606. package/dist/commands/route/lifecycle.js +1 -1
  607. package/dist/commands/route/takeover.js +1 -1
  608. package/dist/commands/runtime-adapter-readiness.js +4 -4
  609. package/dist/commands/self-host-alpha.js +1 -1
  610. package/dist/commands/shared/result-core.js +24 -1
  611. package/dist/commands/spec-shared.js +1 -1
  612. package/dist/commands/start.js +1 -1
  613. package/dist/commands/taskflow/auto-evidence-mapper.js +1 -1
  614. package/dist/commands/taskflow/broker-gate.js +2 -2
  615. package/dist/commands/taskflow/close-owned-delivery-dirty-admission.js +1 -1
  616. package/dist/commands/taskflow/close-preflight.js +3 -3
  617. package/dist/commands/taskflow/implementation.js +4 -4
  618. package/dist/commands/taskflow/runner-publication-close-queue.js +1 -1
  619. package/dist/commands/taskflow/runner-selection-evidence.js +2 -2
  620. package/dist/commands/taskflow/write-readiness.js +15 -1
  621. package/dist/commands/tasks/acceptance-evidence-import.js +1 -1
  622. package/dist/commands/tasks/claim-orchestrator.js +2 -2
  623. package/dist/commands/tasks/claim-repair-diagnostics.js +3 -3
  624. package/dist/commands/tasks/claim-work-admission.js +4 -4
  625. package/dist/commands/tasks/close-orchestrator/acceptance-evidence-gate.js +1 -1
  626. package/dist/commands/tasks/close-orchestrator.js +1 -1
  627. package/dist/commands/tasks/dependency-gate.js +1 -1
  628. package/dist/commands/tasks/import-orchestrator.js +9 -0
  629. package/dist/commands/tasks/legacy/implementation.js +2 -2
  630. package/dist/commands/tasks/planning-mirror-reconcile.js +82 -0
  631. package/dist/commands/tasks/reconcile-orchestrator.js +12 -1
  632. package/dist/commands/tasks/release-wip-transaction.js +1 -1
  633. package/dist/commands/tasks/scope-amendment/implementation.js +2 -2
  634. package/dist/commands/tasks/scope-preflight/implementation.js +1 -1
  635. package/dist/commands/tasks/task-card-contract-import.js +1 -1
  636. package/dist/commands/tasks/task-work-admission-import.js +1 -1
  637. package/dist/commands/tasks.js +1 -1
  638. package/dist/commands/team/legacy/broker-observability.js +3 -3
  639. package/dist/commands/team/legacy/handoff-handler.js +2 -2
  640. package/dist/commands/team/legacy/patrol-handler.js +1 -1
  641. package/dist/commands/team/legacy/plan-orchestration.js +2 -2
  642. package/dist/commands/team/legacy/planning-context.js +1 -1
  643. package/dist/commands/team/legacy/provider-execution.js +7 -7
  644. package/dist/commands/team/legacy/runtime-governance.js +1 -1
  645. package/dist/commands/team/legacy/team-run-runtime.js +1 -1
  646. package/dist/commands/team/role-provider-resolution.js +1 -1
  647. package/dist/commands/team/role-skill-packs.js +2 -2
  648. package/dist/commands/team/runtime-bridges.js +7 -7
  649. package/dist/commands/team/scheduler.js +2 -2
  650. package/dist/commands/team-runtime-gates.js +1 -1
  651. package/dist/commands/team-wave.js +5 -5
  652. package/dist/commands/telemetry.js +2 -2
  653. package/dist/commands/test-catalog.js +2 -2
  654. package/dist/commands/test.js +7 -7
  655. package/dist/commands/upgrade/experimental.js +1 -1
  656. package/dist/commands/upgrade/proposal/context-budget.js +2 -2
  657. package/dist/commands/upgrade/proposal/guided-legacy.js +1 -1
  658. package/dist/commands/upgrade/scan.js +1 -1
  659. package/dist/commands/upgrade-map-propose.js +1 -1
  660. package/dist/commands/upgrade.js +1 -1
  661. package/dist/commands/validate.js +1 -1
  662. package/dist/commands/verify.js +2 -2
  663. package/dist/commands/welcome.js +1 -1
  664. package/dist/commands/write-ticket.js +2 -2
  665. package/dist/startup-known-bad.js +36 -5
  666. package/dist/templates/root-drop/.atm/charter/atm-first-principles.template.md +33 -0
  667. package/dist/templates/root-drop/.atm/charter/atomic-charter.template.md +104 -0
  668. package/dist/templates/root-drop/.atm/charter/charter-invariants.template.json +215 -0
  669. package/dist/templates/root-drop/.atm/context/INITIAL_SUMMARY.md +11 -0
  670. package/dist/templates/root-drop/.atm/profile/default.md +21 -0
  671. package/dist/templates/root-drop/.atm/scripts/WRAPPER_DEDUP_PLAN.md +169 -0
  672. package/dist/templates/root-drop/.atm/scripts/ps/atm-create.ps1 +5 -0
  673. package/dist/templates/root-drop/.atm/scripts/ps/atm-evidence.ps1 +5 -0
  674. package/dist/templates/root-drop/.atm/scripts/ps/atm-handoff.ps1 +5 -0
  675. package/dist/templates/root-drop/.atm/scripts/ps/atm-lock.ps1 +5 -0
  676. package/dist/templates/root-drop/.atm/scripts/ps/atm-next.ps1 +5 -0
  677. package/dist/templates/root-drop/.atm/scripts/ps/atm-orient.ps1 +5 -0
  678. package/dist/templates/root-drop/.atm/scripts/ps/atm-upgrade-scan.ps1 +5 -0
  679. package/dist/templates/root-drop/.atm/scripts/sh/atm-create.sh +5 -0
  680. package/dist/templates/root-drop/.atm/scripts/sh/atm-evidence.sh +5 -0
  681. package/dist/templates/root-drop/.atm/scripts/sh/atm-handoff.sh +5 -0
  682. package/dist/templates/root-drop/.atm/scripts/sh/atm-lock.sh +5 -0
  683. package/dist/templates/root-drop/.atm/scripts/sh/atm-next.sh +5 -0
  684. package/dist/templates/root-drop/.atm/scripts/sh/atm-orient.sh +5 -0
  685. package/dist/templates/root-drop/.atm/scripts/sh/atm-upgrade-scan.sh +5 -0
  686. package/dist/templates/root-drop/.atm/scripts/wrappers.json +55 -0
  687. package/dist/templates/root-drop/AGENTS.md +56 -0
  688. package/package.json +26 -14
@@ -0,0 +1,3 @@
1
+ // Generated by `npm run generate:error-codes`; edit docs/governance/error-code-registry.json instead.
2
+ export const ATM_ERROR_CODE_REGISTRY_DIGEST = 'sha256:9c0c4fbefda2b8f3c9f6ecaa70e8d265f8a10df530e275983952443b9cf33f99';
3
+ export const ATM_ERROR_CODE_REGISTRY = { "schemaId": "atm.errorCodeRegistry.v1", "specVersion": "0.1.0", "entries": [{ "code": "ATM_BATCH_PLAN_DIGEST_MISMATCH", "category": "batch", "shortDescription": "A durable plan batch run resume observed a plan digest that differs from the pinned run digest.", "commonCauses": ["The plan file or member task list changed after the batch run was started.", "A coordinator attempted to resume an old batch id against a newer plan revision.", "The operator intentionally amended the plan but did not acknowledge the new digest."], "remediation": ["Inspect the current batch run with node atm.mjs batch status --batch <id> --json.", "If the plan change is intentional, rerun the plan execution command with an explicit accept-plan-change flag once implemented.", "Otherwise restore the original plan/task set before resuming the batch run."], "retryable": true, "requiresHumanApproval": true, "relatedCommands": ["node atm.mjs batch status --batch <id> --json", "node atm.mjs batch plan-start --actor <actor> --plan <path> --task <id> --json"], "sourceOwner": "packages/core/src/batch/plan-run-journal.ts" }, { "code": "ATM_BATCH_RUN_EVENT_JOURNAL_INVALID", "category": "batch", "shortDescription": "A durable plan batch run journal event could not be appended or read as a valid append-only event.", "commonCauses": ["The requested batch id does not have a runtime batch-run record.", "The journal contains malformed JSONL or an event with a conflicting idempotency key.", "Runtime batch-run files were manually edited instead of using the batch command surface."], "remediation": ["Run node atm.mjs batch status --batch <id> --json to inspect the active run.", "Recreate the plan batch run if the runtime journal is corrupted.", "Do not hand-edit .atm/runtime/batch-runs/*.journal.jsonl."], "retryable": false, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs batch plan-journal --actor <actor> --batch <id> --kind <event> --json", "node atm.mjs batch status --batch <id> --json"], "sourceOwner": "packages/core/src/batch/plan-run-journal.ts" }, { "code": "ATM_BATCH_PLANNING_CLOSEBACK_CONFLICT", "category": "batch", "shortDescription": "A plan-level batch closeback compare-and-swap seal conflicted with the planning mirror state.", "commonCauses": ["The external planning card changed after the batch run pinned its plan digest.", "Another coordinator closed or amended a planning mirror card first.", "The closeback seal references stale planning content."], "remediation": ["Refresh the planning mirror status and compare the seal digest.", "Resume the batch only after resolving the planning-card amendment or closeback order.", "Keep target-repo closure and planning mirror closeback in one governed saga."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs taskflow close --task <task-id> --json", "node atm.mjs batch status --batch <id> --json"], "sourceOwner": "packages/cli/src/commands/batch/implementation.ts" }, { "code": "ATM_BATCH_PUSH_DIVERGED", "category": "git-governance", "shortDescription": "A batch run cannot fast-forward its target branch because the remote branch diverged.", "commonCauses": ["Another lane pushed to the protected branch while the batch run was preparing commits.", "The local branch is behind origin/main or origin/master.", "A coordinator attempted to publish stale plan-run commits without revalidating the head."], "remediation": ["Fetch and inspect the divergence before retrying the push.", "Use the governed git admission flow once available for batch-level divergence recovery.", "Rerun required validators after reconciling the branch head."], "retryable": false, "requiresHumanApproval": true, "relatedCommands": ["git fetch origin", "node atm.mjs batch status --batch <id> --json"], "sourceOwner": "packages/cli/src/commands/batch/implementation.ts" }, { "code": "ATM_CLAIM_FOREIGN_UNSTAGED_WIP", "category": "claim-admission", "shortDescription": "A candidate claim intersects foreign or unowned dirty WIP in the shared worktree.", "commonCauses": ["Another lane has uncommitted changes in the task's code scope.", "A previous agent or editor left unstaged or staged changes without an active task owner.", "The candidate task scope includes a code file already dirty in the shared worktree."], "remediation": ["Ask the owning lane to commit, close, release, or hand off before claiming the overlapping code scope.", "If ownership is unowned, inspect the dirty file and either bind it to the right task or clear it through a governed cleanup.", "Docs-only or ledger-only claims can proceed because this gate applies only to candidate code scope."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs tasks status --task <task-id> --json", "node atm.mjs lane status --json", "node atm.mjs broker status --json"], "sourceOwner": "packages/cli/src/commands/next/foreign-dirty-wip-admission.ts" }, { "code": "ATM_LANE_ADOPT_ACTOR_REQUIRED", "category": "lane-session", "shortDescription": "lane adopt requires an explicit actor id.", "commonCauses": ["lane adopt was invoked without --actor and ATM_ACTOR_ID was unset."], "remediation": ["Rerun with --actor <actor-id> or export ATM_ACTOR_ID before adopting."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs lane adopt <lane-id> --actor <actor> --json"], "sourceOwner": "packages/cli/src/commands/lane.ts" }, { "code": "ATM_LANE_ADOPT_TOKEN_MISMATCH", "category": "lane-session", "shortDescription": "The provided handoff token does not match the lane session token hash.", "commonCauses": ["The handoff token was mistyped or copied from a different lane."], "remediation": ["Confirm the handoff token with the lane owner, or wait for TTL expiry / use --confirm for same-handle recovery."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs lane adopt <lane-id> --actor <actor> --handoff-token <token> --json"], "sourceOwner": "packages/cli/src/commands/lane.ts" }, { "code": "ATM_LANE_SESSION_ADOPTABLE", "category": "lane-session", "shortDescription": "Other usable lane sessions exist for the actor and may be exported or adopted.", "commonCauses": ["The same actor minted more than one active lane.", "A previous lane was left open but remains within TTL."], "remediation": ["Continue with the current lane when the duplicate is expected.", "Export one of the listed ATM_LANE_SESSION_ID values when resuming that lane.", "Run node atm.mjs lane sweep --json to inspect stale lane cleanup candidates."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs lane status --json", "node atm.mjs lane adopt <lane-id> --actor <actor> --json"], "sourceOwner": "packages/cli/src/commands/lane-session/resolve.ts" }, { "code": "ATM_LANE_SESSION_ADOPTED", "category": "lane-session", "shortDescription": "A lane session was successfully adopted and lifecycle records were rebound.", "commonCauses": ["An operator or agent adopted an expired, handoff, confirmed, or token-authorized lane."], "remediation": ["Export the reported ATM_LANE_SESSION_ID and continue work on the adopted lane.", "Inspect reboundTaskIds and preservedLeaseIds to confirm claim lease continuity."], "retryable": false, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs lane adopt <lane-id> --actor <actor> --json"], "sourceOwner": "packages/cli/src/commands/lane.ts" }, { "code": "ATM_LANE_SESSION_HEARTBEAT_CLOSED", "category": "lane-session", "shortDescription": "A closed lane session cannot accept a heartbeat.", "commonCauses": ["The lane was already released or expired.", "A stale ATM_LANE_SESSION_ID points at a closed runtime lane."], "remediation": ["Run node atm.mjs lane status --actor <actor> --json to mint or resolve a usable lane.", "Do not manually edit .atm/runtime/lane-sessions; use lane status, adopt, or sweep."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs lane heartbeat <lane-id> --actor <actor> --json", "node atm.mjs lane status --actor <actor> --json"], "sourceOwner": "packages/cli/src/commands/lane.ts" }, { "code": "ATM_LANE_SESSION_HEARTBEAT_EXPIRED", "category": "lane-session", "shortDescription": "A TTL-expired lane session cannot be revived by heartbeat.", "commonCauses": ["The lane exceeded its TTL before the heartbeat command ran.", "The operator attempted to reuse an old lane instead of minting or adopting a fresh one."], "remediation": ["Run node atm.mjs lane status --actor <actor> --json to mint a fresh lane.", "Run node atm.mjs lane sweep --write --json only when explicit cleanup evidence is desired."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs lane status --actor <actor> --json", "node atm.mjs lane sweep --write --json"], "sourceOwner": "packages/cli/src/commands/lane.ts" }, { "code": "ATM_LANE_SESSION_HEARTBEAT_RECORDED", "category": "lane-session", "shortDescription": "A lane session heartbeat was recorded and the lane TTL was extended.", "commonCauses": ["An agent or tool intentionally refreshed a live lane session."], "remediation": ["No remediation is required; inspect evidence.eventPath for the heartbeat event when auditing."], "retryable": false, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs lane heartbeat <lane-id> --actor <actor> --json"], "sourceOwner": "packages/cli/src/commands/lane.ts" }, { "code": "ATM_LANE_SESSION_HEARTBEAT_TARGET_REQUIRED", "category": "lane-session", "shortDescription": "Heartbeat requires an explicit lane id or ATM_LANE_SESSION_ID.", "commonCauses": ["The command was run as lane heartbeat without a positional lane id.", "ATM_LANE_SESSION_ID was not exported in the environment."], "remediation": ["Pass node atm.mjs lane heartbeat <lane-id> --json.", "Run node atm.mjs lane status --json first and export the reported ATM_LANE_SESSION_ID."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs lane status --json", "node atm.mjs lane heartbeat <lane-id> --json"], "sourceOwner": "packages/cli/src/commands/lane.ts" }, { "code": "ATM_LANE_SESSION_MINTED", "category": "lane-session", "shortDescription": "A new lane session was lazily minted for the current actor.", "commonCauses": ["No lane id was provided and ATM_LANE_SESSION_ID was unset.", "The requested lane was missing, closed, or expired."], "remediation": ["Export the reported ATM_LANE_SESSION_ID when subsequent commands should stay on the same lane.", "Use node atm.mjs lane heartbeat <lane-id> --json to refresh long-running lanes."], "retryable": false, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs lane status --actor <actor> --json"], "sourceOwner": "packages/cli/src/commands/lane-session/resolve.ts" }, { "code": "ATM_LANE_SESSION_NOT_ADOPTABLE", "category": "lane-session", "shortDescription": "The requested lane session is closed and cannot be adopted.", "commonCauses": ["The lane status is released or expired.", "A stale handoff command referenced an old lane id."], "remediation": ["Run node atm.mjs lane status --actor <actor> --json to mint or resolve a current lane.", "Use lane sweep only for command-backed cleanup of expired lanes."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs lane adopt <lane-id> --actor <actor> --json", "node atm.mjs lane status --actor <actor> --json"], "sourceOwner": "packages/cli/src/commands/lane.ts" }, { "code": "ATM_LANE_SESSION_NOT_FOUND", "category": "lane-session", "shortDescription": "The requested lane session id does not exist in the runtime lane store.", "commonCauses": ["ATM_LANE_SESSION_ID points to a lane from another repository or cleaned runtime.", "The lane id was mistyped."], "remediation": ["Run node atm.mjs lane status --actor <actor> --json to resolve or mint a usable lane.", "Check the reported exportHint before retrying adopt or heartbeat."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs lane status --json", "node atm.mjs lane adopt <lane-id> --actor <actor> --json"], "sourceOwner": "packages/cli/src/commands/lane.ts" }, { "code": "ATM_LANE_SESSION_NOT_STALE", "category": "lane-session", "shortDescription": "The requested lane is still within TTL and cannot be adopted without confirmation or a handoff token.", "commonCauses": ["lane adopt targeted an active lane that has not expired.", "A second shell attempted to take over a live lane without --confirm or a handoff token."], "remediation": ["Wait for TTL expiry, or rerun with --confirm for same-handle recovery.", "Provide --handoff-token when adopting a live handoff-authorized lane."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs lane adopt <lane-id> --actor <actor> --confirm --json", "node atm.mjs lane adopt <lane-id> --actor <actor> --handoff-token <token> --json"], "sourceOwner": "packages/cli/src/commands/lane.ts" }, { "code": "ATM_LANE_SESSION_STALE_ENV", "category": "lane-session", "shortDescription": "The requested lane environment id is missing, closed, or expired, so ATM minted a new lane.", "commonCauses": ["ATM_LANE_SESSION_ID was copied from an old shell.", "The referenced lane expired before the next command."], "remediation": ["Export the new lane id from the command output.", "Run node atm.mjs lane sweep --json to inspect stale lane candidates."], "retryable": false, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs lane status --json", "node atm.mjs lane sweep --json"], "sourceOwner": "packages/cli/src/commands/lane-session/resolve.ts" }, { "code": "ATM_LANE_SESSION_STATUS", "category": "lane-session", "shortDescription": "Lane status resolved the current lane session envelope for the caller.", "commonCauses": ["An operator inspected the active lane with lane status."], "remediation": ["Export the reported ATM_LANE_SESSION_ID when subsequent commands should stay on the same lane."], "retryable": false, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs lane status --json", "node atm.mjs lane status --actor <actor> --json"], "sourceOwner": "packages/cli/src/commands/lane.ts" }, { "code": "ATM_LANE_SESSION_SWEEP_APPLIED", "category": "lane-session", "shortDescription": "Lane sweep expired sweepable TTL-expired lane sessions and wrote sweep events.", "commonCauses": ["The operator ran lane sweep with --write after reviewing stale lane candidates."], "remediation": ["No remediation is required; inspect evidence.sweep and eventPaths for the cleanup record."], "retryable": false, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs lane sweep --write --json"], "sourceOwner": "packages/cli/src/commands/lane.ts" }, { "code": "ATM_LANE_SESSION_SWEEP_REPORTED", "category": "lane-session", "shortDescription": "Lane sweep reported stale lane candidates without mutating runtime state.", "commonCauses": ["The operator ran lane sweep without --write.", "An agent collected lane cleanup evidence before deciding whether to expire stale lanes."], "remediation": ["If the report is acceptable, rerun with --write to expire sweepable lanes.", "Leave the lanes untouched when another actor may still own the session."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs lane sweep --json", "node atm.mjs lane sweep --write --json"], "sourceOwner": "packages/cli/src/commands/lane.ts" }, { "code": "ATM_BROKER_RUNNER_SYNC_RELEASED", "category": "team-broker", "shortDescription": "Runner-sync steward queue head was released after receipt-backed build/publication evidence.", "commonCauses": ["A queue-head runner-sync build completed and produced a receipt reference or digest."], "remediation": ["No remediation is required; inspect evidence.release.next for the next steward work item, if any."], "retryable": false, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs broker runner-sync status --json"], "sourceOwner": "packages/cli/src/commands/broker.ts" }, { "code": "ATM_BROKER_STATE_DIVERGENCE", "category": "team-broker", "shortDescription": "Broker replay or census observed divergent shared-surface state that must be inspected before more writes continue.", "commonCauses": ["A replay scenario reconstructed a different ticket, queue, freeze, or admission state than the live broker registry.", "A shared-surface projection was generated from stale broker inputs.", "Concurrent steward or broker writes landed without a matching receipt or replayable transition."], "remediation": ["Run node atm.mjs broker status --json to inspect the live shared-surface registry.", "Run the task-provided replay or census validator to identify the divergent state class.", "Do not continue shared writes until the divergent broker state has been reconciled or waived by the owning governance task."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs broker status --json", "node --strip-types tests/cli/atm-3-divergence-census.test.ts"], "statusCommand": "node atm.mjs broker status --json", "recoveryManifests": [{ "schemaId": "atm.commandManifest.v1", "executable": "node", "argv": ["atm.mjs", "broker", "status", "--json"], "shell": false }], "sourceOwner": "packages/core/src/broker/replay" }, { "code": "ATM_EVIDENCE_SEAL_REQUIRED", "category": "evidence", "shortDescription": "A governed operation requires sealed command-backed evidence before the task can checkpoint, close, or publish.", "commonCauses": ["A validator was described in prose but no fresh evidence record was added.", "A task attempted checkpoint or closeout without a command, artifact digest, or exit-code backed seal.", "A planning or target source digest changed after the evidence was recorded."], "remediation": ["Run the task's focused validator and preserve stdout/stderr digests.", "Add evidence with node atm.mjs evidence add --task <task-id> --actor <actor> --kind test --freshness fresh --summary \"<summary>\" --command \"<command>\" --exit-code 0 --json.", "Retry the checkpoint or closeout only after the evidence verify command passes."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs evidence add --task <task-id> --actor <actor> --kind test --freshness fresh --summary \"<summary>\" --command \"<command>\" --exit-code 0 --json", "node atm.mjs evidence verify --task <task-id> --json"], "statusCommand": "node atm.mjs evidence verify --task <task-id> --json", "recoveryManifests": [{ "schemaId": "atm.commandManifest.v1", "executable": "node", "argv": ["atm.mjs", "evidence", "verify", "--task", "<task-id>", "--json"], "shell": false }], "sourceOwner": "packages/cli/src/commands/evidence.ts" }, { "code": "ATM_BROKER_TICKET_STALE_GENERATION", "category": "team-broker", "shortDescription": "A broker ticket was based on an older generation than the current shared-surface registry.", "commonCauses": ["The shared-surface queue, freeze, or admission registry changed after the ticket was minted.", "A worker retried a stale broker ticket after another steward completed or requeued the same surface.", "A cached projection attempted to apply against a newer broker generation."], "remediation": ["Run node atm.mjs broker status --json and compare the current generation with the ticket generation.", "Discard the stale ticket and rerun the admission or arbitration command that produced it.", "If the stale ticket represents completed work, reconcile it through the owning task evidence instead of applying it."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs broker status --json", "node atm.mjs next --prompt \"<current goal>\" --json"], "statusCommand": "node atm.mjs broker status --json", "recoveryManifests": [{ "schemaId": "atm.commandManifest.v1", "executable": "node", "argv": ["atm.mjs", "broker", "status", "--json"], "shell": false }], "sourceOwner": "packages/core/src/broker/ticket-authority" }, { "code": "ATM_BROKER_AUTHORIZATION_DIMENSION_MISMATCH", "category": "team-broker", "shortDescription": "Broker authorization was requested for a different resource dimension than the ticket actually grants.", "commonCauses": ["A task-id scoped approval was used for a file, branch, projection, or shared-surface write.", "A broker ticket grants one resource dimension while the attempted operation mutates another.", "Legacy broker-conflict resolution evidence omitted requested and granted resource dimensions."], "remediation": ["Run node atm.mjs broker status --json to inspect current broker tickets and ownership.", "Re-arbitrate with the requested resource dimension and granted resource dimension recorded in the recovery evidence.", "Do not replace resource-dimension checks with task-id allowlists."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs broker status --json", "node atm.mjs next --prompt \"<current goal>\" --json"], "statusCommand": "node atm.mjs broker status --json", "recoveryManifests": [{ "schemaId": "atm.commandManifest.v1", "executable": "node", "argv": ["atm.mjs", "broker", "status", "--json"], "shell": false }], "sourceOwner": "packages/core/src/broker/ticket-authority" }, { "code": "ATM_BROKER_STEWARD_RECEIPT_REQUIRED", "category": "team-broker", "shortDescription": "A multi-claim shared mutation reached a side-effect boundary without a steward composition/apply receipt.", "trigger": "The shared-write provenance policy observes active write-claim cardinality of two or more for a file at stage, apply, or commit time, but no consumed steward receipt binds that file's staged/commit-tree blob digest.", "commonCauses": ["A shared file was edited and staged directly instead of routed through broker compose and steward delivery.", "The committing actor owns one of the active claims but treated single-claim ownership as sufficient proof for a shared file.", "A neutral-steward lane was active but never produced or consumed a receipt for the file."], "remediation": ["Run node atm.mjs broker status --json to inspect active write-claim cardinality and existing proposals for the file.", "Route the change through node atm.mjs broker compose --proposal-file <proposal> --json to build a composed candidate.", "Obtain a steward apply receipt with node atm.mjs broker steward apply --merge-plan-file <plan> --proposal-file <proposal> --scope-file <path> --evidence-out <receipt> --json before staging or committing the file."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs broker status --json", "node atm.mjs broker compose --proposal-file <proposal> --json", "node atm.mjs broker steward apply --merge-plan-file <plan> --proposal-file <proposal> --scope-file <path> --evidence-out <receipt> --json"], "statusCommand": "node atm.mjs broker status --json", "recoveryManifests": [{ "schemaId": "atm.commandManifest.v1", "executable": "node", "argv": ["atm.mjs", "broker", "status", "--json"], "shell": false }], "requiredEvidence": ["A consumed steward composition/apply receipt whose output digest equals the staged or commit-tree blob digest for the shared file.", "canonicalWriteCount: 1 proven for the composed candidate.", "Attribution for every member claim owning the shared file."], "registryOwner": "TASK-ERR-0004", "sourceOwner": "packages/core/src/broker/shared-write-provenance-policy.ts" }, { "code": "ATM_BROKER_STEWARD_RECEIPT_INVALID", "category": "team-broker", "shortDescription": "A steward receipt for a shared mutation is malformed, unsupported, stale, already consumed, mismatched, or does not prove canonicalWriteCount: 1.", "trigger": "The shared-write provenance policy finds a steward receipt for the shared file but it fails schema validation, references an unsupported version, references a base/HEAD other than the current one, mismatches proposal/task/actor/member attribution, mismatches the file's before/after digest or exact staged/commit-tree blob digest, was already consumed, or does not prove canonicalWriteCount: 1.", "commonCauses": ["The receipt was generated against a prior base or HEAD and never refreshed after the branch moved.", "A receipt was replayed after its output was already consumed by an earlier commit.", "The receipt's attribution, digest, or version fields were hand-edited or copied from an unrelated composition."], "remediation": ["Run node atm.mjs broker status --json to inspect the current base/HEAD and existing proposal/receipt state.", "Rebuild the composition with node atm.mjs broker compose --proposal-file <proposal> --json against the current base/HEAD.", "Obtain a fresh steward apply receipt with node atm.mjs broker steward apply --merge-plan-file <plan> --proposal-file <proposal> --scope-file <path> --evidence-out <receipt> --json; do not reuse or hand-edit the prior receipt."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs broker status --json", "node atm.mjs broker compose --proposal-file <proposal> --json", "node atm.mjs broker steward apply --merge-plan-file <plan> --proposal-file <proposal> --scope-file <path> --evidence-out <receipt> --json"], "statusCommand": "node atm.mjs broker status --json", "recoveryManifests": [{ "schemaId": "atm.commandManifest.v1", "executable": "node", "argv": ["atm.mjs", "broker", "status", "--json"], "shell": false }], "requiredEvidence": ["A rebuilt, unconsumed steward receipt bound to the current base/HEAD, composition-plan digest, and serializability-proof digest.", "Exact file before/after digest and staged/commit-tree blob digest parity with the receipt.", "canonicalWriteCount: 1 proven for the rebuilt composed candidate."], "registryOwner": "TASK-ERR-0004", "sourceOwner": "packages/core/src/broker/shared-write-provenance-policy.ts" }, { "code": "ATM_BROKER_COMPOSE_SEMANTIC_VALIDATION_FAILED", "category": "team-broker", "shortDescription": "An exact composed candidate executed required semantic validators and at least one command-backed result failed.", "trigger": "A materialized compose candidate ran one or more required sealed validators and received a failing command-backed exit result before any canonical write.", "commonCauses": ["Two otherwise serializable proposals compose into a candidate that breaks a sealed static check or targeted behavior test.", "A required validator was executed against the exact candidate and returned a non-zero exit code.", "A caller attempted to treat serializability proof as a substitute for semantic validation."], "remediation": ["Repair or recompute the conflicting proposals against the current base/HEAD.", "Rematerialize the exact composed candidate and rerun the same sealed validator set with node atm.mjs broker post-compose-semantic-validation --candidate-file <path> --json.", "Do not authorize a canonical write, skip the failing validator, or substitute a healthy boolean for the failed command-backed result."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs broker status --json", "node atm.mjs broker compose --proposal-file <proposal> --json", "node atm.mjs broker post-compose-semantic-validation --candidate-file <path> --json"], "statusCommand": "node atm.mjs broker status --json", "recoveryManifests": [{ "schemaId": "atm.commandManifest.v1", "executable": "node", "argv": ["atm.mjs", "broker", "post-compose-semantic-validation", "--candidate-file", "<path>", "--json"], "shell": false }], "requiredEvidence": ["Exact composed candidate digest bound to the current base/HEAD.", "Command-backed validator receipts for the sealed validator set, including the failing exit result.", "Proof that zero canonical writes occurred after the failed validation."], "registryOwner": "TASK-ERR-0006", "sourceOwner": "packages/core/src/broker/post-compose-semantic-validation-policy.ts" }, { "code": "ATM_BROKER_COMPOSE_SEMANTIC_VALIDATION_UNAVAILABLE", "category": "team-broker", "shortDescription": "A required language or project validator could not be resolved, executed, or proven with a command-backed result.", "trigger": "A required sealed validator for a materialized compose candidate is missing, unresolved, unexecuted, malformed, or lacks a command-backed result before any canonical write.", "commonCauses": ["The declared language/project validator binary or adapter is missing from the environment.", "A validator receipt is digest-only, label-only, or otherwise not command-backed.", "A required validator was skipped or marked healthy without an executable argv/cwd/exit receipt."], "remediation": ["Restore or resolve the declared language/project validator named by the sealed selection source.", "Rematerialize the exact composed candidate and rerun semantic validation with node atm.mjs broker post-compose-semantic-validation --candidate-file <path> --json.", "Do not skip the unavailable validator, invent a healthy boolean, or authorize a canonical write while validation remains unavailable."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs broker status --json", "node atm.mjs broker compose --proposal-file <proposal> --json", "node atm.mjs broker post-compose-semantic-validation --candidate-file <path> --json"], "statusCommand": "node atm.mjs broker status --json", "recoveryManifests": [{ "schemaId": "atm.commandManifest.v1", "executable": "node", "argv": ["atm.mjs", "broker", "post-compose-semantic-validation", "--candidate-file", "<path>", "--json"], "shell": false }], "requiredEvidence": ["Exact composed candidate digest bound to the current base/HEAD.", "Resolved validator identity plus command-backed executable/argv/cwd/exit receipts for every required sealed validator.", "Proof that zero canonical writes occurred while validation was unavailable."], "registryOwner": "TASK-ERR-0006", "sourceOwner": "packages/core/src/broker/post-compose-semantic-validation-policy.ts" }, { "code": "ATM_SCOPE_AMENDMENT_REQUIRED", "category": "task-ledger", "shortDescription": "A task needs an explicit governed scope amendment before touching linked files outside its current contract.", "commonCauses": ["A validator or import graph revealed a cross-file dependency not listed in the task scope.", "A generated projection or registry update requires a sibling source file to stay consistent.", "A mechanical split card omitted a coupled file that must be reviewed before first delivery."], "remediation": ["Run node atm.mjs tasks status --task <task-id> --json to inspect the current scope.", "Review the linked files, then run node atm.mjs tasks scope add --task <task-id> --add <paths> --actor <actor> --reason \"<why linked scope is required>\" --json.", "Retry the claim, validator, checkpoint, or commit after the amended scope is recorded."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs tasks status --task <task-id> --json", "node atm.mjs tasks scope add --task <task-id> --add <paths> --actor <actor> --reason \"<why linked scope is required>\" --json"], "statusCommand": "node atm.mjs tasks status --task <task-id> --json", "recoveryManifests": [{ "schemaId": "atm.commandManifest.v1", "executable": "node", "argv": ["atm.mjs", "tasks", "status", "--task", "<task-id>", "--json"], "shell": false }], "sourceOwner": "packages/cli/src/commands/tasks" }, { "code": "ATM_BROKER_REARBITRATION_REQUIRED", "category": "team-broker", "shortDescription": "Broker admission evidence is stale, incomplete, or dimension-mismatched and must be re-arbitrated before write continuation.", "commonCauses": ["A broker conflict or ticket was resolved against an older task, actor, generation, or file set.", "The requested operation now touches a different shared surface than the original arbitration covered.", "A terminal ticket or conflict artifact lacks the canonical decision metadata required for continuation."], "remediation": ["Run node atm.mjs broker status --json to inspect the current shared-surface state.", "Rerun the admission or broker conflict resolution command for the current task, actor, and resource dimension.", "Proceed only after the new broker ticket or conflict-resolution artifact matches the attempted write."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs broker status --json", "node atm.mjs team status --compact --json"], "statusCommand": "node atm.mjs broker status --json", "recoveryManifests": [{ "schemaId": "atm.commandManifest.v1", "executable": "node", "argv": ["atm.mjs", "broker", "status", "--json"], "shell": false }], "sourceOwner": "packages/core/src/broker/ticket-authority" }, { "code": "ATM_RUNNER_SYNC_ORPHAN", "category": "runner-mode", "shortDescription": "Runner-sync state references a build, reservation, receipt, or release artifact that no active steward owns.", "commonCauses": ["A runner-sync reservation expired or was interrupted after writing partial runtime state.", "A build receipt or release artifact was deleted, ignored, or never committed with its reservation.", "A steward queue entry was superseded without reconciling the older runner-sync record."], "remediation": ["Read runnerMode.sourceDrift in the failing command output and inspect node atm.mjs broker status --json.", "If the source is stale and you own release surfaces, run ATM_RETAIN_RELEASE_ARTIFACTS=1 npm run build.", "If ownership is unclear, reconcile the orphan through the broker steward or task evidence before retrying writes."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs broker status --json", "ATM_RETAIN_RELEASE_ARTIFACTS=1 npm run build"], "statusCommand": "node atm.mjs broker status --json", "recoveryManifests": [{ "schemaId": "atm.commandManifest.v1", "executable": "node", "argv": ["atm.mjs", "broker", "status", "--json"], "shell": false }], "sourceOwner": "packages/cli/src/commands/runner-mode" }, { "code": "ATM_PLANNING_ROOT_AMBIGUOUS", "category": "planning", "shortDescription": "More than one plausible sibling planning root exists and no explicit or canonical root resolves the selection.", "trigger": "Two or more sibling repository directories share a planning-root prefix, no canonical base directory of that prefix exists, and the caller supplied no explicit planning root.", "commonCauses": ["Recovery, rescue, or experiment worktrees were created beside the canonical planning repository and were never removed.", "A planning repository was copied or renamed so several prefixed siblings now expose docs/ai_atomic_framework.", "A command that needs a planning root was run without --planning-root while several candidates were present."], "remediation": ["Re-run the command with an explicit planning root, for example --planning-root <absolute-planning-root>.", "Inspect every candidate reported in the error diagnostics before changing anything on disk; all ambiguous roots are preserved.", "Removing or consolidating the extra sibling roots is owner-approved cleanup and is never performed automatically by ATM."], "retryable": true, "requiresHumanApproval": false, "requiredEvidence": ["The candidate planning roots and their source availability as reported by the emitter."], "relatedCommands": ["node atm.mjs next --json", "node atm.mjs doctor --json"], "registryOwner": "TASK-ERR-0007", "sourceOwner": "packages/cli/src/commands/next/planning-root-preference.ts" }, { "code": "ATM_PROTECTED_GOVERNANCE_STATE_DESTRUCTIVE_WRITE", "category": "protected-governance-state", "shortDescription": "A write would destructively change protected governance state instead of applying an allowed lifecycle or reconcile update.", "commonCauses": ["A command attempted to delete, truncate, overwrite, or reset protected ledger, evidence, registry, runtime, or task-event state.", "A cleanup path treated generated governance state as disposable without an owner-authorized reconcile command.", "A broad write matched protected governance paths beyond the current task's allowed lifecycle side effects."], "remediation": ["Run node atm.mjs taskflow diagnose --task <task-id> --json to inspect the protected-state blocker.", "Use the command-designated reconcile or lifecycle command instead of deleting protected governance state directly.", "Request human approval only when the diagnostic classifies the operation as an emergency destructive repair."], "retryable": false, "requiresHumanApproval": true, "relatedCommands": ["node atm.mjs taskflow diagnose --task <task-id> --json", "node atm.mjs doctor --json"], "statusCommand": "node atm.mjs taskflow diagnose --task <task-id> --json", "recoveryManifests": [{ "schemaId": "atm.commandManifest.v1", "executable": "node", "argv": ["atm.mjs", "taskflow", "diagnose", "--task", "<task-id>", "--json"], "shell": false }], "sourceOwner": "packages/cli/src/commands/git-governance/protected-governance-state.ts" }, { "code": "ATM_GIT_COMMIT_FAILED", "category": "git-governance", "shortDescription": "The governed git commit wrapper failed while preparing or finalizing a commit.", "commonCauses": ["A nested git hook or commit admission gate failed after the wrapper started the commit attempt.", "The branch commit queue, scope policy, line-budget policy, or protected-state policy rejected the candidate.", "The underlying git command failed and ATM recorded a commit-attempt status file."], "remediation": ["Inspect the top-level JSON details for nestedErrorCode, attemptPath, affected files, and nextSafeAction.", "Run node atm.mjs git commit-status --actor <actor> --task <task-id> --json to inspect the latest attempt and branch queue state.", "Do not retry the same command blindly when the nested error says the candidate must be reduced, split, or revalidated."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs git commit-status --actor <actor> --task <task-id> --json", "node atm.mjs git commit --actor <actor> --task <task-id> --message \"<message>\" --json"], "statusCommand": "node atm.mjs git commit-status --actor <actor> --task <task-id> --json", "sourceOwner": "packages/cli/src/commands/git-governance/implementation.ts" }, { "code": "ATM_TOUCHED_PHYSICAL_LINE_BUDGET_BLOCKED", "category": "git-governance", "shortDescription": "The staged commit candidate or explicit touched-file candidate exceeds the configured physical line budget.", "commonCauses": ["A formatter or bulk rewrite made the submitted candidate too large for safe review.", "The staged diff itself exceeds the hard physical line budget.", "No staged diff was available, so ATM fell back to the explicit touched file set."], "remediation": ["Inspect the returned hardViolations and topFile fields to identify the candidate that exceeds the budget.", "Reduce the staged candidate, split the work, or rebuild a minimal semantic patch before retrying.", "Unrelated unstaged dirty files should be handled by dirty-WIP gates and must not be used to inflate this candidate budget."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node --strip-types scripts/validate-physical-line-budget.ts --json --touched <paths>", "node atm.mjs git commit-status --actor <actor> --task <task-id> --json"], "statusCommand": "node atm.mjs git commit-status --actor <actor> --task <task-id> --json", "sourceOwner": "packages/cli/src/commands/git-governance/commit-scope-policy.ts" }, { "code": "ATM_GIT_COMMIT_BRANCH_QUEUE_BUSY", "category": "git-governance", "shortDescription": "Another governed commit is currently finalizing the same branch.", "commonCauses": ["A concurrent captain or worker is inside the serialized branch commit queue.", "A stale branch queue lock exists after an interrupted commit attempt."], "remediation": ["Run node atm.mjs git commit-status --actor <actor> --json to inspect the branchCommitQueueStatus owner and age.", "If the owner is alive, wait for it to finish and retry the same governed commit command.", "If the owner is stale or dead, inspect the lock path and current HEAD before cleaning it through the governed recovery lane."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs git commit-status --actor <actor> --json"], "sourceOwner": "packages/cli/src/commands/git-governance.ts" }, { "code": "ATM_GIT_COMMIT_BROKER_CONFLICT_OVERRIDE_REQUIRED", "category": "team-broker", "shortDescription": "A Team Broker ownership conflict blocks commit bypass until a recorded conflict-resolution artifact and approval exist.", "commonCauses": ["A commit would bypass an active Team Broker cross-task mutation block.", "A --no-verify or broker override path was attempted without broker-conflict resolution evidence."], "remediation": ["Resolve the ownership conflict through a paper-style broker conflict-resolution artifact.", "Obtain the required backend.brokerConflictOverride approval only when a human has approved the override.", "Retry the governed commit with --broker-conflict-resolution and the approved lease."], "retryable": true, "requiresHumanApproval": true, "relatedCommands": ["node atm.mjs emergency approve --permission backend.brokerConflictOverride --actor <actor> --allowed-flag --broker-conflict-override --json", "node atm.mjs git commit --actor <actor> --message \"<message>\" --broker-conflict-resolution <artifact> --json"], "sourceOwner": "packages/cli/src/commands/git-governance.ts" }, { "code": "ATM_GIT_COMMIT_STDIN_PATHSPEC_ADD_ACTIVE", "category": "git-governance", "shortDescription": "A git add helper using stdin pathspecs is active and can make a governed commit appear hung.", "commonCauses": ["A GUI/editor staging helper launched git add --pathspec-from-file=- and left stdin open.", "A previous scripted staging command is still waiting for input instead of receiving a finite path list.", "The operator retried commit while a helper process was still active."], "remediation": ["Run node atm.mjs git commit-status --actor <actor> --json and inspect stdinPathspecGitAddProcesses.", "Wait briefly for the listed helper to finish, or terminate only the listed stuck git add process after confirming it is the stdin pathspec helper.", "Manual staging with git add -- <paths> is normal and safe when the path list is finite and reviewed.", "For governed scoped delivery, prefer node atm.mjs git commit --auto-stage; ATM auto-stage uses explicit git add -- <paths> and does not use stdin pathspec staging."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs git commit-status --actor <actor> --json", "git add -- <paths>", "node atm.mjs git commit --actor <actor> --message \"<message>\" --json"], "sourceOwner": "packages/cli/src/commands/git-governance.ts" }, { "code": "ATM_GIT_COMMIT_STDIN_PATHSPEC_ADD_CLEAR", "category": "git-governance", "shortDescription": "No active stdin pathspec git add helper is currently visible to ATM commit-status.", "commonCauses": ["The commit-status diagnostic found no git add --pathspec-from-file=- process.", "Any previous UI/helper staging process has exited."], "remediation": ["Proceed with explicit staging or the governed ATM auto-stage lane.", "If the UI still appears stuck, inspect the branch commit queue and recent commit attempt status before retrying."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs git commit-status --actor <actor> --json", "node atm.mjs git commit --actor <actor> --message \"<summary>\" --auto-stage --json"], "sourceOwner": "packages/cli/src/commands/git-governance.ts" }, { "code": "ATM_NEXT_TASK_SCOPE_NOT_FOUND", "category": "routing", "shortDescription": "ATM could not match the prompt to an imported task card or ledger task.", "commonCauses": ["The task exists only in the planning repository and has not been imported.", "The prompt mentions a task family or hint that does not match a target-repo ledger record."], "remediation": ["If authoring a new task, create or update the planning card first.", "Dry-run import the planning card with node atm.mjs tasks import --from <card> --dry-run --json.", "When the dry run is clean, import with --write and commit the ledger import bundle before claiming implementation."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs tasks import --from <card> --dry-run --json", "node atm.mjs tasks import --from <card> --write --json", "node atm.mjs next --claim --actor <actor> --prompt <task-id> --json"], "sourceOwner": "packages/cli/src/commands/next.ts" }, { "code": "ATM_TASKS_IMPORT_DRIFT", "category": "task-ledger", "shortDescription": "Task import found an existing task ledger record with a different planning source hash.", "commonCauses": ["A planning card was amended after the target ledger was imported.", "The operator retried import without --force for an open or planned task ledger refresh."], "remediation": ["Verify that the planning card path and planning authority are correct.", "For open or planned task ledger refreshes, rerun node atm.mjs tasks import --from <card> --force --write --json.", "Do not use --force to overwrite closed target-authority history or a task with an active claim."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs tasks import --from <card> --dry-run --json", "node atm.mjs tasks import --from <card> --force --write --json"], "sourceOwner": "packages/cli/src/commands/tasks/import-orchestrator.ts" }, { "code": "ATM_RUNNER_STALE_LEDGER_WRITE_ALLOWED", "category": "runner-mode", "shortDescription": "A stale frozen runner warning was downgraded because the command writes only task ledger import records.", "commonCauses": ["The frozen runner is older than source files, but the current command is limited to .atm/history task import writes.", "Another lane owns runner-sync or release artifacts while a planning card still needs target ledger ingestion."], "remediation": ["Continue the ledger import; no human emergency lease is required for clean Tier 1 ledger ingestion.", "Run runner-sync separately before code, build, release, or validation work that depends on frozen runner freshness."], "retryable": false, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs tasks import --from <card> --write --json", "ATM_RETAIN_RELEASE_ARTIFACTS=1 npm run build"], "sourceOwner": "packages/cli/src/commands/tasks/import-orchestrator.ts" }, { "code": "ATM_EMERGENCY_LANE_APPROVAL_REQUIRED", "category": "emergency", "shortDescription": "A protected backend flag requires a human-approved emergency lease.", "commonCauses": ["The command would overwrite closed target-authority history.", "The command would overwrite a same-task active claim or unreadable task claim state.", "A protected backend override flag was used for a non-ledger mutation surface."], "remediation": ["For open or planned task import drift, retry tasks import --force after confirming the source planning authority; this should not require emergency approval.", "For active claims, use handoff, release, or repair-claim before importing.", "For closed target-authority history overwrites, obtain explicit human approval only when a governed repair or migration requires it."], "retryable": true, "requiresHumanApproval": true, "relatedCommands": ["node atm.mjs tasks status --task <task-id> --json", "node atm.mjs tasks import --from <card> --force --write --json", "node atm.mjs emergency approve --permission backend.tasks.import.write --actor <actor> --allowed-flag --force --json"], "sourceOwner": "packages/cli/src/commands/emergency/gate.ts" }, { "code": "ATM_RUNNER_STALE_WRITE_REFUSED", "category": "runner-mode", "shortDescription": "ATM refused a frozen-runner write because the stable runner is older than source changes.", "commonCauses": ["Source files changed after release/atm-onefile/atm.mjs was generated.", "A write command such as task import, claim, close, or commit tried to use node atm.mjs while runnerMode.sourceDrift.syncRequired is true.", "Another active captain owns the release/generated or release mirror surface, so rebuilding immediately would risk absorbing foreign work."], "remediation": ["If no other captain owns release surfaces, run ATM_RETAIN_RELEASE_ARTIFACTS=1 npm run build and retry the frozen node atm.mjs write command.", "If another captain owns release/generated or release mirrors, enqueue broker runner-sync work for the sealed source SHA and wait for the steward release receipt.", "For read-only source-first validation only, use node atm.dev.mjs; do not use source-first writes to bypass frozen-runner governance."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["ATM_RETAIN_RELEASE_ARTIFACTS=1 npm run build", "node atm.mjs next --json", "node atm.mjs broker runner-sync enqueue --task <task-id> --actor <actor> --sealed-source-sha <sha> --surface release/atm-onefile/atm.mjs --json"], "sourceOwner": "packages/cli/src/commands/framework-development/closure-packet-schema.ts" }, { "code": "ATM_RUNNER_SYNC_REQUIRED", "category": "runner-mode", "shortDescription": "The frozen ATM runner is older than source changes and must be rebuilt before frozen-runner validation is trusted.", "commonCauses": ["Source files changed after release/atm-onefile/atm.mjs was generated.", "An agent validated with node atm.dev.mjs but did not refresh the frozen runner used by node atm.mjs."], "remediation": ["Run ATM_RETAIN_RELEASE_ARTIFACTS=1 npm run build from the framework repository.", "Rerun the same node atm.mjs command after the build and confirm runnerMode.sourceDrift.syncRequired is false."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["ATM_RETAIN_RELEASE_ARTIFACTS=1 npm run build", "node atm.mjs next --json"], "sourceOwner": "packages/cli/src/commands/runner-mode" }, { "category": "team-broker", "commonCauses": ["A runner-sync steward release was attempted with an invalid queue state or missing publication receipt.", "A captain tried to release a runner-sync build that is not the current queue head or is not waiting on that steward work id."], "remediation": ["Run node atm.mjs broker runner-sync status --task <task-id> --json to inspect stewardWorkId, queuePosition, waitingTasks, and suggestedNextAction.", "Only the queue-head steward work may be released after one build has produced a receipt reference or digest.", "Retry release with node atm.mjs broker runner-sync release --task <task-id> --steward-work-id <id> --receipt-ref <path> --json, or wait for the current owner to release first."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs broker runner-sync status --task <task-id> --json", "node atm.mjs broker runner-sync release --task <task-id> --steward-work-id <id> --receipt-ref <path> --json"], "sourceOwner": "packages/core/src/broker/runner-sync-steward-queue.ts", "code": "ATM_RUNNER_SYNC_STEWARD_RELEASE_FAILED", "shortDescription": "Runner-sync steward release failed before ATM could classify a more specific release error." }, { "category": "team-broker", "commonCauses": ["A runner-sync steward release was attempted with an invalid queue state or missing publication receipt.", "A captain tried to release a runner-sync build that is not the current queue head or is not waiting on that steward work id."], "remediation": ["Run node atm.mjs broker runner-sync status --task <task-id> --json to inspect stewardWorkId, queuePosition, waitingTasks, and suggestedNextAction.", "Only the queue-head steward work may be released after one build has produced a receipt reference or digest.", "Retry release with node atm.mjs broker runner-sync release --task <task-id> --steward-work-id <id> --receipt-ref <path> --json, or wait for the current owner to release first."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs broker runner-sync status --task <task-id> --json", "node atm.mjs broker runner-sync release --task <task-id> --steward-work-id <id> --receipt-ref <path> --json"], "sourceOwner": "packages/core/src/broker/runner-sync-steward-queue.ts", "code": "ATM_RUNNER_SYNC_STEWARD_RELEASE_INVALID", "shortDescription": "Runner-sync steward release was invoked without a task id or steward work id." }, { "category": "team-broker", "commonCauses": ["A runner-sync steward release was attempted with an invalid queue state or missing publication receipt.", "A captain tried to release a runner-sync build that is not the current queue head or is not waiting on that steward work id."], "remediation": ["Run node atm.mjs broker runner-sync status --task <task-id> --json to inspect stewardWorkId, queuePosition, waitingTasks, and suggestedNextAction.", "Only the queue-head steward work may be released after one build has produced a receipt reference or digest.", "Retry release with node atm.mjs broker runner-sync release --task <task-id> --steward-work-id <id> --receipt-ref <path> --json, or wait for the current owner to release first."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs broker runner-sync status --task <task-id> --json", "node atm.mjs broker runner-sync release --task <task-id> --steward-work-id <id> --receipt-ref <path> --json"], "sourceOwner": "packages/core/src/broker/runner-sync-steward-queue.ts", "code": "ATM_RUNNER_SYNC_STEWARD_RELEASE_NOT_FOUND", "shortDescription": "The requested runner-sync steward work id is not present in the steward queue." }, { "category": "team-broker", "commonCauses": ["A runner-sync steward release was attempted with an invalid queue state or missing publication receipt.", "A captain tried to release a runner-sync build that is not the current queue head or is not waiting on that steward work id."], "remediation": ["Run node atm.mjs broker runner-sync status --task <task-id> --json to inspect stewardWorkId, queuePosition, waitingTasks, and suggestedNextAction.", "Only the queue-head steward work may be released after one build has produced a receipt reference or digest.", "Retry release with node atm.mjs broker runner-sync release --task <task-id> --steward-work-id <id> --receipt-ref <path> --json, or wait for the current owner to release first."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs broker runner-sync status --task <task-id> --json", "node atm.mjs broker runner-sync release --task <task-id> --steward-work-id <id> --receipt-ref <path> --json"], "sourceOwner": "packages/core/src/broker/runner-sync-steward-queue.ts", "code": "ATM_RUNNER_SYNC_STEWARD_RELEASE_NOT_QUEUE_HEAD", "shortDescription": "The requested runner-sync steward work is waiting behind another sealed source and cannot be released yet." }, { "category": "team-broker", "commonCauses": ["A runner-sync steward release was attempted with an invalid queue state or missing publication receipt.", "A captain tried to release a runner-sync build that is not the current queue head or is not waiting on that steward work id."], "remediation": ["Run node atm.mjs broker runner-sync status --task <task-id> --json to inspect stewardWorkId, queuePosition, waitingTasks, and suggestedNextAction.", "Only the queue-head steward work may be released after one build has produced a receipt reference or digest.", "Retry release with node atm.mjs broker runner-sync release --task <task-id> --steward-work-id <id> --receipt-ref <path> --json, or wait for the current owner to release first."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs broker runner-sync status --task <task-id> --json", "node atm.mjs broker runner-sync release --task <task-id> --steward-work-id <id> --receipt-ref <path> --json"], "sourceOwner": "packages/core/src/broker/runner-sync-steward-queue.ts", "code": "ATM_RUNNER_SYNC_STEWARD_RELEASE_OWNER_MISMATCH", "shortDescription": "The releasing task is not one of the tasks waiting on the requested runner-sync steward work id." }, { "category": "team-broker", "commonCauses": ["A runner-sync steward release was attempted with an invalid queue state or missing publication receipt.", "A captain tried to release a runner-sync build that is not the current queue head or is not waiting on that steward work id."], "remediation": ["Run node atm.mjs broker runner-sync status --task <task-id> --json to inspect stewardWorkId, queuePosition, waitingTasks, and suggestedNextAction.", "Only the queue-head steward work may be released after one build has produced a receipt reference or digest.", "Retry release with node atm.mjs broker runner-sync release --task <task-id> --steward-work-id <id> --receipt-ref <path> --json, or wait for the current owner to release first."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs broker runner-sync status --task <task-id> --json", "node atm.mjs broker runner-sync release --task <task-id> --steward-work-id <id> --receipt-ref <path> --json"], "sourceOwner": "packages/core/src/broker/runner-sync-steward-queue.ts", "code": "ATM_RUNNER_SYNC_STEWARD_RELEASE_RECEIPT_REQUIRED", "shortDescription": "Runner-sync steward release requires a build/publication receipt reference or digest before the queue head can be cleared." }, { "category": "team-broker", "commonCauses": ["The referenced runner-sync receipt is missing, outside the repository, malformed, or does not match the queued steward work.", "The receipt was generated for a different task, actor, sealed source SHA, steward work id, or surface set."], "remediation": ["Run node atm.mjs broker runner-sync status --task <task-id> --json and compare the queue head against the receipt fields.", "Regenerate the receipt by rerunning the governed sealed runner build as the queue-head owner.", "Retry release with node atm.mjs broker runner-sync release --task <task-id> --steward-work-id <id> --receipt-ref .atm/history/evidence/<task-id>.runner-sync-receipt.json --json."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs broker runner-sync status --task <task-id> --json", "node atm.mjs broker runner-sync release --task <task-id> --steward-work-id <id> --receipt-ref <path> --json"], "sourceOwner": "packages/cli/src/commands/broker/steward-queues.ts", "code": "ATM_RUNNER_SYNC_STEWARD_RELEASE_RECEIPT_INVALID", "shortDescription": "Runner-sync steward release receipt does not prove the queued build publication." }, { "category": "team-broker", "commonCauses": ["The --receipt-digest argument does not match the bytes of the referenced receipt file.", "The receipt file changed after another command computed or copied its digest."], "remediation": ["Recompute the digest from the current receipt file or omit --receipt-digest when local file validation is enough.", "Regenerate the receipt by rerunning the governed sealed runner build if the file content is stale."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs broker runner-sync release --task <task-id> --steward-work-id <id> --receipt-ref <path> --receipt-digest <sha256:digest> --json"], "sourceOwner": "packages/cli/src/commands/broker/steward-queues.ts", "code": "ATM_RUNNER_SYNC_STEWARD_RELEASE_RECEIPT_DIGEST_MISMATCH", "shortDescription": "Runner-sync steward release receipt digest does not match the referenced receipt file." }, { "code": "ATM_TASKS_AUDIT_WARNINGS", "category": "task-ledger", "shortDescription": "Task audit passed but found active warnings that should be reviewed before claiming a clean ledger.", "commonCauses": ["Planning-only done records have not been imported as target-repo closure evidence.", "Static evidence exists without command-backed execution metadata."], "remediation": ["Read activeFindings in the tasks audit JSON output.", "Do not treat advisory output as a blocker unless the active task depends on the warned evidence.", "Open a repair or import follow-up when the warning is in the current delivery path."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs tasks audit --json"], "sourceOwner": "packages/cli/src/commands/tasks" }, { "code": "ATM_TEAM_TASK_REQUIRED", "category": "team-agents", "shortDescription": "A Team command that needs a task binding was invoked without --task <id>.", "commonCauses": ["The operator ran team plan, start, validate, patrol, or another task-scoped Team command without --task.", "A copied Team command omitted the task id while retrying from a previous diagnostic."], "remediation": ["Rerun the command with --task <task-id> and the same actor/recipe options.", "Use node atm.mjs next --prompt \"<current goal>\" --json when unsure which task should own the Team command.", "Do not infer a task from dirty files; bind the Team command to the current ATM task ledger entry."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs team plan --task <task-id> --recipe <recipe-id> --json", "node atm.mjs team start --task <task-id> --actor <actor> --recipe <recipe-id> --json", "node atm.mjs next --prompt \"<current goal>\" --json"], "sourceOwner": "packages/cli/src/commands/team-legacy.ts" }, { "code": "ATM_TASKS_REALIGN_DIGEST_MISMATCH", "category": "task-ledger", "shortDescription": "Closed-ledger planning source realign refused because contentDigest changed.", "commonCauses": ["Planning card content changed after closure", "Map points at the wrong replacement card"], "remediation": ["Confirm the move is content-preserving", "Do not use tasks import --force to rewrite closed history", "Fix the map or restore the original card body"], "retryable": false, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs tasks realign-plan-source --map <file> --dry-run --json"], "sourceOwner": "packages/cli/src/commands/tasks/realign-plan-source.ts" }, { "code": "ATM_TASKS_REALIGN_PROTECTED_FIELD_MUTATION", "category": "task-ledger", "shortDescription": "Realign attempted to mutate a protected closure/lifecycle field.", "commonCauses": ["Implementation bug writing outside the source block"], "remediation": ["Keep status/closedAt/closurePacket/owner/claim/taskDirectionLock bit-for-bit unchanged"], "retryable": false, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs tasks realign-plan-source --map <file> --dry-run --json"], "sourceOwner": "packages/cli/src/commands/tasks/realign-plan-source.ts" }, { "code": "ATM_GIT_RECORD_COMMIT_PAYLOAD_DROPPED", "category": "git-governance", "shortDescription": "git record-commit created a commit that omitted explicitly staged record files.", "commonCauses": ["Concurrent index reset by another captain", "Shared index contamination between stage and commit"], "remediation": ["Treat the commit as failed governance delivery", "Re-stage missing record files", "Prefer temporary-index commit paths for metadata repairs"], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs git record-commit --actor <id> --message \"...\" --json"], "sourceOwner": "packages/cli/src/commands/git-governance/record-commit-payload-assertion.ts" }, { "code": "ATM_ATOMIC_WRITE_RETRY_EXHAUSTED", "category": "runtime-write", "shortDescription": "An atomic write helper exhausted its bounded retry budget before it could safely persist state.", "commonCauses": ["Concurrent writers repeatedly changed the same runtime or evidence file.", "A filesystem rename or replace operation kept failing after retry.", "The operator retried a shared side effect without reconciling the current file digest."], "remediation": ["Run node atm.mjs broker status --json to inspect the current shared-write owner.", "Run node atm.mjs taskflow diagnose --task <task-id> --json before retrying the write.", "Retry only after the status command shows the owning lane or recovery action."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs broker status --json", "node atm.mjs taskflow diagnose --task <task-id> --json"], "sourceOwner": "packages/cli/src/commands/broker/persistence.ts" }, { "code": "ATM_ORPHAN_CLAIM_ADOPTABLE", "category": "claim-admission", "shortDescription": "A task has orphaned claim state that can be adopted or repaired through the governed claim flow.", "commonCauses": ["A previous actor session expired or disappeared before release.", "The task ledger still records claim ownership but no live lane can continue it.", "A takeover was attempted without first diagnosing claim ownership."], "remediation": ["Run node atm.mjs tasks repair-claim --task <task-id> --actor <actor-id> --json to inspect the adoptable claim.", "Run node atm.mjs tasks status --task <task-id> --json after repair or adoption.", "Do not hand-edit .atm/history/tasks/<task-id>.json."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs tasks repair-claim --task <task-id> --actor <actor-id> --json", "node atm.mjs tasks status --task <task-id> --json"], "sourceOwner": "packages/cli/src/commands/next/claim-orchestration.ts" }, { "code": "ATM_RUNNER_RECEIPT_MISSING", "category": "runner-mode", "shortDescription": "A runner-sync or frozen-runner validation step expected a receipt but could not find one.", "commonCauses": ["The build completed outside the runner-sync receipt writer.", "A cache-hit path skipped receipt creation.", "A later close or release gate could not prove which runner artifacts were synced."], "remediation": ["Run ATM_RETAIN_RELEASE_ARTIFACTS=1 npm run build from the framework repository.", "Run node atm.mjs broker runner-sync status --json when runner-sync broker state exists.", "Rerun the frozen node atm.mjs command that required the receipt."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["ATM_RETAIN_RELEASE_ARTIFACTS=1 npm run build", "node atm.mjs broker runner-sync status --json"], "sourceOwner": "packages/cli/src/commands/next/runner-mode.ts" }, { "code": "ATM_RUNNER_SYNC_STALE_SHA", "category": "runner-mode", "shortDescription": "Runner-sync observed a stale source or artifact SHA and must reseal before frozen-runner validation can be trusted.", "commonCauses": ["HEAD moved after the runner-sync plan was prepared.", "Release artifacts were generated from a different source tree.", "A runner-sync retry reused an old reservation or receipt."], "remediation": ["Run git status --short --branch and confirm the intended source state.", "Run ATM_RETAIN_RELEASE_ARTIFACTS=1 npm run build to reseal frozen artifacts.", "Rerun node atm.mjs next --prompt \"<current goal>\" --json after the build."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["git status --short --branch", "ATM_RETAIN_RELEASE_ARTIFACTS=1 npm run build", "node atm.mjs next --prompt \"<current goal>\" --json"], "sourceOwner": "packages/cli/src/commands/next/runner-mode.ts" }, { "code": "ATM_RUNNER_SYNC_SEAL_REVALIDATION_REQUIRED", "category": "runner-mode", "shortDescription": "A runner-affecting delta broke sealed-input continuity, so the affected output closure must be revalidated before a coalesced runner-sync publication can be trusted.", "commonCauses": ["HEAD advanced with a change under a runner input segment (packages, scripts, templates, schemas, or release) after the session was sealed.", "The selected runner version no longer matches the current sealed source or aggregate input tree hash.", "A publication was attempted against an input graph with no valid owner for a changed path."], "remediation": ["Run node atm.mjs broker runner-sync status --json and inspect the affected closure segments.", "Reseal only the affected closure, or rerun ATM_RETAIN_RELEASE_ARTIFACTS=1 npm run build when a full refresh is required.", "Re-select the runner version against the current sealed source before retrying publication."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs broker runner-sync status --json"], "sourceOwner": "packages/core/src/broker/runner-version-contract.ts" }, { "code": "ATM_RUNNER_SYNC_STEWARD_LEASE_EXPIRED", "category": "runner-mode", "shortDescription": "The durable runner-sync build lease expired mid-build; the steward must resume the coalesced session rather than drop its members.", "commonCauses": ["A steward build ran past its build-lease TTL without a heartbeat renewal.", "The steward process paused, was throttled, or crashed while holding the queue-head lease.", "A renewal was attempted after the lease window had already elapsed."], "remediation": ["Run node atm.mjs broker runner-sync status --json to confirm the queue-head session and its members.", "Resume the sealed build for the same coalesced group instead of starting a new single-task build.", "Preserve the group manifest member attribution when re-acquiring the lease."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs broker runner-sync status --json"], "sourceOwner": "packages/core/src/broker/runner-version-contract.ts" }, { "code": "ATM_RUNNER_SYNC_RESUME_REQUIRED", "category": "runner-mode", "shortDescription": "A crashed or interrupted runner-sync session must be reconciled and deterministically resumed with member attribution preserved before publication.", "commonCauses": ["A steward build was interrupted after start but before the receipt was published.", "A reconcile found the session in building state with an expired lease.", "A retry was attempted without first reconciling the durable session state."], "remediation": ["Run node atm.mjs broker runner-sync status --json and reconcile the durable session state.", "Resume the build for the recorded coalesced members rather than re-enqueuing individually.", "Only finalize publication once every member has an attributable child receipt."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs broker runner-sync status --json"], "sourceOwner": "packages/core/src/broker/runner-version-contract.ts" }, { "code": "ATM_RUNNER_SYNC_COALESCED_ATTRIBUTION_MISSING", "category": "runner-mode", "shortDescription": "A coalesced runner-sync publication was attempted without a child receipt for every group member; the release is refused to prevent a single-task receipt from dropping the group.", "commonCauses": ["The build produced a single head-owner receipt instead of one child receipt per coalesced member.", "A member task was present in the group manifest but absent from the published child receipts.", "A legacy single-task release path consumed only the queue-head owner id."], "remediation": ["Run node atm.mjs broker runner-sync status --json and compare group manifest members to published child receipts.", "Regenerate one attributable child receipt per member before finalizing publication.", "Do not release the queue head until member attribution is complete."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs broker runner-sync status --json"], "sourceOwner": "packages/core/src/broker/runner-version-contract.ts" }, { "code": "ATM_SIDE_EFFECT_RECONCILE_REQUIRED", "category": "shared-delivery", "shortDescription": "A shared side effect may have partially completed and must be reconciled before retry or close.", "commonCauses": ["A commit, closeback, generated write, push, or runner-sync phase crashed after starting.", "The receipt exists but the expected file, commit, or queue transition does not match.", "A retry would duplicate a side effect without checking the idempotency key."], "remediation": ["Run node atm.mjs taskflow diagnose --task <task-id> --json to inspect the side-effect state.", "Run node atm.mjs broker status --json before retrying shared publication.", "Retry only the command returned by the diagnose or broker status output."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs taskflow diagnose --task <task-id> --json", "node atm.mjs broker status --json"], "sourceOwner": "packages/cli/src/commands/broker/batch-execute-actions.ts" }, { "code": "ATM_TASK_ID_NORMALIZATION_MISMATCH", "category": "task-ledger", "shortDescription": "A command normalized or emitted a task id differently from the canonical target-ledger id.", "commonCauses": ["A generated recovery command used a prompt fragment instead of the canonical task id.", "A planning card id and target ledger id differ by prefix, suffix width, or case.", "A command mixed source-card path inference with target-ledger lookup."], "remediation": ["Run node atm.mjs tasks status --task <canonical-task-id> --json.", "Rerun node atm.mjs next --prompt \"<canonical-task-id> <goal>\" --json.", "Use the canonical task id in claim, close, and recovery commands."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs tasks status --task <canonical-task-id> --json", "node atm.mjs next --prompt \"<canonical-task-id> <goal>\" --json"], "sourceOwner": "packages/cli/src/commands/tasks/canonical-task-id-boundary.ts" }, { "code": "ATM_TASK_IMPORT_REFERENCE_ONLY_ID_FRAGMENT", "category": "task-import", "shortDescription": "Task import ignored a task-like id fragment because it was not a canonical task declaration.", "commonCauses": ["A task id appears inside a fenced code block or prose example.", "A heading contains an incomplete or overlong numeric suffix.", "The plan contains a range or placeholder instead of a concrete task card heading."], "remediation": ["Run node atm.mjs tasks import --from <planning-card-or-plan> --dry-run --json and inspect diagnostics[].sourceLine.", "Move examples into fenced code blocks or add a real canonical task heading with a 4-5 digit suffix.", "Retry import with --write only after dry-run diagnostics identify the intended declaration."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs tasks import --from <planning-card-or-plan> --dry-run --json", "node atm.mjs tasks import --from <planning-card-or-plan> --write --json"], "sourceOwner": "packages/cli/src/commands/tasks/plan-import-boundary.ts" }, { "code": "ATM_TASKS_PLAN_EMPTY", "category": "task-import", "shortDescription": "Task import found no importable task declarations in the planning markdown.", "commonCauses": ["The file is a handoff, report, or reference document rather than a task card or task plan.", "Only fenced examples, prose references, or non-canonical id fragments were present.", "The requested --from path points to the wrong planning document."], "remediation": ["Run node atm.mjs tasks import --from <planning-card-or-plan> --dry-run --json and inspect diagnostics[].sourceLine.", "Run node atm.mjs next --prompt \"<specific task id or imported task card>\" --json to route the intended work.", "Use a concrete task card path when importing a single task."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs tasks import --from <planning-card-or-plan> --dry-run --json", "node atm.mjs next --prompt \"<specific task id or imported task card>\" --json"], "sourceOwner": "packages/cli/src/commands/tasks/import-orchestrator.ts" }, { "code": "ATM_TICKET_ADOPT_REQUIRED", "category": "broker-ticket", "shortDescription": "A broker ticket or queue item has a lost owner and must be adopted before mutation continues.", "commonCauses": ["The ticket owner lane expired before publishing or canceling.", "A queued shared-write window reached the head with no live owner.", "A recovery attempt tried to mutate a ticket without explicit adoption."], "remediation": ["Run node atm.mjs broker status --json to identify the ticket and owner state.", "Run node atm.mjs taskflow diagnose --task <task-id> --json to get the adoption command for the task.", "Continue only after the broker status shows the ticket owner is current."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs broker status --json", "node atm.mjs taskflow diagnose --task <task-id> --json"], "sourceOwner": "packages/cli/src/commands/broker/registry-actions.ts" }, { "code": "ATM_TICKET_CANCEL_REQUIRED", "category": "broker-ticket", "shortDescription": "A broker ticket cannot continue and must be canceled through the broker recovery surface.", "commonCauses": ["The ticket references stale base state or invalidated proposal input.", "The queued operation is no longer safe after revalidation.", "An operator attempted to abandon a shared-write ticket by deleting runtime files."], "remediation": ["Run node atm.mjs broker status --json to inspect the ticket state.", "Run node atm.mjs taskflow diagnose --task <task-id> --json to get the cancel or reconcile command.", "Do not delete .atm/runtime broker files directly."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs broker status --json", "node atm.mjs taskflow diagnose --task <task-id> --json"], "sourceOwner": "packages/cli/src/commands/broker/registry-actions.ts" }, { "code": "ATM_TASK_CLOSE_ACCEPTANCE_EVIDENCE_INSUFFICIENT", "category": "task-ledger", "shortDescription": "A closure-critical acceptance predicate is missing, unverifiable, below the required realness class, non-discriminating, failed, or inconclusive.", "trigger": "The acceptance-evidence gate cannot derive a passing closure-critical predicate from available evidence at the required realness and negative-control discrimination levels.", "commonCauses": ["A required evidence source is unavailable or its derivation failed.", "Evidence realness is below the task's declared minimum.", "A negative control was accepted, rejected without a verifier, or otherwise failed to discriminate the claim.", "The deterministic predicate result remains inconclusive."], "remediation": ["Read the acceptance-evidence manifest returned by the closure gate and run its named evidence or verification command.", "Preserve a fresh command-backed receipt at the required realness class, then rerun taskflow pre-close.", "Do not replace missing or inconclusive evidence with lifecycle labels, digest-only receipts, or human assertion."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs evidence missing --task <task-id> --actor <actor> --json", "node atm.mjs taskflow pre-close --task <task-id> --actor <actor> --json"], "statusCommand": "node atm.mjs evidence missing --task <task-id> --actor <actor> --json", "recoveryManifests": [{ "schemaId": "atm.commandManifest.v1", "executable": "node", "argv": ["atm.mjs", "evidence", "missing", "--task", "<task-id>", "--actor", "<actor>", "--json"], "shell": false }], "requiredEvidence": ["The closure predicate derivation identifies its canonical evidence sources and required realness class.", "All declared negative controls discriminate the claim and retain verifier-backed results.", "The rerun produces a fresh deterministic pass before taskflow pre-close."], "registryOwner": "TASK-ERR-0005", "sourceOwner": "packages/cli/src/commands/tasks/close-orchestrator/acceptance-evidence-gate.ts" }, { "code": "ATM_TASK_CLOSE_INDEPENDENT_VERIFIER_REQUIRED", "category": "task-ledger", "shortDescription": "A closure-critical claim lacks both an independent verifier receipt and a pre-sealed locked-policy verifier digest.", "trigger": "The acceptance-evidence gate finds neither a valid separate-actor verifier receipt nor a verifier derived from policy locked before the evidence was observed.", "commonCauses": ["The producer attempted to verify its own closure-critical claim.", "A separate verifier did not execute the declared verification command.", "The locked-policy digest is missing, stale, or was sealed after evidence observation."], "remediation": ["Execute the task's declared verifier with a distinct permitted actor, or supply the pre-sealed locked-policy verifier digest.", "Record the verifier identity, command, input digest, output digest, and exit result in command-backed evidence.", "Rerun taskflow pre-close only after the verifier evidence is fresh and bound to the same claim."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs evidence run --task <task-id> --actor <verifier-actor> --command \"<declared-verifier-command>\" --json", "node atm.mjs taskflow pre-close --task <task-id> --actor <actor> --json"], "statusCommand": "node atm.mjs evidence missing --task <task-id> --actor <actor> --json", "recoveryManifests": [{ "schemaId": "atm.commandManifest.v1", "executable": "node", "argv": ["atm.mjs", "evidence", "run", "--task", "<task-id>", "--actor", "<verifier-actor>", "--command", "<declared-verifier-command>", "--json"], "shell": false }], "requiredEvidence": ["A separate-actor verifier receipt or a valid pre-sealed locked-policy verifier digest.", "Verifier inputs and outputs bind to the same closure-critical claim digest.", "The verifier command completes successfully before taskflow pre-close."], "registryOwner": "TASK-ERR-0005", "sourceOwner": "packages/cli/src/commands/tasks/close-orchestrator/acceptance-evidence-gate.ts" }, { "code": "ATM_TASKFLOW_CROSS_AUTHORITY_CLOSEBACK_PENDING", "category": "taskflow", "shortDescription": "Target and planning closeback have not both committed durably, or a sealed closeback CAS moved between prepare and commit.", "trigger": "The cross-authority closeback saga is prepared or partially committed but cannot prove durable target and planning commits against the sealed roots, HEADs, and source-card CAS values.", "commonCauses": ["Only the target or planning authority commit completed.", "A repository root, HEAD, or planning source-card digest moved after saga preparation.", "A retry attempted to replay already completed side effects instead of reconciling the durable saga receipt."], "remediation": ["Run taskflow diagnose for the affected task and inspect the existing cross-authority saga receipt.", "Execute only the returned reconcile action for the incomplete authority; do not replay completed commits or close side effects.", "Retry closeback after both authority commit SHAs and sealed CAS values are durably recorded."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs taskflow diagnose --task <task-id> --json"], "statusCommand": "node atm.mjs taskflow diagnose --task <task-id> --json", "recoveryManifests": [{ "schemaId": "atm.commandManifest.v1", "executable": "node", "argv": ["atm.mjs", "taskflow", "diagnose", "--task", "<task-id>", "--json"], "shell": false }], "requiredEvidence": ["A durable saga receipt identifies the prepared target and planning authority roots, HEADs, and source-card CAS values.", "Both authority commit SHAs are recorded or the receipt names exactly one incomplete reconcile step.", "Reconciliation proves completed side effects were not replayed."], "registryOwner": "TASK-ERR-0005", "sourceOwner": "packages/cli/src/commands/taskflow/cross-authority-closeback.ts" }, { "code": "ATM_WRITE_SCOPE_AMENDMENT_REQUIRED", "category": "write-ticket", "shortDescription": "A requested pre-write file is outside the current task write-ticket scope and must be added through a governed scope amendment before mutation.", "commonCauses": ["The task card omitted a linked source, test, generated adapter, registry, or protected governance surface.", "An editor pre-write hook checked files before the worker widened the task scope.", "A worker attempted to modify a protected history path outside the governed lifecycle command surface."], "remediation": ["Inspect the current task scope with node atm.mjs tasks status --task <task-id> --json.", "If the path is legitimately linked, run node atm.mjs tasks scope add --task <task-id> --actor <actor> --add <paths> --reason \"<why linked scope is required>\" --json.", "Retry write-ticket acquire/check after the scope amendment is recorded."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs tasks status --task <task-id> --json", "node atm.mjs tasks scope add --task <task-id> --actor <actor> --add <paths> --reason \"<why linked scope is required>\" --json", "node atm.mjs write-ticket check --task <task-id> --actor <actor> --files <paths> --json"], "statusCommand": "node atm.mjs write-ticket status --task <task-id> --actor <actor> --json", "recoveryManifests": [{ "schemaId": "atm.commandManifest.v1", "executable": "node", "argv": ["atm.mjs", "write-ticket", "status", "--task", "<task-id>", "--actor", "<actor>", "--json"], "shell": false }], "sourceOwner": "packages/core/src/broker/write-scope-policy.ts" }, { "code": "ATM_WRITE_SCOPE_UNATTACHED_WIP", "category": "write-ticket", "shortDescription": "Out-of-scope dirty WIP already exists and must be attached, preserved, discarded with a receipt, or split before delivery continues.", "commonCauses": ["An editor or agent lacked a pre-write hook and wrote outside the ticket scope.", "A task claim was released while scoped source changes remained dirty in the shared worktree.", "A protected ledger or source file was modified before ATM could record the scope amendment."], "remediation": ["Run node atm.mjs write-ticket status --task <task-id> --actor <actor> --json to inspect touched-path classification.", "Choose one governed recovery: scope-amend-and-attach, non-delivery WIP commit, discard receipt, or split-to-new-task.", "Do not commit, close, push, stash, restore, or hand-edit .atm state while unattached WIP remains unresolved."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs write-ticket status --task <task-id> --actor <actor> --json", "node atm.mjs tasks scope add --task <task-id> --actor <actor> --add <paths> --reason \"attach out-of-scope WIP\" --json", "node atm.mjs tasks release --task <task-id> --actor <actor> --wip-commit --reason \"preserve unattached WIP\" --json"], "statusCommand": "node atm.mjs write-ticket status --task <task-id> --actor <actor> --json", "recoveryManifests": [{ "schemaId": "atm.commandManifest.v1", "executable": "node", "argv": ["atm.mjs", "write-ticket", "status", "--task", "<task-id>", "--actor", "<actor>", "--json"], "shell": false }], "sourceOwner": "packages/core/src/broker/write-scope-policy.ts" }, { "code": "ATM_WRITE_TICKET_SCOPE_VIOLATION", "category": "write-ticket", "shortDescription": "A write-ticket scope problem reached commit, close, push, or an explicit bypass after the amendment or unattached-WIP recovery path was available.", "commonCauses": ["A worker ignored the amendment-required result and attempted a delivery boundary anyway.", "Unattached dirty WIP remained unresolved during commit, close, or push.", "The write-ticket evidence was bypassed or contradicted by touched-path evidence."], "remediation": ["Stop delivery and inspect node atm.mjs write-ticket status --task <task-id> --actor <actor> --json.", "Resolve amendment-required or unattached-WIP recovery first, then rerun the delivery gate.", "Escalate to captain arbitration only when no governed recovery command is available."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs write-ticket status --task <task-id> --actor <actor> --json", "node atm.mjs taskflow pre-close --task <task-id> --actor <actor> --json"], "statusCommand": "node atm.mjs write-ticket status --task <task-id> --actor <actor> --json", "recoveryManifests": [{ "schemaId": "atm.commandManifest.v1", "executable": "node", "argv": ["atm.mjs", "write-ticket", "status", "--task", "<task-id>", "--actor", "<actor>", "--json"], "shell": false }], "sourceOwner": "packages/core/src/broker/write-scope-policy.ts" }, { "code": "ATM_WRITE_TICKET_MISSING", "category": "write-ticket", "shortDescription": "A governed write-ticket check or delivery boundary did not receive ticket authority for the requested task and actor.", "commonCauses": ["The worker skipped write-ticket acquire before a write/check operation.", "The editor hook did not pass the ticket file to the check command.", "A delivery gate attempted to consume write-ticket evidence that was never produced."], "remediation": ["Run node atm.mjs write-ticket acquire --task <task-id> --actor <actor> --files <paths> --intent write --json.", "Pass the ticket evidence to the editor pre-write hook or delivery gate.", "Retry write-ticket check before modifying files."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs write-ticket acquire --task <task-id> --actor <actor> --files <paths> --intent write --json", "node atm.mjs write-ticket check --task <task-id> --actor <actor> --ticket <ticket.json> --files <paths> --json"], "statusCommand": "node atm.mjs write-ticket status --task <task-id> --actor <actor> --json", "recoveryManifests": [{ "schemaId": "atm.commandManifest.v1", "executable": "node", "argv": ["atm.mjs", "write-ticket", "status", "--task", "<task-id>", "--actor", "<actor>", "--json"], "shell": false }], "sourceOwner": "packages/core/src/broker/write-ticket.ts" }, { "code": "ATM_WRITE_TICKET_STALE", "category": "write-ticket", "shortDescription": "The supplied write ticket no longer matches task, actor, lane, scope digest, or expiry requirements.", "commonCauses": ["The active claim actor or lane changed after the ticket was acquired.", "The ticket expired before the write or delivery boundary ran.", "The ticket was acquired for a different task, actor, or scope digest."], "remediation": ["Run node atm.mjs tasks status --task <task-id> --json and compare the active claim actor/lane.", "Acquire a fresh write ticket for the current actor, lane, and file set.", "Do not reuse stale ticket evidence across handoff, lane adoption, or scope amendment boundaries."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs tasks status --task <task-id> --json", "node atm.mjs write-ticket acquire --task <task-id> --actor <actor> --files <paths> --intent write --json"], "statusCommand": "node atm.mjs write-ticket status --task <task-id> --actor <actor> --json", "recoveryManifests": [{ "schemaId": "atm.commandManifest.v1", "executable": "node", "argv": ["atm.mjs", "write-ticket", "status", "--task", "<task-id>", "--actor", "<actor>", "--json"], "shell": false }], "sourceOwner": "packages/core/src/broker/write-ticket.ts" }, { "code": "ATM_WORK_ADMISSION_RECOVERY_MODE_INVALID", "category": "work-admission", "shortDescription": "Task import rejected workAdmission.recoveryMode because it is not auto, enabled, or disabled.", "commonCauses": ["A planning card used an unsupported recovery mode.", "A hand-authored card used the legacy snake_case field with an invalid value."], "remediation": ["Set workAdmission.recoveryMode to auto, enabled, or disabled in the planning card.", "Re-run task import dry-run before writing the amended ledger."], "retryable": false, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs tasks import --from <task-card> --dry-run --json"], "statusCommand": "node atm.mjs tasks status --task <task-id> --json", "recoveryManifests": [], "sourceOwner": "packages/cli/src/commands/tasks/task-work-admission-import.ts" }, { "code": "ATM_WORK_ADMISSION_RECOVERY_REQUIRED", "category": "work-admission", "shortDescription": "The requested recovery snapshot operation is unavailable under the claim-sealed recovery policy.", "commonCauses": ["The task's auto policy resolved recovery to disabled.", "A caller requested a recovery snapshot after the task was explicitly disabled."], "remediation": ["Use the ticket's deterministic recovery disposition instead of creating an unmanaged backup.", "Amend the task before claim if recovery must be enabled; do not change the policy through prompt text or an environment variable."], "retryable": false, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs tasks status --task <task-id> --json"], "statusCommand": "node atm.mjs tasks status --task <task-id> --json", "recoveryManifests": [], "sourceOwner": "packages/core/src/broker/work-admission-ticket.ts" }, { "code": "ATM_WORK_ADMISSION_DELIVERY_NOT_AUTHORIZED", "category": "work-admission", "shortDescription": "A ticket did not match the current task, actor, lane, claim generation, runner, or lifecycle operation.", "commonCauses": ["A ticket from a prior claim, handoff, or lane was reused.", "The selected runner or requested operation no longer matches the claim-issued ticket."], "remediation": ["Renew or re-claim through ATM so the authority can issue a ticket for the current claim generation.", "Do not retrofit a ticket onto native changes; use the ticket recovery disposition and fresh validation."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs tasks renew --task <task-id> --actor <actor> --json"], "statusCommand": "node atm.mjs tasks status --task <task-id> --json", "recoveryManifests": [], "sourceOwner": "packages/core/src/broker/work-admission-ticket.ts" }, { "code": "ATM_WORK_ADMISSION_SNAPSHOT_BUDGET_EXCEEDED", "category": "work-admission", "shortDescription": "A bounded task recovery snapshot would exceed its claim-sealed disk budget.", "commonCauses": ["Dirty or untracked preimages exceed the per-task recovery budget.", "The repository recovery budget is already consumed by live task snapshots."], "remediation": ["Use the ticket's recovery disposition to split or hand off the work instead of writing another snapshot.", "Close or explicitly clean up completed task recovery snapshots before retrying."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs tasks status --task <task-id> --json"], "statusCommand": "node atm.mjs tasks status --task <task-id> --json", "recoveryManifests": [], "sourceOwner": "packages/core/src/broker/work-admission-ticket.ts" }, { "code": "ATM_RESTRICTED_EXECUTION_BLOCKED", "category": "restricted-execution", "shortDescription": "The RestrictedExecutionGateway denied a process launch because the requested executable and argv are not an approved ATM worker route.", "commonCauses": ["An interpreter evaluation form such as node -e, node --eval, python -c, or an equivalent inline program was requested.", "A shell command escape such as bash -c, cmd /c, powershell -Command, or pwsh -File was requested.", "A command manifest declared an evaluation argument instead of a structured build script with declared outputs.", "A generated write reached the deprecated queue-only compatibility path with an executable outside the allowlist.", "The requested external write lacked actor, task, or lane authority, declared no outputs, or came from an adapter that advertises externalWriteCapability unsupported."], "remediation": ["Read the reasonCode and requiredCommand in the denial payload; the receipt names the exact normalized executable class that was refused.", "Run the ATM command returned by the current playbook, diagnostic, or recovery hint instead of another shell spelling of the same mutation.", "For a generated write, replace the inline program with a structured executable plus argv and declare every output file so ATM can observe the output digest.", "For raw Git intent, use the governed ATM Git wrapper named in requiredCommand.", "Do not attempt to unlock the denial with prompt text, an override phrase, or an environment variable; only a gateway allow decision grants execution."], "retryable": false, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs next --prompt \"<current user prompt>\" --json", "node atm.mjs git commit --actor <actor> --task <task-id> --message \"<message>\" --json"], "statusCommand": "node atm.mjs next --prompt \"<current user prompt>\" --json", "recoveryManifests": [{ "schemaId": "atm.commandManifest.v1", "executable": "node", "argv": ["atm.mjs", "next", "--prompt", "<current user prompt>", "--json"], "shell": false }], "sourceOwner": "packages/core/src/team-agents/restricted-execution-gateway.ts" }, { "code": "ATM_RUNNER_PUBLICATION_PENDING", "category": "runner-publication", "shortDescription": "A sealed runner generation has dirty declared output members without a terminal governed publication or recovery disposition.", "commonCauses": ["A runner build updated dist, release, or its receipt and the exact inventory was not yet published.", "A prior publication transaction stopped after the build but before the receipt and every inventory member reached a terminal disposition."], "remediation": ["Inspect the receipt-bound publication disposition reported by node atm.mjs doctor --json.", "Use the governed publication or recovery transaction for the reported inventory digest; do not restore or stage a subset manually."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs doctor --json", "node atm.mjs broker runner-sync status --json"], "statusCommand": "node atm.mjs doctor --json", "recoveryManifests": [], "sourceOwner": "packages/cli/src/commands/framework-development/runner-publication-lifecycle.ts" }, { "code": "ATM_RUNNER_PUBLICATION_INVENTORY_INCOMPLETE", "category": "runner-publication", "shortDescription": "A runner publication has dirty output artifacts that are absent from its sealed inventory, so ATM cannot safely publish or retain it.", "commonCauses": ["The receipt omitted an output produced by the selected build target.", "A different generation modified a runner artifact after the receipt was sealed."], "remediation": ["Rebuild or reconcile through the governed runner-sync route so the receipt inventories the exact sealed generation.", "Do not add a doctor-local allowlist or publish the unmatched artifact independently."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs doctor --json", "node atm.mjs broker runner-sync status --json"], "statusCommand": "node atm.mjs doctor --json", "recoveryManifests": [], "sourceOwner": "packages/core/src/broker/runner-build-output-inventory.ts" }, { "code": "ATM_WRITE_TICKET_HISTORICAL_ATTESTATION_REQUIRED", "category": "write-ticket", "shortDescription": "A historical critical commit has no normal work-admission trailer and no exact forward attestation.", "commonCauses": ["A protected range contains a commit created before ticket trailers were recorded.", "The corrective attestation has not yet been committed."], "remediation": ["Review the immutable commit and its contemporaneous provenance.", "Create one governed forward attestation, commit it, then retry the protected push."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs git attest --commit <sha> --task <task-id> --actor <actor> --lane <lane-id> --provenance-kind emergency --provenance-ref git:<sha> --provenance-digest sha256:<digest> --json"], "sourceOwner": "packages/core/src/broker/historical-work-admission-attestation.ts" }, { "code": "ATM_HISTORICAL_WORK_ADMISSION_ATTESTATION_INVALID", "category": "write-ticket", "shortDescription": "A historical work-admission attestation is malformed, mismatched, conflicting, or targets a non-ancestor commit.", "commonCauses": ["The commit parent/tree changed from the reviewed record.", "An attestation digest was altered or a second record conflicts."], "remediation": ["Do not edit historical commits or force-push.", "Remove the invalid forward record through governed recovery and create one exact attestation from the immutable commit metadata."], "retryable": false, "requiresHumanApproval": true, "relatedCommands": ["node atm.mjs git attest --commit <sha> --task <task-id> --actor <actor> --lane <lane-id> --provenance-kind emergency --provenance-ref git:<sha> --provenance-digest sha256:<digest> --json"], "sourceOwner": "packages/core/src/broker/historical-work-admission-attestation.ts" }, { "code": "ATM_TERMINAL_LIFECYCLE_OWNERSHIP_INCONSISTENT", "category": "task-ledger", "shortDescription": "A terminal task does not have both a released claim and released direction lock.", "commonCauses": ["A close, block, or handoff transition updated only part of the lifecycle projection.", "A stale lock survived a terminal task transition."], "remediation": ["Run tasks repair-claim or the taskflow diagnostic returned for the task.", "Do not hand-edit runtime locks or treat the task as inactive until the shared predicate accepts it."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs tasks repair-claim --task <task-id> --actor <actor> --json"], "sourceOwner": "packages/core/src/broker/historical-work-admission-attestation.ts" }, { "code": "ATM_TASKFLOW_PRECLOSE_BLOCKED", "category": "taskflow", "shortDescription": "Taskflow pre-close found one or more named readiness blockers.", "trigger": "A pre-close evaluation cannot establish every condition required before taskflow close may write.", "commonCauses": ["The task write ticket, evidence, runner, or owned-delivery state is not current.", "A named downstream gate has not produced its required artifact."], "remediation": ["Inspect each named blocker and execute that blocker's own required command.", "Do not treat a successful pre-close of a different task or a generic renewal as proof that this blocker is resolved."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs taskflow pre-close --task <task-id> --actor <actor> --json"], "statusCommand": "node atm.mjs taskflow pre-close --task <task-id> --actor <actor> --json", "registryOwner": "TASK-ERR-0015", "sourceOwner": "packages/cli/src/commands/taskflow/implementation.ts" }, { "code": "ATM_TASKFLOW_CLOSE_WRITE_NOT_READY", "category": "taskflow", "shortDescription": "Taskflow close dry-run found one or more write-readiness blockers.", "trigger": "A taskflow close dry-run cannot prove that its write path is currently safe and complete.", "commonCauses": ["A named pre-close blocker remains unresolved.", "The evidence, runner, ticket, or delivery state changed after prior validation."], "remediation": ["Inspect the named write-readiness blocker and execute only its own registry-derived recovery.", "Rerun taskflow close dry-run after the named condition is resolved."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs taskflow close --task <task-id> --actor <actor> --json"], "statusCommand": "node atm.mjs taskflow close --task <task-id> --actor <actor> --json", "registryOwner": "TASK-ERR-0015", "sourceOwner": "packages/cli/src/commands/taskflow/implementation.ts" }, { "code": "ATM_TASKFLOW_CLOSE_OWNED_DIRTY_PENDING", "category": "taskflow", "shortDescription": "Taskflow close found task-owned files that the canonical dirty authority snapshot classifies as blocking.", "trigger": "The same canonical dirty authority snapshot identifies one or more task-owned files as blocking delivery residue.", "commonCauses": ["Task-owned delivery bytes have not been committed or reconciled.", "A generated output has no applicable producer receipt or governed delivery route."], "remediation": ["Inspect the named owned blocking files and use their applicable governed delivery or reconciliation route.", "Advisory files are not blockers and must not be promoted into this code."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs taskflow pre-close --task <task-id> --actor <actor> --json"], "statusCommand": "node atm.mjs taskflow pre-close --task <task-id> --actor <actor> --json", "registryOwner": "TASK-ERR-0015", "sourceOwner": "packages/cli/src/commands/taskflow/implementation.ts" }, { "code": "ATM_TASK_DEPENDENCY_HARD_PROOF_CONTRADICTORY", "shortDescription": "A dependency edge stated a hard-causal fact and then denied it, so the declaration says two different things about the same edge.", "commonCauses": ["The edge sets outputValueChangesConsumerResult or resultUndefinedWithoutOutput to false while still declaring relation hard-causal.", "The edge declares an available substitute, which by definition means the dependency is not hard-causal.", "A non-hard relation carries a hardCausalProof block, or the negative control does not block before the producer output exists."], "remediation": ["Re-declare the edge with the relation its own proof supports; a satisfied substitute or a false fact means the edge is not hard-causal.", "Keep file and atom overlap as overlap relations and resolve them through the Broker or proposal-first at the write boundary, not as a whole-card dependency.", "Re-run node atm.mjs tasks import --from <plan-path> --dry-run --json to confirm the card imports."], "category": "task-ledger", "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs tasks import --from <plan-path> --dry-run --json", "node atm.mjs tasks status --task <task-id> --json"], "sourceOwner": "packages/cli/src/commands/tasks/dependency-gate.ts", "registryOwner": "ATM-GOV-0406" }, { "code": "ATM_TASK_DEPENDENCY_HARD_PROOF_INCOMPLETE", "shortDescription": "A card declaring hard-causal dependency semantics named a hard-causal edge without proving all six required facts.", "commonCauses": ["The edge omits producerOutput, consumerOperation, or the negative control command.", "The edge omits outputValueChangesConsumerResult or resultUndefinedWithoutOutput.", "The edge omits substitutesAvailable, so no substitute (stable interface, fixture, proposal-first, late binding, deferred compose) was ruled out."], "remediation": ["Add the missing hardCausalProof fact named by the diagnostic to the dependency edge on the task card.", "If the edge cannot prove all six facts, declare it as validation, publication, observation, soft-order, file-overlap, or atom-overlap instead; those relations never block a claim.", "Re-run node atm.mjs tasks import --from <plan-path> --dry-run --json to confirm the card imports."], "category": "task-ledger", "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs tasks import --from <plan-path> --dry-run --json", "node atm.mjs tasks status --task <task-id> --json"], "sourceOwner": "packages/cli/src/commands/tasks/dependency-gate.ts", "registryOwner": "ATM-GOV-0406" }, { "code": "ATM_TASK_DEPENDENCY_RELATION_UNKNOWN", "shortDescription": "A typed dependency edge declared a relation that is not in the canonical dependency relation set.", "commonCauses": ["The relation value is misspelled or uses an ad-hoc name.", "The card was authored against an older or invented relation vocabulary."], "remediation": ["Use one of hard-causal, validation, publication, observation, soft-order, file-overlap, atom-overlap.", "Only hard-causal can block a claim, and only when all six hard-causal facts are proven.", "Re-run node atm.mjs tasks import --from <plan-path> --dry-run --json to confirm the card imports."], "category": "task-ledger", "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs tasks import --from <plan-path> --dry-run --json", "node atm.mjs tasks status --task <task-id> --json"], "sourceOwner": "packages/cli/src/commands/tasks/dependency-gate.ts", "registryOwner": "ATM-GOV-0406" }, { "code": "ATM_TASK_DEPENDENCY_UNTYPED_IN_TYPED_CARD", "shortDescription": "A card that opted into hard-causal dependency semantics still carries a bare task-id dependency with no declared relation.", "commonCauses": ["A dependency was added as a plain string after the card declared dependencySemantics.", "A card was partially migrated to typed dependencies and one edge was missed."], "remediation": ["Type the remaining edge with an explicit relation instead of relying on the legacy status gate.", "Alternatively remove dependencySemantics from the card so every edge keeps legacy semantics consistently.", "Re-run node atm.mjs tasks import --from <plan-path> --dry-run --json to confirm the card imports."], "category": "task-ledger", "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs tasks import --from <plan-path> --dry-run --json", "node atm.mjs tasks status --task <task-id> --json"], "sourceOwner": "packages/cli/src/commands/tasks/dependency-gate.ts", "registryOwner": "ATM-GOV-0406" }], "prefixRules": [{ "prefix": "ATM_GIT_", "category": "git-governance", "shortDescription": "Git governance, staging, commit, branch queue, or push admission reported a guarded condition.", "remediation": ["Run node atm.mjs git commit-status --actor <actor> --json when the condition happened during commit or staging.", "Run node atm.mjs git admit --actor <actor> --branch <branch> --remote origin --json before protected push retries.", "Do not bypass hooks or broker conflicts unless an explicit emergency approval names the required backend permission."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs git commit-status --actor <actor> --json", "node atm.mjs git admit --actor <actor> --branch <branch> --remote origin --json"], "sourceOwner": "packages/cli/src/commands/git-governance.ts" }, { "prefix": "ATM_TASKFLOW_", "category": "taskflow", "shortDescription": "Taskflow refused or diagnosed a task open, pre-close, close, delivery, or evidence transition.", "remediation": ["Run node atm.mjs taskflow pre-close --task <task-id> --actor <actor> --json for close-readiness details.", "Inspect excludedDirtyFiles, missing validators, and commit-bundle diagnostics before retrying close.", "Use taskflow close only after real deliverables and validator evidence exist."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs taskflow pre-close --task <task-id> --actor <actor> --json", "node atm.mjs taskflow close --task <task-id> --actor <actor> --dry-run --json"], "sourceOwner": "packages/cli/src/commands/taskflow.ts" }, { "prefix": "ATM_TASK_", "category": "task-ledger", "shortDescription": "Task ledger, task scope, claim, audit, or lifecycle governance reported a guarded condition.", "remediation": ["Run node atm.mjs tasks status --task <task-id> --json for the current ledger and claim state.", "Use node atm.mjs next --prompt \"<current goal>\" --json when the correct task route is unclear.", "Do not hand-edit .atm/history task records; use the ATM task lifecycle command named by the diagnostic."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs tasks status --task <task-id> --json", "node atm.mjs next --prompt \"<current goal>\" --json"], "sourceOwner": "packages/cli/src/commands/tasks" }, { "prefix": "ATM_TEAM_", "category": "team-agents", "shortDescription": "Team Agents planning, start, validation, runtime, knowledge, or roster governance reported a guarded condition.", "remediation": ["Run node atm.mjs team status --compact --json to inspect active Team runs.", "Rerun the relevant team plan or validate command with the same --task and --recipe values.", "Coordinator remains the task lifecycle and git.write owner unless Team start --execute explicitly granted a governed execution lane."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs team status --compact --json", "node atm.mjs team validate --task <task-id> --recipe <recipe-id> --json"], "sourceOwner": "packages/cli/src/commands/team-legacy.ts" }, { "prefix": "ATM_RUNNER_", "category": "runner-mode", "shortDescription": "Frozen-runner freshness, runner-sync, or release publication governance reported a guarded condition.", "remediation": ["Read runnerMode.sourceDrift in the command output before retrying writes.", "If syncRequired is true and you own release surfaces, run ATM_RETAIN_RELEASE_ARTIFACTS=1 npm run build.", "If another actor owns release surfaces, use broker runner-sync enqueue/status and wait for the steward receipt."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["ATM_RETAIN_RELEASE_ARTIFACTS=1 npm run build", "node atm.mjs broker runner-sync status --json"], "sourceOwner": "packages/cli/src/commands/runner-mode" }, { "prefix": "ATM_BROKER_", "category": "team-broker", "shortDescription": "Team Broker, shared surface, steward, or conflict admission reported a guarded condition.", "remediation": ["Run node atm.mjs broker status --json to inspect current shared-surface ownership.", "Do not bypass broker-conflict-blocked results; obtain a conflict-resolution artifact and required approval when the diagnostic asks for one.", "Prefer waiting, steward release, or documented takeover over ad hoc staging or direct runtime edits."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs broker status --json", "node atm.mjs team status --compact --json"], "sourceOwner": "packages/core/src/broker" }, { "prefix": "ATM_NEXT_", "category": "routing", "shortDescription": "Prompt-scoped routing, claim admission, or next-action guidance reported a guarded condition.", "remediation": ["Rerun node atm.mjs next --prompt \"<current goal>\" --json and read evidence.nextAction before editing.", "If the prompt refers to a planning card, import or identify the target-repo task before claim.", "If active work exists, inspect broker and task status before widening scope."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs next --prompt \"<current goal>\" --json", "node atm.mjs tasks status --json"], "sourceOwner": "packages/cli/src/commands/next.ts" }, { "prefix": "ATM_GUARD_", "category": "guard", "shortDescription": "A local ATM guard found a policy, encoding, framework-development, or protected-state condition.", "remediation": ["Read the guard report findings and repair only the listed files or state.", "Run the same guard command again after the focused repair.", "Do not bypass guard findings unless a documented emergency approval explicitly allows that protected action."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs doctor --json", "npm run check:encoding:touched"], "sourceOwner": "packages/cli/src/commands/guard.ts" }, { "prefix": "ATM_VALIDATE_", "category": "validation", "shortDescription": "An ATM validation command found a failing invariant, stale projection, missing evidence, or governance mismatch.", "remediation": ["Read the validator output and rerun the same command after the focused repair.", "If the validator names a generated projection, run the paired --write or generator command first.", "Do not treat validation output as task evidence until the command exits successfully."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["npm run validate:quick", "node atm.mjs doctor --json"], "sourceOwner": "scripts/validate-*" }, { "prefix": "ATM_CLI_", "category": "cli-usage", "shortDescription": "The ATM CLI parser or command dispatcher rejected the command shape.", "remediation": ["Run node atm.mjs <command> --help for the supported options and examples.", "Retry with explicit --json, --actor, --task, or required positional arguments named by the diagnostic.", "Do not infer missing task or actor identity from dirty files."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["node atm.mjs --help", "node atm.mjs <command> --help"], "sourceOwner": "packages/cli/src/atm.ts" }, { "prefix": "ATM_", "category": "general", "shortDescription": "ATM reported a guarded condition that does not yet have a narrower exact entry or prefix rule.", "remediation": ["Read the command's JSON details and messages before retrying.", "Run npm run generate:error-codes to refresh the source index and locate the owning source context.", "Add an exact registry entry when the code is user-visible or appears in recurring operator reports."], "retryable": true, "requiresHumanApproval": false, "relatedCommands": ["npm run generate:error-codes", "node atm.mjs doctor --json"], "sourceOwner": "docs/governance/error-code-registry.json" }] };
@@ -0,0 +1,109 @@
1
+ import { assessEvidenceRealness, evidenceMeetsRequiredRealness, isEvidenceRealness } from './realness.js';
2
+ export function evaluateAcceptancePredicate(predicate, observation) {
3
+ const reasons = [];
4
+ if (!observation) {
5
+ return result(predicate, 'inconclusive', null, ['missing-observation']);
6
+ }
7
+ if (!isEvidenceRealness(predicate.requiredRealness)) {
8
+ return result(predicate, 'inconclusive', null, ['unknown-required-realness']);
9
+ }
10
+ const missingSources = predicate.authoritativeSources
11
+ .filter((source) => !observation.authoritativeSourceRefs.includes(source));
12
+ if (missingSources.length > 0)
13
+ reasons.push(`missing-authoritative-sources:${missingSources.join(',')}`);
14
+ if (observation.derivation.status === 'unavailable')
15
+ reasons.push('derivation-unavailable');
16
+ if (observation.derivation.rule !== predicate.derivationRule)
17
+ reasons.push('derivation-rule-mismatch');
18
+ if (observation.derivation.status === 'fail' || observation.derivation.claimSatisfied === false) {
19
+ reasons.push('derived-claim-failed');
20
+ }
21
+ if (observation.derivation.claimSatisfied === null)
22
+ reasons.push('derived-claim-missing');
23
+ const realness = assessEvidenceRealness(observation.realness);
24
+ if (!evidenceMeetsRequiredRealness(realness.verifiedRealness, predicate.requiredRealness)) {
25
+ reasons.push(`realness-below-required:${realness.verifiedRealness ?? 'unverified'}<${predicate.requiredRealness}`);
26
+ }
27
+ reasons.push(...evaluateVerifier(predicate.verifier, observation.verifier));
28
+ reasons.push(...evaluateNegativeControls(predicate.negativeControls, observation.negativeControls));
29
+ // Missing or underivable evidence stays inconclusive; only observed rejection semantics fail.
30
+ const hardFailure = reasons.some((reason) => reason === 'negative-control-accepted'
31
+ || reason === 'verifier-rejected');
32
+ if (hardFailure)
33
+ return result(predicate, 'fail', realness.verifiedRealness, reasons);
34
+ if (reasons.length > 0)
35
+ return result(predicate, predicate.missingDataVerdict, realness.verifiedRealness, reasons);
36
+ return result(predicate, 'pass', realness.verifiedRealness, []);
37
+ }
38
+ export function evaluateAcceptanceEvidenceMap(predicates, observations) {
39
+ const results = Object.keys(predicates)
40
+ .sort()
41
+ .map((key) => {
42
+ const predicate = predicates[key];
43
+ if (predicate.id !== key) {
44
+ return result(predicate, 'inconclusive', null, ['predicate-map-key-mismatch']);
45
+ }
46
+ return evaluateAcceptancePredicate(predicate, observations[key]);
47
+ });
48
+ const closureCritical = results.filter((entry) => predicates[entry.predicateId]?.closureCritical !== false);
49
+ const verdict = results.some((entry) => entry.verdict === 'fail')
50
+ ? 'fail'
51
+ : results.some((entry) => entry.verdict === 'inconclusive')
52
+ ? 'inconclusive'
53
+ : 'pass';
54
+ return {
55
+ verdict,
56
+ closureReady: closureCritical.every((entry) => entry.closureReady),
57
+ results
58
+ };
59
+ }
60
+ function evaluateVerifier(contract, observation) {
61
+ if (contract.mode !== observation.mode)
62
+ return ['verifier-mode-mismatch'];
63
+ if (!observation.verified)
64
+ return ['verifier-rejected'];
65
+ if (contract.mode === 'separate-actor') {
66
+ const producer = observation.producerActorId?.trim();
67
+ const verifier = observation.verifierActorId?.trim();
68
+ if (!producer || !verifier)
69
+ return ['separate-actor-identity-missing'];
70
+ if (producer === verifier)
71
+ return ['producer-self-verification'];
72
+ if (contract.actorId && contract.actorId !== verifier)
73
+ return ['verifier-actor-mismatch'];
74
+ return [];
75
+ }
76
+ if (!contract.policyDigest || contract.policyDigest !== observation.policyDigest) {
77
+ return ['locked-policy-digest-mismatch'];
78
+ }
79
+ if (observation.sealedBeforeEvidence !== true)
80
+ return ['locked-policy-not-presealed'];
81
+ return [];
82
+ }
83
+ function evaluateNegativeControls(contracts, observations) {
84
+ const reasons = [];
85
+ for (const contract of contracts) {
86
+ const observation = observations.find((entry) => entry.id === contract.id);
87
+ if (!observation || observation.outcome === 'unavailable') {
88
+ reasons.push(`negative-control-missing:${contract.id}`);
89
+ continue;
90
+ }
91
+ if (observation.outcome === 'accepted') {
92
+ reasons.push('negative-control-accepted');
93
+ continue;
94
+ }
95
+ if (observation.reason !== contract.expectedFailureReason) {
96
+ reasons.push(`negative-control-reason-mismatch:${contract.id}`);
97
+ }
98
+ }
99
+ return reasons;
100
+ }
101
+ function result(predicate, verdict, verifiedRealness, reasons) {
102
+ return {
103
+ predicateId: predicate.id,
104
+ verdict,
105
+ closureReady: verdict === 'pass',
106
+ verifiedRealness,
107
+ reasons: [...new Set(reasons)]
108
+ };
109
+ }
@@ -0,0 +1,22 @@
1
+ import { createHash } from 'node:crypto';
2
+ export const ACCEPTANCE_SPEC_MUTATION_SCHEMA_ID = 'atm.acceptanceSpecMutation.v1';
3
+ export function compileAcceptanceSpecMutation(i) { const n = norm(i), d = []; if (!n.authority.specId || !n.authority.specDigest || !n.authority.sealed)
4
+ d.push('authority-incomplete'); if (!n.mutationSetId || !n.sourceDigest || !n.mutations.length)
5
+ d.push('mutation-set-incomplete'); if (n.sourceDigest !== n.authority.specDigest)
6
+ d.push('source-authority-drift'); const seen = new Set(); for (const m of n.mutations) {
7
+ if (seen.has(m.mutationId))
8
+ d.push(`duplicate-mutation:${m.mutationId}`);
9
+ seen.add(m.mutationId);
10
+ if (!m.mutationId || !m.scenarioId)
11
+ d.push(`invalid-mutation:${m.mutationId}`);
12
+ if (!['negate', 'remove-step', 'swap-outcome'].includes(m.operator))
13
+ d.push(`unsupported-operator:${m.mutationId}`);
14
+ if (m.observed && m.observed !== m.expected)
15
+ d.push(`verdict-mismatch:${m.mutationId}`);
16
+ } const survivors = n.mutations.filter(m => m.expected === 'survived' || m.observed === 'survived').map(m => m.mutationId); const status = d.some(x => x.startsWith('duplicate-') || x.startsWith('invalid-') || x === 'authority-incomplete' || x === 'mutation-set-incomplete') ? 'contradictory' : d.some(x => x === 'source-authority-drift') ? 'stale' : d.some(x => x.startsWith('unsupported-') || x.startsWith('verdict-')) ? 'blocked' : 'proven'; const repairCommand = status === 'proven' ? null : 'restore the sealed acceptance specification and rerun supported mutation operators'; return { schemaId: ACCEPTANCE_SPEC_MUTATION_SCHEMA_ID, specVersion: '0.1.0', mutationSetId: n.mutationSetId, authority: n.authority, mutations: n.mutations, survivingMutationIds: survivors, status, diagnostics: d, repairCommand, provenance: n.provenance, resultDigest: digest({ mutationSetId: n.mutationSetId, authority: n.authority, mutations: n.mutations, survivingMutationIds: survivors, status, diagnostics: d, repairCommand, provenance: n.provenance }) }; }
17
+ export const createAcceptanceSpecMutation = compileAcceptanceSpecMutation;
18
+ export function replayAcceptanceSpecMutation(r) { return compileAcceptanceSpecMutation({ authority: r.authority, mutationSetId: r.mutationSetId, mutations: r.mutations, sourceDigest: r.authority.specDigest, provenance: r.provenance }); }
19
+ export function validateAcceptanceSpecMutation(r) { const x = replayAcceptanceSpecMutation(r), d = [...r.diagnostics], actual = digest({ mutationSetId: r.mutationSetId, authority: r.authority, mutations: r.mutations, survivingMutationIds: r.survivingMutationIds, status: r.status, diagnostics: r.diagnostics, repairCommand: r.repairCommand, provenance: r.provenance }); if (actual !== r.resultDigest || x.resultDigest !== r.resultDigest)
20
+ d.push('result-digest-mismatch'); return { ok: d.length === 0 && r.status === 'proven', diagnostics: [...new Set(d)] }; }
21
+ function norm(i) { return { authority: i.authority, mutationSetId: String(i.mutationSetId ?? '').trim(), sourceDigest: String(i.sourceDigest ?? '').trim(), mutations: [...(i.mutations ?? [])].map(m => ({ ...m, mutationId: String(m.mutationId ?? '').trim(), scenarioId: String(m.scenarioId ?? '').trim(), operator: String(m.operator ?? '').trim(), expected: m.expected, observed: m.observed })).sort((a, b) => a.mutationId.localeCompare(b.mutationId)), provenance: i.provenance ?? {} }; }
22
+ function digest(v) { return `sha256:${createHash('sha256').update(JSON.stringify(v, (_, x) => x && typeof x === 'object' && !Array.isArray(x) ? Object.fromEntries(Object.entries(x).sort(([a], [b]) => a.localeCompare(b))) : x)).digest('hex')}`; }
@@ -0,0 +1,91 @@
1
+ import { createHash } from 'node:crypto';
2
+ export const ADAPTER_PARITY_SCHEMA_ID = 'atm.adapterParityReceipt.v1';
3
+ export const EDITORS = ['codex', 'claude-code', 'cursor', 'copilot', 'gemini', 'antigravity'];
4
+ const digest = (value) => `sha256:${createHash('sha256').update(JSON.stringify(value)).digest('hex')}`;
5
+ const normalize = (value) => String(value ?? '').trim();
6
+ /**
7
+ * Evaluates adapter parity against one sealed projection expectation.
8
+ *
9
+ * The expected manifest digest is per adapter because output format differs by
10
+ * editor. Source and compiler digests are shared, so a green adapter cannot
11
+ * substitute its values for another adapter's projection.
12
+ */
13
+ export function compileAdapterParity(input) {
14
+ const sourceDigest = normalize(input?.sourceDigest);
15
+ const expectedCompilerDigests = Object.fromEntries(Object.entries(input?.expectedCompilerDigests ?? {}).map(([editor, compilerDigest]) => [editor, normalize(compilerDigest)]));
16
+ const expectedManifestDigests = Object.fromEntries(Object.entries(input?.expectedManifestDigests ?? {}).map(([editor, manifestDigest]) => [editor, normalize(manifestDigest)]));
17
+ const adapters = [...(input?.adapters ?? [])].map((item) => ({
18
+ editor: normalize(item.editor),
19
+ sourceDigest: normalize(item.sourceDigest),
20
+ compilerDigest: normalize(item.compilerDigest),
21
+ manifestDigest: normalize(item.manifestDigest),
22
+ reinstallSmoke: item.reinstallSmoke === true,
23
+ frozenRunnerSmoke: item.frozenRunnerSmoke === true
24
+ })).sort((left, right) => left.editor.localeCompare(right.editor));
25
+ const diagnostics = [];
26
+ const degraded = new Set();
27
+ const counts = new Map();
28
+ for (const adapter of adapters) {
29
+ counts.set(adapter.editor, (counts.get(adapter.editor) ?? 0) + 1);
30
+ if (!EDITORS.includes(adapter.editor)) {
31
+ diagnostics.push(`unknown-adapter:${adapter.editor || '<empty>'}`);
32
+ degraded.add(adapter.editor || '<empty>');
33
+ }
34
+ }
35
+ for (const editor of EDITORS) {
36
+ const matches = adapters.filter((adapter) => adapter.editor === editor);
37
+ if (matches.length === 0) {
38
+ diagnostics.push(`missing-adapter:${editor}`);
39
+ degraded.add(editor);
40
+ continue;
41
+ }
42
+ if (matches.length > 1) {
43
+ diagnostics.push(`duplicate-adapter:${editor}`);
44
+ degraded.add(editor);
45
+ continue;
46
+ }
47
+ const adapter = matches[0];
48
+ const expectedManifestDigest = expectedManifestDigests[editor];
49
+ if (!sourceDigest || adapter.sourceDigest !== sourceDigest) {
50
+ diagnostics.push(`source-digest-drift:${editor}`);
51
+ degraded.add(editor);
52
+ }
53
+ if (!expectedCompilerDigests[editor] || adapter.compilerDigest !== expectedCompilerDigests[editor]) {
54
+ diagnostics.push(`compiler-digest-drift:${editor}`);
55
+ degraded.add(editor);
56
+ }
57
+ if (!expectedManifestDigest || adapter.manifestDigest !== expectedManifestDigest) {
58
+ diagnostics.push(`manifest-digest-drift:${editor}`);
59
+ degraded.add(editor);
60
+ }
61
+ if (!adapter.reinstallSmoke) {
62
+ diagnostics.push(`reinstall-smoke-failed:${editor}`);
63
+ degraded.add(editor);
64
+ }
65
+ if (!adapter.frozenRunnerSmoke) {
66
+ diagnostics.push(`frozen-runner-smoke-failed:${editor}`);
67
+ degraded.add(editor);
68
+ }
69
+ }
70
+ for (const editor of Object.keys(expectedManifestDigests)) {
71
+ if (!EDITORS.includes(editor)) {
72
+ diagnostics.push(`unexpected-manifest-expectation:${editor}`);
73
+ }
74
+ }
75
+ if (adapters.length !== EDITORS.length)
76
+ diagnostics.push('six-editor-set-incomplete');
77
+ const status = diagnostics.length === 0 ? 'proven' : 'blocked';
78
+ return {
79
+ schemaId: ADAPTER_PARITY_SCHEMA_ID,
80
+ status,
81
+ sourceDigest,
82
+ expectedCompilerDigests,
83
+ expectedManifestDigests,
84
+ adapters,
85
+ degraded: [...degraded].sort(),
86
+ diagnostics,
87
+ rollback: { supported: true, preservesSourceEvidence: true },
88
+ resultDigest: digest({ sourceDigest, expectedCompilerDigests, expectedManifestDigests, adapters, diagnostics, status })
89
+ };
90
+ }
91
+ export const createAdapterParity = compileAdapterParity;
@@ -0,0 +1,20 @@
1
+ import { createHash } from 'node:crypto';
2
+ export const ANTI_GAMING_CONTROL_SCHEMA_ID = 'atm.antiGamingControl.v1';
3
+ export function compileAntiGamingControl(i) { const n = { ...i, seedCommitment: String(i.seedCommitment ?? '').trim(), sourceDigest: String(i.sourceDigest ?? '').trim(), controls: [...(i.controls ?? [])].map(c => ({ ...c, controlId: String(c.controlId ?? '').trim(), seed: String(c.seed ?? '').trim() })).sort((a, b) => a.controlId.localeCompare(b.controlId)) }; const d = []; if (!n.authority.authorityId || !n.authority.digest || !n.authority.sealed || !n.seedCommitment)
4
+ d.push('authority-incomplete'); if (n.sourceDigest !== n.authority.digest)
5
+ d.push('source-authority-drift'); const seen = new Set(); for (const c of n.controls) {
6
+ if (seen.has(c.controlId))
7
+ d.push(`duplicate-control:${c.controlId}`);
8
+ seen.add(c.controlId);
9
+ if (!c.controlId || !c.seed)
10
+ d.push(`invalid-control:${c.controlId}`);
11
+ if (c.observed && c.observed !== c.expected)
12
+ d.push(`control-verdict-mismatch:${c.controlId}`);
13
+ if (!c.observed)
14
+ d.push(`control-inconclusive:${c.controlId}`);
15
+ } const status = d.some(x => x.startsWith('duplicate-') || x.startsWith('invalid-') || x === 'authority-incomplete') ? 'contradictory' : d.some(x => x === 'source-authority-drift') ? 'stale' : d.length ? 'blocked' : 'proven'; return { schemaId: ANTI_GAMING_CONTROL_SCHEMA_ID, specVersion: '0.1.0', authority: n.authority, seedCommitment: n.seedCommitment, controls: n.controls, verdict: status === 'proven' ? 'pass' : 'fail-closed', status, diagnostics: d, repairCommand: status === 'proven' ? null : 'reseal seed/control authority and obtain complete hidden-control verdicts', provenance: i.provenance ?? {}, resultDigest: digest({ authority: n.authority, seedCommitment: n.seedCommitment, controls: n.controls, verdict: status === 'proven' ? 'pass' : 'fail-closed', status, diagnostics: d }) }; }
16
+ export const createAntiGamingControl = compileAntiGamingControl;
17
+ export function replayAntiGamingControl(r) { return compileAntiGamingControl({ authority: r.authority, seedCommitment: r.seedCommitment, controls: r.controls, sourceDigest: r.authority.digest, provenance: r.provenance }); }
18
+ export function validateAntiGamingControl(r) { const x = replayAntiGamingControl(r), d = [...r.diagnostics]; if (x.resultDigest !== r.resultDigest)
19
+ d.push('result-digest-mismatch'); return { ok: d.length === 0 && r.status === 'proven', diagnostics: [...new Set(d)] }; }
20
+ function digest(v) { return `sha256:${createHash('sha256').update(JSON.stringify(v, (_, x) => x && typeof x === 'object' && !Array.isArray(x) ? Object.fromEntries(Object.entries(x).sort(([a], [b]) => a.localeCompare(b))) : x)).digest('hex')}`; }
@@ -0,0 +1,17 @@
1
+ import { createHash } from 'node:crypto';
2
+ export const CAUSAL_NEIGHBORHOOD_SCHEMA_ID = 'atm.causalNeighborhoodResult.v1';
3
+ const text = (v) => String(v ?? '').trim().toLowerCase();
4
+ const digest = (v) => `sha256:${createHash('sha256').update(JSON.stringify(v)).digest('hex')}`;
5
+ export function compileCausalNeighborhood(input) { const normalized = { ...input, runId: text(input?.runId), fingerprint: text(input?.fingerprint), publicSeam: text(input?.publicSeam), impactEdges: [...(input?.impactEdges ?? [])].map(text).sort(), validatorRefs: [...(input?.validatorRefs ?? [])].map(text).sort(), changedFiles: [...(input?.changedFiles ?? [])].map(text).sort(), factors: [...new Set((input?.factors ?? []).map(text).filter(Boolean))].sort(), maxCombinations: Math.max(0, Math.floor(input?.maxCombinations ?? 0)), excludedFactors: Object.fromEntries(Object.entries(input?.excludedFactors ?? {}).map(([key, value]) => [text(key), text(value)]).sort(([a], [b]) => a.localeCompare(b))) }; const diagnostics = []; if (!normalized.authority?.sealed || !normalized.authority?.digest)
6
+ diagnostics.push({ code: 'ATM_CAUSAL_AUTHORITY_INVALID', message: 'Causal compilation requires sealed authority.', repairCommand: 'seal the causal authority before compilation' }); if (!normalized.fingerprint || !normalized.publicSeam)
7
+ diagnostics.push({ code: 'ATM_CAUSAL_INPUT_INCOMPLETE', message: 'Fingerprint and public seam are required.', repairCommand: 'restore the sealed fingerprint and public seam' }); if (normalized.maxCombinations < 1)
8
+ diagnostics.push({ code: 'ATM_CAUSAL_BOUND_INVALID', message: 'maxCombinations must be positive.', repairCommand: 'declare a positive combination bound' }); const neighborhood = [...new Set([normalized.fingerprint, normalized.publicSeam, ...normalized.impactEdges, ...normalized.validatorRefs, ...normalized.changedFiles].filter(Boolean))].sort(); const eligible = normalized.factors.filter((factor) => !normalized.excludedFactors[factor]); const combinations = []; for (const factor of eligible)
9
+ for (const second of eligible)
10
+ if (factor < second && combinations.length < normalized.maxCombinations)
11
+ combinations.push([factor, second]); const inputDigest = digest(normalized); const status = diagnostics.some((item) => item.code.includes('AUTHORITY')) ? 'stale' : diagnostics.length ? 'blocked' : 'compiled'; return { schemaId: CAUSAL_NEIGHBORHOOD_SCHEMA_ID, specVersion: '0.1.0', runId: normalized.runId, resultId: `causal_neighborhood_${inputDigest.slice(7, 23)}`, status, authority: normalized.authority, neighborhood, combinations, exclusions: normalized.excludedFactors, diagnostics, provenance: { inputDigest, combinationCount: combinations.length } }; }
12
+ export const createCausalNeighborhood = compileCausalNeighborhood;
13
+ export const generateFactorCombinations = compileCausalNeighborhood;
14
+ export function replayCausalNeighborhood(input, expected) { const result = compileCausalNeighborhood(input); return { deterministic: JSON.stringify(result) === JSON.stringify(expected), result }; }
15
+ export function validateCausalNeighborhood(result) { const diagnostics = []; if (result.schemaId !== CAUSAL_NEIGHBORHOOD_SCHEMA_ID)
16
+ diagnostics.push('schemaId'); if (!/^causal_neighborhood_[0-9a-f]{16}$/.test(result.resultId))
17
+ diagnostics.push('resultId'); return { ok: diagnostics.length === 0, diagnostics }; }