Repository navigation
Each Pass owns its lifecycle, from its gates to the run it dispatches, tested in-process behind the Pass seam - #417
Merged
Merged
Conversation
…hind the Pass seam (#414) The Pass seam grows calls to record a skip and a start, check the Harness and dispatch an issue, and its production adapter is renamed Launch and GitHub. Everything in a Pickup run after its lock runs in run_through, generic over the seam, and the entry point no longer builds Asks or calls run_to_end for one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…le call list Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Pickup run owns its lifecycle to its dispatch, tested in-process behind the Pass seam
…s behind the Pass seam (#415) The Pass seam grows a pull of the Launch directory's Base branch and the Architecture review session, which runs its conclusion inside the session and returns its result with the Session log. Everything in an Architect run after its lock and preflight checks runs in run_through, generic over the seam: the gates, the Harness check, the start, the pull, the review and the plan's dispatch, unless plan-only. The entry point no longer builds Asks or calls run_to_end for one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ktree, and clearer names The Pass seam's review call hands on the review's starting line once its worktree is ready, as before, so it follows the worktree's lines and is not printed when the worktree can't be made. The Architect run's outcome past its skip is Ran, the step before the dispatch is up_to_the_dispatch, and the tests no longer reach calls by position. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An Architect run owns its lifecycle to its dispatch, tested in-process behind the Pass seam (#415)
…tory skills, and shared test helpers beside InMemory The Architecture review's starting line is handed on inside the session again, once the Factory skills are linked, as on main. The repository and the ready-for-review Ending the Pass tests share move beside InMemory, and Call::Dispatch is named DispatchReadyIssue beside DispatchPlan. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Each Pass, an Architect run or a Pickup run, now owns its whole lifecycle in its own module, from its gates to the Spec run or Run it dispatches, generic over the Pass seam. Behaviour is unchanged.
Closes #413
Summary
The entry point's Pass arms shrink to the command's start, the Pass, and the command's finish:
The Pass seam (
src/pass.rs) grows the calls a Pass makes outside itself beyond GitHub. They areskipped,check_harness,started,pull,review<T>(the conclusion runs inside the session) anddispatch(Dispatch). The production adapterOnGitHubis renamedLaunchAndGitHub. It builds the dispatched run's Asks from the command's flags and the User config, on the checked Harness.InMemoryrecords every call in the one orderedcallslist, so a single assertion checks a whole Pass's order.Evidence
thirdshift pickuporthirdshift architectrun against the fakegh,gitandclaudebinaries. Examples: a skipped Pass makes no Harness check, and the dispatch comes after the label swap.After: in-process unit tests through
InMemoryinsrc/pickup.rsandsrc/architect.rs, for example:cargo testpasses (535 unit tests plus the end-to-end suites), andcargo clippy --all-targetsis clean.Merge Danger
Door: two-way
This is an internal refactor with no change to config, labels, logs or outputs. Reverting it is a plain revert.
Blast Radius: Passes
Every cron-driven
thirdshift pickupandthirdshift architectgoes through the new path. The risk is a subtle drift in the order of stderr lines or log records. The review found one: the review's starting line came before the Factory skills were linked. It is fixed in ea3e380.Unaddressed findings
Standards
Outsidetrait widens to ~14 methods (Divergent Change): skipped. The Spec decides on one seam for both Passes so that a single ordered call list covers a whole Pass.InMemory: skipped. The Spec puts it there: the Pass decides whether and what to dispatch, the adapter decides how, and the Asks rules keep their own tests.review<T>generic over one caller (Speculative Generality): skipped. The Spec makes it generic so that the seam module names no Architect type.pickup::runandarchitect::run, with the lock skip recorded outside the seam: skipped. The Spec records the lock skip before any adapter exists, and the two prologues differ in their error handling (?against a failed review).flags,configandharnesstravel together (Data Clumps): skipped. They are the adapter's fields and are bundled there once.Call::Started(Option<u64>)re-switches onWork: skipped. It is a test-only projection that keeps assertions short.run_throughandup_to_the_dispatch: skipped.<name>_throughis the codebase's convention, as the Spec requires.pull: boolandplan_only: boolside by side (Primitive Obsession): skipped. They are private fields with doc comments, and the reviewer judged them acceptable.Spec
clauderefuses, through the real Harness check.reviewtakes an extrastartingprogress line, not in the Spec's call shape: kept. It lets the line come after the worktree and the Factory skills are ready, as on main.InMemory::reviewreturns its scripted Session log even on failure, while the real adapter returns it only if the file exists: kept. It is a scripted fake, and the tests script exactly what they assert.Tickets
🤖 Generated with Claude Code