Repository navigation
Closed
Labels
scope/githubGitHub Projects v2, Views, Milestones, Labels, and PR automationsource/agentFiled by an agenttype/bugType bug: the code does not do what it must
Description
Refreshed plan (2026-10-17, unblocking review)
This section supersedes any text below that conflicts with it.
Decisions
- Decision D18 (owner, 2026-10-17): "intake's refine hook is deleted (fix(roadmap): intake's refine hook is deleted, and the cross-job rule alone makes refine due in the round intake places a p0 item #1540); fix(roadmap): intake keeps the fields a person set on a card added during its planning #1404 is re-scoped to its card-fields criterion."
- Small decision: the milestone is not one of the card's fields. Since feat(release): release-please makes every release from main #1952, intake puts every new item in the backlog and sets no milestone (
src/devops_cli/roadmap/intake.py:38-40)._write_fieldswrites only the fields, the reason comment and Priority, so no intake write can overwrite a milestone a person set.
Scope
- Moved to fix(roadmap): intake's refine hook is deleted, and the cross-job rule alone makes refine due in the round intake places a p0 item #1540, which deletes the hook: problem 2 and the 2026-10-09 Service-gap comment on it, acceptance criterion 2, the refine half of criterion 3, and both criteria in the 2026-10-09 amendment. fix(roadmap): the roadmap service logs each failed job's own error with its repository, and a configuration error without a traceback #1365's request to re-raise
GitHubRateLimitErrorfrom the hook's catch (src/devops_cli/roadmap/intake.py:1412-1413) falls away when fix(roadmap): intake's refine hook is deleted, and the cross-job rule alone makes refine due in the round intake places a p0 item #1540 deletes that catch. - Already done by fix(roadmap): intake places an issue whose board card is archived by restoring the card, instead of failing every round #1403 (v0.2.29):
_on_card(src/devops_cli/roadmap/intake.py:1330-1343) runs on every cardadd_itemreturns, not only restored ones. A card that holds a Priority gets no further writes. Any other card gets only the fields it has no value for, and the job record never claims a person's value (module docstring,intake.py:49-56). - Done by feat(release): release-please makes every release from main #1952, part (a), the milestone: intake writes no milestone now, so it cannot overwrite a milestone a person set during planning.
- Still to deliver, part (b): the single log line naming the skipped fields.
_on_carddoes not write one today. - Still to deliver, part (c): a
GitHubFaketest with a live card that was never archived and already holds a person's values. Today'sGitHubFaketests of such a card use only archived cards (tests/test_roadmap_intake.py:1967,:2006); the lagging-listing test (:1893) adds intake's own new card, which holds no values.
Delivery
- One pull request, size S.
_on_cardlogs the fields it skipped.
Acceptance criteria
- If
_on_carddrops any planned write, intake logs the issue and the skipped fields once for that candidate. The message lives insrc/devops_cli/lang/en/messages.py. -
GitHubFaketest: the issue already carries atype/*label, and a person adds it to the board betweenplan_intakeandapply_intakeand sets Priority. Intake's only write is the add: no label, field, job record, milestone or comment write. The issue appears inIntakeApplied.finished. -
GitHubFaketest: the same, but the person sets Value and a milestone with no Priority. Intake writes Status, Effort and Priority and its reason comment, which gives no Value and says the issue stays in the person's milestone. The person's Value and milestone stay, and the job record holds neither. - Tests are offline, each call phase stays under 1 s, and
uv run devops cipasses.
Current references (main 3dd7fa6)
src/devops_cli/roadmap/intake.py:_unset:1321-1327,_on_card:1330-1343,_apply_placement:1346-1366(add at:1360),_write_fields:1369-1379,IntakeApplied:459-469(finishedat:468).src/devops_cli/roadmap/github_store.py:add_item:1521-1542reads the issue (:1528), soAddedItem.releaseis the milestone at the time of the add.src/devops_cli/commands/roadmap.py:424-425printsintake_finishedfor each finished card.tests/test_roadmap_intake.py:on_github:1852-1869and_intake_on_github:1872-1876build theGitHubFakeruns the new tests use.
Dependencies and order
- No blockers. fix(roadmap): board writes go to the card by node id and read only that card, so intake keeps the card it added and a write costs a few GraphQL points instead of about 320 #1361 and fix(roadmap): intake places an issue whose board card is archived by restoring the card, instead of failing every round #1403 are closed in v0.2.29.
- fix(roadmap): intake's refine hook is deleted, and the cross-job rule alone makes refine due in the round intake places a p0 item #1540 (open, no milestone, still labelled
status/blockedunder chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562's rule until a person removes the label) deletes the hook. Neither item has to land first, but both editsrc/devops_cli/roadmap/intake.pynear_apply_decisionand its module docstring, andtests/test_roadmap_intake.py's_intake_on_github, whoserefine=argument (:1876) fix(roadmap): intake's refine hook is deleted, and the cross-job rule alone makes refine due in the round intake places a p0 item #1540 removes, so whichever lands second rebases. - fix(roadmap): intake keeps the fields a person set on a card added during its planning #1404 has no milestone or priority. A person sets both.
Problem
Gaps left by #1361's "changed since it was read" rule (2026-10-08), both in src/devops_cli/roadmap/intake.py:
- A person's card added during intake's planning can be overwritten. Intake plans every candidate with a model call (about 75 s each), and only then places them. If a person adds the issue to the board and sets its fields during that window,
add_itemreturns the person's card. That add-time read becomes the baseline, so intake's planned Priority, Value and Effort overwrite the person's values without aRoadmapCardChangedError. - The refine hook swallows errors.
_maybe_refine_intakecatches every exception and logs it as a warning. ARoadmapCardChangedErrorfrom refine's Status write is logged as a warning instead of failing the job, and so is any other failure. Swallowed errors are a stop signal under the repository's fail-closed rule.
Acceptance criteria
- When
add_itemreturns a card that already carries field values for an issue intake planned while it was off the board, intake writes none of the planned fields the card already holds. It records the person's values as the baseline and logs the skipped fields once. -
_maybe_refine_intakecatches only the errors it documents as expected for an optional hook, and none of them is a write conflict.RoadmapCardChangedErrorand unexpected exceptions fail the intake job with their message, and the next round plans again. -
GitHubFaketests cover a person adding the card and setting Priority during planning, and refine's Status write meeting a person's change. - Tests are offline, each call phase stays under 1 s, and
uv run devops cipasses.
Strategic alignment
- ADR 0002: a job never reverts a person's change. Related: fix(roadmap): board writes go to the card by node id and read only that card, so intake keeps the card it added and a write costs a few GraphQL points instead of about 320 #1361, fix(roadmap): an item a person places in a release stays there, and the roadmap jobs comment on a rule it breaks instead of moving it out #1349, feat(github): single-entry item intake with duplicate detection and placement (
devops roadmap intake) #742.
Found on 2026-10-08 while delivering #1361. Filed directly with no priority; the roadmap service's intake sets Priority, Value and Effort.
Metadata
Metadata
Assignees
Labels
scope/githubGitHub Projects v2, Views, Milestones, Labels, and PR automationsource/agentFiled by an agenttype/bugType bug: the code does not do what it must
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty-bot commentedon Oct 8, 2026
Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.
A person's deliberate field choices can be silently overwritten and write-conflict errors are hidden, but the window is limited to the ~75 s planning phase and the refine hook is optional.Protects a person's explicit board edits from being clobbered and surfaces real failures, but only in a narrow timing window during intake planning.Two targeted changes in one file plus GitHubFake tests for both scenarios, scoped by clear acceptance criteria.dan-petty commentedon Oct 8, 2026
Linked: #1365. Its 2026-10-08 comment asks this same catch (
roadmap/intake.py:1389-1390) to re-raiseGitHubRateLimitError; one change serves both. Found by the 2026-10-08 backlog review.dan-petty commentedon Oct 9, 2026
Finding: v0.2.29 Service gap assessment (2026-10-09)
In the Service, intake's refine hook runs against the pod's working directory and fails:
Intake refine hook failed for #1298/#1299: Checkout at . origin (None) does not match expected repository(22:07Z)._run_intake_adaptercallsapply_intake(store, plan)with no refine argument, so it falls back torefine_itemwith source.. The refine job, which does get the clone, selects only New items in the next planned release and the backlog (select_candidates), never the current release, so #1298 and #1299 (P0, placed into v0.2.30) stay New.Proposed (simplest): in the Service, intake passes no refine hook, and
select_candidatesalso takes the current release's New critical fixes and P0 items; the refine row is already due in that round and already gets the clone. Note: making hook errors fatal as written here would turn each such placement into a failed intake round, so this should land first or together.dan-petty commentedon Oct 9, 2026
Folded in from the owner's roadmap Service requests (2026-10-09)
Amendment 2026-10-09: delete the intake refine hook
The owner asked (2026-10-09):
Checked at release/v0.2.32 (a9d7fd8) and in the Service's logs (read-only).
The hook never works in the Service. It is the subject of this item's second problem.
apply_intakefalls back torefine_item(roadmap/intake.py:1403), whose default source is.(roadmap/refine.py:1045), not the job's clone. Every call therefore fails with "Checkout at . origin (None) does not match expected repository": 10 of 10 calls in the 7 days to 2026-10-09. The latest were #1496 at 14:50Z and #1499 at 15:03Z. The 2026-10-09 comment above already proposed passing no hook in the Service.Simplest fix: delete the hook rather than narrow its
except._refine_cross_job,roadmap/run.py:387-394), and it gets the clone.GitHubRateLimitErrorfrom this catch also falls away.This replaces acceptance criterion 2 and the refine half of criterion 3:
refine_item,_should_refine_on_intake,_maybe_refine_intakeandapply_intake'srefineparameter are gone, along withtests/test_roadmap_refine.py::test_intakes_refine_hook_still_reports_a_failed_refine. The intake module docstring no longer mentions refining.run.pytest shows that a round in which intake places a P0 item runs refine in the same round, with the job's clone.[-]fix(roadmap): intake keeps the fields a person set on a card added during its planning, and its refine hook stops swallowing errors[/-][+]fix(roadmap): intake keeps the fields and milestone a person set on a card added during its planning[/+][-]fix(roadmap): intake keeps the fields and milestone a person set on a card added during its planning[/-][+]fix(roadmap): intake keeps the fields a person set on a card added during its planning[/+]