Repository navigation
Description
Problem or Motivation
No job runs the check of the filer again. Thus bot-filed items that a later change fixed stay open and take refine and stage turns: #3682 was Ready in the stage queue. Future families come from the alert filer (52 open Trivy configuration alerts, #4409).
Proposed Solution & Architectural Design
Add devops roadmap group with --plan, --confirm and --dry-run, and the ServiceRow member group:
- Read the fingerprint families (feat(roadmap): consolidate shortlists find bot families by fingerprint #4812).
- A registry maps each filer key to its check:
devops pr hardening-report --pr N, the state of the code-scanning alert, or the latest run of a workflow on the default branch. - A pass closes that member as not planned, with the check output in the comment. 5 closes a run at most. Never close an item with a milestone, an
owner/*claim or a start. - For 2 or more failing members, add blocked-by links from each member to one anchor (the store operation of feat(roadmap): consolidate --apply writes one accepted group #3743), and post one anchor comment.
- After the anchor closes, the row checks each member again by itself. No close without that check.
- A reopen by a person is final.
- Record keys
group.id,group.anchorandgroup.check. 0 model calls. - A merge into the anchor stays the
consolidate --applyof a person (feat(roadmap): consolidate --apply writes one accepted group #3743). - The first 2 runs use plan mode.
The owner accepted the close on a passing check and the scheduled links on 2026-11-11 (#4780). A model verdict never closes an item.
Target Subsystem
SDLC, Git & PR Governance (roadmap jobs).
Existing Tool Considered
The GitHub REST issue dependencies API, the code-scanning alerts API and the consolidate store operation (#3743). Probot stale and dedup apps do not run a check again. Cost to build: about 150,000 tokens and 5 hours, with the registry.
Acceptance Criteria
- On a fixture of the 17 hardening items with passing reports, the plan closes 17 and links 0.
- With 2 failing members, the plan links them under one anchor and closes none.
- A member that a person reopened is never closed again.
- The second run with the same facts writes nothing (the harness of fix(roadmap): a job posts no comment that repeats a recent one #4793).
Dependencies
- feat(roadmap): consolidate shortlists find bot families by fingerprint #4812
- fix(roadmap): a job posts no comment that repeats a recent one #4793
- feat(roadmap): consolidate --apply writes one accepted group #3743
Source: #4780
Owner decision 2026-11-13
The approved pipeline split (tracker #5482, Phase 5): group is also due for an item with intake.duplicate_of and no group check in 24 h (#5509). Semaphore steward 1. A reopen by a person counts as a false close (P0, target 0). A closed-item replay drill runs each month.
- Live proof: after the merge and the release, the group row runs as the App in mode
planon the bot families. A comment gives the result lines.
Alternatives check of 2026-11-26: none.
Tool: none found.
Reason: Searches and repository facts found only generic stale-closers and finding trackers; none re-runs a registered filer check, closes on a pass, or links failing members under an anchor.
Lacks:
- Re-running a registered filer check
- Closing as not planned on a passing check
- Blocked-by links to one family anchor
- Fresh re-check after the anchor closes
Proposed design
Problem statement
Bot-filed roadmap items stay open after a later change fixes the condition that filed them. No job re-runs the filer check, so items such as #3682 stay Ready and take refine and stage turns, and 52 open Trivy configuration alerts stay open (#4409). The change adds a deterministic devops roadmap group row. The row re-runs each registered filer check, closes passing members as not planned, and links failing members under one anchor.
Acceptance criteria
Requirement: Plan reports one close per passing member
The group row SHALL report one close action for each member whose filer check passes in plan mode.
Scenario: Seventeen passing hardening items
- WHEN The plan runs on the 17 hardening fixture items and each mapped hardening report passes.
- THEN The plan result line holds 17 close actions, 0 link actions and 0 write requests.
Requirement: Confirm closes with the check output
The group row SHALL close a passing member as not planned and MUST put the check output in the close comment.
Scenario: Confirm run on a passing member
- WHEN The confirm run processes a passing member.
- THEN The run sends one close request with the state not planned, and the close comment holds the output of the member's filer check.
Requirement: Failing members link to one anchor
For two or more failing members, the group row SHALL add one blocked-by link from each member to the same anchor and SHALL close none of them.
Scenario: Two failing members
- WHEN The plan runs on a family with two failing members and the family anchor.
- THEN The plan reports two blocked-by links to the same anchor, zero close actions and one anchor comment.
Requirement: A person reopen is final
The group row SHALL treat a person reopen as final, MUST skip that member and MUST record the reopen as one false close.
Scenario: Person reopened a closed member
- WHEN A person reopens a member that the group row closed.
- THEN The next pass reports the member as skipped, sends no close request for it, and the run result records one false close with priority P0.
Requirement: Second run writes nothing
The group row SHALL send no write request when a second run sees the same facts.
Scenario: Same facts twice
- WHEN The group row runs twice on the same fixture with no change between the runs.
- THEN The second run records zero write requests, zero close actions and zero link actions.
Requirement: Protected items stay open
The group row SHALL NOT close an item that has a milestone, an owner/* claim or a start record.
Scenario: Protected item with a passing check
- WHEN A passing member has a milestone, an
owner/*label or a start record. - THEN The plan reports the member as skipped and sends no close request.
Requirement: Duplicate item becomes due
The group row SHALL treat an item with intake.duplicate_of and no group.check in the last 24 hours as due.
Scenario: Duplicate item with a stale group check
- WHEN An item has
intake.duplicate_ofand itsgroup.checkrecord is older than 24 hours or absent. - THEN The plan includes the item and runs its group check.
Requirement: Steward semaphore with limit 1
The group row MUST run under the steward semaphore with a limit of 1.
Scenario: Rendered group workflow
- WHEN
uv run devops ci --check --only k8sruns on the change that adds the group workflow. - THEN The check passes with the group workflow under the
stewardsemaphore and limit 1.
Requirement: Group record keys
The group row SHALL record group.id, group.anchor and group.check in the job record of the member.
Scenario: A completed group pass
- WHEN The group row completes a pass for a member with a check result and an anchor id.
- THEN The job record holds
group.id,group.anchorandgroup.checkwith the check result and the anchor id.
Requirement: Zero model calls
The group row MUST make zero model calls.
Scenario: Group run on a fixture
- WHEN The group row runs on a fixture with one passing member and one failing member.
- THEN The run result line holds 0 model calls.
Requirement: Close limit five
The group row SHALL close at most 5 items in one run.
Scenario: Six passing members
- WHEN A confirm run finds six passing members.
- THEN The run sends 5 close requests and leaves the sixth member open with no close request.
Requirement: Fresh check after the anchor closes
The group row MUST re-run the filer check of each member after the anchor closes before it closes that member.
Scenario: Anchor closed and the check passes
- WHEN The anchor closes and the next pass runs the filer check of the member, which now passes.
- THEN The pass closes the member and the close comment holds the output of the fresh check.
Requirement: Plan mode for the first two runs
The group row SHALL use plan mode for its first two runs on a repository.
Scenario: First and second runs
- WHEN The group row runs for the first time or the second time on a repository.
- THEN The run uses plan mode and sends no write request.
Requirement: Pending a person after the merge
After the merge and the release, the group row MUST show its result lines on the bot families in mode plan before any confirm run.
Scenario: Live proof on the bot families
- WHEN A person runs the group row as the App in mode
planon the bot families after the merge and the release. - THEN The issue gets a comment with the result lines of the run, and no item is closed.
Existing Tool Considered
No open, maintained tool or library covers the need. The alternatives check of 2026-11-21 in the issue body gives the verdict none: DefectDojo tracks findings, probot/stale closes by inactivity and is archived, and trivy-operator re-scans findings. None re-runs a filer check and then closes, anchors or re-checks a roadmap item. The proposal covers that gap with the filer registry, the blocked-by link through the store operation of #3743 and the fresh re-check after the anchor closes. The written cost is about 150,000 tokens and 5 hours to build, with the registry, plus the tokens to keep and fix the code.
Key questions
- Does
ServiceRowneed a newgroupmember?: No new member is needed.ServiceRowalready holdsGROUPwith the valuegroupatsrc/devops_cli/github/repo_ref.py:68. The repository-names spec requires the value, and ADR 0022 names it. [sources: src/devops_cli/github/repo_ref.py:68, openspec/specs/repository-names/spec.md:75, docs/adr/0022-one-repository-reference-names-the-objects-labels-and-keys-of-each-repository.md:65] - Which checks does the filer registry map?: The registry maps each filer key of feat(roadmap): consolidate shortlists find bot families by fingerprint #4812 to one of three checks:
devops pr hardening-report --pr N, the state of the code-scanning alert, or the latest run of a workflow on the default branch. (best practice) [sources: docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:149, src/devops_cli/commands/pr.py]- Chosen: One registry of three checks. ADR 0021 line 149 names the three checks, and one registry keyed by the filer key keeps one code path.
- Rejected: Hardening report only. It leaves the code-scanning family and the workflow family with no check.
- Rejected: A model verdict. ADR 0005 and the owner decision forbid a close on a model verdict.
- Which semaphore does the group row use?: The group row runs under the
stewardsemaphore with a limit of 1. The owner decision of 2026-11-13 sets this limit, after ADR 0021 namedtriage. (best practice) [sources: docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md]- Chosen: Use
stewardwith limit 1. The owner decision of 2026-11-13 sets this limit, and ADR 0021 lists the semaphore. - Rejected: Keep the
triagesemaphore. The owner decision of 2026-11-13 supersedes that choice. - Rejected: Create a new semaphore. It adds a second limit and departs from the owner's limit.
- Rejected: Run with no semaphore. Two group rows can then change the same family at the same time.
- Chosen: Use
- Which items must the group row leave open?: The row leaves open any item with a milestone, an
owner/*claim or a start record, even when the check passes. (best practice) [sources: docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md]- Chosen: Skip protected items. ADR 0021 bounds the row, and a close would override a person's plan or claim.
- Rejected: Close on a passing check anyway. It overrides a person's plan or claim.
- How does the group row treat a person reopen?: A person reopen is final. The row skips that member, never closes it again, and records the reopen as one false close with priority P0. (best practice) [sources: docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md]
- Chosen: Reopen is final. ADR 0021 makes a person's reopen final, and the owner set the false-close target to 0.
- Rejected: Re-close on the next passing check. It makes a false close and breaks the P0 target.
- How does the group row handle two or more failing members?: The row adds one blocked-by link from each failing member to the same family anchor, posts one anchor comment and closes none. The store operation of feat(roadmap): consolidate --apply writes one accepted group #3743 holds the link. (best practice) [sources: docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:149, src/devops_cli/roadmap/stores/store.py]
- Chosen: One family anchor. ADR 0021 line 149 links each failing member to one anchor and reuses the fingerprint family of feat(roadmap): consolidate shortlists find bot families by fingerprint #4812.
- Rejected: One anchor per member. It multiplies anchors and comments.
- Rejected: Close the failing members. No check passes for them.
- When does the group row re-check a member after the anchor closes?: The next pass re-runs the filer check of the member after the anchor closes. The row closes the member only on a fresh pass. (best practice) [sources: docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:149]
- Chosen: Fresh check after the anchor closes. ADR 0021 line 149 gives each member its own re-check, and no close happens without a check.
- Rejected: Close when the anchor closes. It skips the filer check.
- What do
--plan,--confirmand--dry-rundo?:--planreports the actions and writes nothing.--confirmapplies the actions.--dry-runsends no request to GitHub. The first two runs use plan mode. (best practice) [sources: docs/commands/roadmap.md, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md]- Chosen: Plan first, confirm later. ADR 0021 starts a new row in mode
plan, and the roadmap commands already use these flags this way. - Rejected: Apply on the first run. It risks a false close before the live proof.
- Chosen: Plan first, confirm later. ADR 0021 starts a new row in mode
- Which due rule applies to an item with
intake.duplicate_of?: The group row is due for an item withintake.duplicate_ofand nogroup.checkin the last 24 hours. The owner decision of 2026-11-13 adds this rule for Phase 5 (feat(roadmap): intake flags an item that a merged PR already fixed #5509). (best practice) [sources: docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md]- Chosen: Add the duplicate due rule. The owner decision of 2026-11-13 adds the rule, and a due mark is the row's one trigger.
- Rejected: Use fingerprint families only. It misses duplicate items that need a group check.
- How many closes does one run make?: One run makes at most 5 closes. (best practice) [sources: docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md]
- Chosen: 5 closes per run. ADR 0021 bounds the row at 5 closes a run.
- Rejected: No limit. It can make many writes at once.
- Rejected: 1 close per run. It is too slow for the 52 open alerts.
- Does a model verdict close an item?: No. The row makes zero model calls and closes only on a registry check. (best practice) [sources: docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md, docs/adr/0005-review-findings-come-from-tools-not-models.md]
- Chosen: Registry check only. ADR 0021 says a model verdict never closes an item, and the row makes 0 model calls.
- Rejected: Model verdict. It can close an item with no passing check.
- Where does the row record its state?: The row records
group.id,group.anchorandgroup.checkin the job record of the member. A second run reads them and sends no write request. (best practice) [sources: CONTEXT.md, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md]- Chosen: Job record keys. A due mark has a TTL and is never the only copy of a decision, so the record holds the keys.
- Rejected: Valkey only. A TTL can drop the only copy of the check result.
Fit
Fits in one pull request.
Suspected block
None.
Activity
dan-petty commentedon Nov 11, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
featprefix of the title gives the type.(roadmap)scope of the title gives the scope.It fixes a workflow gap where bot-filed items stay open, but it is not a blocker or a security fix.It prevents 52 open alerts and similar items from consuming refine and stage turns.The body estimates 5 hours and 150,000 tokens, covering the registry, close logic, anchor links and re-check.Both re-check roadmap items, but #3492 re-checks merged plans against main while the candidate re-checks filer items and closes or links them.devops-cli-service commentedon Nov 14, 2026
Alternatives check: none
Reason: The searches surfaced only tools that handle pieces of the problem: Probot stale closes by inactivity and is archived, so it never re-runs the filer's check, and DefectDojo and Trivy Operator track, deduplicate and re-scan findings but do not close or link the project's GitHub roadmap issues. None re-runs a filer check and then closes, anchors or re-checks roadmap items, so the requested
devops roadmap groupbehaviour has no covering tool.Tool: none found
Tools considered:
Searches run:
Sources:
Checked on 2026-11-14. A person decides what this means for the item. The check changes no label and closes no issue.
devops-cli-service commentedon Nov 15, 2026
Refine cannot set this item to Ready at e5dfddb while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.
devops-cli-service commentedon Nov 26, 2026
Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies in the section Proposed design of the body.