@ai-atomic-framework/cli 0.1.0-beta.4 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{atm.mjs → npm-runtime/atm.mjs} +1 -1
- package/dist/npm-runtime/index.d.ts +10 -0
- package/dist/npm-runtime/index.js +1 -0
- package/dist/{_vendor → npm-runtime/layout/_vendor}/integrations-core/templates/skills/atm-dispatch.skill.md +17 -0
- package/dist/npm-runtime/layout/schemas/atomic-spec.schema.json +460 -0
- package/dist/npm-runtime/layout/templates/atom.spec.template.json +55 -0
- package/dist/npm-runtime/layout/templates/atom.test.template.ts +16 -0
- package/dist/npm-runtime/manifest.json +465 -0
- package/dist/npm-runtime/runtime.mjs +481 -0
- package/package.json +12 -33
- package/dist/_vendor/agent-pack-claude-code/dist/index.js +0 -40
- package/dist/_vendor/agent-pack-copilot/dist/index.js +0 -30
- package/dist/_vendor/agent-pack-cursor/dist/index.js +0 -30
- package/dist/_vendor/agent-pack-gemini/dist/index.js +0 -30
- package/dist/_vendor/agent-pack-sdk/dist/experimental/index.js +0 -54
- package/dist/_vendor/agent-pack-sdk/dist/index.js +0 -40
- package/dist/_vendor/agent-pack-sdk/dist/install-manifest.js +0 -49
- package/dist/_vendor/agent-pack-windsurf/dist/index.js +0 -54
- package/dist/_vendor/atm-markdown-task-source/dist/index.js +0 -87
- package/dist/_vendor/atm-markdown-task-source/dist/task-card-parser.js +0 -1
- package/dist/_vendor/atm-markdown-task-source/dist/templates.js +0 -48
- package/dist/_vendor/core/dist/agent-execute/execute-agent-task.js +0 -295
- package/dist/_vendor/core/dist/agent-execute/execution-constants.js +0 -16
- package/dist/_vendor/core/dist/agent-execute/execution-documents.js +0 -83
- package/dist/_vendor/core/dist/agent-execute/execution-validation.js +0 -97
- package/dist/_vendor/core/dist/agent-prompt/build-agent-prompt.js +0 -191
- package/dist/_vendor/core/dist/architecture/index.js +0 -1
- package/dist/_vendor/core/dist/architecture/module-boundary.js +0 -167
- package/dist/_vendor/core/dist/batch/plan-run-journal.js +0 -181
- package/dist/_vendor/core/dist/broker/adapters/atom-map.js +0 -205
- package/dist/_vendor/core/dist/broker/adapters/batch-planner.js +0 -121
- package/dist/_vendor/core/dist/broker/adapters/cas.js +0 -26
- package/dist/_vendor/core/dist/broker/adapters/fallback-file-lock.js +0 -64
- package/dist/_vendor/core/dist/broker/adapters/index.js +0 -8
- package/dist/_vendor/core/dist/broker/adapters/json-record.js +0 -170
- package/dist/_vendor/core/dist/broker/adapters/numeric-scalar.js +0 -155
- package/dist/_vendor/core/dist/broker/adapters/registry.js +0 -79
- package/dist/_vendor/core/dist/broker/adapters/text-range.js +0 -143
- package/dist/_vendor/core/dist/broker/admission/contracts.js +0 -1
- package/dist/_vendor/core/dist/broker/admission/evaluate-broker-admission.js +0 -127
- package/dist/_vendor/core/dist/broker/agr.js +0 -22
- package/dist/_vendor/core/dist/broker/apply-evidence.js +0 -32
- package/dist/_vendor/core/dist/broker/atm-core-scope.js +0 -139
- package/dist/_vendor/core/dist/broker/boundaries/content-anchor.js +0 -60
- package/dist/_vendor/core/dist/broker/boundaries/index.js +0 -2
- package/dist/_vendor/core/dist/broker/boundaries/resolver.js +0 -76
- package/dist/_vendor/core/dist/broker/candidate-bridge.js +0 -76
- package/dist/_vendor/core/dist/broker/census/index.js +0 -40
- package/dist/_vendor/core/dist/broker/compose.js +0 -187
- package/dist/_vendor/core/dist/broker/conflict-key-overlap.js +0 -59
- package/dist/_vendor/core/dist/broker/conflict-matrix.js +0 -350
- package/dist/_vendor/core/dist/broker/cross-task-mutation-guard.js +0 -507
- package/dist/_vendor/core/dist/broker/decision/admission.js +0 -58
- package/dist/_vendor/core/dist/broker/decision/decomposition.js +0 -188
- package/dist/_vendor/core/dist/broker/decision/failure.js +0 -5
- package/dist/_vendor/core/dist/broker/decision/physical-overlap.js +0 -78
- package/dist/_vendor/core/dist/broker/decision/proposal-overlap.js +0 -173
- package/dist/_vendor/core/dist/broker/decision/surfaces.js +0 -12
- package/dist/_vendor/core/dist/broker/decision.js +0 -213
- package/dist/_vendor/core/dist/broker/failure-reason.js +0 -79
- package/dist/_vendor/core/dist/broker/foreign-generated-residue-disposition.js +0 -66
- package/dist/_vendor/core/dist/broker/freeze.js +0 -126
- package/dist/_vendor/core/dist/broker/generated-projection-steward.js +0 -213
- package/dist/_vendor/core/dist/broker/global-resource-projection.js +0 -116
- package/dist/_vendor/core/dist/broker/historical-work-admission-attestation.js +0 -173
- package/dist/_vendor/core/dist/broker/index.js +0 -44
- package/dist/_vendor/core/dist/broker/intent-enrichment.js +0 -10
- package/dist/_vendor/core/dist/broker/lifecycle/index.js +0 -149
- package/dist/_vendor/core/dist/broker/lifecycle.js +0 -242
- package/dist/_vendor/core/dist/broker/merge-plan.js +0 -83
- package/dist/_vendor/core/dist/broker/orphan-cleanup.js +0 -108
- package/dist/_vendor/core/dist/broker/parallel-admission-policy.js +0 -229
- package/dist/_vendor/core/dist/broker/patch-candidate-materializer.js +0 -126
- package/dist/_vendor/core/dist/broker/patch-envelope-atm-core.js +0 -45
- package/dist/_vendor/core/dist/broker/patch-envelope.js +0 -97
- package/dist/_vendor/core/dist/broker/policy.js +0 -89
- package/dist/_vendor/core/dist/broker/post-compose-semantic-validation-policy.js +0 -199
- package/dist/_vendor/core/dist/broker/projections/atomic-broker-projection.js +0 -142
- package/dist/_vendor/core/dist/broker/proposal.js +0 -203
- package/dist/_vendor/core/dist/broker/reconcile/broker-projection-reconcile.js +0 -57
- package/dist/_vendor/core/dist/broker/recovery.js +0 -182
- package/dist/_vendor/core/dist/broker/registry-store.js +0 -176
- package/dist/_vendor/core/dist/broker/registry.js +0 -365
- package/dist/_vendor/core/dist/broker/related-task-batching.js +0 -34
- package/dist/_vendor/core/dist/broker/replay/dashboard.js +0 -130
- package/dist/_vendor/core/dist/broker/replay/index.js +0 -164
- package/dist/_vendor/core/dist/broker/replay/lifecycle-receipt-observability.js +0 -133
- package/dist/_vendor/core/dist/broker/replay/lifecycle-receipt-types.js +0 -47
- package/dist/_vendor/core/dist/broker/replay/lifecycle-receipt-validation.js +0 -13
- package/dist/_vendor/core/dist/broker/replay/lifecycle-receipts.js +0 -261
- package/dist/_vendor/core/dist/broker/replay/runner-discrimination.js +0 -311
- package/dist/_vendor/core/dist/broker/resource-overlap.js +0 -203
- package/dist/_vendor/core/dist/broker/runner-bootstrap.js +0 -65
- package/dist/_vendor/core/dist/broker/runner-build-output-inventory.js +0 -359
- package/dist/_vendor/core/dist/broker/runner-execution-attestation.js +0 -24
- package/dist/_vendor/core/dist/broker/runner-ref-store.js +0 -65
- package/dist/_vendor/core/dist/broker/runner-registry-snapshot.js +0 -58
- package/dist/_vendor/core/dist/broker/runner-selection-verification-ports.js +0 -1
- package/dist/_vendor/core/dist/broker/runner-shadow-feedback-sink.js +0 -12
- package/dist/_vendor/core/dist/broker/runner-submit-pipeline.js +0 -67
- package/dist/_vendor/core/dist/broker/runner-sync-session.js +0 -302
- package/dist/_vendor/core/dist/broker/runner-sync-steward-queue.js +0 -436
- package/dist/_vendor/core/dist/broker/runner-version-contract.js +0 -188
- package/dist/_vendor/core/dist/broker/runner-version-registry.js +0 -163
- package/dist/_vendor/core/dist/broker/runner-version-selection-verifier.js +0 -182
- package/dist/_vendor/core/dist/broker/runner-version-state.js +0 -63
- package/dist/_vendor/core/dist/broker/semantic-adjudication/index.js +0 -1
- package/dist/_vendor/core/dist/broker/semantic-adjudication/policy.js +0 -122
- package/dist/_vendor/core/dist/broker/semantic-contract.js +0 -1
- package/dist/_vendor/core/dist/broker/shared-delivery-commit.js +0 -177
- package/dist/_vendor/core/dist/broker/shared-delivery-saga.js +0 -187
- package/dist/_vendor/core/dist/broker/shared-surface-queue.js +0 -185
- package/dist/_vendor/core/dist/broker/shared-write-provenance-policy.js +0 -252
- package/dist/_vendor/core/dist/broker/steward-transactional-apply.js +0 -369
- package/dist/_vendor/core/dist/broker/steward.js +0 -464
- package/dist/_vendor/core/dist/broker/team-lane/support.js +0 -186
- package/dist/_vendor/core/dist/broker/team-lane.js +0 -357
- package/dist/_vendor/core/dist/broker/team-wave-admission.js +0 -111
- package/dist/_vendor/core/dist/broker/team-wave-checkpoint.js +0 -52
- package/dist/_vendor/core/dist/broker/team-wave-envelope.js +0 -59
- package/dist/_vendor/core/dist/broker/team-wave-evidence.js +0 -56
- package/dist/_vendor/core/dist/broker/team-wave-planner.js +0 -142
- package/dist/_vendor/core/dist/broker/team-worker-report.js +0 -63
- package/dist/_vendor/core/dist/broker/terminal-history-entitlement.js +0 -79
- package/dist/_vendor/core/dist/broker/test-case-contribution.js +0 -142
- package/dist/_vendor/core/dist/broker/ticket-authority/index.js +0 -114
- package/dist/_vendor/core/dist/broker/ticket-policy.js +0 -65
- package/dist/_vendor/core/dist/broker/ticket-state.js +0 -106
- package/dist/_vendor/core/dist/broker/ticket-store.js +0 -476
- package/dist/_vendor/core/dist/broker/transaction-authority.js +0 -125
- package/dist/_vendor/core/dist/broker/transactional-composer.js +0 -205
- package/dist/_vendor/core/dist/broker/types.js +0 -27
- package/dist/_vendor/core/dist/broker/unified-patch.js +0 -116
- package/dist/_vendor/core/dist/broker/wave-broker-scheduler.js +0 -190
- package/dist/_vendor/core/dist/broker/wave-generated-executor.js +0 -194
- package/dist/_vendor/core/dist/broker/wave-manifest.js +0 -138
- package/dist/_vendor/core/dist/broker/work-admission-ticket.js +0 -301
- package/dist/_vendor/core/dist/broker/workspace-topology-policy.js +0 -46
- package/dist/_vendor/core/dist/broker/write-scope-policy.js +0 -220
- package/dist/_vendor/core/dist/broker/write-ticket.js +0 -61
- package/dist/_vendor/core/dist/cache/guide-cache.js +0 -234
- package/dist/_vendor/core/dist/commit-attribution/sealed-commit-bundle.js +0 -209
- package/dist/_vendor/core/dist/commit-candidate/commit-candidate-store.js +0 -96
- package/dist/_vendor/core/dist/commit-candidate/commit-candidate.js +0 -134
- package/dist/_vendor/core/dist/daemon/daemon-config.js +0 -143
- package/dist/_vendor/core/dist/daemon/daemon-watcher.js +0 -150
- package/dist/_vendor/core/dist/equivalence/run-map-equivalence.js +0 -358
- package/dist/_vendor/core/dist/error-code-registry.generated.js +0 -3
- package/dist/_vendor/core/dist/evidence/acceptance-predicate.js +0 -109
- package/dist/_vendor/core/dist/evidence/acceptance-spec-mutation.js +0 -22
- package/dist/_vendor/core/dist/evidence/adapter-parity.js +0 -91
- package/dist/_vendor/core/dist/evidence/anti-gaming-control.js +0 -20
- package/dist/_vendor/core/dist/evidence/causal-neighborhood.js +0 -17
- package/dist/_vendor/core/dist/evidence/closure-assurance-machine.js +0 -248
- package/dist/_vendor/core/dist/evidence/complexity-interface-size.js +0 -17
- package/dist/_vendor/core/dist/evidence/concurrency-fuzz-generators.js +0 -22
- package/dist/_vendor/core/dist/evidence/concurrency-schedule-obligations.js +0 -67
- package/dist/_vendor/core/dist/evidence/constraint-solver.js +0 -137
- package/dist/_vendor/core/dist/evidence/coverage-certificate.js +0 -24
- package/dist/_vendor/core/dist/evidence/coverage-ratchet-baseline.js +0 -47
- package/dist/_vendor/core/dist/evidence/coverage-semantics.js +0 -94
- package/dist/_vendor/core/dist/evidence/coverage-universe-compiler.js +0 -204
- package/dist/_vendor/core/dist/evidence/dependency-graph-bypass-gate.js +0 -98
- package/dist/_vendor/core/dist/evidence/diagnostic-loop.js +0 -145
- package/dist/_vendor/core/dist/evidence/diff-evidence.js +0 -200
- package/dist/_vendor/core/dist/evidence/evidence-freshness-certificate.js +0 -39
- package/dist/_vendor/core/dist/evidence/evidence-ledger.js +0 -49
- package/dist/_vendor/core/dist/evidence/example-branch-generators.js +0 -27
- package/dist/_vendor/core/dist/evidence/fault-fingerprint.js +0 -56
- package/dist/_vendor/core/dist/evidence/four-plan-independent-certificate.js +0 -291
- package/dist/_vendor/core/dist/evidence/gap-planning.js +0 -105
- package/dist/_vendor/core/dist/evidence/git-boundary-evidence.js +0 -61
- package/dist/_vendor/core/dist/evidence/governance-model-adapters.js +0 -43
- package/dist/_vendor/core/dist/evidence/hostile-dogfood.js +0 -136
- package/dist/_vendor/core/dist/evidence/index.js +0 -50
- package/dist/_vendor/core/dist/evidence/legal-recovery-checkpoints.js +0 -46
- package/dist/_vendor/core/dist/evidence/mutation-lineage.js +0 -321
- package/dist/_vendor/core/dist/evidence/obligation-inventory.js +0 -144
- package/dist/_vendor/core/dist/evidence/observed-source-adapters.js +0 -9
- package/dist/_vendor/core/dist/evidence/observed-source.js +0 -68
- package/dist/_vendor/core/dist/evidence/oracle-adjudication.js +0 -18
- package/dist/_vendor/core/dist/evidence/performance-resilience-ratchet.js +0 -62
- package/dist/_vendor/core/dist/evidence/phase-suite.js +0 -128
- package/dist/_vendor/core/dist/evidence/plan-closeout-dashboard.js +0 -124
- package/dist/_vendor/core/dist/evidence/property-metamorphic-generators.js +0 -103
- package/dist/_vendor/core/dist/evidence/quality-authority.js +0 -16
- package/dist/_vendor/core/dist/evidence/quality-gauntlet.js +0 -162
- package/dist/_vendor/core/dist/evidence/quality-vector.js +0 -12
- package/dist/_vendor/core/dist/evidence/realness.js +0 -116
- package/dist/_vendor/core/dist/evidence/regression-family.js +0 -69
- package/dist/_vendor/core/dist/evidence/sandboxed-test-patch.js +0 -65
- package/dist/_vendor/core/dist/evidence/security-quality-receipts.js +0 -53
- package/dist/_vendor/core/dist/evidence/shadow-comparison.js +0 -147
- package/dist/_vendor/core/dist/evidence/state-replay.js +0 -109
- package/dist/_vendor/core/dist/evidence/structural-coverage.js +0 -106
- package/dist/_vendor/core/dist/evidence/tdd-cycle.js +0 -285
- package/dist/_vendor/core/dist/evidence/test-case-catalog.js +0 -427
- package/dist/_vendor/core/dist/evidence/validation-contract.js +0 -350
- package/dist/_vendor/core/dist/evidence/validation-receipt.js +0 -315
- package/dist/_vendor/core/dist/evidence/validator-catalog-selection.js +0 -221
- package/dist/_vendor/core/dist/evidence/validator-lifecycle.js +0 -160
- package/dist/_vendor/core/dist/evidence/wave-exit-observer-input-digest.js +0 -107
- package/dist/_vendor/core/dist/evidence/wave-exit-observer-receipt-writer.js +0 -288
- package/dist/_vendor/core/dist/evidence/wave-exit-observer-receipt.js +0 -445
- package/dist/_vendor/core/dist/git/admission.js +0 -376
- package/dist/_vendor/core/dist/git/diff-mutation-request.js +0 -161
- package/dist/_vendor/core/dist/git/format-adapter-bridge.js +0 -370
- package/dist/_vendor/core/dist/git/index.js +0 -4
- package/dist/_vendor/core/dist/git/publication-delivery-slice.js +0 -180
- package/dist/_vendor/core/dist/governance/operation-cleanup-contract.js +0 -47
- package/dist/_vendor/core/dist/governance/scope-lock.js +0 -284
- package/dist/_vendor/core/dist/guidance/first-layer-command-contracts.js +0 -172
- package/dist/_vendor/core/dist/guidance/guidance-packet.js +0 -73
- package/dist/_vendor/core/dist/guidance/index.js +0 -8
- package/dist/_vendor/core/dist/guidance/intent-classifier.js +0 -495
- package/dist/_vendor/core/dist/guidance/legacy-route-plan.js +0 -317
- package/dist/_vendor/core/dist/guidance/mutation-gate.js +0 -120
- package/dist/_vendor/core/dist/guidance/project-probe.js +0 -370
- package/dist/_vendor/core/dist/guidance/route-engine.js +0 -253
- package/dist/_vendor/core/dist/guidance/session-store.js +0 -104
- package/dist/_vendor/core/dist/hash-lock/hash-lock.js +0 -89
- package/dist/_vendor/core/dist/index.js +0 -26
- package/dist/_vendor/core/dist/lane/lane-capability-provider.js +0 -242
- package/dist/_vendor/core/dist/lane/lifecycle.js +0 -62
- package/dist/_vendor/core/dist/lane/wip-ownership-transition.js +0 -134
- package/dist/_vendor/core/dist/manager/atom-generator.js +0 -455
- package/dist/_vendor/core/dist/manager/atom-space.js +0 -41
- package/dist/_vendor/core/dist/manager/id-allocator.js +0 -80
- package/dist/_vendor/core/dist/manager/map-generator/errors.js +0 -15
- package/dist/_vendor/core/dist/manager/map-generator/normalize-fields.js +0 -70
- package/dist/_vendor/core/dist/manager/map-generator/normalize-lineage.js +0 -76
- package/dist/_vendor/core/dist/manager/map-generator/runtime-support.js +0 -194
- package/dist/_vendor/core/dist/manager/map-generator/spec-support.js +0 -164
- package/dist/_vendor/core/dist/manager/map-generator/types.js +0 -1
- package/dist/_vendor/core/dist/manager/map-generator.js +0 -151
- package/dist/_vendor/core/dist/manager/map-id-allocator.js +0 -68
- package/dist/_vendor/core/dist/manager/scaffold.js +0 -144
- package/dist/_vendor/core/dist/manager/test-runner/report-support.js +0 -212
- package/dist/_vendor/core/dist/manager/test-runner.js +0 -417
- package/dist/_vendor/core/dist/maps/atom-memo-cache.js +0 -102
- package/dist/_vendor/core/dist/maps/edge-contract-runner.js +0 -133
- package/dist/_vendor/core/dist/maps/fingerprint-checker.js +0 -81
- package/dist/_vendor/core/dist/maps/map-health-report.js +0 -137
- package/dist/_vendor/core/dist/maps/mermaid-gen.js +0 -55
- package/dist/_vendor/core/dist/maps/shadow-comparator.js +0 -127
- package/dist/_vendor/core/dist/police/constants.js +0 -2
- package/dist/_vendor/core/dist/police/dependency-graph.js +0 -109
- package/dist/_vendor/core/dist/police/family.js +0 -295
- package/dist/_vendor/core/dist/police/forbidden-import-scanner.js +0 -72
- package/dist/_vendor/core/dist/police/index.js +0 -41
- package/dist/_vendor/core/dist/police/layer-boundary.js +0 -94
- package/dist/_vendor/core/dist/police/registry-consistency.js +0 -52
- package/dist/_vendor/core/dist/police/regression-compare.js +0 -197
- package/dist/_vendor/core/dist/police/rescue-family.js +0 -299
- package/dist/_vendor/core/dist/police/role-registry.js +0 -29
- package/dist/_vendor/core/dist/police/roles/adopter-neutrality.js +0 -44
- package/dist/_vendor/core/dist/police/roles/atomization.js +0 -81
- package/dist/_vendor/core/dist/police/roles/decomposition.js +0 -115
- package/dist/_vendor/core/dist/police/roles/dedup.js +0 -84
- package/dist/_vendor/core/dist/police/roles/demand.js +0 -40
- package/dist/_vendor/core/dist/police/roles/evidence-integrity.js +0 -107
- package/dist/_vendor/core/dist/police/roles/evolution.js +0 -115
- package/dist/_vendor/core/dist/police/roles/map-integration.js +0 -77
- package/dist/_vendor/core/dist/police/roles/noise-control.js +0 -45
- package/dist/_vendor/core/dist/police/roles/polymorph.js +0 -143
- package/dist/_vendor/core/dist/police/roles/quality.js +0 -85
- package/dist/_vendor/core/dist/police/roles/reversibility.js +0 -48
- package/dist/_vendor/core/dist/police/roles/rollback.js +0 -98
- package/dist/_vendor/core/dist/police/schema-validator.js +0 -84
- package/dist/_vendor/core/dist/police/shared.js +0 -103
- package/dist/_vendor/core/dist/police/suppression-keys.js +0 -22
- package/dist/_vendor/core/dist/police/types.js +0 -1
- package/dist/_vendor/core/dist/polymorph/dimension-detector.js +0 -41
- package/dist/_vendor/core/dist/polymorph/impact.js +0 -226
- package/dist/_vendor/core/dist/polymorph/template.js +0 -60
- package/dist/_vendor/core/dist/registry/atom-capsule.js +0 -147
- package/dist/_vendor/core/dist/registry/atom-ref-readability/callsites.js +0 -131
- package/dist/_vendor/core/dist/registry/atom-ref-readability/catalog.js +0 -201
- package/dist/_vendor/core/dist/registry/atom-ref-readability/files.js +0 -51
- package/dist/_vendor/core/dist/registry/atom-ref-readability/render.js +0 -84
- package/dist/_vendor/core/dist/registry/atom-ref-readability/reports.js +0 -46
- package/dist/_vendor/core/dist/registry/atom-ref-readability/types.js +0 -32
- package/dist/_vendor/core/dist/registry/atom-ref-readability.js +0 -95
- package/dist/_vendor/core/dist/registry/atom-runtime.generated.js +0 -48
- package/dist/_vendor/core/dist/registry/atom-runtime.js +0 -42
- package/dist/_vendor/core/dist/registry/capsule-registry.js +0 -119
- package/dist/_vendor/core/dist/registry/catalog-category-deriver.js +0 -60
- package/dist/_vendor/core/dist/registry/decomposition-plan.js +0 -332
- package/dist/_vendor/core/dist/registry/diff.js +0 -275
- package/dist/_vendor/core/dist/registry/map-capsule-registry.js +0 -75
- package/dist/_vendor/core/dist/registry/map-capsule.js +0 -116
- package/dist/_vendor/core/dist/registry/map-hash.js +0 -53
- package/dist/_vendor/core/dist/registry/map-registry.js +0 -81
- package/dist/_vendor/core/dist/registry/progression-policy.js +0 -229
- package/dist/_vendor/core/dist/registry/registry/document.js +0 -53
- package/dist/_vendor/core/dist/registry/registry/drift.js +0 -61
- package/dist/_vendor/core/dist/registry/registry/entry.js +0 -150
- package/dist/_vendor/core/dist/registry/registry/paths.js +0 -67
- package/dist/_vendor/core/dist/registry/registry/types.js +0 -1
- package/dist/_vendor/core/dist/registry/registry/validation.js +0 -400
- package/dist/_vendor/core/dist/registry/registry-catalog.js +0 -171
- package/dist/_vendor/core/dist/registry/registry-index.js +0 -183
- package/dist/_vendor/core/dist/registry/registry-migration.js +0 -71
- package/dist/_vendor/core/dist/registry/registry.js +0 -6
- package/dist/_vendor/core/dist/registry/replacement-lane/constants.js +0 -20
- package/dist/_vendor/core/dist/registry/replacement-lane/evidence.js +0 -162
- package/dist/_vendor/core/dist/registry/replacement-lane/support.js +0 -88
- package/dist/_vendor/core/dist/registry/replacement-lane/target.js +0 -62
- package/dist/_vendor/core/dist/registry/replacement-lane/transition.js +0 -102
- package/dist/_vendor/core/dist/registry/replacement-lane/types.js +0 -5
- package/dist/_vendor/core/dist/registry/replacement-lane/validation.js +0 -128
- package/dist/_vendor/core/dist/registry/replacement-lane.js +0 -2
- package/dist/_vendor/core/dist/registry/retirement-proof.js +0 -71
- package/dist/_vendor/core/dist/registry/rollback-map.js +0 -91
- package/dist/_vendor/core/dist/registry/rollback-proof.js +0 -66
- package/dist/_vendor/core/dist/registry/rollback-registry-helpers.js +0 -18
- package/dist/_vendor/core/dist/registry/rollback-types.js +0 -6
- package/dist/_vendor/core/dist/registry/rollback.js +0 -156
- package/dist/_vendor/core/dist/registry/semantic-fingerprint.js +0 -93
- package/dist/_vendor/core/dist/registry/status-machine.js +0 -293
- package/dist/_vendor/core/dist/registry/status-migration.js +0 -33
- package/dist/_vendor/core/dist/registry/urn.js +0 -179
- package/dist/_vendor/core/dist/rescue/atom-reloader.js +0 -96
- package/dist/_vendor/core/dist/rescue/disaster-recovery.js +0 -156
- package/dist/_vendor/core/dist/rescue/lineage-replayer.js +0 -81
- package/dist/_vendor/core/dist/rescue/registry-rebuilder.js +0 -176
- package/dist/_vendor/core/dist/routing/index.js +0 -1
- package/dist/_vendor/core/dist/routing/route-context.js +0 -150
- package/dist/_vendor/core/dist/schemas/broker-ticket.js +0 -1
- package/dist/_vendor/core/dist/schemas/command-manifest.js +0 -1
- package/dist/_vendor/core/dist/schemas/linked-surface-closure.js +0 -1
- package/dist/_vendor/core/dist/schemas/parallel-replay-scenario.js +0 -1
- package/dist/_vendor/core/dist/scope/linked-surface/index.js +0 -125
- package/dist/_vendor/core/dist/skills/engineering-change-method.js +0 -106
- package/dist/_vendor/core/dist/skills/incident-learning-candidate.js +0 -150
- package/dist/_vendor/core/dist/skills/index.js +0 -2
- package/dist/_vendor/core/dist/source-inventory/source-inventory.js +0 -64
- package/dist/_vendor/core/dist/spec/parse-spec/types.js +0 -1
- package/dist/_vendor/core/dist/spec/parse-spec.js +0 -416
- package/dist/_vendor/core/dist/team-agents/index.js +0 -1
- package/dist/_vendor/core/dist/team-agents/restricted-execution-gateway.js +0 -413
- package/dist/_vendor/core/dist/team-agents/worker-executor.js +0 -158
- package/dist/_vendor/core/dist/team-runtime/context-manifest.js +0 -27
- package/dist/_vendor/core/dist/team-runtime/contribution-manifest.js +0 -31
- package/dist/_vendor/core/dist/team-runtime/execution-orchestrator.js +0 -55
- package/dist/_vendor/core/dist/team-runtime/handoff-ledger.js +0 -153
- package/dist/_vendor/core/dist/team-runtime/nodejs-worker-adapter.js +0 -78
- package/dist/_vendor/core/dist/team-runtime/observability.js +0 -148
- package/dist/_vendor/core/dist/team-runtime/permission-broker.js +0 -247
- package/dist/_vendor/core/dist/team-runtime/pricing/cost-accounting.js +0 -97
- package/dist/_vendor/core/dist/team-runtime/provider-contract.js +0 -59
- package/dist/_vendor/core/dist/team-runtime/provider-registry.js +0 -48
- package/dist/_vendor/core/dist/team-runtime/provider-selection.js +0 -122
- package/dist/_vendor/core/dist/team-runtime/providers/anthropic.js +0 -184
- package/dist/_vendor/core/dist/team-runtime/providers/azure-openai.js +0 -235
- package/dist/_vendor/core/dist/team-runtime/providers/claude-code.js +0 -307
- package/dist/_vendor/core/dist/team-runtime/providers/gemini-direct.js +0 -107
- package/dist/_vendor/core/dist/team-runtime/providers/gemini.js +0 -154
- package/dist/_vendor/core/dist/team-runtime/providers/microsoft-foundry.js +0 -254
- package/dist/_vendor/core/dist/team-runtime/providers/openai.js +0 -394
- package/dist/_vendor/core/dist/telemetry/broker/decision-outcome.js +0 -350
- package/dist/_vendor/core/dist/telemetry/broker/index.js +0 -1
- package/dist/_vendor/core/dist/telemetry/compact-receipts.js +0 -105
- package/dist/_vendor/core/dist/telemetry/index.js +0 -353
- package/dist/_vendor/core/dist/telemetry/observation.js +0 -123
- package/dist/_vendor/core/dist/telemetry/parallel-replay/index.js +0 -61
- package/dist/_vendor/core/dist/telemetry/shared-write-coverage.js +0 -52
- package/dist/_vendor/core/dist/test-runner/map-integration.js +0 -197
- package/dist/_vendor/core/dist/test-runner/metrics-collector.js +0 -33
- package/dist/_vendor/core/dist/test-runner/propagation.js +0 -217
- package/dist/_vendor/core/dist/upgrade/behaviors/reshape.js +0 -248
- package/dist/_vendor/core/dist/upgrade/behaviors/retire.js +0 -170
- package/dist/_vendor/core/dist/upgrade/decomposition-decision.js +0 -54
- package/dist/_vendor/core/dist/upgrade/evolution-draft.js +0 -208
- package/dist/_vendor/core/dist/upgrade/map-curator/types.js +0 -1
- package/dist/_vendor/core/dist/upgrade/map-curator.js +0 -458
- package/dist/_vendor/core/dist/upgrade/map-propose.js +0 -94
- package/dist/_vendor/core/dist/upgrade/metrics-to-proposal.js +0 -126
- package/dist/_vendor/core/dist/upgrade/propose/failure-reason.js +0 -33
- package/dist/_vendor/core/dist/upgrade/propose/gates.js +0 -392
- package/dist/_vendor/core/dist/upgrade/propose/normalize-input.js +0 -183
- package/dist/_vendor/core/dist/upgrade/propose.js +0 -363
- package/dist/_vendor/core/dist/validation/ajv-factory.js +0 -38
- package/dist/_vendor/integration-claude-code/dist/index.js +0 -20
- package/dist/_vendor/integration-codex/dist/index.js +0 -20
- package/dist/_vendor/integration-copilot/dist/index.js +0 -20
- package/dist/_vendor/integration-cursor/dist/index.js +0 -20
- package/dist/_vendor/integration-gemini/dist/index.js +0 -96
- package/dist/_vendor/integrations-core/dist/compiler/charter-block.js +0 -138
- package/dist/_vendor/integrations-core/dist/compiler/compile.js +0 -285
- package/dist/_vendor/integrations-core/dist/compiler/skill-projection-parity.js +0 -148
- package/dist/_vendor/integrations-core/dist/compiler/skill-source-universe.js +0 -104
- package/dist/_vendor/integrations-core/dist/compiler/skill-templates.js +0 -354
- package/dist/_vendor/integrations-core/dist/distribution/editor-global-overlay.js +0 -230
- package/dist/_vendor/integrations-core/dist/distribution/external-skill-catalog.js +0 -332
- package/dist/_vendor/integrations-core/dist/distribution/install-profile.js +0 -71
- package/dist/_vendor/integrations-core/dist/distribution/skill-catalog.js +0 -39
- package/dist/_vendor/integrations-core/dist/distribution/skill-distribution-manager.js +0 -102
- package/dist/_vendor/integrations-core/dist/index.js +0 -30
- package/dist/_vendor/integrations-core/dist/manifest/construct.js +0 -157
- package/dist/_vendor/integrations-core/dist/manifest/schema.js +0 -43
- package/dist/_vendor/integrations-core/dist/manifest/types.js +0 -1
- package/dist/_vendor/integrations-core/dist/verify/types.js +0 -9
- package/dist/_vendor/integrations-core/dist/verify/uninstall-safety.js +0 -63
- package/dist/_vendor/integrations-core/dist/verify/verify-installed.js +0 -45
- package/dist/_vendor/language-csharp/dist/index.js +0 -16
- package/dist/_vendor/language-csharp/dist/language-csharp-adapter.js +0 -240
- package/dist/_vendor/language-js/dist/index.js +0 -16
- package/dist/_vendor/language-js/dist/language-js-adapter.js +0 -423
- package/dist/_vendor/language-python/dist/index.js +0 -19
- package/dist/_vendor/language-python/dist/language-python-adapter/planning.js +0 -197
- package/dist/_vendor/language-python/dist/language-python-adapter/profile.js +0 -199
- package/dist/_vendor/language-python/dist/language-python-adapter/scanner.js +0 -77
- package/dist/_vendor/language-python/dist/language-python-adapter/shared.js +0 -37
- package/dist/_vendor/language-python/dist/language-python-adapter/validation.js +0 -42
- package/dist/_vendor/language-python/dist/language-python-adapter.js +0 -37
- package/dist/_vendor/plugin-experience-loop/dist/index.js +0 -411
- package/dist/_vendor/plugin-governance-local/dist/bootstrap/bootstrap/bootstrap-support.js +0 -462
- package/dist/_vendor/plugin-governance-local/dist/bootstrap/bootstrap/implementation.js +0 -483
- package/dist/_vendor/plugin-governance-local/dist/bootstrap/bootstrap/root-entry-patching.js +0 -129
- package/dist/_vendor/plugin-governance-local/dist/bootstrap/bootstrap.js +0 -1
- package/dist/_vendor/plugin-governance-local/dist/bootstrap/budget.js +0 -75
- package/dist/_vendor/plugin-governance-local/dist/bootstrap/prompt.js +0 -101
- package/dist/_vendor/plugin-governance-local/dist/bootstrap/types.js +0 -1
- package/dist/_vendor/plugin-governance-local/dist/default-guards.js +0 -51
- package/dist/_vendor/plugin-governance-local/dist/index.js +0 -23
- package/dist/_vendor/plugin-governance-local/dist/layout.js +0 -22
- package/dist/_vendor/plugin-governance-local/dist/stores/helpers.js +0 -293
- package/dist/_vendor/plugin-governance-local/dist/stores.js +0 -484
- package/dist/_vendor/plugin-governance-local/dist/versioning.js +0 -68
- package/dist/_vendor/plugin-human-review/dist/decision-log.js +0 -130
- package/dist/_vendor/plugin-human-review/dist/index.js +0 -8
- package/dist/_vendor/plugin-human-review/dist/map-curator-bridge.js +0 -67
- package/dist/_vendor/plugin-human-review/dist/queue.js +0 -196
- package/dist/_vendor/plugin-review-advisory/dist/conversation-machine-findings.js +0 -191
- package/dist/_vendor/plugin-review-advisory/dist/deep-module-provider.js +0 -99
- package/dist/_vendor/plugin-review-advisory/dist/index.js +0 -306
- package/dist/_vendor/plugin-review-advisory/dist/promotion-gates.js +0 -145
- package/dist/_vendor/plugin-rule-guard/dist/index.js +0 -8
- package/dist/_vendor/plugin-rule-guard/dist/lifecycle-police.js +0 -116
- package/dist/_vendor/plugin-rule-guard/dist/neutrality-scanner.js +0 -188
- package/dist/_vendor/plugin-rule-guard/dist/rule-justification.js +0 -27
- package/dist/_vendor/plugin-sdk/dist/atomization-planning.js +0 -157
- package/dist/_vendor/plugin-sdk/dist/behavior-registry.js +0 -145
- package/dist/_vendor/plugin-sdk/dist/behavior.js +0 -6
- package/dist/_vendor/plugin-sdk/dist/capability.js +0 -1
- package/dist/_vendor/plugin-sdk/dist/conversation/conversation-evidence-extractor.js +0 -130
- package/dist/_vendor/plugin-sdk/dist/conversation/conversation-feedback-loop.js +0 -178
- package/dist/_vendor/plugin-sdk/dist/conversation/conversation-patch-draft-bridge.js +0 -246
- package/dist/_vendor/plugin-sdk/dist/conversation/conversation-review-finding.js +0 -6
- package/dist/_vendor/plugin-sdk/dist/conversation/conversation-transcript-reviewer.js +0 -177
- package/dist/_vendor/plugin-sdk/dist/conversation/index.js +0 -5
- package/dist/_vendor/plugin-sdk/dist/detector/evidence-pattern-detector.js +0 -184
- package/dist/_vendor/plugin-sdk/dist/detector/index.js +0 -1
- package/dist/_vendor/plugin-sdk/dist/effect-node.js +0 -1
- package/dist/_vendor/plugin-sdk/dist/external-task-source.js +0 -1
- package/dist/_vendor/plugin-sdk/dist/governance/index.js +0 -1
- package/dist/_vendor/plugin-sdk/dist/governance/layout.js +0 -17
- package/dist/_vendor/plugin-sdk/dist/governance/stores.js +0 -1
- package/dist/_vendor/plugin-sdk/dist/index.js +0 -12
- package/dist/_vendor/plugin-sdk/dist/injector-plugin.js +0 -1
- package/dist/_vendor/plugin-sdk/dist/language-adapter.js +0 -1
- package/dist/_vendor/plugin-sdk/dist/lifecycle.js +0 -5
- package/dist/_vendor/plugin-sdk/dist/police.js +0 -1
- package/dist/_vendor/plugin-sdk/dist/project-adapter.js +0 -1
- package/dist/_vendor/plugin-sdk/dist/test-runner.js +0 -1
- package/dist/atm.js +0 -328
- package/dist/commands/actor-registry.js +0 -359
- package/dist/commands/actor-session.js +0 -214
- package/dist/commands/actor.js +0 -342
- package/dist/commands/agent-confidence.js +0 -137
- package/dist/commands/agent-pack.js +0 -327
- package/dist/commands/atm-chart/compatibility.js +0 -287
- package/dist/commands/atm-chart/constants.js +0 -60
- package/dist/commands/atm-chart/render-verify.js +0 -276
- package/dist/commands/atm-chart/semver.js +0 -62
- package/dist/commands/atm-chart/types.js +0 -1
- package/dist/commands/atm-chart.js +0 -49
- package/dist/commands/atom-capsule.js +0 -265
- package/dist/commands/atom-ref.js +0 -71
- package/dist/commands/atomize.js +0 -338
- package/dist/commands/baseline.js +0 -285
- package/dist/commands/batch/checkpoint-commit-window-policy.js +0 -22
- package/dist/commands/batch/deliver-and-close-forwarding.js +0 -60
- package/dist/commands/batch/implementation.js +0 -861
- package/dist/commands/batch/plan-executor.js +0 -314
- package/dist/commands/batch/runner-recovery-forwarding.js +0 -47
- package/dist/commands/batch.js +0 -1
- package/dist/commands/bootstrap-entry.js +0 -32
- package/dist/commands/bootstrap.js +0 -8
- package/dist/commands/broker/batch-execute-actions.js +0 -506
- package/dist/commands/broker/broker-decision-observation.js +0 -1
- package/dist/commands/broker/census/index.js +0 -4
- package/dist/commands/broker/implementation.js +0 -59
- package/dist/commands/broker/migrate/implementation.js +0 -114
- package/dist/commands/broker/mutation-helpers.js +0 -105
- package/dist/commands/broker/parallel-admission/closure-observation.js +0 -92
- package/dist/commands/broker/parallel-admission/final-verdict.js +0 -168
- package/dist/commands/broker/parser.js +0 -495
- package/dist/commands/broker/persistence.js +0 -73
- package/dist/commands/broker/plan-batch-action.js +0 -178
- package/dist/commands/broker/policy-actions.js +0 -64
- package/dist/commands/broker/post-compose-semantic-validation.js +0 -143
- package/dist/commands/broker/proposal-actions.js +0 -149
- package/dist/commands/broker/publication-takeover-admission.js +0 -36
- package/dist/commands/broker/reconcile/implementation.js +0 -35
- package/dist/commands/broker/registry-actions.js +0 -309
- package/dist/commands/broker/replay/closure-policy.js +0 -332
- package/dist/commands/broker/replay/command-backed-matrix.js +0 -59
- package/dist/commands/broker/replay/dashboard-lifecycle-observations.js +0 -90
- package/dist/commands/broker/replay/dashboard-ticket-observations.js +0 -41
- package/dist/commands/broker/replay/dashboard-view-model.js +0 -203
- package/dist/commands/broker/replay/dashboard.js +0 -31
- package/dist/commands/broker/replay/dogfood-orchestrator.js +0 -117
- package/dist/commands/broker/replay/final-closure-reader.js +0 -181
- package/dist/commands/broker/replay/implementation.js +0 -264
- package/dist/commands/broker/replay/run-manifest.js +0 -26
- package/dist/commands/broker/replay-actions.js +0 -198
- package/dist/commands/broker/runner-sync-supersession.js +0 -6
- package/dist/commands/broker/shared-delivery-commit-transaction.js +0 -155
- package/dist/commands/broker/shared-surface.js +0 -260
- package/dist/commands/broker/steward-queues.js +0 -542
- package/dist/commands/broker/steward-runtime-actions.js +0 -295
- package/dist/commands/broker/types.js +0 -1
- package/dist/commands/broker/wave-scheduler-actions.js +0 -73
- package/dist/commands/broker-conflict-resolution.js +0 -66
- package/dist/commands/broker.js +0 -1
- package/dist/commands/budget.js +0 -108
- package/dist/commands/build-release-hygiene.js +0 -94
- package/dist/commands/cache.js +0 -235
- package/dist/commands/candidates.js +0 -509
- package/dist/commands/cleanup/index.js +0 -1
- package/dist/commands/cleanup/run.js +0 -38
- package/dist/commands/command-specs/_common.js +0 -24
- package/dist/commands/command-specs/actor.spec.js +0 -33
- package/dist/commands/command-specs/agent-pack.spec.js +0 -24
- package/dist/commands/command-specs/atm-chart.spec.js +0 -21
- package/dist/commands/command-specs/atom-capsule.spec.js +0 -30
- package/dist/commands/command-specs/atom-ref.spec.js +0 -20
- package/dist/commands/command-specs/atomize.spec.js +0 -40
- package/dist/commands/command-specs/baseline.spec.js +0 -25
- package/dist/commands/command-specs/batch.spec.js +0 -59
- package/dist/commands/command-specs/bootstrap.spec.js +0 -19
- package/dist/commands/command-specs/broker.spec.js +0 -95
- package/dist/commands/command-specs/budget.spec.js +0 -23
- package/dist/commands/command-specs/cache.spec.js +0 -24
- package/dist/commands/command-specs/candidates.spec.js +0 -24
- package/dist/commands/command-specs/cleanup.spec.js +0 -21
- package/dist/commands/command-specs/create-map.spec.js +0 -25
- package/dist/commands/command-specs/create.spec.js +0 -20
- package/dist/commands/command-specs/daemon.spec.js +0 -22
- package/dist/commands/command-specs/doctor.spec.js +0 -18
- package/dist/commands/command-specs/emergency.spec.js +0 -34
- package/dist/commands/command-specs/evidence.spec.js +0 -104
- package/dist/commands/command-specs/experience.spec.js +0 -26
- package/dist/commands/command-specs/explain.spec.js +0 -18
- package/dist/commands/command-specs/framework-mode.spec.js +0 -28
- package/dist/commands/command-specs/git-hooks.spec.js +0 -21
- package/dist/commands/command-specs/git.spec.js +0 -84
- package/dist/commands/command-specs/guard.spec.js +0 -30
- package/dist/commands/command-specs/guide.spec.js +0 -34
- package/dist/commands/command-specs/handoff.spec.js +0 -19
- package/dist/commands/command-specs/health-report.spec.js +0 -16
- package/dist/commands/command-specs/hook.spec.js +0 -22
- package/dist/commands/command-specs/identity.spec.js +0 -34
- package/dist/commands/command-specs/init.spec.js +0 -21
- package/dist/commands/command-specs/integration.spec.js +0 -43
- package/dist/commands/command-specs/internal-release.spec.js +0 -30
- package/dist/commands/command-specs/lane.spec.js +0 -32
- package/dist/commands/command-specs/lock.spec.js +0 -21
- package/dist/commands/command-specs/map-capsule.spec.js +0 -27
- package/dist/commands/command-specs/migrate.spec.js +0 -23
- package/dist/commands/command-specs/next.spec.js +0 -68
- package/dist/commands/command-specs/orient.spec.js +0 -15
- package/dist/commands/command-specs/plan.spec.js +0 -58
- package/dist/commands/command-specs/police.spec.js +0 -22
- package/dist/commands/command-specs/quickfix.spec.js +0 -21
- package/dist/commands/command-specs/registry-diff.spec.js +0 -21
- package/dist/commands/command-specs/registry.spec.js +0 -35
- package/dist/commands/command-specs/replacement-lane.spec.js +0 -25
- package/dist/commands/command-specs/rescue.spec.js +0 -29
- package/dist/commands/command-specs/residue.spec.js +0 -37
- package/dist/commands/command-specs/review-advisory.spec.js +0 -27
- package/dist/commands/command-specs/review.spec.js +0 -28
- package/dist/commands/command-specs/rollback.spec.js +0 -29
- package/dist/commands/command-specs/route.spec.js +0 -43
- package/dist/commands/command-specs/self-host-alpha.spec.js +0 -18
- package/dist/commands/command-specs/spec.spec.js +0 -17
- package/dist/commands/command-specs/start.spec.js +0 -22
- package/dist/commands/command-specs/status.spec.js +0 -16
- package/dist/commands/command-specs/task-view.spec.js +0 -18
- package/dist/commands/command-specs/taskflow.spec.js +0 -77
- package/dist/commands/command-specs/tasks.spec.js +0 -157
- package/dist/commands/command-specs/team.spec.js +0 -159
- package/dist/commands/command-specs/telemetry.spec.js +0 -55
- package/dist/commands/command-specs/test.spec.js +0 -39
- package/dist/commands/command-specs/upgrade.spec.js +0 -62
- package/dist/commands/command-specs/validate.spec.js +0 -28
- package/dist/commands/command-specs/verify.spec.js +0 -20
- package/dist/commands/command-specs/welcome.spec.js +0 -18
- package/dist/commands/command-specs/write-ticket.spec.js +0 -34
- package/dist/commands/command-specs.js +0 -150
- package/dist/commands/create-map.js +0 -285
- package/dist/commands/create.js +0 -106
- package/dist/commands/daemon.js +0 -268
- package/dist/commands/doctor/constants.js +0 -76
- package/dist/commands/doctor/lifecycle.js +0 -123
- package/dist/commands/doctor/policy.js +0 -114
- package/dist/commands/doctor/readiness.js +0 -114
- package/dist/commands/doctor/run-doctor.js +0 -356
- package/dist/commands/doctor/types.js +0 -1
- package/dist/commands/doctor/utilities.js +0 -120
- package/dist/commands/doctor.js +0 -1
- package/dist/commands/emergency/context.js +0 -21
- package/dist/commands/emergency/gate.js +0 -103
- package/dist/commands/emergency/leases.js +0 -154
- package/dist/commands/emergency/protected-override-audit.js +0 -122
- package/dist/commands/emergency/registry.js +0 -176
- package/dist/commands/emergency.js +0 -219
- package/dist/commands/evidence/bundle-io/implementation.js +0 -896
- package/dist/commands/evidence/bundle-io.js +0 -1
- package/dist/commands/evidence/command-runs.js +0 -280
- package/dist/commands/evidence/evidence-store.js +0 -94
- package/dist/commands/evidence/historical-batch-finalize.js +0 -1
- package/dist/commands/evidence/historical-batch.js +0 -1
- package/dist/commands/evidence/missing-report.js +0 -380
- package/dist/commands/evidence/observed-source-loader.js +0 -54
- package/dist/commands/evidence/shared-utils.js +0 -18
- package/dist/commands/evidence/validator-classification.js +0 -182
- package/dist/commands/evidence/verbs/add.js +0 -1
- package/dist/commands/evidence/verbs/diagnose.js +0 -190
- package/dist/commands/evidence/verbs/diff.js +0 -1
- package/dist/commands/evidence/verbs/git-head-backfill.js +0 -1
- package/dist/commands/evidence/verbs/missing.js +0 -1
- package/dist/commands/evidence/verbs/run.js +0 -287
- package/dist/commands/evidence/verbs/validators.js +0 -1
- package/dist/commands/evidence/verbs/verify.js +0 -1
- package/dist/commands/evidence/verbs/wave-exit-observer.js +0 -212
- package/dist/commands/evidence.js +0 -39
- package/dist/commands/experience.js +0 -242
- package/dist/commands/explain.js +0 -49
- package/dist/commands/first-use-notice.js +0 -54
- package/dist/commands/framework-development/build-release-hygiene-hints.js +0 -7
- package/dist/commands/framework-development/closure-packet/diagnostics.js +0 -24
- package/dist/commands/framework-development/closure-packet/schema-fragments.js +0 -1
- package/dist/commands/framework-development/closure-packet/validator-contract.js +0 -1
- package/dist/commands/framework-development/closure-packet-schema/implementation.js +0 -1134
- package/dist/commands/framework-development/closure-packet-schema.js +0 -3
- package/dist/commands/framework-development/critical-path-gate.js +0 -1
- package/dist/commands/framework-development/framework-lock-context.js +0 -35
- package/dist/commands/framework-development/framework-temp-lock-projection.js +0 -81
- package/dist/commands/framework-development/framework-temp-publication-capability.js +0 -277
- package/dist/commands/framework-development/historical-delivery-provenance.js +0 -12
- package/dist/commands/framework-development/path-classification.js +0 -34
- package/dist/commands/framework-development/runner-publication-close-handoff.js +0 -86
- package/dist/commands/framework-development/runner-publication-lifecycle.js +0 -434
- package/dist/commands/framework-development/runner-publication-receipt.js +0 -29
- package/dist/commands/framework-development/runner-sync-admission.js +0 -337
- package/dist/commands/framework-development/runner-sync-lease-health.js +0 -36
- package/dist/commands/framework-development/runner-sync-queue-ownership.js +0 -202
- package/dist/commands/framework-development/sha256-normalization.js +0 -1
- package/dist/commands/framework-development/temp-claim.js +0 -1
- package/dist/commands/framework-development.js +0 -7
- package/dist/commands/git/record-commit.js +0 -2
- package/dist/commands/git-governance/branch-commit-coordinator.js +0 -119
- package/dist/commands/git-governance/commit-bundle-filter.js +0 -37
- package/dist/commands/git-governance/commit-scope-policy.js +0 -182
- package/dist/commands/git-governance/governance-residue-policy.js +0 -18
- package/dist/commands/git-governance/implementation/admission-command.js +0 -231
- package/dist/commands/git-governance/implementation/branch-commit-window.js +0 -204
- package/dist/commands/git-governance/implementation/broker-hook-bypass-preflight.js +0 -227
- package/dist/commands/git-governance/implementation/command-router.js +0 -199
- package/dist/commands/git-governance/implementation/commit-attempt-boundary.js +0 -84
- package/dist/commands/git-governance/implementation/commit-authority-scopes.js +0 -75
- package/dist/commands/git-governance/implementation/commit-bundle-resolution.js +0 -502
- package/dist/commands/git-governance/implementation/commit-bundle-selection.js +0 -9
- package/dist/commands/git-governance/implementation/commit-candidate-preparation.js +0 -68
- package/dist/commands/git-governance/implementation/commit-command.js +0 -209
- package/dist/commands/git-governance/implementation/commit-execution.js +0 -400
- package/dist/commands/git-governance/implementation/commit-framework-branch.js +0 -105
- package/dist/commands/git-governance/implementation/commit-task-scoped-branch.js +0 -161
- package/dist/commands/git-governance/implementation/dry-run-purity.js +0 -54
- package/dist/commands/git-governance/implementation/framework-commit-claim-guard.js +0 -21
- package/dist/commands/git-governance/implementation/framework-hook-identity.js +0 -12
- package/dist/commands/git-governance/implementation/git-command-options.js +0 -258
- package/dist/commands/git-governance/implementation/git-config-port.js +0 -25
- package/dist/commands/git-governance/implementation/git-head-evidence-transaction.js +0 -275
- package/dist/commands/git-governance/implementation/git-index-lock-recovery.js +0 -41
- package/dist/commands/git-governance/implementation/git-index-transaction.js +0 -415
- package/dist/commands/git-governance/implementation/git-process-port.js +0 -261
- package/dist/commands/git-governance/implementation/hook-bypass-commit-boundary.js +0 -20
- package/dist/commands/git-governance/implementation/hook-failure-diagnostics.js +0 -59
- package/dist/commands/git-governance/implementation/identity-check-command.js +0 -403
- package/dist/commands/git-governance/implementation/index-restoration.js +0 -80
- package/dist/commands/git-governance/implementation/lease-command.js +0 -112
- package/dist/commands/git-governance/implementation/live-index-drain.js +0 -124
- package/dist/commands/git-governance/implementation/live-index-lock-retry.js +0 -72
- package/dist/commands/git-governance/implementation/live-index-reconciliation.js +0 -420
- package/dist/commands/git-governance/implementation/pathspec-argv-batching.js +0 -124
- package/dist/commands/git-governance/implementation/push-command.js +0 -485
- package/dist/commands/git-governance/implementation/record-bundle-inspection.js +0 -244
- package/dist/commands/git-governance/implementation/record-commit-command.js +0 -262
- package/dist/commands/git-governance/implementation/sealed-commit-attribution.js +0 -429
- package/dist/commands/git-governance/implementation/task-scope-staging.js +0 -395
- package/dist/commands/git-governance/implementation.js +0 -11
- package/dist/commands/git-governance/protected-governance-state.js +0 -136
- package/dist/commands/git-governance/record-commit-payload-assertion.js +0 -48
- package/dist/commands/git-governance/record-only-block-lifecycle-bridge.js +0 -227
- package/dist/commands/git-governance/task-scoped-commit-transaction.js +0 -42
- package/dist/commands/git-governance/validate-atom-file-size.js +0 -54
- package/dist/commands/git-governance/work-admission-check.js +0 -230
- package/dist/commands/git-governance.js +0 -338
- package/dist/commands/git-head-evidence.js +0 -354
- package/dist/commands/git-index-ownership.js +0 -411
- package/dist/commands/git-worktree-readiness.js +0 -127
- package/dist/commands/git.js +0 -169
- package/dist/commands/glossary-data.js +0 -52
- package/dist/commands/governance-runtime.js +0 -198
- package/dist/commands/guard.js +0 -338
- package/dist/commands/guide.js +0 -486
- package/dist/commands/handoff.js +0 -107
- package/dist/commands/hash-placeholder-audit.js +0 -57
- package/dist/commands/health-report.js +0 -30
- package/dist/commands/help.js +0 -69
- package/dist/commands/hook/commit-range-guard/args.js +0 -48
- package/dist/commands/hook/commit-range-guard/baseline.js +0 -43
- package/dist/commands/hook/commit-range-guard/implementation.js +0 -514
- package/dist/commands/hook/commit-range-guard/support.js +0 -6
- package/dist/commands/hook/commit-range-guard.js +0 -4
- package/dist/commands/hook/context-map-advisor.js +0 -210
- package/dist/commands/hook/git-hooks-installer.js +0 -156
- package/dist/commands/hook/git-index-diagnostics.js +0 -81
- package/dist/commands/hook/pre-commit/close-transaction-receipt.js +0 -110
- package/dist/commands/hook/pre-commit/committed-task-context.js +0 -37
- package/dist/commands/hook/pre-commit/cross-file-consistency.js +0 -423
- package/dist/commands/hook/pre-commit/cross-task-admission.js +0 -135
- package/dist/commands/hook/pre-commit/failure-envelope.js +0 -340
- package/dist/commands/hook/pre-commit/framework-lock-context.js +0 -9
- package/dist/commands/hook/pre-commit/framework-temp-claim-attribution.js +0 -29
- package/dist/commands/hook/pre-commit/implementation.js +0 -433
- package/dist/commands/hook/pre-commit/input-state.js +0 -208
- package/dist/commands/hook/pre-commit/residue-candidates.js +0 -15
- package/dist/commands/hook/pre-commit/scope-ownership.js +0 -380
- package/dist/commands/hook/pre-commit/support.js +0 -985
- package/dist/commands/hook/pre-commit/team-gate-findings.js +0 -19
- package/dist/commands/hook/pre-commit.js +0 -2
- package/dist/commands/hook/pre-push.js +0 -447
- package/dist/commands/hook.js +0 -65
- package/dist/commands/identity.js +0 -244
- package/dist/commands/init.js +0 -201
- package/dist/commands/integration/adapter-parity.js +0 -74
- package/dist/commands/integration/adapters.js +0 -127
- package/dist/commands/integration/bootstrap.js +0 -109
- package/dist/commands/integration/health.js +0 -253
- package/dist/commands/integration/install.js +0 -46
- package/dist/commands/integration/list.js +0 -16
- package/dist/commands/integration/run.js +0 -208
- package/dist/commands/integration/types.js +0 -1
- package/dist/commands/integration-hooks/implementation.js +0 -807
- package/dist/commands/integration-hooks.js +0 -1
- package/dist/commands/integration.js +0 -5
- package/dist/commands/internal-release/command.js +0 -113
- package/dist/commands/internal-release/constants.js +0 -5
- package/dist/commands/internal-release/options.js +0 -79
- package/dist/commands/internal-release/publication.js +0 -104
- package/dist/commands/internal-release/scratch.js +0 -72
- package/dist/commands/internal-release/support.js +0 -79
- package/dist/commands/internal-release/target-sync.js +0 -122
- package/dist/commands/internal-release/types.js +0 -1
- package/dist/commands/internal-release.js +0 -2
- package/dist/commands/lane-session/adopt-rebind.js +0 -113
- package/dist/commands/lane-session/capability-authority.js +0 -223
- package/dist/commands/lane-session/events.js +0 -102
- package/dist/commands/lane-session/mutation-authority-adapter.js +0 -96
- package/dist/commands/lane-session/mutation-status-command.js +0 -61
- package/dist/commands/lane-session/proxy-receipt.js +0 -219
- package/dist/commands/lane-session/redaction.js +0 -66
- package/dist/commands/lane-session/resolve.js +0 -114
- package/dist/commands/lane-session/store.js +0 -336
- package/dist/commands/lane.js +0 -550
- package/dist/commands/lock.js +0 -132
- package/dist/commands/map-capsule.js +0 -194
- package/dist/commands/migrate.js +0 -193
- package/dist/commands/next/active-work-summary.js +0 -88
- package/dist/commands/next/broker-queue-admission.js +0 -95
- package/dist/commands/next/channel-strategy.js +0 -172
- package/dist/commands/next/claim-admission.js +0 -254
- package/dist/commands/next/claim-cleanup.js +0 -24
- package/dist/commands/next/claim-conflict-log.js +0 -122
- package/dist/commands/next/claim-delivery-admission.js +0 -35
- package/dist/commands/next/claim-early-results.js +0 -120
- package/dist/commands/next/claim-helpers.js +0 -81
- package/dist/commands/next/claim-lane-session.js +0 -38
- package/dist/commands/next/claim-orchestration.js +0 -579
- package/dist/commands/next/claim-parallel-preflight.js +0 -368
- package/dist/commands/next/claim-readiness.js +0 -158
- package/dist/commands/next/claim-scope-expansion-admission.js +0 -22
- package/dist/commands/next/cross-repo-framework-result.js +0 -40
- package/dist/commands/next/foreign-dirty-wip-admission.js +0 -162
- package/dist/commands/next/governance-readiness.js +0 -149
- package/dist/commands/next/intent-normalizers.js +0 -212
- package/dist/commands/next/match-and-sort.js +0 -183
- package/dist/commands/next/next-action-assembly.js +0 -118
- package/dist/commands/next/oversized-extraction-admission.js +0 -79
- package/dist/commands/next/plan-scoped-preflight.js +0 -145
- package/dist/commands/next/planning-root-preference.js +0 -264
- package/dist/commands/next/playbook-projection/active-work-summary.js +0 -380
- package/dist/commands/next/playbook-projection/channel-playbook.js +0 -198
- package/dist/commands/next/playbook-projection/governance-readiness.js +0 -67
- package/dist/commands/next/playbook-projection/legacy-guidance.js +0 -151
- package/dist/commands/next/playbook-projection/message-assembly.js +0 -120
- package/dist/commands/next/playbook-projection/task-reservation-projection.js +0 -126
- package/dist/commands/next/playbook-projection/task-routing.js +0 -275
- package/dist/commands/next/playbook-projection.js +0 -7
- package/dist/commands/next/profiler.js +0 -22
- package/dist/commands/next/prompt-guidance-result.js +0 -177
- package/dist/commands/next/prompt-result-contracts.js +0 -273
- package/dist/commands/next/prompt-results.js +0 -505
- package/dist/commands/next/prompt-scope-resolution.js +0 -12
- package/dist/commands/next/proposal-lane.js +0 -122
- package/dist/commands/next/result-compaction.js +0 -120
- package/dist/commands/next/route-predicates.js +0 -112
- package/dist/commands/next/route-resolution/artifact-scope.js +0 -215
- package/dist/commands/next/route-resolution/intent.js +0 -163
- package/dist/commands/next/route-resolution/matching.js +0 -446
- package/dist/commands/next/route-resolution/pending-worktree.js +0 -257
- package/dist/commands/next/route-resolution/queue-inspection.js +0 -391
- package/dist/commands/next/route-resolution/runtime.js +0 -111
- package/dist/commands/next/route-resolution/task-card-discovery.js +0 -190
- package/dist/commands/next/route-resolution.js +0 -7
- package/dist/commands/next/runner-mode.js +0 -98
- package/dist/commands/next/runner-recovery-claim-authorization.js +0 -30
- package/dist/commands/next/task-scoped-claim-command.js +0 -24
- package/dist/commands/next/view-projections.js +0 -51
- package/dist/commands/next/worktree-hints.js +0 -11
- package/dist/commands/next-active-batch.js +0 -39
- package/dist/commands/next.js +0 -257
- package/dist/commands/orient.js +0 -22
- package/dist/commands/output-projection.js +0 -37
- package/dist/commands/plan.js +0 -458
- package/dist/commands/planning-repo-root.js +0 -312
- package/dist/commands/planning-root-resolution-cache.js +0 -0
- package/dist/commands/police.js +0 -166
- package/dist/commands/quickfix.js +0 -76
- package/dist/commands/registry/lineage-normalization.js +0 -125
- package/dist/commands/registry-diff.js +0 -145
- package/dist/commands/registry-shared.js +0 -153
- package/dist/commands/registry.js +0 -533
- package/dist/commands/replacement-lane.js +0 -82
- package/dist/commands/rescue.js +0 -306
- package/dist/commands/residue.js +0 -483
- package/dist/commands/review-advisory.js +0 -480
- package/dist/commands/review.js +0 -514
- package/dist/commands/rollback.js +0 -271
- package/dist/commands/route/files.js +0 -42
- package/dist/commands/route/freeze-patch.js +0 -141
- package/dist/commands/route/lifecycle.js +0 -206
- package/dist/commands/route/main.js +0 -10
- package/dist/commands/route/parser.js +0 -177
- package/dist/commands/route/takeover.js +0 -152
- package/dist/commands/route/types.js +0 -2
- package/dist/commands/route/validation.js +0 -77
- package/dist/commands/route.js +0 -1
- package/dist/commands/runner-sync.js +0 -2
- package/dist/commands/runtime-adapter-readiness.js +0 -150
- package/dist/commands/self-host-alpha.js +0 -293
- package/dist/commands/shared/command-manifest.js +0 -104
- package/dist/commands/shared/command-spec-output.js +0 -304
- package/dist/commands/shared/identity-normalization.js +0 -208
- package/dist/commands/shared/option-and-file-tools.js +0 -451
- package/dist/commands/shared/result-core.js +0 -315
- package/dist/commands/shared.js +0 -3
- package/dist/commands/spec-shared.js +0 -108
- package/dist/commands/spec.js +0 -13
- package/dist/commands/start.js +0 -115
- package/dist/commands/status.js +0 -214
- package/dist/commands/task-direction/active-locks.js +0 -98
- package/dist/commands/task-direction/scope-policy.js +0 -104
- package/dist/commands/task-direction/support.js +0 -204
- package/dist/commands/task-direction.js +0 -305
- package/dist/commands/task-intent.js +0 -163
- package/dist/commands/task-ledger.js +0 -149
- package/dist/commands/task-view.js +0 -146
- package/dist/commands/taskflow/auto-evidence-mapper.js +0 -147
- package/dist/commands/taskflow/branch-commit-queue-gate.js +0 -127
- package/dist/commands/taskflow/broker-gate.js +0 -253
- package/dist/commands/taskflow/close-orchestration.js +0 -511
- package/dist/commands/taskflow/close-owned-delivery-dirty-admission.js +0 -70
- package/dist/commands/taskflow/close-preflight.js +0 -403
- package/dist/commands/taskflow/close-side-effect-reconcile.js +0 -51
- package/dist/commands/taskflow/close-transaction-hook-receipt.js +0 -36
- package/dist/commands/taskflow/close-transaction-mutex.js +0 -108
- package/dist/commands/taskflow/closeback-orchestration.js +0 -204
- package/dist/commands/taskflow/commit-bundle-assembly.js +0 -613
- package/dist/commands/taskflow/commit-messages.js +0 -9
- package/dist/commands/taskflow/cross-authority-closeback.js +0 -308
- package/dist/commands/taskflow/current-task-close-evidence.js +0 -51
- package/dist/commands/taskflow/dirty-blockers.js +0 -46
- package/dist/commands/taskflow/governance-dirty-deferral.js +0 -21
- package/dist/commands/taskflow/historical-close-preflight.js +0 -426
- package/dist/commands/taskflow/host-opener-policy.js +0 -229
- package/dist/commands/taskflow/implementation.js +0 -722
- package/dist/commands/taskflow/markdown-paths.js +0 -7
- package/dist/commands/taskflow/profile-loader.js +0 -280
- package/dist/commands/taskflow/runner-publication-close-queue.js +0 -31
- package/dist/commands/taskflow/runner-recovery-forwarding.js +0 -55
- package/dist/commands/taskflow/runner-selection-evidence.js +0 -26
- package/dist/commands/taskflow/task-scope.js +0 -84
- package/dist/commands/taskflow/transaction-status.js +0 -3
- package/dist/commands/taskflow/write-readiness.js +0 -337
- package/dist/commands/taskflow.js +0 -1
- package/dist/commands/tasks/acceptance-evidence-import.js +0 -119
- package/dist/commands/tasks/canonical-task-id-boundary.js +0 -23
- package/dist/commands/tasks/claim-intent.js +0 -110
- package/dist/commands/tasks/claim-orchestrator.js +0 -559
- package/dist/commands/tasks/claim-ownership.js +0 -145
- package/dist/commands/tasks/claim-preparation.js +0 -251
- package/dist/commands/tasks/claim-repair-diagnostics.js +0 -466
- package/dist/commands/tasks/claim-work-admission.js +0 -290
- package/dist/commands/tasks/close-governance.js +0 -173
- package/dist/commands/tasks/close-helpers/broker-admission-explanation.js +0 -75
- package/dist/commands/tasks/close-helpers/close-artifact-staging.js +0 -257
- package/dist/commands/tasks/close-helpers/close-window-diagnostics.js +0 -172
- package/dist/commands/tasks/close-helpers/task-transition-writer.js +0 -108
- package/dist/commands/tasks/close-orchestrator/acceptance-evidence-gate.js +0 -84
- package/dist/commands/tasks/close-orchestrator/close-result.js +0 -35
- package/dist/commands/tasks/close-orchestrator/close-write.js +0 -200
- package/dist/commands/tasks/close-orchestrator/closure-packet.js +0 -109
- package/dist/commands/tasks/close-orchestrator/historical-context.js +0 -48
- package/dist/commands/tasks/close-orchestrator/runner-recovery.js +0 -30
- package/dist/commands/tasks/close-orchestrator.js +0 -535
- package/dist/commands/tasks/close-window-lock.js +0 -420
- package/dist/commands/tasks/close-window-residue-classification.js +0 -137
- package/dist/commands/tasks/close-window-staged-index-admission.js +0 -20
- package/dist/commands/tasks/closeout-provenance.js +0 -126
- package/dist/commands/tasks/closeout-signaling.js +0 -1
- package/dist/commands/tasks/command-dispatch.js +0 -86
- package/dist/commands/tasks/contract-import-recovery.js +0 -17
- package/dist/commands/tasks/deliver-close-orchestrator.js +0 -251
- package/dist/commands/tasks/dependency-gate.js +0 -429
- package/dist/commands/tasks/dependency-gates.js +0 -1
- package/dist/commands/tasks/generated-residue-policy.js +0 -121
- package/dist/commands/tasks/historical-delivery.js +0 -411
- package/dist/commands/tasks/import-card-contract-validation.js +0 -124
- package/dist/commands/tasks/import-orchestrator.js +0 -497
- package/dist/commands/tasks/import-planning-authority.js +0 -1
- package/dist/commands/tasks/import-task.js +0 -150
- package/dist/commands/tasks/import-validation.js +0 -70
- package/dist/commands/tasks/import-verify.js +0 -195
- package/dist/commands/tasks/is-frontmatter-scalar-helper.js +0 -9
- package/dist/commands/tasks/legacy/compat-command-map.js +0 -4
- package/dist/commands/tasks/legacy/implementation.js +0 -1176
- package/dist/commands/tasks/legacy/repair-reconcile-lane.js +0 -3
- package/dist/commands/tasks/legacy/transition-compat.js +0 -3
- package/dist/commands/tasks/legacy-impl.js +0 -2
- package/dist/commands/tasks/lifecycle-state.js +0 -151
- package/dist/commands/tasks/normalize-string-value-helper.js +0 -6
- package/dist/commands/tasks/normalize-task-document-id-helper.js +0 -7
- package/dist/commands/tasks/plan-import-boundary.js +0 -58
- package/dist/commands/tasks/planning-mirror-close-diagnostics.js +0 -95
- package/dist/commands/tasks/planning-mirror-reconcile.js +0 -82
- package/dist/commands/tasks/planning-root-authorship.js +0 -153
- package/dist/commands/tasks/planning-source-seal-policy.js +0 -125
- package/dist/commands/tasks/public-surface.js +0 -11
- package/dist/commands/tasks/read-projection.js +0 -213
- package/dist/commands/tasks/realign-plan-source.js +0 -437
- package/dist/commands/tasks/reconcile-orchestrator.js +0 -353
- package/dist/commands/tasks/release-wip-transaction.js +0 -59
- package/dist/commands/tasks/repair-claim-orchestrator.js +0 -174
- package/dist/commands/tasks/repairclose-orchestrator.js +0 -232
- package/dist/commands/tasks/residue-diagnostics.js +0 -175
- package/dist/commands/tasks/result-contracts.js +0 -43
- package/dist/commands/tasks/scope-amendment/implementation.js +0 -137
- package/dist/commands/tasks/scope-lock-diagnostics.js +0 -234
- package/dist/commands/tasks/scope-preflight/implementation.js +0 -24
- package/dist/commands/tasks/scope-queue.js +0 -13
- package/dist/commands/tasks/seal-plan-source.js +0 -98
- package/dist/commands/tasks/sha256-helper.js +0 -7
- package/dist/commands/tasks/status-triangulation.js +0 -284
- package/dist/commands/tasks/surface-invariants.js +0 -84
- package/dist/commands/tasks/takeover-evidence.js +0 -29
- package/dist/commands/tasks/task-atomization-policy-import.js +0 -139
- package/dist/commands/tasks/task-card-contract-import.js +0 -336
- package/dist/commands/tasks/task-card-writer.js +0 -13
- package/dist/commands/tasks/task-file-io-helpers.js +0 -62
- package/dist/commands/tasks/task-frontmatter-fidelity.js +0 -269
- package/dist/commands/tasks/task-git-helpers.js +0 -40
- package/dist/commands/tasks/task-import-diagnostics.js +0 -45
- package/dist/commands/tasks/task-import-status-normalization.js +0 -20
- package/dist/commands/tasks/task-import-validators.js +0 -442
- package/dist/commands/tasks/task-ledger-readers.js +0 -102
- package/dist/commands/tasks/task-markdown-helpers.js +0 -358
- package/dist/commands/tasks/task-option-parsers/close-delivery-options.js +0 -156
- package/dist/commands/tasks/task-option-parsers/create-close-options.js +0 -233
- package/dist/commands/tasks/task-option-parsers/helpers.js +0 -37
- package/dist/commands/tasks/task-option-parsers/misc-claim-options.js +0 -350
- package/dist/commands/tasks/task-option-parsers/scope-options.js +0 -211
- package/dist/commands/tasks/task-option-parsers/status-options.js +0 -43
- package/dist/commands/tasks/task-option-parsers.js +0 -6
- package/dist/commands/tasks/task-transition-helpers.js +0 -166
- package/dist/commands/tasks/task-work-admission-import.js +0 -54
- package/dist/commands/tasks/verify-orchestrator.js +0 -160
- package/dist/commands/tasks.js +0 -5
- package/dist/commands/team/admission-command.js +0 -7
- package/dist/commands/team/admission.js +0 -141
- package/dist/commands/team/command-registry.js +0 -26
- package/dist/commands/team/composer.js +0 -78
- package/dist/commands/team/cost-command.js +0 -27
- package/dist/commands/team/efficiency-controller.js +0 -198
- package/dist/commands/team/execute-command.js +0 -6
- package/dist/commands/team/growth-contract.js +0 -128
- package/dist/commands/team/legacy/broker-observability.js +0 -366
- package/dist/commands/team/legacy/command-runner.js +0 -348
- package/dist/commands/team/legacy/crew-decision-policy.js +0 -418
- package/dist/commands/team/legacy/handoff-handler.js +0 -60
- package/dist/commands/team/legacy/implementer-selector-policy.js +0 -209
- package/dist/commands/team/legacy/lifecycle-handler.js +0 -163
- package/dist/commands/team/legacy/patrol-contracts.js +0 -212
- package/dist/commands/team/legacy/patrol-handler.js +0 -213
- package/dist/commands/team/legacy/permission-lease-policy.js +0 -386
- package/dist/commands/team/legacy/plan-orchestration.js +0 -360
- package/dist/commands/team/legacy/planning-context.js +0 -314
- package/dist/commands/team/legacy/provider-execution.js +0 -337
- package/dist/commands/team/legacy/runtime-contracts.js +0 -241
- package/dist/commands/team/legacy/runtime-governance.js +0 -419
- package/dist/commands/team/legacy/team-run-runtime.js +0 -186
- package/dist/commands/team/legacy/team-run-store.js +0 -160
- package/dist/commands/team/legacy/team-utils.js +0 -102
- package/dist/commands/team/legacy/types.js +0 -150
- package/dist/commands/team/plan-command.js +0 -4
- package/dist/commands/team/proposal-workspace.js +0 -139
- package/dist/commands/team/provider-preflight.js +0 -57
- package/dist/commands/team/report-command.js +0 -14
- package/dist/commands/team/role-provider-resolution.js +0 -46
- package/dist/commands/team/role-skill-packs.js +0 -238
- package/dist/commands/team/runtime-bridges.js +0 -81
- package/dist/commands/team/runtime-tier-contract.js +0 -32
- package/dist/commands/team/scheduler.js +0 -165
- package/dist/commands/team/shadow-plan.js +0 -77
- package/dist/commands/team/shadow-workspace.js +0 -1
- package/dist/commands/team/start-command.js +0 -4
- package/dist/commands/team/status-command.js +0 -4
- package/dist/commands/team/team-execution-lane.js +0 -66
- package/dist/commands/team/team-route-map.js +0 -55
- package/dist/commands/team-knowledge/actions.js +0 -210
- package/dist/commands/team-knowledge/main.js +0 -36
- package/dist/commands/team-knowledge/metadata.js +0 -120
- package/dist/commands/team-knowledge/permission.js +0 -34
- package/dist/commands/team-knowledge/ranking.js +0 -186
- package/dist/commands/team-knowledge/runtime-utils.js +0 -105
- package/dist/commands/team-knowledge/spec.js +0 -30
- package/dist/commands/team-knowledge/summary.js +0 -55
- package/dist/commands/team-knowledge/text-utils.js +0 -29
- package/dist/commands/team-knowledge/types.js +0 -1
- package/dist/commands/team-knowledge.js +0 -2
- package/dist/commands/team-legacy.js +0 -101
- package/dist/commands/team-runtime-cleanup.js +0 -56
- package/dist/commands/team-runtime-gates.js +0 -198
- package/dist/commands/team-wave.js +0 -387
- package/dist/commands/team.js +0 -2
- package/dist/commands/telemetry.js +0 -149
- package/dist/commands/test-catalog.js +0 -354
- package/dist/commands/test.js +0 -301
- package/dist/commands/upgrade/canary.js +0 -45
- package/dist/commands/upgrade/experimental.js +0 -97
- package/dist/commands/upgrade/next-action-hint.js +0 -56
- package/dist/commands/upgrade/path-helpers.js +0 -66
- package/dist/commands/upgrade/proposal/context-budget.js +0 -187
- package/dist/commands/upgrade/proposal/guided-legacy.js +0 -90
- package/dist/commands/upgrade/proposal/inputs.js +0 -86
- package/dist/commands/upgrade/proposal/parse.js +0 -221
- package/dist/commands/upgrade/proposal/types.js +0 -1
- package/dist/commands/upgrade/proposal.js +0 -4
- package/dist/commands/upgrade/safe-upgrade.js +0 -339
- package/dist/commands/upgrade/scan.js +0 -76
- package/dist/commands/upgrade-map-propose.js +0 -64
- package/dist/commands/upgrade.js +0 -106
- package/dist/commands/validate.js +0 -429
- package/dist/commands/validation-obligations.js +0 -142
- package/dist/commands/verify.js +0 -151
- package/dist/commands/welcome.js +0 -180
- package/dist/commands/work-channels.js +0 -493
- package/dist/commands/write-ticket.js +0 -226
- package/dist/config/env-registry.js +0 -88
- package/dist/index.js +0 -350
- package/dist/migration/codemod-registry.js +0 -82
- package/dist/plugin-registry.js +0 -49
- package/dist/startup-integrity.js +0 -88
- package/dist/startup-known-bad.js +0 -218
- package/dist/telemetry/index.js +0 -78
- package/dist/temp-workspace.js +0 -49
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/agent-pack-claude-code/templates/atm-bootstrap.md.tmpl +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/agent-pack-claude-code/templates/atm-evidence.md.tmpl +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/agent-pack-claude-code/templates/atm-handoff.md.tmpl +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/agent-pack-claude-code/templates/atm-lock.md.tmpl +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/agent-pack-claude-code/templates/atm-next.md.tmpl +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/agent-pack-claude-code/templates/atm-verify.md.tmpl +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/atm-markdown-task-source/templates/aao-l2-split-template.md +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/integrations-core/templates/skills/atm-atom-map-refactor.skill.md +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/integrations-core/templates/skills/atm-bug-backlog.skill.md +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/integrations-core/templates/skills/atm-create.skill.md +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/integrations-core/templates/skills/atm-deep-module-refactor.files/references/deepening.md +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/integrations-core/templates/skills/atm-deep-module-refactor.files/references/design-it-twice.md +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/integrations-core/templates/skills/atm-deep-module-refactor.skill.md +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/integrations-core/templates/skills/atm-diagnostic-loop.skill.md +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/integrations-core/templates/skills/atm-error-code-resolver.skill.md +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/integrations-core/templates/skills/atm-evidence.skill.md +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/integrations-core/templates/skills/atm-framework-quickfix.skill.md +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/integrations-core/templates/skills/atm-framework-temp-claim.skill.md +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/integrations-core/templates/skills/atm-git-pathspec-emergency-commit.skill.md +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/integrations-core/templates/skills/atm-governance-router.files/references/boundary-confusion.md +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/integrations-core/templates/skills/atm-governance-router.files/references/entry-friction.md +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/integrations-core/templates/skills/atm-governance-router.files/references/fallback-design.md +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/integrations-core/templates/skills/atm-governance-router.files/references/index.md +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/integrations-core/templates/skills/atm-governance-router.files/references/learning-loop.md +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/integrations-core/templates/skills/atm-governance-router.files/references/route-interpretation.md +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/integrations-core/templates/skills/atm-governance-router.files/references/tooling-mismatch.md +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/integrations-core/templates/skills/atm-governance-router.skill.md +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/integrations-core/templates/skills/atm-handoff.skill.md +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/integrations-core/templates/skills/atm-internal-build-sync.skill.md +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/integrations-core/templates/skills/atm-lock.skill.md +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/integrations-core/templates/skills/atm-memory-consolidate.skill.md +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/integrations-core/templates/skills/atm-minimal-patch-rebuilder.skill.md +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/integrations-core/templates/skills/atm-next.skill.md +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/integrations-core/templates/skills/atm-orient.skill.md +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/integrations-core/templates/skills/atm-plan-authoring.skill.md +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/integrations-core/templates/skills/atm-residue-cleanup.skill.md +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/integrations-core/templates/skills/atm-task-card-authoring.skill.md +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/integrations-core/templates/skills/atm-task-intent-resolver.skill.md +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/integrations-core/templates/skills/atm-upgrade-scan.skill.md +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/integrations-core/templates/skills/mailbox-worker-execution.skill.md +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/integrations-core/templates/skills/skill.schema.json +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/plugin-experience-loop/schemas/memory-nudge.schema.json +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/plugin-experience-loop/schemas/skill-amendment.schema.json +0 -0
- /package/dist/{_vendor → npm-runtime/layout/_vendor}/plugin-experience-loop/schemas/skill-candidate.schema.json +0 -0
- /package/dist/{migration → npm-runtime/layout/migration}/migration-index.json +0 -0
- /package/dist/{templates → npm-runtime/layout/templates}/root-drop/.atm/charter/atm-first-principles.template.md +0 -0
- /package/dist/{templates → npm-runtime/layout/templates}/root-drop/.atm/charter/atomic-charter.template.md +0 -0
- /package/dist/{templates → npm-runtime/layout/templates}/root-drop/.atm/charter/charter-invariants.template.json +0 -0
- /package/dist/{templates → npm-runtime/layout/templates}/root-drop/.atm/context/INITIAL_SUMMARY.md +0 -0
- /package/dist/{templates → npm-runtime/layout/templates}/root-drop/.atm/profile/default.md +0 -0
- /package/dist/{templates → npm-runtime/layout/templates}/root-drop/.atm/scripts/WRAPPER_DEDUP_PLAN.md +0 -0
- /package/dist/{templates → npm-runtime/layout/templates}/root-drop/.atm/scripts/ps/atm-create.ps1 +0 -0
- /package/dist/{templates → npm-runtime/layout/templates}/root-drop/.atm/scripts/ps/atm-evidence.ps1 +0 -0
- /package/dist/{templates → npm-runtime/layout/templates}/root-drop/.atm/scripts/ps/atm-handoff.ps1 +0 -0
- /package/dist/{templates → npm-runtime/layout/templates}/root-drop/.atm/scripts/ps/atm-lock.ps1 +0 -0
- /package/dist/{templates → npm-runtime/layout/templates}/root-drop/.atm/scripts/ps/atm-next.ps1 +0 -0
- /package/dist/{templates → npm-runtime/layout/templates}/root-drop/.atm/scripts/ps/atm-orient.ps1 +0 -0
- /package/dist/{templates → npm-runtime/layout/templates}/root-drop/.atm/scripts/ps/atm-upgrade-scan.ps1 +0 -0
- /package/dist/{templates → npm-runtime/layout/templates}/root-drop/.atm/scripts/sh/atm-create.sh +0 -0
- /package/dist/{templates → npm-runtime/layout/templates}/root-drop/.atm/scripts/sh/atm-evidence.sh +0 -0
- /package/dist/{templates → npm-runtime/layout/templates}/root-drop/.atm/scripts/sh/atm-handoff.sh +0 -0
- /package/dist/{templates → npm-runtime/layout/templates}/root-drop/.atm/scripts/sh/atm-lock.sh +0 -0
- /package/dist/{templates → npm-runtime/layout/templates}/root-drop/.atm/scripts/sh/atm-next.sh +0 -0
- /package/dist/{templates → npm-runtime/layout/templates}/root-drop/.atm/scripts/sh/atm-orient.sh +0 -0
- /package/dist/{templates → npm-runtime/layout/templates}/root-drop/.atm/scripts/sh/atm-upgrade-scan.sh +0 -0
- /package/dist/{templates → npm-runtime/layout/templates}/root-drop/.atm/scripts/wrappers.json +0 -0
- /package/dist/{templates → npm-runtime/layout/templates}/root-drop/AGENTS.md +0 -0
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
export * from './acceptance-predicate.js';
|
|
2
|
-
export * from './closure-assurance-machine.js';
|
|
3
|
-
export * from './coverage-semantics.js';
|
|
4
|
-
export * from './coverage-universe-compiler.js';
|
|
5
|
-
export * from './structural-coverage.js';
|
|
6
|
-
export * from './diff-evidence.js';
|
|
7
|
-
export * from './evidence-ledger.js';
|
|
8
|
-
export * from './diagnostic-loop.js';
|
|
9
|
-
export * from './git-boundary-evidence.js';
|
|
10
|
-
export * from './mutation-lineage.js';
|
|
11
|
-
export * from './obligation-inventory.js';
|
|
12
|
-
export * from './quality-gauntlet.js';
|
|
13
|
-
export * from './realness.js';
|
|
14
|
-
export * from './observed-source.js';
|
|
15
|
-
export * from './observed-source-adapters.js';
|
|
16
|
-
export * from './tdd-cycle.js';
|
|
17
|
-
export * from './validation-receipt.js';
|
|
18
|
-
export * from './validator-catalog-selection.js';
|
|
19
|
-
export * from './validator-lifecycle.js';
|
|
20
|
-
export * from './plan-closeout-dashboard.js';
|
|
21
|
-
export * from './constraint-solver.js';
|
|
22
|
-
export * from './concurrency-schedule-obligations.js';
|
|
23
|
-
export * from './governance-model-adapters.js';
|
|
24
|
-
export * from './fault-fingerprint.js';
|
|
25
|
-
export * from './causal-neighborhood.js';
|
|
26
|
-
export * from './legal-recovery-checkpoints.js';
|
|
27
|
-
export * from './coverage-ratchet-baseline.js';
|
|
28
|
-
export * from './performance-resilience-ratchet.js';
|
|
29
|
-
export * from './regression-family.js';
|
|
30
|
-
export * from './evidence-freshness-certificate.js';
|
|
31
|
-
export * from './quality-authority.js';
|
|
32
|
-
export * from './security-quality-receipts.js';
|
|
33
|
-
export * from './complexity-interface-size.js';
|
|
34
|
-
export * from './dependency-graph-bypass-gate.js';
|
|
35
|
-
export * from './gap-planning.js';
|
|
36
|
-
export * from './sandboxed-test-patch.js';
|
|
37
|
-
export * from './example-branch-generators.js';
|
|
38
|
-
export * from './property-metamorphic-generators.js';
|
|
39
|
-
export * from './concurrency-fuzz-generators.js';
|
|
40
|
-
export * from './acceptance-spec-mutation.js';
|
|
41
|
-
export * from './anti-gaming-control.js';
|
|
42
|
-
export * from './oracle-adjudication.js';
|
|
43
|
-
export * from './coverage-certificate.js';
|
|
44
|
-
export * from './quality-vector.js';
|
|
45
|
-
export * from './state-replay.js';
|
|
46
|
-
export * from './shadow-comparison.js';
|
|
47
|
-
export * from './adapter-parity.js';
|
|
48
|
-
export * from './hostile-dogfood.js';
|
|
49
|
-
export * from './four-plan-independent-certificate.js';
|
|
50
|
-
export * from './wave-exit-observer-receipt.js';
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { createHash } from 'node:crypto';
|
|
2
|
-
export const LEGAL_RECOVERY_CHECKPOINTS_SCHEMA_ID = 'atm.legalRecoveryCheckpointsResult.v1';
|
|
3
|
-
const PHASES = new Set(['check-in', 'close', 'phase', 'release']);
|
|
4
|
-
const text = (value) => String(value ?? '').trim();
|
|
5
|
-
const digest = (value) => `sha256:${createHash('sha256').update(JSON.stringify(value)).digest('hex')}`;
|
|
6
|
-
const error = (code, message, ref, repairCommand = null) => ({ code, severity: 'error', message, ref, repairCommand });
|
|
7
|
-
export function projectLegalRecoveryCheckpoints(input) {
|
|
8
|
-
const normalized = { runId: text(input?.runId), authority: { authorityId: text(input?.authority?.authorityId), sealed: input?.authority?.sealed === true, digest: text(input?.authority?.digest), epoch: input?.authority?.epoch == null ? null : text(input.authority.epoch) }, checkpoints: [...(input?.checkpoints ?? [])].map((checkpoint) => ({ checkpointId: text(checkpoint.checkpointId), phase: text(checkpoint.phase).toLowerCase(), state: text(checkpoint.state).toLowerCase(), predecessorIds: [...(checkpoint.predecessorIds ?? [])].map(text).sort(), payload: checkpoint.payload ?? {} })).sort((a, b) => a.checkpointId.localeCompare(b.checkpointId)) };
|
|
9
|
-
const diagnostics = [];
|
|
10
|
-
if (!normalized.runId)
|
|
11
|
-
diagnostics.push(error('ATM_RECOVERY_RUN_ID_MISSING', 'runId is required.', 'runId'));
|
|
12
|
-
if (!normalized.authority.authorityId || !normalized.authority.digest)
|
|
13
|
-
diagnostics.push(error('ATM_RECOVERY_AUTHORITY_INCOMPLETE', 'A sealed authority id and digest are required.', 'authority', 'restore and seal the recovery authority'));
|
|
14
|
-
if (!normalized.authority.sealed)
|
|
15
|
-
diagnostics.push(error('ATM_RECOVERY_AUTHORITY_UNSEALED', 'Recovery projections require a sealed authority.', 'authority.sealed', 'seal the recovery authority before projection'));
|
|
16
|
-
if (!normalized.checkpoints.length)
|
|
17
|
-
diagnostics.push(error('ATM_RECOVERY_INPUT_EMPTY', 'At least one recovery checkpoint is required.', 'checkpoints', 'restore the deterministic recovery fixture'));
|
|
18
|
-
const ids = new Set();
|
|
19
|
-
const projections = [];
|
|
20
|
-
for (const checkpoint of normalized.checkpoints) {
|
|
21
|
-
if (!checkpoint.checkpointId || ids.has(checkpoint.checkpointId))
|
|
22
|
-
diagnostics.push(error('ATM_RECOVERY_CHECKPOINT_DUPLICATE', `Duplicate or missing checkpoint id ${checkpoint.checkpointId}.`, checkpoint.checkpointId || null, 'deduplicate checkpoint authority'));
|
|
23
|
-
ids.add(checkpoint.checkpointId);
|
|
24
|
-
if (!PHASES.has(checkpoint.phase)) {
|
|
25
|
-
diagnostics.push(error('ATM_RECOVERY_PHASE_UNSUPPORTED', `Unsupported recovery phase ${checkpoint.phase}.`, checkpoint.checkpointId, 'use check-in, close, phase, or release'));
|
|
26
|
-
continue;
|
|
27
|
-
}
|
|
28
|
-
if (!checkpoint.state)
|
|
29
|
-
diagnostics.push(error('ATM_RECOVERY_STATE_INCOMPLETE', `Checkpoint ${checkpoint.checkpointId} has no state.`, checkpoint.checkpointId, 'restore checkpoint state from sealed authority'));
|
|
30
|
-
projections.push({ projectionId: `recovery_${digest(checkpoint).slice(7, 23)}`, checkpointId: checkpoint.checkpointId, phase: checkpoint.phase, canonicalState: checkpoint.state, predecessorIds: checkpoint.predecessorIds, payload: checkpoint.payload });
|
|
31
|
-
}
|
|
32
|
-
const projectionIds = new Set(projections.map((projection) => projection.checkpointId));
|
|
33
|
-
for (const projection of projections)
|
|
34
|
-
for (const predecessorId of projection.predecessorIds)
|
|
35
|
-
if (!projectionIds.has(predecessorId))
|
|
36
|
-
diagnostics.push(error('ATM_RECOVERY_PREDECESSOR_MISSING', `Predecessor ${predecessorId} is not in the sealed checkpoint set.`, projection.checkpointId, 'restore the complete predecessor chain'));
|
|
37
|
-
const inputDigest = digest(normalized);
|
|
38
|
-
const status = diagnostics.some((entry) => entry.code.includes('AUTHORITY')) ? 'stale' : diagnostics.some((entry) => entry.code.includes('DUPLICATE') || entry.code.includes('PREDECESSOR')) ? 'contradictory' : diagnostics.some((entry) => entry.severity === 'error') ? 'blocked' : 'projected';
|
|
39
|
-
return { schemaId: LEGAL_RECOVERY_CHECKPOINTS_SCHEMA_ID, specVersion: '0.1.0', runId: normalized.runId, resultId: `legal_recovery_${inputDigest.slice(7, 23)}`, authority: normalized.authority, status, projections: projections.sort((a, b) => a.projectionId.localeCompare(b.projectionId)), diagnostics, provenance: { inputDigest, checkpointCount: normalized.checkpoints.length, phases: [...new Set(projections.map((projection) => projection.phase))].sort() } };
|
|
40
|
-
}
|
|
41
|
-
export const createLegalRecoveryCheckpoints = projectLegalRecoveryCheckpoints;
|
|
42
|
-
export function replayLegalRecoveryCheckpoints(input, expected) { const result = projectLegalRecoveryCheckpoints(input); return { deterministic: JSON.stringify(result) === JSON.stringify(expected), result }; }
|
|
43
|
-
export function validateLegalRecoveryCheckpoints(result) { const diagnostics = []; if (result.schemaId !== LEGAL_RECOVERY_CHECKPOINTS_SCHEMA_ID)
|
|
44
|
-
diagnostics.push(error('ATM_RECOVERY_SCHEMA_INVALID', 'Unexpected recovery schema id.', 'schemaId')); if (!/^legal_recovery_[0-9a-f]{16}$/.test(result.resultId))
|
|
45
|
-
diagnostics.push(error('ATM_RECOVERY_RESULT_ID_INVALID', 'resultId must derive from input digest.', 'resultId')); if (result.status === 'projected' && result.diagnostics.some((entry) => entry.severity === 'error'))
|
|
46
|
-
diagnostics.push(error('ATM_RECOVERY_FALSE_GREEN', 'Projected result cannot contain error diagnostics.', 'status')); return { ok: diagnostics.length === 0, diagnostics }; }
|
|
@@ -1,321 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Mutation adapter, replayable lineage, and equivalence governance.
|
|
3
|
-
*
|
|
4
|
-
* Plan 4.0 mutation evidence must come from a pinned adapter that only runs
|
|
5
|
-
* inside an ATM-GOV-0285-selected probe window. Observations become replayable
|
|
6
|
-
* lineage records (mutant id, killed/survived, score bounds, seed/digest) and
|
|
7
|
-
* survivors are classified as equivalent or non-equivalent.
|
|
8
|
-
*
|
|
9
|
-
* Raw adapter "pass" never authorizes close. Unsupported or inconclusive
|
|
10
|
-
* adapters fail closed. Downstream family matching (ATM-GOV-0293) may consume
|
|
11
|
-
* lineage as supporting evidence only — never as the sole matching authority.
|
|
12
|
-
*
|
|
13
|
-
* Pure and I/O-free: callers supply the probe window and observations.
|
|
14
|
-
*/
|
|
15
|
-
import { createHash } from 'node:crypto';
|
|
16
|
-
export const MUTATION_ADAPTER_SCHEMA_ID = 'atm.mutationAdapter.v1';
|
|
17
|
-
export const MUTATION_LINEAGE_SCHEMA_ID = 'atm.mutationLineage.v1';
|
|
18
|
-
export const MUTATION_EQUIVALENCE_GOVERNANCE_SCHEMA_ID = 'atm.mutationEquivalenceGovernance.v1';
|
|
19
|
-
export const MUTATION_FAMILY_MATCH_EVIDENCE_SCHEMA_ID = 'atm.mutationLineageFamilyMatchEvidence.v1';
|
|
20
|
-
export const PINNED_IN_PROCESS_MUTATION_ADAPTER_ID = 'atm.mutation.adapter.inProcessFixture.v1';
|
|
21
|
-
export const ATM_MUTATION_ADAPTER_UNSUPPORTED = 'ATM_MUTATION_ADAPTER_UNSUPPORTED';
|
|
22
|
-
export const ATM_MUTATION_ADAPTER_INCONCLUSIVE = 'ATM_MUTATION_ADAPTER_INCONCLUSIVE';
|
|
23
|
-
export const ATM_MUTATION_PROBE_WINDOW_VIOLATION = 'ATM_MUTATION_PROBE_WINDOW_VIOLATION';
|
|
24
|
-
export const ATM_MUTATION_LINEAGE_REPLAY_MISMATCH = 'ATM_MUTATION_LINEAGE_REPLAY_MISMATCH';
|
|
25
|
-
export function createPinnedInProcessMutationAdapter(input) {
|
|
26
|
-
const pin = text(input.pin);
|
|
27
|
-
if (!pin) {
|
|
28
|
-
throw new Error('Pinned mutation adapter requires a non-empty pin.');
|
|
29
|
-
}
|
|
30
|
-
return {
|
|
31
|
-
schemaId: MUTATION_ADAPTER_SCHEMA_ID,
|
|
32
|
-
adapterId: PINNED_IN_PROCESS_MUTATION_ADAPTER_ID,
|
|
33
|
-
pin,
|
|
34
|
-
capability: input.capability ?? 'supported',
|
|
35
|
-
detail: input.detail ?? null
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
export function classifySurvivorEquivalence(input) {
|
|
39
|
-
if (input.outcome === 'killed')
|
|
40
|
-
return 'not-applicable';
|
|
41
|
-
const observed = text(input.behavioralDigest);
|
|
42
|
-
const original = text(input.originalBehavioralDigest);
|
|
43
|
-
if (!observed || !original)
|
|
44
|
-
return 'non-equivalent';
|
|
45
|
-
return observed === original ? 'equivalent' : 'non-equivalent';
|
|
46
|
-
}
|
|
47
|
-
export function runMutationAdapter(input) {
|
|
48
|
-
const taskId = text(input.probeWindow.taskId);
|
|
49
|
-
const selectionDigest = text(input.probeWindow.selectionDigest);
|
|
50
|
-
const allowed = new Set(input.probeWindow.allowedProbeIds.map((id) => text(id)).filter(Boolean));
|
|
51
|
-
const adapterId = text(input.adapter.adapterId);
|
|
52
|
-
const adapterPin = text(input.adapter.pin);
|
|
53
|
-
if (input.adapter.capability === 'unsupported') {
|
|
54
|
-
return terminalFailClosed({
|
|
55
|
-
taskId,
|
|
56
|
-
selectionDigest,
|
|
57
|
-
adapterId,
|
|
58
|
-
adapterPin,
|
|
59
|
-
code: ATM_MUTATION_ADAPTER_UNSUPPORTED,
|
|
60
|
-
summary: `Mutation adapter ${adapterId} is unsupported for this runtime.`,
|
|
61
|
-
repairHint: 'Install or select a pinned supported mutation adapter before scoring mutants.'
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
if (input.adapter.capability === 'inconclusive') {
|
|
65
|
-
return terminalFailClosed({
|
|
66
|
-
taskId,
|
|
67
|
-
selectionDigest,
|
|
68
|
-
adapterId,
|
|
69
|
-
adapterPin,
|
|
70
|
-
code: ATM_MUTATION_ADAPTER_INCONCLUSIVE,
|
|
71
|
-
summary: `Mutation adapter ${adapterId} returned an inconclusive capability status.`,
|
|
72
|
-
repairHint: 'Re-run with a conclusive pinned adapter; inconclusive results must not pass.'
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
if (!selectionDigest || allowed.size === 0) {
|
|
76
|
-
return terminalFailClosed({
|
|
77
|
-
taskId,
|
|
78
|
-
selectionDigest,
|
|
79
|
-
adapterId,
|
|
80
|
-
adapterPin,
|
|
81
|
-
code: ATM_MUTATION_PROBE_WINDOW_VIOLATION,
|
|
82
|
-
summary: 'Mutation adapter requires a non-empty ATM-GOV-0285 selection digest and allowed probe ids.',
|
|
83
|
-
repairHint: 'Obtain a validator-catalog selection / resumable probe schedule before mutation.'
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
const outside = input.observations
|
|
87
|
-
.map((obs) => text(obs.probeId))
|
|
88
|
-
.filter((probeId) => !allowed.has(probeId));
|
|
89
|
-
if (outside.length > 0) {
|
|
90
|
-
return terminalFailClosed({
|
|
91
|
-
taskId,
|
|
92
|
-
selectionDigest,
|
|
93
|
-
adapterId,
|
|
94
|
-
adapterPin,
|
|
95
|
-
code: ATM_MUTATION_PROBE_WINDOW_VIOLATION,
|
|
96
|
-
summary: `Mutation observations reference probe id(s) outside the selected window: ${[...new Set(outside)].sort().join(', ')}.`,
|
|
97
|
-
repairHint: 'Restrict mutation execution to ATM-GOV-0285-selected probe ids only.'
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
const sorted = [...input.observations].sort((a, b) => text(a.mutantId).localeCompare(text(b.mutantId)));
|
|
101
|
-
const preliminary = sorted.map((obs) => {
|
|
102
|
-
const equivalence = classifySurvivorEquivalence(obs);
|
|
103
|
-
return {
|
|
104
|
-
mutantId: text(obs.mutantId),
|
|
105
|
-
probeId: text(obs.probeId),
|
|
106
|
-
outcome: obs.outcome,
|
|
107
|
-
equivalence,
|
|
108
|
-
seed: text(obs.seed)
|
|
109
|
-
};
|
|
110
|
-
});
|
|
111
|
-
const bounds = computeBounds(preliminary);
|
|
112
|
-
const records = preliminary.map((entry) => {
|
|
113
|
-
const digest = digestValue({
|
|
114
|
-
mutantId: entry.mutantId,
|
|
115
|
-
probeId: entry.probeId,
|
|
116
|
-
outcome: entry.outcome,
|
|
117
|
-
equivalence: entry.equivalence,
|
|
118
|
-
seed: entry.seed,
|
|
119
|
-
selectionDigest,
|
|
120
|
-
adapterId,
|
|
121
|
-
adapterPin,
|
|
122
|
-
lowerBound: bounds.lowerBound,
|
|
123
|
-
upperBound: bounds.upperBound
|
|
124
|
-
});
|
|
125
|
-
return {
|
|
126
|
-
mutantId: entry.mutantId,
|
|
127
|
-
probeId: entry.probeId,
|
|
128
|
-
outcome: entry.outcome,
|
|
129
|
-
equivalence: entry.equivalence,
|
|
130
|
-
lowerBound: bounds.lowerBound,
|
|
131
|
-
upperBound: bounds.upperBound,
|
|
132
|
-
seed: entry.seed,
|
|
133
|
-
digest: `sha256:${digest}`
|
|
134
|
-
};
|
|
135
|
-
});
|
|
136
|
-
const lineageDigest = `sha256:${digestValue({
|
|
137
|
-
taskId,
|
|
138
|
-
selectionDigest,
|
|
139
|
-
adapterId,
|
|
140
|
-
adapterPin,
|
|
141
|
-
bounds,
|
|
142
|
-
records: records.map((record) => ({
|
|
143
|
-
mutantId: record.mutantId,
|
|
144
|
-
probeId: record.probeId,
|
|
145
|
-
outcome: record.outcome,
|
|
146
|
-
equivalence: record.equivalence,
|
|
147
|
-
seed: record.seed,
|
|
148
|
-
digest: record.digest
|
|
149
|
-
}))
|
|
150
|
-
})}`;
|
|
151
|
-
return {
|
|
152
|
-
schemaId: MUTATION_LINEAGE_SCHEMA_ID,
|
|
153
|
-
specVersion: '0.1.0',
|
|
154
|
-
adapterSchemaId: MUTATION_ADAPTER_SCHEMA_ID,
|
|
155
|
-
equivalenceSchemaId: MUTATION_EQUIVALENCE_GOVERNANCE_SCHEMA_ID,
|
|
156
|
-
taskId,
|
|
157
|
-
selectionDigest,
|
|
158
|
-
adapterId,
|
|
159
|
-
adapterPin,
|
|
160
|
-
ok: true,
|
|
161
|
-
// Even a clean mutation run never becomes close authority by itself.
|
|
162
|
-
verdict: 'evidence-ready',
|
|
163
|
-
closeAuthorization: 'denied',
|
|
164
|
-
failClosed: null,
|
|
165
|
-
records,
|
|
166
|
-
bounds,
|
|
167
|
-
lineageDigest
|
|
168
|
-
};
|
|
169
|
-
}
|
|
170
|
-
export function replayMutationLineage(input) {
|
|
171
|
-
// Replay identity is the lineage digest of the sealed stream. Recompute from
|
|
172
|
-
// records alone so auditors do not need the original adapter process.
|
|
173
|
-
const first = `sha256:${digestValue({
|
|
174
|
-
taskId: input.report.taskId,
|
|
175
|
-
selectionDigest: input.report.selectionDigest,
|
|
176
|
-
adapterId: input.report.adapterId,
|
|
177
|
-
adapterPin: input.report.adapterPin,
|
|
178
|
-
bounds: input.report.bounds,
|
|
179
|
-
records: input.report.records.map((record) => ({
|
|
180
|
-
mutantId: record.mutantId,
|
|
181
|
-
probeId: record.probeId,
|
|
182
|
-
outcome: record.outcome,
|
|
183
|
-
equivalence: record.equivalence,
|
|
184
|
-
seed: record.seed,
|
|
185
|
-
digest: record.digest
|
|
186
|
-
}))
|
|
187
|
-
})}`;
|
|
188
|
-
const second = `sha256:${digestValue({
|
|
189
|
-
taskId: input.report.taskId,
|
|
190
|
-
selectionDigest: input.report.selectionDigest,
|
|
191
|
-
adapterId: input.report.adapterId,
|
|
192
|
-
adapterPin: input.report.adapterPin,
|
|
193
|
-
bounds: input.report.bounds,
|
|
194
|
-
records: input.report.records.map((record) => ({
|
|
195
|
-
mutantId: record.mutantId,
|
|
196
|
-
probeId: record.probeId,
|
|
197
|
-
outcome: record.outcome,
|
|
198
|
-
equivalence: record.equivalence,
|
|
199
|
-
seed: record.seed,
|
|
200
|
-
digest: record.digest
|
|
201
|
-
}))
|
|
202
|
-
})}`;
|
|
203
|
-
const ok = first === input.report.lineageDigest && first === second;
|
|
204
|
-
return {
|
|
205
|
-
ok,
|
|
206
|
-
deterministic: first === second,
|
|
207
|
-
expectedLineageDigest: input.report.lineageDigest,
|
|
208
|
-
recomputedLineageDigest: first,
|
|
209
|
-
failClosed: ok
|
|
210
|
-
? null
|
|
211
|
-
: {
|
|
212
|
-
code: ATM_MUTATION_LINEAGE_REPLAY_MISMATCH,
|
|
213
|
-
summary: 'Mutation lineage digest does not replay from sealed records.',
|
|
214
|
-
repairHint: 'Refuse close and re-run the pinned adapter inside the selected probe window.'
|
|
215
|
-
}
|
|
216
|
-
};
|
|
217
|
-
}
|
|
218
|
-
export function toFamilyMatchEvidence(report) {
|
|
219
|
-
return {
|
|
220
|
-
schemaId: MUTATION_FAMILY_MATCH_EVIDENCE_SCHEMA_ID,
|
|
221
|
-
specVersion: '0.1.0',
|
|
222
|
-
lineageDigest: report.lineageDigest,
|
|
223
|
-
soleMatchingAuthority: false,
|
|
224
|
-
authorityRole: 'supporting-evidence-only',
|
|
225
|
-
mayStrengthenOrWeakenConfidence: true,
|
|
226
|
-
survivors: report.records
|
|
227
|
-
.filter((record) => record.outcome === 'survived')
|
|
228
|
-
.map((record) => ({
|
|
229
|
-
mutantId: record.mutantId,
|
|
230
|
-
equivalence: record.equivalence === 'equivalent' ? 'equivalent' : 'non-equivalent',
|
|
231
|
-
digest: record.digest
|
|
232
|
-
})),
|
|
233
|
-
killedMutantIds: report.records
|
|
234
|
-
.filter((record) => record.outcome === 'killed')
|
|
235
|
-
.map((record) => record.mutantId)
|
|
236
|
-
.sort()
|
|
237
|
-
};
|
|
238
|
-
}
|
|
239
|
-
function computeBounds(entries) {
|
|
240
|
-
const total = entries.length;
|
|
241
|
-
let killed = 0;
|
|
242
|
-
let survived = 0;
|
|
243
|
-
let equivalent = 0;
|
|
244
|
-
let nonEquivalent = 0;
|
|
245
|
-
for (const entry of entries) {
|
|
246
|
-
if (entry.outcome === 'killed') {
|
|
247
|
-
killed += 1;
|
|
248
|
-
continue;
|
|
249
|
-
}
|
|
250
|
-
survived += 1;
|
|
251
|
-
if (entry.equivalence === 'equivalent')
|
|
252
|
-
equivalent += 1;
|
|
253
|
-
else
|
|
254
|
-
nonEquivalent += 1;
|
|
255
|
-
}
|
|
256
|
-
// Lower bound treats every survivor as harmful; upper bound forgives equivalents.
|
|
257
|
-
const lowerBound = total === 0 ? 0 : killed / total;
|
|
258
|
-
const upperBound = total === 0 ? 0 : (killed + equivalent) / total;
|
|
259
|
-
return {
|
|
260
|
-
killed,
|
|
261
|
-
survived,
|
|
262
|
-
equivalent,
|
|
263
|
-
nonEquivalent,
|
|
264
|
-
total,
|
|
265
|
-
lowerBound,
|
|
266
|
-
upperBound
|
|
267
|
-
};
|
|
268
|
-
}
|
|
269
|
-
function terminalFailClosed(input) {
|
|
270
|
-
const bounds = {
|
|
271
|
-
killed: 0,
|
|
272
|
-
survived: 0,
|
|
273
|
-
equivalent: 0,
|
|
274
|
-
nonEquivalent: 0,
|
|
275
|
-
total: 0,
|
|
276
|
-
lowerBound: 0,
|
|
277
|
-
upperBound: 0
|
|
278
|
-
};
|
|
279
|
-
const failClosed = {
|
|
280
|
-
code: input.code,
|
|
281
|
-
summary: input.summary,
|
|
282
|
-
repairHint: input.repairHint
|
|
283
|
-
};
|
|
284
|
-
return {
|
|
285
|
-
schemaId: MUTATION_LINEAGE_SCHEMA_ID,
|
|
286
|
-
specVersion: '0.1.0',
|
|
287
|
-
adapterSchemaId: MUTATION_ADAPTER_SCHEMA_ID,
|
|
288
|
-
equivalenceSchemaId: MUTATION_EQUIVALENCE_GOVERNANCE_SCHEMA_ID,
|
|
289
|
-
taskId: input.taskId,
|
|
290
|
-
selectionDigest: input.selectionDigest,
|
|
291
|
-
adapterId: input.adapterId,
|
|
292
|
-
adapterPin: input.adapterPin,
|
|
293
|
-
ok: false,
|
|
294
|
-
verdict: 'fail-closed',
|
|
295
|
-
closeAuthorization: 'denied',
|
|
296
|
-
failClosed,
|
|
297
|
-
records: [],
|
|
298
|
-
bounds,
|
|
299
|
-
lineageDigest: `sha256:${digestValue({
|
|
300
|
-
taskId: input.taskId,
|
|
301
|
-
selectionDigest: input.selectionDigest,
|
|
302
|
-
adapterId: input.adapterId,
|
|
303
|
-
failClosed
|
|
304
|
-
})}`
|
|
305
|
-
};
|
|
306
|
-
}
|
|
307
|
-
function text(value) {
|
|
308
|
-
return typeof value === 'string' ? value.trim() : '';
|
|
309
|
-
}
|
|
310
|
-
function digestValue(value) {
|
|
311
|
-
return createHash('sha256').update(stableStringify(value)).digest('hex');
|
|
312
|
-
}
|
|
313
|
-
function stableStringify(value) {
|
|
314
|
-
if (value === null || typeof value !== 'object')
|
|
315
|
-
return JSON.stringify(value);
|
|
316
|
-
if (Array.isArray(value))
|
|
317
|
-
return `[${value.map((entry) => stableStringify(entry)).join(',')}]`;
|
|
318
|
-
const record = value;
|
|
319
|
-
const keys = Object.keys(record).sort();
|
|
320
|
-
return `{${keys.map((key) => `${JSON.stringify(key)}:${stableStringify(record[key])}`).join(',')}}`;
|
|
321
|
-
}
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import { createHash } from 'node:crypto';
|
|
2
|
-
export const OBLIGATION_INVENTORY_SCHEMA_ID = 'atm.obligationInventory.v1';
|
|
3
|
-
export const OBLIGATION_INVENTORY_DRIFT_SCHEMA_ID = 'atm.obligationInventoryDrift.v1';
|
|
4
|
-
export function createObligationInventory(input) {
|
|
5
|
-
const entries = normalizeEntries(input.entries);
|
|
6
|
-
const inventoryDigest = digestCanonical({
|
|
7
|
-
inventoryId: normalizeText(input.inventoryId),
|
|
8
|
-
modelId: normalizeText(input.modelId),
|
|
9
|
-
entries: entries.map((entry) => ({
|
|
10
|
-
obligationId: entry.obligationId,
|
|
11
|
-
semanticFamily: entry.semanticFamily,
|
|
12
|
-
owningSeam: entry.owningSeam,
|
|
13
|
-
lifecycleStatus: entry.lifecycleStatus,
|
|
14
|
-
sourceRefs: entry.sourceRefs,
|
|
15
|
-
validatorRefs: entry.validatorRefs,
|
|
16
|
-
description: entry.description ?? null,
|
|
17
|
-
observedAt: entry.observedAt ?? null,
|
|
18
|
-
entryDigest: entry.entryDigest
|
|
19
|
-
}))
|
|
20
|
-
});
|
|
21
|
-
return {
|
|
22
|
-
schemaId: OBLIGATION_INVENTORY_SCHEMA_ID,
|
|
23
|
-
specVersion: '0.1.0',
|
|
24
|
-
inventoryId: normalizeText(input.inventoryId),
|
|
25
|
-
modelId: normalizeText(input.modelId),
|
|
26
|
-
generatedAt: normalizeText(input.generatedAt),
|
|
27
|
-
entries,
|
|
28
|
-
inventoryDigest
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
export function detectObligationInventoryDrift(input) {
|
|
32
|
-
const previousById = indexByObligationId(input.previous.entries);
|
|
33
|
-
const currentById = indexByObligationId(input.current.entries);
|
|
34
|
-
const staleObservedBefore = normalizeNullableText(input.staleObservedBefore);
|
|
35
|
-
const items = [];
|
|
36
|
-
for (const id of [...previousById.keys()].sort()) {
|
|
37
|
-
if (!currentById.has(id)) {
|
|
38
|
-
const previous = previousById.get(id);
|
|
39
|
-
items.push({
|
|
40
|
-
obligationId: id,
|
|
41
|
-
kind: 'removed',
|
|
42
|
-
previousDigest: previous.entryDigest,
|
|
43
|
-
currentDigest: null,
|
|
44
|
-
reason: 'Obligation existed in the previous inventory but is absent from the current inventory.'
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
for (const id of [...currentById.keys()].sort()) {
|
|
49
|
-
const current = currentById.get(id);
|
|
50
|
-
const previous = previousById.get(id) ?? null;
|
|
51
|
-
if (!previous) {
|
|
52
|
-
items.push({
|
|
53
|
-
obligationId: id,
|
|
54
|
-
kind: 'added',
|
|
55
|
-
previousDigest: null,
|
|
56
|
-
currentDigest: current.entryDigest,
|
|
57
|
-
reason: 'Obligation is new in the current inventory.'
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
else if (previous.entryDigest !== current.entryDigest) {
|
|
61
|
-
items.push({
|
|
62
|
-
obligationId: id,
|
|
63
|
-
kind: 'changed',
|
|
64
|
-
previousDigest: previous.entryDigest,
|
|
65
|
-
currentDigest: current.entryDigest,
|
|
66
|
-
reason: 'Obligation semantic content changed between inventories.'
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
if (staleObservedBefore && current.observedAt && current.observedAt < staleObservedBefore) {
|
|
70
|
-
items.push({
|
|
71
|
-
obligationId: id,
|
|
72
|
-
kind: 'stale-observed',
|
|
73
|
-
previousDigest: previous?.entryDigest ?? null,
|
|
74
|
-
currentDigest: current.entryDigest,
|
|
75
|
-
reason: `Obligation observation timestamp ${current.observedAt} is older than ${staleObservedBefore}.`
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
const sortedItems = items.sort((left, right) => left.obligationId.localeCompare(right.obligationId) || left.kind.localeCompare(right.kind));
|
|
80
|
-
return {
|
|
81
|
-
schemaId: OBLIGATION_INVENTORY_DRIFT_SCHEMA_ID,
|
|
82
|
-
specVersion: '0.1.0',
|
|
83
|
-
previousInventoryDigest: input.previous.inventoryDigest,
|
|
84
|
-
currentInventoryDigest: input.current.inventoryDigest,
|
|
85
|
-
staleCertificateId: normalizeNullableText(input.staleCertificateId),
|
|
86
|
-
staleCertificateDigest: normalizeNullableText(input.staleCertificateDigest),
|
|
87
|
-
changed: input.previous.inventoryDigest !== input.current.inventoryDigest || sortedItems.length > 0,
|
|
88
|
-
items: sortedItems
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
function normalizeEntries(entries) {
|
|
92
|
-
return entries
|
|
93
|
-
.map((entry) => {
|
|
94
|
-
const normalized = {
|
|
95
|
-
obligationId: normalizeText(entry.obligationId),
|
|
96
|
-
semanticFamily: normalizeText(entry.semanticFamily),
|
|
97
|
-
owningSeam: normalizeText(entry.owningSeam),
|
|
98
|
-
lifecycleStatus: entry.lifecycleStatus,
|
|
99
|
-
sourceRefs: normalizeSourceRefs(entry.sourceRefs),
|
|
100
|
-
validatorRefs: normalizeValidatorRefs(entry.validatorRefs),
|
|
101
|
-
description: normalizeNullableText(entry.description),
|
|
102
|
-
observedAt: normalizeNullableText(entry.observedAt)
|
|
103
|
-
};
|
|
104
|
-
return {
|
|
105
|
-
...normalized,
|
|
106
|
-
entryDigest: digestCanonical(normalized)
|
|
107
|
-
};
|
|
108
|
-
})
|
|
109
|
-
.filter((entry) => entry.obligationId && entry.semanticFamily && entry.owningSeam)
|
|
110
|
-
.sort((left, right) => left.obligationId.localeCompare(right.obligationId));
|
|
111
|
-
}
|
|
112
|
-
function normalizeSourceRefs(values = []) {
|
|
113
|
-
return values
|
|
114
|
-
.map((entry) => ({ kind: entry.kind, ref: normalizeText(entry.ref) }))
|
|
115
|
-
.filter((entry) => entry.ref)
|
|
116
|
-
.sort((left, right) => left.kind.localeCompare(right.kind) || left.ref.localeCompare(right.ref));
|
|
117
|
-
}
|
|
118
|
-
function normalizeValidatorRefs(values = []) {
|
|
119
|
-
return values
|
|
120
|
-
.map((entry) => ({ command: normalizeText(entry.command), caseId: normalizeNullableText(entry.caseId) }))
|
|
121
|
-
.filter((entry) => entry.command)
|
|
122
|
-
.sort((left, right) => left.command.localeCompare(right.command) || String(left.caseId ?? '').localeCompare(String(right.caseId ?? '')));
|
|
123
|
-
}
|
|
124
|
-
function indexByObligationId(entries) {
|
|
125
|
-
return new Map(entries.map((entry) => [entry.obligationId, entry]));
|
|
126
|
-
}
|
|
127
|
-
function digestCanonical(value) {
|
|
128
|
-
return `sha256:${createHash('sha256').update(stableStringify(value)).digest('hex')}`;
|
|
129
|
-
}
|
|
130
|
-
function stableStringify(value) {
|
|
131
|
-
if (value === null || typeof value !== 'object')
|
|
132
|
-
return JSON.stringify(value);
|
|
133
|
-
if (Array.isArray(value))
|
|
134
|
-
return `[${value.map((entry) => stableStringify(entry)).join(',')}]`;
|
|
135
|
-
const record = value;
|
|
136
|
-
return `{${Object.keys(record).sort().map((key) => `${JSON.stringify(key)}:${stableStringify(record[key])}`).join(',')}}`;
|
|
137
|
-
}
|
|
138
|
-
function normalizeText(value) {
|
|
139
|
-
return String(value ?? '').trim();
|
|
140
|
-
}
|
|
141
|
-
function normalizeNullableText(value) {
|
|
142
|
-
const normalized = normalizeText(value);
|
|
143
|
-
return normalized.length > 0 ? normalized : null;
|
|
144
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/** In-process adapter for deterministic fixtures and local callers. */
|
|
2
|
-
export function createInMemoryObservedEvidenceSource(descriptor, value) {
|
|
3
|
-
return { descriptor, read: () => value };
|
|
4
|
-
}
|
|
5
|
-
/** Local-substitutable adapter for filesystem, process, ledger, or Git readers. */
|
|
6
|
-
export function createReaderObservedEvidenceSource(descriptor, reader) {
|
|
7
|
-
return { descriptor, read: reader };
|
|
8
|
-
}
|
|
9
|
-
export { collectObservedEvidence, verifyObservedEvidence } from './observed-source.js';
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { createHash } from 'node:crypto';
|
|
2
|
-
export const OBSERVED_EVIDENCE_SOURCE_SCHEMA_ID = 'atm.observedEvidenceSource.v1';
|
|
3
|
-
export const OBSERVATION_SNAPSHOT_SCHEMA_ID = 'atm.observationSnapshot.v1';
|
|
4
|
-
/**
|
|
5
|
-
* Reads evidence only through declared source ports. The public result has no
|
|
6
|
-
* caller-provided success bit: availability and agreement are derived from the
|
|
7
|
-
* observed values themselves.
|
|
8
|
-
*/
|
|
9
|
-
export function collectObservedEvidence(sources) {
|
|
10
|
-
const normalized = [...sources].sort((left, right) => left.descriptor.sourceId.localeCompare(right.descriptor.sourceId));
|
|
11
|
-
if (normalized.length === 0)
|
|
12
|
-
return snapshot('unavailable', [], null, null, ['no-observed-source']);
|
|
13
|
-
const values = [];
|
|
14
|
-
const diagnostics = [];
|
|
15
|
-
for (const source of normalized) {
|
|
16
|
-
try {
|
|
17
|
-
const value = source.read();
|
|
18
|
-
if (value === undefined || value === null)
|
|
19
|
-
diagnostics.push(`source-unavailable:${source.descriptor.sourceId}`);
|
|
20
|
-
else
|
|
21
|
-
values.push({ sourceId: source.descriptor.sourceId, value });
|
|
22
|
-
}
|
|
23
|
-
catch {
|
|
24
|
-
diagnostics.push(`source-unavailable:${source.descriptor.sourceId}`);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
if (values.length === 0)
|
|
28
|
-
return snapshot('unavailable', normalized.map((source) => source.descriptor.sourceId), null, null, diagnostics);
|
|
29
|
-
const digests = [...new Set(values.map((entry) => digest(entry.value)))];
|
|
30
|
-
if (digests.length !== 1) {
|
|
31
|
-
return snapshot('conflicting', normalized.map((source) => source.descriptor.sourceId), null, null, [...diagnostics, 'conflicting-observed-values']);
|
|
32
|
-
}
|
|
33
|
-
return snapshot('observed', normalized.map((source) => source.descriptor.sourceId), values[0].value, digests[0], diagnostics);
|
|
34
|
-
}
|
|
35
|
-
export function verifyObservedEvidence(snapshotValue, expectedDigest) {
|
|
36
|
-
if (snapshotValue.status !== 'observed')
|
|
37
|
-
return { ok: false, diagnostics: [`observation-${snapshotValue.status}`] };
|
|
38
|
-
if (!isDigest(expectedDigest) || snapshotValue.valueDigest !== expectedDigest)
|
|
39
|
-
return { ok: false, diagnostics: ['observed-digest-mismatch'] };
|
|
40
|
-
return { ok: true, diagnostics: [] };
|
|
41
|
-
}
|
|
42
|
-
function snapshot(status, sourceIds, value, valueDigest, diagnostics) {
|
|
43
|
-
return {
|
|
44
|
-
schemaId: OBSERVATION_SNAPSHOT_SCHEMA_ID,
|
|
45
|
-
specVersion: '0.1.0',
|
|
46
|
-
status,
|
|
47
|
-
sourceIds,
|
|
48
|
-
observedAt: new Date().toISOString(),
|
|
49
|
-
value,
|
|
50
|
-
valueDigest,
|
|
51
|
-
diagnostics: [...new Set(diagnostics)].sort(),
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
function digest(value) {
|
|
55
|
-
return `sha256:${createHash('sha256').update(stableJson(value)).digest('hex')}`;
|
|
56
|
-
}
|
|
57
|
-
function stableJson(value) {
|
|
58
|
-
if (Array.isArray(value))
|
|
59
|
-
return `[${value.map(stableJson).join(',')}]`;
|
|
60
|
-
if (value && typeof value === 'object') {
|
|
61
|
-
const record = value;
|
|
62
|
-
return `{${Object.keys(record).sort().map((key) => `${JSON.stringify(key)}:${stableJson(record[key])}`).join(',')}}`;
|
|
63
|
-
}
|
|
64
|
-
return JSON.stringify(value);
|
|
65
|
-
}
|
|
66
|
-
function isDigest(value) {
|
|
67
|
-
return /^sha256:[a-f0-9]{64}$/i.test(value);
|
|
68
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { createHash } from 'node:crypto';
|
|
2
|
-
export const ORACLE_ARBITRATION_SCHEMA_ID = 'atm.oracleArbitration.v1';
|
|
3
|
-
export function compileOracleArbitration(i) { const n = { ...i, arbitrationId: String(i.arbitrationId ?? '').trim(), sourceDigest: String(i.sourceDigest ?? '').trim(), observations: [...(i.observations ?? [])].map(o => ({ ...o, oracleId: String(o.oracleId ?? '').trim(), evidenceDigest: String(o.evidenceDigest ?? '').trim(), verdict: String(o.verdict ?? '').trim() })).sort((a, b) => a.oracleId.localeCompare(b.oracleId)) }; const d = []; if (!n.authority.authorityId || !n.authority.digest || !n.authority.sealed || !n.arbitrationId)
|
|
4
|
-
d.push('authority-incomplete'); if (n.sourceDigest !== n.authority.digest)
|
|
5
|
-
d.push('source-authority-drift'); if (!n.observations.length)
|
|
6
|
-
d.push('oracle-unavailable'); if (n.writerRole === n.authorityRole)
|
|
7
|
-
d.push('writer-authority-overlap'); const verdicts = new Set(n.observations.map(o => o.verdict)); for (const o of n.observations) {
|
|
8
|
-
if (!o.oracleId || !o.evidenceDigest)
|
|
9
|
-
d.push(`incomplete-observation:${o.oracleId}`);
|
|
10
|
-
if (!o.independent)
|
|
11
|
-
d.push(`non-independent-oracle:${o.oracleId}`);
|
|
12
|
-
} if (verdicts.size > 1)
|
|
13
|
-
d.push('contradictory-oracle-output'); const status = d.some(x => x === 'writer-authority-overlap' || x === 'authority-incomplete' || x.startsWith('incomplete-')) ? 'contradictory' : d.some(x => x === 'source-authority-drift') ? 'stale' : d.length ? 'blocked' : 'proven'; return { schemaId: ORACLE_ARBITRATION_SCHEMA_ID, specVersion: '0.1.0', arbitrationId: n.arbitrationId, authority: n.authority, observations: n.observations, verdict: status === 'proven' ? 'pass' : 'fail-closed', status, diagnostics: d, repairCommand: status === 'proven' ? null : 'obtain independent oracle evidence, separate writer authority, and re-adjudicate', provenance: i.provenance ?? {}, resultDigest: digest({ arbitrationId: n.arbitrationId, authority: n.authority, observations: n.observations, verdict: status === 'proven' ? 'pass' : 'fail-closed', status, diagnostics: d }) }; }
|
|
14
|
-
export const createOracleArbitration = compileOracleArbitration;
|
|
15
|
-
export function replayOracleArbitration(r) { return compileOracleArbitration({ authority: r.authority, arbitrationId: r.arbitrationId, observations: r.observations, sourceDigest: r.authority.digest, writerRole: 'writer', authorityRole: 'oracle', provenance: r.provenance }); }
|
|
16
|
-
export function validateOracleArbitration(r) { const x = replayOracleArbitration(r), d = [...r.diagnostics]; if (x.resultDigest !== r.resultDigest)
|
|
17
|
-
d.push('result-digest-mismatch'); return { ok: d.length === 0 && r.status === 'proven', diagnostics: [...new Set(d)] }; }
|
|
18
|
-
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')}`; }
|