Skip to content

fix(roadmap): intake files and places a candidate that the model judges a duplicate, and names the possible original, instead of dropping or closing it - #2223

Merged
dan-petty merged 1 commit into
mainfrom
fix/2218-intake-flags-possible-duplicates
Oct 25, 2026
Merged

dan-petty merged 1 commit into
mainfrom
fix/2218-intake-flags-possible-duplicates

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Summary

devops roadmap intake no longer drops a candidate or closes an issue when the model judges it a duplicate. It places the candidate as usual, and the report and the reason comment name the possible original for a person to close. The owner set false-positive duplicates as a P0 on 2026-10-25 and chose this rule ("flag, never drop").

Two false positives on 2026-10-25:

A check in code cannot make the verdict right. The three true duplicates of tests/fixtures/roadmap/intake-duplicate-judgements.json have a shared change that is in neither text, so a literal check rejects them. A check of quotes from each side passes the #1885 case, because an umbrella holds real text. So the verdict becomes a flag.

What changes

  • A duplicate verdict places the candidate. The report gives - possible duplicate: #<n>. The model names <change> as the change that both ask for. <reason>, and the reason comment gives - Possible duplicate: #<n>, which may ask for the same change. ... A person closes one of the two if that is so.
  • Intake makes no close request. Outcome.DUPLICATE, the held pairs, the duplicate comment and its marker, IntakeApplied.closed, close_as_duplicate of the store protocol, the GitHub store (with its mutation, close_as_duplicate_request, _require_issue_node and the payload's node_id), the memory store and the request plan, the dry-run duplicate steps and their messages are deleted.
  • A retry of a run that stopped after filing places the issue that run filed: an open issue that is not finished and holds the candidate's title and filed body. This exact match in code replaces the model verdict that found that issue before. intake_candidate returns that issue's number.
  • An issue that a person reopened after a duplicate close still skips the check.
  • The help text, the module docstring, docs/SDLC.md, docs/ROUTINE_TASKS.md and the knowledge base page on project management say the new rule. The generated documents follow.

Tests

devops ci fail-to-pass --base origin/main: 21 tests fail on the base and pass on this branch (tests/test_roadmap_intake.py, tests/test_roadmap_store_contract.py, tests/test_roadmap_github_store.py). The roadmap, MCP contract, docs and invariant suites pass (671 tests).

Item

Closes #2218

Change: openspec/changes/archive/2026-10-25-2218-intake-flags-possible-duplicates/

…es a duplicate, and names the possible original, instead of dropping or closing it
@dan-petty
dan-petty marked this pull request as ready for review October 25, 2026 18:32
@dan-petty
dan-petty merged commit 050620d into main Oct 25, 2026
17 checks passed
@dan-petty
dan-petty deleted the fix/2218-intake-flags-possible-duplicates branch October 25, 2026 18:37
dan-petty pushed a commit that referenced this pull request Oct 26, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.6.0](v0.5.0...v0.6.0)
(2026-10-26)


### Features

