ConnectorService.StagePartition
Stage one adopted partition using the workspace executor identity and its platform-issued grant. The stream can report progress before the completed receipt. The response example shows the receipt reference, which the platform uses to adopt the output.
ConnectorService · Connector runtime API for provider implementers. The platform calls the provider runtime using its authenticated workload transport.
POST /prokrust.connector.v1.ConnectorService/StagePartition
This RPC uses a response stream. The example shows one message. Use a streaming Connect client for the sequence.
Request fields
| JSON field | Type | Meaning |
|---|---|---|
expected | ConnectionIdentity | Full identity of the connection the caller resolved. The runtime compares it to its own identity before serving the request. |
adoptedScan | ArtifactRef | Reference to the platform record that adopted the execution input and plan. |
plan | ArtifactRef | Reference to the exact immutable plan the platform adopted. |
partition | Partition | Partition record copied from the plan’s verified manifest. |
partitionManifest | ArtifactRef | Manifest artifact containing the requested partition. |
attemptId | string | ID of the reserved partition attempt. Retries of the same grant preserve this ID. |
attemptAuthorization | ArtifactRef | Trusted grant that binds the attempt, partition, executor, budget and output. |
output | OutputScope | Exact store and prefix authorized for this attempt’s outputs. |
budget | Budget | Budget from the attempt grant. The runtime verifies it before reading the source. |
Example request
{
"expected": {
"installationNamespaceUid": "00000000-0000-4000-8000-000000000001",
"workspaceNamespaceUid": "00000000-0000-4000-8000-000000000002",
"connection": {
"apiVersion": "sources.prokrust.ai/v1beta1",
"kind": "SyntheticConnection",
"namespace": "analytics",
"name": "fixture",
"uid": "00000000-0000-4000-8000-000000000003"
},
"providerId": "prokrust.ai/synthetic",
"providerMajor": 1,
"configDigest": "sha256:b0d4913f313bf0e18b6ec2d81d84ff748bdd415a26cb32243978b22b248567bc"
},
"adoptedScan": {
"store": {
"apiVersion": "platform.prokrust.ai/v1beta1",
"kind": "ArtifactStore",
"namespace": "analytics",
"name": "default",
"uid": "00000000-0000-4000-8000-000000000004"
},
"key": "control/run/adopted.json",
"version": "1",
"sha256": "d5f31d053f88c098908769ebc357fb82af67ffad907add73871fb8164e7cdab1",
"sizeBytes": "768"
},
"plan": {
"store": {
"apiVersion": "platform.prokrust.ai/v1beta1",
"kind": "ArtifactStore",
"namespace": "analytics",
"name": "default",
"uid": "00000000-0000-4000-8000-000000000004"
},
"key": "staging/run/plan/plan.json",
"version": "1",
"sha256": "6100655cb2d718d6f2eebc44209024234a78d8ee49f33e9e64c93c63be7ae1f2",
"sizeBytes": "2048"
},
"partition": {
"ordinal": "0",
"partitionId": "p-0000000000000000",
"readDescriptor": "eyJvcmRpbmFsIjowLCJyb3dzIjo2NCwidmVyc2lvbiI6ImFlYWUzOTBjYWYyMTM5YTMyNmI2OGQ5MDRkNTdmNDdhNDM4ZWIwYmJkMGEwZjQ0MDhiYWNhNTg0YzUzYWZkNTgifQ==",
"estimatedSourceBytes": "3546",
"estimatedSourceRows": "64"
},
"partitionManifest": {
"store": {
"apiVersion": "platform.prokrust.ai/v1beta1",
"kind": "ArtifactStore",
"namespace": "analytics",
"name": "default",
"uid": "00000000-0000-4000-8000-000000000004"
},
"key": "staging/run/plan/manifest.json",
"version": "1",
"sha256": "5c24691abe6fc550a59aca146b94a9b4f08e06c87012b90722d3b1d15cd49d58",
"sizeBytes": "512"
},
"attemptId": "partition-1",
"attemptAuthorization": {
"store": {
"apiVersion": "platform.prokrust.ai/v1beta1",
"kind": "ArtifactStore",
"namespace": "analytics",
"name": "default",
"uid": "00000000-0000-4000-8000-000000000004"
},
"key": "control/run/grant.json",
"version": "1",
"sha256": "0cd5e8e8662d9419eb19d2a21c74648f530073306c324bead5e2766d7a48ec84",
"sizeBytes": "1024"
},
"output": {
"store": {
"apiVersion": "platform.prokrust.ai/v1beta1",
"kind": "ArtifactStore",
"namespace": "analytics",
"name": "default",
"uid": "00000000-0000-4000-8000-000000000004"
},
"prefix": "staging/run/partition/"
},
"budget": {
"deadline": "2026-03-10T12:02:00Z",
"maxSourceBytes": "1048576",
"maxStagedBytes": "1048576"
}
}
Response fields
| JSON field | Type | Meaning |
|---|---|---|
progress | Progress (one of event) | Intermediate progress for this invocation. |
completedReceipt | ArtifactRef (one of event) | Reference to the completed partition receipt. The platform uses the receipt to adopt the output. |
Example response message
{
"completedReceipt": {
"store": {
"apiVersion": "platform.prokrust.ai/v1beta1",
"kind": "ArtifactStore",
"namespace": "analytics",
"name": "default",
"uid": "00000000-0000-4000-8000-000000000004"
},
"key": "staging/run/partition/receipt.json",
"version": "1",
"sha256": "b787fadf32d7db00b36d682cac70949c5bcc3f45063df23ad8d79a9538cce5da",
"sizeBytes": "1024"
}
}