Skip to content

refactor(runtime): records for modules refused at boot; HeaderTables owner - #985

Merged
m-dwyer merged 1 commit into
mainfrom
refactor/module-records-complete
Dec 5, 2026
Merged

m-dwyer merged 1 commit into
mainfrom
refactor/module-records-complete

Conversation

@m-dwyer

@m-dwyer m-dwyer commented Dec 5, 2026

Copy link
Copy Markdown
Collaborator

Part A step 3, last PR (5+6 of the design). Limit still 8; no reflash.

  • Image-less records: a selected module refused at boot gets a record-only arena block (created in one pass after the boot loop, so no holes form between long-lived blocks), holding its outcome and reason (generated RECORD_REFUSAL_BYTES = 26, size asserted). A later live load into its slot allocates its block, enrolls it, then frees the image-less one.
  • Survivor fields: outcome/reason for modules move to the record. sel_of_rec, log_name and processor jobs stay in fixed columns (read after take-down / a job outlives release), and provider outcomes stay a Session column (read after free); each reason is documented in its owner.
  • HeaderTables owner (loader/header_tables.rs) for the loader's header-table copy; arena backing deferred (not straightforward).
  • The capacity device test reads the refused count from the boot report times the generated record size.

Sizes: package text +2,032 B, rodata −261, bss −280.
Boot snapshot (approved by Em): the two errors scenarios gain the two 64-byte image-less records; normal dn2/dt2 boots unchanged.

Proof: unit and assembly tests (image-less create/replace, outcome after refusal, HeaderTables reload check); core/runtime:test-assembly (69 ok); mise run test; mise run test:changed; affected static gate. Device: reload, missing, service-reload, capacity, runtime-refusal (dn2/dt2), memaudit full set dn2, safe-mode, boot-restart.

🤖 Generated with Claude Code

…owner

A selected module refused at boot gets an image-less record (record only, created in one
pass after the boot loop so no holes form), holding its outcome and reason (refusal 26 B).
Fields read after take-down (sel_of_rec, log_name, processor jobs) and provider outcomes
stay in fixed columns, each with the reason in its owner. Loader tables move to a
HeaderTables owner. The capacity test reads the refused count from the boot report times
the generated record size. Boot snapshot: the errors scenarios gain the two 64-byte
image-less records (approved); normal boots unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@m-dwyer
m-dwyer merged commit c84d9cc into main Dec 5, 2026
2 checks passed
@m-dwyer
m-dwyer deleted the refactor/module-records-complete branch December 5, 2026 08:12
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