Repository navigation
Todo
Description
What happens
A person starts the code agent on a work item by commenting /fs-code or by adding the ready-to-code label (trigger, code.yaml L45-L55). That go-ahead does not say which version of the work item, or which plan, the person approved.
The run starts later and works from the work item as it is then:
- By the accepted design,
fullsend runassembles its copy of the work item when the run starts (ADR 0141 L66-L67). - The code agent's first phase is to read the issue and the triage output (
code.mdL31).
What goes wrong
- The description or the triage plan can change between the go-ahead and the run. The code agent then works from the new text under the earlier go-ahead, and the person who gave it is not told.
- After the run, nothing shows what was approved, so a reviewer cannot compare the pull request with it.
- ADR 0133 decides whose text may reach a run (ADR 0141 L56-L62). It does not cover this case: an edit by an authorized person, or a new triage result, is admitted, and it still is not what was approved.
The review side already has the matching check. When the pull request head moved after it was reviewed, the review post-script asks for a fresh review of the new head (post-review.sh L2645-L2647). The go-ahead for code has none.
What should happen
- When a person gives the go-ahead, Fullsend records what it covers: the revision of the work item and the triage result it was given on.
- Before the code agent starts, Fullsend compares that record with the work item. If they differ, the run stops and says so on the work item, and the person can give the go-ahead again.
- The record stays where the reviewer of the pull request can read it.
Scope
- Not about who may give the go-ahead. That is the existing authorization.
- Not about edits that land after the run has started. That is Detect and flag linked-issue edits that land after code/review dispatch has already started #7504.
Related
- Add a planning phase before implementation. #113 proposes a planning phase whose plan is approved before implementation. An approved plan needs the same tie to the run.
- Evaluate task-bound scope for agent runs #9120 evaluates limiting a run to the files its task needs, recorded by whoever authorized the run. That list would be part of what the go-ahead covers.
- docs: ADR for human-gated permission adjustments and threat model #2821 covers approvals for permission changes and lists invalidating a stale one.
- Reference only: the proposed design for vulnerability work in docs(adr): assess vulnerabilities with a read-only agent before the code agent #9309 starts the code agent only from a verdict that is still current.
Reacted by fullsend-ai-triage
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsTodo
Activity
fullsend-ai-triage commentedon Nov 19, 2026
🤖 Finished Triage · ✅ Success · Started 5:50 PM UTC · Completed 5:52 PM UTC
Commit:
6c31db6· View workflow run →Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.19
fullsend-ai-triage commentedon Nov 19, 2026
Thanks for the detailed write-up. The gap is clear and actionable, and there is no open PR or blocking issue for it.
Where the work lands: the trigger (
harness/code.yaml) and agent prompt (agents/code.md) you reference live in the agents repository, not this one. The dispatch and run-time context-staging parts are in this repository, so a complete fix likely needs coordinated changes in both. If a change touches the shim or CI workflow files, the code agent can't modify those under its current permissions, so a human would need to make that part.Design questions for maintainers (not for the reporter):
Related, not blocking: #7504 (edits after run start, explicitly out of scope here), #113 (planning phase, needs the same tie once it exists), #9120 (task-bound scope, which would become part of what the go-ahead covers), #2821 and #9309 (reference only).
Proposed test case:
Next steps:
/fs-code— agent creates a PR to implement this issue/fs-code <your instruction>— agent implements with your specific guidance