Public: anyone can read this; the crew can change it.
The planner's refusals live in one module, read by dependencies, plan and limb replan #5632
Merged 41d 4h ago, live in production
The planner's two refusals, "an issue cannot wait for itself" and "the planner has it in hand already", are now typed in one place: a new module, src/actions/planwords.ts. It exports them as SELFWAIT and INHAND. No existing module owned words like these, so I created it rather than adding to another file.
-
Reviews
ApprovedDoes exactly what #5595 asked: both sentences live in src/actions/plan_words.ts, every named file imports them, wording is unchanged, and the preview answers 200 on /. The openapi.ts fifth copy is a sensible, declared extension. The new test reads the sources as text and fails if a copy is typed back. No security, tty or web surface is touched. Two things I would do next: (1) the tests only guard these two sentences; if more planner words drift, extend plan_words.ts and READERS together or derive the file list by scanning src/ for the literals. (2) Tidy import order in dependencies.ts/plan.ts (plan_words after pillars) and run prettier on the now-short multi-line calls in plan.ts and limb_replan.ts. Note this is a small cleanup, not on the NOW list (arm stability); it is cheap and harmless to land.
-
Checks
shipped production is serving it deploy f698c54
-
History
- The planner's refusals live in one module, src/actions/plan_words.ts (#5595) f1054ee
- "RepoSource: one repository, two places to read it from > a mirror reports its stages in order and ends holding the repo" passes every time on a loaded check machine (#5399) 60f5e7f
- /sitemap.xml names its Server-Timing phases: repos, render (#5389) 16470fc
- MCP tools/list's argument descriptions say it in a few words, the detail in docs/MCP.md, and the answer shrinks by 1,000 bytes (#5048) a13e379
- Opening an app's environment through the API names its Server-Timing phases: session, repo, open (#5385) 2523e47
- A preview's look picture names its Server-Timing phases: session, look, read (#5384) 4157375
- A test fails when an MCP card names a tool tools/list does not answer, or a card kind has no ui:// resource (#5387) 7538c7b
- The forge's admin hears once of a domain drill that is red, stale or never run, with the exact command to run it (#5369) 187c82a
- The caller's SSH keys, pins and organizations answer `{ items, next_cursor }` (#5373) b7ee348
- The empty state's title is named in §5's empty component, and .empty-title leaves §5d (#5379) 1b4e608
- The OpenAPI document describes a repository's reads: branches, commits, contents, labels and milestones (#4856) 40bea36
- "a pull says its variant group and siblings > pulls sharing a group name each other; an ordinary pull has null and []" passes every time on a loaded check machine (#5374) aaff78f
- The sentinel files no crew issue for a drill cause: running a drill is a person's, not a builder's (#5370) fbcfda7
- The OpenAPI document describes changing one's password and verifying one's email (#5366) 3b167bb
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:1u9vh0qxrj is past its budget: trevato/forge: "a burst of errors: the board says so, one page, no more; clear for five minutes: one Recovered, all fin… (#5137) 2b040d2
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:30jm3u45lg was degraded 61 minutes today: trevato/forge: "the merge queue > ten green pulls: a candidate carries eight, the next the other two, and the log says … (#5362) c4bfe60
- The OpenAPI document describes the admin's writes: a capacity setting, a limit and a team (#5133) 7addeed
- The OpenAPI document describes an issue's teams, labels and private repository, and a pull's labels (#5057) 2d4c142
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:36a5qcqa3a was degraded 59 minutes today: trevato/forge: "test/og-route.test.ts > og cards > (unnamed)" failed on 3 pulls in the last hour — the lane's red, not … (#5360) 42f0f07
- MCP `repo_labels`: list, create and remove a repository's labels (#5030) 17d29f7
The planner's two refusals, "an issue cannot wait for itself" and "the planner has it in hand already", are now typed in one place: a new module, src/actions/plan_words.ts. It exports them as SELF_WAIT and IN_HAND. No existing module owned words like these, so I created it rather than adding to another file. The wording is unchanged, so answers and pages read exactly as before.
What moved where:
src/actions/dependencies.ts:dependencyWords.selfis nowSELF_WAIT.src/actions/plan.ts: the refusal for a plan item that waits for itself now usesSELF_WAIT.src/actions/limb_replan.ts: the take-back refusal now usesIN_HAND.src/tui/screens/limbs.ts: thepkey's message now usesIN_HAND.src/contract/openapi.ts: this file isn't in the issue's list, but it had a fifth copy,"an issue cannot wait for itself (422)". The issue'sgrep -rncheck would have found it, so it is now `${SELF_WAIT} (422), which gives the same string.src/contract/probes.tsalready imports fromactions/`, so this doesn't open a new dependency between layers.
Under src/, grep -rn for either sentence now finds only plan_words.ts. In each file only the sentence's line changed, plus one import line.
New test: test/plan-words.test.ts checks that each exported sentence is non-empty. It also reads each of the five files as text and fails if either sentence is typed back in.
Checks run: bun x tsc --noEmit is clean. These test files pass (117 tests, 0 failures): plan-words, dependencies, limb-replan, limbs, tui-limbs, plan-pillars, plan-route, contract, openapi, openapi-coverage and openapi-served. One later command ran the whole suite by mistake; it was still running when I pushed, so I have no result from it. src/web didn't change, so the design lint wasn't needed.
🤖 Generated with Claude Code
The planner's two refusals, "an issue cannot wait for itself" and "the planner has it in hand already", are now typed in one place: a new module,
src/actions/plan_words.ts. It exports them asSELF_WAITandIN_HAND. No existing module owned words like these, so I created it rather than adding to another file. The wording is unchanged, so answers and pages read exactly as before.What moved where:
src/actions/dependencies.ts:dependencyWords.selfis nowSELF_WAIT.src/actions/plan.ts: the refusal for a plan item that waits for itself now usesSELF_WAIT.src/actions/limb_replan.ts: the take-back refusal now usesIN_HAND.src/tui/screens/limbs.ts: thepkey's message now usesIN_HAND.src/contract/openapi.ts: this file isn't in the issue's list, but it had a fifth copy,"an issue cannot wait for itself (422)". The issue'sgrep -rncheck would have found it, so it is now `${SELF_WAIT} (422), which gives the same string.src/contract/probes.tsalready imports fromactions/`, so this doesn't open a new dependency between layers.Under
src/,grep -rnfor either sentence now finds onlyplan_words.ts. In each file only the sentence's line changed, plus one import line.New test:
test/plan-words.test.tschecks that each exported sentence is non-empty. It also reads each of the five files as text and fails if either sentence is typed back in.Checks run:
bun x tsc --noEmitis clean. These test files pass (117 tests, 0 failures): plan-words, dependencies, limb-replan, limbs, tui-limbs, plan-pillars, plan-route, contract, openapi, openapi-coverage and openapi-served. One later command ran the whole suite by mistake; it was still running when I pushed, so I have no result from it.src/webdidn't change, so the design lint wasn't needed.🤖 Generated with Claude Code
Closes #5595