Skip to content

Retain actual admission scheduling observations in tick receipts - #60

Merged
nybarius merged 2 commits into
mainfrom
work/predecessor-reland-check-20260930
Oct 21, 2026
Merged

nybarius merged 2 commits into
mainfrom
work/predecessor-reland-check-20260930

Conversation

@nybarius

Copy link
Copy Markdown
Owner

Problem

A tick already observes admission capacity, priority-command results, and a refill-stop reason. These values disappear from both the saved last_tick and svrf.tick/1 receipt. An operator inspecting the completed tick therefore cannot distinguish an observed zero from an unread capacity, determine which priority read was used, or receive the declared-read barrier that stopped refill.

Change

Copy admission_capacity, admission_priority, and refill_stopped from the actual final tick summary into both existing persistence surfaces when the fields are present. Unobserved dictionaries keep their exact reasons; fields that were never observed remain absent. These are the last values retained in the summary, not an invented sequence of intermediate refill reads. No additional command, scheduling decision, gate, or schema-version change is introduced.

Validation

Test-only commit 14132043ee17b9c0688568fdd15e230c0a6c733d was pushed first. Against unchanged runtime, the six new real-tick regression cases produced five failing cases (14 missing-field subtest failures) and one passing absence control. They cover capacity plus priority, zero capacity, unread capacity, unread priority, the declared-read refill barrier, and unconfigured fields.

Production-only commit 9473c152550d029668010915b2f563190bcd1134, tree 85fe3281a921c39bb9d66a3face2019663eca0e0, passes the original make test: all 461 tests in 22.414 seconds. All 180 tracked files match their exact before/after identities; every original test and fake is preserved. Full raw test-log SHA256: 5a0bf47189c154e43e41d0793e47b8d8b55246b1479acca928aa2d803a18605c.

An independent source and execution review verified that only save and _write_tick_receipt changed and all 38 other daemon function ASTs remain exact. Original proof and container CI remain required; lake and docker are unavailable locally. Actual deployed observations remain unobserved until the existing deployment owner installs a qualified release.

This is the single continuation on the existing owner branch after #59 merged.

Exercise real ticks for capacity, priority and declared-refill observations. Preserve zero, unread and absent cases distinctly in both durable receipt surfaces.
Persist the final capacity, priority and refill-stop observations in both
last_tick and svrf.tick/1 when the original summary contains them. Keep
unread observations distinct from zero or absence. This adds no reads or
scheduling decisions.

The six regression cases were committed and run before this change. The
unchanged full Python command now passes all 461 tests.
@nybarius
nybarius merged commit 5dc36e5 into main Oct 21, 2026
8 checks passed
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