Open AgentOutputV1/ContextPackV2 capability bits and add EffectLedgerRecordV1 so CheckpointV2 write auto-resume only unlocks on a safe watermark. Co-authored-by: Cursor <cursoragent@cursor.com>
47 lines
1.3 KiB
JSON
47 lines
1.3 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "marqdo://contracts/EffectLedgerRecordV1",
|
|
"title": "EffectLedgerRecordV1",
|
|
"type": "object",
|
|
"required": [
|
|
"schema",
|
|
"schema_version",
|
|
"operation_id",
|
|
"idempotency_key",
|
|
"args_digest",
|
|
"effect_class",
|
|
"state"
|
|
],
|
|
"properties": {
|
|
"schema": { "const": "EffectLedgerRecordV1" },
|
|
"schema_version": { "const": 1 },
|
|
"operation_id": { "type": "string" },
|
|
"idempotency_key": { "type": "string" },
|
|
"args_digest": { "type": "string" },
|
|
"resource_scope": { "type": ["string", "null"] },
|
|
"expected_revision": { "type": ["string", "null"] },
|
|
"effect_class": {
|
|
"type": "string",
|
|
"enum": ["read", "write", "execute", "external_write", "none"]
|
|
},
|
|
"result_ref": { "type": ["string", "null"] },
|
|
"state": {
|
|
"type": "string",
|
|
"enum": [
|
|
"prepared",
|
|
"started",
|
|
"committed",
|
|
"failed_no_effect",
|
|
"unknown",
|
|
"reconciled_committed",
|
|
"reconciled_no_effect",
|
|
"needs_input"
|
|
]
|
|
},
|
|
"logical_run_id": { "type": ["string", "null"] },
|
|
"step_id": { "type": ["string", "null"] },
|
|
"attempt_id": { "type": ["string", "null"] }
|
|
},
|
|
"additionalProperties": true
|
|
}
|