Skip to content

perf(lynx): retain initial list program proofs - #312

Merged
Huxpro merged 3 commits into
new-lynxfrom
huxcx/m3-list-program-producer-ack-193
Sep 8, 2026
Merged

Huxpro merged 3 commits into
new-lynxfrom
huxcx/m3-list-program-producer-ack-193

Conversation

@Huxpro

@Huxpro Huxpro commented Sep 8, 2026

Copy link
Copy Markdown
Owner

Summary

  • retain initial-batch compiler proof when main painted no first tree and negotiated addressed program runs
  • promote eligible native-list row proofs into deferred addressed declarations, keeping one dense declaration per component-owned cell so logical ID gaps are never claimed
  • validate a full acknowledgement against the deferred wire semantics main actually accepted; the corrected harness no longer invents public handles for unmaterialized rows
  • preserve the expanded prepared batch as the fallback whenever address, placement, value, listener, or list-root proof is incomplete

This is the producer/transport prerequisite for #193's compiled-cell consumer and is part of #290. It does not claim a standalone cell-execution speedup.

The production Native probe found and closed a real protocol defect before this PR: the first candidate reached the list but later failed with OL079 (acknowledgement omits created handle 4) because background validated the eager prepared batch after main accepted deferred declarations. The fixed stacked end-to-end candidate completed 20/20 fresh pages and 40/40 steady windows without that fault.

The stacked producer+consumer Native gate used 10 baseline and 10 candidate fresh pages in five B/C/C/B pairs. Every retained page measured exactly 9 fresh cells and 0 recycles at 35°C / thermal status 0. Callback wall moved from 3.678 to 2.589 ms/cell (0.704x), and framework wall from 0.911 to 0.500 ms/cell (0.549x); all five pairs were same-direction. That performance belongs to the follow-up consumer PR, not this producer slice.

Validation

  • focused protocol/deferred/universal tests: 4 files, 277 tests
  • source-only pnpm typecheck:files for the changed published modules
  • explicit pnpm format:files:check for all changed files
  • pnpm sync
  • production core-switch controls passed; exact-head block+program is 176,786 encoded gzip bytes
  • fixed Native cold receipt: aa22f1f071d951fec08c6ce9c3363ba423df8d84a2bee5421fa37bca0ae192bb
  • fixed Native steady receipt: 3fdc3abf30441ab8790a1bd1812ff0f8b23bbd858e427a2d69bef342e663d371

Risk / fallback

  • the new producer rung is one-shot and only follows an explicit addressedProgramRuns readiness grant
  • only a list-item program root may become deferred; ordinary template placement remains unchanged
  • any incomplete proof returns the original expanded batch
  • eager addressed-program compaction and compact acknowledgements still validate against the original prepared batch

Part of #193 and #290.

Provenance

  • An agent produced this diff (agent-authored)

Enable safe deferred addressed native-list program declarations after asynchronous readiness, including the matching background acknowledgement semantics.

@Huxpro
Huxpro marked this pull request as ready for review September 8, 2026 20:30
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