Repository navigation
spike(w-3764): executable M1/M2 spike for linear must-consume obligations & escape-certified stack regions (#3764) - #3765
Open
cyzcz wants to merge 3 commits into
Conversation
… escape-certified regions
2 tasks done
Owner
Track-3 (Wildcard) routing — intake acknowledgedThank you @cyzcz. This executable M1/M2 spike for Wildcard proposal #3764 (linear must-consume obligations & escape-certified stack regions) is routed to the Track-3 process per BOUNTY.md / MOONSHOT.md:
No silent closes — this PR stays open until the review window resolves it. |
Owner
|
Ledger update: the parent proposal is now intake-acked and ledgered (W-024 in |
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.
Companion executable M1/M2 verification spike for Wildcard proposal #3764.
Summary of Measured Results (
spikes/w-linear-must-consume/RESULTS.md)H1 (Linear Must-Consume Soundness)—PASS:linear_obligation_verifier.pyadmits branch-complete linear consumption (01-linear-branch-complete-admitted.hy) and rejects early?try-return leaks and partial-branch drops (02-linear-early-try-leak-rejected.hy→2x HYB-E3701).H2 (Go Compiler Escape Oracle Agreement)—PASS:go build -gcflags="-m=2"verifiesRunLinearStackLoopinlines (cost 79 <= budget 80) with0heap escapes, whileRunSyncPoolLoopexceeds the inline budget (cost 201 > 80) and forcesnew(Packet) escapes to heap.H3 (Throughput & Zero-Allocation Benchmark)—PASS:BenchmarkLinearStackLoopruns at2,885 ns/op(0 B/op,0 allocs/op) vsBenchmarkSyncPoolLoopat6,127 ns/op(2.12xspeedup,go test -race ./...green).F1–F2 (Pre-registered Falsifiers)—FIRED: Double-consume (HYB-E3003) and dynamic interface-sink heap escape (HYB-E3702/FormatterSink.Observe(any)) both fire as predicted.Verification
python3 spikes/w-linear-must-consume/linear_obligation_verifier.py --check --live-gopython3 -m unittest discover -s spikes/w-linear-must-consume/tests -vcd spikes/w-linear-must-consume/work && go test -race -v ./... && go test -bench=. -benchmem ./...