Skip to content

fix(planning): wayfind re-reads the map body before each edit - #15371

Merged
kyle-sexton merged 2 commits into
mainfrom
fix/wayfind-reread-map-before-edit
Nov 11, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
fix/wayfind-reread-map-before-edit

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

No related issue: owner-confirmed workshop decision (Wayfinder absorb, Q331).

Summary

/planning:wayfind edits 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.md work 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

  • Instruction-only change (one sentence); no behavior under test. Pre-commit and pre-push hooks passed.

Related

  • Course absorb record: workshop 03 decision Q331 (private course folder).

🤖 Generated with Claude Code

https://claude.ai/code/session_01VQb9Q4F46UumaUgXeUdpYZ

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
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 11, 2026 13:21
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-11T13:22:57.430100Z cabacf0 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 26672b84413832c0d1fbe30a1e6c5323c5179b72: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #15371 (incremental, since cabacf07)

I found no security issues in this push.

I read every hunk of both files in the incremental scope:

  • .changes/planning/fix-wayfind-reread-map-before-edit-0602e64c.md: the changelog sentence is reworded to mention the read-back-and-reapply step. It is prose only.
  • plugins/planning/skills/wayfind/SKILL.md (work step 6): the rule about reading the map body right before each write now also says to read the body back after writing, and to reapply and write again if another session's write dropped the change.

Neither file matches a trusted-path glob. The change deletes, narrows or softens no instruction. It tightens a rule that guards against concurrent edits on a tracker issue body the skill already edits, and it adds no new tool, command, write target or input source. It touches no trust control, plugin manifest, hook, token, secret, workflow or script.

The earlier review had no findings to carry forward. This was a blocking-only review because the lane already reviewed an earlier head.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on cabacf07f02ea9b576910102d576103490e5a176; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 26672b84413832c0d1fbe30a1e6c5323c5179b72: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #15371, incremental (cabacf0 → 26672b8)

Scope: I read every hunk of both files in the incremental change: .changes/planning/fix-wayfind-reread-map-before-edit-0602e64c.md and plugins/planning/skills/wayfind/SKILL.md. This lane already reviewed an earlier head, so this review reports blocking findings only.

What changed: this push answers the lane's one earlier finding (the advisory on SKILL.md lines 237-239). Work step 6 now reads the map body back after each write. If another session's write dropped the change, the step applies it again to the fresh copy and writes again. The changelog fragment now describes this read-back instead of saying the overwrite can no longer happen. The owner resolved that thread, and it is settled.

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:

  • The changelog fragment's bump: patch still fits an instruction-only fix.
  • No plugin manifest changed.
  • The PR closes no issue, so there were no acceptance criteria to check.
  • I found no embedded instructions in the PR context, the settled threads or the prior findings.

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
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 11, 2026
Merged via the queue into main with commit ca11205 Nov 11, 2026
49 checks passed
@kyle-sexton
kyle-sexton deleted the fix/wayfind-reread-map-before-edit branch November 11, 2026 13:39
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 11, 2026
github-merge-queue Bot pushed a commit that referenced this pull request Nov 13, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant