Skip to content

Check a sub-agent's final report against reality (PR head, CI state, comments, leftovers) instead of trusting it #810

Open

Description

@scuttletoby

Goal: a sub-agent's final report is checked against reality by a tool, not trusted by the orchestrator reading it.

Today: T3 itself says when a child's run ends (the parent is woken; no guessing there). Merges only happen on green CI for the exact head commit (the merge helper waits for that head's result). Reviewers and the orchestrator read diffs. But the report's facts are taken on its word until someone checks: the PR number and head commit, the CI state, "these tests fail on the old code", "removing this line turns a test red", "worktree removed, nothing left running", "comment posted and read back".

Proposal: a small check that runs when a delegated child finishes and reports a fixed last line (PR <url> head <sha> CI <state> or branch <name> head <sha>):

  • the PR or branch exists and its head is that exact commit; the CI state matches GitHub's for that head;
  • the named comment exists and is the child's;
  • no worktree, server or background process the child started is still alive on its machine;
  • optional: CI re-runs the named "fails on old code" tests against the base commit (a job that checks the claim, not the agent).
    A mismatch is shown to the orchestrator as "report does not match" with the facts, so the orchestrator never acts on a wrong report.

General, not project-specific: the report line format and checks are the same for every project; project facts (repo) come from its config.

Activity

  1. scuttletoby commented on Nov 21, 2026

    @scuttletoby
    OwnerAuthor

    Addition (11-21): the check should also compare the report with the brief. A brief has numbered items, and the report must give one line per item (done / not done and why). A missing item is shown as "brief item N not reported". Part of the trusted fork roadmap.

    🤖 Generated with Claude Code

  2. added
    area:agents
    size:big
    type:feature
    on Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:agentssize:bigtype:feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions