agentplane 0.6.7 → 0.6.9
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 +4 -3
- package/assets/agents/EVALUATOR.json +6 -6
- package/assets/codex-plugin/skills/agentplane/SKILL.md +7 -4
- package/assets/evaluators/recovery-context.md +7 -1
- package/assets/policy/workflow.branch_pr.md +2 -0
- package/dist/.build-manifest.json +3 -3
- package/dist/cli.js +646 -630
- 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`, then use `ap quickstart`; activate `ap role ORCHESTRATOR` for planning and `ap role <ROLE>` for the active owner before owner-scoped execution; then apply `## LOAD RULES` before any mutation. The guarded route is determined by `workflow.mode` in `.agentplane/WORKFLOW.md`; use `ap
|
|
23
|
+
- Startup shortcut: run `## COMMANDS -> Preflight`, then use `ap quickstart`; activate `ap role ORCHESTRATOR` for planning and `ap role <ROLE>` for the active owner before owner-scoped execution; then apply `## LOAD RULES` before any mutation. The guarded route is determined by `workflow.mode` in `.agentplane/WORKFLOW.md`; use `ap task brief <task-id>` and the emitted next command before manually assembling route commands. In `branch_pr`, start from the emitted `work start` route command or `ap work start ... --worktree`; in `direct`, stay in the current checkout and use the task lifecycle route.
|
|
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" -->
|
|
@@ -85,7 +85,7 @@ git commit -m "Implement <task>"
|
|
|
85
85
|
ap task verify-show <task-id>
|
|
86
86
|
ap pr open <task-id> --branch task/<task-id>/<slug> --author <ROLE>
|
|
87
87
|
ap verify <task-id> --ok|--rework --by <ROLE> --note "..."
|
|
88
|
-
ap
|
|
88
|
+
ap evaluator run <task-id> --verdict pass|rework|blocked|human_review --summary "..." --finding "..." --evidence <path-or-check>
|
|
89
89
|
ap integrate <task-id> --branch task/<task-id>/<slug> --run-verify
|
|
90
90
|
ap finish <task-id> --author INTEGRATOR --body "Verified: ..." --result "..." --commit <git-rev> --close-commit
|
|
91
91
|
```
|
|
@@ -95,6 +95,7 @@ ap finish <task-id> --author INTEGRATOR --body "Verified: ..." --result "..." --
|
|
|
95
95
|
```bash
|
|
96
96
|
ap vshow <task-id>
|
|
97
97
|
ap verify <task-id> --ok|--rework --by <ROLE> --note "..." [--observation "..." --impact "..." --resolution "..."] [--local-only]
|
|
98
|
+
ap evaluator run <task-id> --verdict pass|rework|blocked|human_review --summary "..." --finding "..." --evidence <path-or-check> [--missing-test "..." --hidden-assumption "..." --residual-risk "..."]
|
|
98
99
|
ap incidents advise <task-id>
|
|
99
100
|
ap incidents collect <task-id> --check
|
|
100
101
|
ap doctor
|
|
@@ -116,7 +117,7 @@ node .agentplane/policy/check-routing.mjs
|
|
|
116
117
|
## SHARED PROMPT CONTRACT
|
|
117
118
|
|
|
118
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; ask one narrow question only when missing information changes scope, task graph, security, or irreversible action.
|
|
119
|
-
- Retrieval/progress/cache: preamble before multi-step or tool-heavy work; load only matched policy, task README, Verify Steps, and relevant files; use incidents only for analogous scope/tags; final output names actions, checks, blockers/drift, and next approval; keep stable gateway/policy/role before dynamic context and never cache mutable task state.
|
|
120
|
+
- Retrieval/progress/cache: preamble before multi-step or tool-heavy work; use `ap task active` and `ap task brief <task-id>` before manually combining task docs, route status, Verify Steps, PR metadata, and policy notes; load only matched policy, task README, Verify Steps, and relevant files; use incidents only for analogous scope/tags; final output names actions, checks, blockers/drift, and next approval; keep stable gateway/policy/role before dynamic context and never cache mutable task state.
|
|
120
121
|
|
|
121
122
|
<!-- /ap:fragment -->
|
|
122
123
|
<!-- ap:fragment id="gateway.user.instructions" slot="body" mutability="append_only" -->
|
|
@@ -8,19 +8,19 @@
|
|
|
8
8
|
"reference.behavior": "Optional reference behavior for prompt/module/recipe evals, including expected outputs, hard gates, scoring rubric, and promotion policy."
|
|
9
9
|
},
|
|
10
10
|
"outputs": {
|
|
11
|
-
"verdict": "One of pass, rework, or
|
|
11
|
+
"verdict": "One of pass, rework, blocked, or human_review, with the criteria and evidence that determined the result.",
|
|
12
12
|
"rework.context": "Focused instructions for the next runner pass when criteria are not yet satisfied.",
|
|
13
|
-
"quality.report": "
|
|
13
|
+
"quality.report": "Structured `ap evaluator run` report with findings, evidence_refs, missing_tests, hidden_assumptions, residual_risks, evaluated_sha, and promotion/finish recommendation."
|
|
14
14
|
},
|
|
15
15
|
"permissions": {
|
|
16
16
|
"review.artifacts": "Read task documentation, runner artifacts, diffs, reports, and eval outputs.",
|
|
17
|
-
"task.verification": "Record
|
|
17
|
+
"task.verification": "Record evaluator-scoped quality_review through `ap evaluator run`; use ordinary `agentplane verify --by EVALUATOR` only for legacy/manual records that are not sufficient for finish/integrate gates."
|
|
18
18
|
},
|
|
19
19
|
"workflow": {
|
|
20
20
|
"goal": "Goal: decide whether the latest task or eval attempt satisfies the documented quality contract without relying on the runner's self-claim alone.",
|
|
21
|
-
"success.criteria": "Success criteria: required task sections and Verify Steps are mapped to concrete evidence; result manifest and artifacts are structurally valid; hard policy/security/lifecycle gates pass; LLM quality scoring is used only where the approved rubric asks for judgement; context.maximum_assimilation work is checked for source-shaped wiki topology, useful Obsidian-compatible wikilinks, page granularity, line-addressed provenance, coverage gaps, glossary alias safety, raw-deletion resilience, and leakage risk; the final verdict is reproducible from cited evidence.",
|
|
21
|
+
"success.criteria": "Success criteria: required task sections and Verify Steps are mapped to concrete evidence; result manifest and artifacts are structurally valid; hard policy/security/lifecycle gates pass; pass reviews include non-empty findings and a quality-report.json evidence ref written by `ap evaluator run`; LLM quality scoring is used only where the approved rubric asks for judgement; context.maximum_assimilation work is checked for source-shaped wiki topology, useful Obsidian-compatible wikilinks, page granularity, line-addressed provenance, coverage gaps, glossary alias safety, raw-deletion resilience, and leakage risk; the final verdict is reproducible from cited evidence.",
|
|
22
22
|
"constraints": "Constraints: use loaded gateway and policy modules as binding constraints; separate deterministic gates from LLM judgement; do not edit implementation files; do not finish or integrate tasks unless the approved plan explicitly assigns evaluator closure; preserve raw trace/artifact paths instead of copying assistant prose into task docs.",
|
|
23
|
-
"stop.rules": "Stop rules: mark blocked when evidence is missing, stale, unverifiable, policy-sensitive,
|
|
24
|
-
"output": "Output: verdict
|
|
23
|
+
"stop.rules": "Stop rules: mark blocked when evidence is missing, stale, unverifiable, policy-sensitive, outside approved scope, or cannot be tied to the reviewed commit; mark rework when criteria are testable but unmet; require human approval before changing pass criteria, promotion thresholds, or security-sensitive interpretation.",
|
|
24
|
+
"output": "Output: run `ap evaluator run <task-id> --verdict <pass|rework|blocked|human_review> --summary \"...\" --finding \"...\" --evidence <path-or-check>` or provide the exact equivalent command; include failed or satisfied criteria, evidence paths, missing tests, hidden assumptions, residual risks, rework context for the next runner pass, and finish/promote recommendation."
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -17,15 +17,18 @@ 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`, `git status --short --untracked-files=no`, and `git rev-parse --abbrev-ref HEAD`.
|
|
21
|
-
4. Use `ap
|
|
22
|
-
5.
|
|
20
|
+
3. Inspect `AGENTS.md`, `ap task list`, `ap task active`, `git status --short --untracked-files=no`, and `git rev-parse --abbrev-ref HEAD`.
|
|
21
|
+
4. Use `ap task brief <task-id>` before owner-scoped execution; add `--remote` only when hosted PR/check/review state is needed.
|
|
22
|
+
5. Use `ap role ORCHESTRATOR` while planning and approvals are active.
|
|
23
|
+
6. Switch to `ap role <ROLE>` before owner-scoped execution or verification.
|
|
23
24
|
|
|
24
25
|
## Rules
|
|
25
26
|
|
|
26
27
|
- Treat `AGENTS.md`, `ap quickstart`, and `ap role <ROLE>` as the policy surface.
|
|
27
28
|
- Use `ap task ...`, `ap work ...`, `ap verify ...`, and `ap finish ...`; do not edit `.agentplane/tasks.json` manually.
|
|
28
|
-
-
|
|
29
|
+
- Prefer `ap task brief <task-id>` and `ap task next-action <task-id> --explain` over manually combining task docs, route status, Verify Steps, PR metadata, and policy notes.
|
|
30
|
+
- In `branch_pr`, use the concrete route command emitted by `task brief` or `task next-action` when available; fall back to `ap work start <task-id> --agent <ROLE> --slug <slug> --worktree` only as the low-level command contract.
|
|
31
|
+
- Treat weak `source_confidence` or non-ready `verify_steps_quality` as a context gap to resolve before mutation.
|
|
29
32
|
- Keep repository artifacts in English unless the user explicitly requests another language for a specific artifact.
|
|
30
33
|
- Record verification evidence in the task README and through `ap verify`.
|
|
31
34
|
|
|
@@ -29,15 +29,21 @@ Use this evaluator only when the primary implementation path already produced a
|
|
|
29
29
|
4. Inspect concurrency-sensitive paths and classify whether observed drift belongs to active agent work, stale handoff, or unrelated workspace drift.
|
|
30
30
|
5. Identify missing tests, missing docs, or verification that only proves the happy path.
|
|
31
31
|
6. Do not execute fixes. Return review findings only.
|
|
32
|
+
7. When recording the result, use `agentplane evaluator run <task-id>` so the task gets prompt,
|
|
33
|
+
`quality-report.json`, and opinion artifacts. A bare `verify --by EVALUATOR` note is legacy
|
|
34
|
+
evidence and is not sufficient for finish/integrate gates.
|
|
32
35
|
|
|
33
36
|
## Output
|
|
34
37
|
|
|
35
38
|
Return a concise structured review:
|
|
36
39
|
|
|
37
|
-
- `verdict`: `pass`, `rework`, or `
|
|
40
|
+
- `verdict`: `pass`, `rework`, `blocked`, or `human_review`.
|
|
38
41
|
- `findings`: ordered by severity, each with file/path evidence and the broken invariant.
|
|
42
|
+
- `evidence_refs`: concrete files, checks, PRs, traces, or reports inspected; pass reviews must
|
|
43
|
+
include the generated `quality-report.json`.
|
|
39
44
|
- `missing_tests`: concrete tests or checks that would have caught the issue.
|
|
40
45
|
- `hidden_assumptions`: assumptions the implementation relies on but did not prove.
|
|
46
|
+
- `residual_risks`: known risks after the review.
|
|
41
47
|
- `recovery_context`: what the next agent should know only if normal context is insufficient.
|
|
42
48
|
|
|
43
49
|
## Stop Rules
|
|
@@ -58,6 +58,8 @@ Default branch names are `task/<task-id>/<slug>` for implementation branches and
|
|
|
58
58
|
through `branch.task_prefix` and `branch.task_close_prefix`; task id, slug, and sha positions remain
|
|
59
59
|
fixed.
|
|
60
60
|
|
|
61
|
+
Before manually filling `<slug>` or `<branch>`, use `agentplane task brief <task-id>` or `agentplane task next-action <task-id> --explain` and prefer the emitted concrete command.
|
|
62
|
+
|
|
61
63
|
<!-- /ap:fragment -->
|
|
62
64
|
<!-- ap:fragment id="policy.workflow.branch_pr.hard_constraint.constraints" slot="hard_constraint" mutability="append_only" -->
|
|
63
65
|
|
|
@@ -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.9",
|
|
6
|
+
"git_head": "c64a147ee51ff07019a834b314face264cabb948",
|
|
7
|
+
"watched_runtime_snapshot_hash": "615cd705f0e53934ac27d05278232358ece4cef3ec436e27ed514c314755d66b"
|
|
8
8
|
}
|