You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add portable workflow exports and atomic mapped draft imports using shared reference codecs, destination authorization, and source field identities.
Expose fork discovery, preview/apply, mappings, push/pull, selectors, recovery, and operation status through shared application use cases and generated v2/CLI contracts. Add stale-preview checks, durable request receipts, resumable copy work, and deployments bound to the admitted graph.
Document the CLI/HTTP flow and add a disposable database/HTTP/CLI harness covering concurrent retries, atomic refusal, permissions, both sync directions, pagination, and deployment readiness. Companion skills guidance: feat(skills): add portable imports and workspace sync guidance skills#10.
UI internal routes and v2 routes call the same authorized fork/sync application use cases, which reuse the existing create, promote, copy, remap, and rollback engine. The UI retains its current request/response and completion flow; v2 adds preview-bound receipts and durable completion through explicit admission options in that shared engine.
Type of Change
New feature and additive database migration
Testing
28 end-to-end scenarios passed with disposable PostgreSQL 17, real API-key authorization, HTTP adapters, CLI subprocesses, transaction locks, and deployment workers. External providers and the separate realtime process use controlled fixtures; this does not certify live provider accounts.
Full app Vitest suite: 47,720 passed, 153 skipped, including existing fork/sync and internal-route compatibility tests. Full CLI suite: 1,025 passed, 3 skipped.
All 26 package type checks, lint, 46 release audits, API validation, generated OpenAPI/CLI/docs checks, and migration safety against latest staging passed. The harness tests a fresh schema; migration safety is reviewed separately.
No new actionable issue was established in the changes since the previous review, so the latest revision appears safe to merge from this review’s scope.
Summary
Adds mapped, atomic workflow imports with preview fingerprints and durable operation receipts.
Adds fork discovery, preview/apply, push/pull, mapping, recovery, and operation-status APIs.
Adds resumable copy and deployment work tied to admitted workflow snapshots.
Extends generated CLI/OpenAPI documentation and disposable PostgreSQL integration coverage.
Diagram
sequenceDiagram
participant Client
participant Preview as Preview API
participant Apply as Apply API
participant DB as Transaction and receipts
participant Outbox as Durable outbox
participant Worker as Copy/deployment workers
Client->>Preview: Submit mappings and sync choices
Preview-->>Client: Fingerprint, plan, unresolved bindings
Client->>Apply: Confirm with requestId and fingerprint
Apply->>DB: Authorize, verify revision, commit admitted graph
DB-->>Client: Operation receipt
DB->>Outbox: Enqueue immutable copy/deployment work
Outbox->>Worker: Process resumable operations
Client->>Apply: Poll operation status
Apply-->>Client: Completion and deployment readiness
admitForkSync always sets syncResult: result on the report it persists and returns. Therefore an admitted sync cannot reach performFullDeploy or scheduleForkContentCopy below that return; those calls serve legacy requests without admission.
The PostgreSQL integration test now also checks all deployment-operation and deployment-version rows for the target after five concurrent requests, worker completion, and a retry. It requires exactly the one attempt and version recorded in the receipt. The same test checks that a subsequent draft edit cannot alter the admitted deployment and that polling reaches readiness.
This finding does not require a production-code change. The review-fix commit separately restores actor names in fork/sync activity and updates the existing route and API-contract tests for the shared application boundary.
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
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
UI internal routes and v2 routes call the same authorized fork/sync application use cases, which reuse the existing create, promote, copy, remap, and rollback engine. The UI retains its current request/response and completion flow; v2 adds preview-bound receipts and durable completion through explicit admission options in that shared engine.
Type of Change
Testing
Checklist