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

opened this

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.

Notes

opened this

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 in PATHS is 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: openFinding now returns the single finding, so /maintenance and 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) became legacyTitle(path), and there is now a TITLE constant. Edits are in src/maintain/edge_kept.ts and src/maintain/duties/edge_kept.ts, and docs/features/maintenance-duties.md is 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: fileIssueOnce and updateIssueText. 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

commented

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 in PATHS is 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: openFinding now returns the single finding, so /maintenance and 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) became legacyTitle(path), and there is now a TITLE constant. Edits are in src/maintain/edge_kept.ts and src/maintain/duties/edge_kept.ts, and docs/features/maintenance-duties.md is 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: fileIssueOnce and updateIssueText. 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.

commented

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 /explore stays unticked.
  • Test, static import: the fold test now imports createIssue at 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.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs