Skip to content

fix(source-control): worker tier has no route to retire a disproved current bot threadΒ #1641

Closed

Description

@kyle-sexton

πŸ€– Agent-authored (autonomous babysit lane), found by the Codex review on #1633 while implementing #1614.

Problem

A babysit-prs worker run that correctly disproves a bot finding β€” classifies it INCORRECT, posts counter-evidence β€” has no way to retire the thread, so the PR cannot reach a mergeable state on that path.

Two independent guards produce this, and both are working as designed:

  • babysit_resolve_thread.py::classify returns skipped-not-outdated for any current thread under --autonomous. That guard exists so "an unattended worker cannot resolve a live finding and self-satisfy the merge gate", and it should stay.
  • orchestration.md's Worker Contract is tighter still: a worker may resolve only a thread already isOutdated in the pre-push snapshot it was dispatched with, and explicitly rejects outdatedness caused by the worker's own push.

An INCORRECT disposition involves no fix by definition, so the thread stays current and can never satisfy either gate. The same applies to a grounded VALID (defer). Under a base whose ruleset requires thread resolution, the PR then sits unmergeable on a finding that was fully and correctly addressed.

This is a capability gap, not a regression β€” it predates #1633. #1633 only made it visible, by writing down the disposition set that INCORRECT belongs to. Its prose now names the limitation explicitly (worker tier reports such a thread to the orchestrator as addressed-but-unresolvable rather than resolving it), so nothing currently instructs a worker to attempt something its tooling refuses. That is a correct description of today's behavior, not a fix.

Why the obvious fix is wrong

Relaxing classify's isOutdated requirement would remove the single guard standing between an unattended worker and self-satisfying its own merge gate. That is the exact hazard the #1614 adjudication declined to weaken. Do not take this route.

Candidate directions (not prescriptive)

  1. Orchestrator-side retirement. The worker reports the disproved thread; the orchestrator β€” which holds the lease and is not the context that authored the counter-evidence β€” resolves it against the worker's posted evidence. Keeps the worker guard intact and preserves the adjudicator-is-not-the-actor property.
  2. A distinct disposition-pinned resolve mode. A form that accepts a current thread only when a specific INCORRECT counter-evidence reply is pinned by comment id, so the "addressed" signal is the posted evidence rather than isOutdated. Needs care: the pin must be a signal the worker cannot manufacture for a finding it did not actually disprove.
  3. Leave it. Accept that a disproved current finding is an orchestrator/human escalation, and make sure the report surfaces it as such rather than as a stuck PR.

I lean 1 β€” it needs no new guard semantics and matches the authorization property #1633 establishes for deferrals. Whoever takes this should confirm against the current Worker Contract rather than trusting this triage.

Acceptance criteria

  • A worker that disproves a current bot finding leads to a terminal state β€” the thread retired by an authorized context, or a clearly-reported escalation β€” never a silently stuck PR.
  • classify's isOutdated requirement under --autonomous is not weakened.
  • Whatever path is chosen, the context that authored the counter-evidence is not the one that unblocks its own merge.
  • guard-contract.md gains a row for any new refusal or allowance.

Related

Activity

  1. kyle-sexton commented on Jul 27, 2026

    @kyle-sexton
    MemberAuthor

    πŸ€– Autonomous babysit lane (fable-autopilot), relaying the orchestrator lane's direction from the #1614 implementation.

    Orchestrator endorsement: option 1 (orchestrator-side retirement) is the leading candidate

    Final call stays open for operator triage β€” this records a direction, it does not close the decision.

    Option 1 from the body: the worker reports the disproved thread; the orchestrator β€” which holds the lease and did not author the counter-evidence β€” retires it against that posted evidence.

    Why it leads:

    • It needs no new guard semantics. Options 2 and 3 either invent an "addressed" signal the worker could manufacture, or accept a stuck PR as normal. Option 1 reuses machinery that already exists.
    • It preserves the property the guard is actually protecting. classify's isOutdated requirement exists so an unattended actor cannot satisfy its own merge gate β€” "signing its own permission slip." Orchestrator-side retirement keeps the adjudicator distinct from the actor, which is the property; isOutdated was only ever the cheapest available proxy for it.
    • It matches the authorization rule feat(source-control): ground deferred findings and name self-inflicted roundsΒ #1633 ships, so the codebase would carry one principle rather than two: the context that authored the evidence is not the context that acts on it.

    Scope note added since this issue was filed

    #1633 landed a routing rule that makes this gap load-bearing rather than latent: a non-outdated but addressed bot thread now routes to the independent resolution dispatch. The prose describes that route, but the wrapper has no mode implementing it β€” so the rule currently terminates in a fail-closed report ("leave the thread unresolved, do not merge, report it named") on every path lacking a reachable dispatch.

    That fallback is correct and safe, but it means an autonomous prose lane still cannot reach zero unresolved threads through the sanctioned path. Whatever direction is chosen here is what makes that routing rule executable rather than merely descriptive.

    Constraint restated, because it is the one that must not be traded away

    Do not relax classify's isOutdated requirement under --autonomous. It is the single guard between an unattended worker and self-satisfying its own merge gate. If a chosen design appears to need that relaxation, that is a signal the design has put the adjudicator and the actor back in the same context.

    Related

  2. self-assigned this
    on Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions