Repository navigation
Description
Description
The onboard hedge pins Ship only on a plan with status: reviewed, and the plan checks refuse that status: PLAN-01 and IMPLEMENT-01 allow pending, in-progress, implemented and blocked only. A plan set to reviewed fails both checks. No status they allow leads the hedge to Ship.
Steps to reproduce, in a checkout of this repository on next (git switch next) or on the tag (git checkout cli-v5.9.0). They need git and node 22.18+, 24.11+ or 26+, and no dependency install.
- Paste the block below at the root of the checkout. It adds one test, which runs the plan check on a template plan for each status of the onboard table, then runs that file with the wrapper
aidd_docs/memory/testing.mdprescribes. - Undo it with
git checkout scripts/__tests__/check/validate-plan.test.js.
Block to paste
git apply <<'END_OF_PATCH'
diff --git a/scripts/__tests__/check/validate-plan.test.js b/scripts/__tests__/check/validate-plan.test.js
index 1429102..9aa607d 100644
--- a/scripts/__tests__/check/validate-plan.test.js
+++ b/scripts/__tests__/check/validate-plan.test.js
@@ -159,6 +159,13 @@ describe("validate-plan", () => {
assert.deepEqual(run(files), OK);
});
+ it("accepts every plan status the onboard hedge names", () => {
+ const hedge = fs.readFileSync(path.resolve(__dirname, "../../../plugins/aidd-context/skills/00-onboard/references/state/hedge.md"), "utf8");
+ const statuses = [...hedge.matchAll(/^\| `([a-z-]+)` +\|/gm)].map((m) => m[1]);
+ const refusals = statuses.map((status) => run(mutate("plan.md", (s) => s.replace("status: pending", `status: ${status}`))).out.trim()).filter(Boolean);
+ assert.equal(refusals.length, 0, `onboard expects a plan status the plan check refuses: ${refusals.join("; ")}`);
+ });
+
it("accepts an omitted optional section and a placeholder inside code", () => {
const files = mutate("plan.md", (s) => s.replace(/## Rules[\s\S]*?(?=## Decisions)/, "").replace("Source: x", "Source: `{{kept}}`"));
assert.deepEqual(run(files), OK);
END_OF_PATCH
node scripts/check-tests-leave-git-alone.js -- node --test --test-reporter=spec scripts/__tests__/check/validate-plan.test.jsAffected file(s)
plugins/aidd-context/skills/00-onboard/references/state/hedge.md:10, plugins/aidd-dev/skills/02-implement/scripts/contract.json:11 and plugins/aidd-dev/skills/01-plan/scripts/contract.json:16 (copied to plugins/aidd-dev/hooks/lib/contracts/ by scripts/check/engine/sync.cjs). Diagnosis, not verified by a fix.
Expected behaviour
Every plan status the onboard table names passes the plan checks. The added test asserts it for the plan check (PLAN-01).
Observed behaviour
The test command exits 1: the added test fails, and the 43 existing tests pass, on next (0c6d5fe) and on cli-v5.9.0 (5bf007d).
✖ accepts every plan status the onboard hedge names
AssertionError [ERR_ASSERTION]: onboard expects a plan status the plan check refuses: <tmp>/plan.md:3 PLAN-01 front matter "status" must be one of pending, in-progress, implemented, blocked "reviewed"
ℹ tests 44
ℹ pass 43
ℹ fail 1
Run on next, trimmed; <tmp> is the test's temporary folder. Only reviewed is refused; the four other statuses pass.
The implement check refuses it too (IMPLEMENT-01).
Command and output
At the root of the same checkout:
d=$(mktemp -d) && printf -- '---\nobjective: "x"\nstatus: reviewed\n---\n\n# Plan: x\n' > "$d/plan.md" && node plugins/aidd-dev/skills/02-implement/scripts/validate-implement.cjs "$d"<tmp>/plan.md:3 IMPLEMENT-01 set the plan status to pending, in-progress, implemented, or blocked "reviewed"
It exits 1 on next and on cli-v5.9.0. With status: implemented, no IMPLEMENT-01 line appears; that bare folder still exits 1 on IMPLEMENT-05, for its missing run.md.
AI tool
Claude Code
aidd-cli version
5.8.0 where it was seen; the test fails on cli-v5.9.0 and next. The reviewed row dates from #425 (5038985).
OS
Linux
Additional context
The added test is a reproduction, not a regression test to keep. Each of two edits, checked alone on next, turns it green: reviewed added to the PLAN-01 values, or the reviewed row removed from the onboard table.
Suggestion, not verified by a fix: 05-review already records each round's Verdict: in a review.md (plugins/aidd-dev/skills/05-review/actions/03-conclude.md:13, assets/review-template.md:8), which onboard does not read; the hedge could pin Ship from the last verdict, though a round can cover part of the work only.
Accepting reviewed in both checks instead leaves that hand-written status tied to no review; the choice is left to the maintainers.
To the maintainers
One reply, fixed for good: if any part of this report cost you time, a one-line reply naming that part and how to write it better would make all my future reports cheaper for you (for example: "Description: mixes facts and diagnosis; keep the symptom only"). No reply is needed otherwise.
Code of Conduct
- I agree to follow this project's Code of Conduct.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsIdeation
Activity