Skip to content

fix(roadmap): a refine round leaves an outside account issue to a person, and refine neutralizes comment openers, www links and cross-repository references - #2507

Merged
dan-petty merged 2 commits into
mainfrom
fix/2478-refine-outside-author
Oct 28, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/2478-refine-outside-author

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Refine could set Status Ready on an issue that any GitHub account opened on a public managed repository. Intake gives a Priority to every open issue, and a refine round did not look at the author_association of the author. Build agents take Ready items as work, so text from an outside account could steer agent work. Refine also wrote the text of the model into the issue body and its comment with three forms that GitHub does not show as text: an unclosed <!-- hid the rest of the body, and a <!-- devops-roadmap-record {...} --> in the text of the model became the job record (split_record returned {"Status": "Ready"}); a bare www. link became a link; and an owner/repo#N reference became a link with a backlink on the issue of the other repository.

  • Item carries author_association, which the issue listing already gives, so the check costs no request.
  • Without --item, a round leaves an item whose author is not OWNER, MEMBER or COLLABORATOR (CONST_ROADMAP_TRUSTED_AUTHORS, which intake also uses) waiting on a person. The item takes no place under --limit, the round makes no model call for it, and the report names the association and --item <number>. An item with no association is treated the same way. --item refines the item whoever opened it.
  • sanitize_text changes the < of <! and <? into &lt; after it strips the tags, so a stripped tag cannot build an opener again. It puts a bare www. link that the URLs of the investigation do not hold, and an owner/repo#N reference, in a code span, as it does for handles and URLs. render_proposal_section adds its own checked-at comment after it sanitizes the text.
  • The in-memory store opens an issue for the owner unless a test gives another association, because GitHub gives an association for every issue.
  • The help text of devops roadmap refine and --item names the rule, and the generated documents follow it. The reply schema and the prompts do not change.
  • The archived change openspec/changes/archive/2026-10-28-2478-refine-outside-author holds the evidence and the rejected alternatives, and adds two requirements to the roadmap-refine spec.

Closes #2478

…erson, and refine neutralizes comment openers, www links and cross-repository references

- An Item carries the author_association of its issue listing. Without
  --item, a refine round leaves an item whose author is not the owner, a
  member or a collaborator waiting on a person, with a detail line that
  names the association and --item. --item still refines it.
- sanitize_text turns the < of <! and <? into &lt; after it strips tags,
  and puts bare www. links that are not allowed and owner/repo#N
  references in code spans. The checked-at comment goes around the
  sanitized text.
- The in-memory store opens an issue for the owner unless a test gives
  another association.

Refs #2478
@dan-petty
dan-petty marked this pull request as ready for review October 28, 2026 19:38
@dan-petty
dan-petty merged commit e6230dc into main Oct 28, 2026
18 checks passed
@dan-petty
dan-petty deleted the fix/2478-refine-outside-author branch October 28, 2026 19:39
dan-petty pushed a commit that referenced this pull request Oct 28, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.11.0](v0.10.1...v0.11.0)
(2026-10-28)


### Features

* **monitoring:** the roadmap Service's identity refusals, failing and
stalled jobs, restarts, and GitHub and model request volume raise alerts
([#2496](#2496))
([0137f23](0137f23)),
closes [#2472](#2472)
* **service:** roadmap-service runs at one replica, and each model call
in the cluster is sent at most two times
([#2500](#2500))
([2d32dae](2d32dae)),
closes [#2494](#2494)


### Bug Fixes

* **cli:** every command reports a DevOpsCLIError through one exit seam
([#2502](#2502))
([eadd55f](eadd55f)),
closes [#2487](#2487)
* **github:** pr monitor waits until the checks settle and names every
blocker, and pr ready reads the merge-readiness verdict
([#2498](#2498))
([43326ea](43326ea))
* **k8s:** a pod that does not call the Kubernetes API mounts no service
account token
([#2522](#2522))
([305d3ba](305d3ba))
* **k8s:** the cloudflared tunnel replicas prefer different nodes and
keep one up through a drain
([#2499](#2499))
([d4edaf6](d4edaf6)),
closes [#1023](#1023)
* **k8s:** the grafana, prometheus, argo cd and loki clients dial
through the egress-checked factory, and their pre-flight address checks
go ([#2497](#2497))
([e7ca1d5](e7ca1d5))
* **monitoring:** the roadmap Service alerts count a series that starts
in the hour, and a lane of a new pod can stall
([#2514](#2514))
([c7692b2](c7692b2)),
closes [#2505](#2505)
* **review:** a review's scanners leave out the rules that never gave a
valid finding here
([#2508](#2508))
([fe953ac](fe953ac))
* **roadmap:** a refine round leaves an outside account issue to a
person, and refine neutralizes comment openers, www links and
cross-repository references
([#2507](#2507))
([e6230dc](e6230dc)),
closes [#2478](#2478)
* **sandbox:** the metrics scrape and the whitelist NetworkPolicy
resolve each host one time, through the egress check
([#2521](#2521))
([7c01426](7c01426))
* **security:** the subprocess environment guard refuses the zsh and
interpreter keys that make a child run code
([#2510](#2510))
([459621a](459621a))
* **service:** a restart keeps the halt, the budget window and the
failure ledger, and a rate limit or a suspended installation stops every
worker ([#2515](#2515))
([3630de1](3630de1)),
closes [#2474](#2474)


### Code Refactoring

* **config:** settings resolve in one declared order through
pydantic-settings sources
([#2518](#2518))
([6a5447a](6a5447a)),
closes [#2445](#2445)

---
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
…h reference and link that GitHub makes from its text (#2540)

`sanitize_text` in `src/devops_cli/roadmap/refine.py` now knows which
text of the model GitHub shows as code. The review of #2507 found that
the patterns of #2478 added backticks inside a code span, which closed
the span early and made GitHub link the text after it, and that they
missed references and links that GitHub links.

- markdown-it-py (CommonMark with tables) finds the code spans and code
blocks of the model's text. A link, a handle or a reference in code
stays as it is.
- An added code span takes one backtick more than the longest run in the
text, so it closes on its own backticks only. A space keeps a
replacement from a backtick next to it or a backslash before it.
- In a text that shows a backtick as text, GitHub's parser (cmark) and
markdown-it-py can take a later code span as text (GitHub's markdown API
shows `www.example.com` linked in ```A `` `x` `see www.example.com`
B```). There, each added code span takes a length of its own, and a link
in a code span is wrapped too.
- One pattern finds URLs (also `ftp://` and a scheme in capitals),
`www.` links (also after `>` and in a table cell), handles and
`owner/repo#N` references (also in emphasis, after a slash, a dot or a
handle). A URL ends before a backtick, `|`, a bracket, a parenthesis or
a backslash. An allowed link that a backtick follows before the next
space goes in a code span, because GitHub's autolink would take that
backtick.
- Each point of a comment goes on one line before it is sanitized, so a
code block that the sanitizer leaves cannot become a line of text.
- The `<` of `<!` and `<?` still becomes `&lt;` in a code span, because
`split_record` and the markers read the raw text. The design records
this trade-off.

The OpenSpec change `2525-refine-sanitize-code-spans` is archived in the
last commit.

Closes #2525
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant