Add workspace sync operation contracts and DecisionCard conflict semantics#19
Draft
Add workspace sync operation contracts and DecisionCard conflict semantics#19
Conversation
Agent-Logs-Url: https://github.com/SourceOS-Linux/sourceos-syncd/sessions/744c639e-1999-4873-80c6-cbc4b6f037f1 Co-authored-by: mdheller <21163552+mdheller@users.noreply.github.com>
Agent-Logs-Url: https://github.com/SourceOS-Linux/sourceos-syncd/sessions/744c639e-1999-4873-80c6-cbc4b6f037f1 Co-authored-by: mdheller <21163552+mdheller@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Integrate sourceos-syncd as the State Integrity daemon
Add workspace sync operation contracts and DecisionCard conflict semantics
May 7, 2026
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.
This PR integrates
sourceos-syncdinto the local-first workspace sync contract surface by introducing explicit operation/task state for sync workflows and tightening conflict handling semantics. It also aligns fixtures/docs so downstream integrations can consume policy-gated, evidence-linked sync records consistently.Workspace sync state contracts
sourceos.workspace-operation/v1alpha1viaWorkspaceOperationRecordsourceos.operation-task/v1alpha1viaOperationTaskRecordlocal_operation_id↔remote_operation_idRequired operation type enforcement
sync.operation.enqueuesync.operation.replaysync.operation.reconcilesync.conflict.detectsync.conflict.resolvesync.repair.applysync.tombstone.applysync.checkpoint.writeConflict DecisionCard semantics
ConflictRecordto require adecision_cardobject.merge/fork/skip) and selected/recommended option consistency.Fixtures and contract coverage
examples/contracts/workspace-operation.alpha.jsonexamples/contracts/operation-task.alpha.jsondecision_card.Contract documentation updates
docs/contracts.mdwith:{ "schema": "sourceos.workspace-operation/v1alpha1", "operation_type": "sync.operation.reconcile", "local_operation_id": "local-op:0001", "remote_operation_id": "remote-op:9931", "provisional_artifact_ids": { "artifact:temp-1": "object:alpha" }, "artifact_reconciliation": { "artifact:temp-1": "artifact:final-44" }, "checkpoint_ref": "checkpoint:workspace-default-0001", "causal_parent_ids": ["local-op:0000"], "policy_decision_ref": "policy-decision:review-alpha", "ledger_evidence_refs": ["evidence:operation-0001"], "replay_safe": true }