-
Notifications
You must be signed in to change notification settings - Fork 17
refactor(e2e): demand-load phase routing #115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
df352cf
refactor(workflows): support demand-loaded routing
adalton 0850943
refactor(e2e): demand-load phase routing
adalton 703edba
fix(e2e): tighten phase completion contracts
adalton f21213c
fix(e2e): preserve legacy phase exits
adalton 75f8d52
fix(shared): sync override validation with implement PR
adalton 28bec39
fix(e2e): sync legacy override completion compatibility
adalton 150fa57
docs(e2e): clarify fallback and phase mapping contracts
adalton cd8e562
docs(overrides): sync workflow-neutral continuation guidance
adalton 4ff8eaa
fix(overrides): sync router-owned phase execution
adalton 5ff9000
refactor(overrides): sync conditional validation loading
adalton d2d768c
fix(e2e): sync override compatibility validation
adalton 9516467
Merge origin/main into e2e demand-loaded routing
adalton 73e6de2
Merge origin/main after implement demand-loaded routing
adalton File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| --- | ||
| name: completion | ||
| description: Recommend next steps after one attended e2e phase. | ||
| --- | ||
|
|
||
| # E2E Phase Completion | ||
|
|
||
| After the completed `PHASE` reports its results, recommend the best next step | ||
| for the actual outcome, mention relevant alternatives briefly, and stop for the | ||
| user. | ||
|
|
||
| - **ingest:** Recommend `/plan` unless the story context, [DEV] dependencies, | ||
| or test infrastructure has blocking gaps. Recommend clarification or waiting | ||
| for dependencies when planning cannot proceed safely. | ||
| - **plan:** Recommend `/revise` for user-requested changes, or `/code` when the | ||
| user has already reviewed and accepted the plan. | ||
| - **revise:** Recommend `/code` when the user is satisfied, or another | ||
| `/revise` round when further changes remain. | ||
| - **code:** Recommend `/validate`. If implementation exposed a plan gap, note | ||
| the inline plan update or offer `/plan` when user review is needed. For a | ||
| feature defect, report it without recommending an out-of-scope product-code | ||
| fix. For missing test infrastructure, present the documented deviation | ||
| options for user choice. | ||
| - **validate:** Recommend `/publish` only when validation passed. When failures | ||
| or anti-patterns remain, recommend fixing them and rerunning `/validate`. | ||
| Add missing scenarios when an acceptance-criteria gap is fixable; escalate | ||
| ambiguous or non-e2e-testable criteria to the user. | ||
| - **publish:** Recommend `/respond` when review comments arrive; otherwise the | ||
| workflow is complete for now. | ||
| - **respond:** Recommend `/validate` after code changes, another `/respond` | ||
| round while comments remain, or note completion when the PR is approved and | ||
| no work remains. | ||
|
|
||
| The user may start at `/code` with an existing plan or partial test | ||
| implementation, and may skip `/publish` and `/respond` when working locally. | ||
| Never auto-advance between attended phases. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| --- | ||
| name: dispatch | ||
| description: Resolve and execute one explicitly requested e2e phase. | ||
| --- | ||
|
|
||
| # E2E Phase Dispatch | ||
|
|
||
| E2E phase filenames follow the `{PHASE}.md` convention. If a phase uses a | ||
| different filename, define its mapping here before resolving overrides. | ||
|
|
||
| Before dispatching, read the project's `AGENTS.md` or `CLAUDE.md` only if | ||
| neither is already in the session. Then, given `PHASE`, initialize | ||
| `COMPLETION_CONSUMED=false`, announce `Starting /{PHASE}.`, and read and follow | ||
| `../../_shared/recipes/phase-override-resolution.md` with `WORKFLOW=e2e` and | ||
| `PHASE_FILE={PHASE}.md`. Read and execute the resolved phase file, passing | ||
| through the command context unchanged. | ||
|
|
||
| The built-in fallback is the phase file beside this dispatcher. Follow the | ||
| phase through its reporting step. Treat any supported phase exit—returning to | ||
| the invoking router, requesting completion guidance, or re-reading the | ||
| controller—as a return to this dispatcher. If the returned | ||
| `COMPLETION_HANDOFF` executes `completion.md`, set `COMPLETION_CONSUMED=true` | ||
| before executing that handoff. When the phase returns, read the guide once and | ||
| follow its guidance for `PHASE` only when `COMPLETION_CONSUMED=false`; the | ||
| dispatcher is the only component that reads the completion guide. | ||
|
|
||
| If the recipe rejects a project override, continue with its built-in fallback. | ||
| If that fallback cannot be resolved, an operational error prevents the phase | ||
| from completing, or the phase has no completion behavior compatible with this | ||
| workflow, report the failure and stop without reading `completion.md`. A | ||
| completed phase report with a failing verdict, including `validate.md` reporting | ||
| `FAIL`, is a valid outcome: read `completion.md` so it can provide fix-and-rerun | ||
| guidance. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.