Repository navigation
W-004 spike: phantom capability witnesses — zero-cost use-after-move enforcement in emitted Go (race-verified, preregistered) - #507
Open
limitlessprojects wants to merge 1 commit into
Conversation
…enforcement in emitted Go (preregistered P1-P4, P4 falsifier fired as predicted) P1 CONFIRMED: witnessed move 0.347 ns/op 0 allocs = plain baseline (0.356). P2/P3 confirmed. P4 (declared falsifier) confirmed: captured use after hyMove still shares storage — witnesses own the non-captured subset, may-share graph keeps captures. Negatives compile-rejected (uam.go, backedge.go). go vet/gofmt/race clean. Second independent convergence with #370's P4 residual — the M1 evidence the capabilities family needed for slot 4.
limitlessprojects
pushed a commit
that referenced
this pull request
Oct 17, 2026
…plete, W-004 spike PR #507, W-019/020/021 intake, M1 prep at 21 rows/10 artifacts
This was referenced Nov 28, 2026
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.
Implements the first milestone of W-004 (issue #174, capabilities-replace-the-alias-graph family) — a no-compiler spike per the row's own directive.
What's here
spikes/w004-phantom-witnesses/work/witness.go— the encodinghyb emitwould synthesize: per-binding zero-size root markers,Live[R]/Moved[R]witnesses,hyUseguards (zero-cost),hyMoveconsumption, and the W-005hyCloneboundary seam so the two spikes share vocabulary.work/witness_test.go— pre-registered P1–P4 with P4 as the DECLARED falsifier (closure captures), committed in the same commit as the artifact.work/negative/+run_negatives.sh— use-after-move and loop-backedge double-move must FAILgo build(both do).work/bench_test.go— P1 quantified: 0.347 ns/op, 0 B/op, 0 allocs/op vs plain baseline 0.356 ns/op — inside noise; the witness compiles away.RESULTS.md— preregistration + results + M1 verdict draft + falsifier terms.Headline verdict
Zero-cost E3003-class enforcement for the non-captured emitted subset is real (the checker becomes a witness producer, the Go type checker enforces for free). P4 fired as predicted: captured uses after move still share storage — the second independent spike (after #370's P4) to converge on that residual, which is exactly what the may-share graph/capture-freeze machinery owns on main.
Race-verified (
go test -race -count=2), vet/gofmt clean, negatives compile-rejected.