Repository navigation
fix(planning): wayfind re-reads the map body before each edit - #15371
Conversation
Every edit to a wayfind map body now applies its change to a copy of the body read right before the write, so two sessions graduating items on one map no longer overwrite each other's Decisions-so-far lines. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VQb9Q4F46UumaUgXeUdpYZ
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Security review: PR #15371 (incremental, since
|
|
claude-review reviewed Code review: PR #15371, incremental (cabacf0 → 26672b8)Scope: I read every hunk of both files in the incremental change: What changed: this push answers the lane's one earlier finding (the advisory on Findings: none blocking. One gap remains: a session that reads before the write and writes after the read-back can still drop a line, and nothing re-checks it. That is a narrower form of the settled point and only advisory, so this blocking-only review does not raise it again. The PR description still says "one sentence" and does not mention the read-back. That is also advisory only. Other checks:
Verification: I ran nothing. "Pre-commit and pre-push hooks passed" is the author's claim, and I did not check it. |
A re-read before the write narrows the lost-update race but does not close it, because the body is written whole and unconditionally. Each map-body edit now reads the body back and re-applies the change to that copy when another session's write dropped it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VQb9Q4F46UumaUgXeUdpYZ
…ment and keeps maps short (#15784) No related issue: owner decisions from a planning interview on how `/planning:wayfind` charts, works and closes a map (2026-11-12) ## Summary `/planning:wayfind` charted a map on [#15651](#15651) with about 45 Notes bullets, fog as one paragraph, and 17 items, 14 of them single yes/no questions that already carried a recommendation. It created all of them without showing the map first. This PR changes how chart builds a map, how the skill reads its argument, and how it works and closes a map. ## Fix - **Router.** An item link, `#<n>` or tracker key works that item on its map. Any other text is the topic. A bare call with an open map lists the frontier, recommends one item and waits; an unattended session goes straight to `work`. - **Survey.** Chart reads the repository's glossary and work-item conventions before its first question. - **"I don't know" is a full answer.** Each unknown is sorted by who can settle it: evidence (a research item, researched before anyone recommends an answer), the user (an interview item), nobody yet (fog). - **Ready questions.** A sharp question that already has a recommendation and waits on nothing is asked in one interview round before any map exists; only what stays open becomes an item. - **Destination.** Chart's first question is what done looks like, recommending a PRD for a coding effort. - **One yes before creating.** Chart shows the whole proposed map (destination, items with type, mode and what each waits on, fog, out of scope) and creates nothing on the tracker before the yes. - **Shorter maps.** Notes holds standing constraints, the skills to consult and durable pointers; interview facts move to the seed item's resolution comment. Fog is one labeled bullet per uncertainty. An item is a topic one session can work, and its body is the question and the criteria an answer must meet. - **Working and closing.** The work and close steps follow the same owner decisions (commits `4977014aa9` and later), including the route from a map closed on build items to `/planning:plan`. - **Next-graph gate.** `scripts/check-next-graph.py` lets a roster line carry one declaration per `|`, so wayfind can declare both its decompose and its plan edge (`4c901adae2`, one new test). - **Eval cases.** The wayfind suite runs 39 cases: 9 unchanged, 8 that test replaced guidance on both texts, and 22 for new behaviour. ## Verification - Pre-registered before/after eval, 270 counted runs, graders frozen at `c4297bc151`: [pre-registration 3](#15784 (comment)), [addendum](#15784 (comment)), [result](#15784 (comment)). - Unchanged cases: no loss, non-inferior at margin 0.05 (change -0.01, 95% interval -0.02 to +0.00). - Replaced-guidance cases: no loss (mean change +0.03), non-inferiority not shown (95% interval -0.06 to +0.12). - New-behaviour cases: 19 of 22 pass. - **Owner waiver (2026-11-13).** `skill-criteria.md` "Cutting text" ships a cut only on non-inferiority. The owner waived that for the replaced-guidance set on this PR, on the no-loss verdict and the positive mean change. The waiver covers this PR only. - No detection control ran, so neither no-loss verdict shows the suite would have caught a loss. - Lint Repo, Check Skills, Check Plugins and the test lanes pass on `39c4f86e3f`. ## Follow-ups - Pre-existing (advisory): eval case `work-mode-routes-decision-item-to-target-skill` fails 0 of 6 on both arms because grader `routes-to-planning-design` accepts only `/planning:design`, while the skill text also allows `/event-storming:methodology` for domain work. Widen the grader. - Pre-existing (advisory): new eval case `chart-triggers-on-too-big-and-foggy-effort` passes 0 of 3. Its prompt names an earlier interview no fixture provides, each run offers to re-run the interview, and grader `no-skip-to-interview-or-plan` fails that. Decide whether the text, the case or the grader is wrong. - Pre-existing (advisory): new eval case `chart-happy-path-proposes-map-with-five-sections-and-typed-items` passes 1 of 3: two runs do not name `/planning:wayfind work` as the step after the map exists, and one puts a ready-question round before showing the map. - Pre-existing (advisory): new eval case `chart-seeds-from-interview-ledger` passes 1 of 3: its prompt names a ledger no fixture provides, and grader `open-questions-are-items` conflicts with the ready-question round the skill now asks for. - Pre-existing (advisory): run a detection control (the before text with one changed rule removed) on the wayfind suite, so a later no-loss verdict shows the suite can detect a loss. ## Related - Refs #15651 — the map whose shape prompted the change - Refs #15371 — the earlier wayfind change that re-reads the map body before each edit 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01VQb9Q4F46UumaUgXeUdpYZ --------- Co-authored-by: Claude Fable 5.2 <[email protected]>
No related issue: owner-confirmed workshop decision (Wayfinder absorb, Q331).
Summary
/planning:wayfindedits the map body (Decisions-so-far, Out-of-scope, Not-yet-specified, superseded lines) without re-reading it first, so two sessions graduating items on one map can overwrite each other's index lines.Fix
plugins/planning/skills/wayfind/SKILL.mdwork step 6: every edit to the map body, anywhere in the skill, applies its change to a copy of the body read right before the write.Verification
Related
🤖 Generated with Claude Code
https://claude.ai/code/session_01VQb9Q4F46UumaUgXeUdpYZ