Repository navigation
Conversation
Consolidate three divergent Phase definitions into a single canonical Zod schema in types.ts. Both state-schema.ts and run-log-schema.ts now re-export from the canonical source, eliminating the Phase as StatePhase alias in batch-executor.ts. Add Zod schemas for merge-check verdict types and fix misleading topological sort comment. Entire-Checkpoint: 0cac90807e23
6 tasks
worktree-discovery.ts was importing Phase from state-schema.ts (a re-export) instead of the canonical source in types.ts. No behavioral change — aligns the import with the single-source-of-truth pattern.
admarble
deleted the
feature/401-unify-phase-type-definitions-into-single-source-of
branch
March 25, 2026 05:38
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.
Summary
Phasedefinitions (types.ts, state-schema.ts, run-log-schema.ts) into a single canonical Zod schema + inferred TS type intypes.tsPhase as StatePhasealiased import inbatch-executor.tsas const+ Zod schemas for merge-check verdict types (CheckVerdict,BatchVerdict)batch-executor.tsPre-PR AC Verification
src/lib/workflow/types.ts:12-23npm run build+npm test(1908 passed)Phase as StatePhasealias eliminatedbatch-executor.ts:15removedas const+ Zodsrc/lib/merge-check/types.tsphase-types.test.ts(10 tests)Test plan
npm run buildpassesnpm run lintpasses (0 errors, 0 warnings)npm testpasses (1908/1910 — 2 pre-existing timeout failures unrelated to this change)phase-types.test.tsverifies schema identity across modulesCloses #401
🤖 Generated with Claude Code