Repository navigation
feat(spikes): add Certified Commutative Merge Capsules prototype & verifier suite (closes #2385) - #2409
Closed
theheiszt wants to merge 2 commits into
Closed
feat(spikes): add Certified Commutative Merge Capsules prototype & verifier suite (closes #2385)#2409theheiszt wants to merge 2 commits into
theheiszt wants to merge 2 commits into
Conversation
2 tasks done
theheiszt
force-pushed
the
feat/w-commutative-merge-capsules-spike
branch
from
October 31, 2026 06:44
17da17d to
ca897ef
Compare
2 tasks done
theheiszt
force-pushed
the
feat/w-commutative-merge-capsules-spike
branch
from
October 31, 2026 11:34
629d107 to
3f06e3e
Compare
Author
|
Closing as resolved upstream by PR #2417 in session 35. |
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
Resolves #2385 (Wildcard Track Proposal: Certified Commutative Merge Capsules
merge[M]).This PR implements the executable prototype, verification kernel, and formal falsifier/benchmark test harness for Certified Commutative Merge Capsules (
merge[M]), providing wait-free parallel accumulation across tasks with zero locks, zero atomics, and zero channel contention during the parallel compute phase.Architecture & Deliverables
Wait-Free Runtime (
spikes/w-commutative-merge-capsules/merge.go):MergeCapsule[M]: Root coordinator tracking child shards and lifecycle.Shard[M]: Affine, non-sendable capability allocated viaSplit()into each spawned task. Local accumulation occurs directly ons.Valwith zero locks, zero atomics, and zero cacheline bouncing.Settle(): Deterministic pairwise tree reduction inAbort()&Context(): Coordinated early error/cancellation handling without goroutine leaks or barrier deadlocks.Static Commutativity Decidability Gate (
spikes/w-commutative-merge-capsules/verifier.py):SymExpr).HYB-E3302: rejects I/O, timers, wall clocks, global mutations, panic/unwind escapes).HYB-E3301: string/slice concatenation) with guidance redirecting to spawn-indexedfold[M].30-Case Validation Corpus (
spikes/w-commutative-merge-capsules/test_verifier.py):max/minfunctions, conditional semilattices, and multi-field metric accumulators.Concurrency & Benchmark Suite (
spikes/w-commutative-merge-capsules/merge_test.go):TestRaceFreedom: 64 parallel workers performing-race.TestDeterminism: Bitwise identical outputs across repeated asymmetric runs.TestDeadlockAndEarlyCancelImmunity: Clean cancellation without wedging.sync.Mutexand buffered channels showing linear scaling and zero cache contention.Bounty Settlement Details
merge[M]): Wait-Free Parallel Accumulation Without Channels, Atomics, ormanagedPermits #2385BU5zBur46YjnCaY34XGBTJ8KSAG9EExjpZA58wDo7wAx