agentplane 0.6.0 → 0.6.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/README.md CHANGED
@@ -1,3 +1,7 @@
1
+ <p align="center">
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
+ </p>
4
+
1
5
  # AgentPlane CLI
2
6
 
3
7
  **Git-native infrastructure for traceable AI work.**
@@ -12,7 +16,7 @@ Use any coding agent. Keep the review trail in your repository.
12
16
  [![Downloads](https://img.shields.io/npm/dm/agentplane.svg)](https://www.npmjs.com/package/agentplane)
13
17
  [![GitHub stars](https://img.shields.io/github/stars/basilisk-labs/agentplane?style=flat)](https://github.com/basilisk-labs/agentplane/stargazers)
14
18
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/basilisk-labs/agentplane/blob/main/LICENSE)
15
- [![Node.js 20+](https://img.shields.io/badge/Node.js-20%2B-3c873a.svg)](https://agentplane.org/docs/user/prerequisites)
19
+ [![Node.js 24+](https://img.shields.io/badge/Node.js-24%2B-3c873a.svg)](https://agentplane.org/docs/user/prerequisites)
16
20
 
17
21
  [![SLSA v1 provenance](https://img.shields.io/badge/SLSA-v1-success)](https://registry.npmjs.org/-/npm/v1/attestations/agentplane@latest)
18
22
  [![Trusted publisher](https://img.shields.io/badge/npm-trusted%20publisher-blue)](https://docs.npmjs.com/generating-provenance-statements)
@@ -33,7 +37,7 @@ npx agentplane init
33
37
  npx agentplane quickstart
34
38
  ```
35
39
 
36
- Requirements: Node.js 20+, Git, and a local terminal.
40
+ Requirements: Node.js 24+, Git, and a local terminal.
37
41
 
38
42
  Experimental agent shorthand:
39
43
 
package/assets/AGENTS.md CHANGED
@@ -172,6 +172,7 @@ Routing constraints:
172
172
  - MUST stage/commit only intentional changes for the active task scope.
173
173
  - MUST stop and request re-approval when scope, risk, or verification criteria materially drift.
174
174
  - MUST NOT let ORCHESTRATOR perform owner-scoped implementation or verification once a task owner is known, unless the approved plan explicitly makes ORCHESTRATOR the owner.
175
+ - MUST treat user-authenticated GitHub actions as user-attributed publication and route post-merge fixes through a new task or explicit `post-merge-` branch or `followup` slug token.
175
176
 
176
177
  Role boundaries: ORCHESTRATOR = preflight + plan + approvals; PLANNER = executable task graph creation/update; INTEGRATOR = base integration/finish in `branch_pr`.
177
178
 
@@ -21,8 +21,8 @@
21
21
  },
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
- "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; 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; do not silently delete or merge facts/entities/edges/incidents; do not copy private raw content into README, ACR, reports, wiki, or incident advice unless policy permits redacted output; propose capabilities only when frontmatter allows it; let deterministic code validate registry shape, dedupe, required tags, and allowed commands.",
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 private raw content into README, ACR, reports, wiki, or incident advice unless policy permits redacted output; 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
  }
@@ -0,0 +1,20 @@
1
+ <!-- ap:fragment id="policy.framework_dev.body.framework.dev" slot="body" mutability="replaceable" -->
2
+
3
+ # Framework Development Policy
4
+
5
+ Use this module only inside the AgentPlane framework checkout.
6
+
7
+ This module is intentionally excluded from normal initialized repositories and must load only when
8
+ the prompt-module compiler context has `repo_type=framework`.
9
+
10
+ <!-- /ap:fragment -->
11
+ <!-- ap:fragment id="policy.framework_dev.hard_constraint.framework.scope" slot="hard_constraint" mutability="append_only" -->
12
+
13
+ ## Framework Scope
14
+
15
+ - MUST treat `packages/agentplane/bin/agentplane.js` as the canonical direct repo-local CLI entrypoint.
16
+ - MUST keep framework-only commands unavailable outside framework checkouts, not merely hidden from normal help.
17
+ - MUST run `bun run framework:dev:bootstrap` after changes to watched runtime, CLI, prompt, or built asset surfaces before relying on repo-local runtime parity.
18
+ - MUST NOT require installed user repositories to depend on framework helper scripts.
19
+
20
+ <!-- /ap:fragment -->
@@ -53,6 +53,11 @@ agentplane integrate <task-id> --branch task/<task-id>/<slug> --run-verify
53
53
  agentplane finish <task-id> --author INTEGRATOR --body "Verified: ..." --result "..." --commit <git-rev> --close-commit
54
54
  ```
55
55
 
56
+ Default branch names are `task/<task-id>/<slug>` for implementation branches and
57
+ `task-close/<task-id>/<sha12>` for close-tail branches. Repositories MAY override only the prefixes
58
+ through `branch.task_prefix` and `branch.task_close_prefix`; task id, slug, and sha positions remain
59
+ fixed.
60
+
56
61
  <!-- /ap:fragment -->
57
62
  <!-- ap:fragment id="policy.workflow.branch_pr.hard_constraint.constraints" slot="hard_constraint" mutability="append_only" -->
58
63
 
@@ -73,6 +78,14 @@ agentplane finish <task-id> --author INTEGRATOR --body "Verified: ..." --result
73
78
  after the first green rollup), then merge it through GitHub. If auto-merge remains blocked
74
79
  after stable green checks, the agent MUST continue with the permitted GitHub merge route
75
80
  available to its credentials instead of stopping at enabled auto-merge.
81
+ - Claude Code and other agents that inherit the user's GitHub session MUST treat `gh pr merge`,
82
+ GitHub UI merge, and auto-merge enablement as user-attributed publication. Before using those
83
+ actions, verify the integration queue/handoff route, stable hosted checks, and explicit approval
84
+ for the merge lane; record the GitHub PR number and merge commit in task artifacts after merge.
85
+ - If a task is already `DONE` and needs a post-merge fix, create a new task unless the follow-up
86
+ branch slug explicitly starts with `post-merge-` or uses `followup` as a separate slug token
87
+ bounded by the start, end, or hyphens; generic slugs under an already closed task id are treated
88
+ as conflicting closure attempts.
76
89
  - `integrate` defaults to the `merge` strategy so task branch commits stay in base history. Use `--merge-strategy squash` only when intentionally compacting branch history.
77
90
  - When several task PRs are ready together, use the integration queue so only one branch owns the merge lane; agents waiting behind `claimed` or `handoff` entries SHOULD use bounded polling (`--wait --poll-interval-ms 30000 --timeout-ms 600000`) instead of retrying ad hoc; stale branch heads move to rework instead of blocking later queued work.
78
91
  - `task start-ready` MAY surface targeted incident advice for analogous scope/tags; follow it before widening scope.
@@ -2,7 +2,7 @@
2
2
  "schema_version": 1,
3
3
  "manifest_kind": "package",
4
4
  "package_name": "agentplane",
5
- "package_version": "0.6.0",
6
- "git_head": "5210d5e80d61908e7e3100383fc7a6a65fb697e5",
7
- "watched_runtime_snapshot_hash": "cea114f499ac1d9c6b7a1878e323d6ec16d60042a7a3342d0ae446efb5b26299"
5
+ "package_version": "0.6.2",
6
+ "git_head": "38d20e02646371b587820adb328039c615323f47",
7
+ "watched_runtime_snapshot_hash": "d9122cf6ac941123139d675eac929456b8e4caf0ce3e811bc69af6ea9905ec2a"
8
8
  }