Repository navigation
sminos 1.4.2: a stale bridge socket holds the open for its successor; questions a resync cannot fit go ahead of it; the uplink says the machine left the hub - #321
Merged
Conversation
… questions a resync cannot fit go ahead of it; the uplink says the machine left the hub Board #107, two edges desk-open-fast left (its spec's residue, PR #302): - A running session's bridge socket that refuses the connect (its child killed, the socket left behind) is dialled again for STALE_WAIT (3 s) before the plane serves the open from the transcript alone. The mod spawns the successor at once and it moves its socket into place, so the open is served by the successor's snapshot, which carries what streams: a block named and not yet flushed no longer vanishes from the desk's drawing, and the re-subscribe no longer spins on transcript-only snapshots. A session with no process is served from its transcript at once, as before. - A resync whose whole questions alone still pass RESYNC_MAX, once streaming is dropped and permissions shortened, sends them ahead of it, largest first, each whole as its own `raised` (the poster splits them into posts that fit), and names them (`pendingAhead`); the child keeps each as that raise left it. Every post fits, no question is shortened, its answers still match, and the resync is no longer refused and queued again for ever. DX5's resync row and the open-fast spec amended. Board #110: once `sminos hub leave` removes daemon/hub.json, the uplink supervisor says the machine left the hub and the uplink stays stopped until it is enrolled again, where it said it restarted the uplink on the credential as it is now. A change that keeps a credential keeps that line. Sminos-Session: smns-erb-71#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. |
Sminos-Session: smns-erb-71#b4948247 (doperpowers on macbook)
Sminos-Session: smns-erb-71#b4948247 (doperpowers on macbook)
Sminos-Session: smns-erb-71#b4948247 (doperpowers on macbook)
Sminos-Session: smns-erb-71#b4948247 (doperpowers on macbook)
Sminos-Session: smns-erb-71#b4948247 (doperpowers on macbook)
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.
doperpowers board #107, #110 — sminos 1.4.2.
#107: two session-plane edges desk-open-fast left
Residue of the desk-open-fast spec (
docs/doperpowers/specs/2026-10-20-desk-open-fast-design.md, PR #302).1. A streaming block vanished on a transcript-only snapshot. While a killed bridge child's socket was stale, the plane answered a re-subscribe from the transcript alone, so the desk dropped a named block whose row was not flushed yet. The re-subscribe also spun on those snapshots until the successor answered.
Plane.subscribenow gives a running session'sBridgeReadera redial window (STALE_WAIT, 3 s). A refused connect is dialled again every 50 ms until the window passes. The mod spawns the successor child at once, and the child moves its socket into place, so the open is served by the successor's bridged snapshot, which still carries the block.2. A resync was retried for ever when its pending questions alone passed the limit. About 64 pending asks near 64 KiB each kept the resync over the engine's body limit, so it was refused and retried as lost for ever.
resyncEvents()adds a third step after dropping streaming and shortening permissions. The questions that still do not fit (async asks included) go ahead of the resync, largest first. Each goes whole as its ownraisedevent, and the poster splits them into posts that fit. The resync names them inpendingAhead, and the child keeps each named request as it holds it, decided/closed state included.docs/doperpowers/plans/2026-10-15-arkho-desk-c2-bridge.md, and the spec's §7 and Residue list are marked done.#110: the uplink supervisor's log after
hub leavesminos hub leaveremovesdaemon/hub.json.UplinkSupervisorthen logged "restarting it on the credential as it is now", although no credential was held.this machine left the hub (hub.json is gone): the uplink stays stopped until the machine is enrolled again. It says the same when the uplink exits on its own while hub.json is gone, which used to say "restarting in Ns".test-sync.sh.Tests
Each new test was run red against main's code before the fix.
test_session_plane.py:vanished, inventory clean. With no successor, the open goes transcript-only once the window passes.StaleSocket, throughPlane.subscribe: a running session waits for the successor, and a session with no process gets no window.fake_session.pygainskill_childandrespawn_child.mods/bridge.test.ts: 65 questions nearTEXT_CAPgive a resync whose posts all fit the engine's limit. Every question reaches the new child once and whole,pendingAheadnames the pages, and there is no gap and no second resync. A resync that fits sends nothing ahead.test-bridge-requests.sh: on the child, a resync withpendingAheadkeeps the question that went ahead, does not invent a named one it never received, and answers still match.test-uplink.sh: removing hub.json under a running supervisor gives the new line and no restart, and re-enrolling brings the uplink back. hub.json removed while the uplink is killed also gives the new line and no restart.Gate: GREEN, https://github.com/SSFSKIM/doperpowers/actions/runs/39562340398. Review:
doperpowers:reviewer-mediumon 81f708c..0367e40 found no material findings.Sminos-Session: smns-erb-71#b4948247 (doperpowers on macbook)