Skip to content

E1 design: how a background-originated mount names an MTS-resident program (#230) #246

Open

Description

@Huxpro

Design issue for #230's E1, opened per the gatekeeper ruling (#230 issuecomment-5465592015): "E1 is not 'add an op' … it is a wire-ABI renegotiation and gets its own design issue before any implementation PR." Sequenced last, after E2 (#243, #245) and E3.

This is the design, not a slice. No implementation PR should open against it until the three questions in §6 are answered.

1. What E1 needs, restated

mount-program-run asks the main thread to instantiate a resident compiled create for a keyed range the background rendered. The first-screen join needs no addressing at all — the main thread renders, so the applier holds the UniversalProgramPlan object and keys boundPrograms on it directly (packages/lynx/src/core/host-driver.ts:4352). Nothing crosses a realm, so nothing has to be named.

E1 inverts the direction, and the moment it does, the background has to say which program it means. That sentence is the whole issue.

2. What exists today — verified

Read off the source at 8938c1260, not restated from #230's readiness table:

fact where
The background compile never sees the program at all: if (state.universalRuntime?.thread !== 'main-thread') return null; — the caller then falls back to lynxTemplateObjectAst packages/octane/src/compiler/compile-universal.js:4233, caller at :4351
UniversalProgramPlan carries kind, slots, nodes, values, events, ranges, bind — no name, no index, no digest; bind is a function, so realm-local by construction packages/octane/src/universal-core.ts:308-338
The emitted program is a module-scoped const, registered nowhere. The MTS chunk has no name→program registry for anything to resolve against compile-universal.js:4268-4344, :4346-4360
mount-template-run's existing program field is a wire-carried descriptor the applier walks — the interpretation cost E1 exists to delete, not a reference to a resident program packages/lynx/src/core/protocol.ts:368

And the raw material for a key already exists, which #238 suspected and I can now name. allocPlan (compile-universal.js:2530) names each plan __octaneUniversalPlan<N> where N is state.plans.length at allocation — a positional name in walk order. Both compiles walk the same source in the same order, so plan.name agrees between them today. Two caveats, both load-bearing:

  • It is module-local. Every module has a __octaneUniversalPlan0. A cross-realm address needs module scope on top.
  • allocName (:2541) appends $ while state.source.includes(name) || state.names.has(name). Identical for both compiles of the same source — but that is a property of the two compiles seeing the same source and allocating the same set of plans, which is precisely what E1 must stop assuming and start checking.

One structural fact makes checking feasible. In an application build both threads are layers of one plugin configuration (packages/rspeedy-plugin-octane/src/plugin.js:109-117, and its own comment: "Both forms reach the same compile; only the application build has two threads to tell apart"). So a single build sees both compiles of the same module, and a cross-compile agreement check has somewhere to live. In an isolated thread: 'main-thread' graph it does not — see §6.3.

3. So E1 has three parts, not one

  1. A key the background can emit and send.
  2. A registry on the main thread that resolves the key to the resident program. This does not exist in any form today.
  3. A drift gate that makes a disagreement between the two compiles a build error. Without it, a mount binds to the wrong program and paints a plausible wrong tree — the worst failure shape in this codebase, and the same class as the unobserved-host reachability loss test: pin why the incremental compact path refuses a live segment (#230) #239 pinned.

4. Candidates

A — module-scoped positional key. Address = (module id, plan index). Raw material exists. Wire cost is two small integers per mount. Needs a stable module id both compiles agree on and a registry keyed by it.
Against: the key says nothing about what it points at, so (3) is entirely carried by the drift gate. Get the gate wrong and the failure is silent.

B — structural digest. Address = a hash over the derived wire (node types, parents, static props, slot map). Self-verifying: drift changes the digest, so a stale mount fails to resolve instead of resolving wrongly. Structurally identical programs collide, which is correct — they are the same program, and the collision is free deduplication.
Against: larger key on every mount; the digest must cover everything the emission depends on, and if the emission reads anything outside the wire, two programs can share a digest and differ. That would need proving, not asserting.

C — load-order handshake. The MTS chunk registers programs in load order; the background numbers them the same way; the wire carries only an index.
Against: cheapest wire, most brittle — any divergence in walk order silently binds the wrong program, so it needs a checksum anyway, at which point it is B with extra steps. Not recommended.

Recommendation: A for the wire, B for the build. Send the compact positional address; emit the structural digest into both chunks and fail the build when they disagree. That satisfies "drift is a build error" without paying digest bytes per mount, and it keeps the runtime resolution to one map lookup. It also matches the shape already used for the same-source derivation, where the agreement is established at build time and the runtime trusts it — the D3/D6 discipline: a check dies only where its obligation is proven, and the code says where.

5. What it costs

#163's byte-identity promise for the background chunk. The gate directly above #238's new tests — changes nothing outside the main-thread lynx compile — exists to keep the background chunk and universal bundle byte-identical across the backend switch. Any key emitted into the background compile breaks it by design. E1 must retire that gate deliberately and replace it with a narrower one (the background chunk changes by exactly the addressing, and nothing else), not delete it.

The two tests in #238 are the guard that makes this deliberate: they fail the moment the background learns the program exists. Keep #238 held until this design is ruled on — its value is that it cannot be widened quietly.

6. Open questions — these are the gate

  1. Which address shape, and is the A+B split above the right division of labour between wire and build?
  2. What is the module id? It has to be stable across the two compiles, stable across rebuilds, and not leak an absolute filesystem path into a shipped chunk. Content hash, package-relative path, and build-assigned index all have different failure modes under HMR and under parallel.
  3. What happens in an isolated thread: 'main-thread' graph, where the plugin has no second layer to cross-check against (plugin.js:113-117)? Options: refuse the addressing entirely there (safe, and consistent with "decline, never approximate"), or carry the digest at runtime and resolve by it. This is the one place where B's self-verification would earn its bytes.

7. Oracle, and the honest case against E1

Oracle stays #230's: create@1000 and create@10000 ≤ 1.0× upstream on the #39 protocol, same host, one physical run, order-controlled, with a same-window control per the amended protocol.

What E1 actually buys — labelled. It does not reduce host calls. Attribution on the E3 probe (#230 issuecomment-5467374723) prices a compact mount-template-run at 20 PAPI calls per row (7 creates, 4 setClasses, 2 setEvent, 7 insertBefore), and those are real work no addressing removes. Nor does it shorten the wire: for create the wire is already one mount-template-run command (#238, and Order 3's measurement). What it removes is the interpretation — the MTS applier walking a wire-carried template descriptor per row, replaced by the compiled create the first screen already gets.

That is worth stating as a hypothesis, not a verified mechanism: the #41 formal round found the create residual compresses from 1.449× to 1.193× when the JIT is removed, which says the residual is JIT-hostile behaviour rather than bytecode volume. Replacing interpreted descriptor-walking with a compiled create is aimed at exactly that class — fewer megamorphic sites, less short-lived allocation — but nothing here has measured it. On LepusNG the direction is better supported by the 150 ms vs 338 ms arm.

What would falsify E1 before it is built: an ablation that stubs the MTS descriptor walk out of a steady-state create and shows the create cell unmoved. That is cheaper than the ABI work and should run first. If the walk is not where the time is, E1 does not deserve the byte-identity promise it spends.

Activity

  1. Huxpro commented on Aug 30, 2026

    @Huxpro
    OwnerAuthor

    §8 — #242 Cause B folds in here: same question, one level down

    Per the ruling on #242 (issuecomment-5467072534): "Cause B (the scalar text slot
    kind) is an ABI change and belongs beside the E1 design issue — they are the same
    conversation about what the wire can name."
    Folding it in, with what changes in
    the design as a result. Design only; no code touched.

    The two questions line up exactly:

    asks
    E1 how does the background name a program?
    Cause B how does a plan name a slot kind the wire can carry?

    Both are one question — what vocabulary does the wire have — and answering
    either one badly produces the same failure shape: a mount that resolves to
    something plausible and wrong.

    8.1 Cause B is two halves with different owners

    The #242 attribution treats Cause B as one ABI change. It is not. It splits, and
    the halves have different costs, different owners, and — the point of this
    section — different relationships to E1.

    B1 — the compiler half: know at plan-build time that a hole is scalar.

    derive-main-thread-program.ts:62-65 states the blocker in the source:

    a plan the compiler produced cannot say it, because at the point the plan is
    built nobody knows the value is a string.

    But the author already knows, and already says so.
    docs/differences-from-react.md makes it a rule: "Dynamic text needs a cast,
    {expr as string}, unless the expression is provably a string. A bare {expr}
    is a renderable hole, not text."
    The distinction is in the source text. It is
    then thrown away — compile.js:20826 walks the AST replacing every TS-only
    wrapper with its inner expression before the single Program print, for a printing
    reason (esrap's tsx printer would otherwise emit expr as string into the .js
    output). And lynx-target-templates.test.ts:98-124 pins the consequence:
    {props.t as string} and {props.t} both lower to range-site kind 'r'.

    Read that test's stated reason carefully, because it is sound and narrower than
    it looks
    :

    a bare expression can evaluate to an array or a component just as a directive
    can, so all of them are ranges and none is a scalar.

    True of the bare hole, the conditional, and the keyed form. Not true of the
    cast form
    — as string is the author asserting scalar-ness, and the fixture's
    own props: { t: string } is what makes it check. So B1 is not weaken the
    invariant
    ; it is stop erasing the one form that already carries its proof. The
    pinning test gets narrowed, not deleted: three of its four cases keep 'r',
    and the cast case gets the new kind. That is a much smaller ask than #242's
    framing suggests.

    One honest caveat for the gate: as string is an assertion, not a proof — a
    lying cast type-checks, and a scalar text slot handed a non-string must degrade
    to a coercion or a refusal, never a wrong tree. Which of those, and where it is
    enforced, is a design question, not a detail.

    B2 — the ABI half: carry the new kind to the main thread.

    This is the part that is genuinely wire-ABI, and this is the part E1 touches.

    8.2 B1 alone already pays, on the path that matters most

    §1 of this issue says the first-screen join needs no addressing at all — the main
    thread renders, so the applier holds the plan object directly. Note two more
    facts on top of that:

    Therefore B1 alone folds the text on every main-thread-rendered first screen.
    That is the create path — the one carrying 70k → 40k papiCreateCalls, per-row
    PAPI 20 → 14, and the retained run.nodes arrays 7 → 4 that feed
    heapMts/heapMtsAfterClear. B2 is needed only for background-originated
    mounts.

    So Cause B does not split by layer alone. It splits by render origin, and the
    half that needs no ABI is the half aimed at the oracle.

    Labelled: this is a design reading of the two source facts above, not a
    measurement. It predicts that a B1-only change moves papiCreateCalls on a
    first-screen create and leaves a tap-triggered create unmoved. That prediction is
    cheap to falsify and should be run before B1 is scoped.

    8.3 The claim that would reorder things — and why I am not asserting it

    The tempting conclusion is: after E1, a mount carries a program address plus a
    positional values array, the resident compiled create holds the shape, and a
    scalar text slot becomes __SetAttribute(el, 'text', values[i]) instead of
    __SetAttribute(rawTextChild, 'text', values[i]) — entirely inside the emitted
    program, with no wire surface at all.
    On that reading E1 retires B2, and doing
    B2 first spends ABI vocabulary on a descriptor E1 then removes.

    I checked, and it does not hold as stated. The mount descriptor is not the
    only consumer of a slot kind. delta-protocol.ts v2 is the update wire for
    MTS-resident programs, and its Set opcode addresses a LynxSlotAddress {instance, slot} (:25, :43, :204, :278) — an update path that outlives
    the mount descriptor E1 replaces
    . If writing text in place is a different
    operation from writing a range member, the update wire needs to say which, no
    matter how the mount named its program.

    So the accurate statement is:

    • E1 subsumes B2 for the mount. ✅
    • E1 does not subsume B2 for the update. ❌ The Set op still needs to
      distinguish a scalar text write from a range write, or prove it does not have
      to.

    That second half is the real open question, and it is the one that decides whether
    Cause B is folded into E1 or merely sequenced after it. It is also exactly the
    question E3 is standing in front of (#230 issuecomment-5467374723 held E3 because
    the fix requires making a run's frozen values writable) — so B2, E1's
    addressing, and E3's update path are three views of one ABI, and should be ruled
    on together rather than one at a time.

    8.4 New gate question

    Added to §6:

    6.4 — Does the update wire need the scalar text kind independently of the
    mount?
    Concretely: can LynxDeltaOpcode.Set on a LynxSlotAddress write a
    scalar text slot without naming its kind — because the resident program already
    knows what slot n is and the opcode only supplies the value — or does the
    receiver need the kind on the wire to pick the write? If the former, B2 collapses
    into E1 and Cause B becomes "B1 now, B2 free later". If the latter, the scalar
    text kind is a first-class ABI addition that E1 does not pay for, and it must be
    designed alongside E1's addressing rather than assumed away by it.

    This is answerable by reading delta-protocol.ts's decoder and the block core's
    Set handler — no measurement, no implementation. It should be answered before
    either §6.1 or Cause B is scoped
    , because it is the difference between one ABI
    change and two.

    8.5 Unchanged by this fold


    Generated by Claude Code

  2. Huxpro commented on Aug 30, 2026

    @Huxpro
    OwnerAuthor

    Gatekeeper ruling on §6 — all three answered; one precondition added before any implementation

    §6.1 — Address shape: A+B approved as specced, with one tightening on B's coverage question. The digest must be computed over exactly the derived wire surface — the same bytes deriveLynxMainThreadProgram produces and proves. Derivation-by-execution is the existing proof that the emission reads nothing outside that surface, so "the digest covers everything the emission depends on" stops being an assertion and becomes a property the derivation already establishes. Digest lives in both chunks, compared at build; wire carries only the positional address; runtime resolution is one map lookup. Approved.

    §6.2 — Module id: package-relative path, normalized (posix separators, no leading ./), rooted at the owning package. The failure-mode comparison decides it: a content hash churns on every edit (kills HMR stability and makes the registry key ephemeral); a build-assigned index depends on graph traversal order, which parallel and incremental rebuilds do not promise; the package-relative path is stable across both compiles, both rebuild modes, and HMR, and it leaks nothing source maps don't already ship. It must be package-relative, never workspace-relative — a consuming application compiles our shipped sources from its own root, and the id has to agree between a monorepo build and a consumer build of the same file.

    §6.3 — Isolated thread: 'main-thread' graph: refuse the addressing. "Decline, never approximate" applies directly: a configuration that cannot cross-check at build time does not get a fast path whose safety is the cross-check. Isolated graphs keep descriptor mounts; the refusal diagnostic names the two-layer build as the way to earn E1. Carrying the digest at runtime for that one case would mean two resolution ABIs shipping forever to serve a configuration whose whole problem is that it can't prove agreement — B's bytes are not earned there, they're spent hoping.

    Precondition, elevated from §7 to a gate requirement: the falsification ablation runs before any implementation PR. Stub the MTS descriptor walk out of a steady-state create (same-window control, per the amended protocol) and show the create cell moves. If it doesn't move, E1 does not spend the #163 byte-identity promise, and the design stays filed as answered-but-dormant. If it moves, the measured delta becomes E1's budget line and the §5 gate-retirement (replace, not delete — the narrower "background chunk changes by exactly the addressing" gate) proceeds as written. #238 stays held either way until that narrower gate exists.

    Sequencing unchanged: after E2/E3, and the new retention-attribution Order runs beside, not inside, this.


    Generated by Claude Code

  3. Huxpro commented on Aug 31, 2026

    @Huxpro
    OwnerAuthor

    §6.4 answered — the update wire does not need the scalar text kind

    Desk work only: delta-protocol.ts, block-core.ts, host-driver.ts read at
    432c64859. No measurement, no implementation, nothing touched.

    The answer is the first branch — the resident program already knows what slot
    n is, and the opcode only supplies the value.
    But the question's premise has
    to be corrected first, because the correction is most of the finding.

    There is no Set handler to read

    §6.4 says the question is answerable "by reading delta-protocol.ts's decoder and
    the block core's Set handler". The decoder exists. The handler does not.

    • grep -rn "case 'set'\|op === 'set'" packages/lynx/src returns one hit, and
      it is inside delta-protocol.ts's own encoder.
    • delta-protocol.ts's only consumer anywhere in packages/lynx/src is
      delta-shadow.ts — the producer-side shadow that decides whether an update
      could be expressed as a delta and declines when it could not.

    Nothing decodes a SET and writes it to a tree. The v2 protocol is a designed and
    tested encoding that no applier has yet adopted.

    And that is deliberate, stated in the source (block-core.ts:12-21):

    UniversalHostBatch already carries the whole vocabulary the Block model needs:
    mount-template-run is RUN, update is SET, move is MOVE,
    remove/destroy is REMOVE, visibility is VIS. The v2 delta protocol
    (delta-protocol.ts) is a compact encoding of that vocabulary, not new
    applier capability.

    So the live update path is op: 'update' host commands, and SET is that op's
    compact spelling. The question therefore has to be asked of the update path,
    which is what actually runs.

    What the receiver resolves on its own

    compileLynxBlockTemplate (block-core.ts:86-163) builds two tables from
    node.bindings, and its own doc comment names their purpose: "which host node in
    the run owns each value slot, and which prop that slot writes"
    .

    • valueNodes[slot] → the host node index
    • valueNames[slot] → the prop name

    write() (:597-656) then does exactly one thing with a slot index:

    props[template.valueNames[slot]!] = block.values[slot];
    … emit({ op: 'update', id: block.firstId + nodeIndex, props })
    

    The prop name — the thing that is the kind — is resolved receiver-side from the
    compiled template. It never crosses the wire, and there is nowhere on the wire it
    could.
    LynxSetDelta is (instance, slot, value); the decoder pins
    arity !== 3.

    The precedent that settles it

    There is already a slot whose kind changes the write, and it is carried exactly
    this way. mainThreadValues[slot] marks worklet slots, computed at compile time
    from binding.name.startsWith('main-thread:') (:124-128). It changes both
    halves of the write:

    • what may be written — a worklet slot on #text/raw-text is a compile-time
      refusal (:120-123);
    • how "unchanged" is decided — sameLynxUniversalHostPropValue instead of
      Object.is, because the compiler rebuilds the descriptor every render so
      identity is never true (:615-625).

    That is precisely the shape §6.4 feared for scalar text — a slot kind that selects
    a different write — and it ships today with zero wire surface. The wire was
    never the place kinds live.

    So: B2 collapses into E1, and most of it evaporates

    A scalar text slot is a binding { valueIndex, name: 'text' } on a text host.
    valueNames[slot] === 'text', and the generic write path above handles it with no
    new opcode, no new field, no arity change, and no receiver dispatch.

    Cause B is therefore "B1 now, B2 free later", per §8.4's first branch — and
    "free" is stronger than that phrasing suggested: B2 is not deferred ABI work, it is
    absent ABI work. What remains is real but is not wire:

    where it lives
    writing a scalar text slot's value nowhere new — existing update path ✅
    declaring slot n is a scalar text slot plan level (B1); reaches the MTS program by derivation, no wire change, per §8.2
    the applier accepting a text prop on a text host Cause A (#250) — hostProps.text gains 'text'; base today has it only on raw-text (config.ts:95-102)

    The third row is a live dependency, not a detail: on new-lynx today a text prop
    on a text host is not accepted, so the write path above would have nothing to
    write until #250 lands.

    E3's blocker is also receiver-local — verified

    #230 issuecomment-5467374723 held E3 because the fix requires making a run's frozen
    values writable. That is real: host-driver.ts:6957-6959 freezes on adoption
    (Object.isFrozen(command.values) ? … : Object.freeze(command.values.slice())),
    and :814 types it readonly.

    But it is a main-thread data-structure problem, entirely inside the applier.
    Unfreezing a run's values touches no wire field and needs nothing from E1's
    addressing. E3 was sequenced behind this question; on this reading the ABI half of
    that dependency is discharged.

    The verdict §6.4 was asked for

    One ABI, not two — and the slot-write half of it needs no new wire vocabulary at
    all.
    E1's addressing (§6.1–6.3, now ruled) answers how a mount names a program.
    Nothing in B2 or E3 adds a second negotiation on top: kinds are compiled into the
    program both sides already agree on, which is the same build-time-agreement
    discipline §6.1's A+B split rests on.

    Labelled, per #230

    Verified (read at 432c64859): no SET applier exists; the block core emits
    update commands by design; valueNodes/valueNames resolve slot → (node, prop)
    receiver-side; mainThreadValues is an existing receiver-side kind marker with no
    wire field; run values are frozen on adoption; hostProps.text lacks 'text' on
    base.

    Hypothesis (design reading, not measured or built): that a scalar text slot
    lands as a name: 'text' binding and needs nothing further. It follows from Cause
    A's shape, but Cause A is unmerged, so this is the reading that #250 landing would
    confirm.

    What would falsify it: a scalar text write that cannot be expressed as a prop on
    its owning host — e.g. if folding required addressing the carrier rather than the
    text node, the slot's owner would differ from its host and valueNodes would no
    longer answer "which node owns slot n". #250's hostCount 2-vs-3 assertion is the
    existing evidence against that, since the folded arm has no carrier to address.

    Does this change the sequence?

    No for the train; it narrows two items and unblocks one. E2 → E3 → E1 stands.

    • E3 loses its ABI dependency. Its remaining blocker (unfreezing a run's
      values) is receiver-local and does not wait on E1.
    • Cause B stops being a first-class ABI addition. B1 is compiler work; B2 is
      not work.
    • E1 is unaffected — §6.1–6.3's addressing answers a different question, and
      nothing here spends or saves any of its byte-identity budget.

    The falsification ablation the ruling elevated to a gate is untouched by this and
    still runs before any E1 implementation.


    Generated by Claude Code

  4. Huxpro commented on Aug 31, 2026

    @Huxpro
    OwnerAuthor

    §7's falsifier ran. The create cell is unmoved. E1 is answered-but-dormant.

    §7 set the condition and asked for it first:

    What would falsify E1 before it is built: an ablation that stubs the MTS descriptor walk out of a steady-state create and shows the create cell unmoved. That is cheaper than the ABI work and should run first. If the walk is not where the time is, E1 does not deserve the byte-identity promise it spends.

    It ran. The walk is not where the time is.

    Instrument, procedure and recorded evidence: #263 and docs/measurement/e1-descriptor-walk-ablation.md.

    Does this change the sequence

    Yes. It removes E1 from it. E1 stops before the ABI work, and §6's three questions stay answered-in-design and unbuilt.

    What was ablated, and why it is a fair stub

    First, reconnaissance, because §7's premise had to be checked before it could be tested. A steady-state create click in the browser is served entirely by the dense applier — census at 1,000 rows reads denseRuns 1, denseRows 1000, denseHosts 6000, slowRuns 0. So the walk §7 names is the dense apply loop, and the slow path's per-host record and prop-bag construction is already skipped in product. Worth noting because the in-process run.mjs harness takes the slow applier; had the ablation been built there it would have measured the wrong code.

    Two constraints make the stub fair, and both are load-bearing:

    It must be work-preserving at the host boundary. §7 is explicit that E1 "does not reduce host calls" — 20 PAPI calls per row are "real work no addressing removes", and what E1 removes is interpretation. A stub that also removed host calls would inflate the delta and greenlight E1 on a number E1 could never collect. Verified: 19,001 calls at 1,000 rows and 190,001 at 10,000, identical between control and ablation, in both windows, with the harness's own counts agree across builds column green for every cell.

    It must be at least as generous as E1. The falsifier is decisive in one direction only: a stub that removes less than E1 and shows nothing has proved nothing. So the arm resolves the descriptor tables once per node ahead of the row loop and issues host calls straight from flat slots — strictly more than E1 buys, since E1 still has to address a node before it can act on it. Two arms bracket it:

    arm removes keeps
    conservative the walk, resolved once per node applyProps for nodes the fast slots cannot describe
    aggressive the walk and the constant creation patches, so applyProps is never reached nothing

    The aggressive arm reports its own coverage rather than asserting it, via a fallbackProps counter incremented wherever it still has to call applyProps. In the browser it reads ablatedRuns 1, fallbackProps 0 — the walk is entirely gone — with the paint oracle still passing (1,000 rows, both boundary labels, classCount 1000).

    Result

    Control cell octane-mts-program, ablation cell octane-mts-program-control, un-probed control build, create window:

    arm reps scale control ablation delta perm p 95% CI
    conservative 5 1,000 138.9 137.6 −0.90% 0.762 [−6.2%, +4.0%]
    conservative 5 10,000 1141.5 1130.1 −1.59% 0.516 [−5.7%, +2.4%]
    aggressive 11 1,000 137.2 139.4 +2.73% 0.290 [−1.6%, +7.6%]
    aggressive 11 10,000 1127.1 1127.3 −0.20% 0.932 [−4.4%, +4.0%]

    Medians in ms; delta, p and CI on the means. The arm that removes the walk completely moves the create cell by −0.20% at 10,000 rows, and at 1,000 rows it is slower than the control.

    One near-miss worth recording, because it would have inverted the verdict

    The instrumented builds show a win the un-probed build does not, and it grows with probe weight — at 10,000 rows: −0.20% (p=0.932) in control, −2.37% (p=0.084) in counts, −4.83% (p=0.002) in timed. Reported from the timed build alone this reads as a significant 4.8% win and greenlights the ABI work.

    It is an artifact. Work the arm removes is a fixed quantity and cannot know how heavily the probe is instrumenting; a delta that scales with the probe is coupled to the probe. The per-stage split confirms it: of the aggressive arm's −51.9 ms in timed at 10,000 rows, −18.7 ms lands inside the papi_* host buckets and −6.4 ms in start_delay — buckets timing identical calls with identical arguments, which this arm provably cannot change. Only −17.3 ms lands in off_boundary, the one bucket the walk occupies, against an off_boundary spread of 91.2 ms. At 1,000 rows the same decomposition runs the other way (+5.6 ms in the host buckets, −2.8 ms in off_boundary).

    Movement not localized to the bucket the removed code occupies, flipping sign between scales, is drift. This is now written down in the measurement doc so the next reader does not quote the timed number.

    Resolution, stated rather than hidden

    These windows bound the walk's share of the steady-state create cell at under about 4% at 95% (10,000 rows, 11 reps), point estimate 0.2%. They do not resolve a 1% effect and I am not claiming they do. The verdict rests on the bound, not on the point estimate.

    The bound is decisive anyway, because of where the oracle already sits. In the c247-o1 window — same-window, so the ratio is licensed even though its absolutes do not compare to the ablation windows — create reads 1.063× upstream at 1,000 rows and 0.935× at 10,000. §7's oracle is ≤ 1.0×, and at 10,000 rows the create cell is already past it. E1 would be spending a wire-ABI renegotiation, a name→program registry that does not exist in any form today, and a build-time drift gate whose failure mode §3 calls "the worst failure shape in this codebase" — to chase at most ~4% of a cell that is already at or past its target.

    Consequence for #238

    §5 said: "Keep #238 held until this design is ruled on — its value is that it cannot be widened quietly." This is the ruling, so the hold is released. #238 needs no narrowing: the byte-identity gate for the background chunk stays exactly as written, because nothing is now going to emit an address into the background compile. The narrowed gate §5 contemplated is not needed and should not be built.

    Not falsified by this

    • The mechanism hypothesis itself. §7 labelled the JIT-hostility reading a hypothesis; this ablation does not test it. It tests only whether the descriptor walk is where the steady-state create's time is. It is not.
    • Cause B/B2, which were out of scope for this measurement.
    • The first-screen path. The compiled main-thread program serves the first screen and is unaffected by any of this; §1's observation that the first-screen join needs no addressing at all still stands, and that path keeps its compiled create.
    • LepusNG. Everything above is the web host. The 150 ms vs 338 ms arm §7 cites is a different engine, and a walk that costs nothing under V8 may not cost nothing there. If E1 is ever revived, that is the ground to revive it on — and this same ablation is the cheap test to run there first.

    Status

    E1 → answered-but-dormant. The design in §1–§6 is sound and stays on the record; it is the justification in §7 that did not survive its own test. Reviving it needs new evidence that the interpretation cost is real on the host in question — and §7 already specifies the experiment that would produce it.

    CI is still wedged, so #263 carries no check run.


    Generated by Claude Code

  5. added a commit that references this issue on Aug 31, 2026
  6. Huxpro commented on Aug 31, 2026

    @Huxpro
    OwnerAuthor

    Owner directive — E1 archive rescinded; build it to completion

    Two corrections to the #263 verdict's scope, then a change of operating mode.

    Why the archive was too broad

    1. The ablation bounded one of E1's four cost segments, not E1. The stub removed the MTS-apply descriptor interpretation only. BTS-side construction of ~20 command objects per row, the per-row wire bytes, and the MTS decode + per-command validation + dispatch loop were identical in both arms — the ablation has zero resolution on them. The create residual: attribute it, tax-test it, then extend compiled programs to steady-state mounts (E-train) #230's own Order 2 (the validation-forced-trusted A/B), which was sequenced before E1 precisely to price that third segment, has never run.
    2. It is a V8 verdict, and E1's target engine has no JIT. The walk's <4% share is what a JIT makes of a hot interpretation loop. On LepusNG the program-drive vs command-stream comparison is already measured: 150 ms vs 338 ms. perf(bench): run #246 §7's falsification ablation on the MTS descriptor walk #263 does not and cannot touch that number. This line exists for the device; the web lane is a development mirror.

    The first-principles case for compiled programs — the entire block-core line — stands on the device data. We stop measuring permission to build and build.

    The directive

    Implement E1 (mount-program-run) in full, plus B2 (the scalar text slot kind) as the same ABI change. No falsification preconditions, no mid-implementation ruling round-trips, no performance oracle gating the merge. Every design question this issue raised is already ruled and is not to be re-litigated:

    • §6.1 address: A+B — positional (module id, plan index) + build-time digest over exactly the derived-wire surface, digest compared at build, wire carries only the address.
    • §6.2 module id: package-relative normalized path (posix separators, no leading ./).
    • §6.3 isolated thread: 'main-thread' graphs: refuse the addressing; descriptor mounts remain; diagnostic names the two-layer build.
    • §8/§6.4: B2 rides E1's ABI. The Set path follows whatever the receiver-side slot-kind answer already established; where the spec is silent, follow the first-screen precedent (D1 piecewise id layout, boundPrograms cache, announcement-run event minting) and note the choice in the PR body instead of stopping to ask.
    • Shapes the op cannot carry (heterogeneous rows, non-program row plans) keep the command stream — decline, never approximate, unchanged.
    • test: pin what a background-originated program mount cannot name (#230 E1) #238's two pinning tests convert per the §5 plan (replace with the narrower background-chunk gate), as part of this work, not before it.

    What still gates the merge — correctness only: both-arms parity (a range mounted via mount-program-run produces a tree byte-identical to the command-stream mount, events and ids included), the refusal paths, and the repo's ordinary suites. What does not gate it: any web-lane wall-clock number. The absence of a V8 win is expected and is not a blocker; the performance verdict comes at the end, from the device round, which will run the full comparison and regression pass against the finished implementation. Label any interim numbers as indicative, and keep building.

    Deliver as draft PRs on new-lynx for gating, per the standing flow. The gate will review for correctness, not for proof-of-speedup.


    Generated by Claude Code

  7. Huxpro commented on Sep 2, 2026

    @Huxpro
    OwnerAuthor

    Acceptance amendment — a differential alone is not the gate

    Adopted from the #272 finding: an A==B differential is structurally blind to a break that moves both arms together. The concrete proof — a ? null → ? '' mutation in the shared patch body, on a condition both arms satisfy, survived the full 19-scene × 2-spelling × 8-refusal differential matrix and 800 lynx tests, and only two direct assertions (create answers null for a never-present attribute; shared-patch object identity) turned it red.

    E1's acceptance is exactly such a differential (compiled arm == interpreted arm), so its checklist gains a clause:

    1. Differential parity stands as written — addressed mount vs command-stream mount, byte-identical trees, ids, events.
    2. Plus direct invariant assertions on everything the two arms share: constants of the shared body, refusal messages, and any value both arms derive from the same code path. A shared-code defect must have at least one oracle that does not route through the comparison.
    3. Shape requirement, promoted from advice to acceptance: the compiled arm enters the same body as the interpreted arm wherever host semantics are decided (the planLynxHostPropPatch discipline — one body, two entries, previous-side as a constant). A parallel body demotes byte-identity from a structural guarantee to a permanent maintenance obligation and is a review finding, not a style preference.

    Two protocol notes ride along, adopted campaign-wide: every quoted millisecond figure names its method (ablation / interleaved / best-min) and single-run ablations are orderings, never effect sizes or budget baselines; and the "relocation is not a cut" rule (work moved rather than removed does not purchase the ordering change it requires) is a pre-filter for future cut proposals. Branch naming is ruled: the type-prefixed topic branch wins over the harness-assigned name — label-pr.yml reads the type from it.


    Generated by Claude Code

  8. added a commit that references this issue on Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-authoredenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions