Repository navigation
W-022 spike: Linear Synchronization Capsules flipping GUARANTEES Rows 8, 10, and 11 (race-verified, preregistered, #544) - #545
Conversation
|
W-022 intake ack (48h commitment): Linear Synchronization Capsules flipping GUARANTEES rows 8/10 — preregistered P1-P4 with the P4a/P4b falsifier fired-as-predicted, all artifacts scoped to spikes/w022-linear-sync-capsules/, zero self-edits to maintainer-owned ledgers. Entered as W-022; verdict slot: M1 if the artifact completes review before 2026-11-01 00:00 UTC, else the December window. Credit for merged PRs #28/#30/#32 is recorded in CONTRIBUTOR_RECOGNITION (a maintainer-side row, not self-authored). Please add the intake template fields (falsifier + smallest executable artifact) to the issue when you can. |
|
W-022 intake — ledger entry landed. Follow-up to the intake ack above: W-022 is now physically entered in the To make the review maximally concrete, three things would strengthen the verdict — none required for intake, all welcome any time before the window closes:
No ledger self-edits needed — we keep |
|
Thank you @limitlessprojects for the W-022 intake ( I have pushed commit
Also closing #543 per your note that |
645fea2 to
5e28029
Compare
0379014 to
fee1400
Compare
…essprojects#544) Pre-registers P1-P4 (with P4a interior sub-slice alias across pool epochs and P4b AB-BA lock-order cycle as declared falsifiers) and implements AtomicCapsule[T], LinearPool[T], and MutexCapsule[T] composing with W-004 phantom witnesses (Live[R]/Moved[R]) to flip GUARANTEES.md Rows 8, 10, and 11.
fee1400 to
a148712
Compare
|
M1 verdict recorded: accepted — winner of the 2026-11-01 wildcard cycle ($250 M1 logged; owner pays). Written reason in MOONSHOT.md → Window verdicts (race-verified, pre-registered spike; strengthening delivered in a7ba19f; GUARANTEES rows 8/10/11 flips; third convergence on the phantom-witness/may_share boundary). Per Track 3 this PR stays open as the artifact — it never merges to main. Next milestone: M2 learning at the 2026-12-01 window. |
Refs #544
Implements the bounded M1 feasibility spike for Wildcard proposal #544 (by the original proposal author,
@carelessdept), scoped strictly insidespikes/w022-linear-sync-capsules/without touching any guarded compiler, runtime, or ledger files, and sharing theLive[R]/Moved[R]zero-size phantom witness vocabulary fromW-004(PR #507).What's here
spikes/w022-linear-sync-capsules/work/capsules.go— the three Linear Synchronization Capsules that flipGUARANTEES.mdRow 11 (AtomicCapsule[T]), Row 10 (LinearPool[T]), and Row 8 (MutexCapsule[T]):AtomicCapsule[T]:AtomicStoreMove/AtomicSwapMoveconsumeLive[R] -> Moved[R](O5.2 move-freeze), andTake()atomically swapsnil, preventing the shared-pointee race that forcedPR #52to rejectatomic.Pointer[T]asHYB-E3005.LinearPool[T]:PoolPutMoveconsumesLive[R] -> Moved[R]and runs a mandatory structural reset hook before returning the object tosync.Pool.MutexCapsule[T]: replaces string-typedmanaged("...", "mutex")permits with a lexical borrow callbackWithLock(func(ScopedLoan[T])).spikes/w022-linear-sync-capsules/work/capsules_test.go— pre-registered P1–P4 (P4aandP4bas declared falsifiers), committed in the same commit as the artifact (go test -race -count=2— 10/10 PASS).spikes/w022-linear-sync-capsules/work/negative/+run_negatives.sh— use-after-AtomicStoreMoveand use-after-PoolPutMovemust FAILgo build(both rejected).spikes/w022-linear-sync-capsules/work/bench_test.go— P1/P2/P3 quantified against rawatomic.Pointer,sync.Pool, andsync.Mutex:AtomicCapsuleSwapMove:4.888 ns/op,0 B/op,0 allocs/op(vs4.207 ns/oprawatomic.Pointer.Swap)LinearPoolPutMove:22.08 ns/op,0 B/op,0 allocs/op(vs20.03 ns/oprawsync.Pool)MutexCapsuleWithLock:11.01 ns/op,0 B/op,0 allocs/op(vs3.774 ns/oprawsync.Mutex;+7.24 ns/opis thedefer Unlock()cost)spikes/w022-linear-sync-capsules/RESULTS.md— pre-registration table, benchmark numbers, falsifier analysis, and M1 verdict draft.Headline verdict
No claim/[TBD]into Tier-0 checked capabilities with0 B/op, 0 allocs/op.TestP4a_Falsifier_InteriorSliceAliasSurvivesOuterPoolPut): Consuming the outer struct witnessLive[R] -> Moved[R]onPoolPutMoveUnresetstops caller use-after-Puton the struct variable, but if the caller extracted an interior sub-slice (leaked := buf.Payload[:2]) beforePutMoveand nomay_sharecheck + field reset runs,leakedobserves mutations from the nextGet()consumer across tasks. This is the third independent spike (after#370P4 and#507P4) to converge on the exact boundary between zero-size phantom witnesses and Hybrid'smay_sharegraph.TestP4b_Falsifier_NestedMutexCapsulesCanDeadlockWithoutLockOrder):MutexCapsule[T].WithLockproves data-race freedom (Row 8), while nested multi-capsule AB-BA acquisition cycles remain a liveness property unless paired withW-009wait-for epoch ordering.Race-verified (
go test -race -count=2), vet/gofmt clean, negatives compile-rejected.