Public: anyone can read this; the crew can change it.
An edge-kept finding hands the owner the exact edge cache rule to paste, on the issue and on /maintenance #17054
Check · Review · Land · Live done — Landed and live in production.
The edge-kept finding now carries the edge cache rule as one copyable block, and the duty closes its own finding once the rule is in. src/maintain/edgekept.ts, src/maintain/duties/edgekept.ts and test/maintain-edge-kept.test.ts pass 18 tests, plus the related maintenance duty tests.
-
Reviews
Changes requested — before the latest pushThe rule block, the self-closing and the docs are right. Two things stop it landing.
First, and most important: the /maintenance link and the terminal's
open findingtext have no test. OnlyopenFinding()is tested. The<a href="/owner/name/issues/N">in the row and the; open finding owner/name#Nsuffix indutyLinescould be deleted and every test would stay green. Issue box 2 is the link, so add a page test and a terminal test. The page test should render /maintenance as an admin with an open finding and expect the link, and expect no link once the finding is closed. The terminal test should do the same throughdutyLines.Second, there are now two ways to find the open finding. The duty runs its own
SELECT ... title = ? AND state = 'open'andopenFindingruns another with the same text. Put one helper insrc/maintain/edge_kept.tsthat takes a db, a repo and a path, and use it in both places.Smaller points: a finding with a link must be reachable by a signed-in admin only, which holds because the page is admin-only, so I make no change there. Please confirm that
data-filed="link"is a known hook in the design system, or drop it. Runbun scripts/design-lint.ts; the pull says it did not complete.Boxes 1, 3, 4 and 5 are met. Box 2 is half met: the action line says
kept, but the link is untested.ApprovedBoth earlier asks are met in b8d1dcbb0:
findingForis now the one open-finding query, used by the duty's close step and byopenFinding(the /maintenance link and the terminal suffix); and a test signs in as admin and checks the page link anddutyLines, with and without an open finding. The link is a plain<a>inside the existing duty row, so it works with JavaScript off, adds no new page, and the terminal shows the same text. The how-to is in docs/features/maintenance-duties.md, not the README. Next two things I would do: (1) Non-blocking: say in the closing comment which of the two reads carried which header if they differ, so the owner sees what the edge did. (2) Non-blocking: show the link on /maintenance as its owndlrow only when it is open, so it does not lengthen the duty detail line on a 360px phone. -
Checks
shipped production is serving it deploy c1c75da
-
History
- edge-kept: one findingFor helper for the duty and the link; tests that /maintenance and the terminal link the open finding and drop it once closed (#17016) b8d1dcb
- Try: open /maintenance as an admin; the edge-kept row links to the open finding, whose body holds the edge rule block 5ce0efc
- Rewrap a comment for the gate (#17016) e825a90
- edge-kept: the finding holds the edge rule as one block built from EDGE_VARY, links from /maintenance, and closes itself when both reads are kept (#17016) e0b31b9
- /flow shows the merge queue against its targets: pull check p50 under 8 min, main's full check under 30 min, 60 landed an hour, 90% of queue gates green (#17018) f6b58d2
- The loopback-only look is proved somewhere: run it where a cell exists, since Landlock-held runners skip it (#17003) 9ee4e3b
- A game box says why it is up but not playing: installs wait out apt's lock, a missing tool is reported, the boot reports itself (#17013) 88c0c58
- A hosted forge's database and git stream to its snapshot bucket every five minutes, and a restore from the stream boots and matches (#16983) 6dd030a
- An edge-kept finding goes to the owner as an assigned issue, so no builder is handed a fix that lives outside the repository (#17027) df949fc
- Moving a forge to another machine is copy, start, flip the router — and a test kills a machine (#16989) 95fb1bc
- Every panel says what it counts: a one-line description, and visitors can leave out the app's own people (#16960) 4763996
- Sentinel: queue:check is past its budget: 13 checks wait for 8 slots, 7 busy; the oldest since 06:21; the longest running is #16844 at 46 min (limit 60). (#17005) 76338bc
- A forge on a migrated, empty data directory is ready in under 1.5 s, so the real rolls leave the SLOW list (#17009) 5ca0c22
- Automate a review finding as a lint or test: Duplicate import from views_store.ts; merge into one. (#17004) 6b46197
- /api/v1/search answers kind=pulls (and kind=issues meaning issues only), so a narrowed search returns N of the kind asked for (#17001) ffcf74c
- The 3D view's grid keeps the old theme's colour after a theme switch (#17000) 005552a
- Check slots per repository: each app gets a guaranteed share, the forge borrows what's idle (#16946) 099c6cc
- Observability 3b: the /boards index is live by streaming, like a board (#16848) ba6c159
- One keymap (b): pulls, the review page and a repository's tabs take their keys from the map; a moved key says where it went for two weeks (#16992) 3518284
- Surface the flow report in the terminal Flow dialog and the MCP flow tool (#16999) ade4088
5 earlier comments
The edge-kept finding now carries the edge cache rule as one copyable block, and the duty closes its own finding once the rule is in. src/maintain/edge_kept.ts, src/maintain/duties/edge_kept.ts and test/maintain-edge-kept.test.ts pass 18 tests, plus the related maintenance duty tests. bun x tsc --noEmit is clean and gate.ts --explain shows 0 failing rules. design-lint and the full suite did not complete in my sandbox; the forge's check will run them.
What changed
- Rule block: the issue body the duty files holds a fenced block. It matches a signed-out GET of HTML with no session cookie, says cache eligible and respect origin
Cache-Control, and keys on one line per header ofEDGE_VARY. The block is built fromEDGE_VARYbyedgeRule(), never typed out. - Auto-close: when both reads in a run are
HIT,STALEorREVALIDATED, the duty comments with the header it saw and closes its open finding. If only one read is kept, the finding stays open, so it can't flap. The action line sayskept; that wording already existed and the test now checks it. - Link on
/maintenance: the edge-kept duty row links to the open finding as "open finding owner/name#N". Nothing shows when no finding is open. The terminal's duty list shows the same text. No new page. - Tests: the new tests check that the body's key list equals
EDGE_VARY, that a kept page closes the finding with the header in a comment, and that a page still not kept, or kept on one read only, leaves it open.openFindingis covered too. I changed one existing assertion that looked for the literalCookie, Authorization; the keys are now on separate lines. - Docs:
docs/features/maintenance-duties.md(Edge kept) says the duty closes its own finding. - Reused:
fileIssueOnce,edgeKeptandgetIssue, plus the existingaddCommentandsetIssueState.PATHSandtitlemoved intosrc/maintain/edge_kept.tsso the page and the terminal can find the finding; the duty file re-exports them.
Left out
- The rule is plain text, not a Cloudflare API payload or Terraform.
- Only
/and/exploreare covered.
To try
Run the duty against a forge whose edge returns cf-cache-status: DYNAMIC, then read the filed issue. Change the edge to HIT and run it again. The finding closes with a comment. As an admin, /maintenance shows the link while the finding is open.
I added an empty "Try:" commit because the pre-push hook required one.
<!-- look-pages 5ce0efc18f68 --> Look pages for 5ce0efc, from the gate:
look pages (inferred): this pull changes src/web/pages/maintenance.ts; the forge pictures /maintenance (src/web/pages/maintenance.ts), the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
The gate, tsc and the tests that cover this change all pass, so I pushed no new commit. The look-pages comment is the gate's inference and it didn't fail anything. The inferred look page is /maintenance, which this pull does change.
The four recurring refusals don't apply here:
- Dead code:
test/unused-exports.test.tspasses. It prints a note thatstreamLaginsrc/snapshot/stream.tsis no longer dead. That file isn't in this diff. - Name the issue: the gate's "name the issue" rule passes.
- Tests:
test/maintain-edge-kept.test.tsbuilds real records, with noas never. It passes along withtest/hollow.test.tsand the dead-code test. - Timed jobs: the pull adds no job under
during.
What changed: when an edge-kept finding is open, it holds the edge cache rule as one block built from EDGE_VARY. /maintenance links the edge-kept row to that open finding. The finding closes itself once both reads are kept.
Left out: no new look-page override. The inferred /maintenance picture is the right page, so I added no Looks: or No look: line.
Not run: bun scripts/fast.ts named a long list of tests (too broad for the sandbox), so I ran only the four files above, not the broader set. The forge's full check covers the rest.
To try it: open /maintenance as an admin. The edge-kept row links to the open finding, and its body holds the edge rule block.
[{"go":"/maintenance (admin)","look":"the edge-kept row","expect":"it links to the open finding"},{"go":"the linked finding","look":"its body","expect":"one block holding the edge cache rule built from EDGE_VARY"}]
🤖 Generated with Claude Code
Both review points are addressed and pushed as b8d1dcbb0. The edge-kept tests, tsc, bun scripts/design-lint.ts and the gate pass. I ran only test/maintain-edge-kept.test.ts, not the broader suite, so the forge's check will run the rest.
- One way to find the finding:
findingFor(db, repo, path)insrc/maintain/edge_kept.tsis now the only open-finding query. The duty's close step andopenFinding(the /maintenance link and the terminal suffix) both call it. - Link tests: a new test in
test/maintain-edge-kept.test.tssigns in as an admin and checks the page anddutyLines.- With no finding, neither shows "open finding".
- After the duty files one, the page has
<a href="/<repo>/issues/N" data-filed="link">open finding <repo>#N</a>, and the terminal line has; open finding <repo>#N. - Once the findings are closed, both go away.
data-filed="link": I kept it. The same page already uses it for filed-issue links (src/web/pages/maintenance.tslines 75–76), so it matches the existing pattern. It isn't named indocs, andbun scripts/design-lint.tsreports nothing outside the system.- Commit trailers: the commit carries
Looks: /maintenanceand aDirection: … (#17016)line.
No code changed in this round. The look-pages item is a NOTE from the gate, not a failure. The gate and bun x tsc --noEmit both ran clean on the branch, and the working tree is clean. I didn't re-run the tests or push.
The NOTE says "this pull changes src/web/pages/maintenance.ts; a commit names /maintenance". The rule is met: commit b8d1dcbb0 carries Looks: /maintenance, and its message also carries a Direction: … (#17016) line that names the issue.
I checked the four recurring refusals against this pull:
- Dead exports: this pull adds no new export. Its one new helper,
findingFor, is called from both the duty and the link. as never: the new tests build real records.- Timed jobs: the pull adds no job.
- Issue number: the commits cite #17016.
What changed: the edge-kept finding body now holds the edge rule as one block built from EDGE_VARY. /maintenance and the terminal link to the open finding and drop the link once both reads are kept. A test covers each of these.
What I left out: there is no new page and no new dependency.
How to try it: open /maintenance as an admin. The edge-kept row links to the open finding.
[{"go":"/maintenance (as admin)","look":"edge-kept row","expect":"links to the open finding whose body holds the edge rule block; the link disappears once the finding is closed"}]
The edge-kept finding now carries the edge cache rule as one copyable block, and the duty closes its own finding once the rule is in.
src/maintain/edge_kept.ts,src/maintain/duties/edge_kept.tsandtest/maintain-edge-kept.test.tspass 18 tests, plus the related maintenance duty tests.bun x tsc --noEmitis clean andgate.ts --explainshows 0 failing rules.design-lintand the full suite did not complete in my sandbox; the forge's check will run them.What changed
Cache-Control, and keys on one line per header ofEDGE_VARY. The block is built fromEDGE_VARYbyedgeRule(), never typed out.HIT,STALEorREVALIDATED, the duty comments with the header it saw and closes its open finding. If only one read is kept, the finding stays open, so it can't flap. The action line sayskept; that wording already existed and the test now checks it./maintenance: the edge-kept duty row links to the open finding as "open finding owner/name#N". Nothing shows when no finding is open. The terminal's duty list shows the same text. No new page.EDGE_VARY, that a kept page closes the finding with the header in a comment, and that a page still not kept, or kept on one read only, leaves it open.openFindingis covered too. I changed one existing assertion that looked for the literalCookie, Authorization; the keys are now on separate lines.docs/features/maintenance-duties.md(Edge kept) says the duty closes its own finding.fileIssueOnce,edgeKeptandgetIssue, plus the existingaddCommentandsetIssueState.PATHSandtitlemoved intosrc/maintain/edge_kept.tsso the page and the terminal can find the finding; the duty file re-exports them.Left out
/and/exploreare covered.To try Run the duty against a forge whose edge returns
cf-cache-status: DYNAMIC, then read the filed issue. Change the edge toHITand run it again. The finding closes with a comment. As an admin,/maintenanceshows the link while the finding is open.I added an empty "Try:" commit because the pre-push hook required one.
Closes #17016