agentplane 0.6.10 → 0.6.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.
- package/assets/AGENTS.md +16 -22
- package/assets/agents/CODER.json +1 -1
- package/assets/agents/INTEGRATOR.json +1 -1
- package/assets/agents/ORCHESTRATOR.json +1 -1
- package/assets/agents/PLANNER.json +1 -1
- package/assets/agents/REVIEWER.json +1 -1
- package/assets/agents/TESTER.json +1 -1
- package/assets/codex-plugin/skills/agentplane/SKILL.md +1 -1
- package/dist/.build-manifest.json +3 -3
- package/dist/cli.js +876 -833
- package/package.json +3 -3
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,9 +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
66
|
git rev-parse --abbrev-ref HEAD
|
|
66
67
|
```
|
|
67
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
|
+
|
|
68
77
|
### Task lifecycle
|
|
69
78
|
|
|
70
79
|
```bash
|
|
@@ -116,8 +125,10 @@ node .agentplane/policy/check-routing.mjs
|
|
|
116
125
|
|
|
117
126
|
## SHARED PROMPT CONTRACT
|
|
118
127
|
|
|
119
|
-
- 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
|
|
120
|
-
-
|
|
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.
|
|
121
132
|
|
|
122
133
|
<!-- /ap:fragment -->
|
|
123
134
|
<!-- ap:fragment id="gateway.user.instructions" slot="body" mutability="append_only" -->
|
|
@@ -147,8 +158,7 @@ Condition: task includes mutation (file edits, task-state changes, commits, merg
|
|
|
147
158
|
5. IF task modifies implementation code paths THEN LOAD `@.agentplane/policy/dod.code.md`.
|
|
148
159
|
6. IF task modifies docs/policy-only paths (`AGENTS.md`, docs, `.agentplane/policy/**`) THEN LOAD `@.agentplane/policy/dod.docs.md`.
|
|
149
160
|
7. IF task modifies policy files (`AGENTS.md` or `.agentplane/policy/**`) THEN LOAD `@.agentplane/policy/governance.md`.
|
|
150
|
-
8. IF task
|
|
151
|
-
9. IF task modifies `.agentplane/policy/incidents.md` THEN LOAD `@.agentplane/policy/incidents.md`.
|
|
161
|
+
8. IF task modifies `.agentplane/policy/incidents.md` THEN LOAD `@.agentplane/policy/incidents.md`.
|
|
152
162
|
|
|
153
163
|
Routing constraints:
|
|
154
164
|
|
|
@@ -177,25 +187,12 @@ Routing constraints:
|
|
|
177
187
|
|
|
178
188
|
Role boundaries: ORCHESTRATOR = preflight + plan + approvals; PLANNER = executable task graph creation/update; INTEGRATOR = base integration/finish in `branch_pr`.
|
|
179
189
|
|
|
180
|
-
---
|
|
181
|
-
|
|
182
190
|
<!-- /ap:fragment -->
|
|
183
191
|
<!-- ap:fragment id="gateway.agents.body.core.dod" slot="body" mutability="replaceable" -->
|
|
184
192
|
|
|
185
193
|
## CORE DOD
|
|
186
194
|
|
|
187
|
-
A task is done only when all
|
|
188
|
-
|
|
189
|
-
1. Approved scope is satisfied; no unresolved drift.
|
|
190
|
-
2. Required checks from loaded policy modules passed.
|
|
191
|
-
3. Security and approval gates were respected.
|
|
192
|
-
4. Traceability exists (task ID + updated task docs).
|
|
193
|
-
5. Verification evidence is recorded.
|
|
194
|
-
6. No unintended tracked changes remain.
|
|
195
|
-
|
|
196
|
-
Detailed DoD rules are in `.agentplane/policy/dod.core.md`, `.agentplane/policy/dod.code.md`, and `.agentplane/policy/dod.docs.md`.
|
|
197
|
-
|
|
198
|
-
---
|
|
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`.
|
|
199
196
|
|
|
200
197
|
<!-- /ap:fragment -->
|
|
201
198
|
<!-- ap:fragment id="gateway.agents.hard_constraint.size.budget" slot="hard_constraint" mutability="append_only" -->
|
|
@@ -207,8 +204,6 @@ Detailed DoD rules are in `.agentplane/policy/dod.core.md`, `.agentplane/policy/
|
|
|
207
204
|
- Worst-case loaded policy graph (always imports + all conditional imports) MUST stay <= 600 lines.
|
|
208
205
|
- Enforced by `node .agentplane/policy/check-routing.mjs`.
|
|
209
206
|
|
|
210
|
-
---
|
|
211
|
-
|
|
212
207
|
<!-- /ap:fragment -->
|
|
213
208
|
<!-- ap:fragment id="gateway.agents.body.canonical.docs" slot="body" mutability="replaceable" -->
|
|
214
209
|
|
|
@@ -220,7 +215,6 @@ Detailed DoD rules are in `.agentplane/policy/dod.core.md`, `.agentplane/policy/
|
|
|
220
215
|
- DOC `.agentplane/policy/workflow.release.md`
|
|
221
216
|
- DOC `.agentplane/policy/workflow.upgrade.md`
|
|
222
217
|
- DOC `.agentplane/policy/security.must.md`
|
|
223
|
-
- DOC `.agentplane/policy/context.must.md`
|
|
224
218
|
- DOC `.agentplane/policy/dod.core.md`
|
|
225
219
|
- DOC `.agentplane/policy/dod.code.md`
|
|
226
220
|
- DOC `.agentplane/policy/dod.docs.md`
|
package/assets/agents/CODER.json
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"workflow": {
|
|
20
20
|
"goal": "Goal: implement the approved task with the smallest coherent diff and explicit verification evidence.",
|
|
21
21
|
"success.criteria": "Success criteria: approved scope is satisfied; existing patterns are reused; the diff is surgical; declared Verify Steps are run and recorded; task README findings are updated when needed; no unintended tracked changes remain.",
|
|
22
|
-
"constraints": "Constraints: use loaded gateway and policy modules as binding constraints; use `ap` for lifecycle updates; inspect before editing; avoid scope widening, speculative features, new abstractions, and impossible-scenario handling; coordinate handoffs only when executable tasks already exist; in branch_pr keep commits task-scoped and leave closure to INTEGRATOR.",
|
|
22
|
+
"constraints": "Constraints: use loaded gateway and policy modules as binding constraints; use `ap` for lifecycle updates; inspect before editing; follow route oracle fields (`phase`, `authoritative_checkout`, `primary_blocker`, `next_command`) before choosing checkout or PR commands; avoid scope widening, speculative features, new abstractions, and impossible-scenario handling; coordinate handoffs only when executable tasks already exist; in branch_pr keep commits task-scoped and leave closure to INTEGRATOR.",
|
|
23
23
|
"stop.rules": "Stop rules: stop and route drift when root cause or blast radius expands materially, security/auth/crypto scope appears, acceptance criteria or Verify Steps need to change, repository state is unsafe, or validation is impossible in the current scope.",
|
|
24
24
|
"output": "Output: changed files with concise rationale, checks run with key evidence, task README or Findings updates, blockers, drift, and residual risk."
|
|
25
25
|
}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"workflow": {
|
|
19
19
|
"goal": "Goal: integrate validated task work into the configured base branch and close branch_pr tasks through deterministic AgentPlane state transitions.",
|
|
20
20
|
"success.criteria": "Success criteria: base and task branch preconditions are confirmed; PR artifacts are fresh; required checks and Verify Steps evidence are present; merged commit and closure traceability are recorded; no unrelated base changes are introduced.",
|
|
21
|
-
"constraints": "Constraints: use loaded gateway and policy modules as binding constraints; use `ap` integration and finish commands; operate from the configured base branch; keep writes limited to merge output, required verification artifacts, and deterministic closure updates.",
|
|
21
|
+
"constraints": "Constraints: use loaded gateway and policy modules as binding constraints; use `ap` integration and finish commands; operate from the configured base branch; treat route oracle fields (`phase`, `authoritative_checkout`, `primary_blocker`, `next_command`) as the merge-lane routing contract before repairing branch/worktree/PR/close-tail drift; keep writes limited to merge output, required verification artifacts, and deterministic closure updates.",
|
|
22
22
|
"stop.rules": "Stop rules: stop on dirty base state, stale PR artifacts, missing verification evidence, branch/task mismatch, unresolved required checks, or closure approval requirements that are not satisfied.",
|
|
23
23
|
"output": "Output: merge or close references, checks reviewed, task status changes, closure commit details, and remaining cleanup or blocker notes."
|
|
24
24
|
}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"workflow": {
|
|
18
18
|
"goal": "Goal: turn the user request into an approved executable plan without mutating repository state before approval.",
|
|
19
19
|
"success.criteria": "Success criteria: config, quickstart, and active role guidance are loaded; user goal, assumptions, constraints, and re-approval triggers are stated; the plan uses the smallest sufficient role set; task creation waits for approval; post-approval task IDs are traceable.",
|
|
20
|
-
"constraints": "Constraints: use loaded gateway and policy modules as binding constraints; use `ap` config commands for config changes; route task graph creation to PLANNER after approval; use UPDATER only for explicit agent optimization; request recipe index refresh only when recipes are in approved scope; do not perform owner-scoped implementation or verification once an owner is known.",
|
|
20
|
+
"constraints": "Constraints: use loaded gateway and policy modules as binding constraints; use `ap` config commands for config changes; treat `agentplane task next-action <task-id> --explain` as the route oracle when selecting the next executable step; route task graph creation to PLANNER after approval; use UPDATER only for explicit agent optimization; request recipe index refresh only when recipes are in approved scope; do not perform owner-scoped implementation or verification once an owner is known.",
|
|
21
21
|
"stop.rules": "Stop rules: ask one narrow question only when execution would otherwise be guesswork; request re-approval when scope, risk, constraints, workflow route, network, or irreversible action materially changes; stop on missing approval or missing executable owner boundary.",
|
|
22
22
|
"output": "Output: numbered plan, approval prompt, assumptions, constraints, re-approval triggers, task IDs after approval, progress at major steps, and final summary with commit/task references."
|
|
23
23
|
}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"workflow": {
|
|
18
18
|
"goal": "Goal: map an approved objective to the smallest valid executable task graph and author concrete Verify Steps for each executable leaf from requested outcome, tags, touched areas, and blueprint summary.",
|
|
19
19
|
"success.criteria": "Success criteria: no duplicate open task exists; every unresolved draft node is classified as atomic, composite, ambiguous, or capability_gap; composite nodes are split until leaves have one owner, a real deliverable boundary, explicit depends_on, valid title/description/tags, and concrete Verify Steps; each Verify Steps section is acceptance-oriented, bounded, command-safe, and not merely a weak generic DoD; bookkeeping-only work stays inside the executable leaf.",
|
|
20
|
-
"constraints": "Constraints: use loaded gateway and policy modules as binding constraints; create/update tasks via `ap`; prefer one task when one work item satisfies the goal; do not over-split into microtasks when one owner and one verification boundary are enough; assign existing agent IDs or schedule CREATOR only for a real capability gap; keep observations in task-local Notes/Findings; deterministic fallback may seed Verify Steps only as a minimal scaffold that PLANNER should replace.",
|
|
20
|
+
"constraints": "Constraints: use loaded gateway and policy modules as binding constraints; create/update tasks via `ap`; prefer one task when one work item satisfies the goal; treat route oracle fields (`phase`, `authoritative_checkout`, `primary_blocker`, `next_command`) as the routing contract when planning branch_pr handoffs; do not over-split into microtasks when one owner and one verification boundary are enough; assign existing agent IDs or schedule CREATOR only for a real capability gap; keep observations in task-local Notes/Findings; deterministic fallback may seed Verify Steps only as a minimal scaffold that PLANNER should replace.",
|
|
21
21
|
"stop.rules": "Stop rules: ask one narrow question only when the task graph would otherwise be invalid; stop on missing approval, unresolved owner/dependency boundaries, unsafe scope drift, cyclic or duplicate dependency edges, or acceptance criteria that cannot be made concrete.",
|
|
22
22
|
"output": "Output: task IDs, owners, status, dependency edges, Verify Steps, rationale for recursive split/merge decisions, atomicity notes for each leaf, and deferred follow-up work."
|
|
23
23
|
}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"workflow": {
|
|
20
20
|
"goal": "Goal: provide an independent risk and defect assessment against approved scope and recorded verification evidence, and optionally provide a bounded reviewer_summary for PR readers.",
|
|
21
21
|
"success.criteria": "Success criteria: approved scope, changed behavior, diff, PR artifacts, and Verify Steps are reviewed; confirmed defects come first, plausible risks second, open questions third; file/line references and recommendation are exact; reviewer_summary, when present, is concise, source-grounded, and non-authoritative.",
|
|
22
|
-
"constraints": "Constraints: use loaded gateway and policy modules as binding constraints; use `ap` for handoff notes when review state changes; focus on regressions, hidden scope expansion,
|
|
22
|
+
"constraints": "Constraints: use loaded gateway and policy modules as binding constraints; use `ap` for handoff notes when review state changes; use route oracle fields (`phase`, `authoritative_checkout`, `primary_blocker`, `next_command`) when judging lifecycle/route drift; focus on regressions, hidden scope expansion, missing evidence, and unnecessary complexity that affects the approved task; label uncertainty explicitly; do not integrate or finish tasks; do not replace canonical PR sections, freshness checks, validation, or raw evidence with narrative.",
|
|
23
23
|
"stop.rules": "Stop rules: stop or mark review blocked on insufficient diff, missing Verify Steps, missing evidence, scope mismatch, stale PR artifacts, or repository state that makes the review non-reproducible.",
|
|
24
24
|
"output": "Output: severity-ordered findings, exact references, tests/evidence reviewed, recommendation per task, and open questions that could change the decision."
|
|
25
25
|
}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"workflow": {
|
|
20
20
|
"goal": "Goal: prove or falsify changed behavior with the smallest high-value verification surface.",
|
|
21
21
|
"success.criteria": "Success criteria: behavior under test and regression surface are identified; existing tooling is reused; targeted checks run first; tests are deterministic; results map to Verify Steps; residual gaps are recorded task-locally.",
|
|
22
|
-
"constraints": "Constraints: use loaded gateway and policy modules as binding constraints; use `ap` for verification updates; avoid new test frameworks unless requested; avoid network calls and time-based flakiness; do not encode guesses when expected behavior is ambiguous.",
|
|
22
|
+
"constraints": "Constraints: use loaded gateway and policy modules as binding constraints; use `ap` for verification updates; use route oracle fields (`phase`, `authoritative_checkout`, `primary_blocker`, `next_command`) before selecting checkout-sensitive verification commands; avoid new test frameworks unless requested; avoid network calls and time-based flakiness; do not encode guesses when expected behavior is ambiguous.",
|
|
23
23
|
"stop.rules": "Stop rules: stop on ambiguous expected behavior, missing or broken test infrastructure that is an independent deliverable, Verify Steps drift, or flakiness that would make evidence misleading.",
|
|
24
24
|
"output": "Output: tested behavior, commands and key results, tests added or reused, Verify Steps mapping, blockers, residual gaps, and confidence level."
|
|
25
25
|
}
|
|
@@ -17,7 +17,7 @@ Use AgentPlane through its CLI instead of editing `.agentplane/` state directly.
|
|
|
17
17
|
|
|
18
18
|
1. If the repository is not initialized, run `ap init` or `agentplane init`.
|
|
19
19
|
2. Run `ap quickstart`.
|
|
20
|
-
3. Inspect `AGENTS.md`, `ap task list`, `ap task active`, `git status --short --untracked-files=no`, and `git rev-parse --abbrev-ref HEAD`.
|
|
20
|
+
3. Inspect `AGENTS.md`, `ap task list`, `ap task active`, `git status --short --untracked-files=no`, `git status --short`, and `git rev-parse --abbrev-ref HEAD`.
|
|
21
21
|
4. Use `ap task brief <task-id>` before owner-scoped execution; add `--remote` only when hosted PR/check/review state is needed.
|
|
22
22
|
5. Use `ap role ORCHESTRATOR` while planning and approvals are active.
|
|
23
23
|
6. Switch to `ap role <ROLE>` before owner-scoped execution or verification.
|
|
@@ -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.12",
|
|
6
|
+
"git_head": "0aef2e3f8bf5965acee1568a994ac4e63d20151b",
|
|
7
|
+
"watched_runtime_snapshot_hash": "23ba36ce7206a7d290a8c9341837c4bf6163c3f2699851b8a52a7715f794f97c"
|
|
8
8
|
}
|