Skip to content

fix(lynx): decline addressed runs for runtime ranges - #279

Merged
Huxpro merged 2 commits into
new-lynxfrom
fix/lynx-first-screen-tap-275
Sep 4, 2026
Merged

Huxpro merged 2 commits into
new-lynxfrom
fix/lynx-first-screen-tap-275

Conversation

@Huxpro

@Huxpro Huxpro commented Sep 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • fixes fix(lynx): first-screen taps never reach handlers on real-device LepusNG #275 by refusing E1 addresses for compiled main-thread programs that retain runtime ranges
  • keeps the compiled first-screen create path, but sends a descriptor for later background mounts when runtime text can change the wire node/value arity
  • preserves strict protocol validation instead of weakening the dynamic-value arity invariant

Verified root cause: the LepusNG native event reached lynxCoreInject.tt.publishEvent, resolved the first-tree token, reached the background listener, and scheduled the create. The rejected version-2 commit carried 3,000 values for 1,000 rows; the background producer program had arity 3, while the resident main-thread wire had arity 1 because two unproved text holes remained compiled-create ranges.

This changes timing: yes. The dynamic commit now reaches and applies on main instead of entering pre-ACK rejection/retry. It does not claim an E1 win for this range-bearing row program.

Validation

  • targeted formatting check
  • tsgo --noEmit -p packages/octane/tsconfig.json
  • Octane project suite: 8,381 passed; one unrelated HMR timeout, then the exact timed-out case passed alone
  • targeted compiler tests: 23 passed
  • Rspack main-thread program build tests: 5 passed
  • Rspeedy plugin tests: 25 passed
  • pnpm sync
  • red/green regression: without the range eligibility gate, the benchmark-shaped test exposes a resident wire and address; with the gate it emits neither
  • LepusNG aries_10 clean production bundle: first-screen Create 1,000 tap paints rows
  • LepusNG instrumented boundary: version 2 is one mount-template-run, count 1,000, descriptor present; ACK is compact-v1 for 6,000 hosts

The full pnpm --filter octane test command is not a valid root invocation in this repository and produced path-doubled fixture ENOENT failures. Re-running through the root Vitest project exercised the suite correctly with the one flaky timeout noted above.

Risk / follow-ups

Range-bearing programs now pay the existing descriptor bytes on background mounts. Range-free programs remain addressable and retain mount-program-run. Deciding whether the benchmark source should prove scalar text, or whether E1 should grow a range-aware resident representation, is deliberately left to follow-up performance work.

Provenance

  • An agent produced this diff (agent-authored)

The spec comment on UniversalProgramPlan.wire said only "present in an
addressing build"; the range-eligibility gate added a second condition
the public type's documentation has to carry, since comments here are
the design spec and a binding author reads them as the contract.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YHfFsy9CLaRovTFH8pTGyY
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.

2 participants