@ai-atomic-framework/cli 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/npm-runtime/layout/_vendor/integrations-core/templates/skills/atm-framework-temp-claim.skill.md +5 -0
- package/dist/npm-runtime/layout/schemas/registry.schema.json +622 -0
- package/dist/npm-runtime/layout/schemas/test-report/metrics.schema.json +27 -0
- package/dist/npm-runtime/layout/schemas/test-report.schema.json +459 -0
- package/dist/npm-runtime/manifest.json +80 -78
- package/dist/npm-runtime/runtime.mjs +278 -390
- package/package.json +1 -1
- package/dist/npm-runtime/layout/_vendor/agent-pack-claude-code/templates/atm-bootstrap.md.tmpl +0 -9
- package/dist/npm-runtime/layout/_vendor/agent-pack-claude-code/templates/atm-evidence.md.tmpl +0 -10
- package/dist/npm-runtime/layout/_vendor/agent-pack-claude-code/templates/atm-handoff.md.tmpl +0 -9
- package/dist/npm-runtime/layout/_vendor/agent-pack-claude-code/templates/atm-lock.md.tmpl +0 -10
- package/dist/npm-runtime/layout/_vendor/agent-pack-claude-code/templates/atm-next.md.tmpl +0 -12
- package/dist/npm-runtime/layout/_vendor/agent-pack-claude-code/templates/atm-verify.md.tmpl +0 -8
- package/dist/npm-runtime/layout/_vendor/integrations-core/templates/skills/atm-deep-module-refactor.files/references/deepening.md +0 -28
- package/dist/npm-runtime/layout/_vendor/integrations-core/templates/skills/atm-deep-module-refactor.files/references/design-it-twice.md +0 -21
- package/dist/npm-runtime/layout/_vendor/integrations-core/templates/skills/atm-governance-router.files/references/entry-friction.md +0 -29
- package/dist/npm-runtime/layout/_vendor/integrations-core/templates/skills/atm-governance-router.files/references/fallback-design.md +0 -23
- package/dist/npm-runtime/layout/_vendor/integrations-core/templates/skills/atm-governance-router.files/references/learning-loop.md +0 -22
- package/dist/npm-runtime/layout/_vendor/integrations-core/templates/skills/atm-governance-router.files/references/route-interpretation.md +0 -19
package/package.json
CHANGED
package/dist/npm-runtime/layout/_vendor/agent-pack-claude-code/templates/atm-bootstrap.md.tmpl
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Bootstrap ATM only when the repository has not been initialized.
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
1. Check whether `.atm/config.json` already exists.
|
|
6
|
-
2. If missing, run:
|
|
7
|
-
- `node atm.mjs bootstrap --task "Bootstrap ATM in this repository" --json`
|
|
8
|
-
3. If present, do not re-bootstrap; continue with `node atm.mjs next --prompt "<current user prompt>" --json` for user-requested task work.
|
|
9
|
-
4. Report which path you took and include the full command output as evidence.
|
package/dist/npm-runtime/layout/_vendor/agent-pack-claude-code/templates/atm-evidence.md.tmpl
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Capture deterministic CLI evidence for the current task before closing it.
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
1. Run the verification command appropriate for your task, for example:
|
|
6
|
-
- `node atm.mjs verify --json`
|
|
7
|
-
- `node atm.mjs orient --json`
|
|
8
|
-
2. Capture the complete JSON output — do not abbreviate or omit failure lines.
|
|
9
|
-
3. Include the evidence verbatim in your task completion summary.
|
|
10
|
-
4. Only mark a task done after the evidence shows zero blocking errors.
|
package/dist/npm-runtime/layout/_vendor/agent-pack-claude-code/templates/atm-handoff.md.tmpl
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Prepare a structured ATM handoff summary before ending your session.
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
1. Run `node atm.mjs next --prompt "<current user prompt>" --json` for user-requested task work; use `node atm.mjs next --json` only as read-only orientation.
|
|
6
|
-
2. Summarize what was completed this session (files changed, tests run, evidence captured).
|
|
7
|
-
3. List what remains: open tasks, blockers, and their ATM error codes if any.
|
|
8
|
-
4. Do not leave tasks in `in-progress` state without a handoff note in the task card.
|
|
9
|
-
5. Unlock all locks you hold before ending the session.
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Acquire or release an ATM task lock before starting or finishing work.
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
1. To lock a task before starting, run:
|
|
6
|
-
- `node atm.mjs lock --task <task-id> --agent <agent-id> --json`
|
|
7
|
-
2. If the lock returns a conflict, stop immediately and do not proceed.
|
|
8
|
-
3. To unlock after completing work, run:
|
|
9
|
-
- `node atm.mjs unlock --task <task-id> --agent <agent-id> --json`
|
|
10
|
-
4. Never skip the lock step — concurrent agents without locks cause merge conflicts.
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Route through ATM next and execute the returned governed action.
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
1. Read `README.md` if present.
|
|
6
|
-
2. For user-requested task work, run `node atm.mjs next --prompt "<current user prompt>" --json` from the repository root. Use `node atm.mjs next --json` only as read-only orientation when no user prompt is available.
|
|
7
|
-
3. If the JSON result includes an `ATM_USER_NOTICE` message or `evidence.userNotice`, show it to the user in natural language before executing the returned command.
|
|
8
|
-
4. Parse the JSON result and execute exactly the returned `evidence.nextAction.command`.
|
|
9
|
-
5. If the route recommends `batch`, work only on the queue head and finish it with `node atm.mjs batch checkpoint --actor <id> --json`; do not manually loop over low-level task lifecycle commands.
|
|
10
|
-
6. After an onboarding or refresh command succeeds, return to the user original request and continue the actual work.
|
|
11
|
-
7. If `evidence.agent_pack_hint` is present, use `evidence.agent_pack_hint.slashCommandId` to determine which slash command to invoke after completing the current action.
|
|
12
|
-
8. Preserve the returned evidence in your final summary.
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Run ATM verification checks and summarize pass/fail evidence.
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
1. Run `node atm.mjs verify --agents-md --json`.
|
|
6
|
-
2. Run `node atm.mjs verify --neutrality --json`.
|
|
7
|
-
3. Summarize pass/fail and list any violations with file paths and ATM error codes.
|
|
8
|
-
4. If either check fails, stop and propose a minimal fix list before proceeding.
|
|
@@ -1,28 +0,0 @@
|
|
|
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.
|
|
@@ -1,21 +0,0 @@
|
|
|
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.
|
|
@@ -1,29 +0,0 @@
|
|
|
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
|
|
@@ -1,23 +0,0 @@
|
|
|
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
|
|
@@ -1,22 +0,0 @@
|
|
|
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.
|
|
@@ -1,19 +0,0 @@
|
|
|
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
|