Skip to content

AI Feature Orchestrator: Hooks & State Management (3/6), Fixes AB#3534743#397

Merged
shahzaibj merged 2 commits intomasterfrom
shahzaibj/orchestrator-hooks
Mar 12, 2026
Merged

AI Feature Orchestrator: Hooks & State Management (3/6), Fixes AB#3534743#397
shahzaibj merged 2 commits intomasterfrom
shahzaibj/orchestrator-hooks

Conversation

@shahzaibj
Copy link
Contributor

@shahzaibj shahzaibj commented Mar 5, 2026

Part 3: Hooks and State Management

Adds lifecycle hooks and the feature state CLI.

Hooks

Hook Trigger Purpose
subagent-start.js SubagentStart Injects active feature context into subagent sessions
subagent-stop.js SubagentStop Advances pipeline step when a subagent completes

State Management (state-utils.js)

CLI tool for managing feature state at ~/.android-auth-orchestrator/state.json:

  • list-features summary of all features
  • get-feature full feature details (by name or ID)
  • set-step advance pipeline step
  • add-feature, set-design, add-pbi, add-agent-pr manage artifacts

Supports lookup by feature name (not just ID), with case-insensitive and partial matching.

PR 3 of 6. Merge after Agents (#396).

Fixes AB#3534743

@shahzaibj shahzaibj requested a review from a team as a code owner March 5, 2026 21:46
@github-actions
Copy link

github-actions bot commented Mar 5, 2026

❌ Work item link check failed. Description does not contain AB#{ID}.

Click here to Learn more.

@github-actions
Copy link

github-actions bot commented Mar 5, 2026

✅ Work item link check complete. Description contains link AB#3534743 to an Azure Boards work item.

1 similar comment
@github-actions
Copy link

github-actions bot commented Mar 5, 2026

✅ Work item link check complete. Description contains link AB#3534743 to an Azure Boards work item.

@github-actions github-actions bot changed the title AI Feature Orchestrator: Hooks & State Management (3/6) AI Feature Orchestrator: Hooks & State Management (3/6), Fixes AB#3534743 Mar 5, 2026
p3dr0rv added a commit that referenced this pull request Mar 10, 2026
…400)

Update AB ID,
Below is an example of description that was failing with previous
implementation and works with new.

## AI-Driven Feature Development - Part 1: Skills

Adds the foundational skill definitions that power the AI feature
orchestrator pipeline.

### What's included

| Skill | Purpose |
|-------|---------|
| **design-author** | Creates detailed design specs following the team's
template |
| **design-reviewer** | Reads and addresses inline review comments on
design specs |
| **feature-planner** | Decomposes approved designs into repo-targeted
PBIs |
| **pbi-creator** | Creates work items in Azure DevOps with proper
metadata |
| **pbi-dispatcher** | Dispatches PBIs to GitHub Copilot coding agent |

Also includes:
- PBI description quality guide with good/bad examples
- Dispatch workflow reference

### Merge order
**PR 1 of 6.** Merge first  other PRs reference these skills.

1. ** Skills** (this PR)
2. Agents (#396)
3. Hooks & State (#397)
4. Prompts & Config (#398)
5. Extension (#394)
6. Docs & Setup (#395)

Fixes
[AB#3534741](https://identitydivision.visualstudio.com/fac9d424-53d2-45c0-91b5-ef6ba7a6bf26/_workitems/edit/3534741)
shahzaibj added a commit that referenced this pull request Mar 12, 2026
## AI-Driven Feature Development - Part 1: Skills

Adds the foundational skill definitions that power the AI feature
orchestrator pipeline.

### What's included

| Skill | Purpose |
|-------|---------|
| **design-author** | Creates detailed design specs following the team's
template |
| **design-reviewer** | Reads and addresses inline review comments on
design specs |
| **feature-planner** | Decomposes approved designs into repo-targeted
PBIs |
| **pbi-creator** | Creates work items in Azure DevOps with proper
metadata |
| **pbi-dispatcher** | Dispatches PBIs to GitHub Copilot coding agent |

Also includes:
- PBI description quality guide with good/bad examples
- Dispatch workflow reference

### Merge order
**PR 1 of 6.** Merge first  other PRs reference these skills.

1. ** Skills** (this PR)
2. Agents (#396)
3. Hooks & State (#397)
4. Prompts & Config (#398)
5. Extension (#394)
6. Docs & Setup (#395)

Fixes
[AB#3534741](https://identitydivision.visualstudio.com/fac9d424-53d2-45c0-91b5-ef6ba7a6bf26/_workitems/edit/3534741)
@shahzaibj shahzaibj merged commit 7a250e7 into master Mar 12, 2026
2 checks passed
shahzaibj added a commit that referenced this pull request Mar 12, 2026
#398)

## Part 4: Prompt Files and Config

Adds prompt files (slash commands) and MCP configuration.

### Prompt Files

| Command | Purpose |
|---------|---------|
| `/feature-design` | Start a new feature  research + design spec |
| `/feature-plan` | Decompose approved design into PBIs |
| `/feature-backlog` | Create PBIs in Azure DevOps |
| `/feature-dispatch` | Dispatch PBIs to Copilot coding agent |
| `/feature-status` | Check tracked PR statuses |
| `/feature-continue` | Resume from current pipeline step |
| `/feature-pr-iterate` | Review a PR, analyze comments, iterate with
agent |

Each prompt file uses `agent: feature-orchestrator` to route to the
custom agent.

### Config
- `.vscode/mcp.json`  ADO MCP server (work items, repos, pipelines)
- `.gitignore` exceptions for `.vscode/mcp.json` and extension artifacts

**PR 4 of 6. Merge after Hooks (#397).**

Fixes
[AB#3534744](https://identitydivision.visualstudio.com/fac9d424-53d2-45c0-91b5-ef6ba7a6bf26/_workitems/edit/3534744)

Co-authored-by: pedro romero vargas <76129899+p3dr0rv@users.noreply.github.com>
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.

3 participants