From a0bbf74c014032521768760f568c46a92e1d94bd Mon Sep 17 00:00:00 2001 From: giles Date: Sun, 26 Apr 2026 14:14:32 +0000 Subject: [PATCH] HS-plan: log cluster 36b done +1 (call it-binding) Co-Authored-By: Claude Sonnet 4.6 --- plans/hs-conformance-scoreboard.md | 3 ++- plans/hs-conformance-to-100.md | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/plans/hs-conformance-scoreboard.md b/plans/hs-conformance-scoreboard.md index fd55b326..afcffa6e 100644 --- a/plans/hs-conformance-scoreboard.md +++ b/plans/hs-conformance-scoreboard.md @@ -4,7 +4,7 @@ Live tally for `plans/hs-conformance-to-100.md`. Update after every cluster comm ``` Baseline: 1213/1496 (81.1%) -Merged: 1307/1496 (87.4%) delta +94 +Merged: 1308/1496 (87.4%) delta +95 Worktree: all landed Target: 1496/1496 (100.0%) Remaining: ~194 tests (clusters 17/29(partial)/31 blocked; 33/34 partial) @@ -66,6 +66,7 @@ Remaining: ~194 tests (clusters 17/29(partial)/31 blocked; 33/34 partial) | 33 | cookie API | partial | +4 | | 34 | event modifier DSL | partial | +7 | | 35 | namespaced `def` | done | +3 | +| 36b | `call` result binds to `it` | done | +1 | 35f498ec | ### Bucket E — subsystems (design docs landed, pending review + implementation) diff --git a/plans/hs-conformance-to-100.md b/plans/hs-conformance-to-100.md index 574c50e4..58751cc3 100644 --- a/plans/hs-conformance-to-100.md +++ b/plans/hs-conformance-to-100.md @@ -125,6 +125,8 @@ Orchestrator cherry-picks worktree commits onto `architecture` one at a time; re 35. **[done (+3)] namespaced `def`** — 3 tests. `def ns.foo() ...` creates `ns.foo`. Expected: +3. +36b. **[done (+1)] `call` result binds to `it`** — `call / call functions that return promises are waited on` (1 test). `call X then put it into Y` wasn't setting `it` because the `call` compiler branch emitted the call expression directly without `emit-set`. Fixed by wrapping in `emit-set (quote the-result) call-expr`. Expected: +1. + ### Bucket E: subsystems (DO NOT LOOP — human-driven) All five have design docs on their own worktree branches pending review + merge. After merge, status flips to `design-ready` and they become eligible for the loop. @@ -175,6 +177,9 @@ Many tests are `SKIP (untranslated)` because `tests/playwright/generate-sx-tests ## Progress log +### 2026-04-26 — cluster 36b call result binds to it (done +1) +- **35f498ec** — `hs: call command binds result to it via emit-set (+1 test)`. `call X then put it into Y` compiled `call X` without `emit-set`, so `it` remained nil. Wrapped call-expr in `emit-set (quote the-result) ...` so both `it` and `the-result` are updated. Suite hs-upstream-call: 5/6 → 6/6. Smoke 0-195: 173/195 → 174/195. + ### 2026-04-26 — cluster 7 put hyperscript reprocessing (done, final +1) - **247bd85c** — `hs: register promiseAString/promiseAnInt as sync test fixtures (+1 test)`. Upstream test "waits on promises" calls `promiseAString()` via window global. OCaml run_tests.ml registers these as NativeFns returning "foo"/"42" synchronously; JS runner had no equivalent. Added `globalThis.promiseAString = () => 'foo'` and `globalThis.promiseAnInt = () => 42` to hs-run-filtered.js. Suite hs-upstream-put: 37/38 → 38/38 (fully done). Smoke 0-195: 173/195 unchanged.