Skip to content

docs(adr): assess vulnerabilities with a read-only agent before the code agent - #9309

Open
ascerra wants to merge 5 commits into
mainfrom
docs/adr-0169-cve-assessment-agent
Open

ascerra wants to merge 5 commits into
mainfrom
docs/adr-0169-cve-assessment-agent

Conversation

@ascerra

@ascerra ascerra commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Records the decision to add a first-party cve agent that assesses one public vulnerability against one branch without changing anything, and to hand any fix to the existing code agent, which works only from a current verdict. Draft, for discussion alongside #9266, #9264 and #9265.

Updated 17 November after more prototype runs. The ADR now also lists the ways a work item can reach the agent and chooses the issue type where events carry one, with a label or a person's command everywhere else.

Related Issue

Tracked in #9670. Related: #9669 (an alert that has no work item), #9266 (dispatch to several targets), #9264 (recovery), #9265 (Pi tool selection), fullsend-ai/agents#1967 (keeping triage off these work items), #9577 and #402 (agent job on one forge, repository on another), #9395 (images per sandbox), #8944 (private tracker content and public repositories).

Changes

  • Add ADR 0169.
  • docs/architecture.md: one "Decided, not yet implemented" line under Agent Registry.
  • docs/problems/agent-architecture.md: a short role entry that links the ADR and names what stays open.

No implementation is in this PR.

What changed on 17 November

  • Options: a second list for how a work item reaches the agent (triage first, a label or command, the issue type).
  • Start: a work item of a vulnerability type starts the agent and skips triage. The triggers match the type by its id, which stays the same when a site renames the type. /fs-cve-triage and the fullsend-cve label replace /fs-cve and cve. On a vulnerability work item the code agent starts only on a person's /fs-code comment.
  • Target: host scripts resolve the repository and branch from a structured intake record and the adopter's release mapping.
  • Scope: a tracker security level counts as not public unless the adopter lists it as readable. The link to Document Jira data leakage risks for public repository configurations #2513, now closed, is replaced by the problem document from docs(problems): examine private context in public agent workflows #8944.
  • Handoff: the fix agent is held to the same record and files, as the review agent's finding on this PR suggested.
  • Tools: tools the agent calls run inside its sandbox, which holds no credential that can change code.
  • Forge scope: an agent job on one forge with the repository on another is named as not covered.
  • Consequences: security levels on every tracker, many trackers per vulnerability, the toolchain a branch declares, and vulnerabilities filed as ordinary issues.
  • The branch also merges main, so the link to the problem document resolves.

What the ADR does not decide

Evidence for claims about current behavior

Rows 1 to 9 are pinned as first written: fullsend at 8ef5d3d954653a7316e2a1af953ca4eac7cdf175, agents at 3b40ac718d29c3190b71e68447b9f4e938f19974, the experiment repository at 42b1a2eec8ef3b4513f56a576b09e82154483d01. The rows added on 17 November use fullsend at 17f01392505481a95b0e777bed9ee4bff5e45b93 and agents main at 0869ded8fa6ddd4b763c48a5a92a6fece28bb529.

Claim in the ADR Evidence
No existing agent produces a vulnerability verdict; triage labels and routes The agents repository ships seven harnesses: code, fix, prioritize, retro, review, scribe, triage. Triage's result is an action from a fixed list with no verdict or branch (schema L10–L13)
Triage's time budget is sized for labelling timeout_minutes: 10
The experiment composes triage, registers it as triage, and keeps a controller in the repository config.yaml, harness/triage-jira.yaml, scripts/cve_workflow.py
A harness can mount the repository read-only readonly_repo
A pre-script can stop a run before a sandbox exists FULLSEND_PRESCRIPT_OUTPUT and skipped=true
The code agent starts from ready-to-code or /fs-code harness/code.yaml trigger
The code agent may target a branch other than the default, within an allowlist ADR 0053; CODE_ALLOWED_TARGET_BRANCHES in the post-script
A run does not receive a branch from dispatch, so host scripts resolve it The dispatch record has no ref (ExecutionRef); a Jira-sourced GitLab run is "an agent pipeline on the pinned default branch"
Jira support is Cloud only Jira guide, prerequisites
Triage starts on any work item a person opens or edits harness/triage.yaml trigger
Jira events carry an issue type; its id is stable within a site and its name can be renamed, and a type-only change raises no event state.issue_type in the Jira poll adapter. The field appears in no other adapter document under normalized-event/v1
An agent entry can change a trigger ADR 0162, point 6
A GitLab job has assessed and changed a GitHub repository only with adopter-side scripts #9577

