Skip to content

W-024 / W-006 spike: O5.3 Escape-Freeze on read-only foreign captures & 1-pass cancellation dataflow (#3373, #352) - #3374

Open
zainrizvi0611-cmd wants to merge 71 commits into
limitlessprojects:mainfrom
zainrizvi0611-cmd:spike-w024-escape-freeze-3373
Open

zainrizvi0611-cmd wants to merge 71 commits into
limitlessprojects:mainfrom
zainrizvi0611-cmd:spike-w024-escape-freeze-3373

Conversation

@zainrizvi0611-cmd

Copy link
Copy Markdown

Refs #3373, Refs #352, Refs #348

Implements the bounded M1/M2 executable feasibility spike for Wildcard proposal #3373 (by the proposal author, @zainrizvi0611-cmd) and provides the missing executable 1-pass dataflow spike noted in MOONSHOT.md slot 6 for W-006 (#352) / W-007 (#348), scoped strictly inside spikes/w024-escape-freeze-and-cancellation-dataflow/ without touching any guarded compiler, runtime, or ledger files.

What's here

  • spikes/w024-escape-freeze-and-cancellation-dataflow/verify_spike.py — self-contained 1-pass monotone dataflow verifier (8/8 pre-registered cases passing) covering:
    • O5.3 Escape-Freeze (GUARANTEES.md Rows 5, 9, and 13): Promotes any may_share root read-captured by a foreign-escaped closure (http.HandleFunc, time.AfterFunc, runtime.SetFinalizer) to EscapeFrozen at the escape site. Pre-escape initialization + post-escape read-sharing in both caller and callback require zero managed blocks (case 01), while any post-escape outer write to the root (case 02) or an alias peer (case 03) or finalizer-captured root (case 05) rejects deterministically with HYB-E3014.
    • W-006 Monotone Cancellation-Epoch Corollary (GUARANTEES.md Row 12, #352 / #348): Verifies in the same forward pass that spawned tasks with uncancelled blocking channel operations (case 06) or un-checkpointed loop backedges (case 08) reject with HYB-E3210, while select with cancellation epoch observation (case 07) accepts.
  • spikes/w024-escape-freeze-and-cancellation-dataflow/RESULTS.md — pre-registered hypotheses (H1–H4), falsifier analysis (F1 synchronous callback trade-off and narrowing remedy), and before/after GUARANTEES.md row text for Rows 5, 9, 12, and 13.

Verification

python3 spikes/w024-escape-freeze-and-cancellation-dataflow/verify_spike.py

Rewards address (Base USDC / ETH): 0x0970e4ad9Ff0a9A183e9c22de4664CC4A17804e6

@github-actions github-actions Bot added the bot:stale-base Shepherd: behind main beyond threshold label Nov 3, 2026
@github-actions github-actions Bot added the bot:land-candidate Shepherd: fresh, gate-clean, verifiable (set from classify()) label Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:land-candidate Shepherd: fresh, gate-clean, verifiable (set from classify()) bot:stale-base Shepherd: behind main beyond threshold

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant