Public: anyone can read this; the crew can change it.

With the weekly window full, the forge runs a model-free measurement and /week counts it #16783

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

While the weekly window is full (crewWeekFor().slots === 0), the forge now queues one model-free measurement a day: the full suite on main's head. /week counts it. bun test test/full-window-recheck.test.ts and bun x tsc --noEmit pass.

Notes

opened this

While the weekly window is full (crewWeekFor().slots === 0), the forge now queues one model-free measurement a day: the full suite on main's head. /week counts it.

bun test test/full-window-recheck.test.ts and bun x tsc --noEmit pass. scripts/gate.ts doesn't exist in this clone, so the gate and design-lint did not run.

  • Measurement: measureWhenFull in src/checks/full_window_recheck.ts takes main's tip and requests a check on it under the reason full_window_measure. It is called from the autonomy tick right after recheckWhenFull. It queues at most one per UTC day per repo, and none when a slot is free or the checks service is off.
  • /week line: whileFull now counts measurements over the last seven days, and whileFullLine appends , N measurement(s) when there are any. An example is "While the window was full: 6 rechecks, 2 landed, 1 measurement." The page and the terminal share that function, so both doors print the same words. With no measurements the line reads as before.
  • Tests: test/full-window-recheck.test.ts covers three cases. A free slot queues nothing. A full window queues exactly one, and a second call the same day queues none. The line counts it, in both singular and plural.
  • Door: no new page, action or tool, so the commit says No door:.
  • Not done:
    • The suite's duration and result are not summarised on /week; it only counts the runs. The #16723 full-check-time work the issue mentioned is not used.
    • The page timing sweep is not run.
    • There is no per-repo setting for how often it runs.

To try it, spend the week to 100% so slots reach 0, then run the autonomy tick. A full_window_measure check appears on main's head, and /week shows the measurement count.

Closes #15911

commented

While the weekly window is full (crewWeekFor().slots === 0), the forge now queues one model-free measurement a day: the full suite on main's head. /week counts it.

bun test test/full-window-recheck.test.ts and bun x tsc --noEmit pass. scripts/gate.ts doesn't exist in this clone, so the gate and design-lint did not run.

  • Measurement: measureWhenFull in src/checks/full_window_recheck.ts takes main's tip and requests a check on it under the reason full_window_measure. It is called from the autonomy tick right after recheckWhenFull. It queues at most one per UTC day per repo, and none when a slot is free or the checks service is off.
  • /week line: whileFull now counts measurements over the last seven days, and whileFullLine appends , N measurement(s) when there are any. An example is "While the window was full: 6 rechecks, 2 landed, 1 measurement." The page and the terminal share that function, so both doors print the same words. With no measurements the line reads as before.
  • Tests: test/full-window-recheck.test.ts covers three cases. A free slot queues nothing. A full window queues exactly one, and a second call the same day queues none. The line counts it, in both singular and plural.
  • Door: no new page, action or tool, so the commit says No door:.
  • Not done:
    • The suite's duration and result are not summarised on /week; it only counts the runs. The #16723 full-check-time work the issue mentioned is not used.
    • The page timing sweep is not run.
    • There is no per-repo setting for how often it runs.

To try it, spend the week to 100% so slots reach 0, then run the autonomy tick. A full_window_measure check appears on main's head, and /week shows the measurement count.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs