Repository navigation
Conversation
…ts & crowd parity
CommaBot
force-pushed
the
feat/core-wave-b6b1b1-handover-admits
branch
from
December 5, 2026 20:37
a18bb0a to
a7fddf6
Compare
This branch has not been deployed
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
Closes Wave B6b-1b1 — Handover / Moved / Admits / Crowd / Model 8-File Test Closure +
#10308R11 Astra P2-1 in pure Pion (pion/client-core), including Round 2 & Round 3 (Astra + Sol v2 Architectural & Review Closure).134 / 135full parity +[39]single-account per-peer framing &left.firstisolation closed;[39]cross-account sibling pairing honestly scoped below) plus#10308R11 Astra P2-1 (cc_lock_pair_admission.pion).lock-admits.test.ts [39]):ClientCoreandcore_runtime(pair_mesh.pion:102,cloud_wiring.pion:633) currently mount a single active account at a time (effective_sub()). Round 3 removes R2's ad-hoc sibling-account personal-lock bypass (~610net production lines removed), preserves clean per-approverbuild_pair_hello_for_peerdial framing (>56 KiBmulti-workspace trimming, moved-vs-unmoved personal-log scoping, ordinary-vs-left.firstframe isolation, and in-flightfirstcancellation) under the mounted account, and tracks the cross-6-sibling-account half oflock-admits.test.ts [39]under the dedicatedcore_runtimemulti-account membership/credential/personal-lock wave (zero fake green)..github/workflows/pion-ui.ymluntouched), zerodebug_assert(, zero self-referencing closures, all603production.pionfiles within the 1,500-line ceiling (OVER = 0), and every P1 verified via isolated runtime revert-falsification (回退必败).Round 3: First-Principles Architectural & Final Review Closure (Astra + Sol v2)
回退必败)cc_lock_write.pion,cc_lock_state.pion,cc_lock_refusal.pion,cc_lock_pair_targets.pion,cc_lock_pair_admission.pion,cc_lock_pair_new.pion,b6b1b1_r2_review_test.pionother_person_locks/pair_refresh_other_sub_k/pair_begin_other_sub_k); retained clean single-account per-peerbuild_pair_hello_for_peerdial wiring (>56 KiBmulti-workspace trimming, moved vs unmoved log scoping, ordinary vsleft.firstisolation, in-flightfirstcancellation) and documented[39]cross-account runtime wave dependency.0compile errors; panics at runtime inb6b1b1 r2 P1-1 [39]cc_lock_pair.pion,cc_lock_pair_new.pion,cc_lock_pair_admission.pion,cc_personal_join.pion,cc_lock_adopt.pion,b6b1b1_r2_review_test.pionInt64request generation (pair.begin_seqviapair_claim_begin_seq) before any async pre-read (key_k,personal_refresh_k,personal_make_k,lock_signer_made_k), invalidated onlock.pairCancel, newlock.pair/personalJoin/adoptNewRoot, and account switch; added cancel, out-of-order reopen, and account-switch regressions asserting0stale dials.0compile errors; panics at runtime inb6b1b1 r3 R3-2cc_lock_pending.pion,cc_lock_pair_trusted.pion,b6b1b1_r2_review_test.pionfind_waiting_added_pendingto returnResult[Option[(String, String)], String]vialock_pending_read_pair_checked; failed closed withErr("storage")before signing (0Cloud POSTs, never degrading invited"admin"/"owner"to"member") on SQLite read/corrupt errors; kept post-commitdrop_lock_pending_by_idnon-fatal with idempotentpending:<email>cleanup inreconcile_lock_pending_on_hold&deliver_lock_pending_step_k.0compile errors; panics at runtime inb6b1b1 r3 R3-3cc_lock_pair_trusted.pion,b6b1b1_r2_review_test.pionworkspacesandfallbackWorkspacesinpair_locks_to_read(1:1pair.ts:215,422); extendedb6b1b1 r2 P1-2to cover minimal checkedhellostale-lock refresh.0compile errors; panics at runtime inb6b1b1 r2 P1-2cc_lock_read.pion,cc_lock_read_decide.pion,b6b1b1_r2_review_test.pionlockPendingitemsnon-empty before computingwas.entrieshashes on unchanged-head lock reads; added regression proving0entry hashes computed whenlockPendingis absent or empty.0compile errors; panics at runtime inb6b1b1 r3 R3-4bRound 2: Astra + Sol v2 Non-Cross-Account Items Verified Closed (
11 / 12)cc_lock_pair_trusted.pion,lock_pair_test.pion,b6b1b1_r2_review_test.pionneed_lock && stale.length() > 0inpair_served_hellobounded refresh trigger and passed realstalelist topair_refresh_for_hello.cc_lock_chain.pion,cc_lock_read_decide.pion,b6b1b1_r2_review_test.pionreconcile_lock_pending_on_holdon unchanged-head early returns (1:1views/lock.ts:1877), draining stationless cold-restartwaiting -> tookvia Cloud CAS.cc_lock_state.pion,cc_lock_chain.pion,cc_lock_pending.pion,cc_calls_lock.pion,b6b1b1_r2_review_test.pionlockPendingdelete insidepersist_lock_state_for_workspaceswap transaction +Err("storage")propagation inlock.pendingDismiss.cc_lock_pair_trusted.pion,cc_lock_pending.pion,b6b1b1_r2_review_test.pionfind_waiting_added_pendingbeforelock_append_kpreserving invited"admin"role across retryable CAS 409ReSign.cc_lock_pair_moved.pion,cc_lock_write.pion,cc_lock_pending.pion,cc_lock_handover_view.pion,cc_lock_handover.pion,b6b1b1_*_test.pionInt64deliver_seqtoken; unifiedHANDOVER_WAITED_LINES = 6;LOCK_PENDING_FAILED_MOST = 8;State4m8parity across 48 seeds; interleaved held S1off/lock/given+ S2left; cold-restart SQLite + host kv handover recovery.Round 1: Item-by-Item Coverage Mapping (8 TS Test Suites +
#10308R11 P2-1)#10308R11 Astra P2-1)[A, B]approving onlyAstrips unapprovedBvault handoverb6b1b1_pair_vault_test.pionlock-handover-model.test.ts(1)[1]planHandovervslock-roster4-modelm8across 24 seeds ×{away: false, away: true}b6b1b1_model_parity_test.pion+b6b1b1_roster_model_test.pionlock-moved-state.test.ts(2)[1]Drawn worlds (V3×[free, faults]× 3 seeds × 120 steps + shuffled order) vsWorld4;[2]Scripted worlds (m2,m5Clock,revoked,m6,m7,m8) vsWorld4b6b1b1_model_parity_test.pion+b6b1b1_world4_model_test.pion+b6b1b1_world4_state_test.pionlock-moved.test.ts(13)[1]-[8]Core moved invariants;[9]-[13]Fork switch, lacking open fallback, off-log writers, displaced aside, movedlockPendingfailure & drainlock_moved_test.pion+b6b1b1_lock_moved_test.pionlock-handover-crowd.test.ts(5)[1]-[5]300-member & 100-member crowd handover,9274/9275build gate,headswait &upgrade.lines, 20-member fast pathb6b1b1_handover_crowd_test.pionlock-handover-crowd-reads.test.ts(2)[1]Differential reads atN = 50&N = 300+0redundant body hashes;[2]Truncated/lock/givennon-standing +stillfail-resumed: 1rereadb6b1b1_handover_crowd_test.pionlock-handover.test.ts(42)[1]-[42]Explicit & automaticmoved_by_selfhandover, split-ownermeet, 14-day hold, station gates, moveddisable/open,confirmSigner, carried unbound piggybackbind&noLog1-askbegin + bind, cold-restart recoverylock_handover_test.pion+b6b1_lock_work_test.pion+b6b1b1_handover_test.pionlock-adopt-new-root.test.ts(22)[1]-[22]Unmoved & movedlock.adoptNewRoot, rogueperson:<sub>rejection, station-newerownRootrevocation, unadmitted wipe/reload,extra_devicescollision, interleaved S1off+ S2leftlock_adopt_test.pion+b6b1b1_adopt_root_test.pionlock-admits.test.ts(47)[1]-[38],[40]-[47]Full parity (lock_pair_moved_test.pion,b6b1_lock_*_test.pion,b6b1b1_lock_admits_test.pion);[39]Single-account per-peer>56 KiBframing, moved vs unmoved log scoping, ordinary vsleft.firstisolation & in-flightfirstcancellation inb6b1b1_r2_review_test.pion(cross-6-sibling-account pairing tracked undercore_runtimemulti-account wave)lock_pair_moved_test.pion+b6b1_lock_admission_test.pion+b6b1_lock_begins_test.pion+b6b1_lock_refusal_test.pion+b6b1b1_lock_admits_test.pion+b6b1b1_r2_review_test.pionModel(s) used: Gemini 4 Carbon (
agy)Test frameworks run:
pionc test(pion/rules,pion/client-core/packages/sync,pion/client-core/packages/views,pion/client-core/packages/core_runtimedebug & release),pionc build --target wasm32,node --test(schema-chat-tag.test.mjs,core-perf-gate.test.mjs,live-contract-cloud-station.test.mjs),scripts/agents-paths.ts,pion/client-core/scripts/check-structure.mjs,scripts/gen-pion-i18n.mjs --check,scripts/i18n-words.ts --target pion-core