Skip to content

cua #103 e2e: the 380 px human-control case trusts the test process before connecting as the fake host (PR #7 and #9 crossed) - #10

Merged
SSFSKIM merged 1 commit into
masterfrom
fix/103-trust-seam
Oct 10, 2026
Merged

SSFSKIM merged 1 commit into
masterfrom
fix/103-trust-seam

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 10, 2026

Copy link
Copy Markdown
Owner

Why

PR #9 (cua #103) added the e2e case "cua #103: human control in a 380 px panel keeps the icon, Hand back and every toolbar control in bounds" (e2e/browser.spec.ts), which connects the Playwright test process to the session's cua socket as a fake host. PR #7 (cua #95) made that socket refuse any peer not descended from the session's engine. The two PRs crossed on master: on 3d53d69 the case fails deterministically with no hello from <userData>/browser/cua/<id>.sock within 5000 ms (test/support/cua-fake-host.ts:43), alone and at load 10, as P2-F's post-debt gate found.

Change

The case trusts the test process through the e2e seam (__maws_browser.cua.trustRoot(pid), MAWS_E2E only) before connecting, exactly as every scene in e2e/browser-cua.spec.ts does, and asserts the seam answered true. One case, one line plus the seam's type; no production code.

Verification

Through the quiet wrapper (MAWS_E2E_QUIET=1, one group at a time):

  • master 3d53d69, the case alone: 1 failed, no hello from /tmp/m103-…/browser/cua/….sock within 5000 ms.
  • this branch, the case alone: 1 passed (10.9 s).

…hrough the e2e seam before connecting as cua's fake host, as browser-cua.spec.ts does; PR #7's peer check (cua #95) had refused it since the two PRs crossed on master
@SSFSKIM
SSFSKIM merged commit 6941261 into master Oct 10, 2026
@SSFSKIM
SSFSKIM deleted the fix/103-trust-seam branch October 10, 2026 11:47
SSFSKIM added a commit that referenced this pull request Oct 10, 2026
… session, 1 closed by its PR #10); master merged at 1b6e44e for that fix (Decision Log 26)
SSFSKIM added a commit that referenced this pull request Oct 19, 2026
…caped in the dialect, so it can no longer read back as a heading underline, a heading, a list, a new paragraph or a hard break. The canonical form (the agent's read, ids on or off) writes it as &#10; through the free sentinel U+E00E, and the existing whitespace-entity tokenizer reads &#10; back beside 32, 9 and 160; code keeps its raw line ends, a hardBreak and literal &#10; text read as before, and the agent's own soft break still parses to the line ending. Per the architect's ruling, the owner-facing exports never show the entity: the Markdown export (and the mirrors through it) writes a hard line break (a backslash at the line's end, the next line's start escaped; a space in a heading; none at a block's end), which reads back as a hardBreak; DOCX writes a Word line break as it does for a hardBreak; HTML/PDF already keep the line ending with pre-wrap. format.md's escapes line says so. Regressions in markdown.test.ts (27 stored states with ids on, off and named, containers, marks and the literal &#10; and U+E00E collisions, 36 red before), export/markdown.test.ts and export/docx.test.ts (red before)
SSFSKIM added a commit that referenced this pull request Oct 19, 2026
…every line ending inside text. A heading's line ending was flattened to a space and a block's trailing one dropped; both are now an inline <br>, where CommonMark cannot break a line (a heading cannot, and a backslash ending a block reads literally); elsewhere it stays the backslash hard break with the next line's start escaped, a leading one included. Canonical output is unchanged (&#10;, code's raw line ends, literal entity and U+E00E text). The export's contract now states its one inexact read-back instead of claiming it is lossless: the dialect's import reads a backslash break back as a hardBreak and <br> as literal text, which the regressions pin. Regressions in markdown.test.ts and export/markdown.test.ts, red on 9adf502
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant