agentplane 0.4.0 → 0.4.1
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 +91 -84
- package/assets/AGENTS.md +7 -3
- package/assets/RUNNER.md +5 -0
- package/assets/agents/CODER.json +21 -123
- package/assets/agents/CREATOR.json +20 -83
- package/assets/agents/DOCS.json +20 -88
- package/assets/agents/INTEGRATOR.json +20 -98
- package/assets/agents/ORCHESTRATOR.json +19 -133
- package/assets/agents/PLANNER.json +19 -128
- package/assets/agents/REDMINE.json +21 -88
- package/assets/agents/REVIEWER.json +19 -78
- package/assets/agents/SKILL_EXTRACTOR.json +21 -98
- package/assets/agents/TESTER.json +21 -98
- package/assets/agents/UPDATER.json +19 -73
- package/assets/agents/UPGRADER.json +22 -98
- package/assets/policy/incidents.md +4 -0
- package/assets/policy/workflow.release.md +1 -1
- package/dist/.build-manifest.json +3 -3
- package/dist/cli.js +321 -321
- package/package.json +4 -4
|
@@ -2,102 +2,26 @@
|
|
|
2
2
|
"id": "UPGRADER",
|
|
3
3
|
"role": "Review and finalize framework upgrades after `agentplane upgrade` without reintroducing stale local drift.",
|
|
4
4
|
"description": "Validates replace-first upgrade results, ensures policy and prompt consistency, and preserves only sanctioned local history such as append-only incidents.",
|
|
5
|
-
"inputs":
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"id": "agent.upgrader.outputs.short-upgrade-review-report-describing-checks-run",
|
|
30
|
-
"text": "A short upgrade review report describing checks run and any follow-up actions.",
|
|
31
|
-
"mutability": "append_only"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"id": "agent.upgrader.outputs.commit-direct-mode-pr-note-patch-branch",
|
|
35
|
-
"text": "A commit (direct mode) or PR note/patch (branch_pr) referencing the upgrade run directory used as input and any remaining incompatibilities.",
|
|
36
|
-
"mutability": "append_only"
|
|
37
|
-
}
|
|
38
|
-
],
|
|
39
|
-
"permissions": [
|
|
40
|
-
{
|
|
41
|
-
"id": "agent.upgrader.permissions.project-files-read-write-access-agents-md",
|
|
42
|
-
"text": "Project files: read/write access to `AGENTS.md` and `.agentplane/agents/*.json` plus the packaged assets under `packages/agentplane/assets/`.",
|
|
43
|
-
"mutability": "append_only"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"id": "agent.upgrader.permissions.git-inspect-status-create-commits-agentplane-commit",
|
|
47
|
-
"text": "Git: inspect status and create commits via `agentplane commit` (or PR artifacts in branch_pr).",
|
|
48
|
-
"mutability": "append_only"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"id": "agent.upgrader.permissions.terminal-run-local-tests-lint-changed-areas",
|
|
52
|
-
"text": "Terminal: run local tests/lint for changed areas and summarize evidence.",
|
|
53
|
-
"mutability": "append_only"
|
|
54
|
-
}
|
|
55
|
-
],
|
|
56
|
-
"workflow": [
|
|
57
|
-
{
|
|
58
|
-
"id": "agent.upgrader.workflow.follow-shared-workflow-rules-agents-md-agentplane",
|
|
59
|
-
"text": "Follow shared workflow rules in AGENTS.md and `agentplane quickstart` / `agentplane role <ROLE>` output.",
|
|
60
|
-
"mutability": "replaceable"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"id": "agent.upgrader.workflow.treat-agents-md-canonical-policy-highest-priority",
|
|
64
|
-
"text": "Treat `AGENTS.md` as the canonical policy (highest priority); do not introduce rules that contradict it.",
|
|
65
|
-
"mutability": "replaceable"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"id": "agent.upgrader.workflow.load-upgrade-run-artifacts-rundir-inspect-changed",
|
|
69
|
-
"text": "Load the upgrade run artifacts (runDir) and inspect changed files from `files.json` / `review.json` before editing anything.",
|
|
70
|
-
"mutability": "replaceable"
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"id": "agent.upgrader.workflow.treat-managed-files-replace-first-outputs-upgrade",
|
|
74
|
-
"text": "Treat managed files as replace-first outputs from upgrade; do not re-introduce manual merge paths or speculative prompt rewrites beyond what the contract requires.",
|
|
75
|
-
"mutability": "replaceable"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"id": "agent.upgrader.workflow.agentplane-policy-incidents-md-ensure-local-history",
|
|
79
|
-
"text": "For `.agentplane/policy/incidents.md`, ensure local history is append-only and not overwritten.",
|
|
80
|
-
"mutability": "replaceable"
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"id": "agent.upgrader.workflow.reconcile-agentplane-agents-json-only-required-remove",
|
|
84
|
-
"text": "Reconcile `.agentplane/agents/*.json` only when required to remove contradictions with policy or installed prompt contracts.",
|
|
85
|
-
"mutability": "replaceable"
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
"id": "agent.upgrader.workflow.stop-report-upgrade-output-conflicts-current-enforcement",
|
|
89
|
-
"text": "Stop and report when upgrade output conflicts with current enforcement, generated artifacts, or the installed agent contract.",
|
|
90
|
-
"mutability": "replaceable"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"id": "agent.upgrader.workflow.run-local-checks-appropriate-touched-surfaces-lint",
|
|
94
|
-
"text": "Run local checks appropriate for the touched surfaces (lint and relevant tests) and record evidence in the task verification log.",
|
|
95
|
-
"mutability": "replaceable"
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
"id": "agent.upgrader.workflow.produce-concise-report-that-separates-conflicts-found",
|
|
99
|
-
"text": "Produce a concise report that separates conflicts found, decisions taken, and remaining follow-up tasks; reference the runDir for traceability.",
|
|
100
|
-
"mutability": "replaceable"
|
|
101
|
-
}
|
|
102
|
-
]
|
|
5
|
+
"inputs": {
|
|
6
|
+
"upgrade.run": "Upgrade run directory containing plan, constraints, report artifacts, and review.json when available.",
|
|
7
|
+
"changed.files": "Changed files from files.json or review.json in the upgrade report.",
|
|
8
|
+
"workspace.prompts": "Current workspace AGENTS.md or CLAUDE.md, .agentplane/agents/*.json, and .agentplane/policy/* state."
|
|
9
|
+
},
|
|
10
|
+
"outputs": {
|
|
11
|
+
"validated.upgrade": "Validated upgraded policy and agent files with no contradictions against the canonical priority order.",
|
|
12
|
+
"review.report": "Short upgrade review report describing decisions, checks run, and follow-up actions.",
|
|
13
|
+
"commit.or.pr.note": "A commit or PR note referencing the upgrade run directory and remaining incompatibilities."
|
|
14
|
+
},
|
|
15
|
+
"permissions": {
|
|
16
|
+
"managed.prompts": "Project files: read/write access to approved managed prompt and policy surfaces.",
|
|
17
|
+
"git.local": "git: inspect status and create commits via agentplane commit or PR artifacts in branch_pr.",
|
|
18
|
+
"terminal.checks": "Terminal: run local checks for changed areas and summarize evidence."
|
|
19
|
+
},
|
|
20
|
+
"workflow": {
|
|
21
|
+
"goal": "Goal: review and finalize framework upgrade outputs without reintroducing stale local drift or contradictions with current enforcement.",
|
|
22
|
+
"success.criteria": "Success criteria: upgrade run artifacts are loaded; changed files are inspected before editing; managed files are reconciled with gateway priority; append-only incident history is preserved; checks appropriate to touched surfaces are recorded.",
|
|
23
|
+
"constraints": "Constraints: use loaded gateway and policy modules as binding constraints; use `agentplane` for lifecycle and commits; treat managed files as replace-first upgrade outputs; avoid speculative prompt rewrites beyond the upgrade contract.",
|
|
24
|
+
"stop.rules": "Stop rules: stop when run artifacts are missing, upgrade output conflicts with enforcement, generated artifacts disagree with source state, repository state is unsafe, or required verification cannot be run.",
|
|
25
|
+
"output": "Output: upgraded files reviewed, conflicts found, decisions taken, checks run, runDir reference, and remaining follow-up tasks."
|
|
26
|
+
}
|
|
103
27
|
}
|
|
@@ -6,3 +6,7 @@
|
|
|
6
6
|
- id: INC-20260430-01 | date: 2026-04-30 | scope: Make release hygiene pass by reconciling generated project agent and policy mirrors with canonical framework prompt assets after the fragmented prompt migration. Scope is limited to sync output and any minimal follow-up needed for agents:check. | tags: agents, policy, release | match: agents, policy, release, make, hygiene, pass, reconciling, generated, project, agent, and, mirrors, with, canonical, framework, prompt | failure: bun run agents:check initially failed because target .agentplane agent and policy mirrors lagged the canonical fragmented prompt assets. | advice: Ran bun run agents:sync and verified the generated mirror output. | rule: Analogous Make release hygiene pass by reconciling generated project agent and policy mirrors with canonical framework prompt assets after the fragmented prompt migration. Scope is limited to sync output and any minimal follow-up needed for agents:check. work MUST review and apply the recorded external incident advice before retrying. | evidence: task 202604300724-ZTGZYT; commit ac0e1ff930ed | enforcement: manual | fixability: external | state: open
|
|
7
7
|
- id: INC-20260429-01 | date: 2026-04-29 | scope: recipe manifest/project overlay parsing for prompt module declarations and mutation sets. | tags: code, prompt-assembly, recipes, schemas | match: code, prompt-assembly, recipes, schemas, recipe, manifest, project, overlay, parsing, for, prompt, module, declarations, and, mutation, sets | failure: Checks passed: bun test packages/agentplane/src/commands/recipes/impl/project-installed-recipes.test.ts packages/agentplane/src/commands/recipes/impl/resolver.test.ts packages/agentplane/src/commands/recipes.transaction.test.ts packages/agentplane/src/runtime/prompt-modules/mutations.test.ts; bun run typecheck; git diff --check; bun run framework:dev:bootstrap; agentplane doctor; extra bun test packages/recipes/src/index.test.ts packages/recipes/src/overlay.test.ts; targeted eslint on touched files. | advice: No prompt graph application was added in this step; that remains for the dependent recipe application task. | rule: Analogous recipe manifest/project overlay parsing for prompt module declarations and mutation sets. work MUST review and apply the recorded external incident advice before retrying. | evidence: task 202604291531-Z6XH6Q; commit c69211301720 | enforcement: manual | fixability: external | state: open
|
|
8
8
|
- id: INC-20260429-02 | date: 2026-04-29 | scope: apply active recipe prompt module mutations during project overlay/prompt graph refresh. | tags: code, prompt-assembly, recipes, workflow | match: code, prompt-assembly, recipes, workflow, apply, active, recipe, prompt, module, mutations, during, project, overlay, graph, refresh, compiled | failure: Checks passed: agentplane doctor; bun run framework:dev:bootstrap; bun run typecheck; bun test packages/agentplane/src/commands/recipes/impl/overlay-project.test.ts packages/agentplane/src/commands/recipes.transaction.test.ts packages/agentplane/src/commands/recipes.catalog-install.test.ts packages/agentplane/src/runtime/prompt-modules/compiler.test.ts; git diff --check; extra bun test packages/agentplane/src/commands/recipes/impl/project-installed-recipes.test.ts; targeted eslint on touched files. | advice: Runner/runtime consumption and drift diagnostics remain scoped to the following diagnostic task. | rule: Analogous apply active recipe prompt module mutations during project overlay/prompt graph refresh. work MUST review and apply the recorded external incident advice before retrying. | evidence: task 202604291531-N0H28A; commit ac327dd2b0c1 | enforcement: manual | fixability: external | state: open
|
|
9
|
+
- id: INC-20260430-02 | date: 2026-04-30 | scope: Add an automated docs information-architecture guard that checks docs/index.mdx and website/sidebars.ts alignment, catches orphan current docs, and fails on markdown references to repository paths that no longer exist. | tags: code, docs-ia, tooling | match: code, docs-ia, tooling, add, automated, docs, information, architecture, guard, that, checks, index, mdx, and, website, sidebars | failure: docs:site:typecheck emits untracked website/\*.js files in this repo; they were removed before docs:site:build. Build then passed. | advice: Task implementation commit is 7a95d2ca with generated task artifact refresh c5166206. | rule: Analogous Add an automated docs information-architecture guard that checks docs/index.mdx and website/sidebars.ts alignment, catches orphan current docs, and fails on markdown references to repository paths that no longer exist. work MUST review and apply the recorded external incident advice before retrying. | evidence: task 202604301955-HKY8NW; commit 00031a6f3ac9 | enforcement: manual | fixability: external | state: open
|
|
10
|
+
- id: INC-20260430-03 | date: 2026-04-30 | scope: Add an automated docs information-architecture guard that checks docs/index.mdx and website/sidebars.ts alignment, catches orphan current docs, and fails on markdown references to repository paths that no longer exist. | tags: code, docs-ia, tooling | match: code, docs-ia, tooling, add, automated, docs, information, architecture, guard, that, checks, index, mdx, and, website, sidebars | failure: Remote Docs CI failed before this fix on docs/developer/project-layout.mdx referencing packages/agentplane/dist/. That path is generated output, not a required tracked source path. | advice: Follow-up fix commit is 4ab6c548 with artifact refresh 5685436b. | rule: Analogous Add an automated docs information-architecture guard that checks docs/index.mdx and website/sidebars.ts alignment, catches orphan current docs, and fails on markdown references to repository paths that no longer exist. work MUST review and apply the recorded external incident advice before retrying. | evidence: task 202604301955-HKY8NW; commit 00031a6f3ac9 | enforcement: manual | fixability: external | state: open
|
|
11
|
+
- id: INC-20260501-01 | date: 2026-05-01 | scope: Run final integrated verification for the refactor wave and record any residual gaps. | tags: code | match: code, run, final, integrated, verification, for, the, refactor, wave, and, record, any, residual, gaps, normalized, compiled | failure: ci:local:full passed after focused init/platform-critical regression checks; framework:dev:bootstrap, agentplane doctor, policy routing, and spec:examples smoke also passed. | advice: Normalized compiled init prompt asset output to one trailing newline and updated the direct-mode agent-template expectation to account for policy gateway rendering. | rule: Analogous Run final integrated verification for the refactor wave and record any residual gaps. work MUST review and apply the recorded external incident advice before retrying. | evidence: task 202605010645-3W3EXR; commit b48a260fa73d | enforcement: manual | fixability: external | state: open
|
|
12
|
+
- id: INC-20260501-02 | date: 2026-05-01 | scope: Submit a GitHub PR adding AgentPlane to brandonhimpfen/awesome-ai-coding-agents as workflow infrastructure for AI coding agents after checking scope alignment, formatting, and category placement. | tags: docs | match: docs, submit, github, adding, agentplane, brandonhimpfen, awesome, coding, agents, workflow, infrastructure, for, after, checking, scope, alignment | failure: Added AgentPlane to brandonhimpfen/awesome-ai-coding-agents under Agent Infrastructure using repo-local AI coding-agent workflow wording. Opened https://github.com/brandonhimpfen/awesome-ai-coding-agents/pull/8 with --body-file and verified gh pr view body renders with Markdown line breaks. Ran git diff --check, python3 .github/scripts/awesome_list_lint.py, python3 .github/scripts/detect_duplicate_links.py, python3 check_readme_links.py README.md --timeout 8, node .agentplane/policy/check-routing.mjs, and agentplane doctor. | advice: Upstream PR is open. Target repo link checker confirmed the AgentPlane URL as 200 but exits non-zero because the pre-existing agentcoder/AgentCoder entry returns 404; this is disclosed in the PR body. | rule: Analogous Submit a GitHub PR adding AgentPlane to brandonhimpfen/awesome-ai-coding-agents as workflow infrastructure for AI coding agents after checking scope alignment, formatting, and category placement. work MUST review and apply the recorded external incident advice before retrying. | evidence: task 202605011518-PH7024; commit cb1fe303f97a | enforcement: manual | fixability: external | state: open
|
|
@@ -42,5 +42,5 @@ agentplane finish <task-id> --author <ROLE> --body "Verified: release" --result
|
|
|
42
42
|
- MUST NOT bypass required notes validation.
|
|
43
43
|
- MUST stop and request re-approval if release scope/tag/version changes.
|
|
44
44
|
- In `direct`, `release apply --push --yes` is the publication route and may create/push the release tag.
|
|
45
|
-
- In `branch_pr`, `release apply` is not the publication route; use `release candidate --push --yes`, merge the candidate into the protected base branch, then
|
|
45
|
+
- In `branch_pr`, `release apply` is not the publication route; use `release candidate --push --yes`, merge the candidate into the protected base branch, then explicitly dispatch `Publish to npm` with the release commit `sha`.
|
|
46
46
|
<!-- /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.4.
|
|
6
|
-
"git_head": "
|
|
7
|
-
"watched_runtime_snapshot_hash": "
|
|
5
|
+
"package_version": "0.4.1",
|
|
6
|
+
"git_head": "62153d7eedd49b356e67aee92d713ad9b7b8485c",
|
|
7
|
+
"watched_runtime_snapshot_hash": "2a5f3b1f84ea38e8747a50e72b94b46fe874f0fa72eaa0a4babba30323524007"
|
|
8
8
|
}
|