Skip to content

agents: start an agent job from a failed verify or soak #5339

Closed

Description

@lex00

Split from #5329. When a stage's verify or soak (#5326) fails, an agent job can start to look at the failure and propose a fix as a pull request. The job stays what agent jobs are now: the model holds a read token, a separate job holds the write token, the change is one commit on <product>/agent/<name>, and its pull request plans and waits for a person.

The trigger is a fact chant writes itself on chant/lifecycle, so it needs no webhook.

Needs #5326. Runs beside #5328: the agent's pull request never replaces a rollback the stage requested.

Acceptance criteria

  • on: "verify-failed" agent trigger in the Op spec, started by the failed verify or soak fact.
  • The failure output reaches the prompt as data, cut to a size limit.
  • The never-apply, never-approve and never-merge tests cover the trigger.
  • Run records carry the trigger and the failed stage.
  • Generators for GitHub, GitLab and Forgejo; docs in guide/agent-jobs.mdx.
  • The capability is exported with a *_FLOOR constant naming the chant release that carries it, so products can check or pin to it.

Activity

  1. added
    epic:delivery
    on Nov 19, 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

    epic:delivery

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions