@ai-atomic-framework/cli 0.1.10 → 0.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/dist/npm-runtime/data/_vendor/atm-markdown-task-source/templates/adopter-task-template.md +41 -0
  2. package/dist/npm-runtime/data/_vendor/integrations-core/templates/skills/atm-deep-module-refactor.files/references/deepening.md +28 -0
  3. package/dist/npm-runtime/data/_vendor/integrations-core/templates/skills/atm-deep-module-refactor.files/references/design-it-twice.md +21 -0
  4. package/dist/npm-runtime/data/_vendor/integrations-core/templates/skills/atm-governance-router.files/references/entry-friction.md +29 -0
  5. package/dist/npm-runtime/data/_vendor/integrations-core/templates/skills/atm-governance-router.files/references/fallback-design.md +23 -0
  6. package/dist/npm-runtime/data/_vendor/integrations-core/templates/skills/atm-governance-router.files/references/learning-loop.md +22 -0
  7. package/dist/npm-runtime/data/_vendor/integrations-core/templates/skills/atm-governance-router.files/references/route-interpretation.md +19 -0
  8. package/dist/npm-runtime/{layout → data}/templates/root-drop/AGENTS.md +2 -0
  9. package/dist/npm-runtime/manifest.json +132 -103
  10. package/dist/npm-runtime/runtime.mjs +269 -267
  11. package/package.json +1 -1
  12. package/dist/npm-runtime/layout/schemas/team-wave-envelope.schema.json +0 -70
  13. package/dist/npm-runtime/layout/schemas/team-worker-report.schema.json +0 -68
  14. /package/dist/npm-runtime/{layout → data}/_vendor/atm-markdown-task-source/templates/aao-l2-split-template.md +0 -0
  15. /package/dist/npm-runtime/{layout → data}/_vendor/integrations-core/templates/skills/atm-atom-map-refactor.skill.md +0 -0
  16. /package/dist/npm-runtime/{layout → data}/_vendor/integrations-core/templates/skills/atm-bug-backlog.skill.md +0 -0
  17. /package/dist/npm-runtime/{layout → data}/_vendor/integrations-core/templates/skills/atm-create.skill.md +0 -0
  18. /package/dist/npm-runtime/{layout → data}/_vendor/integrations-core/templates/skills/atm-deep-module-refactor.skill.md +0 -0
  19. /package/dist/npm-runtime/{layout → data}/_vendor/integrations-core/templates/skills/atm-diagnostic-loop.skill.md +0 -0
  20. /package/dist/npm-runtime/{layout → data}/_vendor/integrations-core/templates/skills/atm-dispatch.skill.md +0 -0
  21. /package/dist/npm-runtime/{layout → data}/_vendor/integrations-core/templates/skills/atm-error-code-resolver.skill.md +0 -0
  22. /package/dist/npm-runtime/{layout → data}/_vendor/integrations-core/templates/skills/atm-evidence.skill.md +0 -0
  23. /package/dist/npm-runtime/{layout → data}/_vendor/integrations-core/templates/skills/atm-framework-quickfix.skill.md +0 -0
  24. /package/dist/npm-runtime/{layout → data}/_vendor/integrations-core/templates/skills/atm-framework-temp-claim.skill.md +0 -0
  25. /package/dist/npm-runtime/{layout → data}/_vendor/integrations-core/templates/skills/atm-git-pathspec-emergency-commit.skill.md +0 -0
  26. /package/dist/npm-runtime/{layout → data}/_vendor/integrations-core/templates/skills/atm-governance-router.files/references/boundary-confusion.md +0 -0
  27. /package/dist/npm-runtime/{layout → data}/_vendor/integrations-core/templates/skills/atm-governance-router.files/references/index.md +0 -0
  28. /package/dist/npm-runtime/{layout → data}/_vendor/integrations-core/templates/skills/atm-governance-router.files/references/tooling-mismatch.md +0 -0
  29. /package/dist/npm-runtime/{layout → data}/_vendor/integrations-core/templates/skills/atm-governance-router.skill.md +0 -0
  30. /package/dist/npm-runtime/{layout → data}/_vendor/integrations-core/templates/skills/atm-handoff.skill.md +0 -0
  31. /package/dist/npm-runtime/{layout → data}/_vendor/integrations-core/templates/skills/atm-internal-build-sync.skill.md +0 -0
  32. /package/dist/npm-runtime/{layout → data}/_vendor/integrations-core/templates/skills/atm-lock.skill.md +0 -0
  33. /package/dist/npm-runtime/{layout → data}/_vendor/integrations-core/templates/skills/atm-memory-consolidate.skill.md +0 -0
  34. /package/dist/npm-runtime/{layout → data}/_vendor/integrations-core/templates/skills/atm-minimal-patch-rebuilder.skill.md +0 -0
  35. /package/dist/npm-runtime/{layout → data}/_vendor/integrations-core/templates/skills/atm-next.skill.md +0 -0
  36. /package/dist/npm-runtime/{layout → data}/_vendor/integrations-core/templates/skills/atm-orient.skill.md +0 -0
  37. /package/dist/npm-runtime/{layout → data}/_vendor/integrations-core/templates/skills/atm-plan-authoring.skill.md +0 -0
  38. /package/dist/npm-runtime/{layout → data}/_vendor/integrations-core/templates/skills/atm-residue-cleanup.skill.md +0 -0
  39. /package/dist/npm-runtime/{layout → data}/_vendor/integrations-core/templates/skills/atm-task-card-authoring.skill.md +0 -0
  40. /package/dist/npm-runtime/{layout → data}/_vendor/integrations-core/templates/skills/atm-task-intent-resolver.skill.md +0 -0
  41. /package/dist/npm-runtime/{layout → data}/_vendor/integrations-core/templates/skills/atm-upgrade-scan.skill.md +0 -0
  42. /package/dist/npm-runtime/{layout → data}/_vendor/integrations-core/templates/skills/mailbox-worker-execution.skill.md +0 -0
  43. /package/dist/npm-runtime/{layout → data}/_vendor/integrations-core/templates/skills/skill.schema.json +0 -0
  44. /package/dist/npm-runtime/{layout → data}/_vendor/plugin-experience-loop/schemas/memory-nudge.schema.json +0 -0
  45. /package/dist/npm-runtime/{layout → data}/_vendor/plugin-experience-loop/schemas/skill-amendment.schema.json +0 -0
  46. /package/dist/npm-runtime/{layout → data}/_vendor/plugin-experience-loop/schemas/skill-candidate.schema.json +0 -0
  47. /package/dist/npm-runtime/{layout → data}/migration/migration-index.json +0 -0
  48. /package/dist/npm-runtime/{layout → data}/schemas/atomic-spec.schema.json +0 -0
  49. /package/dist/npm-runtime/{layout → data}/schemas/evidence/wave-exit-observer-receipt.schema.json +0 -0
  50. /package/dist/npm-runtime/{layout → data}/schemas/governance/decomposition-plan.schema.json +0 -0
  51. /package/dist/npm-runtime/{layout → data}/schemas/governance/map-equivalence-report.schema.json +0 -0
  52. /package/dist/npm-runtime/{layout → data}/schemas/governance/patch-proposal.schema.json +0 -0
  53. /package/dist/npm-runtime/{layout → data}/schemas/governance/polymorph-impact-report.schema.json +0 -0
  54. /package/dist/npm-runtime/{layout → data}/schemas/governance/propagation-report.schema.json +0 -0
  55. /package/dist/npm-runtime/{layout → data}/schemas/governance/retirement-proof.schema.json +0 -0
  56. /package/dist/npm-runtime/{layout → data}/schemas/registry/atomic-map.schema.json +0 -0
  57. /package/dist/npm-runtime/{layout → data}/schemas/registry.schema.json +0 -0
  58. /package/dist/npm-runtime/{layout → data}/schemas/test-report/metrics.schema.json +0 -0
  59. /package/dist/npm-runtime/{layout → data}/schemas/test-report.schema.json +0 -0
  60. /package/dist/npm-runtime/{layout → data}/templates/atom.spec.template.json +0 -0
  61. /package/dist/npm-runtime/{layout → data}/templates/atom.test.template.ts +0 -0
  62. /package/dist/npm-runtime/{layout → data}/templates/root-drop/.atm/charter/atm-first-principles.template.md +0 -0
  63. /package/dist/npm-runtime/{layout → data}/templates/root-drop/.atm/charter/atomic-charter.template.md +0 -0
  64. /package/dist/npm-runtime/{layout → data}/templates/root-drop/.atm/charter/charter-invariants.template.json +0 -0
  65. /package/dist/npm-runtime/{layout → data}/templates/root-drop/.atm/context/INITIAL_SUMMARY.md +0 -0
  66. /package/dist/npm-runtime/{layout → data}/templates/root-drop/.atm/profile/default.md +0 -0
  67. /package/dist/npm-runtime/{layout → data}/templates/root-drop/.atm/scripts/WRAPPER_DEDUP_PLAN.md +0 -0
  68. /package/dist/npm-runtime/{layout → data}/templates/root-drop/.atm/scripts/ps/atm-create.ps1 +0 -0
  69. /package/dist/npm-runtime/{layout → data}/templates/root-drop/.atm/scripts/ps/atm-evidence.ps1 +0 -0
  70. /package/dist/npm-runtime/{layout → data}/templates/root-drop/.atm/scripts/ps/atm-handoff.ps1 +0 -0
  71. /package/dist/npm-runtime/{layout → data}/templates/root-drop/.atm/scripts/ps/atm-lock.ps1 +0 -0
  72. /package/dist/npm-runtime/{layout → data}/templates/root-drop/.atm/scripts/ps/atm-next.ps1 +0 -0
  73. /package/dist/npm-runtime/{layout → data}/templates/root-drop/.atm/scripts/ps/atm-orient.ps1 +0 -0
  74. /package/dist/npm-runtime/{layout → data}/templates/root-drop/.atm/scripts/ps/atm-upgrade-scan.ps1 +0 -0
  75. /package/dist/npm-runtime/{layout → data}/templates/root-drop/.atm/scripts/sh/atm-create.sh +0 -0
  76. /package/dist/npm-runtime/{layout → data}/templates/root-drop/.atm/scripts/sh/atm-evidence.sh +0 -0
  77. /package/dist/npm-runtime/{layout → data}/templates/root-drop/.atm/scripts/sh/atm-handoff.sh +0 -0
  78. /package/dist/npm-runtime/{layout → data}/templates/root-drop/.atm/scripts/sh/atm-lock.sh +0 -0
  79. /package/dist/npm-runtime/{layout → data}/templates/root-drop/.atm/scripts/sh/atm-next.sh +0 -0
  80. /package/dist/npm-runtime/{layout → data}/templates/root-drop/.atm/scripts/sh/atm-orient.sh +0 -0
  81. /package/dist/npm-runtime/{layout → data}/templates/root-drop/.atm/scripts/sh/atm-upgrade-scan.sh +0 -0
  82. /package/dist/npm-runtime/{layout → data}/templates/root-drop/.atm/scripts/wrappers.json +0 -0
