Skip to content

b8-bugs: an empty interrupt pause ends (#790); an unchanged framed file is not reframed (#775); an artifact's machine travels with its id, frames name their machine (#783) - #812

Merged
SSFSKIM merged 54 commits into
masterfrom
ux-wave/b8-bugs
Nov 20, 2026

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Batch 8, group b8-bugs: three correctness tickets, each built from its body (pre-spec). Closes #790, closes #775, closes #783.

What it does

Proof

  • Head 8f036b648 on ux-wave/b8-bugs, with master e5c209f4b merged in. The tracker conflicted twice and kept both sides each time; src/engine-host/ipc.test.ts merged with b8-2 without a conflict.
  • Reviews: medium reviews while building (the tracker rows name them), an xhigh panel on 4b1fd6a8f..f4c496e08, then medium reviews of each fix round. The panel's P1 is fixed: one machine's HTML could be drawn with another machine's connector authority. So are its four regressions and the next round's three. The review converged on the third round.
  • What ships as docs/tech-debt-tracker.md rows, each with its reason:
    • two rare queue cases that clear themselves;
    • a page that delegates its own grants by navigating its frame;
    • a host crash between the pause's save and the interrupt.
  • Unit tests: a red test before each fix in queue.test.ts, viewer.test.tsx, viewers.test.tsx, actions.test.ts, remote-scheme.test.ts and scheme.test.ts.
  • New e2e scene in e2e/composer.spec.ts: "ticket 790, Stop with nothing waiting: …", on a new replay journal, stopThenQueueJournal.
  • Class 1a 44810080172 and desk-web 44811557574, success; each gate commit's tree equals the head's.
  • Mac (CI-opt, the mini), green by head:
    • composer 42 and c7 64 passed at b986d88b4, with the ticket 790 scene passing in both.
    • library 12 and deliverables 20 passed at 513018212.
    • code 58, remote 24, connectors 6, side 13, document-app 26, design-systems 10 and default 225 passed at 0107c5750.
    • cross-build was 2 of 2 green at 0107c5750, against 2c7044231 and 5e8534042. Against 2c7044231 its artifact and frame cases ran: file frames, outside files and spaces, both ways. The spec skips them for 5e8534042.
    • Each later head adds only e2e expectations brought to the machine-named URL, the 790 scene's own fixes, and master.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…790)

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…op and at a load (#790)

The Stop's pause and hold run as one phase (MessageQueue.stop); once it is over, an
interrupt pause with no queued or unacknowledged entry, no steer being withdrawn and no
host sequence staged ends, so a message queued later behind a turn goes at its end.
The same rule ends it when the last held row is removed or sent now, at a send, and
when a state file another launch or build left loads.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…ct it ended (#790)

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…eft it as it was (#775)

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…it as it was (#775)

A framed file is read with its hash, as an open read already is; a change load that finds
the hash the entry holds lands nothing and keeps the frame drawn or being asked, unless the
frame was asked under other keys (the tab's mark moved). A file past the hashed read's
ceiling keeps the earlier rule.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…ange change the file (#775)

A revisit still asks a new token, as U6b-2 decided. The four cases that emitted an event over
an unchanged file to get a second token now change the file first.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…d a settled hold (#790)

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…errupted turn's end; a pending removal and a settled hold end or keep the pause rightly (#790)

The branch review's three findings: queue.stop runs the session's interrupt inside its
phase and, while the interrupted turn still runs at the answer, keeps it until that turn
ends; a removal not yet saved counts as held; an empty interrupt pause ends when the
submission it held back is dropped or acknowledged, at a turn's end, and when a late
withdrawal gives its steer back.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…xt send (#790)

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…t drops with no turn end (#790)

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…alone; a dropped host sequence ends the empty pause (#790)

The phase was judged by turnOpen, which also counts a staged clear and implement and an
unstarted prompt; one that ends with no turn end left the phase latched, holding a later
follow-up. The queue now takes the normaliser's current turn for the phase, and the
sequence's failures tell the queue it dropped, so an empty pause it held ends there.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…hine (#783)

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
)

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
#790)

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Red tests: an adopted process keeps an interrupt pause while its restored
turn is open; a Stop follows the turn it interrupted, not a successor;
an unchanged event read during a frame ask retries an unframed answer;
a bare link reuses the strip's one restored tab without recording a
route; a page whose drawn copy may be another machine's gets no
connector port.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
The fold restores the live process's open turn before the queue adopts;
an empty interrupt pause saved by the old manager's Stop now lasts until
that turn ends, as the live Stop's phase would have, so a follow-up
queued during it waits for Resume. Review finding sweep#3.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
The queue counts main-lane turn ends; a Stop whose interrupted turn
ended before its answer was read (the inbound drain also carried a
successor's start) no longer latches onto the successor, so its empty
pause ends and a message queued behind the successor goes at its end.
Review finding scalpel-3#2.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
An event's re-read that finds the file as it was keeps only a drawn
frame; while an ask is out it queues one more ask after the answer, as
before ticket 775, so an answer main read from a mid-write moment
(unframed) is retried rather than leaving the tab failed. Review finding
scalpel-4#1.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
With no copy of the id on record, openArtifactTab opens on the one
machine the strip already holds a tab of it on (a tab restored at
launch), and records nothing: the tab is no confirmed copy. Tabs on
several machines, or none, open this Mac's. Review finding scalpel-1#2.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
The frame's URL names the artifact alone, and main draws the copy it
placed the id on (its latest other machine, else this Mac). The HTML
viewer now hands the page a connector port only while the copies on
record show the drawn copy is the viewer's machine's: this Mac's when
no other machine's is on record, another machine's when it is the only
other one; checked again as the port is handed. Ticket 806 binds the
URL to its machine. Review finding scalpel-2#1.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
No conflicts. The tracker: master's row on MessageQueue's latched
interrupt pause (batch 7, group A) is removed, since ticket 790 on this
branch ends an empty interrupt pause; the branch's row on the Stop's
phase is closed by this fix wave; rows added for the third review's
scalpel-3#3 and scalpel-3#5.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…(fixed on this branch)

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…essage queued behind the next turn

A turn runs; the square stops it with nothing waiting (the interrupt alone); the queue's
pause ends with the stopped turn; the person sends the next turn and queues a message for
after it; at that turn's end the message is written by itself, after the turn's result,
with no Resume and no row reading Held. The replay (`stopThenQueueJournal`, built from
`queueInterruptJournal`) holds the next turn open at the test's own context read, recorded
before its result, and plays one human turn for the released message; the scene waits for
the app's own context read after the stopped turn before sending, so the held read is the
test's.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Red tests: a viewer's frame names its machine and main serves that copy
alone, the connector port then the drawing machine's; a Stop takes its
turn at the interrupt request; an adopted interrupt pause restores a
Stop's phase only on the journal's word that the open turn was stopped.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
The turn ends a Stop counts start when its interrupt goes out, not when
the Stop begins: a turn that ended while the pause was saved or steers
withdrawn, and a successor started then, leave the successor the
interrupted turn, so the phase waits for its end and a follow-up sent
meanwhile is held. Review finding 2 of the fix wave's review.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…790)

The journal fold now reports whether a plain interrupt was written while
the still-open turn ran (the normaliser's stop asked); adopt latches the
Stop's phase only on that word, so a saved interrupt pause that
outlived its turn, holding a row, does not latch onto an unrelated
later turn. Review finding 3 of the fix wave's review.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…783)

Ticket 806's frame bytes: the byte viewer frames
maws-artifact://<id>/<rev>/<name>?machine=<ref>; main's scheme serves a
URL naming this Mac from this Mac's store alone (its 404 included) and
one naming another machine from that machine over its link, whatever
the table places, so a page's connector port always carries the
authority of the machine that drew it. The window-side drawnCopyIs
guard is gone: this Mac's copy keeps its connectors while another
machine holds the same id. e2e: frameAt compares without the query,
and the library scene reads the named URL. Review finding 1 of the fix
wave's review.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…d 790 (a page delegating its own grants by navigating; a crash between the pause's save and the interrupt)

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
The square's click took the keyboard, so the next turn's words went to the button and the
box stayed empty; nothing was sent. The scene clicks the box again before typing and checks
that the box holds each message before it goes. (A replay of the same journal through a
whole engine session sends the message at once after the Stop.)

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
#783)

library: the PDF viewer's frame src carries `?machine=<ref>`. deliverables: the download
the filter cancels is the frame's own URL, `pageUrlOf`'s with the machine's query, so the
seam's line is matched by that prefix.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…has no header while nothing is paused

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 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-20T20:41:31.476979Z 8f036b6 PR opened
ℹ️ 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.

@SSFSKIM
SSFSKIM merged commit 02931c0 into master Nov 20, 2026
@SSFSKIM
SSFSKIM deleted the ux-wave/b8-bugs branch November 20, 2026 20:38
@SSFSKIM

SSFSKIM commented Nov 20, 2026

Copy link
Copy Markdown
Owner Author

Landed on master as 02931c0 (merge commit on e5c209f; its tree 36eab3e6d equals the head's, so class 1a 44810080172 and desk-web 44811557574 are the evidence, both read through the API). Mac evidence as in the body.

Sminos-Session: master-landing-architect#37052769 (MAWS on macbook)

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8f036b6488

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +299 to +300
const named = machineOfArtifactUrl(request.url) as MachineRef | null;
if (named !== null) return stage === 'placed' && named !== deps.local ? fetchFrom(named, request, true) : null;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Preserve the selected machine for frame subresources

When the same artifact ID exists locally and on a peer, the new machine-qualified URL selects the correct top-level HTML but not its relative resources: resolving app.js against index.html?machine=<local> drops the query. That request then falls through to the placement lookup below, which can still point to the peer. A local page can therefore load the peer's scripts, styles, or images even though its connector port is bound to the local machine. Preserve the frame's machine selection for subresource requests as well, rather than qualifying only the initial document URL.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant