feat(domain): add fork-and-pr workflow for upstream contributions#452
Merged
feat(domain): add fork-and-pr workflow for upstream contributions#452
Conversation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add explicit TypeSpec model changes (feature.tsp, lifecycle.tsp, pull-request.tsp) - Move upstreamPrUrl to PullRequest value object for cohesion - Add lifecycle state impact analysis across all consumers - Add fork error handling matrix (idempotent fork, already-a-fork detection) - Define PollUpstreamPrUseCase interface with input/output DTOs - Extend PrSyncWatcherService instead of creating parallel poller - Add spec initializer changes for commitSpecs=false path - Add database migration details - Add TDD test scenarios and Storybook story requirements - Add commitSpecs immutability enforcement - Add feature agent state channel requirements Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Corrected to reflect actual blocklist pattern (NON_ARCHIVABLE_STATES) instead of incorrectly describing an allowlist. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add the new required fields to all Feature object constructions in source code and test files. Update feature mapper with fork_and_pr, commit_specs, and upstream PR columns. Add AwaitingUpstream to lifecycle-to-node mapping. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Implement IGitForkService interface and GitForkService for GitHub fork operations. Add PollUpstreamPrUseCase for upstream PR status polling. Extend merge node with fork-and-PR flow branch. Add forkAndPr and commitSpecs channels to feature agent state. Create database migration 045 for new columns. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add forkAndPr/commitSpecs toggles to feature creation drawer with auto-flip logic. Extend PrSyncWatcherService to poll AwaitingUpstream features via IGitForkService. Add AwaitingUpstream visual treatment to feature node state config. Wire IGitForkService into ui command and dev server. Fix spec yaml. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add unit tests for GitForkService, PollUpstreamPrUseCase, and AwaitingUpstream polling in PrSyncWatcherService. Update existing tests for new forkAndPr/commitSpecs channels and args. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…rkflow fields - restructure create drawer: merge fork row into git row with separator - rename fork section to contribute, update tooltips - add ciWatchEnabled, enableEvidence, commitEvidence to feature entity - add migration 046 for per-feature workflow columns - wire new fields through all layers: tsp, mapper, use case, agent, ui - fix server action to pass forkAndPr and commitSpecs to use case - show all per-feature settings in overview tab Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ling - fix sqlite repository INSERT/UPDATE to include all feature columns - update merge prompt to respect commitSpecs flag (git reset -- specs/) - move lessons.md to project root, update CLAUDE.md and AGENTS.md refs Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…pr with fork - Add requireInteger helper to spec validation - Validate number (integer) and branch (string) in validateBaseSpec - Clarify number field type in analyze and requirements prompts - Fix "Add to PR" switch disabled when forkAndPr is enabled Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add commitSpecs guard to research and plan prompt builders, safety net to undo spec commits when flag is false, deploy bar padding fix, and unit tests for the commit-specs flag across all spec-phase prompts. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Spec schema now requires integer 'number' and string 'branch' fields. Update all integration test fixtures to include these fields. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
9fa29a1 to
f29b4e6
Compare
The create form requires a repository to be selected before the submit button is enabled. Pass ?repo=/test/repo to match the mocked repo. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
blackpc
pushed a commit
that referenced
this pull request
Mar 23, 2026
# [1.146.0](v1.145.0...v1.146.0) (2026-03-23) ### Features * **domain:** add fork-and-pr workflow for upstream contributions ([#452](#452)) ([b8a6a2c](b8a6a2c))
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
GitForkService(fork, push-to-fork, create-upstream-PR, get-PR-status),PollUpstreamPrUseCase(lifecycle transitions for upstream PRs), and extendedPrSyncWatcherServicewith upstream PR polling and mergeable trackingFeatureentity withforkAndPrandcommitSpecsfields, addedPullRequestvalue object, addedawaiting-upstreamlifecycle phaseawaiting-upstreampolling state in the feature nodeEvidence
Test Results
Test plan
🤖 Generated with Claude Code