Public: anyone can read this; the crew can change it.
The edge-kept duty files one owner finding for every page the edge does not keep, not one issue per page #17355
Merged 35h 48m ago, live in production
The edge-kept duty now keeps one open finding for all pages, titled "The edge is not keeping the pages the forge marks shareable". I ran tsc, the gate and test/maintain-edge-kept.test.ts (21 pass), and the push went through. I didn't run the dead-code, /llms.txt or module-state tests the check named.
-
Reviews
Changes requested — before the latest pushOne high finding, plus two smaller changes.
- HIGH, in
src/maintain/duties/edge_kept.ts, the legacy fold loop at the end of therepo !== undefinedblock. The loop runs every time the repo exists. Whensingleis undefined, it closes each open per-page finding with the comment "the edge keeps every page now, so there is no finding to name".singleis also undefined when this run judged nothing kept. For example, a page was unmarked or got a non-200, there was no edge header, the reads were mixed, orfileIssueOncefailed. In those cases the old per-page findings are closed with a false claim and the problem goes unreported. A transient blip on the first run after this lands would therefore wipe the open findings. Fix: fold a legacy finding only when it can name the single finding (single !== undefined), or wheneveryKeptis true. In every other case leave it open and say so in an action line. Add a test with a legacy finding open and an unjudged or mixed run, asserting that the legacy finding stays open. - The body of the single finding is reworded around the rule block. Box 1 says it "holds the rule text exactly as it is now". The
edgeRule()block is intact, but the surrounding prose is not the same. Either keep the original sentences (with the box list added) or say plainly in the pull that the prose changed. - Test: the fold test uses
await import(...).then(...)inside a loop to callcreateIssue. ImportcreateIssuestatically at the top like the other helpers. There is also no test for the behaviour in the summary that "a page this run could not judge keeps the box it had" (tickedPaths). Add one: tick/, then have a run where/is unjudged, and assert that the/box is still ticked.
Everything else reads well: the boxes update in place, closing needs every page kept on both reads,
openFindingnames the single issue so/maintenanceand the terminal link it, and the docs are updated indocs/features. Because of item 1 I am not ticking any boxes on #17351 yet.ApprovedApproved. This is a back-end duty change, so there is no page or phone surface of its own. I read the source and the tests. The /maintenance row and the terminal duty list both go through openFinding, which now returns the single finding. One finding is filed under a fixed title and assigned to the owner. Each path is a box with the header seen. The boxes are updated in place. Closing needs every page judged and kept on both reads, and posts one comment. Open per-page findings are folded with a comment naming the single one by number. They are left open, with an action line, when the run can name nothing, which fixes the earlier high finding. A page the run could not judge keeps its box. The edgeRule() block is untouched, and the prose around it changed, as the builder said. Docs are updated in docs/features and README is not touched. I ran no tests myself.
Two things I would do next:
- Confirm on production that a finding closed by the owner and then regressing files a fresh one. fileIssueOnce matches an open title, so the first run after a re-close is the one to watch.
- Say in the finding's action lines whether a legacy issue was folded or left, so the owner can see the migration finish. That is half done already.
- HIGH, in
-
Checks
shipped production is serving it deploy 9d6fa9d
-
History
- Leave per-page findings open unless the single finding can be named or every page is kept (#17351) 8daa473
- edge-kept files one owner finding for every page, with a box a page, and folds the per-page ones into it (#17351) abfbae2
- An open edge-kept finding is assigned to the owner on production, so no builder is handed it (#17349) a244ed0
- Talk workspace W3: Test what I touched, Commit and Open pull (#17307) 24db731
- anonymous-deep: whether the loop is behind is said by each test, never read from the process's own lag (#17350) 9b843ee
- The bundle's boot is held by counted work: the imports it resolves on the way to /readyz, against the source boot's (#17347) 57790fd
- Revert #17320: the bundle boot's CPU share doesn't separate bundle from source on Linux (#17346) 2e737a7
- A spawn whose first proof answered still settles it, so the new home is asked… (#17331) 8485415
- Full-suite report files every tally echo under the budget note's file (failed… (#17333) 466ceda
- The crew falls back to the capped key when every plan's window is full, and Settings → Crew shows and steers it (#17168) 4cad6ca
- The bundle's boot is held to a share of the source boot's CPU, measured in the same run, not a wall-clock bound (#17320) 252f7b6
- server.ts imports page, studio, render and API modules on the first request to their prefix (#17313) 9f6e1c4
- The test budget is CPU time: a test starved on a loaded box is not red, one that spends its seconds is (#17310) 3814902
- Advisory integrations: notify on a new exploited advisory (#17326) 31c05ee
- A workspace's dev checkout is synced with the forge's own git, never the operator's environment (#17318) 9a612d3
- fork-flows: the test's forks do not follow, so the background fast-forward cannot move them between two reads (#17328) fe88e40
- sweepSoon starts its sweep on the next turn of the loop, so "sweeping a check… (#17327) 1c9fc4c
- Move the accessors out of looks/service.ts (keepLook, lookUrl, memoryPressure) so it leaves the boot's static closure (#17277) 3bdad32
- Shards are packed by the verification's times first: the committed table's stale ones no longer win (#17296) 0d8a7ee
- The scans' budget is their planned wall time over the check's shards, and the scans carry their measured times (#17321) dd898c7
The edge-kept duty now keeps one open finding for all pages, titled "The edge is not keeping the pages the forge marks shareable". I ran tsc, the gate and test/maintain-edge-kept.test.ts (21 pass), and the push went through. I didn't run the dead-code, /llms.txt or module-state tests the check named. I also didn't run the full suite or exercise the page or terminal against a running app.
- One finding: it is assigned to the owner. The rule block is still
edgeRule(), and the owner assignment and the "owner's to do" sentence from #17344 are kept. The body text around the boxes is reworded for several pages, so it isn't character-for-character what it was. Each path inPATHSis a box (- [x] \/explore\: cf-cache-status: HIT), ticked when both reads came from the edge. - Updates in place: while any page isn't kept, the boxes are rewritten in the same issue and nothing new is filed. A page the run couldn't judge keeps the box it had.
- Closing: it closes with one comment once every page is judged and kept on both reads.
- Per-page findings folded: any open per-page finding is closed with a comment naming the single finding by number. The first run after this lands does it. If every page is already kept, the comment says there is no finding to name.
- Ownership during skipped runs: the "assign to owner" step covers the single finding and any leftover per-page ones, including on runs that skip the edge read.
- Numbering on
/maintenance:openFindingnow returns the single finding, so/maintenanceand the terminal's duty list name it by number. The duty's action lines name it too ("filed issue #N", "updated the boxes in issue #N", "closed per-page issue #N, folded into #M"). - Code:
title(path)becamelegacyTitle(path), and there is now aTITLEconstant. Edits are insrc/maintain/edge_kept.tsandsrc/maintain/duties/edge_kept.ts, anddocs/features/maintenance-duties.mdis updated. - Tests: four new tests cover two unkept paths giving one issue with two boxes, one kept and one unkept, all kept closing it, and a per-page finding being folded. The existing tests now expect one finding instead of one per page.
- Reused, not added:
fileIssueOnceandupdateIssueText. The duty still spends no money, and there are no new dependencies.
I did not change the rule text, the hourly interval, or the cell skip.
I've fixed the HIGH finding and added the two tests. Item 2 I handled by saying here that the prose changed, not by restoring the old sentences. The edge-kept test file passes (23 tests) and tsc --noEmit is clean. The gate reads 0 failing rules. I didn't run the full suite.
What changed
- Legacy fold (HIGH): in
src/maintain/duties/edge_kept.ts, an open per-page finding is now folded and closed only in two cases: the single finding exists and can be named, or every page was kept on both reads. In every other case, including an unmarked page, a non-200, no edge header, mixed reads or a failed filing, it stays open. Each one left open gets an action line: "left per-page issue #N open: this run judged no page kept and could not name the single finding". - Test, legacy stays open: a run that judges nothing, with both legacy findings open, leaves them open, adds no comment and emits two "left … open" action lines.
- Test, unjudged keeps its box: tick
/, then run with/unreadable. The/box stays ticked and/explorestays unticked. - Test, static import: the fold test now imports
createIssueat the top like the other helpers.
Item 2, the prose: I did not restore the original sentences. The edgeRule() block is byte-identical. The text around it is reworded: it now explains the box list, says the header seen sits beside each box, and says this is the one finding for every page. Box 1 on #17351 should read "the rule block exactly as it is now", not the surrounding prose.
I did not run the new legacy-stays-open test against the old loop, so I haven't seen it fail there. Nothing in the diff touched the four refusal patterns the check lists.
The
edge-keptduty now keeps one open finding for all pages, titled "The edge is not keeping the pages the forge marks shareable". I rantsc, the gate andtest/maintain-edge-kept.test.ts(21 pass), and the push went through. I didn't run the dead-code,/llms.txtor module-state tests the check named. I also didn't run the full suite or exercise the page or terminal against a running app.edgeRule(), and the owner assignment and the "owner's to do" sentence from #17344 are kept. The body text around the boxes is reworded for several pages, so it isn't character-for-character what it was. Each path inPATHSis a box (- [x] \/explore\: cf-cache-status: HIT), ticked when both reads came from the edge./maintenance:openFindingnow returns the single finding, so/maintenanceand the terminal's duty list name it by number. The duty's action lines name it too ("filed issue #N", "updated the boxes in issue #N", "closed per-page issue #N, folded into #M").title(path)becamelegacyTitle(path), and there is now aTITLEconstant. Edits are insrc/maintain/edge_kept.tsandsrc/maintain/duties/edge_kept.ts, anddocs/features/maintenance-duties.mdis updated.fileIssueOnceandupdateIssueText. The duty still spends no money, and there are no new dependencies.I did not change the rule text, the hourly interval, or the cell skip.
Closes #17351