agentplane 0.4.3 → 0.5.0
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 +39 -18
- package/assets/AGENTS.md +27 -27
- package/assets/RUNNER.md +2 -2
- package/assets/agents/CODER.json +2 -2
- package/assets/agents/CREATOR.json +2 -2
- package/assets/agents/DOCS.json +3 -3
- package/assets/agents/EVALUATOR.json +1 -1
- package/assets/agents/INTEGRATOR.json +3 -3
- package/assets/agents/ORCHESTRATOR.json +2 -2
- package/assets/agents/PLANNER.json +2 -2
- package/assets/agents/REDMINE.json +1 -1
- package/assets/agents/REVIEWER.json +2 -2
- package/assets/agents/SKILL_EXTRACTOR.json +2 -2
- package/assets/agents/TESTER.json +2 -2
- package/assets/agents/UPDATER.json +1 -1
- package/assets/agents/UPGRADER.json +3 -3
- package/assets/codex-plugin/skills/agentplane/SKILL.md +11 -11
- package/assets/policy/check-routing.mjs +45 -1
- package/assets/policy/incidents.md +0 -14
- package/assets/policy/workflow.branch_pr.md +7 -3
- package/assets/policy/workflow.release.md +7 -5
- package/bin/agentplane.js +6 -1
- package/bin/ap.js +7 -0
- package/bin/runtime-watch.js +1 -0
- package/dist/.build-manifest.json +3 -3
- package/dist/cli.js +578 -430
- package/package.json +5 -3
|
@@ -15,9 +15,10 @@ Use this module when `workflow_mode=branch_pr`.
|
|
|
15
15
|
4. Keep single-writer discipline per task worktree.
|
|
16
16
|
5. Publish/update PR artifacts from the task worktree.
|
|
17
17
|
6. Verify on the task branch.
|
|
18
|
-
7.
|
|
19
|
-
8. CHECKPOINT
|
|
20
|
-
9.
|
|
18
|
+
7. Queue verified task branches for serialized integration when more than one agent is ready to merge.
|
|
19
|
+
8. CHECKPOINT B: integrate on base branch by INTEGRATOR.
|
|
20
|
+
9. CHECKPOINT C: finish task(s) on base with verification evidence.
|
|
21
|
+
10. Remove merged task branches/worktrees once the hosted-close/finish route has landed.
|
|
21
22
|
|
|
22
23
|
## Related task batch worktrees
|
|
23
24
|
|
|
@@ -46,6 +47,8 @@ agentplane task start-ready <task-id> --author <ROLE> --body "Start: ..."
|
|
|
46
47
|
agentplane pr open <task-id> --branch task/<task-id>/<slug> --author <ROLE>
|
|
47
48
|
agentplane pr update <task-id>
|
|
48
49
|
agentplane verify <task-id> --ok|--rework --by <ROLE> --note "..."
|
|
50
|
+
agentplane integrate queue enqueue <task-id> --branch task/<task-id>/<slug>
|
|
51
|
+
agentplane integrate queue run-next --run-verify
|
|
49
52
|
agentplane integrate <task-id> --branch task/<task-id>/<slug> --run-verify
|
|
50
53
|
agentplane finish <task-id> --author INTEGRATOR --body "Verified: ..." --result "..." --commit <git-rev> --close-commit
|
|
51
54
|
```
|
|
@@ -63,6 +66,7 @@ agentplane finish <task-id> --author INTEGRATOR --body "Verified: ..." --result
|
|
|
63
66
|
listed, verified independently, and merged through the primary task PR.
|
|
64
67
|
- `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.
|
|
65
68
|
- `integrate` defaults to the `merge` strategy so task branch commits stay in base history. Use `--merge-strategy squash` only when intentionally compacting branch history.
|
|
69
|
+
- When several task PRs are ready together, use the integration queue so only one branch owns the merge lane; stale branch heads move to rework instead of blocking later queued work.
|
|
66
70
|
- `task start-ready` MAY surface targeted incident advice for analogous scope/tags; follow it before widening scope.
|
|
67
71
|
- Keep structured resolved external findings in the task README; mark reusable ones with `Fixability: external` (or `IncidentExternal: true`) and let base-branch `finish` or `agentplane incidents collect <task-id>` promote them into `.agentplane/policy/incidents.md`, using optional `Incident*` fields only when the inferred scope/advice needs refinement. Plain `Findings` text remains task-local and does not update the shared incident registry.
|
|
68
72
|
- MUST stop and request re-approval on material drift.
|
|
@@ -10,11 +10,12 @@ Use this module when task touches release/version/publish flows.
|
|
|
10
10
|
## Required sequence
|
|
11
11
|
|
|
12
12
|
1. CHECKPOINT A: confirm clean tracked tree and approved scope.
|
|
13
|
-
2. CHECKPOINT B:
|
|
14
|
-
3.
|
|
15
|
-
4.
|
|
16
|
-
5.
|
|
17
|
-
6.
|
|
13
|
+
2. CHECKPOINT B: review/fix active `.agentplane/policy/incidents.md` entries through a dedicated task, archive final evidence, and clean the active incident registry.
|
|
14
|
+
3. CHECKPOINT C: generate release plan and freeze version/tag target.
|
|
15
|
+
4. Generate release notes with complete human-readable coverage of all task-level changes.
|
|
16
|
+
5. Run release prepublish checks.
|
|
17
|
+
6. CHECKPOINT D: choose the workflow-specific publication route after all gates pass.
|
|
18
|
+
7. Record release evidence (commands, outputs, resulting version/tag).
|
|
18
19
|
|
|
19
20
|
<!-- /ap:fragment -->
|
|
20
21
|
<!-- ap:fragment id="policy.workflow.release.commands.command.contract" slot="commands" mutability="replaceable" -->
|
|
@@ -38,6 +39,7 @@ agentplane finish <task-id> --author <ROLE> --body "Verified: release" --result
|
|
|
38
39
|
## Constraints
|
|
39
40
|
|
|
40
41
|
- MUST NOT perform irreversible release actions before explicit approval.
|
|
42
|
+
- MUST NOT start release planning, prepublish, or publish while `.agentplane/policy/incidents.md` contains active incident entries.
|
|
41
43
|
- MUST NOT skip parity/version checks.
|
|
42
44
|
- MUST NOT bypass required notes validation.
|
|
43
45
|
- MUST stop and request re-approval if release scope/tag/version changes.
|
package/bin/agentplane.js
CHANGED
|
@@ -297,7 +297,7 @@ function missingRepoRuntimeDependencies(agentplaneRoot) {
|
|
|
297
297
|
const requiredSpecifiers = ["@agentplaneorg/core"];
|
|
298
298
|
return requiredSpecifiers.filter((specifier) => {
|
|
299
299
|
try {
|
|
300
|
-
const resolved = requireFromAgentplane.resolve(specifier);
|
|
300
|
+
const resolved = requireFromAgentplane.resolve(`${specifier}/package.json`);
|
|
301
301
|
if (isPathInside(frameworkRoot, resolved)) return false;
|
|
302
302
|
return !existsSync(path.join(agentplaneRoot, "node_modules", ...specifier.split("/")));
|
|
303
303
|
} catch {
|
|
@@ -332,6 +332,11 @@ async function assertDistUpToDate() {
|
|
|
332
332
|
if (missingDeps.length > 0) {
|
|
333
333
|
process.stderr.write(
|
|
334
334
|
"error: repo-local runtime dependencies are missing for this framework checkout.\n" +
|
|
335
|
+
"Code: FRAMEWORK_RUNTIME_DEPENDENCY_MISSING\n" +
|
|
336
|
+
"Why: the repo-local CLI cannot resolve its workspace runtime packages from this checkout.\n" +
|
|
337
|
+
"Fix: restore the framework install layout, then rebuild the repo-local packages.\n" +
|
|
338
|
+
`Safe command: ${FRAMEWORK_DEV_BOOTSTRAP_COMMAND}\n` +
|
|
339
|
+
"Stop condition: stop if the missing package resolves outside this repository or bun install would need unapproved network access.\n" +
|
|
335
340
|
"This worktree is not bootstrapped yet.\n" +
|
|
336
341
|
"Missing module resolution:\n" +
|
|
337
342
|
missingDeps.map((specifier) => ` ${specifier}\n`).join("") +
|
package/bin/ap.js
ADDED
package/bin/runtime-watch.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"schema_version": 1,
|
|
3
3
|
"manifest_kind": "package",
|
|
4
4
|
"package_name": "agentplane",
|
|
5
|
-
"package_version": "0.
|
|
6
|
-
"git_head": "
|
|
7
|
-
"watched_runtime_snapshot_hash": "
|
|
5
|
+
"package_version": "0.5.0",
|
|
6
|
+
"git_head": "59109bfdc8a9746402a76fb9c7a428f75d6977f3",
|
|
7
|
+
"watched_runtime_snapshot_hash": "84365a7e93d3cd3d5b9c54bf9f3787fa7e11b2eaf257ba0c9ab3aa531fac5764"
|
|
8
8
|
}
|