Skip to content

chore(lynx-table): a retention arm, and what the ART table is counting - #222

Merged
Huxpro merged 1 commit into
new-lynxfrom
chore/lynx-art-retention-probe
Aug 27, 2026
Merged

Huxpro merged 1 commit into
new-lynxfrom
chore/lynx-art-retention-probe

Conversation

@Huxpro

@Huxpro Huxpro commented Aug 27, 2026

Copy link
Copy Markdown
Owner

Summary

Issue #215 D4 says to measure which retention drives the ART global reference
table before designing a release point — our maps, the created arrays, or the
PAPI-layer wrappers. This is that probe. No product source changes, and no
fix: D4's own text says the probe comes first.

Nothing in benchmarks/lynx-table can answer the question directly. Every cell
runs through @lynx-js/web-core in Chromium, which has no JNI and no reference
table. What this adds is the arithmetic that makes the device experiment cheap,
the candidates it eliminates on paper, and the one arm that separates the rest.

Why

Two of the three candidates are already gone, for two different reasons.

Our maps were removed by the slices below this one. After #163 C20 and #215
D1–D3, a program's mount writes no per-node map entry at all: ownedNodes takes
none, nativeEvents takes none, and the per-ID map is null unless the runs
overlap. Exactly one JavaScript reference per created element is left — the
array the create returned.

The rate is fixed by counting. The bench row is 7 created elements and 20 PAPI
calls; the chrome is 42 elements and 125 calls. #194 recorded the program cell's
own __FlushElementTree.callsBefore as [20124] in all five 1k samples, one
call from this shape's prediction of 20,125 — two independent derivations of the
same tree. The table is then exactly full at 7,308 rows, and round 1's crash
landed at ~114 s where the 1k rate puts 7,308 rows at ~93 s: 1.23 entries per
created element, within this ladder's scaling. Charged per element created, not
per entry in anything we keep.

Which leaves the created array and the engine's own registration, and every
number above is equally consistent with either.

Changes

  • benchmarks/lynx-table/prototype/build.mjs: --retain none writes an arm
    whose only difference is the two deleted slot-table pushes — identical PAPI
    call multiset, 0 retained wrappers per row instead of 2. The dynamic path is
    a pure non-edit, so the floor cell every published octane-direct number was
    measured on stays byte-identical. Create-only by construction (with an empty
    slot table every delta op addresses undefined), so --rows is required and
    the empty-table build is refused.
  • benchmarks/lynx-table/README.md §9: the element budget, the two readings of
    round 1's crash time, what they eliminate, the three-point arm table with both
    predictions written out, and the device protocol — ART table dump first,
    threshold bisection second, arms third.
  • benchmarks/lynx-table/prototype/README.md: the arm's non-claims, in the
    place that says which outputs are cells and which are not.

The decisive arm is none: if it still aborts at ~7,300 rows, no release point
anywhere in Octane can fix this, D4's premise is wrong, and the lever is
creating fewer retained handles or #162.

Validation

  • pnpm format:files:check on all three changed files
  • pnpm sync — clean, no generated diff
  • Both arms built and painted at 200 rows through the existing harness
    (smoke.mjs --fcp): dynamic and retain-none each report
    ok fcp rows visible, which is the arm's whole functional contract.
  • The two arms' lepusCode.root differ on exactly one line, verified by
    diffing the built bundles.
  • n/a pnpm typecheck — no TypeScript changed.
  • n/a pnpm test — no product source and no test changed; the repo-wide gate is
    reported on the PR below this one.

Risk / follow-ups

  • This probe has not been run. No device cell ran from this container, so
    The mount ledger, redesigned: adoption bookkeeping as preprinted tables instead of per-node handwriting (#163 D-train) #215's oracle stays open and every prediction in §9 is arithmetic. The
    threshold, the entries-per-element rate and the arm comparison are all
    falsifiable and all unrun.
  • One reading of Device measurement round 1: the four questions the web windows cannot answer (#163 clause 4) #194 I could not settle from the record. Round 1 says "the
    direct-self diagnostic program is 5/5 native crash" at 10k. I read that as the
    octane program cell built with the direct self-time diagnostic, because
    callsBefore=[20124] matches that cell's shape exactly — not as the
    octane-direct prototype, which retains 2 wrappers per row rather than 7 and
    would change which candidate the crash points at. Worth a one-line
    confirmation from whoever ran it.
  • The template cell surviving 10k is not evidence against retention: it
    retains more per element than the program cell and it also never finished, so
    it may never have reached 51,200 elements inside the 180 s cutoff. §9 marks
    that trap rather than spending it.

Provenance

  • An agent produced this diff (agent-authored)

Generated by Claude Code

Issue #215 D4 asks which retention drives the ART global reference table
that killed the program cell at 10,000 rows: our maps, the created
arrays, or the PAPI-layer wrappers. Nothing in this benchmark can answer
that — every cell runs through web-core in Chromium, which has no JNI —
so this is the arithmetic that makes the device experiment cheap and the
one arm that separates the candidates it cannot eliminate on paper.

The arithmetic eliminates two of the three. A program's mount writes no
per-node map entry at all after C20 and D1-D3, so "our maps" is already
gone; and the element budget (7 per row, cross-checked against #194's own
recorded call count for the cell) puts the table exactly full at ~7,308
rows, which round 1's crash time independently reproduces to within 25%.
That says the table is charged about one entry per element created, which
the created array and the engine's own registration explain equally well.

`--retain none` is what separates them: the same PAPI call multiset with
the two slot-table pushes deleted, so the arm varies how many created
wrappers JavaScript holds and nothing else. If it still aborts at ~7,300
rows, no release point in Octane can fix this and D4's premise is wrong.

Create-only by construction, and documented as a probe rather than a
cell: with an empty slot table every delta op addresses `undefined`. The
`dynamic` arm is a pure non-edit, so the floor cell every published
octane-direct number was measured on stays byte-identical.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_019RsC3U39kUuLKajZANeTVy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant