agentplane 0.6.11 → 0.6.13
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 +1 -1
- package/assets/AGENTS.md +15 -18
- package/assets/policy/dod.core.md +1 -1
- package/assets/policy/workflow.branch_pr.md +3 -3
- package/dist/.build-manifest.json +3 -3
- package/dist/cli.js +843 -838
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<img src="https://raw.githubusercontent.com/basilisk-labs/agentplane/main/docs/assets/readme-headers/agentplane-cli.svg" alt="
|
|
2
|
+
<img src="https://raw.githubusercontent.com/basilisk-labs/agentplane/main/docs/assets/readme-headers/agentplane-cli.svg" alt="Agentplane CLI package header" style="width:100%;max-width:100%;"/>
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
# AgentPlane CLI
|
package/assets/AGENTS.md
CHANGED
|
@@ -20,7 +20,7 @@ Detailed procedures live in canonical modules from `## CANONICAL DOCS`.
|
|
|
20
20
|
|
|
21
21
|
- Repository type: user project initialized with `agentplane`.
|
|
22
22
|
- CLI rule: prefer `ap` for compact agent-oriented commands; fall back to `agentplane`; if neither is available, stop and request installation guidance (do not invent repo-local entrypoints).
|
|
23
|
-
- Startup shortcut: run `## COMMANDS -> Preflight
|
|
23
|
+
- Startup shortcut: run `## COMMANDS -> Preflight`; use `ap quickstart`; activate `ap role ORCHESTRATOR` for planning and `ap role <ROLE>` for execution; then apply `## LOAD RULES` before mutation. The guarded route is determined by `workflow.mode` in `.agentplane/WORKFLOW.md`; treat `ap task brief <task-id>` and `ap task next-action <task-id> --explain` as the route oracle: follow the emitted checkout, blocker, and next command instead of reconstructing workflow state.
|
|
24
24
|
|
|
25
25
|
<!-- /ap:fragment -->
|
|
26
26
|
<!-- ap:fragment id="gateway.agents.source_of_truth.sources.of.truth" slot="source_of_truth" mutability="replaceable" -->
|
|
@@ -62,10 +62,18 @@ ap quickstart
|
|
|
62
62
|
ap task list
|
|
63
63
|
ap task active
|
|
64
64
|
git status --short --untracked-files=no
|
|
65
|
-
git status --short
|
|
65
|
+
git status --short --untracked-files=all
|
|
66
66
|
git rev-parse --abbrev-ref HEAD
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
+
### Route commands
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
ap task brief <task-id>
|
|
73
|
+
ap task next-action <task-id> --explain
|
|
74
|
+
ap work resume <task-id>
|
|
75
|
+
```
|
|
76
|
+
|
|
69
77
|
### Task lifecycle
|
|
70
78
|
|
|
71
79
|
```bash
|
|
@@ -117,8 +125,10 @@ node .agentplane/policy/check-routing.mjs
|
|
|
117
125
|
|
|
118
126
|
## SHARED PROMPT CONTRACT
|
|
119
127
|
|
|
120
|
-
- Outcome-first, concise, evidence-first: state goal, success criteria, constraints, stop rules, and output; use procedure only for command contracts, state machines, or irreversible gates
|
|
121
|
-
-
|
|
128
|
+
- Outcome-first, concise, evidence-first: state goal, success criteria, constraints, stop rules, and output; use procedure only for command contracts, state machines, or irreversible gates.
|
|
129
|
+
- Ambiguity rule: ask one narrow question only when missing information changes scope, security, task graph, or irreversible action; otherwise act under stated assumptions.
|
|
130
|
+
- Route/persistence rule: for multi-step or tool-heavy work, send a short preamble, load `ap task brief <task-id>`, follow `ap task next-action <task-id> --explain`, and persist through implementation + verification unless blocked.
|
|
131
|
+
- Context rule: load only matched policy, task README, Verify Steps, and relevant files; never cache mutable task state; final output names actions, checks, blockers/drift, and next approval.
|
|
122
132
|
|
|
123
133
|
<!-- /ap:fragment -->
|
|
124
134
|
<!-- ap:fragment id="gateway.user.instructions" slot="body" mutability="append_only" -->
|
|
@@ -182,18 +192,7 @@ Role boundaries: ORCHESTRATOR = preflight + plan + approvals; PLANNER = executab
|
|
|
182
192
|
|
|
183
193
|
## CORE DOD
|
|
184
194
|
|
|
185
|
-
A task is done only when all
|
|
186
|
-
|
|
187
|
-
1. Approved scope is satisfied; no unresolved drift.
|
|
188
|
-
2. Required checks from loaded policy modules passed.
|
|
189
|
-
3. Security and approval gates were respected.
|
|
190
|
-
4. Traceability exists (task ID + updated task docs).
|
|
191
|
-
5. Verification evidence is recorded.
|
|
192
|
-
6. No unintended tracked changes remain.
|
|
193
|
-
|
|
194
|
-
Detailed DoD rules are in `.agentplane/policy/dod.core.md`, `.agentplane/policy/dod.code.md`, and `.agentplane/policy/dod.docs.md`.
|
|
195
|
-
|
|
196
|
-
---
|
|
195
|
+
A task is done only when approved scope, loaded DoD modules, security gates, task traceability, recorded verification, and clean final tracked state all pass. Detailed DoD rules live in `.agentplane/policy/dod.core.md`, `.agentplane/policy/dod.code.md`, and `.agentplane/policy/dod.docs.md`.
|
|
197
196
|
|
|
198
197
|
<!-- /ap:fragment -->
|
|
199
198
|
<!-- ap:fragment id="gateway.agents.hard_constraint.size.budget" slot="hard_constraint" mutability="append_only" -->
|
|
@@ -205,8 +204,6 @@ Detailed DoD rules are in `.agentplane/policy/dod.core.md`, `.agentplane/policy/
|
|
|
205
204
|
- Worst-case loaded policy graph (always imports + all conditional imports) MUST stay <= 600 lines.
|
|
206
205
|
- Enforced by `node .agentplane/policy/check-routing.mjs`.
|
|
207
206
|
|
|
208
|
-
---
|
|
209
|
-
|
|
210
207
|
<!-- /ap:fragment -->
|
|
211
208
|
<!-- ap:fragment id="gateway.agents.body.canonical.docs" slot="body" mutability="replaceable" -->
|
|
212
209
|
|
|
@@ -10,7 +10,7 @@ The task is complete only if all core checks are true:
|
|
|
10
10
|
4. Required task documentation sections are populated.
|
|
11
11
|
5. Verification steps are executed and results recorded.
|
|
12
12
|
6. Drift was either absent or explicitly re-approved.
|
|
13
|
-
7. Final repo state contains no unintended tracked changes
|
|
13
|
+
7. Final repo state contains no unintended tracked changes or unreviewed untracked artifacts; final evidence includes `git status --short --untracked-files=all`.
|
|
14
14
|
|
|
15
15
|
<!-- /ap:fragment -->
|
|
16
16
|
<!-- ap:fragment id="policy.dod.core.body.required.task.readme.contract" slot="body" mutability="replaceable" -->
|
|
@@ -69,12 +69,12 @@ Before manually filling `<slug>` or `<branch>`, use `agentplane task brief <task
|
|
|
69
69
|
- Task documentation updates MAY be batched within one turn before approval.
|
|
70
70
|
- MUST run `task plan approve` then `task start-ready` as `Step 1 -> wait -> Step 2` (never parallel).
|
|
71
71
|
- In `branch_pr`, `task start-ready`, `pr open`, `pr update`, and verification commands SHOULD be run from the task worktree created by `work start`.
|
|
72
|
-
- A related task batch MAY reuse one primary task worktree when all included tasks are approved,
|
|
73
|
-
listed, verified independently, and merged through the primary task PR.
|
|
72
|
+
- A related task batch MAY reuse one primary task worktree when all included tasks are approved, listed, verified independently, and merged through the primary task PR.
|
|
74
73
|
- `pr open` without `--sync-only` SHOULD complete in one pass: sync local artifacts, auto-publish the task branch to `origin` when it has no upstream yet, then create/link the remote GitHub PR.
|
|
75
74
|
- In `branch_pr`, the task GitHub PR is the primary integration mechanism. Local `integrate`
|
|
76
75
|
serializes the lane and drives the provider merge route; it MUST NOT treat GitHub PR merge as an
|
|
77
76
|
exceptional shortcut around local base mutation.
|
|
77
|
+
- Before release recovery mutation, classify the route as implementation, metadata closure, included-task closure, stale branch cleanup, or provider merge; use GitHub truth for PR/merge state and pass Markdown bodies via files or structured APIs, not inline shell text.
|
|
78
78
|
- If protected `main` requires GitHub PR merges, the agent MUST create/update the GitHub PR,
|
|
79
79
|
wait until all hosted checks are complete and stable (including late agent checks that appear
|
|
80
80
|
after the first green rollup), then merge it through GitHub. If auto-merge remains blocked
|
|
@@ -95,5 +95,5 @@ Before manually filling `<slug>` or `<branch>`, use `agentplane task brief <task
|
|
|
95
95
|
- MUST stop and request re-approval on material drift.
|
|
96
96
|
- Planning and closure happen on base checkout.
|
|
97
97
|
- Do not export task snapshots from task branches.
|
|
98
|
-
- After merged closure, remove stale task branches/worktrees via the cleanup route instead of leaving orphaned local state behind.
|
|
98
|
+
- After merged closure, remove stale task branches/worktrees via the cleanup route; preserve/report dirty worktree state instead of leaving orphaned local state behind or deleting it silently.
|
|
99
99
|
<!-- /ap:fragment -->
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"schema_version": 1,
|
|
3
3
|
"manifest_kind": "package",
|
|
4
4
|
"package_name": "agentplane",
|
|
5
|
-
"package_version": "0.6.
|
|
6
|
-
"git_head": "
|
|
7
|
-
"watched_runtime_snapshot_hash": "
|
|
5
|
+
"package_version": "0.6.13",
|
|
6
|
+
"git_head": "7f3cf5e7af318abfb625e5e4b31aa658e8e3f1b6",
|
|
7
|
+
"watched_runtime_snapshot_hash": "2228cc9e8068ec48b39bf69d308012fa6bf2987a515126852e1f4918358163ce"
|
|
8
8
|
}
|