@ai-atomic-framework/cli 0.1.0-beta.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/README.md +20 -0
- package/dist/atm.js +328 -0
- package/dist/atm.mjs +4 -0
- package/dist/commands/actor-registry.js +359 -0
- package/dist/commands/actor-session.js +214 -0
- package/dist/commands/actor.js +342 -0
- package/dist/commands/agent-confidence.js +137 -0
- package/dist/commands/agent-pack.js +327 -0
- package/dist/commands/atm-chart/compatibility.js +287 -0
- package/dist/commands/atm-chart/constants.js +60 -0
- package/dist/commands/atm-chart/render-verify.js +276 -0
- package/dist/commands/atm-chart/semver.js +62 -0
- package/dist/commands/atm-chart/types.js +1 -0
- package/dist/commands/atm-chart.js +49 -0
- package/dist/commands/atom-capsule.js +265 -0
- package/dist/commands/atom-ref.js +71 -0
- package/dist/commands/atomize.js +338 -0
- package/dist/commands/baseline.js +285 -0
- package/dist/commands/batch/checkpoint-commit-window-policy.js +22 -0
- package/dist/commands/batch/deliver-and-close-forwarding.js +60 -0
- package/dist/commands/batch/implementation.js +861 -0
- package/dist/commands/batch/plan-executor.js +314 -0
- package/dist/commands/batch/runner-recovery-forwarding.js +47 -0
- package/dist/commands/batch.js +1 -0
- package/dist/commands/bootstrap-entry.js +32 -0
- package/dist/commands/bootstrap.js +8 -0
- package/dist/commands/broker/batch-execute-actions.js +506 -0
- package/dist/commands/broker/broker-decision-observation.js +1 -0
- package/dist/commands/broker/census/index.js +4 -0
- package/dist/commands/broker/implementation.js +59 -0
- package/dist/commands/broker/migrate/implementation.js +114 -0
- package/dist/commands/broker/mutation-helpers.js +105 -0
- package/dist/commands/broker/parallel-admission/closure-observation.js +92 -0
- package/dist/commands/broker/parallel-admission/final-verdict.js +168 -0
- package/dist/commands/broker/parser.js +495 -0
- package/dist/commands/broker/persistence.js +73 -0
- package/dist/commands/broker/plan-batch-action.js +178 -0
- package/dist/commands/broker/policy-actions.js +64 -0
- package/dist/commands/broker/post-compose-semantic-validation.js +143 -0
- package/dist/commands/broker/proposal-actions.js +149 -0
- package/dist/commands/broker/publication-takeover-admission.js +36 -0
- package/dist/commands/broker/reconcile/implementation.js +35 -0
- package/dist/commands/broker/registry-actions.js +309 -0
- package/dist/commands/broker/replay/closure-policy.js +332 -0
- package/dist/commands/broker/replay/command-backed-matrix.js +59 -0
- package/dist/commands/broker/replay/dashboard-lifecycle-observations.js +90 -0
- package/dist/commands/broker/replay/dashboard-ticket-observations.js +41 -0
- package/dist/commands/broker/replay/dashboard-view-model.js +203 -0
- package/dist/commands/broker/replay/dashboard.js +31 -0
- package/dist/commands/broker/replay/dogfood-orchestrator.js +117 -0
- package/dist/commands/broker/replay/final-closure-reader.js +181 -0
- package/dist/commands/broker/replay/implementation.js +264 -0
- package/dist/commands/broker/replay/run-manifest.js +26 -0
- package/dist/commands/broker/replay-actions.js +198 -0
- package/dist/commands/broker/runner-sync-supersession.js +6 -0
- package/dist/commands/broker/shared-delivery-commit-transaction.js +155 -0
- package/dist/commands/broker/shared-surface.js +260 -0
- package/dist/commands/broker/steward-queues.js +542 -0
- package/dist/commands/broker/steward-runtime-actions.js +295 -0
- package/dist/commands/broker/types.js +1 -0
- package/dist/commands/broker/wave-scheduler-actions.js +73 -0
- package/dist/commands/broker-conflict-resolution.js +66 -0
- package/dist/commands/broker.js +1 -0
- package/dist/commands/budget.js +108 -0
- package/dist/commands/build-release-hygiene.js +94 -0
- package/dist/commands/cache.js +235 -0
- package/dist/commands/candidates.js +509 -0
- package/dist/commands/cleanup/index.js +1 -0
- package/dist/commands/cleanup/run.js +38 -0
- package/dist/commands/command-specs/_common.js +24 -0
- package/dist/commands/command-specs/actor.spec.js +33 -0
- package/dist/commands/command-specs/agent-pack.spec.js +24 -0
- package/dist/commands/command-specs/atm-chart.spec.js +21 -0
- package/dist/commands/command-specs/atom-capsule.spec.js +30 -0
- package/dist/commands/command-specs/atom-ref.spec.js +20 -0
- package/dist/commands/command-specs/atomize.spec.js +40 -0
- package/dist/commands/command-specs/baseline.spec.js +25 -0
- package/dist/commands/command-specs/batch.spec.js +59 -0
- package/dist/commands/command-specs/bootstrap.spec.js +19 -0
- package/dist/commands/command-specs/broker.spec.js +95 -0
- package/dist/commands/command-specs/budget.spec.js +23 -0
- package/dist/commands/command-specs/cache.spec.js +24 -0
- package/dist/commands/command-specs/candidates.spec.js +24 -0
- package/dist/commands/command-specs/cleanup.spec.js +21 -0
- package/dist/commands/command-specs/create-map.spec.js +25 -0
- package/dist/commands/command-specs/create.spec.js +20 -0
- package/dist/commands/command-specs/daemon.spec.js +22 -0
- package/dist/commands/command-specs/doctor.spec.js +18 -0
- package/dist/commands/command-specs/emergency.spec.js +34 -0
- package/dist/commands/command-specs/evidence.spec.js +104 -0
- package/dist/commands/command-specs/experience.spec.js +26 -0
- package/dist/commands/command-specs/explain.spec.js +18 -0
- package/dist/commands/command-specs/framework-mode.spec.js +28 -0
- package/dist/commands/command-specs/git-hooks.spec.js +21 -0
- package/dist/commands/command-specs/git.spec.js +84 -0
- package/dist/commands/command-specs/guard.spec.js +30 -0
- package/dist/commands/command-specs/guide.spec.js +34 -0
- package/dist/commands/command-specs/handoff.spec.js +19 -0
- package/dist/commands/command-specs/health-report.spec.js +16 -0
- package/dist/commands/command-specs/hook.spec.js +22 -0
- package/dist/commands/command-specs/identity.spec.js +34 -0
- package/dist/commands/command-specs/init.spec.js +21 -0
- package/dist/commands/command-specs/integration.spec.js +43 -0
- package/dist/commands/command-specs/internal-release.spec.js +30 -0
- package/dist/commands/command-specs/lane.spec.js +32 -0
- package/dist/commands/command-specs/lock.spec.js +21 -0
- package/dist/commands/command-specs/map-capsule.spec.js +27 -0
- package/dist/commands/command-specs/migrate.spec.js +23 -0
- package/dist/commands/command-specs/next.spec.js +68 -0
- package/dist/commands/command-specs/orient.spec.js +15 -0
- package/dist/commands/command-specs/plan.spec.js +58 -0
- package/dist/commands/command-specs/police.spec.js +22 -0
- package/dist/commands/command-specs/quickfix.spec.js +21 -0
- package/dist/commands/command-specs/registry-diff.spec.js +21 -0
- package/dist/commands/command-specs/registry.spec.js +35 -0
- package/dist/commands/command-specs/replacement-lane.spec.js +25 -0
- package/dist/commands/command-specs/rescue.spec.js +29 -0
- package/dist/commands/command-specs/residue.spec.js +37 -0
- package/dist/commands/command-specs/review-advisory.spec.js +27 -0
- package/dist/commands/command-specs/review.spec.js +28 -0
- package/dist/commands/command-specs/rollback.spec.js +29 -0
- package/dist/commands/command-specs/route.spec.js +43 -0
- package/dist/commands/command-specs/self-host-alpha.spec.js +18 -0
- package/dist/commands/command-specs/spec.spec.js +17 -0
- package/dist/commands/command-specs/start.spec.js +22 -0
- package/dist/commands/command-specs/status.spec.js +16 -0
- package/dist/commands/command-specs/task-view.spec.js +18 -0
- package/dist/commands/command-specs/taskflow.spec.js +77 -0
- package/dist/commands/command-specs/tasks.spec.js +157 -0
- package/dist/commands/command-specs/team.spec.js +159 -0
- package/dist/commands/command-specs/telemetry.spec.js +55 -0
- package/dist/commands/command-specs/test.spec.js +39 -0
- package/dist/commands/command-specs/upgrade.spec.js +62 -0
- package/dist/commands/command-specs/validate.spec.js +28 -0
- package/dist/commands/command-specs/verify.spec.js +20 -0
- package/dist/commands/command-specs/welcome.spec.js +18 -0
- package/dist/commands/command-specs/write-ticket.spec.js +34 -0
- package/dist/commands/command-specs.js +150 -0
- package/dist/commands/create-map.js +285 -0
- package/dist/commands/create.js +106 -0
- package/dist/commands/daemon.js +268 -0
- package/dist/commands/doctor/constants.js +76 -0
- package/dist/commands/doctor/lifecycle.js +106 -0
- package/dist/commands/doctor/policy.js +114 -0
- package/dist/commands/doctor/readiness.js +114 -0
- package/dist/commands/doctor/run-doctor.js +356 -0
- package/dist/commands/doctor/types.js +1 -0
- package/dist/commands/doctor/utilities.js +120 -0
- package/dist/commands/doctor.js +1 -0
- package/dist/commands/emergency/context.js +21 -0
- package/dist/commands/emergency/gate.js +103 -0
- package/dist/commands/emergency/leases.js +154 -0
- package/dist/commands/emergency/protected-override-audit.js +122 -0
- package/dist/commands/emergency/registry.js +176 -0
- package/dist/commands/emergency.js +219 -0
- package/dist/commands/evidence/bundle-io/implementation.js +896 -0
- package/dist/commands/evidence/bundle-io.js +1 -0
- package/dist/commands/evidence/command-runs.js +280 -0
- package/dist/commands/evidence/evidence-store.js +94 -0
- package/dist/commands/evidence/historical-batch-finalize.js +1 -0
- package/dist/commands/evidence/historical-batch.js +1 -0
- package/dist/commands/evidence/missing-report.js +380 -0
- package/dist/commands/evidence/observed-source-loader.js +54 -0
- package/dist/commands/evidence/shared-utils.js +18 -0
- package/dist/commands/evidence/validator-classification.js +182 -0
- package/dist/commands/evidence/verbs/add.js +1 -0
- package/dist/commands/evidence/verbs/diagnose.js +190 -0
- package/dist/commands/evidence/verbs/diff.js +1 -0
- package/dist/commands/evidence/verbs/git-head-backfill.js +1 -0
- package/dist/commands/evidence/verbs/missing.js +1 -0
- package/dist/commands/evidence/verbs/run.js +287 -0
- package/dist/commands/evidence/verbs/validators.js +1 -0
- package/dist/commands/evidence/verbs/verify.js +1 -0
- package/dist/commands/evidence/verbs/wave-exit-observer.js +212 -0
- package/dist/commands/evidence.js +39 -0
- package/dist/commands/experience.js +242 -0
- package/dist/commands/explain.js +49 -0
- package/dist/commands/first-use-notice.js +54 -0
- package/dist/commands/framework-development/build-release-hygiene-hints.js +7 -0
- package/dist/commands/framework-development/closure-packet/diagnostics.js +24 -0
- package/dist/commands/framework-development/closure-packet/schema-fragments.js +1 -0
- package/dist/commands/framework-development/closure-packet/validator-contract.js +1 -0
- package/dist/commands/framework-development/closure-packet-schema/implementation.js +1134 -0
- package/dist/commands/framework-development/closure-packet-schema.js +3 -0
- package/dist/commands/framework-development/critical-path-gate.js +1 -0
- package/dist/commands/framework-development/framework-lock-context.js +35 -0
- package/dist/commands/framework-development/framework-temp-lock-projection.js +81 -0
- package/dist/commands/framework-development/framework-temp-publication-capability.js +270 -0
- package/dist/commands/framework-development/historical-delivery-provenance.js +12 -0
- package/dist/commands/framework-development/path-classification.js +34 -0
- package/dist/commands/framework-development/runner-publication-close-handoff.js +86 -0
- package/dist/commands/framework-development/runner-publication-lifecycle.js +412 -0
- package/dist/commands/framework-development/runner-publication-receipt.js +29 -0
- package/dist/commands/framework-development/runner-sync-admission.js +337 -0
- package/dist/commands/framework-development/runner-sync-lease-health.js +36 -0
- package/dist/commands/framework-development/runner-sync-queue-ownership.js +202 -0
- package/dist/commands/framework-development/sha256-normalization.js +1 -0
- package/dist/commands/framework-development/temp-claim.js +1 -0
- package/dist/commands/framework-development.js +7 -0
- package/dist/commands/git/record-commit.js +2 -0
- package/dist/commands/git-governance/branch-commit-coordinator.js +119 -0
- package/dist/commands/git-governance/commit-bundle-filter.js +37 -0
- package/dist/commands/git-governance/commit-scope-policy.js +182 -0
- package/dist/commands/git-governance/governance-residue-policy.js +18 -0
- package/dist/commands/git-governance/implementation/admission-command.js +231 -0
- package/dist/commands/git-governance/implementation/branch-commit-window.js +204 -0
- package/dist/commands/git-governance/implementation/broker-hook-bypass-preflight.js +227 -0
- package/dist/commands/git-governance/implementation/command-router.js +199 -0
- package/dist/commands/git-governance/implementation/commit-attempt-boundary.js +76 -0
- package/dist/commands/git-governance/implementation/commit-authority-scopes.js +61 -0
- package/dist/commands/git-governance/implementation/commit-bundle-resolution.js +502 -0
- package/dist/commands/git-governance/implementation/commit-bundle-selection.js +9 -0
- package/dist/commands/git-governance/implementation/commit-candidate-preparation.js +68 -0
- package/dist/commands/git-governance/implementation/commit-command.js +198 -0
- package/dist/commands/git-governance/implementation/commit-execution.js +400 -0
- package/dist/commands/git-governance/implementation/commit-framework-branch.js +105 -0
- package/dist/commands/git-governance/implementation/commit-task-scoped-branch.js +161 -0
- package/dist/commands/git-governance/implementation/dry-run-purity.js +54 -0
- package/dist/commands/git-governance/implementation/framework-commit-claim-guard.js +21 -0
- package/dist/commands/git-governance/implementation/framework-hook-identity.js +12 -0
- package/dist/commands/git-governance/implementation/git-command-options.js +258 -0
- package/dist/commands/git-governance/implementation/git-config-port.js +25 -0
- package/dist/commands/git-governance/implementation/git-head-evidence-transaction.js +275 -0
- package/dist/commands/git-governance/implementation/git-index-lock-recovery.js +41 -0
- package/dist/commands/git-governance/implementation/git-index-transaction.js +415 -0
- package/dist/commands/git-governance/implementation/git-process-port.js +261 -0
- package/dist/commands/git-governance/implementation/hook-bypass-commit-boundary.js +20 -0
- package/dist/commands/git-governance/implementation/hook-failure-diagnostics.js +59 -0
- package/dist/commands/git-governance/implementation/identity-check-command.js +403 -0
- package/dist/commands/git-governance/implementation/index-restoration.js +80 -0
- package/dist/commands/git-governance/implementation/lease-command.js +112 -0
- package/dist/commands/git-governance/implementation/live-index-drain.js +124 -0
- package/dist/commands/git-governance/implementation/live-index-lock-retry.js +72 -0
- package/dist/commands/git-governance/implementation/live-index-reconciliation.js +420 -0
- package/dist/commands/git-governance/implementation/pathspec-argv-batching.js +124 -0
- package/dist/commands/git-governance/implementation/push-command.js +485 -0
- package/dist/commands/git-governance/implementation/record-bundle-inspection.js +244 -0
- package/dist/commands/git-governance/implementation/record-commit-command.js +262 -0
- package/dist/commands/git-governance/implementation/sealed-commit-attribution.js +429 -0
- package/dist/commands/git-governance/implementation/task-scope-staging.js +383 -0
- package/dist/commands/git-governance/implementation.js +11 -0
- package/dist/commands/git-governance/protected-governance-state.js +136 -0
- package/dist/commands/git-governance/record-commit-payload-assertion.js +48 -0
- package/dist/commands/git-governance/record-only-block-lifecycle-bridge.js +227 -0
- package/dist/commands/git-governance/task-scoped-commit-transaction.js +42 -0
- package/dist/commands/git-governance/validate-atom-file-size.js +54 -0
- package/dist/commands/git-governance/work-admission-check.js +201 -0
- package/dist/commands/git-governance.js +338 -0
- package/dist/commands/git-head-evidence.js +354 -0
- package/dist/commands/git-index-ownership.js +411 -0
- package/dist/commands/git-worktree-readiness.js +127 -0
- package/dist/commands/git.js +169 -0
- package/dist/commands/glossary-data.js +52 -0
- package/dist/commands/governance-runtime.js +198 -0
- package/dist/commands/guard.js +338 -0
- package/dist/commands/guide.js +486 -0
- package/dist/commands/handoff.js +107 -0
- package/dist/commands/hash-placeholder-audit.js +57 -0
- package/dist/commands/health-report.js +30 -0
- package/dist/commands/help.js +69 -0
- package/dist/commands/hook/commit-range-guard/args.js +48 -0
- package/dist/commands/hook/commit-range-guard/baseline.js +43 -0
- package/dist/commands/hook/commit-range-guard/implementation.js +514 -0
- package/dist/commands/hook/commit-range-guard/support.js +6 -0
- package/dist/commands/hook/commit-range-guard.js +4 -0
- package/dist/commands/hook/context-map-advisor.js +210 -0
- package/dist/commands/hook/git-hooks-installer.js +156 -0
- package/dist/commands/hook/git-index-diagnostics.js +81 -0
- package/dist/commands/hook/pre-commit/close-transaction-receipt.js +110 -0
- package/dist/commands/hook/pre-commit/committed-task-context.js +37 -0
- package/dist/commands/hook/pre-commit/cross-file-consistency.js +423 -0
- package/dist/commands/hook/pre-commit/cross-task-admission.js +135 -0
- package/dist/commands/hook/pre-commit/failure-envelope.js +340 -0
- package/dist/commands/hook/pre-commit/framework-lock-context.js +9 -0
- package/dist/commands/hook/pre-commit/framework-temp-claim-attribution.js +29 -0
- package/dist/commands/hook/pre-commit/implementation.js +433 -0
- package/dist/commands/hook/pre-commit/input-state.js +208 -0
- package/dist/commands/hook/pre-commit/residue-candidates.js +15 -0
- package/dist/commands/hook/pre-commit/scope-ownership.js +380 -0
- package/dist/commands/hook/pre-commit/support.js +965 -0
- package/dist/commands/hook/pre-commit/team-gate-findings.js +19 -0
- package/dist/commands/hook/pre-commit.js +2 -0
- package/dist/commands/hook/pre-push.js +447 -0
- package/dist/commands/hook.js +65 -0
- package/dist/commands/identity.js +244 -0
- package/dist/commands/init.js +201 -0
- package/dist/commands/integration/adapter-parity.js +74 -0
- package/dist/commands/integration/adapters.js +127 -0
- package/dist/commands/integration/bootstrap.js +109 -0
- package/dist/commands/integration/health.js +253 -0
- package/dist/commands/integration/install.js +46 -0
- package/dist/commands/integration/list.js +16 -0
- package/dist/commands/integration/run.js +208 -0
- package/dist/commands/integration/types.js +1 -0
- package/dist/commands/integration-hooks/implementation.js +807 -0
- package/dist/commands/integration-hooks.js +1 -0
- package/dist/commands/integration.js +5 -0
- package/dist/commands/internal-release/command.js +113 -0
- package/dist/commands/internal-release/constants.js +5 -0
- package/dist/commands/internal-release/options.js +79 -0
- package/dist/commands/internal-release/publication.js +104 -0
- package/dist/commands/internal-release/scratch.js +72 -0
- package/dist/commands/internal-release/support.js +79 -0
- package/dist/commands/internal-release/target-sync.js +122 -0
- package/dist/commands/internal-release/types.js +1 -0
- package/dist/commands/internal-release.js +2 -0
- package/dist/commands/lane-session/adopt-rebind.js +113 -0
- package/dist/commands/lane-session/capability-authority.js +223 -0
- package/dist/commands/lane-session/events.js +102 -0
- package/dist/commands/lane-session/mutation-authority-adapter.js +96 -0
- package/dist/commands/lane-session/mutation-status-command.js +61 -0
- package/dist/commands/lane-session/proxy-receipt.js +219 -0
- package/dist/commands/lane-session/redaction.js +66 -0
- package/dist/commands/lane-session/resolve.js +114 -0
- package/dist/commands/lane-session/store.js +336 -0
- package/dist/commands/lane.js +550 -0
- package/dist/commands/lock.js +132 -0
- package/dist/commands/map-capsule.js +194 -0
- package/dist/commands/migrate.js +193 -0
- package/dist/commands/next/active-work-summary.js +88 -0
- package/dist/commands/next/broker-queue-admission.js +95 -0
- package/dist/commands/next/channel-strategy.js +172 -0
- package/dist/commands/next/claim-admission.js +254 -0
- package/dist/commands/next/claim-cleanup.js +24 -0
- package/dist/commands/next/claim-conflict-log.js +122 -0
- package/dist/commands/next/claim-delivery-admission.js +35 -0
- package/dist/commands/next/claim-early-results.js +120 -0
- package/dist/commands/next/claim-helpers.js +81 -0
- package/dist/commands/next/claim-lane-session.js +38 -0
- package/dist/commands/next/claim-orchestration.js +579 -0
- package/dist/commands/next/claim-parallel-preflight.js +368 -0
- package/dist/commands/next/claim-readiness.js +158 -0
- package/dist/commands/next/claim-scope-expansion-admission.js +22 -0
- package/dist/commands/next/cross-repo-framework-result.js +40 -0
- package/dist/commands/next/foreign-dirty-wip-admission.js +162 -0
- package/dist/commands/next/governance-readiness.js +149 -0
- package/dist/commands/next/intent-normalizers.js +212 -0
- package/dist/commands/next/match-and-sort.js +183 -0
- package/dist/commands/next/next-action-assembly.js +118 -0
- package/dist/commands/next/oversized-extraction-admission.js +79 -0
- package/dist/commands/next/plan-scoped-preflight.js +145 -0
- package/dist/commands/next/planning-root-preference.js +264 -0
- package/dist/commands/next/playbook-projection/active-work-summary.js +380 -0
- package/dist/commands/next/playbook-projection/channel-playbook.js +198 -0
- package/dist/commands/next/playbook-projection/governance-readiness.js +67 -0
- package/dist/commands/next/playbook-projection/legacy-guidance.js +151 -0
- package/dist/commands/next/playbook-projection/message-assembly.js +120 -0
- package/dist/commands/next/playbook-projection/task-reservation-projection.js +126 -0
- package/dist/commands/next/playbook-projection/task-routing.js +275 -0
- package/dist/commands/next/playbook-projection.js +7 -0
- package/dist/commands/next/profiler.js +22 -0
- package/dist/commands/next/prompt-guidance-result.js +177 -0
- package/dist/commands/next/prompt-result-contracts.js +273 -0
- package/dist/commands/next/prompt-results.js +505 -0
- package/dist/commands/next/prompt-scope-resolution.js +12 -0
- package/dist/commands/next/proposal-lane.js +122 -0
- package/dist/commands/next/result-compaction.js +120 -0
- package/dist/commands/next/route-predicates.js +112 -0
- package/dist/commands/next/route-resolution/artifact-scope.js +215 -0
- package/dist/commands/next/route-resolution/intent.js +163 -0
- package/dist/commands/next/route-resolution/matching.js +446 -0
- package/dist/commands/next/route-resolution/pending-worktree.js +257 -0
- package/dist/commands/next/route-resolution/queue-inspection.js +391 -0
- package/dist/commands/next/route-resolution/runtime.js +111 -0
- package/dist/commands/next/route-resolution/task-card-discovery.js +190 -0
- package/dist/commands/next/route-resolution.js +7 -0
- package/dist/commands/next/runner-mode.js +98 -0
- package/dist/commands/next/runner-recovery-claim-authorization.js +30 -0
- package/dist/commands/next/task-scoped-claim-command.js +24 -0
- package/dist/commands/next/view-projections.js +51 -0
- package/dist/commands/next/worktree-hints.js +11 -0
- package/dist/commands/next-active-batch.js +39 -0
- package/dist/commands/next.js +257 -0
- package/dist/commands/orient.js +22 -0
- package/dist/commands/output-projection.js +37 -0
- package/dist/commands/plan.js +458 -0
- package/dist/commands/planning-repo-root.js +312 -0
- package/dist/commands/planning-root-resolution-cache.js +0 -0
- package/dist/commands/police.js +166 -0
- package/dist/commands/quickfix.js +76 -0
- package/dist/commands/registry/lineage-normalization.js +125 -0
- package/dist/commands/registry-diff.js +145 -0
- package/dist/commands/registry-shared.js +153 -0
- package/dist/commands/registry.js +533 -0
- package/dist/commands/replacement-lane.js +82 -0
- package/dist/commands/rescue.js +306 -0
- package/dist/commands/residue.js +483 -0
- package/dist/commands/review-advisory.js +480 -0
- package/dist/commands/review.js +514 -0
- package/dist/commands/rollback.js +271 -0
- package/dist/commands/route/files.js +42 -0
- package/dist/commands/route/freeze-patch.js +141 -0
- package/dist/commands/route/lifecycle.js +206 -0
- package/dist/commands/route/main.js +10 -0
- package/dist/commands/route/parser.js +177 -0
- package/dist/commands/route/takeover.js +152 -0
- package/dist/commands/route/types.js +2 -0
- package/dist/commands/route/validation.js +77 -0
- package/dist/commands/route.js +1 -0
- package/dist/commands/runner-sync.js +2 -0
- package/dist/commands/runtime-adapter-readiness.js +150 -0
- package/dist/commands/self-host-alpha.js +293 -0
- package/dist/commands/shared/command-manifest.js +104 -0
- package/dist/commands/shared/command-spec-output.js +304 -0
- package/dist/commands/shared/identity-normalization.js +208 -0
- package/dist/commands/shared/option-and-file-tools.js +451 -0
- package/dist/commands/shared/result-core.js +292 -0
- package/dist/commands/shared.js +3 -0
- package/dist/commands/spec-shared.js +108 -0
- package/dist/commands/spec.js +13 -0
- package/dist/commands/start.js +115 -0
- package/dist/commands/status.js +214 -0
- package/dist/commands/task-direction/active-locks.js +98 -0
- package/dist/commands/task-direction/scope-policy.js +104 -0
- package/dist/commands/task-direction/support.js +204 -0
- package/dist/commands/task-direction.js +305 -0
- package/dist/commands/task-intent.js +163 -0
- package/dist/commands/task-ledger.js +149 -0
- package/dist/commands/task-view.js +146 -0
- package/dist/commands/taskflow/auto-evidence-mapper.js +147 -0
- package/dist/commands/taskflow/branch-commit-queue-gate.js +127 -0
- package/dist/commands/taskflow/broker-gate.js +253 -0
- package/dist/commands/taskflow/close-orchestration.js +511 -0
- package/dist/commands/taskflow/close-owned-delivery-dirty-admission.js +70 -0
- package/dist/commands/taskflow/close-preflight.js +403 -0
- package/dist/commands/taskflow/close-side-effect-reconcile.js +51 -0
- package/dist/commands/taskflow/close-transaction-hook-receipt.js +36 -0
- package/dist/commands/taskflow/close-transaction-mutex.js +108 -0
- package/dist/commands/taskflow/closeback-orchestration.js +204 -0
- package/dist/commands/taskflow/commit-bundle-assembly.js +613 -0
- package/dist/commands/taskflow/commit-messages.js +9 -0
- package/dist/commands/taskflow/cross-authority-closeback.js +308 -0
- package/dist/commands/taskflow/current-task-close-evidence.js +51 -0
- package/dist/commands/taskflow/dirty-blockers.js +46 -0
- package/dist/commands/taskflow/governance-dirty-deferral.js +21 -0
- package/dist/commands/taskflow/historical-close-preflight.js +426 -0
- package/dist/commands/taskflow/host-opener-policy.js +229 -0
- package/dist/commands/taskflow/implementation.js +722 -0
- package/dist/commands/taskflow/markdown-paths.js +7 -0
- package/dist/commands/taskflow/profile-loader.js +280 -0
- package/dist/commands/taskflow/runner-publication-close-queue.js +31 -0
- package/dist/commands/taskflow/runner-recovery-forwarding.js +55 -0
- package/dist/commands/taskflow/runner-selection-evidence.js +26 -0
- package/dist/commands/taskflow/task-scope.js +84 -0
- package/dist/commands/taskflow/transaction-status.js +3 -0
- package/dist/commands/taskflow/write-readiness.js +323 -0
- package/dist/commands/taskflow.js +1 -0
- package/dist/commands/tasks/acceptance-evidence-import.js +119 -0
- package/dist/commands/tasks/canonical-task-id-boundary.js +23 -0
- package/dist/commands/tasks/claim-intent.js +110 -0
- package/dist/commands/tasks/claim-orchestrator.js +559 -0
- package/dist/commands/tasks/claim-ownership.js +145 -0
- package/dist/commands/tasks/claim-preparation.js +251 -0
- package/dist/commands/tasks/claim-repair-diagnostics.js +466 -0
- package/dist/commands/tasks/claim-work-admission.js +290 -0
- package/dist/commands/tasks/close-governance.js +173 -0
- package/dist/commands/tasks/close-helpers/broker-admission-explanation.js +75 -0
- package/dist/commands/tasks/close-helpers/close-artifact-staging.js +257 -0
- package/dist/commands/tasks/close-helpers/close-window-diagnostics.js +172 -0
- package/dist/commands/tasks/close-helpers/task-transition-writer.js +108 -0
- package/dist/commands/tasks/close-orchestrator/acceptance-evidence-gate.js +84 -0
- package/dist/commands/tasks/close-orchestrator/close-result.js +35 -0
- package/dist/commands/tasks/close-orchestrator/close-write.js +200 -0
- package/dist/commands/tasks/close-orchestrator/closure-packet.js +109 -0
- package/dist/commands/tasks/close-orchestrator/historical-context.js +48 -0
- package/dist/commands/tasks/close-orchestrator/runner-recovery.js +30 -0
- package/dist/commands/tasks/close-orchestrator.js +535 -0
- package/dist/commands/tasks/close-window-lock.js +420 -0
- package/dist/commands/tasks/close-window-residue-classification.js +137 -0
- package/dist/commands/tasks/close-window-staged-index-admission.js +20 -0
- package/dist/commands/tasks/closeout-provenance.js +126 -0
- package/dist/commands/tasks/closeout-signaling.js +1 -0
- package/dist/commands/tasks/command-dispatch.js +86 -0
- package/dist/commands/tasks/contract-import-recovery.js +17 -0
- package/dist/commands/tasks/deliver-close-orchestrator.js +251 -0
- package/dist/commands/tasks/dependency-gate.js +429 -0
- package/dist/commands/tasks/dependency-gates.js +1 -0
- package/dist/commands/tasks/generated-residue-policy.js +121 -0
- package/dist/commands/tasks/historical-delivery.js +411 -0
- package/dist/commands/tasks/import-card-contract-validation.js +124 -0
- package/dist/commands/tasks/import-orchestrator.js +488 -0
- package/dist/commands/tasks/import-planning-authority.js +1 -0
- package/dist/commands/tasks/import-task.js +150 -0
- package/dist/commands/tasks/import-validation.js +70 -0
- package/dist/commands/tasks/import-verify.js +195 -0
- package/dist/commands/tasks/is-frontmatter-scalar-helper.js +9 -0
- package/dist/commands/tasks/legacy/compat-command-map.js +4 -0
- package/dist/commands/tasks/legacy/implementation.js +1176 -0
- package/dist/commands/tasks/legacy/repair-reconcile-lane.js +3 -0
- package/dist/commands/tasks/legacy/transition-compat.js +3 -0
- package/dist/commands/tasks/legacy-impl.js +2 -0
- package/dist/commands/tasks/lifecycle-state.js +151 -0
- package/dist/commands/tasks/normalize-string-value-helper.js +6 -0
- package/dist/commands/tasks/normalize-task-document-id-helper.js +7 -0
- package/dist/commands/tasks/plan-import-boundary.js +58 -0
- package/dist/commands/tasks/planning-mirror-close-diagnostics.js +95 -0
- package/dist/commands/tasks/planning-root-authorship.js +153 -0
- package/dist/commands/tasks/planning-source-seal-policy.js +125 -0
- package/dist/commands/tasks/public-surface.js +11 -0
- package/dist/commands/tasks/read-projection.js +213 -0
- package/dist/commands/tasks/realign-plan-source.js +437 -0
- package/dist/commands/tasks/reconcile-orchestrator.js +342 -0
- package/dist/commands/tasks/release-wip-transaction.js +59 -0
- package/dist/commands/tasks/repair-claim-orchestrator.js +174 -0
- package/dist/commands/tasks/repairclose-orchestrator.js +232 -0
- package/dist/commands/tasks/residue-diagnostics.js +175 -0
- package/dist/commands/tasks/result-contracts.js +43 -0
- package/dist/commands/tasks/scope-amendment/implementation.js +137 -0
- package/dist/commands/tasks/scope-lock-diagnostics.js +234 -0
- package/dist/commands/tasks/scope-preflight/implementation.js +24 -0
- package/dist/commands/tasks/scope-queue.js +13 -0
- package/dist/commands/tasks/seal-plan-source.js +98 -0
- package/dist/commands/tasks/sha256-helper.js +7 -0
- package/dist/commands/tasks/status-triangulation.js +284 -0
- package/dist/commands/tasks/surface-invariants.js +84 -0
- package/dist/commands/tasks/takeover-evidence.js +29 -0
- package/dist/commands/tasks/task-atomization-policy-import.js +139 -0
- package/dist/commands/tasks/task-card-contract-import.js +336 -0
- package/dist/commands/tasks/task-card-writer.js +13 -0
- package/dist/commands/tasks/task-file-io-helpers.js +62 -0
- package/dist/commands/tasks/task-frontmatter-fidelity.js +269 -0
- package/dist/commands/tasks/task-git-helpers.js +40 -0
- package/dist/commands/tasks/task-import-diagnostics.js +45 -0
- package/dist/commands/tasks/task-import-status-normalization.js +20 -0
- package/dist/commands/tasks/task-import-validators.js +442 -0
- package/dist/commands/tasks/task-ledger-readers.js +102 -0
- package/dist/commands/tasks/task-markdown-helpers.js +358 -0
- package/dist/commands/tasks/task-option-parsers/close-delivery-options.js +156 -0
- package/dist/commands/tasks/task-option-parsers/create-close-options.js +233 -0
- package/dist/commands/tasks/task-option-parsers/helpers.js +37 -0
- package/dist/commands/tasks/task-option-parsers/misc-claim-options.js +350 -0
- package/dist/commands/tasks/task-option-parsers/scope-options.js +211 -0
- package/dist/commands/tasks/task-option-parsers/status-options.js +43 -0
- package/dist/commands/tasks/task-option-parsers.js +6 -0
- package/dist/commands/tasks/task-transition-helpers.js +166 -0
- package/dist/commands/tasks/task-work-admission-import.js +54 -0
- package/dist/commands/tasks/verify-orchestrator.js +160 -0
- package/dist/commands/tasks.js +5 -0
- package/dist/commands/team/admission-command.js +7 -0
- package/dist/commands/team/admission.js +141 -0
- package/dist/commands/team/command-registry.js +26 -0
- package/dist/commands/team/composer.js +78 -0
- package/dist/commands/team/cost-command.js +27 -0
- package/dist/commands/team/efficiency-controller.js +198 -0
- package/dist/commands/team/execute-command.js +6 -0
- package/dist/commands/team/growth-contract.js +128 -0
- package/dist/commands/team/legacy/broker-observability.js +366 -0
- package/dist/commands/team/legacy/command-runner.js +348 -0
- package/dist/commands/team/legacy/crew-decision-policy.js +418 -0
- package/dist/commands/team/legacy/handoff-handler.js +60 -0
- package/dist/commands/team/legacy/implementer-selector-policy.js +209 -0
- package/dist/commands/team/legacy/lifecycle-handler.js +163 -0
- package/dist/commands/team/legacy/patrol-contracts.js +212 -0
- package/dist/commands/team/legacy/patrol-handler.js +213 -0
- package/dist/commands/team/legacy/permission-lease-policy.js +386 -0
- package/dist/commands/team/legacy/plan-orchestration.js +360 -0
- package/dist/commands/team/legacy/planning-context.js +314 -0
- package/dist/commands/team/legacy/provider-execution.js +337 -0
- package/dist/commands/team/legacy/runtime-contracts.js +241 -0
- package/dist/commands/team/legacy/runtime-governance.js +419 -0
- package/dist/commands/team/legacy/team-run-runtime.js +186 -0
- package/dist/commands/team/legacy/team-run-store.js +160 -0
- package/dist/commands/team/legacy/team-utils.js +102 -0
- package/dist/commands/team/legacy/types.js +150 -0
- package/dist/commands/team/plan-command.js +4 -0
- package/dist/commands/team/proposal-workspace.js +139 -0
- package/dist/commands/team/provider-preflight.js +57 -0
- package/dist/commands/team/report-command.js +14 -0
- package/dist/commands/team/role-provider-resolution.js +46 -0
- package/dist/commands/team/role-skill-packs.js +238 -0
- package/dist/commands/team/runtime-bridges.js +81 -0
- package/dist/commands/team/runtime-tier-contract.js +32 -0
- package/dist/commands/team/scheduler.js +165 -0
- package/dist/commands/team/shadow-plan.js +77 -0
- package/dist/commands/team/shadow-workspace.js +1 -0
- package/dist/commands/team/start-command.js +4 -0
- package/dist/commands/team/status-command.js +4 -0
- package/dist/commands/team/team-execution-lane.js +66 -0
- package/dist/commands/team/team-route-map.js +55 -0
- package/dist/commands/team-knowledge/actions.js +210 -0
- package/dist/commands/team-knowledge/main.js +36 -0
- package/dist/commands/team-knowledge/metadata.js +120 -0
- package/dist/commands/team-knowledge/permission.js +34 -0
- package/dist/commands/team-knowledge/ranking.js +186 -0
- package/dist/commands/team-knowledge/runtime-utils.js +105 -0
- package/dist/commands/team-knowledge/spec.js +30 -0
- package/dist/commands/team-knowledge/summary.js +55 -0
- package/dist/commands/team-knowledge/text-utils.js +29 -0
- package/dist/commands/team-knowledge/types.js +1 -0
- package/dist/commands/team-knowledge.js +2 -0
- package/dist/commands/team-legacy.js +101 -0
- package/dist/commands/team-runtime-cleanup.js +56 -0
- package/dist/commands/team-runtime-gates.js +198 -0
- package/dist/commands/team-wave.js +387 -0
- package/dist/commands/team.js +2 -0
- package/dist/commands/telemetry.js +149 -0
- package/dist/commands/test-catalog.js +354 -0
- package/dist/commands/test.js +301 -0
- package/dist/commands/upgrade/canary.js +45 -0
- package/dist/commands/upgrade/experimental.js +97 -0
- package/dist/commands/upgrade/next-action-hint.js +56 -0
- package/dist/commands/upgrade/path-helpers.js +66 -0
- package/dist/commands/upgrade/proposal/context-budget.js +187 -0
- package/dist/commands/upgrade/proposal/guided-legacy.js +90 -0
- package/dist/commands/upgrade/proposal/inputs.js +86 -0
- package/dist/commands/upgrade/proposal/parse.js +221 -0
- package/dist/commands/upgrade/proposal/types.js +1 -0
- package/dist/commands/upgrade/proposal.js +4 -0
- package/dist/commands/upgrade/safe-upgrade.js +339 -0
- package/dist/commands/upgrade/scan.js +76 -0
- package/dist/commands/upgrade-map-propose.js +64 -0
- package/dist/commands/upgrade.js +106 -0
- package/dist/commands/validate.js +429 -0
- package/dist/commands/validation-obligations.js +142 -0
- package/dist/commands/verify.js +151 -0
- package/dist/commands/welcome.js +180 -0
- package/dist/commands/work-channels.js +493 -0
- package/dist/commands/write-ticket.js +226 -0
- package/dist/config/env-registry.js +88 -0
- package/dist/index.js +350 -0
- package/dist/migration/codemod-registry.js +82 -0
- package/dist/migration/migration-index.json +15 -0
- package/dist/plugin-registry.js +49 -0
- package/dist/startup-integrity.js +88 -0
- package/dist/startup-known-bad.js +187 -0
- package/dist/telemetry/index.js +78 -0
- package/dist/temp-workspace.js +49 -0
- package/package.json +102 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { defineCommandSpec } from '../shared.js';
|
|
2
|
+
import { commonCwdOption, commonHelpOption, commonJsonOption, commonPrettyOption, } from './_common.js';
|
|
3
|
+
export default defineCommandSpec({
|
|
4
|
+
name: 'evidence',
|
|
5
|
+
summary: 'Run validators as governed evidence, add raw/manual evidence for close/commit/PR gates, author diagnostic-loop receipts, author historical-batch envelopes that feed taskflow close, or finalize diagnostic historical-batch slices. Successful fresh evidence updates the per-task bundle manifest at .atm/history/evidence/<taskId>.bundle-manifest.json.',
|
|
6
|
+
positional: [
|
|
7
|
+
{ name: 'action', summary: 'add | run | git-head-backfill | verify | diff | validators | missing | diagnose | historical-batch | historical-batch-finalize | wave-exit-observer', required: true }
|
|
8
|
+
],
|
|
9
|
+
options: [
|
|
10
|
+
commonCwdOption,
|
|
11
|
+
{ flag: '--task', value: 'id', summary: 'Task id to append or verify evidence.' },
|
|
12
|
+
{ flag: '--actor', value: 'id', summary: 'Actor id for evidence run/add (or set ATM_ACTOR_ID).' },
|
|
13
|
+
{ flag: '--kind', value: 'type', summary: 'Evidence kind for raw evidence add or evidence run: test|artifact|attestation|review|commit|waiver.' },
|
|
14
|
+
{ flag: '--summary', value: 'text', summary: 'Optional short evidence summary.' },
|
|
15
|
+
{ flag: '--artifacts', value: 'csv', summary: 'Optional artifact path list recorded with the evidence.' },
|
|
16
|
+
{ flag: '--freshness', value: 'type', summary: 'Raw evidence add freshness: fresh|historical-reference|draft (default: fresh).' },
|
|
17
|
+
{ flag: '--validators', value: 'csv', summary: 'Optional validator override. Omit when the command matches a known gate or a task-card declared validator; evidence run will auto-link it.' },
|
|
18
|
+
{ flag: '--command', value: 'text', summary: 'Command to run/capture. With evidence add this is raw metadata and also requires exit code plus sha256 outputs.' },
|
|
19
|
+
{ flag: '--command-runs', value: 'json-file', summary: 'Raw evidence add only: append commandRuns from a JSON array or {commandRuns:[]} cache file.' },
|
|
20
|
+
{ flag: '--symptom', value: 'text', summary: 'Diagnostic-loop only: exact observed symptom that the reproducer must trigger.' },
|
|
21
|
+
{ flag: '--reproducer-command', value: 'text', summary: 'Diagnostic-loop only: command that reproduces the declared symptom.' },
|
|
22
|
+
{ flag: '--symptom-observed', summary: 'Diagnostic-loop only: assert the reproducer observed the declared symptom.' },
|
|
23
|
+
{ flag: '--reproduction-rate', value: '0..1', summary: 'Diagnostic-loop only: observed reproduction rate for the minimized fixture.' },
|
|
24
|
+
{ flag: '--minimized-fixture', value: 'path-or-id', summary: 'Diagnostic-loop only: minimized fixture path or stable fixture id.' },
|
|
25
|
+
{ flag: '--hypothesis', value: 'id|summary|prediction|command|matched', summary: 'Diagnostic-loop only: repeatable falsifiable hypothesis and one-variable experiment result.' },
|
|
26
|
+
{ flag: '--winning-hypothesis', value: 'id', summary: 'Diagnostic-loop only: hypothesis id whose experiment matched.' },
|
|
27
|
+
{ flag: '--regression-case-id', value: 'id', summary: 'Diagnostic-loop only: regression test case id added or selected for the repair.' },
|
|
28
|
+
{ flag: '--exit', value: 'EXIT-NN', summary: 'wave-exit-observer only: sealed EXIT id from the observer policy. The writer selects the command; callers cannot pass a command.' },
|
|
29
|
+
{ flag: '--observer-role', value: 'role', summary: 'wave-exit-observer only: sealed observer role such as wave-exit-observer.gemini or wave-exit-observer.claude.' },
|
|
30
|
+
{ flag: '--basis-owners', value: 'csv', summary: 'wave-exit-observer only: evidence owner task ids used to derive the basis producer actor. Not an actor override.' },
|
|
31
|
+
{ flag: '--declared-basis-actor', value: 'id', summary: 'wave-exit-observer only: optional cross-check against the derived basis actor. Mismatch fails closed.' },
|
|
32
|
+
{ flag: '--exit-code', value: 'number', summary: 'Raw evidence add only: exit code paired with --command evidence. Forbidden for wave-exit-observer.' },
|
|
33
|
+
{ flag: '--stdout-sha256', value: 'sha256', summary: 'Raw evidence add only: stdout digest paired with --command evidence.' },
|
|
34
|
+
{ flag: '--stderr-sha256', value: 'sha256', summary: 'Raw evidence add only: stderr digest paired with --command evidence.' },
|
|
35
|
+
{ flag: '--runner-kind', value: 'kind', summary: 'Runner kind for command proof: dev-source|frozen-runner|external.' },
|
|
36
|
+
{ flag: '--source-commit', value: 'sha', summary: 'Source commit paired with dev-source command proof.' },
|
|
37
|
+
{ flag: '--reason', value: 'text', summary: 'Optional rationale for git-head-backfill.' },
|
|
38
|
+
{ flag: '--gate', value: 'type', summary: 'Evidence gate for verify: close|commit|pr.' },
|
|
39
|
+
{ flag: '--list', summary: 'List all required validators with tier and current evidence state (used with validators action).' },
|
|
40
|
+
{ flag: '--recent-run', summary: 'Use the most recent cached command run if available in the task evidence (used with run action).' },
|
|
41
|
+
{ flag: '--tasks', value: 'csv', summary: 'Task ids to slice into per-task historical-batch close-readiness evidence.' },
|
|
42
|
+
{ flag: '--commits', value: 'csv', summary: 'Delivery commit refs that historical-batch will inspect and match back to the listed tasks.' },
|
|
43
|
+
{ flag: '--delivery-repo', value: 'path', summary: 'Repository that contains the historical delivery commits matched into the historical-batch envelope.' },
|
|
44
|
+
{ flag: '--validator-command', value: 'text', summary: 'Validator command to run once for a historical batch; repeatable. The resulting passes are shared into task slices for later close-readiness checks.' },
|
|
45
|
+
{ flag: '--write', summary: 'Write the historical-batch envelope plus per-task slices that tasks close / taskflow close can consume later.' },
|
|
46
|
+
{ flag: '--dry-run', summary: 'Preview historical-batch matching and close-readiness evidence without writing.' },
|
|
47
|
+
{ flag: '--allow-unmatched', summary: 'Allow diagnostic historical batches even when some tasks have no scoped commit match.' },
|
|
48
|
+
{ flag: '--approved-by', value: 'actor', summary: 'Required with --allow-unmatched: approver for diagnostic-only historical batch evidence.' },
|
|
49
|
+
{ flag: '--approval-reason', value: 'text', summary: 'Required with --allow-unmatched: justification for recording unmatched historical batch diagnostics.' },
|
|
50
|
+
{ flag: '--batch', value: 'id-or-path', summary: 'Historical-batch-finalize only: batch id or envelope path for the diagnostic slice disposition.' },
|
|
51
|
+
{ flag: '--disposition', value: 'type', summary: 'Historical-batch-finalize only: keep-diagnostic|abandon|remove-evidence for non-close-ready task slices.' },
|
|
52
|
+
commonJsonOption,
|
|
53
|
+
commonPrettyOption,
|
|
54
|
+
commonHelpOption
|
|
55
|
+
],
|
|
56
|
+
examples: [
|
|
57
|
+
'node atm.mjs evidence run --task ATM-GOV-0104 --actor codex-main --command "npm run typecheck" --json',
|
|
58
|
+
'node atm.mjs evidence run --task ATM-GOV-0104 --actor codex-main --command "npm run validate:cli" --validators validate:cli --recent-run --json',
|
|
59
|
+
'node atm.mjs evidence run --task TASK-TEAM-0014 --actor codex-main --command "node atm.mjs team patrol --task TASK-TEAM-0014 --json" --json',
|
|
60
|
+
'node atm.mjs evidence add --task ATM-GOV-0104 --actor codex-main --kind test --summary "raw artifact evidence" --artifacts reports/governance.json --json',
|
|
61
|
+
'node atm.mjs evidence add --task ATM-GOV-0104 --actor codex-main --kind test --freshness fresh --command "npm run typecheck" --exit-code 0 --stdout-sha256 sha256:1111111111111111111111111111111111111111111111111111111111111111 --stderr-sha256 sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 --validators typecheck --json',
|
|
62
|
+
'node atm.mjs evidence git-head-backfill --actor codex-main --reason "Backfill evidence for a pre-ATM HEAD commit" --json',
|
|
63
|
+
'node atm.mjs evidence verify --task ATM-GOV-0104 --gate close --json',
|
|
64
|
+
'node atm.mjs evidence validators --list --task ATM-GOV-0104 --json',
|
|
65
|
+
'node atm.mjs evidence missing --task ATM-GOV-0104 --actor Augment --json',
|
|
66
|
+
'node atm.mjs evidence diagnose --task ATM-GOV-0104 --actor codex-main --symptom "claim writes reserve before seal check" --reproducer-command "node atm.mjs next --claim ..." --symptom-observed --reproduction-rate 1 --minimized-fixture tests/fixtures/claim-seal --candidate-digest sha256:1111111111111111111111111111111111111111111111111111111111111111 --environment-digest sha256:2222222222222222222222222222222222222222222222222222222222222222 --hypothesis "h1|seal runs too late|ledger mutates before seal failure|node --strip-types tests/cli/claim-atomicity.test.ts|matched" --winning-hypothesis h1 --regression-case-id test_claim_atomicity --green-command "node --strip-types tests/cli/claim-atomicity.test.ts" --green-exit-code 0 --green-stdout-sha256 sha256:3333333333333333333333333333333333333333333333333333333333333333 --green-stderr-sha256 sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 --write --json',
|
|
67
|
+
'node atm.mjs evidence historical-batch --tasks TASK-A,TASK-B --commits abc123,def456 --actor codex-main --validator-command "npm run validate:cli" --dry-run --json',
|
|
68
|
+
'node atm.mjs evidence historical-batch --tasks TASK-A,TASK-B --commits abc123,def456 --actor codex-main --validators typecheck --validator-command "npm run typecheck" --write --json',
|
|
69
|
+
'node atm.mjs evidence historical-batch --tasks TASK-A,TASK-B --commits abc123 --actor codex-main --validator-command "npm test" --allow-unmatched --approved-by captain --approval-reason "diagnostic backfill" --write --json',
|
|
70
|
+
'node atm.mjs evidence historical-batch-finalize --task TASK-B --batch hist-batch-2026-06-16T01-40-43-634Z --actor codex-main --disposition keep-diagnostic --reason "partial slice kept for audit only" --write --json',
|
|
71
|
+
'node atm.mjs evidence wave-exit-observer --exit EXIT-02 --actor gemini-wave-exit-observer --observer-role wave-exit-observer.gemini --basis-owners ATM-GOV-0341 --json',
|
|
72
|
+
'node atm.mjs evidence wave-exit-observer --exit EXIT-04 --actor claude-wave-exit-observer --observer-role wave-exit-observer.claude --basis-owners ATM-GOV-0341 --json'
|
|
73
|
+
],
|
|
74
|
+
help: {
|
|
75
|
+
audience: 'agent',
|
|
76
|
+
requiredFlagSets: [
|
|
77
|
+
{ when: 'Recording governed evidence for one task', flags: ['--task', '--actor'] },
|
|
78
|
+
{ when: 'Running a command-backed validator', flags: ['run', '--command'] },
|
|
79
|
+
{ when: 'Writing a diagnostic historical batch with unmatched tasks', flags: ['--allow-unmatched', '--approved-by', '--approval-reason'] },
|
|
80
|
+
{ when: 'Finalizing a diagnostic historical-batch slice', flags: ['historical-batch-finalize', '--task', '--batch', '--actor', '--disposition', '--reason'] },
|
|
81
|
+
{ when: 'Writing a sealed wave-exit observer receipt', flags: ['wave-exit-observer', '--exit', '--actor', '--observer-role', '--basis-owners'] }
|
|
82
|
+
],
|
|
83
|
+
relatedCommands: [
|
|
84
|
+
'node atm.mjs evidence validators --list --task TASK-ABC-0001 --json',
|
|
85
|
+
'node atm.mjs taskflow pre-close --task TASK-ABC-0001 --actor <actor-id> --json',
|
|
86
|
+
'node atm.mjs tasks status --task TASK-ABC-0001 --residue --json'
|
|
87
|
+
],
|
|
88
|
+
commonMistakes: [
|
|
89
|
+
'Manually typing validator names when evidence run can auto-link a declared validator from the command.',
|
|
90
|
+
'Using raw evidence add as a substitute for fresh command-backed validation when the task requires validators.',
|
|
91
|
+
'Writing historical-batch evidence without checking whether the matched commits actually cover the task deliverables.',
|
|
92
|
+
'Trying to use historical-batch-finalize on a close-ready slice; close-ready slices must go through taskflow close.',
|
|
93
|
+
'Treating git-head-backfill as a protected-push requirement instead of a repair/diagnostic tool for legacy HEAD evidence.',
|
|
94
|
+
'Hand-writing docs/reports/wave-exit-observer-receipts/<EXIT-id>.json or passing --command/--artifact-path to invent an observer receipt.'
|
|
95
|
+
],
|
|
96
|
+
playbookNotes: [
|
|
97
|
+
'evidence validators --list is the fastest way to see what a task still needs before closeout.',
|
|
98
|
+
'Use --recent-run when a matching cached command run already exists and you only need to re-link it into the current evidence update.',
|
|
99
|
+
'Use historical-batch-finalize to explicitly keep, abandon, or remove diagnostic-only historical-batch residue without changing task lifecycle state.',
|
|
100
|
+
'git-head-backfill is retained for repair and audit trails; same-commit governed provenance should normally come from node atm.mjs git commit instead of a follow-up backfill.',
|
|
101
|
+
'evidence wave-exit-observer is the only official writer for canonical wave-exit observer receipts. It never writes certificates, completion evidence, or release verdicts.'
|
|
102
|
+
]
|
|
103
|
+
}
|
|
104
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { defineCommandSpec } from '../shared.js';
|
|
2
|
+
import { commonCwdOption, commonHelpOption, commonJsonOption, commonPrettyOption, } from './_common.js';
|
|
3
|
+
export default defineCommandSpec({
|
|
4
|
+
name: 'experience',
|
|
5
|
+
summary: 'Extract reviewable learning artifacts from ATM evidence.',
|
|
6
|
+
positional: [
|
|
7
|
+
{ name: 'action', summary: 'Currently supports: extract', required: true }
|
|
8
|
+
],
|
|
9
|
+
options: [
|
|
10
|
+
commonCwdOption,
|
|
11
|
+
{ flag: '--from-task', value: 'id', summary: 'Override source task id from the input evidence.' },
|
|
12
|
+
{ flag: '--input', value: 'path', summary: 'Experience extraction input JSON path.' },
|
|
13
|
+
{ flag: '--out', value: 'path', summary: 'Write the skill candidate JSON artifact.' },
|
|
14
|
+
{ flag: '--advisory-out', value: 'path', summary: 'Write the review advisory JSON artifact.' },
|
|
15
|
+
{ flag: '--queue', value: 'path', summary: 'Append the generated proposal to a human-review queue.' },
|
|
16
|
+
{ flag: '--projection', value: 'path', summary: 'Write a Markdown projection for the human-review queue.' },
|
|
17
|
+
{ flag: '--by', value: 'actor', summary: 'Actor label for behavior execution evidence.' },
|
|
18
|
+
commonJsonOption,
|
|
19
|
+
commonPrettyOption,
|
|
20
|
+
commonHelpOption
|
|
21
|
+
],
|
|
22
|
+
examples: [
|
|
23
|
+
'node atm.mjs experience extract --input fixtures/experience-loop/task-evidence.json --json',
|
|
24
|
+
'node atm.mjs experience extract --input evidence.json --out .atm/history/artifacts/skill-candidate.json --json'
|
|
25
|
+
]
|
|
26
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defineCommandSpec } from '../shared.js';
|
|
2
|
+
import { commonCwdOption, commonHelpOption, commonJsonOption, commonPrettyOption, } from './_common.js';
|
|
3
|
+
export default defineCommandSpec({
|
|
4
|
+
name: 'explain',
|
|
5
|
+
summary: 'Explain guidance blocks and the evidence needed to proceed.',
|
|
6
|
+
options: [
|
|
7
|
+
commonCwdOption,
|
|
8
|
+
{ flag: '--why', value: 'reason', summary: 'Currently supports: blocked.' },
|
|
9
|
+
{ flag: '--session', value: 'id', summary: 'Guidance session id; defaults to the active session.' },
|
|
10
|
+
commonJsonOption,
|
|
11
|
+
commonPrettyOption,
|
|
12
|
+
commonHelpOption
|
|
13
|
+
],
|
|
14
|
+
examples: [
|
|
15
|
+
'node atm.mjs explain --why blocked --json',
|
|
16
|
+
'node atm.mjs explain --why blocked --session <session-id> --json'
|
|
17
|
+
]
|
|
18
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineCommandSpec } from '../shared.js';
|
|
2
|
+
import { commonCwdOption, commonHelpOption, commonJsonOption, commonPrettyOption, } from './_common.js';
|
|
3
|
+
export default defineCommandSpec({
|
|
4
|
+
name: 'framework-mode',
|
|
5
|
+
summary: 'Inspect, claim, or release ATM framework-development hard gates for critical source changes, including staged residue warnings and same-actor stale temp-claim auto-reconcile.',
|
|
6
|
+
positional: [
|
|
7
|
+
{ name: 'action', summary: 'status | claim | release', required: true }
|
|
8
|
+
],
|
|
9
|
+
options: [
|
|
10
|
+
commonCwdOption,
|
|
11
|
+
{ flag: '--repo', value: 'path', summary: 'Repository path to inspect.' },
|
|
12
|
+
{ flag: '--files', value: 'csv', summary: 'Optional comma-separated declared change scope instead of git diff.' },
|
|
13
|
+
{ flag: '--target-repo', value: 'path', summary: 'Optional cross-repo target repository path.' },
|
|
14
|
+
{ flag: '--actor', value: 'id', summary: 'Actor id for temporary framework-development claim/release.' },
|
|
15
|
+
{ flag: '--task', value: 'id', summary: 'Explicit active governed task to bind to a temporary framework claim; required when the actor has ambiguous active lanes.' },
|
|
16
|
+
{ flag: '--reason', value: 'text', summary: 'Reason for temporary framework-development claim.' },
|
|
17
|
+
commonJsonOption,
|
|
18
|
+
commonPrettyOption,
|
|
19
|
+
commonHelpOption
|
|
20
|
+
],
|
|
21
|
+
examples: [
|
|
22
|
+
'node atm.mjs framework-mode status --json',
|
|
23
|
+
'node atm.mjs framework-mode status --files packages/core/src/index.ts --json',
|
|
24
|
+
'node atm.mjs framework-mode status --target-repo ../AI-Atomic-Framework --json',
|
|
25
|
+
'node atm.mjs framework-mode claim --actor codex-main --task ATM-GOV-0001 --files packages/cli/src/commands/next.ts --reason "temporary framework maintenance" --json',
|
|
26
|
+
'node atm.mjs framework-mode release --actor codex-main --json'
|
|
27
|
+
]
|
|
28
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { defineCommandSpec } from '../shared.js';
|
|
2
|
+
import { commonCwdOption, commonHelpOption, commonJsonOption, commonPrettyOption, } from './_common.js';
|
|
3
|
+
export default defineCommandSpec({
|
|
4
|
+
name: 'git-hooks',
|
|
5
|
+
summary: 'Install or verify ATM-managed Git hooks for framework-development hard gates.',
|
|
6
|
+
positional: [
|
|
7
|
+
{ name: 'action', summary: 'install | verify', required: true }
|
|
8
|
+
],
|
|
9
|
+
options: [
|
|
10
|
+
commonCwdOption,
|
|
11
|
+
{ flag: '--repo', value: 'path', summary: 'Repository path.' },
|
|
12
|
+
{ flag: '--framework-required', summary: 'Treat missing hooks as an error even outside a detected framework repo.' },
|
|
13
|
+
commonJsonOption,
|
|
14
|
+
commonPrettyOption,
|
|
15
|
+
commonHelpOption
|
|
16
|
+
],
|
|
17
|
+
examples: [
|
|
18
|
+
'node atm.mjs git-hooks install --framework-required --json',
|
|
19
|
+
'node atm.mjs git-hooks verify --framework-required --json'
|
|
20
|
+
]
|
|
21
|
+
});
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { defineCommandSpec } from '../shared.js';
|
|
2
|
+
import { commonCwdOption, commonHelpOption, commonJsonOption, commonPrettyOption, } from './_common.js';
|
|
3
|
+
export default defineCommandSpec({
|
|
4
|
+
name: 'git',
|
|
5
|
+
summary: 'Prepare actor git identity, evaluate pre-push git admission, recover from rejected push attempts or a human-confirmed stale index lock, create governed commits with actor-scoped author env vars, create narrow record-only commits for low-risk .atm/history maintenance, verify ATM git-governance trailers, resolve task-scoped commit bundles, query the status of the last governed commit attempt plus live branch queue and stuck stdin pathspec staging diagnostics, and return copyable fallback plus host-git compatibility guidance when the wrapper cannot complete.',
|
|
6
|
+
positional: [
|
|
7
|
+
{ name: 'action', summary: 'prepare | admit | push | recover-push-fail | recover-index-lock | reconcile-live-index | check | commit | record-commit | commit-status | attest', required: true }
|
|
8
|
+
],
|
|
9
|
+
options: [
|
|
10
|
+
commonCwdOption,
|
|
11
|
+
{ flag: '--actor', value: 'id', summary: 'Actor id used for git identity and trailer checks.' },
|
|
12
|
+
{ flag: '--task', value: 'id', summary: 'Optional task id to enforce owner/claim/trailer consistency.' },
|
|
13
|
+
{ flag: '--branch', value: 'name', summary: 'Branch name for git admit/push; defaults to the current HEAD branch.' },
|
|
14
|
+
{ flag: '--remote', value: 'name', summary: 'Remote name for git admit/push; defaults to origin.' },
|
|
15
|
+
{ flag: '--no-fetch', summary: 'For git admit/push: do not fetch the remote branch before diffing.' },
|
|
16
|
+
{ flag: '--dry-run', summary: 'For git push: run admission and write push-attempt evidence without executing host git push.' },
|
|
17
|
+
{ flag: '--branch', value: 'name', summary: 'Branch name for git recover-push-fail; defaults to the current HEAD branch.' },
|
|
18
|
+
{ flag: '--remote', value: 'name', summary: 'Remote name for git recover-push-fail; defaults to origin.' },
|
|
19
|
+
{ flag: '--steward-plan', summary: 'For git admit composer-routed cases: emit a neutral steward dry-run merge plan without mutating files.' },
|
|
20
|
+
{ flag: '--apply-to-working-tree', summary: 'For git admit composer-routed cases: explicitly apply the steward merge result to scoped working-tree files without creating a commit.' },
|
|
21
|
+
{ flag: '--name', value: 'text', summary: 'Override git author name for prepare/commit; with --email, also seeds the actor runtime identity profile during prepare.' },
|
|
22
|
+
{ flag: '--email', value: 'text', summary: 'Override git author email for prepare/commit; with --name, also seeds the actor runtime identity profile during prepare.' },
|
|
23
|
+
{ flag: '--session', value: 'session-id', summary: 'Optional ATM work session id for check/commit alignment.' },
|
|
24
|
+
{ flag: '--message', value: 'text', summary: 'Commit summary for git commit; ATM appends governed trailers automatically.' },
|
|
25
|
+
{ flag: '--trailer', value: 'text', summary: 'Repeatable extra trailer line for git commit (e.g. an editor-injected Co-authored-by line); folded into the governed trailer set instead of failing the commit.' },
|
|
26
|
+
{ flag: '--auto-stage', summary: 'Stage only the current task allowed delivery bundle with explicit git add -- <paths>; never use stdin pathspec staging, and report skipped external dirty files without using git add .' },
|
|
27
|
+
{ flag: '--delivery-slice-manifest', value: 'path', summary: 'Optional verified publication delivery-slice manifest. Restricts --auto-stage to outputInventory ∩ current dirty plus receipt-derived required records; same-task certificate/closeout dirt is not absorbed.' },
|
|
28
|
+
{ flag: '--delivery-slice-receipt', value: 'path', summary: 'Derive the publication delivery slice directly from the current task canonical published runner-sync receipt; mutually exclusive with --delivery-slice-manifest.' },
|
|
29
|
+
{ flag: '--defer-foreign-staged', summary: 'Snapshot and unstage foreign task governance files already in the index before resolving the bundle; never silent.' },
|
|
30
|
+
{ flag: '--dry-run', summary: 'Resolve the task-scoped commit bundle without staging or committing; for record-commit, validate the staged record-only scope without mutating HEAD.' },
|
|
31
|
+
{ flag: '--no-verify', summary: 'Emergency-only pass-through to git commit; requires --emergency-approval with backend.gitHookBypass permission and cannot override Team Broker conflicts by itself.' },
|
|
32
|
+
{ flag: '--wip', summary: 'For git commit: commit staged files with non-delivery ATM-WIP trailers and bypass full repository-wide typecheck.' },
|
|
33
|
+
{ flag: '--emergency-approval', value: 'leaseId', summary: 'Required when --no-verify is used; must authorize backend.gitHookBypass.' },
|
|
34
|
+
{ flag: '--write', summary: 'For git reconcile-live-index: apply proven parent-blob residue after a dry-run; omitted or combined with --dry-run never mutates the index.' },
|
|
35
|
+
{ flag: '--broker-conflict-override', value: 'leaseId', summary: 'High-authority override for Team Broker cross-task conflicts; must authorize backend.brokerConflictOverride and be paired with --broker-conflict-resolution.' },
|
|
36
|
+
{ flag: '--broker-conflict-resolution', value: 'path', summary: 'Paper-style Team Broker conflict-resolution artifact proving conflict task id, shared paths, resolution order, and validator plan.' },
|
|
37
|
+
{ flag: '--reason', value: 'text', summary: 'Human-readable reason for the governed hook bypass when using --no-verify.' },
|
|
38
|
+
{ flag: '--no-trailers', summary: 'Skip trailer checks in git check (identity/owner checks still run).' },
|
|
39
|
+
{ flag: '--timeout-ms', value: 'ms', summary: 'For git commit: override the default 420000ms timeout for the underlying git commit spawn (also settable via ATM_GIT_COMMIT_TIMEOUT_MS); a hung pre-commit hook fails as a retryable timeout instead of hanging forever. Commit also fails fast when a git add --pathspec-from-file=- helper is already waiting on stdin.' },
|
|
40
|
+
{ flag: '--commit', value: 'sha', summary: 'For git attest: immutable historical commit to cover with a forward attestation. For git reconcile-live-index: the already-successful commit whose parent-tree residue may still occupy the live index.' },
|
|
41
|
+
{ flag: '--lane', value: 'lane-id', summary: 'For git attest: lane/session id that reviewed and produced the forward attestation.' },
|
|
42
|
+
{ flag: '--provenance-kind', value: 'ticket|emergency', summary: 'For git attest: provenance class for the forward attestation.' },
|
|
43
|
+
{ flag: '--provenance-ref', value: 'ref', summary: 'For git attest: immutable evidence file or git:<sha> commit message used as provenance.' },
|
|
44
|
+
{ flag: '--provenance-digest', value: 'sha256:<digest>', summary: 'For git attest: digest of the provenance reference.' },
|
|
45
|
+
{ flag: '--reason', value: 'text', summary: 'For git attest emergency writes: human-readable reason for the forward attestation.' },
|
|
46
|
+
{ flag: '--emergency-class', value: 'class', summary: 'For git attest emergency writes: emergency class such as runner-sync-publication or protected-push-recovery.' },
|
|
47
|
+
{ flag: '--scope', value: 'path', summary: 'For git attest emergency writes: repeatable or comma-separated path scope covered by the attestation.' },
|
|
48
|
+
{ flag: '--evidence-ref', value: 'ref', summary: 'For git attest emergency writes: repeatable or comma-separated supporting evidence reference.' },
|
|
49
|
+
{ flag: '--status', summary: 'For git attest: inspect the append-only attestation ledger without writing.' },
|
|
50
|
+
{ flag: '--validate', summary: 'For git attest: validate existing attestation ledger records without writing.' },
|
|
51
|
+
commonJsonOption,
|
|
52
|
+
commonPrettyOption,
|
|
53
|
+
commonHelpOption
|
|
54
|
+
],
|
|
55
|
+
examples: [
|
|
56
|
+
'node atm.mjs git prepare --task ATM-GOV-0105 --actor codex-main --json',
|
|
57
|
+
'node atm.mjs git prepare --actor codex-main --name "Codex Main" --email codex-main@atm.local --json',
|
|
58
|
+
'node atm.mjs git admit --actor codex-main --branch main --remote origin --json',
|
|
59
|
+
'node atm.mjs git push --actor codex-main --branch main --remote origin --dry-run --json',
|
|
60
|
+
'node atm.mjs git push --actor codex-main --branch main --remote origin --json',
|
|
61
|
+
'node atm.mjs git admit --actor codex-main --branch main --remote origin --steward-plan --json',
|
|
62
|
+
'node atm.mjs git admit --actor codex-main --branch main --remote origin --apply-to-working-tree --json',
|
|
63
|
+
'node atm.mjs git recover-push-fail --actor codex-main --branch main --remote origin --json',
|
|
64
|
+
'node atm.mjs git recover-index-lock --task ATM-GOV-0105 --actor codex-main --force-index-lock-recovery --emergency-approval <lease-id> --reason "human-confirmed stale lock" --json',
|
|
65
|
+
'node atm.mjs git reconcile-live-index --commit <sha> --dry-run --json',
|
|
66
|
+
'node atm.mjs git reconcile-live-index --commit <sha> --write --json',
|
|
67
|
+
'node atm.mjs git check --task ATM-GOV-0105 --actor codex-main --json',
|
|
68
|
+
'node atm.mjs git check --actor codex-main --json',
|
|
69
|
+
'node atm.mjs git commit --actor codex-main --task TASK-AAO-0036 --message "atm: sync TASK-AAO-0036 ledger mirror" --json',
|
|
70
|
+
'node atm.mjs git commit --actor codex-main --task TASK-AAO-0063 --message "atm: restore TASK-AAO-0063 historical ledger packet" --json',
|
|
71
|
+
'node atm.mjs git commit --actor codex-main --task ATM-GOV-0105 --message "complete ATM-GOV-0105" --json',
|
|
72
|
+
'node atm.mjs git commit --actor codex-main --task TASK-AAO-0141 --message "feat: scoped deliverable" --auto-stage --json',
|
|
73
|
+
'node atm.mjs git commit --actor codex-main --task TASK-AAO-0141 --message "build(runner): record sealed runner publication outputs" --auto-stage --delivery-slice-manifest .atm/history/evidence/TASK-AAO-0141.delivery-slice.json --dry-run --json',
|
|
74
|
+
'node atm.mjs git commit --actor codex-main --task TASK-AAO-0141 --message "build(runner): record sealed runner publication outputs" --auto-stage --delivery-slice-receipt .atm/history/evidence/TASK-AAO-0141.runner-sync-receipt.json --dry-run --json',
|
|
75
|
+
'node atm.mjs git commit --actor codex-main --task TASK-AAO-0141 --message "feat: scoped deliverable" --dry-run --json',
|
|
76
|
+
'node atm.mjs git commit --actor codex-main --task TASK-AAO-0141 --message "feat: scoped deliverable" --auto-stage --timeout-ms 30000 --json',
|
|
77
|
+
'node atm.mjs git record-commit --actor codex-main --message "atm: sync imported task records" --dry-run --json',
|
|
78
|
+
'node atm.mjs git record-commit --actor codex-main --message "atm: sync imported task records" --json',
|
|
79
|
+
'node atm.mjs git commit-status --actor codex-main --task TASK-AAO-0141 --json',
|
|
80
|
+
'node atm.mjs git attest --status --json',
|
|
81
|
+
'node atm.mjs git attest --validate --json',
|
|
82
|
+
'node atm.mjs git attest --commit <sha> --task TASK-GIT-0024 --actor codex-main --lane <lane-id> --provenance-kind emergency --provenance-ref git:<sha> --provenance-digest sha256:<digest> --reason "<reason>" --emergency-class protected-push-recovery --scope packages/cli/src --evidence-ref git:<sha> --dry-run --json'
|
|
83
|
+
]
|
|
84
|
+
});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineCommandSpec } from '../shared.js';
|
|
2
|
+
import { commonCwdOption, commonHelpOption, commonJsonOption, commonPrettyOption, } from './_common.js';
|
|
3
|
+
export default defineCommandSpec({
|
|
4
|
+
name: 'guard',
|
|
5
|
+
summary: 'Run governance guards for encoding, mutation scope, git metadata, framework development, and commit ranges.',
|
|
6
|
+
positional: [
|
|
7
|
+
{ name: 'guard-name', summary: 'encoding | mutation | git | atom-callsite-readability | framework-development | commit-range', required: true }
|
|
8
|
+
],
|
|
9
|
+
options: [
|
|
10
|
+
commonCwdOption,
|
|
11
|
+
{ flag: '--repo', value: 'path', summary: 'Repository path for atom-callsite-readability guard.' },
|
|
12
|
+
{ flag: '--task', value: 'id', summary: 'Task id for mutation or git guard checks.' },
|
|
13
|
+
{ flag: '--actor', value: 'id', summary: 'Actor id for mutation or git guard checks.' },
|
|
14
|
+
{ flag: '--files', value: 'csv', summary: 'Comma-separated file paths for the guard or declared framework scope.' },
|
|
15
|
+
{ flag: '--base', value: 'ref', summary: 'Base ref for commit-range guard.' },
|
|
16
|
+
{ flag: '--head', value: 'ref', summary: 'Head ref for commit-range guard.' },
|
|
17
|
+
{ flag: '--fail-open', summary: 'Return ok=true with warnings when violations are detected.' },
|
|
18
|
+
commonJsonOption,
|
|
19
|
+
commonPrettyOption,
|
|
20
|
+
commonHelpOption
|
|
21
|
+
],
|
|
22
|
+
examples: [
|
|
23
|
+
'node atm.mjs guard encoding --files README.md,package.json --json',
|
|
24
|
+
'node atm.mjs guard mutation --task ATM-GOV-0106 --actor codex-main --files packages/cli/src/commands/guard.ts --json',
|
|
25
|
+
'node atm.mjs guard git --task ATM-GOV-0106 --actor codex-main --json',
|
|
26
|
+
'node atm.mjs guard atom-callsite-readability --repo . --json',
|
|
27
|
+
'node atm.mjs guard framework-development --files packages/core/src/index.ts --json',
|
|
28
|
+
'node atm.mjs guard commit-range --base origin/main --head HEAD --json'
|
|
29
|
+
]
|
|
30
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { defineCommandSpec } from '../shared.js';
|
|
2
|
+
import { commonCwdOption, commonHelpOption, commonJsonOption, commonPrettyOption, } from './_common.js';
|
|
3
|
+
export default defineCommandSpec({
|
|
4
|
+
name: 'guide',
|
|
5
|
+
summary: 'Show guided ATM workflows, classify free-text goals, and record host-local intent phrases.',
|
|
6
|
+
positional: [
|
|
7
|
+
{ name: 'intent', summary: 'overview | first-layer | create-atom | create-map | bootstrap | glossary | help | learn | install-skill', required: false },
|
|
8
|
+
{ name: 'command', summary: 'Command name when intent is help.', required: false }
|
|
9
|
+
],
|
|
10
|
+
options: [
|
|
11
|
+
commonCwdOption,
|
|
12
|
+
{ flag: '--goal', value: 'text', summary: 'Classify a natural-language goal and return the required guidance flow.' },
|
|
13
|
+
{ flag: '--phrase', value: 'text', summary: 'Host-local phrase to record when intent is learn.' },
|
|
14
|
+
{ flag: '--intent', value: 'id', summary: 'Intent id for guide learn: legacy-atomization | legacy-candidate-ranking | task-plan-import.' },
|
|
15
|
+
{ flag: '--reason', value: 'text', summary: 'Review reason for adding a learned host-local phrase.' },
|
|
16
|
+
{ flag: '--status', value: 'status', summary: 'Learned phrase status: suggested | active-host | promoted-framework.' },
|
|
17
|
+
{ flag: '--target', value: 'host|codex', summary: 'Skill installation target for guide install-skill.' },
|
|
18
|
+
{ flag: '--skills-root', value: 'path', summary: 'Override Codex skills root when installing with --target codex.' },
|
|
19
|
+
{ flag: '--force', summary: 'Overwrite an existing installed skill.' },
|
|
20
|
+
commonJsonOption,
|
|
21
|
+
commonPrettyOption,
|
|
22
|
+
commonHelpOption
|
|
23
|
+
],
|
|
24
|
+
examples: [
|
|
25
|
+
'node atm.mjs guide --goal "Atomize a legacy helper" --json',
|
|
26
|
+
'node atm.mjs guide --goal "Rank the messiest Python pipeline scripts" --json',
|
|
27
|
+
'node atm.mjs guide learn --phrase "brown path washing" --intent legacy-atomization --reason "host phrasing for legacy atomization" --status active-host --json',
|
|
28
|
+
'node atm.mjs guide install-skill --target host --json',
|
|
29
|
+
'node atm.mjs guide first-layer --json',
|
|
30
|
+
'node atm.mjs guide overview --json',
|
|
31
|
+
'node atm.mjs guide glossary --json',
|
|
32
|
+
'node atm.mjs guide help next --json'
|
|
33
|
+
]
|
|
34
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineCommandSpec } from '../shared.js';
|
|
2
|
+
import { commonCwdOption, commonHelpOption, commonJsonOption, commonPrettyOption, } from './_common.js';
|
|
3
|
+
export default defineCommandSpec({
|
|
4
|
+
name: 'handoff',
|
|
5
|
+
summary: 'Write continuation summaries for governed work.',
|
|
6
|
+
positional: [
|
|
7
|
+
{ name: 'action', summary: 'Currently supports: summarize', required: true }
|
|
8
|
+
],
|
|
9
|
+
options: [
|
|
10
|
+
commonCwdOption,
|
|
11
|
+
{ flag: '--task', value: 'id', summary: 'Work item id to summarize.' },
|
|
12
|
+
commonJsonOption,
|
|
13
|
+
commonPrettyOption,
|
|
14
|
+
commonHelpOption
|
|
15
|
+
],
|
|
16
|
+
examples: [
|
|
17
|
+
'node atm.mjs handoff summarize --task BOOTSTRAP-0001 --json'
|
|
18
|
+
]
|
|
19
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { defineCommandSpec } from '../shared.js';
|
|
2
|
+
import { commonCwdOption, commonHelpOption, commonJsonOption, commonPrettyOption, } from './_common.js';
|
|
3
|
+
export default defineCommandSpec({
|
|
4
|
+
name: 'health-report',
|
|
5
|
+
summary: 'Generate a map health report and highlight high-risk atoms or bottlenecks.',
|
|
6
|
+
options: [
|
|
7
|
+
commonCwdOption,
|
|
8
|
+
{ flag: '--map', value: 'id', summary: 'Map id to inspect.' },
|
|
9
|
+
commonJsonOption,
|
|
10
|
+
commonPrettyOption,
|
|
11
|
+
commonHelpOption
|
|
12
|
+
],
|
|
13
|
+
examples: [
|
|
14
|
+
'node atm.mjs health-report --map ATM-MAP-0001 --json'
|
|
15
|
+
]
|
|
16
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineCommandSpec } from '../shared.js';
|
|
2
|
+
import { commonCwdOption, commonHelpOption, commonJsonOption, commonPrettyOption, } from './_common.js';
|
|
3
|
+
export default defineCommandSpec({
|
|
4
|
+
name: 'hook',
|
|
5
|
+
summary: 'Run ATM-managed repository Git hook gates.',
|
|
6
|
+
positional: [
|
|
7
|
+
{ name: 'action', summary: 'pre-commit | pre-push', required: true }
|
|
8
|
+
],
|
|
9
|
+
options: [
|
|
10
|
+
commonCwdOption,
|
|
11
|
+
{ flag: '--repo', value: 'path', summary: 'Repository path.' },
|
|
12
|
+
{ flag: '--base', value: 'ref', summary: 'Base ref for pre-push commit-range validation.' },
|
|
13
|
+
{ flag: '--head', value: 'ref', summary: 'Head ref for pre-push commit-range validation.' },
|
|
14
|
+
commonJsonOption,
|
|
15
|
+
commonPrettyOption,
|
|
16
|
+
commonHelpOption
|
|
17
|
+
],
|
|
18
|
+
examples: [
|
|
19
|
+
'node atm.mjs hook pre-commit --json',
|
|
20
|
+
'node atm.mjs hook pre-push --base origin/main --head HEAD --json'
|
|
21
|
+
]
|
|
22
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { defineCommandSpec } from '../shared.js';
|
|
2
|
+
import { commonCwdOption, commonHelpOption, commonJsonOption, commonPrettyOption, } from './_common.js';
|
|
3
|
+
export default defineCommandSpec({
|
|
4
|
+
name: 'identity',
|
|
5
|
+
summary: 'Manage per-actor runtime git identity profiles, inspect hints, and clear stale repo-default identities before agent handoff.',
|
|
6
|
+
positional: [
|
|
7
|
+
{ name: 'action', summary: 'set | show | status | clear', required: true }
|
|
8
|
+
],
|
|
9
|
+
options: [
|
|
10
|
+
commonCwdOption,
|
|
11
|
+
{ flag: '--actor', value: 'id', summary: 'Actor id for the per-actor identity profile; omit on set to update repo default.json.' },
|
|
12
|
+
{ flag: '--name', value: 'text', summary: 'Optional display name; when combined with --kind, also updates actor registry.' },
|
|
13
|
+
{ flag: '--kind', value: 'kind', summary: 'Optional actor kind: human | ai-agent | automation.' },
|
|
14
|
+
{ flag: '--provider', value: 'text', summary: 'Optional provider label for registry/default identity.' },
|
|
15
|
+
{ flag: '--editor', value: 'text', summary: 'Optional editor/host label for registry/default identity.' },
|
|
16
|
+
{ flag: '--git-name', value: 'text', summary: 'Preferred git author name for this actor.' },
|
|
17
|
+
{ flag: '--git-email', value: 'text', summary: 'Preferred git author email for this actor.' },
|
|
18
|
+
{ flag: '--contact', value: 'text', summary: 'Optional owner/contact for registry update.' },
|
|
19
|
+
{ flag: '--capabilities', value: 'csv', summary: 'Optional capability tags for registry update.' },
|
|
20
|
+
{ flag: '--active-session', value: 'session-id', summary: 'Override the active session hint stored with the default identity.' },
|
|
21
|
+
commonJsonOption,
|
|
22
|
+
commonPrettyOption,
|
|
23
|
+
commonHelpOption
|
|
24
|
+
],
|
|
25
|
+
examples: [
|
|
26
|
+
'node atm.mjs identity set --actor codex-main --git-name "codex-main" --git-email codex-main@atm.local --editor codex --json',
|
|
27
|
+
'node atm.mjs identity set --git-name "solo-user" --git-email solo-user@example.local --json',
|
|
28
|
+
'node atm.mjs identity clear --json',
|
|
29
|
+
'node atm.mjs identity clear --actor codex-main --json',
|
|
30
|
+
'node atm.mjs identity status --json',
|
|
31
|
+
'node atm.mjs identity show --actor codex-main --json',
|
|
32
|
+
'node atm.mjs identity show --json'
|
|
33
|
+
]
|
|
34
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { defineCommandSpec } from '../shared.js';
|
|
2
|
+
import { commonCwdOption, commonHelpOption, commonJsonOption, commonPrettyOption, } from './_common.js';
|
|
3
|
+
export default defineCommandSpec({
|
|
4
|
+
name: 'init',
|
|
5
|
+
summary: 'Adopt ATM in a repository.',
|
|
6
|
+
options: [
|
|
7
|
+
commonCwdOption,
|
|
8
|
+
{ flag: '--adopt', value: 'profile', summary: 'Adoption profile (default when flag is present without value: default).' },
|
|
9
|
+
{ flag: '--integration', value: 'id', summary: 'Install an integration adapter during init.' },
|
|
10
|
+
{ flag: '--task', value: 'text', summary: 'Bootstrap task title override.' },
|
|
11
|
+
{ flag: '--dry-run', summary: 'Preview init/adopt changes without writing files.' },
|
|
12
|
+
{ flag: '--force', summary: 'Overwrite existing config and bootstrap files.' },
|
|
13
|
+
commonJsonOption,
|
|
14
|
+
commonPrettyOption,
|
|
15
|
+
commonHelpOption
|
|
16
|
+
],
|
|
17
|
+
examples: [
|
|
18
|
+
'node atm.mjs init --adopt default --json',
|
|
19
|
+
'node atm.mjs init --integration claude-code --json'
|
|
20
|
+
]
|
|
21
|
+
});
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { defineCommandSpec } from '../shared.js';
|
|
2
|
+
import { commonCwdOption, commonHelpOption, commonJsonOption, commonPrettyOption, } from './_common.js';
|
|
3
|
+
export default defineCommandSpec({
|
|
4
|
+
name: 'integration',
|
|
5
|
+
summary: 'List, install, verify, remove, or run ATM agent integration adapters and hooks.',
|
|
6
|
+
positional: [
|
|
7
|
+
{ name: 'action', summary: 'list | add | verify | parity | remove | hook | hooks', required: false },
|
|
8
|
+
{ name: 'adapter-id', summary: 'Adapter id for add/verify/remove or hook event/action.', required: false },
|
|
9
|
+
{ name: 'hook-adapter-id', summary: 'Adapter id for hooks install/verify/uninstall, including git-pre-push.', required: false }
|
|
10
|
+
],
|
|
11
|
+
options: [
|
|
12
|
+
commonCwdOption,
|
|
13
|
+
{ flag: '--repo', value: 'path', summary: 'Repository path for hook invocations.' },
|
|
14
|
+
{ flag: '--actor', value: 'name', summary: 'Actor label recorded in install manifests.' },
|
|
15
|
+
{ flag: '--at', value: 'timestamp', summary: 'Install timestamp override.' },
|
|
16
|
+
{ flag: '--editor', value: 'id', summary: 'Editor id for integration hook pre-agent/pre-tool.' },
|
|
17
|
+
{ flag: '--prompt', value: 'text', summary: 'Prompt text for pre-agent hook evaluation.' },
|
|
18
|
+
{ flag: '--tool-name', value: 'name', summary: 'Tool name for pre-tool hook evaluation.' },
|
|
19
|
+
{ flag: '--command', value: 'command', summary: 'Shell command for pre-tool hook evaluation.' },
|
|
20
|
+
{ flag: '--files', value: 'csv', summary: 'Comma-separated paths for pre-tool hook evaluation.' },
|
|
21
|
+
{ flag: '--dry-run', summary: 'Preview integration install without writing files.' },
|
|
22
|
+
{ flag: '--force', summary: 'Overwrite existing manifests and target files.' },
|
|
23
|
+
commonJsonOption,
|
|
24
|
+
commonPrettyOption,
|
|
25
|
+
commonHelpOption
|
|
26
|
+
],
|
|
27
|
+
examples: [
|
|
28
|
+
'node atm.mjs integration list --json',
|
|
29
|
+
'node atm.mjs integration add claude-code --json',
|
|
30
|
+
'node atm.mjs integration add codex --json',
|
|
31
|
+
'node atm.mjs integration add antigravity --json',
|
|
32
|
+
'node atm.mjs integration verify claude-code --json',
|
|
33
|
+
'node atm.mjs integration parity --json',
|
|
34
|
+
'node atm.mjs integration remove claude-code --json',
|
|
35
|
+
'node atm.mjs integration hook pre-agent --editor copilot --json',
|
|
36
|
+
'node atm.mjs integration hook pre-tool --editor claude-code --files packages/core/src/index.ts --json',
|
|
37
|
+
'node atm.mjs integration hooks install copilot --json',
|
|
38
|
+
'node atm.mjs integration hooks verify claude-code --json',
|
|
39
|
+
'node atm.mjs integration hooks install git-pre-push --json',
|
|
40
|
+
'node atm.mjs integration hooks verify git-pre-push --json',
|
|
41
|
+
'node atm.mjs integration hooks uninstall git-pre-push --json'
|
|
42
|
+
]
|
|
43
|
+
});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineCommandSpec } from '../shared.js';
|
|
2
|
+
import { commonCwdOption, commonHelpOption, commonJsonOption, commonPrettyOption } from './_common.js';
|
|
3
|
+
export default defineCommandSpec({
|
|
4
|
+
name: 'internal-release',
|
|
5
|
+
summary: 'Build the ATM framework runner and sync it to explicitly listed internal repositories.',
|
|
6
|
+
positional: [
|
|
7
|
+
{ name: 'action', summary: 'sync', required: true }
|
|
8
|
+
],
|
|
9
|
+
options: [
|
|
10
|
+
commonCwdOption,
|
|
11
|
+
{ flag: '--framework-root', value: 'path', summary: 'Alias for --cwd when running from outside the framework repository.' },
|
|
12
|
+
{ flag: '--repo', value: 'path', summary: 'Target repository to receive the built ATM runner. Repeatable.' },
|
|
13
|
+
{ flag: '--skip', value: 'name-or-path', summary: 'Skip a target repository by basename or resolved path. Repeatable.' },
|
|
14
|
+
{ flag: '--exclude', value: 'name-or-path', summary: 'Alias for --skip.' },
|
|
15
|
+
{ flag: '--source', value: 'path', summary: 'Runner source path. Defaults to release/atm-onefile/atm.mjs.' },
|
|
16
|
+
{ flag: '--no-build', summary: 'Do not run npm run build before syncing.' },
|
|
17
|
+
{ flag: '--dry-run', summary: 'Plan sync targets without copying files.' },
|
|
18
|
+
{ flag: '--keep-temp', summary: 'Keep known ATM temporary scratch directories for debugging instead of cleaning them.' },
|
|
19
|
+
{ flag: '--no-verify', summary: 'Do not run target doctor/framework-mode/tasks audit after copying.' },
|
|
20
|
+
{ flag: '--allow-verify-failure', summary: 'Report verification failures without failing the sync command.' },
|
|
21
|
+
commonJsonOption,
|
|
22
|
+
commonPrettyOption,
|
|
23
|
+
commonHelpOption
|
|
24
|
+
],
|
|
25
|
+
examples: [
|
|
26
|
+
'node atm.mjs internal-release sync --repo ../host-a --repo ../host-b --json',
|
|
27
|
+
'node atm.mjs internal-release sync --repo ../host-a --repo ../host-b --skip host-b --json',
|
|
28
|
+
'node atm.mjs internal-release sync --repo ../host-a --no-build --dry-run --json'
|
|
29
|
+
]
|
|
30
|
+
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { defineCommandSpec } from '../shared.js';
|
|
2
|
+
import { commonCwdOption, commonHelpOption, commonJsonOption, commonPrettyOption, } from './_common.js';
|
|
3
|
+
export default defineCommandSpec({
|
|
4
|
+
name: 'lane',
|
|
5
|
+
summary: 'Inspect, lazily mint, heartbeat, sweep, or explicitly adopt an ATM lane session and echo the lane envelope for tool callers.',
|
|
6
|
+
positional: [
|
|
7
|
+
{ name: 'action', summary: 'status | adopt <lane-id> | heartbeat [lane-id] | sweep', required: false }
|
|
8
|
+
],
|
|
9
|
+
options: [
|
|
10
|
+
commonCwdOption,
|
|
11
|
+
{ flag: '--lane-session-id', value: 'id', summary: 'Lane session id to resolve before falling back to ATM_LANE_SESSION_ID.' },
|
|
12
|
+
{ flag: '--lane-session', value: 'id', summary: 'Alias for --lane-session-id.' },
|
|
13
|
+
{ flag: '--actor', value: 'id', summary: 'Actor id used when a missing or stale lane must be lazily minted, or when adopting a lane.' },
|
|
14
|
+
{ flag: '--reason', value: 'text', summary: 'Optional reason recorded when adopting a lane.' },
|
|
15
|
+
{ flag: '--confirm', summary: 'Confirm adoption of a still-live lane owned by the same actor.' },
|
|
16
|
+
{ flag: '--handoff-token', value: 'token', summary: 'Authorize adoption of a still-live lane with its handoff token.' },
|
|
17
|
+
{ flag: '--grace-ms', value: 'ms', summary: 'Grace period used by lane sweep before a TTL-expired lane becomes sweepable.' },
|
|
18
|
+
{ flag: '--write', summary: 'For lane sweep, expire sweepable lanes and write sweep events. Without --write, sweep is report-only.' },
|
|
19
|
+
commonJsonOption,
|
|
20
|
+
commonPrettyOption,
|
|
21
|
+
commonHelpOption
|
|
22
|
+
],
|
|
23
|
+
examples: [
|
|
24
|
+
'node atm.mjs lane status --json',
|
|
25
|
+
'node atm.mjs lane status --actor codex-main --json',
|
|
26
|
+
'node atm.mjs lane status --lane-session-id lane-20260716000000-codex-main-abc123 --json',
|
|
27
|
+
'node atm.mjs lane heartbeat lane-20260716000000-codex-main-abc123 --actor codex-main --json',
|
|
28
|
+
'node atm.mjs lane sweep --json',
|
|
29
|
+
'node atm.mjs lane sweep --grace-ms 60000 --write --json',
|
|
30
|
+
'node atm.mjs lane adopt lane-20260716000000-codex-main-abc123 --actor codex-main --confirm --json'
|
|
31
|
+
]
|
|
32
|
+
});
|