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

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

Merged opened this

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

Merged

The edge-kept duty now files its issue assigned to the repository's owner. It also assigns the owner to an open one that has no assignee, such as #16162. bun x tsc --noEmit and test/maintain-edge-kept.test.ts (12 tests) pass.

Notes

opened this

The edge-kept duty now files its issue assigned to the repository's owner. It also assigns the owner to an open one that has no assignee, such as #16162. bun x tsc --noEmit and test/maintain-edge-kept.test.ts (12 tests) pass. I didn't run other callers' tests, so the "no assignee passed" case rests on the code path. I haven't confirmed the two new tests fail without the change.

What changed

  • fileIssueOnce (src/checks/flake.ts) takes an optional assigneeId and sets it with setAssignee when it opens the issue. Other callers pass nothing, so they behave as before.
  • src/maintain/duties/edge_kept.ts passes repo.ownerId when filing. When the issue is already open with no assignee, it assigns the owner and adds the action line "already filed as issue #N; assigned it to the owner, whose fix it is". It does that once, because the next run finds an assignee.
  • Issue body: it now says in one line that it is the owner's to do and a builder has nothing to change here.
  • docs/features/maintenance-duties.md: the Edge kept entry says the issue goes to the owner and names the full EDGE_VARY key list.
  • test/maintain-edge-kept.test.ts: two new tests cover a new filing assigned to the owner and an unassigned open filing that gets assigned.

Dispatcher It already skips an issue held by a person who is not an agent: agentFor (src/crew/dispatch.ts) returns undefined for a non-agent assignee. I added no dispatcher code. The new filing test calls agentFor on the filed issue and expects undefined.

Left alone

  • fileIssueOnce does not assign an existing open issue itself. The edge-kept duty does it, so flake and sentinel filings never change.
  • The commit says No door:, since this is a background duty with no page, action, API route or tool.
  • The gate notes one over-long comment line in src/checks/flake.ts. It said the nightly rewrap handles it, and --fix changed nothing I had to commit.

Try it: run bun test test/maintain-edge-kept.test.ts.

🤖 Generated with Claude Code

Closes #17014

commented

The edge-kept duty now files its issue assigned to the repository's owner. It also assigns the owner to an open one that has no assignee, such as #16162. bun x tsc --noEmit and test/maintain-edge-kept.test.ts (12 tests) pass. I didn't run other callers' tests, so the "no assignee passed" case rests on the code path. I haven't confirmed the two new tests fail without the change.

What changed

  • fileIssueOnce (src/checks/flake.ts) takes an optional assigneeId and sets it with setAssignee when it opens the issue. Other callers pass nothing, so they behave as before.
  • src/maintain/duties/edge_kept.ts passes repo.ownerId when filing. When the issue is already open with no assignee, it assigns the owner and adds the action line "already filed as issue #N; assigned it to the owner, whose fix it is". It does that once, because the next run finds an assignee.
  • Issue body: it now says in one line that it is the owner's to do and a builder has nothing to change here.
  • docs/features/maintenance-duties.md: the Edge kept entry says the issue goes to the owner and names the full EDGE_VARY key list.
  • test/maintain-edge-kept.test.ts: two new tests cover a new filing assigned to the owner and an unassigned open filing that gets assigned.

Dispatcher It already skips an issue held by a person who is not an agent: agentFor (src/crew/dispatch.ts) returns undefined for a non-agent assignee. I added no dispatcher code. The new filing test calls agentFor on the filed issue and expects undefined.

Left alone

  • fileIssueOnce does not assign an existing open issue itself. The edge-kept duty does it, so flake and sentinel filings never change.
  • The commit says No door:, since this is a background duty with no page, action, API route or tool.
  • The gate notes one over-long comment line in src/checks/flake.ts. It said the nightly rewrap handles it, and --fix changed nothing I had to commit.

Try it: run bun test test/maintain-edge-kept.test.ts.

🤖 Generated with Claude Code

Sign in to join this conversation.

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

Keyboard shortcuts

Docs