From 066d90d929fb953deee693cf04f68bd9b58a0739 Mon Sep 17 00:00:00 2001 From: Dragonborn <1078757180@qq.com> Date: Sat, 5 Dec 2026 01:32:37 +0800 Subject: [PATCH 1/3] Persist client intent fingerprints with command receipts --- .../application/creation_generation.py | 2 +- .../opendirector/domain/creation/commands.py | 4 + .../infrastructure/creation_publication.py | 3 +- .../infrastructure/creation_records.py | 1 + src/contracts/creation.schema.json | 1676 ++++++++++++++++- src/contracts/generated.ts | 4 + tests/test_creation_storage.py | 15 + 7 files changed, 1621 insertions(+), 84 deletions(-) diff --git a/packages/core/src/opendirector/application/creation_generation.py b/packages/core/src/opendirector/application/creation_generation.py index 563550426..471dad247 100644 --- a/packages/core/src/opendirector/application/creation_generation.py +++ b/packages/core/src/opendirector/application/creation_generation.py @@ -493,7 +493,7 @@ async def execute(self, command, *, session=None, source='ui', agent_origin=None operation_id=command.commandId, input_fingerprint=fingerprint, ) return CommandReceipt(commandId=command.commandId, projectId=command.projectId, - inputFingerprint=fingerprint, status='applied', + inputFingerprint=fingerprint, clientIntentFingerprint=command.clientIntentFingerprint, status='applied', pipelineExecutionId=execution['executionId']) if command.type == 'generation.submit': pending = asyncio.create_task(asyncio.to_thread(self.prepare, command, session=session, source=source, agent_origin=agent_origin)) diff --git a/packages/core/src/opendirector/domain/creation/commands.py b/packages/core/src/opendirector/domain/creation/commands.py index 124476e58..d2700da37 100644 --- a/packages/core/src/opendirector/domain/creation/commands.py +++ b/packages/core/src/opendirector/domain/creation/commands.py @@ -410,6 +410,8 @@ class CommandBase(Contract): type: str = Field(description='Operation or variant discriminator.') expectedVersions: tuple[ObjectVersion, ...] = Field(default=(), description='Current versions of mutated existing objects; payload revision fields do not replace these.') expectedPreview: Digest | None = Field(default=None, description='Fingerprint of the confirmed impact preview.') + 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.') @model_validator(mode='after') def scope_and_versions(self): @@ -638,6 +640,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..7340c29c6 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." @@ -4143,6 +4409,20 @@ "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": [ @@ -4174,6 +4454,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": [ @@ -5673,6 +5967,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 +6186,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 +7075,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 +7542,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 +7615,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 +7688,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 +7777,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 +9420,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 +9507,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 +9596,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 +12435,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 +12541,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." @@ -12594,6 +13056,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/PipelineAdopt", "description": "Adopt a candidate job for an awaiting Pipeline step and continue downstream execution." @@ -12653,6 +13129,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/PipelineControl", "description": "Cancel pending steps and request cancellation of running steps in a Pipeline execution." @@ -12809,6 +13299,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/PipelineControl", "description": "Pause an active Pipeline execution after its in-flight steps finish." @@ -12947,6 +13451,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/PipelineControl", "description": "Resume a paused Pipeline execution." @@ -13036,6 +13554,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/PipelineRetry", "description": "Retry failed or skipped steps of a settled Pipeline execution while reusing succeeded steps." @@ -13167,6 +13699,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/PipelineStart", "description": "Compile and start a durable concurrent Pipeline execution in the background." @@ -13385,6 +13931,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 +14157,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 +14230,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 +14541,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 +14759,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 +14948,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 +15043,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 +15138,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 +15444,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 +15866,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 +15961,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,6 +16142,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." @@ -15501,6 +16215,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." @@ -17437,6 +18165,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 +19726,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 +20806,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 +20984,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 +21180,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 +21255,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 +21796,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 +22421,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 +22713,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 +22840,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 +23076,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 +23196,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 +23293,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 +23406,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 +23676,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 +23773,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 +23898,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 +24015,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 +24496,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 +24676,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 +24819,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." @@ -24169,6 +25191,20 @@ "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": [ @@ -24202,6 +25238,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": [ @@ -25742,6 +26792,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 +27017,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 +27940,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 +28422,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 +28497,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 +28572,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 +28663,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,6 +30389,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." @@ -29316,6 +30478,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." @@ -29393,6 +30569,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 +33487,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 +33595,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." @@ -32905,6 +34123,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/PipelineAdopt", "description": "Adopt a candidate job for an awaiting Pipeline step and continue downstream execution." @@ -32966,6 +34198,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/PipelineControl", "description": "Cancel pending steps and request cancellation of running steps in a Pipeline execution." @@ -33124,6 +34370,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/PipelineControl", "description": "Pause an active Pipeline execution after its in-flight steps finish." @@ -33265,86 +34525,114 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, - "payload": { - "$ref": "#/$defs/PipelineControl", - "description": "Resume a paused Pipeline execution." - } - }, - "required": [ - "commandId", - "projectId", - "type", - "expectedVersions", - "expectedPreview", - "payload" - ], - "title": "PipelineResumeCommand", - "type": "object" - }, - "PipelineRetry": { - "additionalProperties": false, - "properties": { - "executionId": { - "description": "Target settled Pipeline execution ID to retry.", - "format": "uuid", - "title": "Executionid", - "type": "string" - }, - "stopOnFailure": { - "default": false, - "description": "Whether to cancel remaining pending steps after the first failure.", - "title": "Stoponfailure", - "type": "boolean" - }, - "maxConcurrency": { - "default": 4, - "description": "Maximum number of independent pipeline steps executed concurrently.", - "maximum": 16, - "minimum": 1, - "title": "Maxconcurrency", - "type": "integer" - } - }, - "required": [ - "executionId", - "stopOnFailure", - "maxConcurrency" - ], - "title": "PipelineRetry", - "type": "object" - }, - "PipelineRetryCommand": { - "additionalProperties": false, - "description": "Retry failed or skipped steps of a settled Pipeline execution while reusing succeeded steps.", - "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": "pipeline.retry", - "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/PipelineControl", + "description": "Resume a paused Pipeline execution." + } + }, + "required": [ + "commandId", + "projectId", + "type", + "expectedVersions", + "expectedPreview", + "payload" + ], + "title": "PipelineResumeCommand", + "type": "object" + }, + "PipelineRetry": { + "additionalProperties": false, + "properties": { + "executionId": { + "description": "Target settled Pipeline execution ID to retry.", + "format": "uuid", + "title": "Executionid", + "type": "string" + }, + "stopOnFailure": { + "default": false, + "description": "Whether to cancel remaining pending steps after the first failure.", + "title": "Stoponfailure", + "type": "boolean" + }, + "maxConcurrency": { + "default": 4, + "description": "Maximum number of independent pipeline steps executed concurrently.", + "maximum": 16, + "minimum": 1, + "title": "Maxconcurrency", + "type": "integer" + } + }, + "required": [ + "executionId", + "stopOnFailure", + "maxConcurrency" + ], + "title": "PipelineRetry", + "type": "object" + }, + "PipelineRetryCommand": { + "additionalProperties": false, + "description": "Retry failed or skipped steps of a settled Pipeline execution while reusing succeeded steps.", + "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": "pipeline.retry", + "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}$", @@ -33355,8 +34643,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/PipelineRetry", @@ -33494,6 +34782,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/PipelineStart", "description": "Compile and start a durable concurrent Pipeline execution in the background." @@ -33720,6 +35022,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 +35255,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 +35330,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 +35654,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 +35874,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 +36069,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 +36166,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 +36263,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 +36577,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 +37002,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 +37099,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 +37284,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 +37359,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 +39405,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 +41034,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..b0e74a101 100644 --- a/src/contracts/generated.ts +++ b/src/contracts/generated.ts @@ -453,12 +453,14 @@ export interface CommandBaseInput extends ContractInput { readonly type: string; readonly expectedVersions?: ReadonlyArray; readonly expectedPreview?: string | null; + readonly clientIntentFingerprint?: string | null; } 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; @@ -2496,12 +2498,14 @@ export interface CommandBase extends Contract { readonly type: string; readonly expectedVersions: ReadonlyArray; readonly expectedPreview: string | null; + readonly clientIntentFingerprint?: string | null; } 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; diff --git a/tests/test_creation_storage.py b/tests/test_creation_storage.py index 22198bbf7..a20944475 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) From 075e878183b4612e2d2f611db975b0181701e699 Mon Sep 17 00:00:00 2001 From: Dragonborn <1078757180@qq.com> Date: Sat, 5 Dec 2026 13:54:42 +0800 Subject: [PATCH 2/3] Limit request fingerprints to durable creation receipts --- .../application/creation_generation.py | 2 +- .../opendirector/domain/creation/commands.py | 4 +- src/contracts/creation.schema.json | 212 +++++++++--------- tests/test_creation_contracts.py | 12 + 4 files changed, 122 insertions(+), 108 deletions(-) diff --git a/packages/core/src/opendirector/application/creation_generation.py b/packages/core/src/opendirector/application/creation_generation.py index 471dad247..563550426 100644 --- a/packages/core/src/opendirector/application/creation_generation.py +++ b/packages/core/src/opendirector/application/creation_generation.py @@ -493,7 +493,7 @@ async def execute(self, command, *, session=None, source='ui', agent_origin=None operation_id=command.commandId, input_fingerprint=fingerprint, ) return CommandReceipt(commandId=command.commandId, projectId=command.projectId, - inputFingerprint=fingerprint, clientIntentFingerprint=command.clientIntentFingerprint, status='applied', + inputFingerprint=fingerprint, status='applied', pipelineExecutionId=execution['executionId']) if command.type == 'generation.submit': pending = asyncio.create_task(asyncio.to_thread(self.prepare, command, session=session, source=source, agent_origin=agent_origin)) diff --git a/packages/core/src/opendirector/domain/creation/commands.py b/packages/core/src/opendirector/domain/creation/commands.py index d2700da37..9acd26648 100644 --- a/packages/core/src/opendirector/domain/creation/commands.py +++ b/packages/core/src/opendirector/domain/creation/commands.py @@ -411,10 +411,12 @@ class CommandBase(Contract): expectedVersions: tuple[ObjectVersion, ...] = Field(default=(), description='Current versions of mutated existing objects; payload revision fields do not replace these.') expectedPreview: Digest | None = Field(default=None, description='Fingerprint of the confirmed impact preview.') 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.') + description='SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.') @model_validator(mode='after') def scope_and_versions(self): + if self.clientIntentFingerprint is not None and self.type.startswith('pipeline.'): + raise ValueError('clientIntentFingerprint requires a durable creation receipt') unique([(version.objectType, version.id) for version in self.expectedVersions], 'expected object versions') payload = self.payload owned = getattr(payload, 'item', None) or getattr(payload, 'spec', None) or getattr(payload, 'reference', None) or getattr(payload, 'document', None) diff --git a/src/contracts/creation.schema.json b/src/contracts/creation.schema.json index 7340c29c6..63846250a 100644 --- a/src/contracts/creation.schema.json +++ b/src/contracts/creation.schema.json @@ -150,7 +150,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -324,7 +324,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -518,7 +518,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -591,7 +591,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -1111,7 +1111,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -1708,7 +1708,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -1997,7 +1997,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -2121,7 +2121,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -2354,7 +2354,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -2472,7 +2472,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -2567,7 +2567,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -2678,7 +2678,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -2936,7 +2936,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -3031,7 +3031,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -3153,7 +3153,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -3268,7 +3268,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -3739,7 +3739,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -3917,7 +3917,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -4057,7 +4057,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -4421,7 +4421,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" } }, @@ -5978,7 +5978,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -6197,7 +6197,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -7086,7 +7086,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -7553,7 +7553,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -7626,7 +7626,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -7699,7 +7699,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -7788,7 +7788,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -9431,7 +9431,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -9518,7 +9518,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -9607,7 +9607,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -12446,7 +12446,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -12552,7 +12552,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -13067,7 +13067,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -13140,7 +13140,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -13310,7 +13310,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -13462,7 +13462,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -13565,7 +13565,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -13710,7 +13710,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -13942,7 +13942,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -14168,7 +14168,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -14241,7 +14241,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -14552,7 +14552,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -14770,7 +14770,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -14959,7 +14959,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -15054,7 +15054,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -15149,7 +15149,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -15455,7 +15455,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -15877,7 +15877,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -15972,7 +15972,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -16153,7 +16153,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -16226,7 +16226,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -18176,7 +18176,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -19737,7 +19737,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -20817,7 +20817,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -20995,7 +20995,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -21191,7 +21191,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -21266,7 +21266,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -21807,7 +21807,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -22432,7 +22432,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -22724,7 +22724,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -22851,7 +22851,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -23087,7 +23087,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -23207,7 +23207,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -23304,7 +23304,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -23417,7 +23417,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -23687,7 +23687,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -23784,7 +23784,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -23909,7 +23909,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -24026,7 +24026,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -24507,7 +24507,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -24687,7 +24687,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -24830,7 +24830,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -25203,7 +25203,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" } }, @@ -26803,7 +26803,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -27028,7 +27028,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -27951,7 +27951,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -28433,7 +28433,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -28508,7 +28508,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -28583,7 +28583,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -28674,7 +28674,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -30400,7 +30400,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -30489,7 +30489,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -30580,7 +30580,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -33498,7 +33498,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -33606,7 +33606,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -34134,7 +34134,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -34209,7 +34209,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -34381,7 +34381,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -34536,7 +34536,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -34643,7 +34643,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -34793,7 +34793,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -35033,7 +35033,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -35266,7 +35266,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -35341,7 +35341,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -35665,7 +35665,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -35885,7 +35885,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -36080,7 +36080,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -36177,7 +36177,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -36274,7 +36274,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -36588,7 +36588,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -37013,7 +37013,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -37110,7 +37110,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -37295,7 +37295,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -37370,7 +37370,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -39416,7 +39416,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { @@ -41045,7 +41045,7 @@ } ], "default": null, - "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", + "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", "title": "Clientintentfingerprint" }, "payload": { diff --git a/tests/test_creation_contracts.py b/tests/test_creation_contracts.py index 422e012ac..6cd465ed6 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_dump() + with pytest.raises(ValidationError, match='clientIntentFingerprint requires a durable creation receipt'): + parse_command({**request, 'clientIntentFingerprint': 'a' * 64}) From 1d1c562e49645f85966c7feab0c60fbe9db738c9 Mon Sep 17 00:00:00 2001 From: Dragonborn <1078757180@qq.com> Date: Sat, 5 Dec 2026 18:14:44 +0800 Subject: [PATCH 3/3] Declare request fingerprints only on creation commit commands --- .../opendirector/domain/creation/commands.py | 14 +- src/contracts/creation.schema.json | 514 ++++++++---------- src/contracts/generated.ts | 194 +++---- tests/test_creation_contracts.py | 4 +- 4 files changed, 336 insertions(+), 390 deletions(-) diff --git a/packages/core/src/opendirector/domain/creation/commands.py b/packages/core/src/opendirector/domain/creation/commands.py index 9acd26648..33248597a 100644 --- a/packages/core/src/opendirector/domain/creation/commands.py +++ b/packages/core/src/opendirector/domain/creation/commands.py @@ -410,13 +410,9 @@ class CommandBase(Contract): type: str = Field(description='Operation or variant discriminator.') expectedVersions: tuple[ObjectVersion, ...] = Field(default=(), description='Current versions of mutated existing objects; payload revision fields do not replace these.') expectedPreview: Digest | None = Field(default=None, description='Fingerprint of the confirmed impact preview.') - clientIntentFingerprint: Digest | None = Field(default=None, exclude_if=lambda value: value is None, - description='SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.') @model_validator(mode='after') def scope_and_versions(self): - if self.clientIntentFingerprint is not None and self.type.startswith('pipeline.'): - raise ValueError('clientIntentFingerprint requires a durable creation receipt') unique([(version.objectType, version.id) for version in self.expectedVersions], 'expected object versions') payload = self.payload owned = getattr(payload, 'item', None) or getattr(payload, 'spec', None) or getattr(payload, 'reference', None) or getattr(payload, 'document', None) @@ -503,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.'), @@ -559,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 @@ -578,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.'))) diff --git a/src/contracts/creation.schema.json b/src/contracts/creation.schema.json index 63846250a..a36a718d2 100644 --- a/src/contracts/creation.schema.json +++ b/src/contracts/creation.schema.json @@ -150,7 +150,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -324,7 +324,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -518,7 +518,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -591,7 +591,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -1111,7 +1111,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -1708,7 +1708,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -1997,7 +1997,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -2121,7 +2121,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -2354,7 +2354,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -2472,7 +2472,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -2567,7 +2567,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -2678,7 +2678,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -2936,7 +2936,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -3031,7 +3031,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -3153,7 +3153,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -3268,7 +3268,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -3739,7 +3739,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -3917,7 +3917,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -4057,7 +4057,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -4409,20 +4409,6 @@ "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": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", - "title": "Clientintentfingerprint" } }, "required": [ @@ -4926,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": { @@ -5978,7 +6030,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -6197,7 +6249,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -7086,7 +7138,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -7553,7 +7605,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -7626,7 +7678,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -7699,7 +7751,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -7788,7 +7840,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -9431,7 +9483,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -9518,7 +9570,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -9607,7 +9659,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -12446,7 +12498,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -12552,7 +12604,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -13056,20 +13108,6 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, - "clientIntentFingerprint": { - "anyOf": [ - { - "pattern": "^[0-9a-f]{64}$", - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", - "title": "Clientintentfingerprint" - }, "payload": { "$ref": "#/$defs/PipelineAdopt", "description": "Adopt a candidate job for an awaiting Pipeline step and continue downstream execution." @@ -13129,20 +13167,6 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, - "clientIntentFingerprint": { - "anyOf": [ - { - "pattern": "^[0-9a-f]{64}$", - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", - "title": "Clientintentfingerprint" - }, "payload": { "$ref": "#/$defs/PipelineControl", "description": "Cancel pending steps and request cancellation of running steps in a Pipeline execution." @@ -13299,20 +13323,6 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, - "clientIntentFingerprint": { - "anyOf": [ - { - "pattern": "^[0-9a-f]{64}$", - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", - "title": "Clientintentfingerprint" - }, "payload": { "$ref": "#/$defs/PipelineControl", "description": "Pause an active Pipeline execution after its in-flight steps finish." @@ -13451,20 +13461,6 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, - "clientIntentFingerprint": { - "anyOf": [ - { - "pattern": "^[0-9a-f]{64}$", - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", - "title": "Clientintentfingerprint" - }, "payload": { "$ref": "#/$defs/PipelineControl", "description": "Resume a paused Pipeline execution." @@ -13554,20 +13550,6 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, - "clientIntentFingerprint": { - "anyOf": [ - { - "pattern": "^[0-9a-f]{64}$", - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", - "title": "Clientintentfingerprint" - }, "payload": { "$ref": "#/$defs/PipelineRetry", "description": "Retry failed or skipped steps of a settled Pipeline execution while reusing succeeded steps." @@ -13699,20 +13681,6 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, - "clientIntentFingerprint": { - "anyOf": [ - { - "pattern": "^[0-9a-f]{64}$", - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", - "title": "Clientintentfingerprint" - }, "payload": { "$ref": "#/$defs/PipelineStart", "description": "Compile and start a durable concurrent Pipeline execution in the background." @@ -13942,7 +13910,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -14168,7 +14136,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -14241,7 +14209,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -14552,7 +14520,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -14770,7 +14738,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -14959,7 +14927,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -15054,7 +15022,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -15149,7 +15117,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -15455,7 +15423,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -15877,7 +15845,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -15972,7 +15940,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -16153,7 +16121,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -16226,7 +16194,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -18176,7 +18144,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -19737,7 +19705,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -20817,7 +20785,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -20995,7 +20963,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -21191,7 +21159,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -21266,7 +21234,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -21807,7 +21775,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -22432,7 +22400,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -22724,7 +22692,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -22851,7 +22819,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -23087,7 +23055,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -23207,7 +23175,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -23304,7 +23272,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -23417,7 +23385,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -23687,7 +23655,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -23784,7 +23752,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -23909,7 +23877,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -24026,7 +23994,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -24507,7 +24475,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -24687,7 +24655,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -24830,7 +24798,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -25191,20 +25159,6 @@ "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": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", - "title": "Clientintentfingerprint" } }, "required": [ @@ -25723,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": { @@ -26803,7 +26825,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -27028,7 +27050,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -27951,7 +27973,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -28433,7 +28455,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -28508,7 +28530,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -28583,7 +28605,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -28674,7 +28696,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -30400,7 +30422,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -30489,7 +30511,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -30580,7 +30602,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -33498,7 +33520,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -33606,7 +33628,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -34123,20 +34145,6 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, - "clientIntentFingerprint": { - "anyOf": [ - { - "pattern": "^[0-9a-f]{64}$", - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", - "title": "Clientintentfingerprint" - }, "payload": { "$ref": "#/$defs/PipelineAdopt", "description": "Adopt a candidate job for an awaiting Pipeline step and continue downstream execution." @@ -34198,20 +34206,6 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, - "clientIntentFingerprint": { - "anyOf": [ - { - "pattern": "^[0-9a-f]{64}$", - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", - "title": "Clientintentfingerprint" - }, "payload": { "$ref": "#/$defs/PipelineControl", "description": "Cancel pending steps and request cancellation of running steps in a Pipeline execution." @@ -34370,20 +34364,6 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, - "clientIntentFingerprint": { - "anyOf": [ - { - "pattern": "^[0-9a-f]{64}$", - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", - "title": "Clientintentfingerprint" - }, "payload": { "$ref": "#/$defs/PipelineControl", "description": "Pause an active Pipeline execution after its in-flight steps finish." @@ -34525,20 +34505,6 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, - "clientIntentFingerprint": { - "anyOf": [ - { - "pattern": "^[0-9a-f]{64}$", - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", - "title": "Clientintentfingerprint" - }, "payload": { "$ref": "#/$defs/PipelineControl", "description": "Resume a paused Pipeline execution." @@ -34632,20 +34598,6 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, - "clientIntentFingerprint": { - "anyOf": [ - { - "pattern": "^[0-9a-f]{64}$", - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", - "title": "Clientintentfingerprint" - }, "payload": { "$ref": "#/$defs/PipelineRetry", "description": "Retry failed or skipped steps of a settled Pipeline execution while reusing succeeded steps." @@ -34782,20 +34734,6 @@ "description": "Fingerprint of the confirmed impact preview.", "title": "Expectedpreview" }, - "clientIntentFingerprint": { - "anyOf": [ - { - "pattern": "^[0-9a-f]{64}$", - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", - "title": "Clientintentfingerprint" - }, "payload": { "$ref": "#/$defs/PipelineStart", "description": "Compile and start a durable concurrent Pipeline execution in the background." @@ -35033,7 +34971,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -35266,7 +35204,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -35341,7 +35279,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -35665,7 +35603,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -35885,7 +35823,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -36080,7 +36018,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -36177,7 +36115,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -36274,7 +36212,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -36588,7 +36526,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -37013,7 +36951,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -37110,7 +37048,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -37295,7 +37233,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -37370,7 +37308,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -39416,7 +39354,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { @@ -41045,7 +40983,7 @@ } ], "default": null, - "description": "SHA-256 of the original request for commands recorded in the creation commit log. Omit for Pipeline execution commands.", + "description": "Caller-supplied SHA-256 of its original request before it was expanded into a command.", "title": "Clientintentfingerprint" }, "payload": { diff --git a/src/contracts/generated.ts b/src/contracts/generated.ts index b0e74a101..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; } @@ -453,7 +453,6 @@ export interface CommandBaseInput extends ContractInput { readonly type: string; readonly expectedVersions?: ReadonlyArray; readonly expectedPreview?: string | null; - readonly clientIntentFingerprint?: string | null; } export interface CommandReceiptInput extends ContractInput { @@ -506,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; @@ -561,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; } @@ -589,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; } @@ -677,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; } @@ -716,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; } @@ -735,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; } @@ -891,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; } @@ -900,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; } @@ -909,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; } @@ -1169,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; } @@ -1181,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; } @@ -1335,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; } @@ -1364,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; } @@ -1389,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; } @@ -1419,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; } @@ -1441,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; } @@ -1451,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; } @@ -1461,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; } @@ -1501,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; } @@ -1562,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; } @@ -1572,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; } @@ -1594,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; } @@ -1804,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; } @@ -1973,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; } @@ -2056,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; } @@ -2075,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; } @@ -2098,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; } @@ -2161,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; } @@ -2205,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; } @@ -2234,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; } @@ -2250,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; } @@ -2266,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; } @@ -2281,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; } @@ -2291,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; } @@ -2305,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; } @@ -2333,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; } @@ -2343,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; } @@ -2359,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; } @@ -2373,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; } @@ -2421,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; } @@ -2435,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; } @@ -2451,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; } @@ -2498,7 +2501,6 @@ export interface CommandBase extends Contract { readonly type: string; readonly expectedVersions: ReadonlyArray; readonly expectedPreview: string | null; - readonly clientIntentFingerprint?: string | null; } export interface CommandReceipt extends Contract { @@ -2551,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; @@ -2606,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; } @@ -2634,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; } @@ -2722,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; } @@ -2761,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; } @@ -2780,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; } @@ -2936,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; } @@ -2945,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; } @@ -2954,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; } @@ -3213,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; } @@ -3225,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; } @@ -3379,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; } @@ -3408,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; } @@ -3433,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; } @@ -3463,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; } @@ -3485,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; } @@ -3495,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; } @@ -3505,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; } @@ -3545,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; } @@ -3606,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; } @@ -3616,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; } @@ -3638,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; } @@ -3848,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; } @@ -4017,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 6cd465ed6..6eba90b7d 100644 --- a/tests/test_creation_contracts.py +++ b/tests/test_creation_contracts.py @@ -620,6 +620,6 @@ def test_audio_generation_options_match_shared_validation(protocol, allowed): 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_dump() - with pytest.raises(ValidationError, match='clientIntentFingerprint requires a durable creation receipt'): + assert 'clientIntentFingerprint' not in command.model_json_schema()['properties'] + with pytest.raises(ValidationError, match='clientIntentFingerprint'): parse_command({**request, 'clientIntentFingerprint': 'a' * 64})