Skip to content

fix(check-max-frame): stable keys, lane-scoped reports, baseline the latent frames - #4857

Merged
jerry73204 merged 1 commit into
mainfrom
fix/b34-max-frame
Nov 25, 2026
Merged

jerry73204 merged 1 commit into
mainfrom
fix/b34-max-frame

Conversation

@jerry73204

Copy link
Copy Markdown
Collaborator

Release blocker B34: tier-2 run 45533259451 failed check::max-frame with 20 frames over 4,096 B. Three causes, each fixed:

Stable keys. v0 symbols carry an impl-block index (Ms<n>_/Xs<n>_) and back-reference byte offsets (B<n>_) that move when unrelated code moves. The baseline key now drops both, so a renamed or shifted impl keys alike (9 false alarms). Two different functions of one image landing on one key are refused, naming both. Stored keys are normalised on read; a collision keeps the max (two existing pairs, each one function seen in two builds).

Scope by membership. The self-hosted runner's workspace persists, so the check judged reports from other lanes' builds. It now reads the fixture stamp's lane=/coord= lines and skips a report only when every manifest row owning its root is outside the lane, using the manifest's own row_artifact_root/west_build_name/row_in_coords. Unattributable or shared roots are checked (fail closed). No stamp, or lane=all, checks everything. Skipped residue is listed with a count. Not mtime: an in-lane image that was current is not relinked.

Latent frames. Real frames that predated the baseline but were in no build it read: baselined via --write-baseline --merge from a local lane=tier2-nightly build (8 added, 14 raised by 8-120 B). Issue 2968 lists each with cause and fix. Board-entry frames are baselined rather than frame_allowed: they inline the board's own boot code beside the user closure, so an allow would exempt our frames too.

Self-test: 31 checks, both scope directions; each new check mutation-tested. Local scoped run: 90 reports judged, 0 residue, OK. just ci gate green at this head.

Changelog: none (gate fix).

🤖 Generated with Claude Code

https://claude.ai/code/session_01U3R52X4DfDAyDddVqRgrXC

…latent frames

Release blocker B34. Tier 2 (run-matrix 45533259451, 939ac84) passed every
cell and then failed `check::max-frame` on 20 frames over the 4,096 B cap. Not
caused by #4844: that change only moves `nros build`'s two arm calls into one
helper and arms the census `take`, which builds the NATIVE host image, while
max-frame reads 32-bit ARM reports alone.

Three causes, three changes:

- Keys. The baseline keyed a function by its raw v0 symbol minus crate hashes.
  An impl block's index in its module (`Ms<n>_`) and back-reference offsets
  (`B<n>_`) move with unrelated code, so 9 of the 20 were baseline rows under
  another spelling (declare_parameter_overridden `Msl_` -> `Msn_`, the same
  8,720 B). `stable_name` now drops both; stored keys are normalised on read.
  Two different symbols of ONE image under one key are refused, naming both,
  so the key never merges two functions. Self-tests: a renamed impl keys
  alike, a new frame under a fresh name still fails, a clash is refused,
  the key is idempotent; each mutation-tested.
- Scope. The check read every report on disk, and the self-hosted runner's
  workspace persists, so it judged builds tier 2 never makes. It now judges
  the reports of the rows in the lane the fixture-build stamp names, by
  MEMBERSHIP through the fixture manifest's own functions (row_coord,
  row_artifact_root, west_build_name, row_in_coords), never by mtime (an
  in-lane image left current is not relinked). A report proven to belong only
  to out-of-lane rows is skipped and listed with a count; an unattributable
  one is checked; a missing stamp or `lane=all` checks everything. Self-tests
  in both directions, mutation-tested.
- Latent frames. The rest are real nros frames the baseline never saw (none of
  their functions changed since it was written). Baselined with
  `--write-baseline --merge` over a local `build-test-fixtures
  lane=tier2-nightly` on host 175 at this base: 8 rows added
  (install_in_with_launch_params x5 for param_five_node,
  register_lifecycle_services_named 8,120 B, Executor::pass 4,512 B,
  register_action_client_raw 6,888 B), 14 raised by 8-120 B (the FreeRTOS
  board entries, run_bare, a create_entity closure; param_five_node's
  app_task_entry_runtime to 7,072 B). Two old rows now share a key; each pair
  is one function seen in two builds (create_client_trampoline,
  ensure_parameter_store), and the larger size stays. Issue 2968 lists every
  row to shrink, with the measured cause of the lifecycle one (the state
  machine is built on the stack; out-of-lining the per-service helpers only
  reached 8,112 B). The board entries are not frame_allow'd: they inline the
  board's own boot code beside the user's closure, so an allow would exempt
  nros frames too.

Scoped check on that build: 90 reports judged, 0 residue, OK.

Changelog: none

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01U3R52X4DfDAyDddVqRgrXC
@jerry73204
jerry73204 marked this pull request as ready for review November 25, 2026 09:30
@jerry73204
jerry73204 added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit 0b770ed Nov 25, 2026
33 checks passed
@jerry73204
jerry73204 deleted the fix/b34-max-frame branch November 25, 2026 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant