Skip to content

fix(gh-aw): accept granular activation lifecycle - #2050

Closed
bradygaster wants to merge 1 commit into
devfrom
bradygaster-automate-planning-journey
Closed

bradygaster wants to merge 1 commit into
devfrom
bradygaster-automate-planning-journey

Conversation

@bradygaster

Copy link
Copy Markdown
Collaborator

Summary

  • accept /squad plan activate as a terminal lifecycle command
  • extend idempotent terminal repair to granular activation after trusted impl-accepted evidence
  • add regression coverage for upsert and repair paths

Working as agentic-workflows-dev (Agentic Workflows Engineer).

Validation

  • npm test -- --run test/gh-aw-lifecycle-upsert.test.ts test/gh-aw-plan-lifecycle.test.ts — 101 passed
  • gh aw compile --strict --approve followed by plain gh aw compile --strict in an isolated repository layout — all seven workflows valid; only documented dispatcher bot-trigger warning
  • compiled artifact inspection — 14 source/lock files, five runtime modules, no JSON-escaped operators
  • realistic mutation — widening top-level issues permission to write was rejected by strict compilation
  • npm run build — passed

Closes #2049

Copilot AI lite review requested due to automatic review settings September 15, 2026 17:18
@github-actions

github-actions Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

🟡 Impact Analysis — PR #2050

Risk tier: 🟡 MEDIUM

📊 Summary

Metric Count
Files changed 3
Files added 0
Files modified 3
Files deleted 0
Modules touched 2

🎯 Risk Factors

  • 3 files changed (≤5 → LOW)
  • 2 modules touched (2-4 → MEDIUM)

📦 Modules Affected

root (1 file)
  • workflows/shared/squad.md
tests (2 files)
  • test/gh-aw-lifecycle-upsert.test.ts
  • test/gh-aw-quality.test.ts

This report is generated automatically for every PR. See #733 for details.

@github-actions

github-actions Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

🛫 PR Readiness Check

ℹ️ This comment updates on each push. Last checked: commit 6c3f61b

PR Scope: 🔧 Infrastructure

⚠️ 2 item(s) to address before review

Status Check Details
✅ Single commit 1 commit — clean history
✅ Not in draft Ready for review
✅ Branch up to date Up to date with dev
❌ Copilot review No Copilot review yet — it may still be processing
✅ Changeset present No source files changed — changeset not required
✅ Scope clean No .squad/ or docs/proposals/ files
✅ No merge conflicts No merge conflicts
❌ Copilot threads resolved 1 unresolved Copilot thread(s) — fix and resolve before merging
✅ CI passing All checks passing

Files Changed (3 files, +67 −6)

File +/−
test/gh-aw-lifecycle-upsert.test.ts +57 −0
test/gh-aw-quality.test.ts +4 −1
workflows/shared/squad.md +6 −5

Total: +67 −6


This check runs automatically on every push. Fix any ❌ items and push again.
See CONTRIBUTING.md and PR Requirements for details.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Unresolved critical and moderate findings remain in the workflow lifecycle handling.

Get a fresh assessment by requesting another Copilot review.

Review tier: Lite
Findings: 1 High severity

Open (1)
What changed in this PR

Updates gh-aw lifecycle handling to support granular /squad plan activate terminal activation and repair.

Changes:

  • Extends terminal command and artifact handling.
  • Adds idempotent repair support.
  • Adds granular activation regression coverage.
File Reviewed changes Findings
workflows/​shared/​squad.md Extends lifecycle validation and repair logic. Three unresolved findings: one critical assertion issue and two moderate repair/trigger coverage issues.
test/​gh-aw-lifecycle-upsert.test.ts Adds granular activation regression coverage. No final comments.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread workflows/shared/squad.md Resolved
Closes #2049

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@bradygaster
bradygaster force-pushed the bradygaster-automate-planning-journey branch from a038c75 to 6c3f61b Compare September 15, 2026 17:25
@bradygaster

Copy link
Copy Markdown
Collaborator Author

Superseded by #2052, merged into dev as 2099faf51c08a912c359209447011b06decf0565.

Concrete equivalence:

Closing this PR to avoid duplicating the lifecycle-contract fix now on dev.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix terminal lifecycle for granular plan activation

2 participants