Repository navigation
Closed
Labels
scope/roadmapThe roadmap jobs: intake, refine, stage, implement and the Service that runs themsource/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."
- Decision D1 (owner, 2026-10-17): "chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562 holds the roadmap Service's deployment only; Service code is built, tested offline and merged at 0 replicas (replicas: 0, its test, and the no-scale/no-restart/no-secret-push rules stay)." This item needs no Service and no live check. The hook also runs in a person's
devops roadmap intake --confirmanddevops roadmap run, and every criterion is offline. - The cross-job rule is the only same-round refine trigger after intake, as one predicate in
run.py. Intake makes refine due in the same round when it placed an item at Priority P0 (CONST_ROADMAP_CRITICAL_PRIORITYorCONST_ROADMAP_P0_PRIORITY, the check today's rule makes atrun.py:440). Reason: every critical fix is such an item. CONTEXT.md:83-84 defines a critical fix as a P0 item that fixes a defect, a security advisory or a regression. So it makes refine due through its Priority whether or not intake adds its type label, and therunhelp's promise of refine after "an intake that placed a critical fix or a P0 item" (help.py:1203-1204) holds without a label check. - The predicate drops today's label check (
run.py:441) and the hook's label-only trigger. A non-P0 issue labelled type/bug or type/security no longer makes refine due in the same round. That covers both an issue intake labels and places in the backlog and one that keeps a milestone a person set or an unfinished item's milestone (intake.py:945-950). Reason: neither is a critical fix, and making refine due on each such placement would queue more calls on the model lane, which answers one call at a time. Refine still reaches the item on its hourly interval (run.py:694), nearest place first. - The predicate skips a candidate that
apply_intakereports inIntakeApplied.finished, as the hook does today (fix(roadmap): intake places an issue whose board card is archived by restoring the card, instead of failing every round #1403). Reason: intake writes nothing to that card, so it is not a new placement. This closes the gap thatdocs/agent/tasks/task-1403-intake-restores-archived-card.md:38left open, whereplaced_critical_or_p0came from the plan before any write. refine.refine_item,RefineOutcomeand the never-setJobOutcome.critical_fix_or_p0_itemsare deleted too. Reason: the intake wrapper is the only caller ofrefine_iteminsrc/, andcritical_fix_or_p0_itemsis never set anywhere, so both are dead code once the hook goes.- No help text changes. Reason: the intake help never described the hook, and the
runhelp stays true under the new predicate. The pull request title tells users the behaviour changed.
Scope
- This item deletes the hook, the
refine=parameter, intake'srefine_itemwrapper and its export. It narrows the cross-job predicate inrun.pyto the P0 check with the finished skip, removes the dead code above, and updates the tests and the task files that describe the hook or the old predicate as current. - Correction to the body: the cross-job rule only makes refine due. Refine then picks up to 3 items, nearest place first, so a P0 placed in the backlog may be refined in a later round.
- The body's docs list is replaced. At 3dd7fa6, AGENTS.md, RELEASE_CYCLE.md and the intake module docstring do not describe the hook (
grep -n -i refinon each). - fix(roadmap): intake keeps the fields a person set on a card added during its planning #1404 keeps only its card-fields criterion (D18). Its
_maybe_refine_intakecriterion goes, so the two items no longer touch the same code. - Moved to feat(roadmap): intake runs in its own triage lane on a fast devops-triage model, so a new p0 or p1 item gets its priority within one poll #1534: once intake runs in its own triage lane,
_refine_cross_jobno longer sees intake's outcome, because each lane evaluates its predicates only over that lane's own outcomes (run.py:876-879). feat(roadmap): intake runs in its own triage lane on a fast devops-triage model, so a new p0 or p1 item gets its priority within one poll #1534 must carry a cross-lane trigger. One option is aschedule.jsonentry recording when intake last placed a P0 item. Intake's own last-success entry would not work, because it would make refine due after every intake round.
Delivery
- One pull request, size S:
fix(roadmap): delete intake's refine hook; the cross-job rule is the one same-round refine trigger. It closes 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.
Acceptance criteria
The body's first criterion stands: an in-memory store test in which an intake that places a P0 item makes no refine call, and the same round's refine row is due through the cross-job rule. The body's other two criteria are replaced by these:
-
tests/test_roadmap_run.py, on the in-memory store, covers three cases. First, an intake that places a P0-Critical issue already labelled type/bug, so intake adds no type label, makes refine due in the same round. Second, an intake that places a P2-Medium issue labelled type/bug does not, whether it goes to the backlog or keeps a milestone a person set. Third, an intake whose only P0 placement is a card reported inIntakeApplied.finisheddoes not. -
git grep -nE "_maybe_refine_intake|_should_refine_on_intake|refine_hook|critical_fix_or_p0_items|RefineOutcome|def refine_item" -- src/returns nothing,apply_intaketakes norefineargument, andsrc/devops_cli/roadmap/run.pyno longer readsCONST_ROADMAP_CRITICAL_FIX_LABELS. - The hook tests at
tests/test_roadmap_refine.py:625and:651are deleted, because the run tests above cover their cases.tests/test_roadmap_refine.py:1071is deleted with the hook whose logging it tests. A failed refine in a run stays covered bytest_a_failed_item_fails_the_refine_job_of_a_run_without_its_model_text(tests/test_roadmap_refine.py:1028).tests/test_roadmap_intake.py:1876dropsrefine=. The tests attests/test_roadmap_refine.py:370and:608callplan_refineandapply_refineinstead ofrefine_item. - Each task file that describes the hook or the old predicate as current says 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 changed it:
docs/agent/tasks/task-744-item-refinement-to-ready.md:22and:37,task-1363-refine-structured-output.md:21and:30,task-1403-intake-restores-archived-card.md:15,:24,:33and:38, andtask-1400-graphql-refusal-pauses-service.md:75. -
devops roadmap intake --confirmon its own no longer refines.devops roadmap runmakes refine due in the same round instead when intake places a P0 item. A non-P0 bug or security issue no longer makes refine due in the same round.
Current references (main 3dd7fa6)
src/devops_cli/roadmap/intake.py:1382-1389_should_refine_on_intake;:1392-1396therefine_itemwrapper;:1399-1413_maybe_refine_intake, which swallows every error at:1412-1413;:1416-1431_apply_decision;:1441-1466apply_intake, withrefine=at:1445and the default hook at:1450;:1615the export.src/devops_cli/roadmap/intake.py:1016-1028_added_labelsadds a type label only when the issue has none;:939-955_placement, which keeps a person-set or resumed milestone at:945-950.CONTEXT.md:83-84andsrc/devops_cli/config/constants.py:2347-2350define a critical fix as a P0 item.src/devops_cli/roadmap/run.py:115-126JobOutcome;:392-400_refine_due;:424-432_refine_cross_job;:435-444_places_critical_or_p0, with the priority check at:440and the label check at:441;:480the intake adapter's outcome;:692-700the refine row, with its hourly interval at:694;:876-879the cross-job check inside one lane's round;:1035-1042the two Service lanes.src/devops_cli/roadmap/refine.py:162-164RefineOutcome;:1085-1109refine_itemwithsource="."at:1089;:205-215inspect_checkoutraises on an origin mismatch.Dockerfile:50sets a working directory that is not a checkout.src/devops_cli/commands/roadmap.py:418:intake --confirmcallsapply_intake.src/devops_cli/lang/en/help.py:1150-1163is the intake help, and:1198-1205is the run help.src/devops_cli/config/defaults.py:840sets the refine limit of 3.
Dependencies and order
- No code blocker. chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562 is closed (completed), and the Service stays at
replicas: 0(k8s/devops/roadmap-service/deployment.yaml:12), which this item does not touch. - The
status/blockedlabel:AGENTS.md:151keeps items labelled for chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562 blocked, so an agent takes this item up only after a person removes the label. The plan removes it after D1 and the block-scope docs item (P0, not yet filed), which narrows that rule to deployment.docs/agent/tasks/task-1562-suspend-roadmap-service.md:19names 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 among the blocked items, although the same line keeps items that fix the roadmap jobs as the CLI also runs them open for work, which this item is. D1 settles that conflict. - fix(roadmap): intake keeps the fields a person set on a card added during its planning #1404 (open, no milestone): after D18 there is no order between the two items.
- feat(roadmap): intake runs in its own triage lane on a fast devops-triage model, so a new p0 or p1 item gets its priority within one poll #1534 (open, no milestone, status/blocked): this item does not wait for it. If feat(roadmap): intake runs in its own triage lane on a fast devops-triage model, so a new p0 or p1 item gets its priority within one poll #1534 lands second, as the plan expects, it carries the cross-lane trigger. If it lands first, this item carries it.
- Placement: no milestone. A person plans the milestone on the board. This item blocks nothing, so the blocker rule raises no priority.
Found by the roadmap Service recompute audit requested by the owner on 2026-10-10 (#1539).
Problem
Checked at release/v0.2.33.
- When intake places a P0 or critical item, it calls a refine hook for that item (
src/devops_cli/roadmap/intake.py:1376-1412). The hook isrefine_item(src/devops_cli/roadmap/refine.py:1085-1109), called with its defaultsource=".". - In the Service,
.is the image's working directory, not a checkout of the repository. The intake row has no clone (needs_cloneis false;src/devops_cli/roadmap/run.py:150). The Service's logs on 2026-10-08 and 2026-10-09 show the hook failing every time with "Checkout at . origin (None) does not match"._maybe_refine_intakecatches the error and logs a warning (src/devops_cli/roadmap/intake.py:1388-1390), so nothing reports it. - The hook is redundant in the Service. When intake places a P0 or critical item, the round's cross-job rule makes refine due in the same round (
_refine_cross_job,src/devops_cli/roadmap/run.py), and refine runs on its own clone.
Proposed design
- Delete
_maybe_refine_intake,_should_refine_on_intake, intake'srefine_itemwrapper and therefine=parameter (src/devops_cli/roadmap/intake.py:1359-1412). Refine of a newly placed P0 or critical item comes only from the cross-job rule. devops roadmap intake --confirmrun on its own no longer refines in the same command.devops roadmap runand the Service still do, through the cross-job rule. The help text and RELEASE_CYCLE.md say so.
Acceptance criteria
- A test on the in-memory store: an intake run that places a P0 item makes no refine call, and the same round's refine row is due through the cross-job rule (
tests/test_roadmap_run.py). -
git grep -n "_maybe_refine_intake\|refine_hook" -- src/returns nothing.
Feasibility
Fits one pull request: one deletion in src/devops_cli/roadmap/intake.py, its tests, and docs. No new code.
Related: #1534 (intake's triage lane), #1535 (engine), #1539.
Metadata
Metadata
Assignees
Labels
scope/roadmapThe roadmap jobs: intake, refine, stage, implement and the Service that runs themsource/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 10, 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.
The hook fails every Service run but the error is caught and the cross-job rule still refines correctly, so it is noise and wasted work rather than a functional break.Removes per-run error noise and redundant code, but the actual refine outcome is unchanged because the cross-job rule already covers it.The candidate states it is one deletion in intake.py plus its tests and docs, with no new code.dan-petty commentedon Oct 11, 2026
Blocked by #1562: the roadmap Service's machine account is suspended, and the Service is held at 0 replicas. This item develops the Service or can only be checked on it, so it waits until the account is reinstated or the jobs act as a GitHub App.
Generated by Claude Code
[-]fix(roadmap): intake's refine hook is deleted, because it fails on every Service run and the same round's cross-job refine already refines a newly placed p0 or critical item[/-][+]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[/+]fix(roadmap): delete intake's refine hook; the cross-job rule is the …