Repository navigation
fix(station-host): remove vault_cards host_shim::wait, complete UpdateHold wiring, and burn down small-ledger gaps - #10458
Merged
Conversation
CommaBot
force-pushed
the
feat/pion-wait-sweep-and-last-small-ledgers
branch
from
December 6, 2026 00:47
a8163e8 to
859b755
Compare
…eHold wiring, and burn down small-ledger gaps
CommaBot
force-pushed
the
feat/pion-wait-sweep-and-last-small-ledgers
branch
from
December 6, 2026 00:54
859b755 to
b224969
Compare
zanwei
enabled auto-merge (squash)
December 6, 2026 00:58
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
1. Eliminate background
host_shim::wait& completeUpdateHoldhardeningvault_cards.pion: Replacedhost_shim::wait(ms)inreask_in's SQLite busy-retry loop with a privateChannel[Unit]::recv_timeoutloop (25 ms cancel-polling slices) so background vault-card retries never pop/discard events fromhost_sessions's main completion queue and abort promptly onCancelToken. Added real-SQLite busy-retry & cancellation test inhost_sessions/src/vault_cards_wait_test.pion.updates_door.pion: SwitchedUpdatesDoor'son_update_holds_clearedcallback (and coalescablewake) to non-blockingtry_sendvia a matching counting semaphore (slots : Channel[Int]), preventing hold-release callbacks from blocking caller threads when the updates queue is full, while keepingHupandReleaseOutreliably delivered. Added unit test inhost_upkeep/src/updates_door_holds_test.pion.UpdateHoldwiring acrossmove&handoverpaths:host_upkeep/src/handover_in.pion:HandInsacquiresUpdateHoldpercominghandover id onhandover.begin(idempotent on retries) and releases onhandover.show, unconditionally onHandIns::drop(even if drop fails, preventing permanent update lockout), and viarelease_all_update_holds()on peers-thread shutdown.host_upkeep/src/handover_out.pion:hand_overandsettle_outsacquireUpdateHoldand release unconditionally across all normal and error/early-return paths.host_sessions/src/move.pion&move_told.pion:MoveHandleacquiresUpdateHoldacrossGo,Back,Askedturns, the peer request dispatch loop (move.pion, aligned with Nodestation.ts:777),retire.*spawned workers, andMoveHandle::peer_tool(bothtoldand direct spawned paths, acquired before spawn and released on completion/error; redundantask_stephold removed). AddedMoveHandle peer_toolhold lifecycle test inhost_sessions/src/move_test.pionand failed-drop release assertion inhost_upkeep/tests/contract/src/handover.pion.retire: Pion keeps station retirement execution switched off (RETIRE_OFF, matching NodeRETIRE_STARTS = false), so no active retiring/taking state exists to hold.2. Burn down remaining small-ledger
deferred_gapentriesstation/test/feedback-replies.test.ts->ported_new: Extracted privatefeedback_reply_run(called directly by productionfeedback_reply_tool) and addedhost_sessions/src/feedback_replies_parity_test.pionverifying real-SQLitefeedback_session, trimmed payload/wording, argument validation, 404feedback_not_found, offline refusal, andstation_tools()having onlyfeedback_sendandfeedback_reply.station/test/awake-waits-index.test.ts->partial: Addedhost_sessions/src/awake_autoarchive_parity_test.pionexercising productionbuilders_legacy::recovery_step&awake_step(genuine forward-cursor resumable batching without cursor reset, trigger-abort rollback, concurrent SQLite writer ahead of cursor without cursor reset, 3-seed x 250-mutation oracle agreement, andsession_recover_waitsPRIMARY KEYEXPLAIN QUERY PLAN); honestly listsstation_storesession_awake_deadlinestriggers, recursive-trigger replacement/ignored writes, and mid-backfill updates to already-visited keys inmissing_assertions.station/test/autoarchive-unread-bounded.test.ts->partial: Added real-SQLite test inhost_sessions/src/awake_autoarchive_parity_test.pionexercisingbuilders_requested::said_step(<= 64 slice bound across 5001 messages) andbuilders_legacy::said_step(changed-away & ignored duplicate keys); honestly keepsautoarchive_pass_with_hooksunreadForArchivegating inmissing_assertions.deferred_gapentries were audited and honestly retained asdeferred_gapwhere they depend on unmigrated production features or multi-station/live-WS harnesses.Verification
pionc fmt --check pion/station-host— PASSpionc check --json pion/station-host— PASS (0 diagnostics)pionc check --json pion/station-host/host_upkeep/tests/contract— PASS (0 diagnostics)pionc test --json --filter "UpdatesDoor" pion/station-host/host_upkeep— PASSpionc test --json --filter "MoveHandle peer_tool|vault_cards reask_in|awake-waits-index|autoarchive-unread-bounded|feedback-replies" pion/station-host/host_sessions— all 5 PASSpython3 pion/station-host/scripts/parity_audit.py --self-test— PASS (0 ledger errors)sh scripts/undone.sh origin/main HEAD— PASSsh scripts/check.sh push origin/main..HEAD— PASSModel: Gemini 4 Neon. Test frameworks:
pionc test,parity_audit.py --self-test,scripts/check.sh push.