Skip to content

fix(security-triage): preserve the kept tracker in dedupe handoffs - #2044

Merged
potiuk merged 1 commit into
apache:mainfrom
MakerFlyFly:fix/security-triage-dedupe-direction-upstream
Nov 10, 2026
Merged

potiuk merged 1 commit into
apache:mainfrom
MakerFlyFly:fix/security-triage-dedupe-direction-upstream

Conversation

@MakerFlyFly

Copy link
Copy Markdown
Contributor

Summary

  • Emit the kept tracker first in the PROBABLE-DUP proposal and recap so the deduplicate selector keeps the tracker chosen by triage.
  • Align the skill docs and bundled renderers with that order. Exercise both renderers through the deduplicate CLI selector with either numeric order.

Type of change

  • Skill change with a matching eval fixture
  • Python package
  • Documentation

Test plan

  • On upstream 3fd660b0b1316f475044c05dae17c5b86a12165e, both rendered commands resolved to keep=250, drop=212 for the synthetic report. After the fix both resolve to keep=212, drop=250.
  • All four pytest handoff cases failed against the base renderers and passed against the fix.
  • Linux package tests passed for security-management (839) and skill-evals (248).
  • Docker Linux recheck on this exact commit passed all five selected tests. Both rendered commands resolved to keep=212, drop=250.
  • Whole-tree prek run --all-files --skip workspace-pytest, including ruff, formatting, workspace mypy, lychee and plugin consistency. The actual Git hooks, scoped workspace pytest, and Magpie pre-first-PR checklist passed.
  • The four composition cases passed in two fresh Codex CLI smoke runs. Each full run was 23/24, with the same decision mismatch in an unchanged Step 2.6 precedent case. The saved responses replayed 24/24 before the case-4 link correction. Case-4 passed a fresh run with the corrected link.

RFC-AI-0004 compliance

  • HITL — the existing deduplicate confirmation still shows which tracker will close.
  • Vendor neutrality — the regression uses synthetic tracker data and the existing selector contract.
  • Write-access discipline — rendering and selector checks perform no tracker writes.

Linked issues

Closes #2043

Notes for reviewers

PROBABLE-DUP comments posted before this fix still contain the old command.
Before copying one, check that the first argument matches the Kept tracker: link, then confirm that the displayed tracker to close is the intended duplicate.

The composition eval checks the command direction for its documented aliases and whitespace-separated numeric arguments.
The pytest cases cover the production handoff.

Generative AI disclosure

Codex assisted with the implementation, tests, and drafting.
The contributor reviewed the patch before submitting it.
AI-assisted commits carry Generated-by: attribution.

The deduplicate selector keeps its first tracker. Pass the tracker
selected by triage first in proposals and recaps so the generated
command preserves it after confirmation.

Cover the renderer-to-selector handoff with both numeric orderings
and exercise the kept-first command in the composition eval.

Generated-by: Codex (GPT-6)
@github-actions github-actions Bot added family:security security-* skills family:tools tools/* family:docs Docs, MISSION.md, READMEs capability:triage Sweep + classify + propose disposition substrate:analytics Tool substrate: read-only metrics / dashboards / renderers substrate:framework-dev Tool substrate: build / validate / eval the framework itself labels Nov 9, 2026

@potiuk potiuk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Putting the kept tracker first in the PROBABLE-DUP handoff matches the deduplicate selector (dedupe <keep> <drop>), and the new tests drive both rendered commands through that selector in both numeric orders, so the fix is pinned where it matters.


This review was drafted by an AI-assisted tool and
confirmed by an Apache Magpie maintainer. The maintainer
approving this PR has read the findings and signed off. If
something feels off, please reply on the PR and a maintainer
will follow up.

More on how Apache Magpie handles maintainer review:
Contributing guide.

@potiuk
potiuk merged commit d37c79d into apache:main Nov 10, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

capability:triage Sweep + classify + propose disposition family:docs Docs, MISSION.md, READMEs family:security security-* skills family:tools tools/* substrate:analytics Tool substrate: read-only metrics / dashboards / renderers substrate:framework-dev Tool substrate: build / validate / eval the framework itself

Projects

None yet

Development

Successfully merging this pull request may close these issues.

security-issue-triage reverses deduplicate arguments for PROBABLE-DUP

2 participants