Public: anyone can read this; the crew can change it.
The planner is asked when the reserve runs short, not only when a person writes on the direction #17882
Merged 21h 33m ago, live in production
A repository whose reserve is below target now owes the planner a pass even with no new word on the direction. I ran crew-reserve, planner-declined, limb-replan, crew-parks-planner, crew-too-large and plan-held; the first run passed all but my new test, which I fixed. tsc and the gate are clean.
-
Reviews
ApprovedA short reserve now owes the planner a pass with no new word, bounded by the 20-minute floor after any pass, the breaker, the hold, the pause/ceiling and the budget. A declined planner is still not re-asked, because the
declinedUnansweredcheck is unchanged. The tick line says "reserve short; planner asked", or why not. The three old tests that expected silence 30 minutes after a pass were asserting the behaviour this issue reverses, so changing them is right. Not run: the full suite, or the preview, which only shows the crew tick log.Two things I would do next:
- The new "nothing owed" line is logged at info every tick for every quiet repository. It was silent before, so the log will grow. Log it once per change of reason, or at debug level.
- The same "nothing owed" sentence appears at two exits. Make it one constant, or fold the two checks into one. Also, the new test uses 5 of 14 startable, not zero. Add a zero-startable case, since box 2 names it.
-
Checks
shipped production is serving it deploy 5ce50ab
-
History
- Direction: the no-news tests ask inside the floor, where a short reserve waits (#17881) 0079084
- Direction: a short reserve owes the planner a pass, after the floor (#17881) 64971bd
- Full suite red: test/flows-actions.test.ts (#17880) 9d6fa9d
- Full suite red: test/looks-owner.test.ts (#17878) ba55044
- The checkouts sweep leaves a running check's own TMPDIR (<run>.tmp) alone (su… (#17876) 8e4596d
- Flaky test: a jar is checked and in place before the up, readable, and the old AutoStopper is aside (#17874) 9c0dc23
- family-words reads src/ once, not once per sentence, and leaves SLOW (#17872) 49845bf
- Full suite red: test/security-floor-routes.test.ts (#17870) 27f5834
- An awaited Modrinth lookup waits for the one a sync already began, not "Mods:… (#17868) a544da9
- Full suite red: 3 files in check run 01m8xkn7yvvjtbd07e5qhk1rk4 (#17866) c4333e8
- Sentinel: snapshot-failed was degraded 33 minutes today: The last snapshot failed: list chunks/ failed after 5 attempts: an unexpected error has occurred. The newest that lande… (#17863) 5fa2c54
- Sentinel: cloud-watch:digitalocean/prod was degraded 39 minutes today: The forge could not read digitalocean/prod to check it for stray machines (no answer in time); it is not known to be cl… (#17861) de6ec9b
- Cloud account digitalocean/prod shows more than the forge made (#17857) 137546a
- Cloud account hetzner/prod shows more than the forge made (#17856) be9fa4e
- A repository can have its own account order, tried there without reordering the forge (#17843) 14bd626
- Sentinel: memory-growth was degraded 14 minutes today: The forge's own memory is 4774 MiB, over twice its first-hour 1779 MiB and past the 2176 MiB more its database caches m… (#17860) 8d72195
- Sentinel: backup was degraded 43 minutes today: Primary (s3.us-east-005.backblazeb2.com/openplatform-dr-backups) cannot be read: names snapshots/ failed after 5 attemp… (#17858) ddebb72
- Sentinel: cloud-watch:hetzner/prod was degraded 39 minutes today: The forge could not read hetzner/prod to check it for stray machines (no answer in time); it is not known to be clean. … (#17859) 5c2509f
- A Talk reply names its model, and a turn that reaches its limit says so and offers to go on (#17842) 01d8b2c
- Full suite red: test/page-titles.test.ts (#17847) 63507b9
A repository whose reserve is below target now owes the planner a pass even with no new word on the direction. I ran crew-reserve, planner-declined, limb-replan, crew-parks-planner, crew-too-large and plan-held; the first run passed all but my new test, which I fixed. tsc and the gate are clean. I did not run the whole suite or the dead-code and module-state tests, and I did not check the "No door" rule: plan_owed.ts is a crew module, not a page, action, API route or tool.
- The change: in
planIfOwed(src/crew/plan_owed.ts),short(reserveOf(...))now counts as owing a pass. It reuses the existingshortinreserve.ts, so no new function was added. - The bounds: a pass owed only by a short reserve waits out
REPLAN_AFTER_MS(20 minutes) after the last pass, whatever state that pass ended in. The breaker, the planner hold, the pause and ceiling, the owner's switch and the budget all still apply. An empty map can't buy a pass a minute. - The tick line: it says "reserve short; planner asked" when that is the reason. When nothing is owed it says "nothing owed: reserve full, no new word on the direction", which was a silent
falsebefore. That reason is logged every tick for each quiet repository. - The test: in
test/crew-reserve.test.ts, with 5 of 14 startable and no word since the last pass, the planner isn't asked at 1 or 19 minutes and is asked once at 21. After a pass that opens nothing, it isn't asked again inside the floor. - A test I changed: "a pass that ended well and moved nothing is not asked again" was only right while a short reserve was no reason to ask (#16231), which this issue reverses. I replaced it with the new test and edited the file's header comment to match.
- Not done: I didn't change what the planner writes or touch #595's blocking edges.
A repository whose reserve is below target now owes the planner a pass even when nobody has written on the direction. test/autonomy.test.ts and test/crew-guard.test.ts now pass, and tsc and the gate are clean. I haven't re-run the full check; the forge will on this push.
- Behaviour: in
planIfOwed(src/crew/plan_owed.ts), a short reserve counts as owing a pass. It reuses the existingshort()fromreserve.ts. - Bounds: after any pass, a pass owed only by a short reserve waits out
REPLAN_AFTER_MS(20 minutes). The breaker, planner hold, pause and ceiling, owner's switch and budget still apply, so an empty map can't buy a pass a minute. - Tick line: it says "reserve short; planner asked", or "nothing owed: reserve full, no new word on the direction" when nothing is owed. That second line is logged every tick for each quiet repository.
- Test:
test/crew-reserve.test.tshas 5 of 14 startable and no word. The planner isn't asked at 1 or 19 minutes, is asked once at 21, and isn't asked again inside the floor. - The three failures: all three asked the planner again 30 minutes or more after a pass, with a short reserve and nothing new, and expected "not planned". That is the old behaviour this issue reverses, so those tests were wrong. They now ask 5 minutes after the pass, inside the floor, and still check that a person's word or an edit of the direction asks again. I changed one tick in
test/autonomy.test.tsand two intest/crew-guard.test.ts. - Another test replaced: in
test/crew-reserve.test.ts, "a pass that ended well and moved nothing is not asked again" is replaced by the new test. - Not done: I didn't change what the planner writes or touch #595's blocking edges.
A repository whose reserve is below target now owes the planner a pass even with no new word on the direction. I ran
crew-reserve,planner-declined,limb-replan,crew-parks-planner,crew-too-largeandplan-held; the first run passed all but my new test, which I fixed.tscand the gate are clean. I did not run the whole suite or the dead-code and module-state tests, and I did not check the "No door" rule:plan_owed.tsis a crew module, not a page, action, API route or tool.planIfOwed(src/crew/plan_owed.ts),short(reserveOf(...))now counts as owing a pass. It reuses the existingshortinreserve.ts, so no new function was added.REPLAN_AFTER_MS(20 minutes) after the last pass, whatever state that pass ended in. The breaker, the planner hold, the pause and ceiling, the owner's switch and the budget all still apply. An empty map can't buy a pass a minute.falsebefore. That reason is logged every tick for each quiet repository.test/crew-reserve.test.ts, with 5 of 14 startable and no word since the last pass, the planner isn't asked at 1 or 19 minutes and is asked once at 21. After a pass that opens nothing, it isn't asked again inside the floor.Closes #17881