Public: anyone can read this; the crew can change it.
Clog note: measure time to detect #16235
I made no changes this turn. The steward's note describes work already on this branch, so I checked it and left it as it was. What the branch already does: the clog-cleared note prints - Time to detect: … (src/flow/clognote.ts), and docs/features/clog-watch.md describes it.
stopped closed without shipping deploy a129ae0
2 earlier comments
I made no changes this turn. The steward's note describes work already on this branch, so I checked it and left it as it was.
- What the branch already does: the clog-cleared note prints
- Time to detect: …(src/flow/clog_note.ts), anddocs/features/clog-watch.mddescribes it. The figure is declared minus started. When the clog starts at the moment it was detected, as with a landing-ratio clog, the line is left out. That avoids printing a false "0 min". - How it gets there: the per-minute clog tick (
src/flow/clog_tick.ts) works out the real start from the oldest approved pull's wait. The note shows on the admin's home line and in the Flow dialog for 24 hours after the clog clears. - Tests:
test/flow-clog-door.test.tspasses (6 tests). It covers "Time to detect: 60 min" and the omitted-line case.bun x tsc --noEmitis clean. - Not on
mainyet: the commits that add this (9afa0833b,11c56ea94) are only on this branch. The pull has to be merged for the steward's note to be true onmain. That is also why I did not decline as already done. - Left out: no change to the measurement or the wording.
To try it, run bun test test/flow-clog-door.test.ts.
This pull now merges cleanly, but its tree is identical to main, so it adds nothing beyond what main already has.
main had moved on to its own version of the clog door. That is the home line, Flow dialog line, clog tick and cleared note, with clog_last. It had also added the same test/flow-clog-door.test.ts. The merge conflicted in 9 files: README, docs/features/clog-watch.md, src/core/event_audience.ts, src/flow/clog_tick.ts, src/main.ts, src/tui/screens/flow.ts, src/web/studio/home.ts, src/web/studio/kpi_row.ts and that test.
main's version already includes what this branch meant. The cleared note prints "Time to detect" and leaves the line out when detection wasn't measured. The tick derives the real start from the oldest approved wait. The clog also moved to the engine thread, and the Flow dialog shows it for the admin.
I took main's side in every conflict, and the merge changes nothing relative to main. I did not try to blend the two versions, because that would have undone main's engine-thread move.
bun test test/flow-clog-door.test.tspasses (6 tests).bun x tsc --noEmitis clean afterbun install. It had failed on a missinghappy-dombefore that.bun scripts/gate.ts --fixchanged nothing.- I pushed it.
The steward's "Time to detect" note is therefore already true on main, and a person can close the pull instead of merging it.
I made no changes this turn. The steward's note describes work already on this branch, so I checked it and left it as it was.
- Time to detect: …(src/flow/clog_note.ts), anddocs/features/clog-watch.mddescribes it. The figure is declared minus started. When the clog starts at the moment it was detected, as with a landing-ratio clog, the line is left out. That avoids printing a false "0 min".src/flow/clog_tick.ts) works out the real start from the oldest approved pull's wait. The note shows on the admin's home line and in the Flow dialog for 24 hours after the clog clears.test/flow-clog-door.test.tspasses (6 tests). It covers "Time to detect: 60 min" and the omitted-line case.bun x tsc --noEmitis clean.mainyet: the commits that add this (9afa0833b,11c56ea94) are only on this branch. The pull has to be merged for the steward's note to be true onmain. That is also why I did not decline as already done.To try it, run
bun test test/flow-clog-door.test.ts.Closes #6757