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

An open edge-kept finding is assigned to the owner on production, so no builder is handed it #17349

opened this

Merged 27h 22m ago, live in production

The crew's picker no longer takes an issue a person is assigned, and the edge-kept duty takes its finding back from a builder on every run. Cause: the assignment step works. #17185 was filed at 19:49Z with the owner as assignee, before #17190 landed.

Notes

opened this

The crew's picker no longer takes an issue a person is assigned, and the edge-kept duty takes its finding back from a builder on every run.

Cause: the assignment step works. #17185 was filed at 19:49Z with the owner as assignee, before #17190 landed. The problem is the picker in src/crew/held.ts: nothing held a ready issue assigned to a person. So it put a builder's name over the owner's, and each park then cleared the assignee. The duty only reassigned a finding with no assignee, and the picker took it again first, so the duty never saw it empty. I read this from the issue's comments and timeline through the API. I did not look at production's database or its /maintenance page.

Fix:

  • Picker: src/crew/held.ts has a new person hold. An issue whose assignee is not an agent is not started. The map and the terminal show it as "a person is its assignee; it starts when they hand it to a builder". Assigning a builder lifts the hold, so the forge-needs "hand it to the crew's builder" choice still works.
  • Duty: src/maintain/duties/edge_kept.ts now assigns the finding to the owner when it has no assignee or an agent holds it. This happens before any skip (no FORGE_URL, in a cell). The /maintenance action line is still assigned #N to the owner, whose fix it is. A finding a person gave to another person is still left alone. The rule text and the close-when-kept behaviour are unchanged.
  • How-to: docs/features/maintenance-duties.md says both.

Tests:

  • test/maintain-edge-kept.test.ts: a finding a builder holds is the owner's again after a skipped run in a cell. This test fails without the duty change.
  • test/crew-held.test.ts: an issue assigned to the owner is held as person, the tick does not pick it and the owner's name stays; once a builder is assigned, the hold is lifted.
  • Also run: the 46 test files that read holds or drive the picker, plus the llms, docs and dead-doc tests. All pass, as do bun x tsc --noEmit and the gate. The fast list named 913 files, too many to run whole, so I chose these myself.

Not done: the edge cache rule itself is still the owner's to set. The person hold also covers pulls a person is assigned, which matches agentFor: that already starts no run on them.

To try: on a crewed repository, assign an issue to yourself. /flow lists it under person, and no builder picks it up.

🤖 Generated with Claude Code

Closes #17344

commented

The crew's picker no longer takes an issue a person is assigned, and the edge-kept duty takes its finding back from a builder on every run.

Cause: the assignment step works. #17185 was filed at 19:49Z with the owner as assignee, before #17190 landed. The problem is the picker in src/crew/held.ts: nothing held a ready issue assigned to a person. So it put a builder's name over the owner's, and each park then cleared the assignee. The duty only reassigned a finding with no assignee, and the picker took it again first, so the duty never saw it empty. I read this from the issue's comments and timeline through the API. I did not look at production's database or its /maintenance page.

Fix:

  • Picker: src/crew/held.ts has a new person hold. An issue whose assignee is not an agent is not started. The map and the terminal show it as "a person is its assignee; it starts when they hand it to a builder". Assigning a builder lifts the hold, so the forge-needs "hand it to the crew's builder" choice still works.
  • Duty: src/maintain/duties/edge_kept.ts now assigns the finding to the owner when it has no assignee or an agent holds it. This happens before any skip (no FORGE_URL, in a cell). The /maintenance action line is still assigned #N to the owner, whose fix it is. A finding a person gave to another person is still left alone. The rule text and the close-when-kept behaviour are unchanged.
  • How-to: docs/features/maintenance-duties.md says both.

Tests:

  • test/maintain-edge-kept.test.ts: a finding a builder holds is the owner's again after a skipped run in a cell. This test fails without the duty change.
  • test/crew-held.test.ts: an issue assigned to the owner is held as person, the tick does not pick it and the owner's name stays; once a builder is assigned, the hold is lifted.
  • Also run: the 46 test files that read holds or drive the picker, plus the llms, docs and dead-doc tests. All pass, as do bun x tsc --noEmit and the gate. The fast list named 913 files, too many to run whole, so I chose these myself.

Not done: the edge cache rule itself is still the owner's to set. The person hold also covers pulls a person is assigned, which matches agentFor: that already starts no run on them.

To try: on a crewed repository, assign an issue to yourself. /flow lists it under person, and no builder picks it up.

🤖 Generated with Claude Code

commented

Left #17344 open: 1 unticked item remain (That cause is fixed: on production, within one hourly run of edge-kept, every open finding whose title matches title(path) shows the owner as assignee, and /maintenance names the run's action "assigned #N to the owner, whose fix it is".).

Sign in to join this conversation.

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

Keyboard shortcuts

Docs