Skip to content

A go-ahead for the code agent is not tied to the version of the work item the person approved #9707

Todo

Description

@ascerra

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 run assembles 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.md L31).

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

Related

Activity

  1. fullsend-ai-triage commented on Nov 19, 2026

    @fullsend-ai-triage

    🤖 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

  2. added
    feature
    triaged
    on Nov 19, 2026
  3. fullsend-ai-triage commented on Nov 19, 2026

    @fullsend-ai-triage

    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):

    • What counts as the "revision" of a work item: a hash of title and body, the last-edited timestamp, or the edit history? A content hash is probably the most robust, since timestamps change on edits that don't affect the text.
    • How should the triage result be fingerprinted: the comment id, a hash of its content, or both?
    • Where should the record live so PR reviewers can read it: a structured marker comment on the work item, a run artifact linked from the PR, or both?
    • These choices probably deserve a short ADR that builds on 0133 and 0141 before implementation.

    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:

    Given a recorded go-ahead fingerprint for a work item:
    - unchanged body + triage result  -> run proceeds; record readable from the PR
    - body edited after go-ahead      -> run stops; comment on work item reports the mismatch
    - new triage result after go-ahead -> run stops likewise
    - /fs-code re-issued after mismatch -> new fingerprint recorded; run proceeds
    Edge cases: label vs comment trigger, no prior triage result, whitespace-only edits, repeated go-aheads.
    

    Next steps:

    • /fs-code — agent creates a PR to implement this issue
    • /fs-code <your instruction> — agent implements with your specific guidance
  4. self-assigned this
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

featuretriaged

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions