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 Compare to deployed workflow row menus in fork push/pull settings. Reuse the existing comparison modal for Last Sync → Now, with structured subblock diffs and explicit unavailable states.
Advance the Last Sync baseline only when its destination deployment activates. Keep histories separate by fork and direction, preserve them through operation retention, and handle rollback, unlink, and deleted snapshots without guessing a baseline.
Pin reviewed source versions and commit mapping choices with the sync transaction. Share deployment admission across internal and v2 sync; expose comparison metadata in preview responses and the generated CLI contract.
Type of Change
Feature
Testing
Full repository suite on Node 24 with four workers: 349 script tests, 34,650 app tests, and all 19 workspace test tasks passed.
27 real PostgreSQL/HTTP/CLI integration tests; 8 running-app HTTP/CLI/MCP comparison checks; 6 internal fork HTTP checks. Activation, rollback, stale-source, exact-snapshot, and unlink regressions fail when their guards are independently removed.
Browser verified Pull and Push menus, readable header-table changes, unavailable/new-workflow states, and an actual push followed by an identical Last Sync → Now comparison.
Lint, 58 audits, all workspace type checks, standard generators, fresh migration replay, migration safety, and schema-drift checks passed.
Checklist
Code follows project style guidelines
Self-reviewed my changes
Tests added/updated and passing (new tests pass the test-audit authoring gate)
[High risk] Adds database schema and fork sync comparison tracking.
The PR appears safe to merge; no outstanding finding or new actionable issue was identified.
Summary
The PR adds exact source-deployment comparisons to fork sync and records the baseline when the destination deployment activates. It also pins source versions during sync, exposes comparison metadata through preview contracts, and covers activation, rollback, retention, and unlink behavior with integration tests. The follow-up changes document the comparison components, adjust deployment-result checks, and add a provenance lookup index.
Diagram
%%{init: {'theme': 'neutral'}}%%
flowchart LR
A[Sync preview] --> B[Pin source deployment]
B --> C[Admit destination deployment]
C --> D{Activation succeeds?}
D -- Yes --> E[Advance Last Sync baseline]
D -- No --> F[Keep prior baseline]
E --> G[Compare Last Sync to Now]
F --> G
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
Type of Change
Testing
Checklist
test-auditauthoring gate)