Read the quota meter with --full so landing and the reset notice see percentUsed on quota-axi 0.1.55 #39

Merged
john merged 2 commits from fm/fm-quota-axi-full into main 2026-09-30 22:45:50 +00:00
Owner

Story: PYR0D-338 follow-up - quota-axi 0.1.55 needs --full for percentUsed

quota-axi 0.1.55 renders only resetsAt and percentRemaining in its lean --json window. percentUsed appears only under --full. bin/fm-land.sh (the quota-ceiling landing) and bin/fm-quota-reset-sentinel.sh (the reset notice) read percentUsed, so on the installed version both silently saw no meter.

  • Both now read quota-axi --full --json. This is the fix the live home has carried as a local edit, now upstreamed, so the home can fast-forward onto the PR 38 merge without discarding it.
  • No other caller in bin/ reads percentUsed from lean --json.
  • Tests fake quota-axi 0.1.55's lean and full renders, and prove the lean-only read is unreadable (used=- resets=-) while --full restores the percentage and reset ETA.

Validation: the no-mistakes pipeline passed at d216ccd2.

**Story:** PYR0D-338 follow-up - quota-axi 0.1.55 needs `--full` for percentUsed quota-axi 0.1.55 renders only `resetsAt` and `percentRemaining` in its lean `--json` window. `percentUsed` appears only under `--full`. `bin/fm-land.sh` (the quota-ceiling landing) and `bin/fm-quota-reset-sentinel.sh` (the reset notice) read `percentUsed`, so on the installed version both silently saw no meter. - Both now read `quota-axi --full --json`. This is the fix the live home has carried as a local edit, now upstreamed, so the home can fast-forward onto the PR 38 merge without discarding it. - No other caller in `bin/` reads `percentUsed` from lean `--json`. - Tests fake quota-axi 0.1.55's lean and full renders, and prove the lean-only read is unreadable (`used=- resets=-`) while `--full` restores the percentage and reset ETA. Validation: the no-mistakes pipeline passed at `d216ccd2`.
quota-axi 0.1.55 demotes percentUsed out of the lean --json render, leaving
only resetsAt and percentRemaining. fm-land.sh and fm-quota-reset-sentinel.sh
read percentUsed, so on that version the landing record lost its meter and the
reset sentinel never saw the window reset. Both now call quota-axi --full --json.

No other bin/ caller reads percentUsed: fm-dispatch-resolve.sh,
fm-procevent-quota.sh and fm-quota-choose.sh read effectivePercentRemaining,
which the lean render keeps.

The land and sentinel test fakes now render like 0.1.55 (percentUsed only under
--full) and match --json anywhere in argv, so a lean read fails the suites and
the wedged-meter tests still exercise the hang. A new case in each suite pins a
lean payload as an unreadable meter and the --full payload as a good read.
no-mistakes(document): Update sentinel audit comment to quota-axi --full --json
All checks were successful
CI / Test coverage guard (pull_request) Successful in 32s
CI / Lint 1 (pull_request) Successful in 24m24s
CI / Behavior portable parallel 1 (pull_request) Successful in 17m34s
CI / Behavior portable parallel 2 (pull_request) Successful in 15m9s
CI / Lint 2 (pull_request) Successful in 23m59s
CI / Behavior portable serial 2 (pull_request) Successful in 15m47s
CI / Behavior portable serial 4 (pull_request) Successful in 14m21s
CI / Behavior portable serial 1 (pull_request) Successful in 20m17s
CI / Behavior portable serial 3 (pull_request) Successful in 17m2s
CI / Behavior portable serial 6 (pull_request) Successful in 15m59s
CI / Behavior portable serial 7 (pull_request) Successful in 16m20s
CI / Behavior portable serial 8 (pull_request) Successful in 16m5s
CI / Repo invariants (pull_request) Successful in 7s
CI / Behavior portable serial 5 (pull_request) Successful in 26m22s
CI / Behavior tests (Herdr) (pull_request) Successful in 13m19s
CI / Behavior portable serial 9 (pull_request) Successful in 24m33s
d216ccd21e
john merged commit dd6476eca0 into main 2026-09-30 22:45:50 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
john/firstmate!39
No description provided.