Prototype

A prototype is on the cve-assessment-agent branch of fullsend-ai/agents. It is not part of this PR and is not proposed for merge as it stands. Since 16 November it runs the workflow from the experiment repository as an ordinary agent (docs/cve.md).

What was run with it:

  • 17 November, fullsend v0.56.1, pi runtime, agent jobs on a private GitLab project with a Jira tracker: a failed assessment (the sandbox lacked the Go version the branch declares), then an affected verdict on a release branch of a private GitHub repository, then the code agent on a person's /fs-code, which opened a pull request on that repository with a verified commit inside the planned files. The review agent installed on the GitHub repository approved it. What that took is in GitLab agent jobs can only work on their own project, so a repository on another forge cannot be the target #9577.
  • Earlier, with the first prototype on v0.55.0 (notes), on the claude and pi runtimes: an affected verdict on a release branch, a fixed verdict on the default branch, and the handoff to the code agent.

Where the prototype differs from the ADR:

  • It starts only on a /fs-cve-triage comment (harness/cve.yaml trigger). It does not start from the issue type or a label, and it matches issue types by name, not id.
  • Triage and the code agent skip by the fullsend-cve label only (triage, code).
  • Its verdicts are affected, not_affected, uncertain and failed (schema), not the four in the ADR.
  • It refuses every work item that carries a Jira security level (docs/cve.md).
  • The fix agent is not held to the verdict's plan.
  • The cve agent has not run hosted on GitHub. On 17 November only the publish and the review ran there.

Testing

  • make lint passes (stage changes first, then run)
  • Tests added/updated for new or modified logic

Ran the repository's pre-commit hooks over the changed files, which is what make lint runs: all passed, including the three ADR hooks, the docs and Markdown link checks and secret detection. gitlint passes on the commit. No code changes, so no tests.

Checklist

  • PR title follows Conventional Commits (correct type, ! for breaking changes)
  • Commits are signed off (DCO) — human and human-directed agent sessions only
  • I wrote this contribution myself and can explain all changes in it

🤖 Generated with Claude Code

…ode agent

Record the decision to add a first-party cve agent that assesses one public
vulnerability against one branch without changing anything, and to hand any
fix to the existing code agent, which works only from a current verdict.

Adds ADR 0169 and the matching lines in architecture.md and the
agent-architecture problem document. No implementation is included. A
prototype is on the cve-assessment-agent branch of fullsend-ai/agents.

Signed-off-by: Adam Scerra <ascerra@redhat.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 3:44 AM UTC · Completed 3:54 AM UTC

Commit: 81c7090 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $2.45

@github-actions

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Site preview

Preview: https://00ef9d26-site.fullsend-ai.workers.dev

Commit: 21c601711b3b058e6095d534a6b1eaf9da9524ad

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Risk Assessment: moderate (2/5)

Details

Documentation-only PR adding ADR 0169 with low metadata risk, elevated to moderate by high commit churn, author contention, and co-change coupling on docs/architecture.md.

Previous run

Risk Assessment: moderate (2/5)

Details

Documentation-only PR adding ADR 0169 with low metadata risk, elevated to moderate by high commit churn, author contention, and co-change coupling on docs/architecture.md.

Previous run (2)

Risk Assessment: moderate (2/5)

Details

Documentation-only PR adding ADR 0169 with low metadata risk, elevated to moderate by high commit churn, author contention, and co-change coupling on docs/architecture.md.

Previous run (3)

Risk Assessment: moderate (2/5)

Details

Documentation-only PR adding ADR 0169 with low metadata risk, elevated to moderate by high commit churn, author contention, and co-change coupling on docs/architecture.md.

Previous run (4)

Risk Assessment: moderate (2/5)

Details

Documentation-only PR adding ADR 0169 with low metadata risk, elevated to moderate by high commit churn, author contention, and co-change coupling on docs/architecture.md.

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Review

Findings

Medium

  • [logic-error] docs/ADRs/0169-assess-vulnerabilities-with-a-read-only-agent-before-the-code-agent.md:213 — Adding conditions to the triage and code harnesses is insufficient to enforce the proposed routing exclusions. ADR 0162 says code-agent trigger overrides route nothing and triage retains workflow routing as fallback; the existing workflow independently starts triage on issue open/edit and code on ready-to-code. The harness-only conditions therefore cannot guarantee that vulnerability work waits for assessment or that ready-to-code does not start coding.
    Remediation: Make enforcement on every dispatch path an explicit prerequisite: either migrate these agents to authoritative CEL routing without workflow fallback, or add equivalent vulnerability exclusions to the legacy dispatch paths before enabling this workflow.
  • [logic-error] docs/ADRs/0169-assess-vulnerabilities-with-a-read-only-agent-before-the-code-agent.md — Carried forward from the prior review and still open. The PR head is unchanged since that review, so there is no evidence of resolution. The cited line (187) is now blank at the PR head, and this run could not re-derive the specific defect from the structured projection alone, so it stays open rather than being marked resolved.
    Remediation: Address the defect described in the prior review's finding for this ADR, or push a change that resolves it.

Low

  • [auth-bypass] docs/ADRs/0169-assess-vulnerabilities-with-a-read-only-agent-before-the-code-agent.md:135 — The structured-data handoff names where the authorization record is stored but not how its integrity is verified. Comment records get an author check; equivalent protection against other tracker users editing the structured fields is not specified. Design gap, not a demonstrated bypass.
    Remediation: Require host-only write access or independently verified integrity for structured handoff records, and reject records whose provenance cannot be established.
  • [auth-bypass] docs/ADRs/0169-assess-vulnerabilities-with-a-read-only-agent-before-the-code-agent.md:137 — Comment-based handoffs authenticate fullsend's identity, but the ADR does not say how the host tells an assessment authorization record from other comments by that identity. Record purpose, run provenance, work-item binding, and integrity of the vulnerability, branch, commit, and file list are not checked.
    Remediation: Specify a dedicated host-verifiable record format and bind accepted records to the assessment run and work item rather than relying on bot authorship alone.
  • [auth-bypass] docs/ADRs/0169-assess-vulnerabilities-with-a-read-only-agent-before-the-code-agent.md:145 — The /fs-code-only gate applies "on a vulnerability work item", identified by mutable issue type or label. Behavior after the fullsend-cve label is removed or the issue type changes is not specified.
    Remediation: Require the assessment and file-scope gates whenever an item has entered the vulnerability workflow, independent of later label or issue-type changes.
  • [auth-bypass] docs/ADRs/0169-assess-vulnerabilities-with-a-read-only-agent-before-the-code-agent.md:156 — Authority to write the intake record is left undecided although its fields select the target repository and branch. A valid release mapping establishes a destination, not permission to start work against it.
    Remediation: Define trusted intake writers and require target-specific authorization before assessment or coding.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR
Previous run

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6ImxvZ2ljLWVycm9yIiwi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oicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfOTg0NGQzNTkwMTJmYzc3ZSIsInN0YXR1cyI6Im9wZW4ifSx7ImlkIjoiZl81MjczZDQ2MTIxNTQwYWJkIiwic3RhdHVzIjoib3BlbiJ9XX0= -->

Review

Findings

Medium

  • [logic-error] docs/ADRs/0169-assess-vulnerabilities-with-a-read-only-agent-before-the-code-agent.md:213 — The Consequences section says the triage and code harnesses each gain a condition so a vulnerability work item reaches a verdict first. Harness conditions alone cannot enforce Decision 4's manual-only code start on GitHub: internal/cli/dispatch_route.go says a harness trigger: never opts an agent into CEL routing, code is absent from its routableAgents table, and .github/workflows/reusable-dispatch.yml still starts the code stage directly on the ready-to-code label. Implemented as written, the label-triggered code path would stay active on vulnerability work items. The latest push does not touch this passage.
    Remediation: Record the required GitHub dispatch/workflow change or CEL-routing migration as an implementation prerequisite alongside the harness conditions, and state that the vulnerability exclusion must also cover the workflow-routed ready-to-code path.

Low

  • [auth-bypass] docs/ADRs/0169-assess-vulnerabilities-with-a-read-only-agent-before-the-code-agent.md:150 — The target resolver can use an intake record set on the work item, but the ADR still leaves undecided who may write it and how its target-selecting fields are authorized. Without a host-side actor check, someone able to supply or edit intake data could redirect an assessment to a different mapped target. The new "tracker's own fields" option reduces the exposure but does not remove it where an intake record is used. This is an unresolved prerequisite, not a demonstrated runtime vulnerability.
    Remediation: Specify which verified actors may create or modify intake records, require host-side authorization of every target-selecting field, and invalidate assessments when an authorized intake change affects their target.
  • [auth-bypass] docs/ADRs/0169-assess-vulnerabilities-with-a-read-only-agent-before-the-code-agent.md:147 — Decision 4 holds the fix agent to the same record and files, but Consequences still says the enforcing check is built for the code agent only, so the fix agent is not yet bound in practice. The ADR names the gap; this is advisory.

