Repository navigation
endpoint notify: a lane A question raised after its project opened reaches the hub (P5 O10, RL10) - #345
Merged
Conversation
…aches the hub (P5 O10, RL10) sminos sends a project's complete pending set only when it opens the project; every later question goes up alone as a session-wide `raised`, and each answer as a `settled` naming its request. The Notifier was fed only the complete sets, so on a cut-over machine a question asked after the welcome never moved its session's count: no `notify waiting`, no `notified.json`, no card. The Notifier now keeps each project's lane A requests by id per session: a `pending` frame replaces the project's (settling a session it leaves out, as before), a sub-less `raised` adds its request and a `settled` takes it, each change told as `waiting` or `settled` with the count. A raise already held, or a settlement of a request not held, moves nothing; a forgotten session's requests go with it; a restored session holds none until sminos restates the set. RL10's `#session` hands every `raised` and `settled` to it beside the `host` case. Lane B's counts are unchanged. conversation.json: case 8 asserts the raise's `waiting 1`; case 11 the restarted endpoint's `settled 0` from the complete set after the welcome; a new case 12 a raise, a second, and both settled (waiting 1, 2, settled 1, 0), each checked against notified.json. 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)
Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
SSFSKIM
added a commit
that referenced
this pull request
Oct 29, 2026
…project opened reaches the hub's presence (B2 step 7's card) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Oct 29, 2026
…nch counts one request 1, 0, 1; case 11's down-time settle takes the old connection) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Oct 29, 2026
…he spine series The three daemon-idle files: the imports join both sides; the spine case keeps M5's spineLine, SPINE_RELEASED_RUN and the 'spine alone' case on master's Rule B. SPINE_RELEASED_RUN gains pairLoad (IdleRun now names it), the spine line prints each window's 30 s pair as master's lines do, and its test fixtures carry loadPair. services.js and its three chunks are byte-identical to 4c3fcbe's. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Oct 29, 2026
Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
This was referenced Oct 29, 2026
Merged
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.
Summary
A lane A question raised on a cut-over machine never became a card. The hub's presence pending stayed 0, the endpoint never sent
notify, and it never wrotenotified.json. This was seen in production on the Mac mini after B2's cutover, for every session in every project.sminos (the RL10 client) sends a project's complete
{t:"pending"}set only at an open, a drop, a reconcile loss or an outbox overflow. Every later raise and settlement goes up as a single sub-lesssessionmessage of kindraisedorsettled(sminos_requests.py:480/:520 →queue). That is RL10's contract: complete state at each welcome, single messages in between. The endpoint's Notifier was fed only from the complete sets (rl10/link.ts #pending).#sessionhandedraisedandsettledto the channel plane alone, so the hub's pending count never rose above 0.The fix is in
src/endpoint/notify.tsandsrc/endpoint/rl10/link.ts:requestMessageadds an id onraisedand removes one onsettled, then sendspending(session, size). It takes the session from the envelope, because a settled body carries nosession.forgetdrops a session's ids.withdrawnkeeps them, so a session listed again is told its count.notified.jsonholds an empty set, and the next complete set settles it.The fixture
test/endpoint/rl10/conversation.jsongains anotifyscene, which checks the lastnotifyfor a session andnotified.json. It also gains case 12 (raise, raise, settle, settle). Cases 8 and 11 now end with notify assertions.Validation Evidence
Tests failed first, then passed.
test/endpoint/records.test.tsfailed withnotifier.requestMessage is not a function.src/endpoint, failed with "step 1 (notify): no a notify waiting 1".test/endpoint+src/endpointgave 473 passed, 1 skipped;tsc -p tsconfig.node.jsonexited 0; eslint was clean.Focused tests on the merge head a9796a4 (after merging origin/master bd6b4b0):
vitest run test/endpoint/records.test.ts test/endpoint/lane-b-notify.test.ts test/endpoint/rl10/ test/endpoint/cli.test.tsgave 9 files, 100 tests passed.Staging proof. This used desk-hub-staging and the devcloud VM's scratch scene only; nothing in production was touched. The probe lives on evidence branch
p5-o10-notify-staging(9b1f2e0), which is not for merging.mcp__sminos__AskUserQuestion.notified.jsonread{"0fb74622-…":{"project":"b7d29bc1-…","pending":1}}.{"t":"presence","online":true,"pending":{"0fb74622-…":{"project":"b7d29bc1-…","kind":"waiting","pending":1}}}.notified.jsonread{}and a fresh socket's presence read"pending":{}. The verdict wasPASS 10.notified.jsonwas still{}after 90 s. That is the production defect.Gate:
scripts/ci-gate.sh <worktree> --gates static,unit,probes,e2e:desk-web-hub --runner macos --class1a pool --lane hostedat the merge head a9796a4 (tree b9f86fb3e; ci-gate ran that exact sha asci/notify-raised-m-a9796a47, so the gated tree is the head's):run 40852192868 success, with static, unit 1/4 to 4/4, probes and e2e:desk-web-hub allsuccess. Noflaky:line (flaky count 0). An earlier run on the pre-merge head b7496e3 (40850997678) was also green, but it ran before P5 O3-B: the e2e groups on the daemon shape #336's daemon-shape harness landed.Review: reviewer-high on c6c5235..b7496e3 found no material defect in the Notifier changes. Its in-memory checks covered:
notified.jsonafter a restart;Its one finding is below.
Unresolved Review Findings
uplines (conversation.json:337–339). The sminos replay of the byte-for-byte copy (sminos/tests/rl10_conformance.pySTAGE, around :588) has no entries for (12,0), (12,2), (12,4) or (12,6). If the copy is refreshed without them, the replay times out waiting for req-3 and req-4. The fix belongs in the doperpowers repository, and the coordinator owns it once this lands: refreshsminos/tests/rl10-conversation.jsonto blob4d91747bb65a5e8ee1b00c0c19150900a6650beeand add the four STAGE entries. Until the copy is refreshed, sminos's replay stays on the old fixture and keeps passing.Residue
Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)