@@ -0,0 +1,41 @@
1
+ ---
2
+ doc_id: doc_{{task_id}}
3
+ task_id: {{task_id}}
4
+ title: "{{title}}"
5
+ status: planned
6
+ owner: {{owner}}
7
+ priority: P2
8
+ depends_on:
9
+ {{depends_on_yaml}}
10
+ planning_repo: {{repo_name}}
11
+ target_repo: {{repo_name}}
12
+ closure_authority: target_repo
13
+ scopePaths:
14
+ {{scope_paths_yaml}}
15
+ validators:
16
+ {{validators_yaml}}
17
+ deliverables:
18
+ {{scope_paths_yaml}}
19
+ evidence:
20
+ required: command-backed
21
+ rollback:
22
+ strategy: revert-commit
23
+ notes: "Revert the delivery commit if the change fails validation."
24
+ outOfScope: []
25
+ nonGoals: []
26
+ ---
27
+
28
+ # {{task_id}} - {{title}}
29
+
30
+ ## Goal
31
+
32
+ {{goal}}
33
+
34
+ ## Scope
35
+
36
+ Edit only the files listed in `scopePaths`. Ask for a new task card instead of widening the scope.
37
+
38
+ ## Acceptance
39
+
40
+ - Every command in `validators` passes and is recorded with `node atm.mjs evidence run`.
41
+ - The change is committed with `node atm.mjs git commit --task {{task_id}}` and closed with `node atm.mjs taskflow close --task {{task_id}}`.
@@ -0,0 +1,28 @@
1
+ # Deepening Reference
2
+
3
+ Use this reference only after the default deep-module review identifies a real
4
+ seam question.
5
+
6
+ Dependency classes:
7
+
8
+ - `in-process`: pure computation or in-memory state. Deepen directly and test
9
+ through the new interface.
10
+ - `local-substitutable`: dependencies with local test stand-ins. Keep the seam
11
+ internal and test with the stand-in.
12
+ - `remote-owned`: internal network dependencies. Define a port at the seam,
13
+ then use production and in-memory adapters.
14
+ - `true-external`: third-party systems. Inject the external dependency through
15
+ an adapter and use a mock adapter in tests.
16
+
17
+ Seam discipline:
18
+
19
+ - One adapter is a hypothetical seam.
20
+ - Two adapters make the seam real.
21
+ - Internal seams may support implementation tests, but callers should see only
22
+ the external interface.
23
+
24
+ Testing:
25
+
26
+ - Replace old private-internal tests once interface tests exist.
27
+ - Assert observable behavior through the interface.
28
+ - Do not layer new tests over old shallow modules.
@@ -0,0 +1,21 @@
1
+ # Design It Twice Reference
2
+
3
+ Use this reference only when alternative interfaces are requested or the first
4
+ candidate interface is visibly shallow.
5
+
6
+ Process:
7
+
8
+ 1. Frame the constraints: required behavior, dependency class, caller needs,
9
+ rollback, and causal validators.
10
+ 2. Produce at least two materially different interfaces.
11
+ 3. Compare each option by depth, leverage, locality, and seam placement.
12
+ 4. Prefer the interface that hides the most policy while preserving the public
13
+ ATM contract.
14
+
15
+ Each option should name:
16
+
17
+ - the interface and its invariants;
18
+ - the adapters needed to make the seam real;
19
+ - hidden implementation complexity;
20
+ - replace-don't-layer tests through the interface;
21
+ - rollback and confidence.
@@ -0,0 +1,29 @@
1
+ # Entry Friction Lessons
2
+
3
+ Use this shard for route selection, claim readiness, and narrowest-lane
4
+ materialization problems.
5
+
6
+ ## 2026-06-23 - Imported batch already exists but claim path keeps searching
7
+
8
+ - Trigger: prompt-scoped SKL batch is already imported into the JSON task ledger
9
+ - Symptom: `next --claim` keeps spending time on planning-root discovery or
10
+ extra orchestration instead of converging quickly on the imported queue head
11
+ - Correct ATM route: if imported prompt-scoped tasks already exist, trust the
12
+ governed task ledger first and only escalate to planning-root discovery when
13
+ the ledger truly lacks the requested lane
14
+ - Durable rule: imported task truth should beat repeated rediscovery
15
+ - Backlog link: `ATM-BUG-2026-06-23-019`
16
+
17
+ ## 2026-06-28 - Exact task id resolved, but claim still needs single-card import
18
+
19
+ - Trigger: `next --task <id>` successfully resolves a planning-repo Markdown
20
+ task card, but `next --claim` fails with
21
+ `ATM_NEXT_CLAIM_TASK_IMPORT_REQUIRED`
22
+ - Symptom: the agent almost imports the whole planning document, collides with
23
+ unrelated historical task states, and loses time on governance repair before
24
+ the requested card is even claimable
25
+ - Correct ATM route: when ATM already identified one exact planning card, import
26
+ that single task card path first; do not widen to the whole plan unless the
27
+ task truly requires synchronized queue materialization
28
+ - Durable rule: exact task selection should materialize the smallest claimable
29
+ planning source
@@ -0,0 +1,23 @@
1
+ # Fallback Design Lessons
2
+
3
+ Use this shard when the preferred route failed and the agent needed a governed
4
+ fallback without inventing a weaker parallel workflow.
5
+
6
+ Seed capture targets:
7
+
8
+ - tool-first path failed and the CLI fallback contract was unclear
9
+ - a manual shell workaround looked easier than the governed ATM fallback
10
+ - the agent almost widened scope because a narrower recovery command was not
11
+ surfaced early enough
12
+
13
+ Durable rule: a blocked structured tool result is route truth. Surface the
14
+ status, reason, notices, allowed commands, and blocked commands before using the
15
+ official CLI fallback named by ATM. Do not invent an unlisted shell workaround
16
+ to make the route appear unblocked.
17
+
18
+ When the first real lesson lands here, keep the entry short:
19
+
20
+ - Trigger
21
+ - Symptom
22
+ - Correct ATM route
23
+ - Durable rule
@@ -0,0 +1,22 @@
1
+ # ATM Governance Router Learning Loop
2
+
3
+ This file is a compatibility shim.
4
+
5
+ The active router learning loop now uses selective shards so future agents do
6
+ not load unrelated lessons by default.
7
+
8
+ Read order:
9
+
10
+ 1. `index.md`
11
+ 2. only the single matching shard
12
+
13
+ Current shards:
14
+
15
+ - `entry-friction.md`
16
+ - `route-interpretation.md`
17
+ - `boundary-confusion.md`
18
+ - `fallback-design.md`
19
+ - `tooling-mismatch.md`
20
+
21
+ Do not load all shards unless the current blocker truly spans multiple
22
+ categories.
@@ -0,0 +1,19 @@
1
+ # Route Interpretation Lessons
2
+
3
+ Use this shard when ATM returned a valid route, but the operator misread what
4
+ the status or playbook implied.
5
+
6
+ Seed capture targets:
7
+
8
+ - `framework-temp-claim-required` treated like optional advice instead of a
9
+ pre-edit requirement
10
+ - `recommendedChannel` misunderstood as a style preference instead of a work
11
+ order
12
+ - `playbook required` acknowledged but not actually followed
13
+
14
+ When the first real lesson lands here, keep the entry short:
15
+
16
+ - Trigger
17
+ - Symptom
18
+ - Correct ATM route
19
+ - Durable rule
@@ -13,6 +13,8 @@ If the request says to finish all task cards, a whole plan, a task family, or mu
13
13
 
14
14
  Use `{{ATM_COMMAND_PREFIX}} next --json` only as read-only repository orientation when there is no current user prompt.
15
15
 
16
+ For ordinary work with no matching task card, open one yourself with `{{ATM_COMMAND_PREFIX}} taskflow open --write --actor <id> --title "<title>" --goal "<goal>" --scope-path "<files>" --validator "<command>" --json` (cards live in `docs/tasks/`), claim it with `next --claim --task <TASK-ID>`, and pass the playbook's `--lane-session <id>` to every later ATM command.
17
+
16
18
  First-contact behavior:
17
19
 
18
20
  1. For user-requested task work, run `{{ATM_COMMAND_PREFIX}} next --prompt "<current user prompt>" --json`; use `{{ATM_COMMAND_PREFIX}} next --json` only as read-only orientation when no user prompt is available.