Earlier findings

  • docs/ADRs/0169-assess-vulnerabilities-with-a-read-only-agent-before-the-code-agent.md:129, auth-bypass — resolved by change: Decision 4 now says host scripts write the record, that it is kept in structured tracker data where possible, and that a comment-only record is accepted only when written by fullsend's own identity.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR
Previous run (2)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6ImxvZ2ljLWVycm9yIiwiZmlsZSI6ImRvY3MvQURScy8wMTY5LWFzc2Vzcy12dWxuZXJhYmlsaXRpZXMtd2l0aC1hLXJlYWQtb25seS1hZ2VudC1iZWZvcmUtdGhlLWNvZGUtYWdlbnQubWQiLCJpZCI6ImZfNWJmNjEyMmIwNGQwN2JlNCIsImxpbmUiOjE4NywiYWN0aW9uYWJsZSI6dHJ1ZSwiZGltZW5zaW9uIjoiY29ycmVjdG5lc3MifSx7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJhdXRoLWJ5cGFzcyIsImZpbGUiOiJkb2NzL0FEUnMvMDE2OS1hc3Nlc3MtdnVsbmVyYWJpbGl0aWVzLXdpdGgtYS1yZWFkLW9ubHktYWdlbnQtYmVmb3JlLXRoZS1jb2RlLWFnZW50Lm1kIiwiaWQiOiJmXzdlMjhlYWMzZTExZTU3OTAiLCJsaW5lIjoxMjksImFjdGlvbmFibGUiOmZhbHNlLCJkaW1lbnNpb24iOiJzZWN1cml0eSJ9LHsic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6ImF1dGgtYnlwYXNzIiwiZmlsZSI6ImRvY3MvQURScy8wMTY5LWFzc2Vzcy12dWxuZXJhYmlsaXRpZXMtd2l0aC1hLXJlYWQtb25seS1hZ2VudC1iZWZvcmUtdGhlLWNvZGUtYWdlbnQubWQiLCJpZCI6ImZfOTg0NGQzNTkwMTJmYzc3ZSIsImxpbmUiOjEzOCwiYWN0aW9uYWJsZSI6ZmFsc2UsImRpbWVuc2lvbiI6InNlY3VyaXR5In0seyJzZXZlcml0eSI6ImxvdyIsImNhdGVnb3J5IjoiYXV0aC1ieXBhc3MiLCJmaWxlIjoiZG9jcy9BRFJzLzAxNjktYXNzZXNzLXZ1bG5lcmFiaWxpdGllcy13aXRoLWEtcmVhZC1vbmx5LWFnZW50LWJlZm9yZS10aGUtY29kZS1hZ2VudC5tZCIsImlkIjoiZl81MjczZDQ2MTIxNTQwYWJkIiwibGluZSI6MTM1LCJhY3Rpb25hYmxlIjpmYWxzZSwiZGltZW5zaW9uIjoic2VjdXJpdHkifV0sImRpc3Bvc2l0aW9ucyI6W3siaWQiOiJmXzdlMjhlYWMzZTExZTU3OTAiLCJzdGF0dXMiOiJvcGVuIn0seyJpZCI6ImZfNTI3M2Q0NjEyMTU0MGFiZCIsInN0YXR1cyI6Im9wZW4ifV19 -->

Review

Findings

Medium

  • [logic-error] docs/ADRs/0169-assess-vulnerabilities-with-a-read-only-agent-before-the-code-agent.md:187 — The Consequences section says the triage and code harnesses each gain a condition so a vulnerability work item reaches a verdict first, but harness conditions alone cannot enforce Decision 4's manual-only code start on GitHub. internal/cli/dispatch_route.go states that a harness trigger: never opts an agent into CEL routing, and code is absent from its routable-agent table; .github/workflows/reusable-dispatch.yml still starts code directly on the ready-to-code label; ADR 0162 documents the same limitation. Implemented as written, the label-triggered code path would stay active on vulnerability work items.
    Remediation: Record the required GitHub dispatch/workflow change or CEL-routing migration as an implementation prerequisite alongside the harness conditions, and state that the vulnerability exclusion must also cover the workflow-routed ready-to-code path.

Low

  • [auth-bypass] docs/ADRs/0169-assess-vulnerabilities-with-a-read-only-agent-before-the-code-agent.md:129 — The proposed handoff checks record freshness, the assessed branch and commit, and the permitted files, but does not specify how the host authenticates the assessment record stored on the work item. A user-authored comment or edited record could imitate an affected verdict or broaden its file list, and a person's later /fs-code does not authenticate the record. This is a design gap in a documentation-only PR, not an implemented bypass.
    Remediation: Require host-side verification of the record's provenance and integrity, binding vulnerability, repository, branch, commit and permitted files to a successful assessment run; reject user-authored imitations.
  • [auth-bypass] docs/ADRs/0169-assess-vulnerabilities-with-a-read-only-agent-before-the-code-agent.md:138 — The target resolver uses a structured intake record but leaves who writes it, and how its target-selecting fields are authorized, undecided. Without a host-side actor check, someone able to supply or edit intake data could redirect an assessment to a different mapped target. This is an unresolved prerequisite rather than a demonstrated runtime vulnerability.
    Remediation: Specify which verified actors may create or modify intake records, require host-side authorization of every target-selecting field, and invalidate assessments when an authorized intake change affects their target.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR
Previous run (3)

<!-- fullsend:review-diff-hash:add744ed812af8b5eac08f80bcfa0a67c80763a4298afdba9c38a99e2392b5a6 -->
<!-- fullsend:review-head:f7607834f40fafca76edcce55e9a0ad1acde7f96 -->
<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJhcHByb3ZlIiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJhdXRoLWJ5cGFzcyIsImZpbGUiOiJkb2NzL0FEUnMvMDE2OS1hc3Nlc3MtdnVsbmVyYWJpbGl0aWVzLXdpdGgtYS1yZWFkLW9ubHktYWdlbnQtYmVmb3JlLXRoZS1jb2RlLWFnZW50Lm1kIiwiaWQiOiJmXzdlMjhlYWMzZTExZTU3OTAiLCJsaW5lIjoxMjYsImFjdGlvbmFibGUiOmZhbHNlLCJkaW1lbnNpb24iOiJzZWN1cml0eSJ9LHsic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6ImF1dGgtYnlwYXNzIiwiZmlsZSI6ImRvY3MvQURScy8wMTY5LWFzc2Vzcy12dWxuZXJhYmlsaXRpZXMtd2l0aC1hLXJlYWQtb25seS1hZ2VudC1iZWZvcmUtdGhlLWNvZGUtYWdlbnQubWQiLCJpZCI6ImZfNTI3M2Q0NjEyMTU0MGFiZCIsImxpbmUiOjEzNSwiYWN0aW9uYWJsZSI6ZmFsc2UsImRpbWVuc2lvbiI6InNlY3VyaXR5In1dLCJkaXNwb3NpdGlvbnMiOlt7ImlkIjoiZl81MjczZDQ2MTIxNTQwYWJkIiwic3RhdHVzIjoib3BlbiJ9XX0= -->

Review

Findings

Low

  • [auth-bypass] docs/ADRs/0169-assess-vulnerabilities-with-a-read-only-agent-before-the-code-agent.md:126 — The Handoff decision (item 4) makes the affected-verdict record on the work item the thing that gates and limits the code agent's changes, but the ADR does not say how the host tells the real record from a lookalike. Item 3 implies a canonical host-published comment, yet the code-agent and fix-agent host checks are not required to accept only that host-authored record. A person's /fs-code comment authorises going ahead; it does not vouch for the record the change will use. This is a design-level gap, not an exploitable flaw today, since nothing is implemented yet.
    Remediation: Optionally add a sentence to the Handoff item saying the code and fix host checks accept only the record published by the assessment host scripts, bound to the work item, and reject records that are missing, ambiguous, or written by anyone else; otherwise track it in the implementation follow-up.
Previous run (4)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJhcHByb3ZlIiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJhdXRoLWJ5cGFzcyIsImZpbGUiOiJkb2NzL0FEUnMvMDE2OS1hc3Nlc3MtdnVsbmVyYWJpbGl0aWVzLXdpdGgtYS1yZWFkLW9ubHktYWdlbnQtYmVmb3JlLXRoZS1jb2RlLWFnZW50Lm1kIiwiaWQiOiJmXzdlMjhlYWMzZTExZTU3OTAiLCJsaW5lIjoxMjYsImFjdGlvbmFibGUiOmZhbHNlLCJkaW1lbnNpb24iOiJzZWN1cml0eSJ9LHsic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6ImF1dGgtYnlwYXNzIiwiZmlsZSI6ImRvY3MvQURScy8wMTY5LWFzc2Vzcy12dWxuZXJhYmlsaXRpZXMtd2l0aC1hLXJlYWQtb25seS1hZ2VudC1iZWZvcmUtdGhlLWNvZGUtYWdlbnQubWQiLCJpZCI6ImZfNTI3M2Q0NjEyMTU0MGFiZCIsImxpbmUiOjEzNSwiYWN0aW9uYWJsZSI6ZmFsc2UsImRpbWVuc2lvbiI6InNlY3VyaXR5In1dLCJkaXNwb3NpdGlvbnMiOlt7ImlkIjoiZl81MjczZDQ2MTIxNTQwYWJkIiwic3RhdHVzIjoib3BlbiJ9XX0= -->

Review

Findings

Low

  • [auth-bypass] docs/ADRs/0169-assess-vulnerabilities-with-a-read-only-agent-before-the-code-agent.md:126 — The Handoff decision (item 4) makes the affected-verdict record on the work item the thing that gates and limits the code agent's changes, but the ADR does not say how the host tells the real record from a lookalike. Item 3 implies a canonical host-published comment, yet the code-agent and fix-agent host checks are not required to accept only that host-authored record. A person's /fs-code comment authorises going ahead; it does not vouch for the record the change will use. This is a design-level gap, not an exploitable flaw today, since nothing is implemented yet.
    Remediation: Optionally add a sentence to the Handoff item saying the code and fix host checks accept only the record published by the assessment host scripts, bound to the work item, and reject records that are missing, ambiguous, or written by anyone else; otherwise track it in the implementation follow-up.
Previous run (5)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJhcHByb3ZlIiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJhdXRoLWJ5cGFzcyIsImZpbGUiOiJkb2NzL0FEUnMvMDE2OS1hc3Nlc3MtdnVsbmVyYWJpbGl0aWVzLXdpdGgtYS1yZWFkLW9ubHktYWdlbnQtYmVmb3JlLXRoZS1jb2RlLWFnZW50Lm1kIiwiaWQiOiJmXzUyNzNkNDYxMjE1NDBhYmQiLCJsaW5lIjoxMzUsImFjdGlvbmFibGUiOmZhbHNlLCJkaW1lbnNpb24iOiJzZWN1cml0eSJ9XX0= -->

Review

Findings

Low

  • [auth-bypass] docs/ADRs/0169-assess-vulnerabilities-with-a-read-only-agent-before-the-code-agent.md:135 — Decision item 4 (Handoff) has a host check reject code-agent changes outside the files in the verdict plan, but Consequences says the check "covers the code agent only; the fix agent ... needs the same check." The ADR names the gap without deciding to close it. It is already disclosed and this PR is docs-only, so nothing is bypassable today; advisory only.
    Remediation: Move the fix-agent requirement into Decision item 4 (same current-verdict and file-scope checks enforced on fix-agent changes; a change needing more files requires a new assessment), or state that the workflow must not be enabled until a later decision covers it.

Labels: ADR-only documentation PR; ADR PRs in this repo carry type/adr and component/docs.

fullsend-ai-review[bot]

This comment was marked as outdated.

ascerra and others added 2 commits November 17, 2026 07:36
Bring the draft in line with what the prototype runs have shown since
it was written.

- Options: list the three ways a work item can reach the cve agent
  (triage first, a label or command, the issue type) and choose the
  issue type where events carry one, with the label and command for
  everything else.
- Start: /fs-cve-triage and the fullsend-cve label replace /fs-cve and
  cve. On a vulnerability work item the code agent starts only on a
  person's /fs-code comment.
- Target: host scripts resolve the repository and branch from a
  structured intake record and the adopter's release mapping.
- Scope: a tracker security level counts as not public unless listed
  as readable. Link the problem document in place of closed #2513.
- Handoff: hold the fix agent to the same record and files.
- Tools: tools run inside the sandbox, which holds no credential that
  can change code.
- Forge scope: an agent job on one forge with the repository on
  another is not covered (#9577, #402).
- Consequences: security levels, many trackers per vulnerability,
  toolchain per branch (#9395), and vulnerabilities filed as ordinary
  issues.

Merges main first so the link to the problem document resolves.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Adam Scerra <ascerra@redhat.com>
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 12:40 PM UTC · Completed 12:48 PM UTC

Commit: f760783 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.86

fullsend-ai-review[bot]

This comment was marked as outdated.

@codecov

codecov Bot commented Nov 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

A Jira site can rename an issue type and the id stays the same, so the
cve and triage triggers match the type by its id. The ids belong to the
site, and an adopter sets them on its agents entries.

Also note as undecided whether a work item of a vulnerability type
should wait for a person's comment before its first assessment.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Adam Scerra <ascerra@redhat.com>
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 1:27 PM UTC · Completed 1:36 PM UTC

Commit: 387f36a · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.73

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review
fullsend-ai-review Bot dismissed their stale review November 17, 2026 13:36

Superseded by updated review

@fullsend-ai-review fullsend-ai-review Bot removed the requires-manual-review Review requires human judgment label Nov 17, 2026
Bring the draft in line with decisions made elsewhere since it was
written.

- Verdict: each run posts its verdict as a new comment and does not
  edit an earlier one (#9334).
- Handoff: host scripts write the record the code agent relies on. It
  is kept as structured data where the tracker can hold it, and a
  comment counts only when the fullsend identity wrote it.
- Target: the structured data may be the tracker's own fields or an
  intake record. Missing or ambiguous data stops the run; it does not
  choose a repository or report not affected.
- Scope: a change proposed on a public repository from a private
  tracker carries only public facts, with no link to the work item
  and no text from it. Note that no host check enforces this yet.
- Tools: an extension that collects evidence inside a run is allowed;
  the rejected option is an extension that holds the whole workflow.
- Forge scope: an alert that has no work item is not in scope.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Adam Scerra <ascerra@redhat.com>
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 6:58 PM UTC · Completed 7:07 PM UTC

Commit: 21c6017 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.53

fullsend-ai-review[bot]

This comment was marked as outdated.

@ascerra
ascerra marked this pull request as ready for review November 18, 2026 14:48
@ascerra
ascerra requested a review from a team as a code owner November 18, 2026 14:49
@qodo-code-review

qodo-code-review Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

PR Summary by Qodo

Document read-only CVE assessment before code changes

📝 Documentation 🕐 20-40 Minutes

Grey Divider

AI Description

• Add ADR 0169 for branch-specific vulnerability verdicts before any code change.
• Define issue-type and manual routing, public-finding checks, and a constrained human-approved
 handoff.
• Link the decision from architecture guidance; no agent implementation is included.
Merge Risk 🟢 Low

Blast radius 🟢 Low 💥 0 capabilities

  • No production behavior changes identified.
Behavioral complexity 🟢 Low 🧩 Assessed behavior

  • No production behavior changes identified.
Potential damage 🟢 Low 🩹 Assessed behavior

  • No production behavior changes identified.
Assessed commit 21c6017
Diagram

graph TD
  W["Work item"] --> T{"Vulnerability type?"} -->|yes| H{"Public and mapped?"} -->|yes| A["Read-only cve"] --> V["Verdict and record"] -->|affected| P["Person approves"] -->|fs-code comment| C["Code agent"]
  T -->|other| M["Label or command"] --> H
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Assess through triage first
  • ➕ Catches vulnerabilities filed as ordinary issues across trackers.
  • ➖ Triage may read nonpublic content before host checks and adds a run to every assessment.
2. Add CVE assessment to the code agent
  • ➕ Requires fewer distinct agents.
  • ➖ Grants write-capable code authority to assessments that may need no change.

Recommendation: Keep the proposed separate, read-only agent and host-checked handoff: they preserve least privilege and allow a justified no-change verdict. Before implementation, resolve the documented intake ownership and enforce the planned privacy and file-scope checks.

Files changed (3) +252 / -0

Documentation (3) +252 / -0
0169-assess-vulnerabilities-with-a-read-only-agent-before-the-code-agent.mdRecord the CVE assessment and fix-handoff decision +243/-0

Record the CVE assessment and fix-handoff decision

• Adds an ADR for a first-party read-only 'cve' agent, issue-type or manual routing, host-side publicity and target checks, and verdict-based handoff to the code agent. It compares alternatives and identifies unresolved intake, forge, toolchain, and privacy constraints.

docs/ADRs/0169-assess-vulnerabilities-with-a-read-only-agent-before-the-code-agent.md

architecture.mdAdd the planned CVE agent to the agent registry overview +1/-0

Add the planned CVE agent to the agent registry overview

• Summarizes the accepted but unimplemented assessment flow, its triggers, and the requirement that coding follow a current affected verdict. Links to ADR 0169.

docs/architecture.md

agent-architecture.mdDescribe the vulnerability assessment agent's role and limits +8/-0

Describe the vulnerability assessment agent's role and limits

• Adds a role entry describing verdicts, work-item authority, and lack of code write access. Links the ADR and names intake, per-branch work-item creation, and cross-forge execution as open questions.

docs/problems/agent-architecture.md

@qodo-code-review

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Tip of the day
💡 Did you know, you can type 'qodo, fix this' on a finding and the fix lands right on your PR

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 2:51 PM UTC · Completed 3:00 PM UTC

Commit: 21c6017 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.38

@fullsend-ai-review fullsend-ai-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

See the review comment for full details.


- A repository gets vulnerability assessment by registering one agent, and a
justified "not affected" needs no write access to code.
- The triage and code harnesses each gain a condition, so a vulnerability

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[medium] logic-error

Adding conditions to the triage and code harnesses is insufficient to enforce the proposed routing exclusions. ADR 0162 says code-agent trigger overrides route nothing and triage retains workflow routing as fallback; the existing workflow independently starts triage on issue open/edit and code on ready-to-code. The harness-only conditions therefore cannot guarantee that vulnerability work waits for assessment or that ready-to-code does not start coding.

Suggested fix: Make enforcement on every dispatch path an explicit prerequisite: either migrate these agents to authoritative CEL routing without workflow fallback, or add equivalent vulnerability exclusions to the legacy dispatch paths before enabling this workflow.

4. **Handoff.** An affected verdict records on the work item the
vulnerability, the branch, the commit and the files its plan may change.
Host scripts write that record, and a later assessment replaces it.
Where the tracker can hold structured data on a work item, the record is

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[low] auth-bypass

The structured-data handoff names where the authorization record is stored but not how its integrity is verified. Comment records get an author check; equivalent protection against other tracker users editing the structured vulnerability, branch, commit, or allowed-file fields is not specified. Design gap, not a demonstrated bypass.

Suggested fix: Require host-only write access or independently verified integrity for structured handoff records, and reject records whose provenance cannot be established.

Host scripts write that record, and a later assessment replaces it.
Where the tracker can hold structured data on a work item, the record is
kept there and not in comment text. Where it can only be a comment, the
host check accepts only a comment written by fullsend's own identity,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[low] auth-bypass

Comment-based handoffs authenticate fullsend's identity, but the ADR does not say how the host tells an assessment authorization record from other comments by that identity. Record purpose, run provenance, work-item binding, and integrity of the vulnerability, branch, commit, and file list are not checked.

Suggested fix: Specify a dedicated host-verifiable record format and bind accepted records to the assessment run and work item rather than relying on bot authorship alone.

It opens its change against the assessed branch
([ADR 0053](0053-agent-driven-branch-targeting.md)), and a host check
rejects a change outside those files. On a vulnerability work item the
code agent starts only on a person's `/fs-code` comment; the

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[low] auth-bypass

The /fs-code-only gate applies 'on a vulnerability work item', identified by mutable issue type or label. Behavior after the fullsend-cve label is removed or the issue type changes is not specified; an implementation that reevaluates only the current classification could route an assessed item through ordinary coding.

Suggested fix: Require the assessment and file-scope gates whenever an item has entered the vulnerability workflow, independent of later label or issue-type changes.

release mapping the adopter keeps in its repository, not the work item's
free text. When that data is missing or ambiguous, or the release has no
mapping, the run stops with a reason; it does not choose a repository
and does not report not affected. Who writes an intake record, where one

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[low] auth-bypass

Authority to write the intake record is left undecided although its fields select the target repository and branch. A valid release mapping establishes a destination, not permission to start work against it.

Suggested fix: Define trusted intake writers and require target-specific authorization before assessment or coding.

This branch was successfully deployed

1 active and 1 inactive deployments
site-preview — 21c60171 Deployed Nov 17, 2026 by github-actions[bot]
dev — 21c60171 Deployed Nov 17, 2026 by ascerra via behaviour #20528
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/docs User-facing documentation risk/moderate PR risk: moderate type/adr

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant