Repository navigation
Record product decisions in module headers, and accept a red main for now - #1780
Merged
Merged
Conversation
Held news showed on arrival only where a route remembered to call `showHeld`: the t/T walk's panel path, `openPageThread`, the panel's `showThread`, `materializeAsk`, and the panel list's title choice (#1705). A `carried` flag, threaded through three signatures, kept a reply box being put back from releasing anything. Each new route to a thread was one more place to forget, and each fix since #1694 found one. Arrival is now a fact held-news.js derives once, from focus. Focus that lands in a thread other than the one the user stands in arrives there, whatever route moved it. Focus the runtime puts back or a chrome placement hands across (`restoringFocus`, `placingChrome`) moves the standing without arriving. A press inside a thread stands the user where it lands, so it releases nothing: drawing the news would move what is under the press. A press on a card's title asks for the thread, so it arrives. The release is synchronous and runs ahead of any landing listener, so a landing measures the thread with its news in it. All five `showHeld` call sites and the `carried` flag are gone. `showHeld` remains for the one case focus can't cover: a destination that is itself held, a message or an Ask in a held turn, has no node to focus until it shows. The panel list's `gesturedOn` and held-news's `ownTurn` read the same ledger, and they are now one reading, `ownGestures`. Behavior that moved: - Pressing t/T at the end of the list, onto the thread the user already stands in, no longer releases its news. Focus doesn't move, so it is a stay. `test_walking_to_a_thread_shows_the_replies_it_held[*-onto]` now asserts the notice stays. A new `return` case covers walking back onto a card that stood open throughout, from outside it. - Going to an Ask from inside the same thread is also a stay. The `standing-ask` case now starts outside the thread. - The held diff-thread reply test now presses into the reply box rather than focusing it from script. A press into the box keeps the reply held, which the test now asserts. Disabling the arrival release fails `return`, `standing-ask` and the page-seat `walked` case. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Part of the focus-derived arrival attempt; see the following revert. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This reverts commit 29d562a.
This reverts commit 489b1fd.
…for now Two decisions from the held-news case study, so later agents read them rather than relitigate them. `AGENTS.md`, "Where instructions live": a product decision a module embodies is part of its contract, so its header names the alternatives the decision rejected and why. A change that reverses one rewrites that record and says so in its commit. #1525 kept its rejected alternative in `TODO.md`, and #1694 deleted it and adopted that alternative without mentioning the reversal. `tests/AGENTS.md`: the narrow pull-request gate is a deliberate trade. A pull request can land green and break a nightly test it never ran, and main's complete suite can stay red while `tend-ci-fix` repairs it. Keeping main green is not a goal for now, so a red main is not by itself a reason to widen a change, its gate, or its test selection. The branch also carries a focus-derived arrival signal for held news and its revert. Review found that it misses focus moves inside one shadow tree, counts a dialog's hand-back as an arrival, and lets a press drift from focus. It is kept for reference only; the net diff is these two notes. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
previously approved these changes
Oct 5, 2026
…ecords before changing a module held-news.js's header now records that a panel card holds news behind its notice (#1694), the choice #1525 recorded and the alternatives it rejected, and that arrival stays a set of call sites because deriving it from focus events missed shadow-tree moves and dialog hand-backs. /developing-leaf tells a change to read a module's decision record first, write a decision it settles there, and ask the user before reversing one they made. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…ull-request gate Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
previously approved these changes
Oct 5, 2026
AGENTS.md, "Where instructions live", already states the rule; a second copy near the top of the skill gave it more weight than it carries. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Oct 5, 2026
max-sixty
added a commit
that referenced
this pull request
Oct 6, 2026
Held thread news showed on arrival only where a route remembered to call `showHeld`, and routes that put the user back opted out with a `carried` flag or a `restoringFocus()` check. This reads arrival once, from where the user stands. - `runtime/focus.js` publishes each change to where the user stands (`onStanding`), labeled `return` (a hold restoring, a chrome placement, `returningFocus`, `handBack`, or the platform returning focus from a layer it closed), `press` (focus landing where the last press was), or `move` (a key's own move or a route). Each shadow stage reads its own `focusin` (`watchStandingIn`, called from `shadowStage`), since a move inside one shadow tree reaches the document as no event. - `thread/held-news.js` subscribes: coming to stand in a thread from outside it, by a `move` or a `press` on its title, shows what any seat holds of it. Coming back to the thread the user stood in, and any move within it, is a stay. The release runs inside the `focus()` call, before each route measures its landing. - The five `showHeld` call sites, `carried`, and the title choice's check are gone. `showHeld` stays only where the destination is itself held (a message or an Ask in a held turn); `showHeldThread` shows a thread a seat holds whole where no surface draws it, so a walk to it lands in its outlet. - The More menu's hand-back of borrowed focus goes through `returningFocus`. This reverses the record #1780 wrote in `held-news.js` (arrival as the routes that call `showHeld`), at the user's decision on the held-news case-study page; the header now records the rejected alternative. Behavior that moved: t/T onto the thread the user already stands in, going to an Ask from inside its thread, and Escape out of a panel card's reply box onto its title are stays, so held news stays behind its notice; a press into a thread's reply box keeps what it holds. The commit message lists each with its test. Tests: the earlier attempt's two gaps each have a test that fails without the fix (an in-stage return in the diff-thread read test, without `watchStandingIn`; `test_a_dialog_handing_the_user_back_to_a_thread_is_no_arrival`, without the closed-layer return), as does the outlet walk (`test_a_walk_to_a_thread_a_diff_line_holds_lands_in_its_outlet`). Locally `test_render_threads.py`, `test_render_read_state.py`, `test_render_drafts.py` and `test_render_reactions.py` pass (491), as do `npm run test:runtime` and pre-commit; a wider run over navigation, margin, widgets and aim showed only load flakes and two aim failures that fail the same way on main. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Records decisions from the held-news case study where the next change will read them.
AGENTS.md, "Where instructions live": a module's header records the product decisions it embodies and the alternatives they rejected; a change that reverses one rewrites that record and says so in its commit. (Note the short Threads list's tradeoff in TODO, and correct followThreadEnd's comment #1525 kept its rejected alternative inTODO.md; Place Reply directly after short panel threads #1694 adopted it without noting the reversal.)held-news.js: the first such record. A panel card holds news behind its notice (the user's decision), rejecting filling the list (Stand an open panel card's reply box at the list's foot #1480) and letting the list move. Arrival stays theshowHeldcall sites, since deriving it from focus events missed focus moves inside one shadow tree and took a dialog's hand-back for an arrival.tests/AGENTS.md: the narrow pull-request gate is the user's choice, so a red main is no reason to widen a change, its gate, or its test selection.The branch also carries that focus-derived arrival attempt and its revert, for reference; the net diff is the three records above.