Repository navigation
Conversation
Signed-off-by: eshulman2 <ellashulman1@gmail.com>
Signed-off-by: eshulman2 <ellashulman1@gmail.com>
Signed-off-by: eshulman2 <ellashulman1@gmail.com>
Signed-off-by: eshulman2 <ellashulman1@gmail.com>
Signed-off-by: eshulman2 <ellashulman1@gmail.com>
Signed-off-by: eshulman2 <ellashulman1@gmail.com>
There was a problem hiding this comment.
Review with 3 points posted inline (comment only, no approve or request changes). Each one is checked against head 6b58b34. The PR is still a draft, so these are about the shape and not the details.
Thanks for bringing the CVE agent definitions upstream. My main worry is the number of agents. I think this adds more than the CVE work needs in this repository, and two of them are a second code agent and a second review agent next to the stock ones. I'd rather the stock code and review agents pick up CVE work, and keep new definitions for the steps they can't cover. The inline points and the question at the end are about where that line is. I can see the code, plan and triage prompts were 20 lines or fewer until the last two commits. The commit that made them long says it restores the CVE phase instructions (here), and I don't know yet why the short ones weren't enough, so most of this is questions.
- MEDIUM at
docs/cve-agents.md:3, the page doesn't say which controller the six bases are for - MEDIUM at
agents/cve-code.md:6, most of the code prompt is the stock code prompt as it stood on 19 October - MEDIUM at
agents/cve-plan.md:2, the plan prompt and the Jira triage prompt are one text with four differences
One more question, on cve-review. As I read it, this step reviews only the change named in the staged context, against the approved plan and its paths (here), and posts nothing itself (here, here). The stock review harness starts from a pull request (here) and posts through its post script (here), so I can see it doesn't fit as it is. I'm assuming this is the review agent used to review the code agent in a loop prior to PR creation? A harness with the stock one as base: can replace those scripts (here) and add a review persona (here), and the cve-security skill in this PR already carries the plan and paths rule (here). What would that still be missing?
Verified: all 17 files read at 6b58b34, with cve-code.md and the two result schemas compared against agents main 9061835 and ac4082a, and cve-plan.md compared against cve-jira-triage.md; raised by: Claude
| These harnesses give a trusted controller a starting point for composing CVE | ||
| agent runs. Each base uses `trigger: "false"` for event dispatch. The controller | ||
| checks the event and current authorization, prepares context, and invokes the | ||
| appropriate composed harness. |
There was a problem hiding this comment.
[MEDIUM] The page doesn't say which controller the six bases are for
As I read these lines and the ones further down (here), a base runs only after a controller has composed it with a model provider, staged context and host checks, and for the assessment base an evidence tool. The bases leave out the providers, pre_script and post_script that the stock harnesses carry (providers, scripts).
The table gives each base a condition the controller checks before starting it (here). What I can't find is which program that controller is and where it lives. The description of fullsend-ai/fullsend#9936 says that PR doesn't migrate the CVE controller. Is that the controller this page means? It's close to what I asked on the draft ADR in fullsend-ai/fullsend#9266 about the workflow adapter, where it lives and how a second team gets it (here).
The docs folder here covers the default agents shipped by Fullsend (here), so I'd expect a reader of this page to ask where the controller for these six comes from, and the extension for cve-assess (here).
Suggestion: could this page name the controller and link it? If part of it isn't public yet, I'd like to know that before we add six bases for it.
| description: Implement the human-approved remediation plan. | ||
| --- | ||
|
|
||
| # Code Agent |
There was a problem hiding this comment.
[MEDIUM] Most of this prompt is the stock code prompt as it stood on 19 October
At b10a2ea this prompt was 20 lines (here), and the harness loaded the cve-security and code-implementation skills as it does now (here). e17f906 restored the CVE phase instructions (here), and the docs page now says the agent files carry them (here). Most of what came back in this file is the stock prompt. 88 of the 115 non-blank lines of the stock agents/code.md from 19 October are in this file unchanged (stock at ac4082a). Apart from the front matter, what differs is five short passages and the last section, which grows from one line to 34 (here). The code and review result schemas are byte for byte the stock ones from that commit and keep the stock $id (code, review).
Why weren't the short prompt and the two skills enough? I ask because I'd like to know what stops the stock code agent from doing this step with the CVE parts on top. My guess is one of two things. A skill can add a rule, but as far as I know it can't take a sentence out of the stock prompt. The stock prompt says the agent may propose changes to any path (here), and this one says to edit only the paths in the approved plan (here). Or the agent doesn't always load the skill. Pull request 17 in the CVE workflow experiment repository says the CVE coder there "relies on voluntary skill discovery" (pull request), and that coder had the stock code harness from the same October commit as base:, with its own pre and post scripts and a CVE skill (harness).
The docs page says the CVE result schemas stay separate so each can evolve with its owning contract (here). The cost I see is that changes to the stock code agent have to be carried over by hand. Since 19 October main has added a repository boundary section (here) and a rule for stopping without a commit (here), with no_pr_reason in the result schema (here).
Suggestion: if it's one of those two, I'd rather we fix that for the stock code agent, so there is one code prompt to keep current. Would that work for the controller?
| name: cve-plan | ||
| description: Propose remediation for an admitted CVE assessment. |
There was a problem hiding this comment.
[MEDIUM] The plan prompt and the Jira triage prompt are one text with four differences
Apart from the name and description, agents/cve-jira-triage.md is this file plus a three-line opening (here), a longer environment check (plan, triage) and the VEX section (here). The harness files for the two differ only in agent: and slug: (plan, triage).
The docs page gives the two their own dispatch conditions (here) and describes them as different jobs (here). Both prompts tell the agent to assess applicability and then write the remediation plan (plan, triage, the plan step), and both already change course when the staged context carries an earlier assessment (here). So as I read it this is one job that can start two ways. I can see why cve-assess is its own definition, since it only has the cve tool (here), and plan revision reads to me as its own small job (here).
Do triage and planning have to stay two agent definitions, or could one definition cover both with the staged context saying how it was started?
Suggestion: if one can cover both, the VEX rules could move to the cve-security skill or sit behind a check of the staged context.
Adds five opt-in CVE agent bases for advisory assessment, Jira triage, planning, approved coding, and review. The harnesses disable direct event dispatch and document the controller conditions for each phase.
Jira triage and planning load the CVE security skill. Code and review also load the shared Fullsend implementation and review skills. These four harnesses validate structured output against the existing CVE schemas. The Pi assessment definition selects the exact native cve tool. Its controller overlay supplies the pinned hosted extension, evidence staging, and matching canonical history validation.
Validation: make lint, staged diff check, harness and skill path checks, and Draft 2020-12 schema checks passed. Hosted composition and execution require a controller overlay and a compatible Fullsend build.