Skip to content

Fix lifecycle updates failing after acceptance and activation #2051

Closed

Description

@bradygaster

Summary

The latest end-to-end planning run successfully performed acceptance and activation side effects, but each workflow concluded as failed when the final lifecycle-state update was rejected by the deterministic validator.

This is a false-failure product defect: work is created successfully while the canonical lifecycle tracker remains stale and GitHub reports a failed run.

User impact

  • Successful acceptance or activation appears broken.
  • The lifecycle tracker can remain at an earlier state instead of Activated.
  • Users may retry because the run is red, increasing concern about duplicate epics/tasks.
  • Failure-report issues are generated for operations whose primary side effects succeeded.
  • Demos and downstream automation cannot rely on workflow conclusion or lifecycle state.

Evidence

The failing runs report that the lifecycle body must contain an H2 lifecycle heading, state, last-command, and a nonterminal next-action consisting of a backticked /squad command. The shared validator now applies to every planning mode, while canonical lifecycle-producing guidance can still emit command-plus-prose. Terminal recognition must also correctly handle the actual /squad plan activate path.

Scope

Keep the correction focused on the existing lifecycle contract:

  • Align lifecycle-producing instructions/templates with the deterministic validator.
  • Require command-only Next action values for nonterminal lifecycle states, with explanatory prose outside that field.
  • Correctly classify /squad plan activate and the resulting Activated state as terminal.
  • Update the shared planning ontology rather than patching only one validation branch.
  • Add realistic regression coverage for scope acceptance, implementation acceptance, activation, and terminal activated state.

Acceptance criteria

  • Acceptance completes with a green workflow conclusion and updates the canonical lifecycle tracker.
  • Activation completes with a green workflow conclusion and records Activated.
  • A successful activation does not create a failure-report issue.
  • Retrying the corrected path does not duplicate generated epics or tasks.
  • Prompt/contract tests include realistic lifecycle bodies from the affected phases.
  • Existing lifecycle heading, state, last-command, metadata, and trust checks remain enforced.
  • npm run build and the smallest relevant gh-aw reliability/contract tests pass.

Out of scope

Activity

  1. added
    gh-awGitHub Agentic Workflows integration
    squad:agentic-workflows-devAssigned to agentic-workflows-dev (Agentic Workflows Engineer)
    on Sep 15, 2026
  2. added
    squadSquad triage inbox — Lead will assign to a member
    on Sep 15, 2026
  3. added a commit that references this issue on Sep 15, 2026
    fa661c8
  4. added a commit that references this issue on Sep 17, 2026
    f8545a1
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

    gh-awGitHub Agentic Workflows integrationsquadSquad triage inbox — Lead will assign to a membersquad:agentic-workflows-devAssigned to agentic-workflows-dev (Agentic Workflows Engineer)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions