Skip to content

P5 O10 follow-up: lane B pending counts reach notify from the engine host (WIRE_MINOR 4) - #272

Merged
SSFSKIM merged 10 commits into
masterfrom
p5-o10-laneb-notify
Oct 28, 2026
Merged

SSFSKIM merged 10 commits into
masterfrom
p5-o10-laneb-notify

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 28, 2026

Copy link
Copy Markdown
Owner

P5 O10 follow-up from O13 M5's finding. Lane B pending requests now reach the endpoint's Notifier even when no phone is subscribed, so a lane B session shows its count in hub presence and gets its waiting and settled pushes.

The gap

The Notifier (src/endpoint/notify.ts) drives hub presence counts and notify's waiting and settled pushes. It was fed only by sminos's RL10 pending set, which holds lane A requests alone. Lane B's permissions and questions live in the engine host's broker, and the endpoint saw them only through a subscription's session.pendingItems or brokerItems. So a lane B session with no phone subscribed never showed a count and never got a waiting push. That broke the lane B push leg of O13's acceptance 2.

What it does

  • New engine-host command engine.pendingItems. It returns {sessions: [{appSessionId, waiting}]}: the count per session, positive counts only. It is main-only, graded internal, and not offered remotely. The response grows by under 100 bytes per waiting session and does not depend on item size; 65 sessions each holding a 1 MiB item come to 2.5 KB.
  • One count rule, waitsOnAnswer (src/shared/attention/kinds.ts). Both the engine host's read (src/engine-host/pending-counts.ts) and the endpoint's live events use it. It follows isOpen: pending or delivered, with a request id. That is the set the phone's cards show.
  • Restatement. Each time onUpstream reports a connection, the endpoint makes one machine-wide read and rebuilds the whole set; after that it follows broker events through onEvent. Nothing polls per session, and a parked host is never woken. A live change wins over an older in-flight read, and a failed read is logged and changes nothing.
  • Same rules as lane A. Presence, waiting and settled, and listed and withdrawn all apply. Unlisted and withdrawn sessions get no counts.
  • Lanes kept apart in the Notifier and on disk: notified.json gains an optional lane: 'B'. Otherwise lane A's first set after a restart would settle a lane B count.
  • notifier.restore() runs before the seam subscriptions.
  • Wire. This lands at WIRE_MINOR 4. O6 (P5 O6: the machine dimension (addresses, the sidebar's machines and projects, the machine chip and offline state) #268) took 3 first, so this was re-bumped per P5 DL 44 and 88, and the manifest was regenerated from master's minor 3. src/engine-host/ changed, so e2e:supervisor ran.
  • No O2 dependency. The endpoint reaches the broker through O2's specified seam (onEvent, onUpstream, dispatch), and mawsd forwards the new command unchanged.

Validation Evidence

Residue

  • Lane B counts don't move while no MAWS app is attached (O3's, P5 DL 29). No engine-host event reaches the endpoint then, so counts hold at the last read or event until the next link. Lane B sessions aren't advancing without the app, so no item can arise or be answered in that window. O14 B2 needs the mini's packaged MAWS running for lane B counts.

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)

…e (O10, lane B's notify counts); WIRE_MINOR 3

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…subscribed or not, restated at each engine-host link (O13 M5's finding)

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
… host

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…, not its items: bounded by sessions waiting, far under the line cap (review finding)

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…-bumped to 4

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)

# Conflicts:
#	src/shared/ipc/wire.ts
…(O6 #268 snapshots)

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 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-28T09:21:09.282066Z 509a576 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 96b86b5 into master Oct 28, 2026
SSFSKIM added a commit that referenced this pull request Oct 28, 2026
…NOR 4

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM added a commit that referenced this pull request Oct 28, 2026
Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)

# Conflicts:
#	docs/doperpowers/plans/2026-10-27-p5-o10-endpoint.md
SSFSKIM added a commit that referenced this pull request Oct 28, 2026
Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
SSFSKIM added a commit that referenced this pull request Oct 28, 2026
…ter's e2e:desk-web-hub red since #272)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM added a commit that referenced this pull request Oct 28, 2026
… src/endpoint diffs run hosted desk-web-hub; relay last-hop row

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM added a commit that referenced this pull request Oct 28, 2026
…e B feed named by #272

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
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