* **k8s:** devops k8s doctor checks the gitea stack: tunnel host,
anonymous refusal, clone url, registry token and no egress
([#2200](#2200))
([4af6ea6](4af6ea6)),
closes [#2187](#2187)
* **telemetry:** centralized loki logql streamer, prometheus sparklines
& trace waterfalls (tab-telemetry)
([#2213](#2213))
([5d368c8](5d368c8)),
closes [#691](#691)
* **telemetry:** send devops-cli logs with trace ids to Loki
([#2224](#2224))
([28c1607](28c1607)),
closes [#813](#813)


### Bug Fixes

* **ai:** a transient rag lookup failure is not cached, so the same
query recovers as soon as the backend answers
([#2222](#2222))
([6f49beb](6f49beb))
* **ai:** rag chunks stay under the embedder's real token limit, not a
four-characters-per-token estimate
([#2221](#2221))
([a21ad61](a21ad61))
* **cli:** devops --dry-run on a command group given only its own
options
([de49122](de49122))
* **cli:** devops --dry-run on a command group given only its own
options previews it instead of crashing with IndexError
([#2259](#2259))
([de49122](de49122))
* **cli:** drop devcontainer k8s auto-deploy for printed deploy-stack
command ([#2227](#2227))
([9278d3e](9278d3e))
* **config:** service clients use only configured urls and never fall
back to an unconfigured localhost default
([#2219](#2219))
([5b3817d](5b3817d))
* **git:** git output the code parses is read NUL-separated, and git
outcomes come from exit codes
([#2257](#2257))
([db1d234](db1d234))
* **github:** devops pr check-readiness on a branch with no open pull
request exits with a clean error
([#2270](#2270))
([0a1b312](0a1b312))
* **github:** project sync's board lookup and field provisioning fail
closed on a failed read
([#2272](#2272))
([40138f4](40138f4))
* **k8s:** argo cd sync honours --prune and --force, rollout promote and
abort reach the status subresource, and teardown's argo check fails
closed ([#2246](#2246))
([7f3743b](7f3743b))
* **k8s:** authenticate service proxy with client auth settings and
stream typed pod watch
([#2242](#2242))
([1be8a79](1be8a79))
* **k8s:** dcgm-exporter's memory request and limit fit its measured
footprint ([#2264](#2264))
([4776f63](4776f63))
* **k8s:** deploy-stack decides helm recovery from helm's json status
and adopts existing resources with --take-ownership
([#2243](#2243))
([c5dbafc](c5dbafc))
* **k8s:** send LogQL to Loki unchanged and restrict kubectl fallback
([#2228](#2228))
([29743af](29743af)),
closes [#1431](#1431)
* **k8s:** the argo cd and grafana credential sync revokes and mints a
token only when the service refused the old one, and reports every other
failure ([#2210](#2210))
([1bb164b](1bb164b))
* **mcp:** an mcp tool stops at its timeout, also when its command runs
in-process
([#2269](#2269))
([6cf8ff0](6cf8ff0))
* **review:** a dependency advisory that admission rejects is not
reported ([#2217](#2217))
([4326906](4326906))
* **review:** a dependency advisory the base revision's pins already
have is listed as pre-existing
([#2268](#2268))
([00b3572](00b3572))
* **review:** a scanner finding that names a kubernetes object the
reviewed commit lacks is rejected as object-not-in-commit
([#2225](#2225))
([e69a4ff](e69a4ff)),
closes [#1352](#1352)
* **roadmap:** delete intake's refine hook; the cross-job rule is the
one same-round refine trigger
([#2262](#2262))
([90fc109](90fc109))
* **roadmap:** intake files and places a candidate that the model judges
a duplicate, and names the possible original, instead of dropping or
closing it
([#2223](#2223))
([050620d](050620d))
* **roadmap:** the roadmap service logs each failed job's own error with
its repository, and a configuration error without a traceback
([#2229](#2229))
([96238be](96238be))
* **security:** the pluto, popeye and gitleaks adapters read what those
tools actually write
([#2220](#2220))
([6789a80](6789a80))
* **security:** vault leases requires --revoke and lease registry
rebuilds on credential changes
([#2271](#2271))
([efab944](efab944))
* **telemetry:** grafana aggregate lines sum and average the lines
shown, read as dashed reference lines, and reach calls in flight
([#2215](#2215))
([2084172](2084172))
* **telemetry:** wait for background exporter threads on client shutdown
([#2274](#2274))
([e6b86b2](e6b86b2)),
closes [#2273](#2273)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
dan-petty added a commit that referenced this pull request Oct 28, 2026
…print, and the review leaves out a finding that an issue already carries (#2428)

An issue that a review finding becomes now carries the finding's
fingerprint v2, and the review can read which findings issues already
carry. This is part 2 of #883. Since #2223, intake files every candidate
and only names a possible duplicate, so without this check each hand-off
of review findings (#2420) would file the same finding again.

- `finding_marker` writes `<!-- devops-review-finding:
fingerprint_v2=<hex> -->`, an HTML comment that GitHub does not show. It
refuses a value that is not a fingerprint v2, because a marker that the
parser cannot read would let the same finding be filed again.
`carried_fingerprints` reads every marker of a body.
- `GitHubClient.search_issue_bodies` reads every issue of a repository,
open or closed, whose body holds a phrase, through GitHub's issue search
and the GitHub session. It reads the pages by number and raises
`GitHubUnreadError` for a page that GitHub marks incomplete or for a
search with more than 1,000 results, so a short answer never reads as a
complete one.
- `read_filed_findings` sends one search for the marker's phrase.
`FiledFindings.unfiled` leaves out each finding that an issue settles:
an open issue, or one closed as not planned or as a duplicate. A finding
whose issues were all closed as completed stays, because the defect came
back. The owner decided these rules on 2026-10-28. A closed duplicate is
not named in that decision: another issue tracks the finding, so it
settles too.
- With `dry_run`, the lookup makes no request and touches no GitHub
identity. It names the search that a real run sends, and every finding
stays.

GitHub's issue search finds text inside an HTML comment, and it matches
a long hex token exactly. Both were checked against this repository on
2026-10-28. One search request returns 100 marked issues and spends the
separate `search` quota of 30 requests a minute. The proposal and the
design record the evidence, the cost and the rejected reads.

Closes #2419

Change:
`openspec/changes/archive/2026-10-28-2419-review-finding-fingerprint-marker/`
dan-petty added a commit that referenced this pull request Oct 29, 2026
…nt (#2575)

`devops gh issues close <number> --reason completed|not-planned` closes
an issue with GitHub's `state_reason`. Before, `devops gh issues edit
--state closed` sent no reason, so GitHub recorded every close as
completed, and no `devops gh` command posted an issue comment. So a
superseded issue that AGENTS.md rule 2 tells an agent to close as
rejected needed two raw `devops gh api` calls.

- With `--comment-file` (`-` reads standard input), the command posts
the comment first, then closes the issue. A failed close leaves the
comment, and its error says that the comment is on the issue and that
the issue is still open, so a second run without `--comment-file` closes
it with no second comment. The comment never comes from the command
line, and an empty one is refused.
- The command reads the issue first. It refuses a pull request, a number
that names no issue, and an issue that is already closed, with no write.
GitHub's "Update an issue" documentation says `state_reason` is "Ignored
unless state is changed", so a closed issue is reopened first with
`devops gh issues edit <number> --state open`.
- A reason other than `completed` or `not-planned` exits 2 with Click's
message, which names the allowed values, before any request. A close as
a duplicate is left out: GitHub links the original only through
`duplicate_issue_id`, and a person closes duplicates (#2223).
- `--dry-run` sends no request and lists the read of the issue, the
comment and the `PATCH` of the close with its body.
- `RoadmapStore.close(number, reason, comment=None)` is the one place
that reads, comments and closes, in both adapters. The GitHub store
sends the close as one `PATCH` of the issue with `{"state": "closed",
"state_reason": ...}` on standard input through `issue_edit_args` and
`run_gh`, so the rate limiter paces it. `StoreRequests.close` plans the
same requests from the same builders.
- The command is an MCP tool beside `gh issues edit`, and the help of
`devops roadmap intake` names it where it says to close an issue as not
planned.

Closes #1658

Change: `openspec/changes/archive/2026-10-29-1658-issues-close-reason/`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(roadmap): intake files and places a candidate that the model judges a duplicate, and names the possible original, instead of dropping or closing it

1 participant