kill: purge old-paradigm dist/platform binaries from tree
El SDK Release / build-and-release (push) Failing after 13m0s

The generated C, amalgams, vendored runtime pins, and compiled binaries
from the Claude Code era are removed from the worktree. The El sources
survive; this tree is now source-only for the first-principles rebuild.

Per Principal direction 2026-08-19.
This commit is contained in:
will
2026-08-19 19:46:15 -05:00
parent cce4fcca05
commit d3495476f4
944 changed files with 10343 additions and 21230 deletions
@@ -0,0 +1 @@
bash -c cd /tmp/rerun-v1b-18/lang && SRCS=$(../scripts/el-runtime-sources.sh runtime); CF="-std=c11 -O2 -I runtime"; LF=""; for d in /opt/homebrew/opt/openssl@3 /usr/local/opt/openssl@3; do [ -d "$d" ] && CF="$CF -I $d/include" && LF="-L $d/lib"; done; LF="$LF -lcurl -lssl -lcrypto -lpthread -lm"; ./dist/platform/elc elc-cli.el > /private/tmp/claude-501/-Users-will/6531446d-bc27-4095-930b-e04777c3db4f/scratchpad/v1b/g18.c && cc $CF -o /private/tmp/claude-501/-Users-will/6531446d-bc27-4095-930b-e04777c3db4f/scratchpad/v1b/elc18 /private/tmp/claude-501/-Users-will/6531446d-bc27-4095-930b-e04777c3db4f/scratchpad/v1b/g18.c $SRCS $LF && echo BUILD-OK
@@ -0,0 +1,4 @@
runtime/el_runtime.c:14468:1: warning: '/*' within block comment [-Wcomment]
14468 | /* ═══════════════════════════════════════════════════════════════════════════
| ^
1 warning generated.
@@ -0,0 +1,7 @@
commit 511db25230c69b9484ece39ed4131d3920b16596
tree clean
captured_utc 2026-08-17T17:45:32Z
exit 0
ms 3972
sha256_out 68ff1c8c79613a8870607bcba04539154b609870fef324c18636f75c43aeacd7
sha256_err 24f9504907bf0d11286da21911398ea3eb01e7423d78c3f8174b0051346bd3d7
@@ -0,0 +1 @@
./tests/integration/async_future.sh /private/tmp/claude-501/-Users-will/6531446d-bc27-4095-930b-e04777c3db4f/scratchpad/v1b/elc18
@@ -0,0 +1,8 @@
ok unbound: no construct, synchronous, correct result
ok unbound: el_await on a non-future passes through, no crash
ok bound: does not crash
ok bound: the awaited result is correct
ok bound: the caller continues BEFORE the body finishes
ok bound: the wrap returns in under 10ms while the body takes 50ms
6 assertions, 6 passed, 0 failed
@@ -0,0 +1,7 @@
commit 511db25230c69b9484ece39ed4131d3920b16596
tree clean
captured_utc 2026-08-17T17:45:36Z
exit 0
ms 3868
sha256_out ac52afda852cfe4d226b7fbe46cedbb3bc22be2b592af815e88c41a2f9d23b5d
sha256_err e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
@@ -0,0 +1 @@
bash -c cd /tmp/rerun-v1b-18/lang/runtime && echo "--- EL_MAGIC_* definitions in el_runtime.c/h ---"; grep -hoE "#define EL_MAGIC_[A-Z_]+" el_runtime.c el_runtime.h | sort -u; echo; printf "count: "; grep -hoE "#define EL_MAGIC_[A-Z_]+" el_runtime.c el_runtime.h | sort -u | wc -l
@@ -0,0 +1,8 @@
--- EL_MAGIC_* definitions in el_runtime.c/h ---
#define EL_MAGIC_BIN
#define EL_MAGIC_GEOM
#define EL_MAGIC_LIST
#define EL_MAGIC_MAP
#define EL_MAGIC_MFLD
count: 5
@@ -0,0 +1,7 @@
commit 511db25230c69b9484ece39ed4131d3920b16596
tree clean
captured_utc 2026-08-17T17:45:45Z
exit 0
ms 21
sha256_out 2090b2584a902c6b4c584ef52388a225740bdad95ce894ff1306e2946de34711
sha256_err e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
@@ -0,0 +1 @@
bash -c cd /private/tmp/claude-501/-Users-will/6531446d-bc27-4095-930b-e04777c3db4f/scratchpad/v1b/a18 && ./p
@@ -0,0 +1,7 @@
commit 511db25230c69b9484ece39ed4131d3920b16596
tree clean
captured_utc 2026-08-17T17:46:04Z
exit 0
ms 151
sha256_out 6b1aa833faeb5a1e2ab104d1813e5eeab770c59ad6345582be8517c7f42e8d97
sha256_err e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
@@ -0,0 +1 @@
bash -c cd /private/tmp/claude-501/-Users-will/6531446d-bc27-4095-930b-e04777c3db4f/scratchpad/v1b/a18 && EL_CONSTRUCTS=c.txt ./p
@@ -0,0 +1,5 @@
WRAP_RETURNED 12
CALLER_CONTINUED
BODY_START 20
BODY_END 55034
RESULT 42
@@ -0,0 +1,7 @@
commit 511db25230c69b9484ece39ed4131d3920b16596
tree clean
captured_utc 2026-08-17T17:46:04Z
exit 0
ms 68
sha256_out 5c175965d04514c1ec1d4d7c8a245449f54eefc7a490ccb0e7a892e404f4aae7
sha256_err e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
@@ -0,0 +1,135 @@
# CLAIMS — cycle 18, async — half expressible, and the cycle that was dogma
Source doc: `docs/v1/experiments/cycles/18-async-half-expressible.md`
This cycle is unusual: the doc already carries a chain-of-custody note stating
that its original artifacts were destroyed and that it was **rerun, not
reconstructed**. The verdicts below respect that. Where the original artifact is
gone the verdict is NOT-CAPTURED, and the replication is graded separately.
## Pinned commits
| role | sha | subject |
|---|---|---|
| replication landed (system under test) | `511db25230c69b9484ece39ed4131d3920b16596` | rerun cycle 18 rather than reconstruct it |
| original measurement | — | **no commit.** The C stub lived in `/tmp` and was destroyed with the session worktrees |
`511db252` is the only commit that has ever contained
`lang/tests/integration/async_future.sh` or
`lang/tests/integration/fixtures/future.c`.
## Verdicts
| # | claim | artifact | commit | verdict |
|---|---|---|---|---|
| A1 | the first attempt was dogma: `pthread_join` immediately after `pthread_create`, and the test printed the word `DEFERRED` itself | — | — | **NOT-CAPTURED** (artifact destroyed; the doc says so) |
| A2 | second run, 4/4: `[18 us] wrap RETURNS`, `[29 us] body START`, `caller continues, got 0`, `[50176 us] body END (computed 42)` | — | — | **NOT-CAPTURED** (artifact destroyed; the doc says so) |
| A3 | the caller got **0, not 42** on the second run | — | — | **NOT-CAPTURED** |
| A4 | the fixture now lives at `lang/tests/integration/fixtures/future.c` and the harness at `lang/tests/integration/async_future.sh` | `0002`, repo tree at `511db252` | `511db252` | REPRODUCED |
| A5 | **6/6** on the replication harness | `0002-async-future-harness-6-assertions.out` | `511db252` | REPRODUCED (exact) |
| A6 | follow-on P1: `el_val_t` already carries tagged heap objects — **5 magic tags exist** | `0003-P1-five-magic-tags.out` | `511db252` | REPRODUCED (exact) |
| A7 | follow-on P2/P3: a future is one more; the caller awaits and gets **42** | `0005-P2P3-bound-run-interleaving.out` | `511db252` | REPRODUCED |
| A8 | follow-on P4: **ZERO compiler changes** — runtime C plus one binding | `0004`, `0005` | `511db252` | REPRODUCED |
| A9 | P1/P2 of the second run: the caller proceeds while the body runs; interleaving is observable in timestamps | `0005` | `511db252` | REPRODUCED |
| A10 | follow-on P5: the unbound path still works — **FALSE, SIGSEGV** | — | — | **NOT-CAPTURED** (see note) |
| A11 | the compiler builds at `511db252` | `0001-build-gen1-511db252.out` | `511db252` | REPRODUCED |
## A5 — the replication, 6/6
`0002`, harness run against the compiler built from `511db252`:
```
ok unbound: no construct, synchronous, correct result
ok unbound: el_await on a non-future passes through, no crash
ok bound: does not crash
ok bound: the awaited result is correct
ok bound: the caller continues BEFORE the body finishes
ok bound: the wrap returns in under 10ms while the body takes 50ms
6 assertions, 6 passed, 0 failed
```
Exit 0. The harness's own header states it is a replication and not a blind
test — the outcomes were known before it was written — and that grading is
carried forward here unchanged.
## A8 / A9 — zero compiler changes, demonstrated
The same El source (`fixtures/probe.el`), compiled by the stock `elc`, run twice
against the same binary.
Unbound — no construct file, synchronous (`0004`):
```
CALLER_CONTINUED
RESULT 42
```
Bound — `EL_CONSTRUCTS=c.txt` containing `work async wrap defer` (`0005`):
```
WRAP_RETURNED 12
CALLER_CONTINUED
BODY_START 20
BODY_END 55034
RESULT 42
```
Same compiler, same emitted C, same binary; deferral appears only because a
construct was bound after the build. The wrap returns at **12 µs** while the
body finishes at **55 034 µs**, and `CALLER_CONTINUED` precedes `BODY_END`
the caller demonstrably proceeds while the body runs. The record's own numbers
were 18 µs / 29 µs / 50 176 µs; the shape matches and the magnitudes are
consistent (the body sleeps 50 ms by construction).
`RESULT 42` is the follow-on P3: with a future as one more tagged heap object,
the caller awaits and gets the real value.
## A6 — five tags, and a future would be the sixth
`0003`, over `el_runtime.c` and `el_runtime.h` at `511db252`:
```
#define EL_MAGIC_BIN
#define EL_MAGIC_GEOM
#define EL_MAGIC_LIST
#define EL_MAGIC_MAP
#define EL_MAGIC_MFLD
count: 5
```
and `fixtures/future.c` adds `#define EL_MAGIC_FUT 0xE1F07000u` in the fixture,
not in the compiler.
## A10 — why the SIGSEGV is NOT-CAPTURED
Follow-on P5 records that the first `el_await` read `->magic` off an unvalidated
slot and segfaulted on the unbound path. That version was never committed. The
committed `future.c` carries the repair and a comment naming the defect:
```c
el_val_t el_await(el_val_t h){
if (h < 0x10000) return h; /* small ints / low addresses */
if (h & 0x7) return h; /* malloc returns 8-aligned */
ElFuture* f = (ElFuture*)(intptr_t)h;
if (f->magic != EL_MAGIC_FUT) return h; /* safe to read now */
```
so the harness's second assertion ("unbound: `el_await` on a non-future passes
through, no crash") passes today. The historical failure has no artifact and one
was not manufactured. The *class* it belongs to is independently reproduced in
cycle 19 (`0005-P6-sha256-hex-50000-exit-code.out`, exit 139), which is the
cycle P5 opened.
## Provenance notes
All artifacts from `/tmp/rerun-v1b-18`, a dedicated worktree at `511db252`, with
`capture.sh` invoked by absolute path from inside it. **No DIRTY-TREE flags in
this cycle.**
Three of this cycle's claims (A1, A2, A3) rest on a file that no longer exists.
They are recorded as NOT-CAPTURED. Producing a `/tmp` C stub today and dating it
to 2026-08-17 would be fabrication with a fresh timestamp; the doc's own
chain-of-custody note already says as much, and this re-run does not go behind
it.
@@ -0,0 +1,6 @@
sha256 bytes exit ms commit tree utc artifact command
68ff1c8c79613a8870607bcba04539154b609870fef324c18636f75c43aeacd7 9 0 3972 511db25230c6 clean 2026-08-17T17:45:32Z 0001-build-gen1-511db252.out bash -c cd /tmp/rerun-v1b-18/lang && SRCS=$(../scripts/el-runtime-sources.sh runtime); CF="-std=c11 -O2 -I runtime"; LF=""; for d in /opt/homebrew/opt/openssl@3 /usr/local/opt/openssl@3; do [ -d "$d" ] && CF="$CF -I $d/include" && LF="-L $d/lib"; done; LF="$LF -lcurl -lssl -lcrypto -lpthread -lm"; ./dist/platform/elc elc-cli.el > /private/tmp/claude-501/-Users-will/6531446d-bc27-4095-930b-e04777c3db4f/scratchpad/v1b/g18.c && cc $CF -o /private/tmp/claude-501/-Users-will/6531446d-bc27-4095-930b-e04777c3db4f/scratchpad/v1b/elc18 /private/tmp/claude-501/-Users-will/6531446d-bc27-4095-930b-e04777c3db4f/scratchpad/v1b/g18.c $SRCS $LF && echo BUILD-OK
ac52afda852cfe4d226b7fbe46cedbb3bc22be2b592af815e88c41a2f9d23b5d 370 0 3868 511db25230c6 clean 2026-08-17T17:45:36Z 0002-async-future-harness-6-assertions.out ./tests/integration/async_future.sh /private/tmp/claude-501/-Users-will/6531446d-bc27-4095-930b-e04777c3db4f/scratchpad/v1b/elc18
2090b2584a902c6b4c584ef52388a225740bdad95ce894ff1306e2946de34711 174 0 21 511db25230c6 clean 2026-08-17T17:45:45Z 0003-P1-five-magic-tags.out bash -c cd /tmp/rerun-v1b-18/lang/runtime && echo "--- EL_MAGIC_* definitions in el_runtime.c/h ---"; grep -hoE "#define EL_MAGIC_[A-Z_]+" el_runtime.c el_runtime.h | sort -u; echo; printf "count: "; grep -hoE "#define EL_MAGIC_[A-Z_]+" el_runtime.c el_runtime.h | sort -u | wc -l
6b1aa833faeb5a1e2ab104d1813e5eeab770c59ad6345582be8517c7f42e8d97 27 0 151 511db25230c6 clean 2026-08-17T17:46:04Z 0004-P4-zero-compiler-changes-unbound-run.out bash -c cd /private/tmp/claude-501/-Users-will/6531446d-bc27-4095-930b-e04777c3db4f/scratchpad/v1b/a18 && ./p
5c175965d04514c1ec1d4d7c8a245449f54eefc7a490ccb0e7a892e404f4aae7 73 0 68 511db25230c6 clean 2026-08-17T17:46:04Z 0005-P2P3-bound-run-interleaving.out bash -c cd /private/tmp/claude-501/-Users-will/6531446d-bc27-4095-930b-e04777c3db4f/scratchpad/v1b/a18 && EL_CONSTRUCTS=c.txt ./p
Can't render this file because it contains an unexpected character in line 2 and column 234.
@@ -0,0 +1,6 @@
captured_utc 2026-08-17T17:45:27Z
git_sha 511db25230c69b9484ece39ed4131d3920b16596
git_dirty no
host Wills-MacBook-Pro
uname Darwin Wills-MacBook-Pro 25.5.0 Darwin Kernel Version 25.5.0: Tue Jun 9 22:28:34 PDT 2026; root:xnu-12377.121.10~1/RELEASE_ARM64_T6041 arm64
cc Apple clang version 21.0.0 (clang-2100.1.1.101)
@@ -0,0 +1,12 @@
extern fn el_await(h: Int) -> Int
fn work(k: Int) -> Int {
return k * 2
}
fn main() {
let h: Int = work(21)
println("CALLER_CONTINUED")
let r: Int = el_await(h)
println("RESULT " + int_to_str(r))
}