diff --git a/packages/core/src/opendirector/domain/creation/commands.py b/packages/core/src/opendirector/domain/creation/commands.py index 124476e58..33248597a 100644 --- a/packages/core/src/opendirector/domain/creation/commands.py +++ b/packages/core/src/opendirector/domain/creation/commands.py @@ -499,6 +499,11 @@ def missing_versions_message(self, supplied) -> str: return contract_text('version_required', entries=', '.join(entries), options=' '.join(options)) +class CreationCommitCommandBase(CommandBase): + clientIntentFingerprint: Digest | None = Field(default=None, exclude_if=lambda value: value is None, + description='Caller-supplied SHA-256 of its original request before it was expanded into a command.') + + # HTTP/application contracts; Agent tool registration is a separate boundary. _COMMANDS = ( ('ProjectCreateCommand', 'project.create', ProjectCreate, 'Create a project.'), @@ -555,7 +560,8 @@ def missing_versions_message(self, supplied) -> str: ) COMMAND_MODELS = {} for _name, _type, _payload, _description in _COMMANDS: - _model = create_model(_name, __base__=CommandBase, __doc__=_description, type=(Literal[_type], Field(description='Command discriminator.')), + _base = CommandBase if _type.startswith('pipeline.') else CreationCommitCommandBase + _model = create_model(_name, __base__=_base, __doc__=_description, type=(Literal[_type], Field(description='Command discriminator.')), payload=(_payload, Field(description=_description))) COMMAND_MODELS[_type] = _model globals()[_name] = _model @@ -574,7 +580,7 @@ class BatchPayload(Contract): operations: tuple[Operation, ...] = Field(min_length=1, max_length=500, description='Ordered operations committed as one atomic transaction.') -BatchCommand = create_model('BatchCommand', __base__=CommandBase, +BatchCommand = create_model('BatchCommand', __base__=CreationCommitCommandBase, __doc__='Apply multiple operations atomically; all succeed or none are committed.', type=(Literal['creation.batch'], Field(description='Batch command discriminator.')), payload=(BatchPayload, Field(description='Ordered operations committed atomically.'))) @@ -638,6 +644,8 @@ class CommandReceipt(Contract): commandId: UUID = Field(description='Stable command ID for idempotent replay.') projectId: UUID = Field(description='Owning project ID.') inputFingerprint: Digest = Field(description='Fingerprint of the fixed execution input.') + clientIntentFingerprint: Digest | None = Field(default=None, exclude_if=lambda value: value is None, + description='Original request fingerprint supplied by the caller, if present in the recorded command.') status: Literal['applied', 'accepted', 'noop', 'rejected'] = Field(description='Current operation lifecycle state.') changed: tuple[ObjectVersion, ...] = Field(default=(), description='Business objects changed by the operation.') jobIds: tuple[UUID, ...] = Field(default=(), description='Generation jobs associated with this operation.') diff --git a/packages/core/src/opendirector/infrastructure/creation_publication.py b/packages/core/src/opendirector/infrastructure/creation_publication.py index bba3ef818..d101e874f 100644 --- a/packages/core/src/opendirector/infrastructure/creation_publication.py +++ b/packages/core/src/opendirector/infrastructure/creation_publication.py @@ -161,7 +161,8 @@ def _make_record(command, head, snapshot, changed, source, issue=None, *, placem event = ProjectEvent(projectId=command.projectId, cursor=snapshot.eventCursor, commandId=command.commandId, source=source, changed=changed, jobIds=job_ids) if changed else None receipt = CommandReceipt(commandId=command.commandId, projectId=command.projectId, - inputFingerprint=command_fingerprint(command), status='rejected' if issue else 'accepted' if job_ids else 'applied' if changed else 'noop', + inputFingerprint=command_fingerprint(command), clientIntentFingerprint=command.clientIntentFingerprint, + status='rejected' if issue else 'accepted' if job_ids else 'applied' if changed else 'noop', changed=[item['version'] for item in changed], jobIds=job_ids, issues=[issue] if issue else [], eventCursor=snapshot.eventCursor, canvasPlacements=placements) return CommitRecord(command=command, previousHead=head, snapshot=snapshot, receipt=receipt, event=event) diff --git a/packages/core/src/opendirector/infrastructure/creation_records.py b/packages/core/src/opendirector/infrastructure/creation_records.py index edc401c0a..9512520ea 100644 --- a/packages/core/src/opendirector/infrastructure/creation_records.py +++ b/packages/core/src/opendirector/infrastructure/creation_records.py @@ -59,6 +59,7 @@ def consistent(self): or self.receipt.projectId != self.command.projectId or self.receipt.commandId != self.command.commandId or self.receipt.inputFingerprint != command_fingerprint(self.command) + or self.receipt.clientIntentFingerprint != self.command.clientIntentFingerprint or self.receipt.eventCursor != self.snapshot.eventCursor): raise ValueError('Commit identity is inconsistent') applied = self.receipt.status in {'applied', 'accepted'} diff --git a/src/contracts/creation.schema.json b/src/contracts/creation.schema.json index 45c44e0f7..a36a718d2 100644 --- a/src/contracts/creation.schema.json +++ b/src/contracts/creation.schema.json @@ -139,6 +139,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/ArtifactPublish", "description": "Register an execution file as a project asset." @@ -299,6 +313,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/AssetDelete", "description": "Delete assets after an impact preview." @@ -479,6 +507,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/AssetImport", "description": "Register an uploaded file as a project asset." @@ -538,6 +580,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/AssetMetadataUpdate", "description": "Rename an asset." @@ -1044,6 +1100,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/AssetWriteText", "description": "Write a text asset or a new version of an existing text asset." @@ -1627,6 +1697,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/BatchPayload", "description": "Ordered operations committed atomically." @@ -1902,6 +1986,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/CanvasApplyEdit", "description": "Apply an editor result to a canvas item." @@ -2012,6 +2110,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/CanvasConfigure", "description": "Bind a generation configuration to a canvas item." @@ -2231,6 +2343,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/CanvasCreateGeneration", "description": "Create a visible generation node and references atomically, preserving canvas source connections, including pinned ones." @@ -2335,6 +2461,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/CanvasEditorAttach", "description": "Attach an editor document to a canvas item." @@ -2416,6 +2556,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/CanvasEditorAttach", "description": "Detach an editor document from a canvas item." @@ -2513,6 +2667,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/CanvasHide", "description": "Remove a canvas item; preserves project contents. Remove all visible items to clear the canvas." @@ -2757,6 +2925,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/EmptyPayload", "description": "Arrange the current canvas Pipeline groups and their children without moving locked groups." @@ -2838,6 +3020,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/EmptyPayload", "description": "Arrange the current canvas Run groups." @@ -2946,6 +3142,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/CanvasMaterialize", "description": "Bind an asset to an empty or material canvas item." @@ -3047,6 +3257,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/CanvasMove", "description": "Move one or more canvas items." @@ -3504,6 +3728,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/CanvasPublishMedia", "description": "Publish edited media outputs with their editor snapshot." @@ -3668,6 +3906,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/CanvasShow", "description": "Create or restore a canvas display item." @@ -3794,6 +4046,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/CanvasPresentationUpdate", "description": "Update canvas presentation, grouping or lock state." @@ -4174,6 +4440,20 @@ "title": "Inputfingerprint", "type": "string" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Original request fingerprint supplied by the caller, if present in the recorded command.", + "title": "Clientintentfingerprint" + }, "status": { "description": "Current operation lifecycle state.", "enum": [ @@ -4632,6 +4912,72 @@ "title": "ContractIssue", "type": "object" }, + "CreationCommitCommandBase": { + "additionalProperties": false, + "properties": { + "commandId": { + "description": "Stable command ID for idempotent replay.", + "format": "uuid", + "title": "Commandid", + "type": "string" + }, + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + }, + "type": { + "description": "Operation or variant discriminator.", + "title": "Type", + "type": "string" + }, + "expectedVersions": { + "default": [], + "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", + "items": { + "$ref": "#/$defs/ObjectVersion" + }, + "title": "Expectedversions", + "type": "array" + }, + "expectedPreview": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Fingerprint of the confirmed impact preview.", + "title": "Expectedpreview" + }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + } + }, + "required": [ + "commandId", + "projectId", + "type" + ], + "title": "CreationCommitCommandBase", + "type": "object" + }, "CreationContracts": { "additionalProperties": false, "properties": { @@ -5673,6 +6019,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/EditorWrite", "description": "Create an editable document." @@ -5878,6 +6238,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/EditorWrite", "description": "Save an editable document." @@ -6753,6 +7127,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/GenerationSubmit", "description": "Submit a generation job with fixed inputs and an adoption policy." @@ -7206,6 +7594,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/GroupPlanDraft", "description": "Publish the segment plan as a Markdown canvas node." @@ -7265,6 +7667,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/GroupPlanDraft", "description": "Save a draft segment plan." @@ -7324,6 +7740,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/HistoryReplay", "description": "Reapply an undone command." @@ -7399,6 +7829,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/HistoryReplay", "description": "Undo a recorded reversible command." @@ -9028,6 +9472,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/JobControl", "description": "Request cancellation of an existing job." @@ -9101,6 +9559,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/JobCheckpoint", "description": "Persist a job execution checkpoint." @@ -9176,6 +9648,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/JobControl", "description": "Recover an existing job without creating a new attempt." @@ -12001,6 +12487,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/NodeVersionApply", "description": "Apply a historical asset version and its reference policy to a canvas item." @@ -12093,6 +12593,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/NodeVersionExport", "description": "Export a generated video version to a new generation node with its reference assets and source links." @@ -13385,6 +13899,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/ProjectCreate", "description": "Create a project." @@ -13597,6 +14125,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/ProjectRename", "description": "Rename the project." @@ -13656,6 +14198,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/EmptyPayload", "description": "Restore a trashed project." @@ -13953,6 +14509,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/EmptyPayload", "description": "Move the project to trash." @@ -14157,6 +14727,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/ReferenceWrite", "description": "Add a generation reference; expectedVersions must include its target generation_spec." @@ -14332,6 +14916,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/ReferenceRemove", "description": "Deactivate a generation reference." @@ -14413,6 +15011,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/ReferenceWrite", "description": "Restore a generation reference." @@ -14494,6 +15106,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/ReferenceWrite", "description": "Update a generation reference." @@ -14786,6 +15412,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/ResultSelect", "description": "Adopt an existing generation result." @@ -15194,6 +15834,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/SpecWrite", "description": "Create a generation configuration without submitting a job." @@ -15275,6 +15929,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/SpecPromptWrite", "description": "Update prompt text and structured references." @@ -15442,52 +16110,80 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, - "payload": { - "$ref": "#/$defs/SpecRestore", - "description": "Restore generation settings from a historical command." - } - }, - "required": [ - "commandId", - "projectId", - "type", - "payload" - ], - "title": "SpecRestoreCommand", - "type": "object" - }, - "SpecUpdateCommand": { - "additionalProperties": false, - "description": "Replace the complete generation configuration; preserve unedited fields and use the current version. Jobs are unchanged.", - "properties": { - "commandId": { - "description": "Stable command ID for idempotent replay.", - "format": "uuid", - "title": "Commandid", - "type": "string" - }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", - "type": "string" - }, - "type": { - "const": "generationSpec.update", - "description": "Command discriminator.", - "title": "Type", - "type": "string" - }, - "expectedVersions": { - "default": [], - "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", - "items": { - "$ref": "#/$defs/ObjectVersion" - }, - "title": "Expectedversions", - "type": "array" - }, - "expectedPreview": { + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, + "payload": { + "$ref": "#/$defs/SpecRestore", + "description": "Restore generation settings from a historical command." + } + }, + "required": [ + "commandId", + "projectId", + "type", + "payload" + ], + "title": "SpecRestoreCommand", + "type": "object" + }, + "SpecUpdateCommand": { + "additionalProperties": false, + "description": "Replace the complete generation configuration; preserve unedited fields and use the current version. Jobs are unchanged.", + "properties": { + "commandId": { + "description": "Stable command ID for idempotent replay.", + "format": "uuid", + "title": "Commandid", + "type": "string" + }, + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + }, + "type": { + "const": "generationSpec.update", + "description": "Command discriminator.", + "title": "Type", + "type": "string" + }, + "expectedVersions": { + "default": [], + "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", + "items": { + "$ref": "#/$defs/ObjectVersion" + }, + "title": "Expectedversions", + "type": "array" + }, + "expectedPreview": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Fingerprint of the confirmed impact preview.", + "title": "Expectedpreview" + }, + "clientIntentFingerprint": { "anyOf": [ { "pattern": "^[0-9a-f]{64}$", @@ -15498,8 +16194,8 @@ } ], "default": null, - "description": "Fingerprint of the confirmed impact preview.", - "title": "Expectedpreview" + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" }, "payload": { "$ref": "#/$defs/SpecWrite", @@ -17437,6 +18133,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/TimelinePublishRender", "description": "Publish a rendered timeline result." @@ -18984,6 +19694,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/VideoTrim", "description": "Trim a source canvas video using its exact asset version, then publish a new video node and its edit snapshot." @@ -20050,6 +20774,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/ArtifactPublish", "description": "Register an execution file as a project asset." @@ -20214,6 +20952,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/AssetDelete", "description": "Delete assets after an impact preview." @@ -20396,6 +21148,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/AssetImport", "description": "Register an uploaded file as a project asset." @@ -20457,6 +21223,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/AssetMetadataUpdate", "description": "Rename an asset." @@ -20984,6 +21764,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/AssetWriteText", "description": "Write a text asset or a new version of an existing text asset." @@ -21595,6 +22389,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/BatchPayload", "description": "Ordered operations committed atomically." @@ -21873,6 +22681,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/CanvasApplyEdit", "description": "Apply an editor result to a canvas item." @@ -21986,6 +22808,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/CanvasConfigure", "description": "Bind a generation configuration to a canvas item." @@ -22208,6 +23044,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/CanvasCreateGeneration", "description": "Create a visible generation node and references atomically, preserving canvas source connections, including pinned ones." @@ -22314,6 +23164,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/CanvasEditorAttach", "description": "Attach an editor document to a canvas item." @@ -22397,6 +23261,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/CanvasEditorAttach", "description": "Detach an editor document from a canvas item." @@ -22496,6 +23374,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/CanvasHide", "description": "Remove a canvas item; preserves project contents. Remove all visible items to clear the canvas." @@ -22752,6 +23644,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/EmptyPayload", "description": "Arrange the current canvas Pipeline groups and their children without moving locked groups." @@ -22835,6 +23741,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/EmptyPayload", "description": "Arrange the current canvas Run groups." @@ -22946,6 +23866,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/CanvasMaterialize", "description": "Bind an asset to an empty or material canvas item." @@ -23049,6 +23983,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/CanvasMove", "description": "Move one or more canvas items." @@ -23516,6 +24464,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/CanvasPublishMedia", "description": "Publish edited media outputs with their editor snapshot." @@ -23682,6 +24644,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/CanvasShow", "description": "Create or restore a canvas display item." @@ -23811,6 +24787,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/CanvasPresentationUpdate", "description": "Update canvas presentation, grouping or lock state." @@ -24202,6 +25192,20 @@ "title": "Inputfingerprint", "type": "string" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Original request fingerprint supplied by the caller, if present in the recorded command.", + "title": "Clientintentfingerprint" + }, "status": { "description": "Current operation lifecycle state.", "enum": [ @@ -24673,6 +25677,74 @@ "title": "ContractIssue", "type": "object" }, + "CreationCommitCommandBase": { + "additionalProperties": false, + "properties": { + "commandId": { + "description": "Stable command ID for idempotent replay.", + "format": "uuid", + "title": "Commandid", + "type": "string" + }, + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + }, + "type": { + "description": "Operation or variant discriminator.", + "title": "Type", + "type": "string" + }, + "expectedVersions": { + "default": [], + "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", + "items": { + "$ref": "#/$defs/ObjectVersion" + }, + "title": "Expectedversions", + "type": "array" + }, + "expectedPreview": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Fingerprint of the confirmed impact preview.", + "title": "Expectedpreview" + }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + } + }, + "required": [ + "commandId", + "projectId", + "type", + "expectedVersions", + "expectedPreview" + ], + "title": "CreationCommitCommandBase", + "type": "object" + }, "CreationContracts": { "additionalProperties": false, "properties": { @@ -25742,6 +26814,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/EditorWrite", "description": "Create an editable document." @@ -25953,6 +27039,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/EditorWrite", "description": "Save an editable document." @@ -26862,6 +27962,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/GenerationSubmit", "description": "Submit a generation job with fixed inputs and an adoption policy." @@ -27330,6 +28444,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/GroupPlanDraft", "description": "Publish the segment plan as a Markdown canvas node." @@ -27391,6 +28519,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/GroupPlanDraft", "description": "Save a draft segment plan." @@ -27452,6 +28594,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/HistoryReplay", "description": "Reapply an undone command." @@ -27529,6 +28685,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/HistoryReplay", "description": "Undo a recorded reversible command." @@ -29241,68 +30411,96 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, - "payload": { - "$ref": "#/$defs/JobControl", - "description": "Request cancellation of an existing job." - } - }, - "required": [ - "commandId", - "projectId", - "type", - "expectedVersions", - "expectedPreview", - "payload" - ], - "title": "JobCancelCommand", - "type": "object" - }, - "JobCheckpoint": { - "additionalProperties": false, - "properties": { - "job": { - "$ref": "#/$defs/Job", - "description": "Generation execution record." - } - }, - "required": [ - "job" - ], - "title": "JobCheckpoint", - "type": "object" - }, - "JobCheckpointCommand": { - "additionalProperties": false, - "description": "Persist a job execution checkpoint.", - "properties": { - "commandId": { - "description": "Stable command ID for idempotent replay.", - "format": "uuid", - "title": "Commandid", - "type": "string" - }, - "projectId": { - "description": "Owning project ID.", - "format": "uuid", - "title": "Projectid", - "type": "string" - }, - "type": { - "const": "job.checkpoint", - "description": "Command discriminator.", - "title": "Type", - "type": "string" - }, - "expectedVersions": { - "default": [], - "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", - "items": { - "$ref": "#/$defs/ObjectVersion" - }, - "title": "Expectedversions", - "type": "array" - }, - "expectedPreview": { + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, + "payload": { + "$ref": "#/$defs/JobControl", + "description": "Request cancellation of an existing job." + } + }, + "required": [ + "commandId", + "projectId", + "type", + "expectedVersions", + "expectedPreview", + "payload" + ], + "title": "JobCancelCommand", + "type": "object" + }, + "JobCheckpoint": { + "additionalProperties": false, + "properties": { + "job": { + "$ref": "#/$defs/Job", + "description": "Generation execution record." + } + }, + "required": [ + "job" + ], + "title": "JobCheckpoint", + "type": "object" + }, + "JobCheckpointCommand": { + "additionalProperties": false, + "description": "Persist a job execution checkpoint.", + "properties": { + "commandId": { + "description": "Stable command ID for idempotent replay.", + "format": "uuid", + "title": "Commandid", + "type": "string" + }, + "projectId": { + "description": "Owning project ID.", + "format": "uuid", + "title": "Projectid", + "type": "string" + }, + "type": { + "const": "job.checkpoint", + "description": "Command discriminator.", + "title": "Type", + "type": "string" + }, + "expectedVersions": { + "default": [], + "description": "Current versions of mutated existing objects; payload revision fields do not replace these.", + "items": { + "$ref": "#/$defs/ObjectVersion" + }, + "title": "Expectedversions", + "type": "array" + }, + "expectedPreview": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Fingerprint of the confirmed impact preview.", + "title": "Expectedpreview" + }, + "clientIntentFingerprint": { "anyOf": [ { "pattern": "^[0-9a-f]{64}$", @@ -29313,8 +30511,8 @@ } ], "default": null, - "description": "Fingerprint of the confirmed impact preview.", - "title": "Expectedpreview" + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" }, "payload": { "$ref": "#/$defs/JobCheckpoint", @@ -29393,6 +30591,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/JobControl", "description": "Recover an existing job without creating a new attempt." @@ -32297,6 +33509,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/NodeVersionApply", "description": "Apply a historical asset version and its reference policy to a canvas item." @@ -32391,6 +33617,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/NodeVersionExport", "description": "Export a generated video version to a new generation node with its reference assets and source links." @@ -33720,6 +34960,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/ProjectCreate", "description": "Create a project." @@ -33939,6 +35193,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/ProjectRename", "description": "Rename the project." @@ -34000,6 +35268,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/EmptyPayload", "description": "Restore a trashed project." @@ -34310,6 +35592,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/EmptyPayload", "description": "Move the project to trash." @@ -34516,6 +35812,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/ReferenceWrite", "description": "Add a generation reference; expectedVersions must include its target generation_spec." @@ -34697,6 +36007,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/ReferenceRemove", "description": "Deactivate a generation reference." @@ -34780,6 +36104,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/ReferenceWrite", "description": "Restore a generation reference." @@ -34863,6 +36201,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/ReferenceWrite", "description": "Update a generation reference." @@ -35163,6 +36515,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/ResultSelect", "description": "Adopt an existing generation result." @@ -35574,6 +36940,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/SpecWrite", "description": "Create a generation configuration without submitting a job." @@ -35657,6 +37037,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/SpecPromptWrite", "description": "Update prompt text and structured references." @@ -35828,6 +37222,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/SpecRestore", "description": "Restore generation settings from a historical command." @@ -35889,6 +37297,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/SpecWrite", "description": "Replace the complete generation configuration; preserve unedited fields and use the current version. Jobs are unchanged." @@ -37921,6 +39343,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/TimelinePublishRender", "description": "Publish a rendered timeline result." @@ -39536,6 +40972,20 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, + "clientIntentFingerprint": { + "anyOf": [ + { + "pattern": "^[0-9a-f]{64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "title": "Clientintentfingerprint" + }, "payload": { "$ref": "#/$defs/VideoTrim", "description": "Trim a source canvas video using its exact asset version, then publish a new video node and its edit snapshot." diff --git a/src/contracts/generated.ts b/src/contracts/generated.ts index fb499ec8b..b97bf58de 100644 --- a/src/contracts/generated.ts +++ b/src/contracts/generated.ts @@ -11,7 +11,7 @@ export interface ArtifactPublishInput extends ContractInput { readonly sourceAssetId?: string | null; } -export interface ArtifactPublishCommandInput extends CommandBaseInput { +export interface ArtifactPublishCommandInput extends CreationCommitCommandBaseInput { readonly type: "artifact.publish"; readonly payload: ArtifactPublishInput; } @@ -30,7 +30,7 @@ export interface AssetDeleteInput extends ContractInput { readonly clearHistory?: boolean; } -export interface AssetDeleteCommandInput extends CommandBaseInput { +export interface AssetDeleteCommandInput extends CreationCommitCommandBaseInput { readonly type: "asset.delete"; readonly payload: AssetDeleteInput; } @@ -53,12 +53,12 @@ export interface AssetImportInput extends ContractInput { readonly expectedKind: "text" | "image" | "video" | "audio" | "file"; } -export interface AssetImportCommandInput extends CommandBaseInput { +export interface AssetImportCommandInput extends CreationCommitCommandBaseInput { readonly type: "asset.import"; readonly payload: AssetImportInput; } -export interface AssetMetadataCommandInput extends CommandBaseInput { +export interface AssetMetadataCommandInput extends CreationCommitCommandBaseInput { readonly type: "asset.updateMetadata"; readonly payload: AssetMetadataUpdateInput; } @@ -116,7 +116,7 @@ export interface AssetWriteTextInput extends ContractInput { readonly previousAsset?: AssetRefInput | null; } -export interface AssetWriteTextCommandInput extends CommandBaseInput { +export interface AssetWriteTextCommandInput extends CreationCommitCommandBaseInput { readonly type: "asset.writeText"; readonly payload: AssetWriteTextInput; } @@ -160,7 +160,7 @@ export interface AvailabilityCatalogInput extends ContractInput { readonly models: ReadonlyArray; } -export interface BatchCommandInput extends CommandBaseInput { +export interface BatchCommandInput extends CreationCommitCommandBaseInput { readonly type: "creation.batch"; readonly payload: BatchPayloadInput; } @@ -189,7 +189,7 @@ export interface CanvasApplyEditInput extends ContractInput { readonly editorId: string; } -export interface CanvasApplyEditCommandInput extends CommandBaseInput { +export interface CanvasApplyEditCommandInput extends CreationCommitCommandBaseInput { readonly type: "canvas.applyEdit"; readonly payload: CanvasApplyEditInput; } @@ -205,7 +205,7 @@ export interface CanvasConfigureInput extends ContractInput { readonly preserveMaterial?: boolean; } -export interface CanvasConfigureCommandInput extends CommandBaseInput { +export interface CanvasConfigureCommandInput extends CreationCommitCommandBaseInput { readonly type: "canvas.configure"; readonly payload: CanvasConfigureInput; } @@ -221,7 +221,7 @@ export interface CanvasCreateGenerationInput extends CanvasPlacementInput { readonly references?: ReadonlyArray; } -export interface CanvasCreateGenerationCommandInput extends CommandBaseInput { +export interface CanvasCreateGenerationCommandInput extends CreationCommitCommandBaseInput { readonly type: "canvas.createGeneration"; readonly payload: CanvasCreateGenerationInput; } @@ -236,7 +236,7 @@ export interface CanvasEditorAttachInput extends ContractInput { readonly editorId: string; } -export interface CanvasEditorAttachCommandInput extends CommandBaseInput { +export interface CanvasEditorAttachCommandInput extends CreationCommitCommandBaseInput { readonly type: "canvas.attachEditor"; readonly payload: CanvasEditorAttachInput; } @@ -246,7 +246,7 @@ export interface CanvasEditorAttachCommandOperationInput { readonly payload: CanvasEditorAttachInput; } -export interface CanvasEditorDetachCommandInput extends CommandBaseInput { +export interface CanvasEditorDetachCommandInput extends CreationCommitCommandBaseInput { readonly type: "canvas.detachEditor"; readonly payload: CanvasEditorAttachInput; } @@ -260,7 +260,7 @@ export interface CanvasHideInput extends ContractInput { readonly itemId: string; } -export interface CanvasHideCommandInput extends CommandBaseInput { +export interface CanvasHideCommandInput extends CreationCommitCommandBaseInput { readonly type: "canvas.hide"; readonly payload: CanvasHideInput; } @@ -288,7 +288,7 @@ export interface CanvasItemVersionInput extends ObjectVersionInput { readonly objectType: "canvas_item"; } -export interface CanvasLayoutPipelinesCommandInput extends CommandBaseInput { +export interface CanvasLayoutPipelinesCommandInput extends CreationCommitCommandBaseInput { readonly type: "canvas.layoutPipelines"; readonly payload: EmptyPayloadInput; } @@ -298,7 +298,7 @@ export interface CanvasLayoutPipelinesCommandOperationInput { readonly payload: EmptyPayloadInput; } -export interface CanvasLayoutRunsCommandInput extends CommandBaseInput { +export interface CanvasLayoutRunsCommandInput extends CreationCommitCommandBaseInput { readonly type: "canvas.layoutRuns"; readonly payload: EmptyPayloadInput; } @@ -314,7 +314,7 @@ export interface CanvasMaterializeInput extends ContractInput { readonly discardGenerationDraft?: boolean; } -export interface CanvasMaterializeCommandInput extends CommandBaseInput { +export interface CanvasMaterializeCommandInput extends CreationCommitCommandBaseInput { readonly type: "canvas.materialize"; readonly payload: CanvasMaterializeInput; } @@ -328,7 +328,7 @@ export interface CanvasMoveInput extends ContractInput { readonly items: ReadonlyArray; } -export interface CanvasMoveCommandInput extends CommandBaseInput { +export interface CanvasMoveCommandInput extends CreationCommitCommandBaseInput { readonly type: "canvas.move"; readonly payload: CanvasMoveInput; } @@ -376,7 +376,7 @@ export interface CanvasPublishMediaInput extends ContractInput { readonly outputs: ReadonlyArray; } -export interface CanvasPublishMediaCommandInput extends CommandBaseInput { +export interface CanvasPublishMediaCommandInput extends CreationCommitCommandBaseInput { readonly type: "canvas.publishMedia"; readonly payload: CanvasPublishMediaInput; } @@ -390,7 +390,7 @@ export interface CanvasShowInput extends CanvasPlacementInput { readonly item: TextCanvasItemInput | ImageCanvasItemInput | VideoCanvasItemInput | AudioCanvasItemInput | FileCanvasItemInput | SubjectCanvasItemInput | TimelineCanvasItemInput | StackCanvasItemInput | ToolCanvasItemInput | DirectorCanvasItemInput | MotionCanvasItemInput | GroupCanvasItemInput; } -export interface CanvasShowCommandInput extends CommandBaseInput { +export interface CanvasShowCommandInput extends CreationCommitCommandBaseInput { readonly type: "canvas.show"; readonly payload: CanvasShowInput; } @@ -406,7 +406,7 @@ export interface CanvasStatusQueryInput extends QueryBaseInput { readonly waitSeconds?: number; } -export interface CanvasUpdateCommandInput extends CommandBaseInput { +export interface CanvasUpdateCommandInput extends CreationCommitCommandBaseInput { readonly type: "canvas.update"; readonly payload: CanvasPresentationUpdateInput; } @@ -459,6 +459,7 @@ export interface CommandReceiptInput extends ContractInput { readonly commandId: string; readonly projectId: string; readonly inputFingerprint: string; + readonly clientIntentFingerprint?: string | null; readonly status: "applied" | "accepted" | "noop" | "rejected"; readonly changed?: ReadonlyArray; readonly jobIds?: ReadonlyArray; @@ -504,6 +505,10 @@ export interface ContractIssueInput extends ContractInput { readonly relatedObjectId?: string | null; } +export interface CreationCommitCommandBaseInput extends CommandBaseInput { + readonly clientIntentFingerprint?: string | null; +} + export interface CreationContractsInput extends ContractInput { readonly project: ProjectSnapshotInput; readonly canvasItem: TextCanvasItemInput | ImageCanvasItemInput | VideoCanvasItemInput | AudioCanvasItemInput | FileCanvasItemInput | SubjectCanvasItemInput | TimelineCanvasItemInput | StackCanvasItemInput | ToolCanvasItemInput | DirectorCanvasItemInput | MotionCanvasItemInput | GroupCanvasItemInput; @@ -559,7 +564,7 @@ export interface EditorCanvasItemInput extends CanvasItemBaseInput { readonly binding: EditorBindingInput; } -export interface EditorCreateCommandInput extends CommandBaseInput { +export interface EditorCreateCommandInput extends CreationCommitCommandBaseInput { readonly type: "editor.create"; readonly payload: EditorWriteInput; } @@ -587,7 +592,7 @@ export interface EditorRefInput extends ContractInput { readonly kind: "timeline" | "subject" | "stack" | "tool" | "director" | "layers" | "image_crop" | "media_edit" | "motion"; } -export interface EditorSaveCommandInput extends CommandBaseInput { +export interface EditorSaveCommandInput extends CreationCommitCommandBaseInput { readonly type: "editor.save"; readonly payload: EditorWriteInput; } @@ -675,7 +680,7 @@ export interface GenerationSubmitInput extends ContractInput { readonly showAdditionalResult?: boolean; } -export interface GenerationSubmitCommandInput extends CommandBaseInput { +export interface GenerationSubmitCommandInput extends CreationCommitCommandBaseInput { readonly type: "generation.submit"; readonly payload: GenerationSubmitInput; } @@ -714,17 +719,17 @@ export interface GroupPlanDraftInput extends ContractInput { readonly planNotes?: string; } -export interface GroupPublishRunCommandInput extends CommandBaseInput { +export interface GroupPublishRunCommandInput extends CreationCommitCommandBaseInput { readonly type: "group.publishRun"; readonly payload: GroupPlanDraftInput; } -export interface GroupSavePlanCommandInput extends CommandBaseInput { +export interface GroupSavePlanCommandInput extends CreationCommitCommandBaseInput { readonly type: "group.saveRunPlan"; readonly payload: GroupPlanDraftInput; } -export interface HistoryRedoCommandInput extends CommandBaseInput { +export interface HistoryRedoCommandInput extends CreationCommitCommandBaseInput { readonly type: "history.redo"; readonly payload: HistoryReplayInput; } @@ -733,7 +738,7 @@ export interface HistoryReplayInput extends ContractInput { readonly targetCommandId: string; } -export interface HistoryUndoCommandInput extends CommandBaseInput { +export interface HistoryUndoCommandInput extends CreationCommitCommandBaseInput { readonly type: "history.undo"; readonly payload: HistoryReplayInput; } @@ -889,7 +894,7 @@ export interface JobInput extends ProjectEntityInput { readonly agentCallId?: string | null; } -export interface JobCancelCommandInput extends CommandBaseInput { +export interface JobCancelCommandInput extends CreationCommitCommandBaseInput { readonly type: "job.cancel"; readonly payload: JobControlInput; } @@ -898,7 +903,7 @@ export interface JobCheckpointInput extends ContractInput { readonly job: JobInput; } -export interface JobCheckpointCommandInput extends CommandBaseInput { +export interface JobCheckpointCommandInput extends CreationCommitCommandBaseInput { readonly type: "job.checkpoint"; readonly payload: JobCheckpointInput; } @@ -907,7 +912,7 @@ export interface JobControlInput extends ContractInput { readonly jobId: string; } -export interface JobRecoverCommandInput extends CommandBaseInput { +export interface JobRecoverCommandInput extends CreationCommitCommandBaseInput { readonly type: "job.recover"; readonly payload: JobControlInput; } @@ -1167,7 +1172,7 @@ export interface NodeVersionApplyInput extends ContractInput { readonly referencePolicy?: "follow_current" | "pinned"; } -export interface NodeVersionApplyCommandInput extends CommandBaseInput { +export interface NodeVersionApplyCommandInput extends CreationCommitCommandBaseInput { readonly type: "canvas.applyVersion"; readonly payload: NodeVersionApplyInput; } @@ -1179,7 +1184,7 @@ export interface NodeVersionExportInput extends ContractInput { readonly position: PointInput; } -export interface NodeVersionExportCommandInput extends CommandBaseInput { +export interface NodeVersionExportCommandInput extends CreationCommitCommandBaseInput { readonly type: "canvas.exportVersion"; readonly payload: NodeVersionExportInput; } @@ -1333,7 +1338,7 @@ export interface ProjectCreateInput extends ContractInput { readonly defaultNameIndex?: number | null; } -export interface ProjectCreateCommandInput extends CommandBaseInput { +export interface ProjectCreateCommandInput extends CreationCommitCommandBaseInput { readonly type: "project.create"; readonly payload: ProjectCreateInput; } @@ -1362,12 +1367,12 @@ export interface ProjectRenameInput extends ContractInput { readonly name: string; } -export interface ProjectRenameCommandInput extends CommandBaseInput { +export interface ProjectRenameCommandInput extends CreationCommitCommandBaseInput { readonly type: "project.rename"; readonly payload: ProjectRenameInput; } -export interface ProjectRestoreCommandInput extends CommandBaseInput { +export interface ProjectRestoreCommandInput extends CreationCommitCommandBaseInput { readonly type: "project.restore"; readonly payload: EmptyPayloadInput; } @@ -1387,7 +1392,7 @@ export interface ProjectSnapshotInput extends ContractInput { readonly undoClearedThrough?: number; } -export interface ProjectTrashCommandInput extends CommandBaseInput { +export interface ProjectTrashCommandInput extends CreationCommitCommandBaseInput { readonly type: "project.trash"; readonly payload: EmptyPayloadInput; } @@ -1417,7 +1422,7 @@ export interface RectangleLayerContentInput extends LayerContentBaseInput { readonly color: string; } -export interface ReferenceAddCommandInput extends CommandBaseInput { +export interface ReferenceAddCommandInput extends CreationCommitCommandBaseInput { readonly type: "reference.add"; readonly payload: ReferenceWriteInput; } @@ -1439,7 +1444,7 @@ export interface ReferenceRemoveInput extends ContractInput { readonly referenceId: string; } -export interface ReferenceRemoveCommandInput extends CommandBaseInput { +export interface ReferenceRemoveCommandInput extends CreationCommitCommandBaseInput { readonly type: "reference.remove"; readonly payload: ReferenceRemoveInput; } @@ -1449,7 +1454,7 @@ export interface ReferenceRemoveCommandOperationInput { readonly payload: ReferenceRemoveInput; } -export interface ReferenceRestoreCommandInput extends CommandBaseInput { +export interface ReferenceRestoreCommandInput extends CreationCommitCommandBaseInput { readonly type: "reference.restore"; readonly payload: ReferenceWriteInput; } @@ -1459,7 +1464,7 @@ export interface ReferenceRestoreCommandOperationInput { readonly payload: ReferenceWriteInput; } -export interface ReferenceUpdateCommandInput extends CommandBaseInput { +export interface ReferenceUpdateCommandInput extends CreationCommitCommandBaseInput { readonly type: "reference.update"; readonly payload: ReferenceWriteInput; } @@ -1499,7 +1504,7 @@ export interface ResultSelectInput extends ContractInput { readonly resultId: string; } -export interface ResultSelectCommandInput extends CommandBaseInput { +export interface ResultSelectCommandInput extends CreationCommitCommandBaseInput { readonly type: "result.select"; readonly payload: ResultSelectInput; } @@ -1560,7 +1565,7 @@ export interface SelectionPipelineScopeInput extends ContractInput { readonly itemIds: ReadonlyArray; } -export interface SpecCreateCommandInput extends CommandBaseInput { +export interface SpecCreateCommandInput extends CreationCommitCommandBaseInput { readonly type: "generationSpec.create"; readonly payload: SpecWriteInput; } @@ -1570,7 +1575,7 @@ export interface SpecCreateCommandOperationInput { readonly payload: SpecWriteInput; } -export interface SpecPromptCommandInput extends CommandBaseInput { +export interface SpecPromptCommandInput extends CreationCommitCommandBaseInput { readonly type: "generationSpec.setPrompt"; readonly payload: SpecPromptWriteInput; } @@ -1592,12 +1597,12 @@ export interface SpecRestoreInput extends ContractInput { readonly referencePolicy?: "follow_current" | "pinned"; } -export interface SpecRestoreCommandInput extends CommandBaseInput { +export interface SpecRestoreCommandInput extends CreationCommitCommandBaseInput { readonly type: "generationSpec.restore"; readonly payload: SpecRestoreInput; } -export interface SpecUpdateCommandInput extends CommandBaseInput { +export interface SpecUpdateCommandInput extends CreationCommitCommandBaseInput { readonly type: "generationSpec.update"; readonly payload: SpecWriteInput; } @@ -1802,7 +1807,7 @@ export interface TimelinePublishRenderInput extends ContractInput { readonly position?: PointInput; } -export interface TimelinePublishRenderCommandInput extends CommandBaseInput { +export interface TimelinePublishRenderCommandInput extends CreationCommitCommandBaseInput { readonly type: "timeline.publishRender"; readonly payload: TimelinePublishRenderInput; } @@ -1971,7 +1976,7 @@ export interface VideoTrimInput extends ContractInput { readonly name: string; } -export interface VideoTrimCommandInput extends CommandBaseInput { +export interface VideoTrimCommandInput extends CreationCommitCommandBaseInput { readonly type: "video.trim"; readonly payload: VideoTrimInput; } @@ -2054,7 +2059,7 @@ export interface ArtifactPublish extends Contract { readonly sourceAssetId?: string | null; } -export interface ArtifactPublishCommand extends CommandBase { +export interface ArtifactPublishCommand extends CreationCommitCommandBase { readonly type: "artifact.publish"; readonly payload: ArtifactPublish; } @@ -2073,7 +2078,7 @@ export interface AssetDelete extends Contract { readonly clearHistory: boolean; } -export interface AssetDeleteCommand extends CommandBase { +export interface AssetDeleteCommand extends CreationCommitCommandBase { readonly type: "asset.delete"; readonly payload: AssetDelete; } @@ -2096,12 +2101,12 @@ export interface AssetImport extends Contract { readonly expectedKind: "text" | "image" | "video" | "audio" | "file"; } -export interface AssetImportCommand extends CommandBase { +export interface AssetImportCommand extends CreationCommitCommandBase { readonly type: "asset.import"; readonly payload: AssetImport; } -export interface AssetMetadataCommand extends CommandBase { +export interface AssetMetadataCommand extends CreationCommitCommandBase { readonly type: "asset.updateMetadata"; readonly payload: AssetMetadataUpdate; } @@ -2159,7 +2164,7 @@ export interface AssetWriteText extends Contract { readonly previousAsset: AssetRef | null; } -export interface AssetWriteTextCommand extends CommandBase { +export interface AssetWriteTextCommand extends CreationCommitCommandBase { readonly type: "asset.writeText"; readonly payload: AssetWriteText; } @@ -2203,7 +2208,7 @@ export interface AvailabilityCatalog extends Contract { readonly models: ReadonlyArray; } -export interface BatchCommand extends CommandBase { +export interface BatchCommand extends CreationCommitCommandBase { readonly type: "creation.batch"; readonly payload: BatchPayload; } @@ -2232,7 +2237,7 @@ export interface CanvasApplyEdit extends Contract { readonly editorId: string; } -export interface CanvasApplyEditCommand extends CommandBase { +export interface CanvasApplyEditCommand extends CreationCommitCommandBase { readonly type: "canvas.applyEdit"; readonly payload: CanvasApplyEdit; } @@ -2248,7 +2253,7 @@ export interface CanvasConfigure extends Contract { readonly preserveMaterial: boolean; } -export interface CanvasConfigureCommand extends CommandBase { +export interface CanvasConfigureCommand extends CreationCommitCommandBase { readonly type: "canvas.configure"; readonly payload: CanvasConfigure; } @@ -2264,7 +2269,7 @@ export interface CanvasCreateGeneration extends CanvasPlacement { readonly references: ReadonlyArray; } -export interface CanvasCreateGenerationCommand extends CommandBase { +export interface CanvasCreateGenerationCommand extends CreationCommitCommandBase { readonly type: "canvas.createGeneration"; readonly payload: CanvasCreateGeneration; } @@ -2279,7 +2284,7 @@ export interface CanvasEditorAttach extends Contract { readonly editorId: string; } -export interface CanvasEditorAttachCommand extends CommandBase { +export interface CanvasEditorAttachCommand extends CreationCommitCommandBase { readonly type: "canvas.attachEditor"; readonly payload: CanvasEditorAttach; } @@ -2289,7 +2294,7 @@ export interface CanvasEditorAttachCommandOperation { readonly payload: CanvasEditorAttach; } -export interface CanvasEditorDetachCommand extends CommandBase { +export interface CanvasEditorDetachCommand extends CreationCommitCommandBase { readonly type: "canvas.detachEditor"; readonly payload: CanvasEditorAttach; } @@ -2303,7 +2308,7 @@ export interface CanvasHide extends Contract { readonly itemId: string; } -export interface CanvasHideCommand extends CommandBase { +export interface CanvasHideCommand extends CreationCommitCommandBase { readonly type: "canvas.hide"; readonly payload: CanvasHide; } @@ -2331,7 +2336,7 @@ export interface CanvasItemVersion extends ObjectVersion { readonly objectType: "canvas_item"; } -export interface CanvasLayoutPipelinesCommand extends CommandBase { +export interface CanvasLayoutPipelinesCommand extends CreationCommitCommandBase { readonly type: "canvas.layoutPipelines"; readonly payload: EmptyPayload; } @@ -2341,7 +2346,7 @@ export interface CanvasLayoutPipelinesCommandOperation { readonly payload: EmptyPayload; } -export interface CanvasLayoutRunsCommand extends CommandBase { +export interface CanvasLayoutRunsCommand extends CreationCommitCommandBase { readonly type: "canvas.layoutRuns"; readonly payload: EmptyPayload; } @@ -2357,7 +2362,7 @@ export interface CanvasMaterialize extends Contract { readonly discardGenerationDraft: boolean; } -export interface CanvasMaterializeCommand extends CommandBase { +export interface CanvasMaterializeCommand extends CreationCommitCommandBase { readonly type: "canvas.materialize"; readonly payload: CanvasMaterialize; } @@ -2371,7 +2376,7 @@ export interface CanvasMove extends Contract { readonly items: ReadonlyArray; } -export interface CanvasMoveCommand extends CommandBase { +export interface CanvasMoveCommand extends CreationCommitCommandBase { readonly type: "canvas.move"; readonly payload: CanvasMove; } @@ -2419,7 +2424,7 @@ export interface CanvasPublishMedia extends Contract { readonly outputs: ReadonlyArray; } -export interface CanvasPublishMediaCommand extends CommandBase { +export interface CanvasPublishMediaCommand extends CreationCommitCommandBase { readonly type: "canvas.publishMedia"; readonly payload: CanvasPublishMedia; } @@ -2433,7 +2438,7 @@ export interface CanvasShow extends CanvasPlacement { readonly item: TextCanvasItem | ImageCanvasItem | VideoCanvasItem | AudioCanvasItem | FileCanvasItem | SubjectCanvasItem | TimelineCanvasItem | StackCanvasItem | ToolCanvasItem | DirectorCanvasItem | MotionCanvasItem | GroupCanvasItem; } -export interface CanvasShowCommand extends CommandBase { +export interface CanvasShowCommand extends CreationCommitCommandBase { readonly type: "canvas.show"; readonly payload: CanvasShow; } @@ -2449,7 +2454,7 @@ export interface CanvasStatusQuery extends QueryBase { readonly waitSeconds: number; } -export interface CanvasUpdateCommand extends CommandBase { +export interface CanvasUpdateCommand extends CreationCommitCommandBase { readonly type: "canvas.update"; readonly payload: CanvasPresentationUpdate; } @@ -2502,6 +2507,7 @@ export interface CommandReceipt extends Contract { readonly commandId: string; readonly projectId: string; readonly inputFingerprint: string; + readonly clientIntentFingerprint?: string | null; readonly status: "applied" | "accepted" | "noop" | "rejected"; readonly changed: ReadonlyArray; readonly jobIds: ReadonlyArray; @@ -2547,6 +2553,10 @@ export interface ContractIssue extends Contract { readonly relatedObjectId?: string | null; } +export interface CreationCommitCommandBase extends CommandBase { + readonly clientIntentFingerprint?: string | null; +} + export interface CreationContracts extends Contract { readonly project: ProjectSnapshot; readonly canvasItem: TextCanvasItem | ImageCanvasItem | VideoCanvasItem | AudioCanvasItem | FileCanvasItem | SubjectCanvasItem | TimelineCanvasItem | StackCanvasItem | ToolCanvasItem | DirectorCanvasItem | MotionCanvasItem | GroupCanvasItem; @@ -2602,7 +2612,7 @@ export interface EditorCanvasItem extends CanvasItemBase { readonly binding: EditorBinding; } -export interface EditorCreateCommand extends CommandBase { +export interface EditorCreateCommand extends CreationCommitCommandBase { readonly type: "editor.create"; readonly payload: EditorWrite; } @@ -2630,7 +2640,7 @@ export interface EditorRef extends Contract { readonly kind: "timeline" | "subject" | "stack" | "tool" | "director" | "layers" | "image_crop" | "media_edit" | "motion"; } -export interface EditorSaveCommand extends CommandBase { +export interface EditorSaveCommand extends CreationCommitCommandBase { readonly type: "editor.save"; readonly payload: EditorWrite; } @@ -2718,7 +2728,7 @@ export interface GenerationSubmit extends Contract { readonly showAdditionalResult: boolean; } -export interface GenerationSubmitCommand extends CommandBase { +export interface GenerationSubmitCommand extends CreationCommitCommandBase { readonly type: "generation.submit"; readonly payload: GenerationSubmit; } @@ -2757,17 +2767,17 @@ export interface GroupPlanDraft extends Contract { readonly planNotes: string; } -export interface GroupPublishRunCommand extends CommandBase { +export interface GroupPublishRunCommand extends CreationCommitCommandBase { readonly type: "group.publishRun"; readonly payload: GroupPlanDraft; } -export interface GroupSavePlanCommand extends CommandBase { +export interface GroupSavePlanCommand extends CreationCommitCommandBase { readonly type: "group.saveRunPlan"; readonly payload: GroupPlanDraft; } -export interface HistoryRedoCommand extends CommandBase { +export interface HistoryRedoCommand extends CreationCommitCommandBase { readonly type: "history.redo"; readonly payload: HistoryReplay; } @@ -2776,7 +2786,7 @@ export interface HistoryReplay extends Contract { readonly targetCommandId: string; } -export interface HistoryUndoCommand extends CommandBase { +export interface HistoryUndoCommand extends CreationCommitCommandBase { readonly type: "history.undo"; readonly payload: HistoryReplay; } @@ -2932,7 +2942,7 @@ export interface Job extends ProjectEntity { readonly agentCallId?: string | null; } -export interface JobCancelCommand extends CommandBase { +export interface JobCancelCommand extends CreationCommitCommandBase { readonly type: "job.cancel"; readonly payload: JobControl; } @@ -2941,7 +2951,7 @@ export interface JobCheckpoint extends Contract { readonly job: Job; } -export interface JobCheckpointCommand extends CommandBase { +export interface JobCheckpointCommand extends CreationCommitCommandBase { readonly type: "job.checkpoint"; readonly payload: JobCheckpoint; } @@ -2950,7 +2960,7 @@ export interface JobControl extends Contract { readonly jobId: string; } -export interface JobRecoverCommand extends CommandBase { +export interface JobRecoverCommand extends CreationCommitCommandBase { readonly type: "job.recover"; readonly payload: JobControl; } @@ -3209,7 +3219,7 @@ export interface NodeVersionApply extends Contract { readonly referencePolicy: "follow_current" | "pinned"; } -export interface NodeVersionApplyCommand extends CommandBase { +export interface NodeVersionApplyCommand extends CreationCommitCommandBase { readonly type: "canvas.applyVersion"; readonly payload: NodeVersionApply; } @@ -3221,7 +3231,7 @@ export interface NodeVersionExport extends Contract { readonly position: Point; } -export interface NodeVersionExportCommand extends CommandBase { +export interface NodeVersionExportCommand extends CreationCommitCommandBase { readonly type: "canvas.exportVersion"; readonly payload: NodeVersionExport; } @@ -3375,7 +3385,7 @@ export interface ProjectCreate extends Contract { readonly defaultNameIndex?: number | null; } -export interface ProjectCreateCommand extends CommandBase { +export interface ProjectCreateCommand extends CreationCommitCommandBase { readonly type: "project.create"; readonly payload: ProjectCreate; } @@ -3404,12 +3414,12 @@ export interface ProjectRename extends Contract { readonly name: string; } -export interface ProjectRenameCommand extends CommandBase { +export interface ProjectRenameCommand extends CreationCommitCommandBase { readonly type: "project.rename"; readonly payload: ProjectRename; } -export interface ProjectRestoreCommand extends CommandBase { +export interface ProjectRestoreCommand extends CreationCommitCommandBase { readonly type: "project.restore"; readonly payload: EmptyPayload; } @@ -3429,7 +3439,7 @@ export interface ProjectSnapshot extends Contract { readonly undoClearedThrough: number; } -export interface ProjectTrashCommand extends CommandBase { +export interface ProjectTrashCommand extends CreationCommitCommandBase { readonly type: "project.trash"; readonly payload: EmptyPayload; } @@ -3459,7 +3469,7 @@ export interface RectangleLayerContent extends LayerContentBase { readonly color: string; } -export interface ReferenceAddCommand extends CommandBase { +export interface ReferenceAddCommand extends CreationCommitCommandBase { readonly type: "reference.add"; readonly payload: ReferenceWrite; } @@ -3481,7 +3491,7 @@ export interface ReferenceRemove extends Contract { readonly referenceId: string; } -export interface ReferenceRemoveCommand extends CommandBase { +export interface ReferenceRemoveCommand extends CreationCommitCommandBase { readonly type: "reference.remove"; readonly payload: ReferenceRemove; } @@ -3491,7 +3501,7 @@ export interface ReferenceRemoveCommandOperation { readonly payload: ReferenceRemove; } -export interface ReferenceRestoreCommand extends CommandBase { +export interface ReferenceRestoreCommand extends CreationCommitCommandBase { readonly type: "reference.restore"; readonly payload: ReferenceWrite; } @@ -3501,7 +3511,7 @@ export interface ReferenceRestoreCommandOperation { readonly payload: ReferenceWrite; } -export interface ReferenceUpdateCommand extends CommandBase { +export interface ReferenceUpdateCommand extends CreationCommitCommandBase { readonly type: "reference.update"; readonly payload: ReferenceWrite; } @@ -3541,7 +3551,7 @@ export interface ResultSelect extends Contract { readonly resultId: string; } -export interface ResultSelectCommand extends CommandBase { +export interface ResultSelectCommand extends CreationCommitCommandBase { readonly type: "result.select"; readonly payload: ResultSelect; } @@ -3602,7 +3612,7 @@ export interface SelectionPipelineScope extends Contract { readonly itemIds: ReadonlyArray; } -export interface SpecCreateCommand extends CommandBase { +export interface SpecCreateCommand extends CreationCommitCommandBase { readonly type: "generationSpec.create"; readonly payload: SpecWrite; } @@ -3612,7 +3622,7 @@ export interface SpecCreateCommandOperation { readonly payload: SpecWrite; } -export interface SpecPromptCommand extends CommandBase { +export interface SpecPromptCommand extends CreationCommitCommandBase { readonly type: "generationSpec.setPrompt"; readonly payload: SpecPromptWrite; } @@ -3634,12 +3644,12 @@ export interface SpecRestore extends Contract { readonly referencePolicy: "follow_current" | "pinned"; } -export interface SpecRestoreCommand extends CommandBase { +export interface SpecRestoreCommand extends CreationCommitCommandBase { readonly type: "generationSpec.restore"; readonly payload: SpecRestore; } -export interface SpecUpdateCommand extends CommandBase { +export interface SpecUpdateCommand extends CreationCommitCommandBase { readonly type: "generationSpec.update"; readonly payload: SpecWrite; } @@ -3844,7 +3854,7 @@ export interface TimelinePublishRender extends Contract { readonly position: Point; } -export interface TimelinePublishRenderCommand extends CommandBase { +export interface TimelinePublishRenderCommand extends CreationCommitCommandBase { readonly type: "timeline.publishRender"; readonly payload: TimelinePublishRender; } @@ -4013,7 +4023,7 @@ export interface VideoTrim extends Contract { readonly name: string; } -export interface VideoTrimCommand extends CommandBase { +export interface VideoTrimCommand extends CreationCommitCommandBase { readonly type: "video.trim"; readonly payload: VideoTrim; } diff --git a/tests/test_creation_contracts.py b/tests/test_creation_contracts.py index 422e012ac..6eba90b7d 100644 --- a/tests/test_creation_contracts.py +++ b/tests/test_creation_contracts.py @@ -611,3 +611,15 @@ def test_audio_generation_options_match_shared_validation(protocol, allowed): legacy = config.inputRules.model_dump(mode='json', exclude={'generateAudioOptions'}) from opendirector.domain.creation.models import InputRules assert InputRules.model_validate(legacy).model_dump(mode='json') == legacy + + +@pytest.mark.parametrize(('kind', 'payload'), [ + ('pipeline.start', {'scope': {'kind': 'group', 'groupId': uid(3)}}), + ('pipeline.resume', {'executionId': uid(3)}), +]) +def test_client_intent_fingerprint_requires_a_durable_creation_receipt(kind, payload): + request = dict(type=kind, commandId=uid(2), projectId=PROJECT, payload=payload) + command = parse_command(request) + assert 'clientIntentFingerprint' not in command.model_json_schema()['properties'] + with pytest.raises(ValidationError, match='clientIntentFingerprint'): + parse_command({**request, 'clientIntentFingerprint': 'a' * 64}) diff --git a/tests/test_creation_storage.py b/tests/test_creation_storage.py index 216b7d8af..127c38024 100644 --- a/tests/test_creation_storage.py +++ b/tests/test_creation_storage.py @@ -157,6 +157,21 @@ def test_idempotency_precedes_version_and_session_checks(projects): assert projects.snapshot(created.projectId).project.name == 'Third' +def test_receipt_keeps_caller_intent_across_restart_and_checks_the_entire_command(projects): + created = create(projects) + command = parse_command({**rename(created).model_dump(), 'clientIntentFingerprint': 'a' * 64}) + receipt = projects.execute(command) + projects.execute(rename(created, name='Third', revision=2)) + store = restarted(projects) + assert store.receipt(created.projectId, command.commandId).clientIntentFingerprint == 'a' * 64 + assert store.execute(command) == receipt + for change in ({'clientIntentFingerprint': 'b' * 64}, {'payload': {'name': 'Changed'}}): + with pytest.raises(ProjectError) as conflict: + store.execute(parse_command({**command.model_dump(), **change})) + assert conflict.value.code == 'command_conflict' + assert store.snapshot(created.projectId).project.name == 'Third' + + def test_version_rejections_and_noops_are_durable_without_change_events(projects): created = create(projects) stale = rename(created, revision=9)