agentplane 0.6.2 → 0.6.4
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 -4
- package/assets/agents/CURATOR.json +1 -1
- package/assets/agents/EVALUATOR.json +1 -1
- package/assets/policy/context.must.md +69 -0
- package/dist/.build-manifest.json +3 -3
- package/dist/cli.js +714 -628
- package/package.json +5 -5
package/assets/AGENTS.md
CHANGED
|
@@ -19,7 +19,6 @@ Detailed procedures live in canonical modules from `## CANONICAL DOCS`.
|
|
|
19
19
|
## PROJECT
|
|
20
20
|
|
|
21
21
|
- Repository type: user project initialized with `agentplane`.
|
|
22
|
-
- Gateway role: keep this file compact and deterministic; move scenario-specific details to policy modules.
|
|
23
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).
|
|
24
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 quickstart` as the canonical summary of the active path before mutating. In `branch_pr`, start from `ap work start ... --worktree`; in `direct`, stay in the current checkout and use the task lifecycle route.
|
|
25
24
|
|
|
@@ -85,6 +84,7 @@ git commit -m "Implement <task>"
|
|
|
85
84
|
ap task verify-show <task-id>
|
|
86
85
|
ap pr open <task-id> --branch task/<task-id>/<slug> --author <ROLE>
|
|
87
86
|
ap verify <task-id> --ok|--rework --by <ROLE> --note "..."
|
|
87
|
+
ap verify <task-id> --ok|--rework --by EVALUATOR --note "..." # verify --by EVALUATOR
|
|
88
88
|
ap integrate <task-id> --branch task/<task-id>/<slug> --run-verify
|
|
89
89
|
ap finish <task-id> --author INTEGRATOR --body "Verified: ..." --result "..." --commit <git-rev> --close-commit
|
|
90
90
|
```
|
|
@@ -145,7 +145,8 @@ Condition: task includes mutation (file edits, task-state changes, commits, merg
|
|
|
145
145
|
5. IF task modifies implementation code paths THEN LOAD `@.agentplane/policy/dod.code.md`.
|
|
146
146
|
6. IF task modifies docs/policy-only paths (`AGENTS.md`, docs, `.agentplane/policy/**`) THEN LOAD `@.agentplane/policy/dod.docs.md`.
|
|
147
147
|
7. IF task modifies policy files (`AGENTS.md` or `.agentplane/policy/**`) THEN LOAD `@.agentplane/policy/governance.md`.
|
|
148
|
-
8. IF task
|
|
148
|
+
8. IF task reads, writes, learns, curates, verifies, or relies on local context THEN LOAD `@.agentplane/policy/context.must.md`.
|
|
149
|
+
9. IF task modifies `.agentplane/policy/incidents.md` THEN LOAD `@.agentplane/policy/incidents.md`.
|
|
149
150
|
|
|
150
151
|
Routing constraints:
|
|
151
152
|
|
|
@@ -219,14 +220,13 @@ Detailed DoD rules are in `.agentplane/policy/dod.core.md`, `.agentplane/policy/
|
|
|
219
220
|
- DOC `.agentplane/policy/workflow.release.md`
|
|
220
221
|
- DOC `.agentplane/policy/workflow.upgrade.md`
|
|
221
222
|
- DOC `.agentplane/policy/security.must.md`
|
|
223
|
+
- DOC `.agentplane/policy/context.must.md`
|
|
222
224
|
- DOC `.agentplane/policy/dod.core.md`
|
|
223
225
|
- DOC `.agentplane/policy/dod.code.md`
|
|
224
226
|
- DOC `.agentplane/policy/dod.docs.md`
|
|
225
227
|
- DOC `.agentplane/policy/governance.md`
|
|
226
228
|
- DOC `.agentplane/policy/incidents.md`
|
|
227
229
|
|
|
228
|
-
---
|
|
229
|
-
|
|
230
230
|
<!-- /ap:fragment -->
|
|
231
231
|
<!-- ap:fragment id="gateway.agents.example.reference.examples" slot="example" mutability="replaceable" -->
|
|
232
232
|
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"workflow": {
|
|
23
23
|
"goal": "Goal: assimilate approved raw sources into readable wiki memory, durable sourced derived knowledge, and reusable incident advice without treating search indexes, raw harvest scaffolds, or caches as truth.",
|
|
24
24
|
"success.criteria": "Success criteria: selected source files and policies are read; existing wiki/facts/graph/capabilities/incidents are searched before new artifacts are written; every factual wiki/derived/incident claim has source_refs or an explicit no-source reason; useful wiki cross-links are added where existing target pages or glossary anchors improve navigation; contradictions and open questions are recorded; changed paths stay inside allowed_outputs and outside forbidden_outputs; context verify-task, context doctor, graph validation, incident validation, and ACR checks are run or concrete skips are recorded.",
|
|
25
|
-
"constraints": "Constraints: mutate knowledge only through the active AgentPlane task; never edit context/raw by default; never write .agentplane/context/service; preserve the chosen wiki hierarchy unless new evidence makes it misleading; keep glossary entries as a thin index over wiki pages and graph entities, not as competing truth; do not silently delete or merge facts/entities/edges/incidents; do not copy
|
|
25
|
+
"constraints": "Constraints: mutate knowledge only through the active AgentPlane task; never edit context/raw by default; never write .agentplane/context/service; preserve the chosen wiki hierarchy unless new evidence makes it misleading; keep glossary entries as a thin index over wiki pages and graph entities, not as competing truth; do not silently delete or merge facts/entities/edges/incidents; do not copy secrets or non-publishable source spans into README, ACR, reports, wiki, or incident advice; propose capabilities only when frontmatter allows it; let deterministic code validate registry shape, dedupe, required tags, and allowed commands.",
|
|
26
26
|
"stop.rules": "Stop rules: stop on missing source refs, unclear redaction policy, forbidden output requirements, stale or unresolvable source refs, capability or incident promotion beyond local proposal, or verification failures that would make the knowledge layer unreviewable.",
|
|
27
27
|
"output": "Output: sources read, wiki pages changed, facts/entities/edges/provenance rows changed, incident advice matches/promotions when any, capability proposals when any, verification commands with results, residual contradictions/open questions, and rollback notes."
|
|
28
28
|
}
|
|
@@ -18,7 +18,7 @@
|
|
|
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; 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; 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
23
|
"stop.rules": "Stop rules: mark blocked when evidence is missing, stale, unverifiable, policy-sensitive, or outside approved scope; mark rework when criteria are testable but unmet; require human approval before changing pass criteria, promotion thresholds, or security-sensitive interpretation.",
|
|
24
24
|
"output": "Output: verdict, failed or satisfied criteria, evidence paths, LLM judgement summary when used, rework context for the next runner pass, and finish/promote recommendation."
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
<!-- ap:fragment id="policy.context.must.body.context.must" slot="body" mutability="replaceable" -->
|
|
2
|
+
|
|
3
|
+
# Context MUST Rules
|
|
4
|
+
|
|
5
|
+
Use this module when a task reads, writes, learns, curates, verifies, or relies on AgentPlane local context.
|
|
6
|
+
|
|
7
|
+
Local context means `context/wiki/**`, `context/capabilities/**`, `context/raw/**`, `.agentplane/context/derived/facts/**`, `.agentplane/context/derived/graph/**`, `.agentplane/context/derived/capabilities/**`, and `.agentplane/context/**`.
|
|
8
|
+
|
|
9
|
+
<!-- /ap:fragment -->
|
|
10
|
+
<!-- ap:fragment id="policy.context.must.hard_constraint.source.first" slot="hard_constraint" mutability="append_only" -->
|
|
11
|
+
|
|
12
|
+
## Source-first contract
|
|
13
|
+
|
|
14
|
+
- MUST search existing context before creating new wiki pages, facts, graph entities, capabilities, or aliases.
|
|
15
|
+
- MUST prefer updating an existing canonical page/entity over creating duplicates.
|
|
16
|
+
- MUST keep raw source material, synthesized wiki prose, structured facts/graph rows, and capability notes distinct.
|
|
17
|
+
- MUST mark facts, decisions, risks, workflows, and definitions with source refs or an explicit no-source reason.
|
|
18
|
+
- MUST preserve conflicts and open questions instead of flattening contradictory sources into one unsourced claim.
|
|
19
|
+
|
|
20
|
+
<!-- /ap:fragment -->
|
|
21
|
+
<!-- ap:fragment id="policy.context.must.commands.command.contract" slot="commands" mutability="replaceable" -->
|
|
22
|
+
|
|
23
|
+
## Command contract
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
ap context search "<query>"
|
|
27
|
+
ap context show <ref>
|
|
28
|
+
ap context learn changes
|
|
29
|
+
ap context learn files <path> [--run]
|
|
30
|
+
ap context ingest --changed|--all|--index-only
|
|
31
|
+
ap context reindex --include-raw
|
|
32
|
+
ap context wiki lint <path>
|
|
33
|
+
ap context wiki explain <path>
|
|
34
|
+
ap context wiki link <path>
|
|
35
|
+
ap context wiki index context/wiki
|
|
36
|
+
ap context check
|
|
37
|
+
ap context doctor
|
|
38
|
+
ap context verify-task <task-id>
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
- Use `search` for discovery and `show` for exact source readback.
|
|
42
|
+
- Use `learn` to create human-facing context assimilation tasks instead of ad hoc memory writes; use `ingest`/`reindex` for lower-level agent and automation pipelines.
|
|
43
|
+
- Use wiki lint/explain/link/index when adding or changing wiki pages.
|
|
44
|
+
- Run `verify-task` before closing tasks that create or rely on context artifacts.
|
|
45
|
+
|
|
46
|
+
<!-- /ap:fragment -->
|
|
47
|
+
<!-- ap:fragment id="policy.context.must.hard_constraint.write.boundaries" slot="hard_constraint" mutability="append_only" -->
|
|
48
|
+
|
|
49
|
+
## Write boundaries
|
|
50
|
+
|
|
51
|
+
- MUST NOT manually edit `.agentplane/context/derived/**`; rebuild projections through context commands.
|
|
52
|
+
- MUST NOT write secrets or non-publishable source spans into public wiki pages, task summaries, ACRs, reports, or incident advice.
|
|
53
|
+
- MUST preserve the user-created hierarchy under `context/raw/**` when citing raw sources.
|
|
54
|
+
- MUST NOT create glossary-only truth; glossary entries are aliases/navigation over wiki pages and graph entities.
|
|
55
|
+
- SHOULD use proposal-before-promotion for harvested or inferred context when provenance, staleness, or conflicts are not clean.
|
|
56
|
+
|
|
57
|
+
<!-- /ap:fragment -->
|
|
58
|
+
<!-- ap:fragment id="policy.context.must.check.dod" slot="check" mutability="append_only" -->
|
|
59
|
+
|
|
60
|
+
## Context DoD
|
|
61
|
+
|
|
62
|
+
Context work is done only when:
|
|
63
|
+
|
|
64
|
+
1. Existing context was searched or a concrete skip reason was recorded.
|
|
65
|
+
2. New or changed factual claims have source refs or explicit no-source reasons.
|
|
66
|
+
3. Wiki links/indexes were refreshed when pages were added, moved, or materially renamed.
|
|
67
|
+
4. Derived projection checks were run or skipped with reason and risk.
|
|
68
|
+
5. `ap context verify-task <task-id>` passed for task-bound context work.
|
|
69
|
+
<!-- /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.4",
|
|
6
|
+
"git_head": "75072680dde8840f26ab3ae1fd02fae8b7e54bcd",
|
|
7
|
+
"watched_runtime_snapshot_hash": "2f2d00d089cd72157ee5cf45afa084df1ab2d65fe3b8fb3823b35d388b0bd2a6"
|
|
8
8
|
}
|