Skip to content

desk-web e2e-hub: the session-plane suite follows DC9's session view and #57's grace - #95

Merged
SSFSKIM merged 1 commit into
masterfrom
desk-e2e-hub-session-plane
Oct 21, 2026
Merged

SSFSKIM merged 1 commit into
masterfrom
desk-e2e-hub-session-plane

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 21, 2026 •

Copy link
Copy Markdown
Owner

Five cases of apps/desk-web/e2e-hub/session-plane.spec.ts failed on master. The suite runs in no default gate set, so nothing caught it. This brings the spec up to the design it tests. No product code changes.

Bisect

Each point is one full run of the spec: a vite build, then playwright -c playwright.hub.config.ts.

point result
6a677a8 (before #30) 10/10 pass
f248aae (#30, desk DC9) decide/answer, forged event, retire and replayed log fail; M1 passes
582aecf (inside #30: DC9 M3, where 57320ab puts the session view in the center) the same four already fail; M4 (7e2bbe6) only changes how the decide case fails
e1653e5 (before #58) the same four fail; M1 passes
074c0d2 (#58, MAWS #57) M1 fails as well (offline 3,820 ms against 2,500)
44e4a3c (before #91) the same five fail as on master

#91's refused-frames answer is not involved: the fake machine never reads refused.

Causes and changes

  • The four G2 cases have been stale since DC9. Wherever its machine serves the transcript, a direct channel is now the session view (§4 as amended 2026-10-17, §9.1). The mock suites in the gate (e2e/conversation.spec.ts, e2e/session-view-tail.spec.ts) were updated then; this one was not. The product behaves as designed in every case.
    • Decide/answer: pending cards sit at the session view's tail and are gone once settled. The case now decides and answers there. It reads "Allowed/Answered from the web by you" in the group chat, both before and after a reload (the audit's decided). The data-to/data-from fold checks went with the folds DC9 M4 retired. The toolUseId check is now that the question is drawn at the call's row (question:<call>), never under the dialog's id.
    • Forged event: the DX2 test client answers no subscription, so the session view showed "Loading…" forever. The case now reads the log in the group chat, as the mock suite does.
    • Retire: the session view ends with its end marker. The "fakerec retired by you" line belongs to the group chat. The case now checks the marker: "Retired by you", it cannot be resumed, and it offers no Resume.
    • Replayed log: fakerec's channel is its transcript: its message, the turn dividers, and the delivered send at the tail. The log's agent run is not part of it. fakepeer, which has no transcript on the machine, gets the log-built fallback with its agent run.
  • M1: since desk: a machine's reconnect invisible to the reader, and an end-to-end latency budget #57, a closed stream's lease keeps the machine online for one more heartbeat. Offline therefore takes up to two heartbeats (seeing the close, then the grace), so the bound is now 2 × heartbeat + 500 ms. The composite's Decision Log entry is amended and the tracker row that had logged this is removed. That amendment also says the grace makes a dropped machine read offline after 15 s on the deployed hub, and leaves acceptance 1's reading of that to the owner.

Verification

  • The spec passes 11/11 in 5 of 5 local runs on the MacBook. M1 offline measured 2,962–3,862 ms against the 4,500 ms bound; the other steps were 12–321 ms against 2,000 ms.
  • tsc -p apps/desk-web/tsconfig.node.json and eslint on the spec are clean.
  • Gate: GREEN on 405e902, scripts/ci-gate.sh --gates static,unit,e2e:desk-web, run 39548434445 (static, unit, e2e:desk-web).
  • Reviewed by doperpowers:reviewer-medium: correct, no material findings.

Sminos-Session: smns-erb-71#b4948247 (doperpowers on macbook)

…and #57's grace

Five cases of e2e-hub/session-plane.spec.ts failed on master. Bisected:
all pass at 6a677a8; the four G2 cases first fail at f248aae (#30,
desk DC9), M1 first fails at 074c0d2 (#58, MAWS #57). Not #91: the same
five fail at 44e4a3c.

- G2 decide/answer, forged event, retire, replayed log: since DC9 a direct
  channel is the session view wherever the machine serves the transcript
  (§4 as amended 2026-10-17, §9.1). Pending requests are cards at its
  tail, gone once settled, so the settled cards and their redraw after a
  reload are read in the group chat. A retired session ends with its
  marker row, the lifecycle line being the group chat's. The forged case
  reads the log in the group chat, since its test client answers no
  subscription. In the replayed-log case, fakerec's channel is its
  transcript (message, turn dividers, the delivered send at the tail),
  and fakepeer's, with no transcript on the machine, is the log-built
  fallback with its agent run. The fold-boundary checks went with
  DC9 M4's retirement of the log-built folds; the toolUseId check is now
  the call's question row in the session view.
- M1: a closed stream's lease holds the machine online for one more
  heartbeat (MAWS #57), so offline is bounded by two heartbeats plus
  500 ms: 3,815-3,861 ms measured against the old 2,500. The Decision
  Log entry is amended and the tracker row closed.

Sminos-Session: smns-erb-71#b4948247 (doperpowers on macbook)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-21T05:18:53.608226Z 405e902 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.

@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: 405e9025ba

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

const view = center(page).getByTestId('session-view');
await expect(view).toHaveAttribute('data-session', rec.session);
await expect(view).toContainText('You chose blue');
await expect(view.locator('[data-kind="divider"]').first()).toBeVisible();

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Assert the report fold instead of a divider

Assert a visible owner-record:/“Working record” row (and ideally that Report is selected) here. If the real-hub direct channel accidentally opens in Transcript mode or stops folding marked turns, this assertion still passes because Transcript mode also renders divider rows—as demonstrated by apps/desk-web/e2e/acceptance.spec.ts:168-172. Consequently, the updated G2 case no longer verifies the per-turn folding promised by its title and preceding comment.

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

Development

Successfully merging this pull request may close these issues.

1 participant