From 1dd8b1d0d48c0aad8247dd4b3d1044323a44d06f Mon Sep 17 00:00:00 2001 From: Andrew Peris Date: Thu, 5 Nov 2026 07:47:48 -0500 Subject: [PATCH 01/10] docs: reconcile O02/O03 candidate scope --- rfcs/0010-build-attempt-lifecycle.md | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/rfcs/0010-build-attempt-lifecycle.md b/rfcs/0010-build-attempt-lifecycle.md index 9f8c24e..8fd288e 100644 --- a/rfcs/0010-build-attempt-lifecycle.md +++ b/rfcs/0010-build-attempt-lifecycle.md @@ -14,6 +14,10 @@ - Conformance evidence: [Studio issue #103](https://github.com/DefinitelySecureStudio/studio/issues/103); finite synthetic fixture expectations below - Decision owner and required A4 reviewers: @andrewperis; Codex and Platform maintainers +## Implementation reconciliation — 2026-11-05 + +The merged [Codex candidate](https://github.com/DefinitelySecureStudio/codex/pull/26), [Platform retry](https://github.com/DefinitelySecureStudio/platform/pull/54), and [Platform review fixes](https://github.com/DefinitelySecureStudio/platform/pull/55) establish a bounded synthetic path only: exact opt-in Comic build-result 1.1.0, with one explicit caller-authorized retry for a confirmed no-output rate-limit outcome under the original job deadline and material limits. They do not adopt this RFC. The candidate does not map cancellation, timeout, validation failure, or ambiguous outcomes into a Comic result, and it does not perform writable restart recovery. Those broader proposals below remain deferred pending contract-owner review. A confirmed unmappable second provider outcome may close the exhausted host job after confirmed evidence writes; that closure does not create a second Comic result or terminal result link. + ## Summary This draft proposes a bounded lifecycle for one build attempt against one exact @@ -87,7 +91,7 @@ result object has been constructed in memory. | Prepared | Execute once | Invoke exactly one Provider Execution request using the recorded `execution_id`; do not replace a caller-supplied `correlation_id` with the `attempt_id`. Wait for its single normalized result; the host state is `executing` until that result is durably recorded. | A second execution call under this attempt; hidden adapter retry; correlation value rewritten to imply attempt identity. | | Executing | Record the returned outcome | Append and confirm a protected immutable `provider-outcome` record containing the exact normalized result and canonical byte size/digest, keyed by `execution_id`, before discarding the returned outcome or interpreting it for a Comic Manifest result. | Proceeding without a confirmed outcome record; losing the outcome before its protected record is confirmed. | | Outcome-recorded | Successful outcome and build-result verification | Construct one candidate `comic-build-result` with a distinct `result_id`, the same `attempt_id` and exact production reference. Preserve actual inputs, ordered transformations, verified outputs, status `complete`, and no diagnostics. This is `result-prepared`, not terminal. | Missing/mismatched required input, transformation, or output identity; an unverified output treated as successful. | -| Outcome-recorded | Normalized failure or cancellation | Prepare a candidate result using existing status/diagnostic fields; transition to `result-prepared`. Proposed mapping: use `partial` only when verified outputs are retained; otherwise use `failed`. Use an applicable existing diagnostic, including `CANCELLED` for cancellation. Neither result is release-eligible. This remains nonterminal until persisted and confirmed. | Claiming `complete` with diagnostics or incomplete/unverified outputs; inventing a diagnostic or emitting unsafe diagnostic content. | +| Outcome-recorded | Normalized failure or cancellation | The original RFC proposal considered mappings using existing status/diagnostic fields; the 1.1.0 candidate does not select or implement those mappings. Preserve the exact protected outcome and remain `contract-mapping-blocked` unless a separately accepted mapping applies. | Treating cancellation as `failed`/`partial` with `CANCELLED` under this candidate, or claiming a terminal Comic result without a supported mapping. | | Outcome-recorded | Provider result is `timed-out` | Append and confirm a `contract-mapping-blocked` entry keyed by `attempt_id` and `execution_id` that references the confirmed protected outcome record and exact production revision. Do not create a Comic Manifest result, retry, or auto-finalize. | Coercing timeout to `failed`/`partial`; inventing a timeout diagnostic; reporting the build attempt terminal. | | Result-prepared | Begin terminal persistence | Freeze the candidate bytes, `result_id`, byte size, and digest. Append a `persisting` index entry for those exact bytes before submitting one immutable result write. | Changing candidate bytes/ID after `persisting`; submitting a second terminal write or changing IDs to bypass a conflict. | | Persisting | Immutable result and terminal link are confirmed | Verify the stored bytes against the frozen size/digest, then append and confirm one terminal index entry referring to that exact result. Only after both confirmations is the attempt `terminal`. | Missing/ambiguous commit, byte mismatch, or unconfirmed terminal link; reporting terminal before both confirmations. | @@ -180,8 +184,8 @@ authorization. All use synthetic data from the existing Comic Manifest fixture. | One-call identity and caller correlation | One request has a caller-supplied `correlation_id` | The prepared index associates exactly one distinct `execution_id` with the `attempt_id`; the request's caller-supplied correlation value is not overwritten with the `attempt_id` and follows Provider Execution v1 semantics. A second provider call under this attempt is rejected; multi-call association is deferred. | | Retry after terminal failure | A prior failed result and explicit caller retry authorization | New attempt/result IDs; retry link to the prior attempt; same exact production reference; prior result bytes and status remain unchanged. Retry eligibility itself is not decided here. | | Failure without usable output | An otherwise schema-valid mock Provider Execution result for the prepared `execution_id`: `status=failed`, `finish_reason=error`, `error.category=output-validation`, `error.code=OUTPUT_SCHEMA_INVALID`, `error.message="Mock output failed the declared output schema."`, `error.retryable=false`, `error.stage=output-validation`, no output | Build result uses existing `status=failed`, `outputs=[]`, and `diagnostics=[VALIDATION_FAILED]`; no successful output or release claim. The existing Provider Execution [error taxonomy](../specs/execution-contracts/provider-execution-v1.md#normalized-error-taxonomy) defines `output-validation`; the existing [Comic Manifest schema](../schemas/json/comic-manifest/v1/comic-manifest.schema.json) defines `VALIDATION_FAILED`. | -| Cancellation with retained verified output | Cancellation after a fixture output is independently verified | Terminal `partial` result with `CANCELLED`; only the verified output is retained; result cannot support release. | -| Cancellation before usable output | Cancellation before any output is verified | Terminal `failed` result with `CANCELLED`; no output is represented as successful. | +| Cancellation with retained verified output | Cancellation after a fixture output is independently verified | Preserve the normalized outcome; no cancellation-to-Comic mapping is selected by the 1.1.0 candidate. Keep the attempt mapping-blocked pending a separate owner decision. | +| Cancellation before usable output | Cancellation before any output is verified | Preserve the normalized outcome; no cancellation-to-Comic mapping is selected by the 1.1.0 candidate. Keep the attempt mapping-blocked pending a separate owner decision. | | Provider execution timeout | An otherwise schema-valid mock Provider Execution result for the prepared `execution_id`: `status=timed-out`, `finish_reason=error`, `error.category=timeout`, `error.code=MOCK_TIMEOUT`, `error.message="Mock adapter deadline expired."`, `error.retryable=false`, `error.stage=adapter`, no output | Append exact normalized result bytes and verified canonical JSON v1 byte size/SHA-256 to protected `provider-outcome` keyed by `execution_id`; append `contract-mapping-blocked` keyed by `attempt_id`/`execution_id`. Emit no Comic Manifest result; do not invent `TIMEOUT`, coerce a status, retry, or auto-finalize. | | Revision mismatch on retry | Retry entry points to a different production identity/revision | Reject as a retry before execution; require a fresh lineage for the changed revision. | | Replay or overwrite | A second terminal write is submitted for a completed attempt, or existing attempt/result IDs are submitted with different bytes | Reject, including byte-identical replay writes; preserve the original immutable bytes and lineage. An identical read returns the stored result without mutation. | @@ -241,9 +245,10 @@ separate owners and future approved scopes. ## Implementation plan 1. Obtain the contract owner's decision on the proposed protected append-only - attempt index, cancellation mapping, immutable-write confirmation/recovery - boundary, and canonical JSON v1 integrity envelope. Timeout mapping is - deliberately deferred to a separately versioned contract decision. + attempt index, supported result mappings, immutable-write confirmation + boundary, and canonical JSON v1 integrity envelope. Cancellation, timeout, + ambiguous-result mapping, and writable restart recovery remain deferred; the + 1.1.0 candidate does not settle them. 2. If accepted and the lifecycle requires a different result representation, coordinate with RFC 0012 and prepare a separate versioned Comic Manifest schema/fixture bundle. Do not revise the published 1.0.0 artifacts. Review @@ -269,11 +274,11 @@ separate owners and future approved scopes. do not overwrite, silently repeat, execute again, retry, or auto-finalize. The precise store implementation and read-consistency guarantees remain separately designed. -3. **Accept explicit existing-diagnostic mappings.** For cancellation, use - `partial` plus `CANCELLED` only when verified outputs are retained; otherwise - use `failed` plus `CANCELLED`. For the finite normalized output-validation - failure fixture, use `failed` plus `VALIDATION_FAILED`, with no Manifest - output. These mappings add no diagnostic enum or result status. +3. **Defer broader failure mappings.** The 1.1.0 candidate selects only the + confirmed no-output rate-limit representation (`failed` + `OUTPUT_MISSING`). + Cancellation and output-validation mappings remain unselected; preserve their + exact protected outcomes and do not infer a Comic result until a separate + contract-owner decision establishes a supported mapping. 4. **Accept the timeout deferral.** Preserve the exact `timed-out` Provider Execution result in the protected index and mark the attempt `contract-mapping-blocked`; emit no Comic Manifest terminal result until a From 06e87323ea8ac33edd25cc042e86a7979a5999af Mon Sep 17 00:00:00 2001 From: Andrew Peris Date: Thu, 5 Nov 2026 07:47:53 -0500 Subject: [PATCH 02/10] docs: reconcile O02/O03 candidate scope --- rfcs/0011-job-limits-and-recovery.md | 34 +++++++++++++++------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/rfcs/0011-job-limits-and-recovery.md b/rfcs/0011-job-limits-and-recovery.md index 430b77e..df5ab0a 100644 --- a/rfcs/0011-job-limits-and-recovery.md +++ b/rfcs/0011-job-limits-and-recovery.md @@ -14,6 +14,10 @@ - Conformance evidence: [Studio issue #104](https://github.com/DefinitelySecureStudio/studio/issues/104); synthetic fixture expectations below - Decision owner and required A4 reviewers: `@andrewperis`; Codex and Platform maintainers +## Implementation reconciliation — 2026-11-05 + +The merged [Codex candidate](https://github.com/DefinitelySecureStudio/codex/pull/26), [Platform retry](https://github.com/DefinitelySecureStudio/platform/pull/54), and [Platform review fixes](https://github.com/DefinitelySecureStudio/platform/pull/55) implement only the bounded, opt-in synthetic no-output rate-limit retry using the original deadline and material budgets. This Draft's broader cancellation mapping and restart-driven writes/calls remain proposals, not tested candidate behavior or accepted contract. Under the current candidate, restart handling is inspection-only; cancellation, timeout, ambiguous writes, and other unmappable outcomes do not authorize retry. A confirmed unmappable second outcome can close the exhausted host job after confirmed close evidence without producing a second Comic result or terminal result link. Contract-owner review remains pending. + ## Summary This draft proposes finite host limits and explicit cancellation, retry, and @@ -200,20 +204,18 @@ index and apply the following rules: - After `prepared`, before confirmed `dispatch-started`: mark the job `cancelled-before-dispatch`; make no provider call and create no `comic-build-result`. -- After `dispatch-started`, while the call is in progress: signal cancellation - once. Preserve the actual normalized Provider Execution result. If it returns - `cancelled`, use RFC 0010's proposed mapping (`failed` plus `CANCELLED` when - there are no verified outputs; `partial` plus `CANCELLED` only when verified - outputs are retained). If it returns success after the request, do not relabel - the provider outcome as cancelled; finish only already-admitted bounded - validation/persistence, with no retry or additional call. If the result is - incomplete, use only the existing partial/cancelled mapping when its schema - conditions are met; otherwise remain unresolved because this draft defines no - additional result mapping. -- After a normalized outcome is recorded but before persistence: preserve that - outcome and stop any future attempt. Apply only the existing RFC 0010 mapping; - cancellation does not rewrite success, failure, or a timeout into a different - provider result. +- After `dispatch-started`, while the call is in progress: preserve the actual + normalized Provider Execution result. The original proposal considered a + cancellation signal and RFC 0010 result mappings, but neither cancellation + mapping nor writable cancellation recovery is included in the 1.1.0 candidate. + Keep an unmappable outcome protected and `contract-mapping-blocked`; do not + create a Comic result or retry. A late success may be handled only under an + already supported path with its actual verified result; cancellation does not + relabel it. +- After a normalized outcome is recorded but before persistence: preserve + that outcome. Apply only a mapping selected by an accepted contract and the + candidate's exact scope; otherwise remain mapping-blocked. Cancellation does + not rewrite the provider result. - After result persistence starts: do not cancel, overwrite, or repeat the write. Read back and verify the fixed bytes and terminal link. If either is uncertain, retain the nonterminal reconciliation state. @@ -326,9 +328,9 @@ Comic Manifest fixture; no real provider or protected source is involved. | Existing Manifest parser boundary | Use an 8 MiB document at the existing parser limits, then one over the bound; separately exceed depth 32, 100,000 values, or 32,768 UTF-8 bytes in a string. | At-boundary input proceeds to schema validation; each over-bound input is rejected before execution with no partial parse treated as success. | | Cancel before admission | Cancellation is already set at submission. | No job/attempt IDs, no provider call, no result. | | Cancel after preparation, before dispatch marker | Confirm `prepared`, then request cancellation before `dispatch-started`. | Record `cancelled-before-dispatch`; make no provider call or Comic Manifest result. | -| Cancel after dispatch starts | Mock call receives one cancellation signal and returns normalized `cancelled`; no verified output exists. | Preserve exact execution outcome; map only through RFC 0010 to `failed` plus `CANCELLED`; do not retry. | +| Cancel after dispatch starts | Mock call returns normalized `cancelled`; no verified output exists. | Preserve exact execution outcome. The candidate defines no cancellation mapping or retry; remain mapping-blocked pending a separate owner decision. | | Cancel arrives after successful response | Mock returns a valid success after cancellation request; result is already fully complete and verified. | Preserve the success; finish only bounded validation/persistence and return the exact complete result. Do not relabel Provider Execution as cancelled or start retry. | -| Cancel after call, before persistence | Successful or failed normalized outcome is confirmed in `provider-outcome`; cancellation arrives before `persisting`. | Preserve the exact provider outcome, stop future attempts, and apply only RFC 0010's existing result mapping. Do not rewrite the outcome or retry. | +| Cancel after call, before persistence | A normalized outcome is confirmed in `provider-outcome`; cancellation arrives before `persisting`. | Preserve the exact outcome. Use only an accepted mapping; otherwise remain mapping-blocked. Do not rewrite the outcome or retry. | | Cancel during persistence | Result write/readback is ambiguous. | Preserve fixed IDs/digest, remain nonterminal, reconcile by reads; never overwrite or retry the write blindly. | | Eligible retry | First attempt is terminal/reconciled, failed with `rate-limit`, `retryable=true`, `retry_after_ms`, safe provider detail `RATE_LIMITED_BEFORE_ACCEPTANCE`, no output, same production identity, positive budgets, and explicit caller retry. | Exactly one new attempt with new attempt/execution/result IDs and `retry_of_attempt_id`; prior records unchanged; one provider call. | | Retry denials | Repeat with cap exhausted, deadline expired, insufficient bytes, no explicit caller action, missing retry delay, `retryable=false`, changed revision, cancellation, timeout, or ambiguous call/write. | Reject before any new provider call; preserve evidence and prior records. | From 78c6c61af04125ab58f0a38dfbdeec0c3d083203 Mon Sep 17 00:00:00 2001 From: Andrew Peris Date: Thu, 5 Nov 2026 07:47:57 -0500 Subject: [PATCH 03/10] docs: reconcile O02/O03 candidate scope --- rfcs/0012-no-output-failed-build-results.md | 26 +++++++++++++-------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/rfcs/0012-no-output-failed-build-results.md b/rfcs/0012-no-output-failed-build-results.md index b5ede53..ae59af7 100644 --- a/rfcs/0012-no-output-failed-build-results.md +++ b/rfcs/0012-no-output-failed-build-results.md @@ -24,6 +24,10 @@ proposal below records the earlier alternatives; its undecided wording is historical to that proposal. Normative acceptance, publication and production adoption remain separate review gates. +## Implementation reconciliation — 2026-11-05 + +Codex [PR #26](https://github.com/DefinitelySecureStudio/codex/pull/26) merged the exact 1.1.0 result-only candidate; Platform [PR #54](https://github.com/DefinitelySecureStudio/platform/pull/54) and [PR #55](https://github.com/DefinitelySecureStudio/platform/pull/55) implement and fix its bounded synthetic retry path. The opening proposal below is historical where it offers undecided version choices or broader mappings. Current candidate scope is exact 1.1.0, additive and opt-in; v1 behavior is unchanged. Only a confirmed no-output rate-limit failure can authorize one separately explicit retry under original limits. Cancellation, timeout, validation-failure and ambiguous-write mappings, plus writable restart recovery, remain deferred. A confirmed but unmappable second outcome may close an exhausted host job after confirmed close evidence; it does not produce a validated second Comic result or terminal result link. Normative acceptance, issue acceptance, release and production adoption remain pending. + ## Summary This draft proposes one narrowly versioned `comic-build-result` representation @@ -101,7 +105,7 @@ into the Manifest result. | Confirmed outcome | Proposed Comic Manifest result | Retry effect | |---|---|---| | Rate limit that positively proves rejection before acceptance/action and no output | `failed`, `OUTPUT_MISSING`, no outputs, one truthful empty-output transformation | Eligible for consideration only after immutable result readback and terminal-link confirmation, with all RFC 0011 conditions and a separate explicit caller retry. | -| Normalized cancellation after dispatch, with confirmed no output | `failed`, `CANCELLED`, no outputs, only if the selected version retains RFC 0010's existing cancellation mapping | Never rate-limit eligible; no retry. Cancellation before dispatch produces no provider call and no Comic Manifest result. | +| Normalized cancellation after dispatch | No cancellation mapping is selected by the 1.1.0 candidate; preserve the protected outcome and remain `contract-mapping-blocked` pending a separate decision. | No retry. Cancellation before dispatch produces no provider call and no Comic result. | | Output-validation failure where provider bytes exist and their digests are verified | Keep actual output digests in the transformation and use RFC 0010's existing `failed` + `VALIDATION_FAILED` mapping where applicable. This is not the no-output form even if no valid Manifest rendition is retained. | Not retryable under RFC 0011. | | Validation failure with missing normalized content or unknown provider-byte presence | Preserve the protected outcome; do not infer no bytes from an empty normalized output. Remain `contract-mapping-blocked` until a separate policy and evidence establish a valid mapping. | No retry. | | Failure where an output exists, has been produced, or its existence/integrity is uncertain | Do not use the no-output form. Apply an already supported mapping only when its actual evidence satisfies that mapping; otherwise preserve protected evidence and block for reconciliation. | Not eligible under the rate-limit rule. | @@ -165,12 +169,14 @@ draft PR. Cancellation before confirmed dispatch prevents the provider call and creates no Comic Manifest result. During a dispatched call, preserve the actual normalized -outcome. A confirmed no-output `cancelled` outcome may use `failed` plus -`CANCELLED` only under the explicitly selected O02 mapping; cancellation never -becomes a rate-limit outcome and never permits retry. A late success remains a -success with its actual verified outputs; cancellation does not relabel it. -After restart, recovery is read-only by default and requires the authorization -rules in RFC 0011 for any permitted transition. +outcome. The 1.1.0 candidate selects no cancellation-to-Comic mapping. Preserve +any confirmed cancellation outcome in protected evidence and keep it +`contract-mapping-blocked` until a separate owner decision selects a mapping. +Cancellation never becomes a rate-limit outcome and never permits retry. A late +success remains a success with its actual verified outputs; cancellation does +not relabel it. Restart handling in the current candidate is inspection-only; +writable recovery remains deferred, even when an RFC proposal describes a +possible authorization path. Timeout remains deliberately unmapped. A `timed-out` Provider Execution result stays protected and `contract-mapping-blocked`; this proposal adds no `TIMEOUT` @@ -201,9 +207,9 @@ These are proposed expectations, not executed tests or claims of conformance. empty-output. If normalized content is missing and provider-byte presence cannot be established, remain blocked without a terminal result. 3. **Cancellation:** pre-dispatch cancellation makes no call and emits no - result. A dispatched mock that returns confirmed `cancelled` with no output - can use `failed` + `CANCELLED` only when that existing mapping is in the - selected version; it never qualifies for retry. A successful response that + result. A dispatched mock that returns confirmed `cancelled` remains + mapping-blocked under this candidate; no `CANCELLED` result mapping or retry + is implied. A successful response that races cancellation preserves its verified outputs and success. 4. **Version compatibility:** the exact new version validates only when explicitly supported. The released 1.0.0 fixture corpus and validation From 695a1391caac90463f342a76b136a3fc5ad150bb Mon Sep 17 00:00:00 2001 From: Andrew Peris Date: Thu, 5 Nov 2026 07:48:02 -0500 Subject: [PATCH 04/10] docs: reconcile O02/O03 candidate scope --- specs/comic-build-result-1.1-candidate.md | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/specs/comic-build-result-1.1-candidate.md b/specs/comic-build-result-1.1-candidate.md index da1a511..87e8675 100644 --- a/specs/comic-build-result-1.1-candidate.md +++ b/specs/comic-build-result-1.1-candidate.md @@ -13,7 +13,8 @@ constraints; they do not advertise new production, release or approval support. The released 1.0.0 schema, specification, fixtures and artifacts are immutable. The candidate remains subject to contract-owner review before normative adoption. Local implementation authorization does not publish a contract or enable a -production consumer. No release tuple or adoption date is invented. +production consumer. No release tuple or adoption date is invented. Exact 1.1.0 +support is additive and opt-in; omitting the capability preserves v1 behavior. ## Exact capability and compatibility choice @@ -43,7 +44,10 @@ before acceptance/action and absence of output. Unknown or inaccessible output, cancellation, validation failure and timeout cannot use the no-output form. Existing failed results with verified output digests retain their prior meaning. This version introduces no cancellation mapping, new diagnostic or public proof -field. Provider detail and retry timing remain protected host metadata. +field. Provider detail and retry timing remain protected host metadata. Only a +confirmed no-output rate-limit failure can qualify for the one explicit retry. +Cancellation, timeout, validation-failure and ambiguous-write mappings remain +deferred. ## Lifecycle and retry decision @@ -55,11 +59,17 @@ field. Provider detail and retry timing remain protected host metadata. | result-prepared → persisting → terminal | freeze result identity, write once, exact readback, confirm terminal link | reconciliation required; no replay or replacement IDs | | terminal → explicit retry | caller `authorizeRetry: true`; elapsed delay; original deadline/material budget; maximum two attempts; prior result, outcome, input/prompt bytes and terminal links all reverified | no retry dispatch | | retry → terminal | new attempt/execution/result IDs; `retry_of_attempt_id`; unchanged production and old records | no third attempt | -| restart → inspect | read-only integrity verification | no automatic finalization or retry | +| restart → inspect | read-only integrity verification | no automatic finalization or retry; this candidate has no writable restart recovery | -The first failed terminal result is not a closed job while retry remains open. -The caller may explicitly decline it. The second result closes the job regardless -of outcome. The five-minute deadline and material ledger are never reset. Delay +The first confirmed no-output rate-limit result remains an open host job while +retry is available; the caller may explicitly decline it. A confirmed, mappable +second result closes the host job normally. If the second provider outcome is +confirmed and retained but cannot map to Comic Manifest, the implementation +confirms `contract-mapping-blocked` and `job-closed` host events and closes the +exhausted host job. That closure preserves both provider outcomes and the prior +Comic result, but it does not fabricate a second Comic result or terminal result +link. Uncertain outcome/readback/append/close writes and timeouts remain +unresolved. The five-minute deadline and material ledger are never reset. Delay is conservatively measured from the first terminal result, so persistence time cannot shorten the provider delay. Adapters perform no hidden retry. From 5d7c943748182b5d3c7a3893a8004ba0a41ad9ce Mon Sep 17 00:00:00 2001 From: Andrew Peris Date: Thu, 5 Nov 2026 07:49:45 -0500 Subject: [PATCH 05/10] docs: clarify deferred result mappings --- rfcs/0010-build-attempt-lifecycle.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rfcs/0010-build-attempt-lifecycle.md b/rfcs/0010-build-attempt-lifecycle.md index 8fd288e..a58efae 100644 --- a/rfcs/0010-build-attempt-lifecycle.md +++ b/rfcs/0010-build-attempt-lifecycle.md @@ -183,7 +183,7 @@ authorization. All use synthetic data from the existing Comic Manifest fixture. | First successful attempt | One exact production reference and one mock execution | New attempt/result IDs; result binds the same exact revision; actual input identities, ordered transformation digests and verified output identities are preserved; terminal `complete` is stored immutably. | | One-call identity and caller correlation | One request has a caller-supplied `correlation_id` | The prepared index associates exactly one distinct `execution_id` with the `attempt_id`; the request's caller-supplied correlation value is not overwritten with the `attempt_id` and follows Provider Execution v1 semantics. A second provider call under this attempt is rejected; multi-call association is deferred. | | Retry after terminal failure | A prior failed result and explicit caller retry authorization | New attempt/result IDs; retry link to the prior attempt; same exact production reference; prior result bytes and status remain unchanged. Retry eligibility itself is not decided here. | -| Failure without usable output | An otherwise schema-valid mock Provider Execution result for the prepared `execution_id`: `status=failed`, `finish_reason=error`, `error.category=output-validation`, `error.code=OUTPUT_SCHEMA_INVALID`, `error.message="Mock output failed the declared output schema."`, `error.retryable=false`, `error.stage=output-validation`, no output | Build result uses existing `status=failed`, `outputs=[]`, and `diagnostics=[VALIDATION_FAILED]`; no successful output or release claim. The existing Provider Execution [error taxonomy](../specs/execution-contracts/provider-execution-v1.md#normalized-error-taxonomy) defines `output-validation`; the existing [Comic Manifest schema](../schemas/json/comic-manifest/v1/comic-manifest.schema.json) defines `VALIDATION_FAILED`. | +| Failure without usable output | An otherwise schema-valid mock Provider Execution result for the prepared `execution_id`: `status=failed`, `finish_reason=error`, `error.category=output-validation`, `error.code=OUTPUT_SCHEMA_INVALID`, `error.message="Mock output failed the declared output schema."`, `error.retryable=false`, `error.stage=output-validation`, no output | Preserve the exact protected outcome and remain `contract-mapping-blocked`; the 1.1.0 candidate does not select the proposed `VALIDATION_FAILED` mapping. Do not infer a terminal Comic result or retry without a separate accepted mapping. | | Cancellation with retained verified output | Cancellation after a fixture output is independently verified | Preserve the normalized outcome; no cancellation-to-Comic mapping is selected by the 1.1.0 candidate. Keep the attempt mapping-blocked pending a separate owner decision. | | Cancellation before usable output | Cancellation before any output is verified | Preserve the normalized outcome; no cancellation-to-Comic mapping is selected by the 1.1.0 candidate. Keep the attempt mapping-blocked pending a separate owner decision. | | Provider execution timeout | An otherwise schema-valid mock Provider Execution result for the prepared `execution_id`: `status=timed-out`, `finish_reason=error`, `error.category=timeout`, `error.code=MOCK_TIMEOUT`, `error.message="Mock adapter deadline expired."`, `error.retryable=false`, `error.stage=adapter`, no output | Append exact normalized result bytes and verified canonical JSON v1 byte size/SHA-256 to protected `provider-outcome` keyed by `execution_id`; append `contract-mapping-blocked` keyed by `attempt_id`/`execution_id`. Emit no Comic Manifest result; do not invent `TIMEOUT`, coerce a status, retry, or auto-finalize. | From dbbab076825f3a5457205160c8e6f1b3affa6ae9 Mon Sep 17 00:00:00 2001 From: Andrew Peris Date: Thu, 5 Nov 2026 07:49:59 -0500 Subject: [PATCH 06/10] docs: mark writable restart proposal deferred --- rfcs/0011-job-limits-and-recovery.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rfcs/0011-job-limits-and-recovery.md b/rfcs/0011-job-limits-and-recovery.md index df5ab0a..211d36c 100644 --- a/rfcs/0011-job-limits-and-recovery.md +++ b/rfcs/0011-job-limits-and-recovery.md @@ -261,6 +261,8 @@ cannot establish this fact, deny retry and retain evidence for reconciliation. ### Resume and reconciliation +The writable continuations in this section are proposed RFC behavior only. They are not part of the merged 1.1.0 candidate, which supports read-only inspection after restart; no restart-driven dispatch, cancellation signal, result persistence, or terminal-link append is implemented or accepted here. Treat the authorization table below as deferred design material pending a separate contract-owner decision. + Restart recovery is read-only by default. It may inspect the protected index, verify the pinned production reference, read outcomes/results, and reconstruct budgets. It MUST NOT append an index record, prepare/advance an attempt, signal From 2ac145346785b247bf196232b3d6da107812695b Mon Sep 17 00:00:00 2001 From: Andrew Peris Date: Thu, 5 Nov 2026 07:51:29 -0500 Subject: [PATCH 07/10] docs: reconcile candidate decision with RFC 0012 --- rfcs/0012-no-output-failed-build-results.md | 32 +++++++++------------ 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/rfcs/0012-no-output-failed-build-results.md b/rfcs/0012-no-output-failed-build-results.md index ae59af7..7cf9688 100644 --- a/rfcs/0012-no-output-failed-build-results.md +++ b/rfcs/0012-no-output-failed-build-results.md @@ -106,7 +106,7 @@ into the Manifest result. |---|---|---| | Rate limit that positively proves rejection before acceptance/action and no output | `failed`, `OUTPUT_MISSING`, no outputs, one truthful empty-output transformation | Eligible for consideration only after immutable result readback and terminal-link confirmation, with all RFC 0011 conditions and a separate explicit caller retry. | | Normalized cancellation after dispatch | No cancellation mapping is selected by the 1.1.0 candidate; preserve the protected outcome and remain `contract-mapping-blocked` pending a separate decision. | No retry. Cancellation before dispatch produces no provider call and no Comic result. | -| Output-validation failure where provider bytes exist and their digests are verified | Keep actual output digests in the transformation and use RFC 0010's existing `failed` + `VALIDATION_FAILED` mapping where applicable. This is not the no-output form even if no valid Manifest rendition is retained. | Not retryable under RFC 0011. | +| Output-validation failure where provider bytes exist and their digests are verified | Preserve the protected outcome and verified provider-byte evidence; the 1.1.0 candidate selects no `VALIDATION_FAILED` mapping. Do not infer a Comic result without a separate accepted mapping. | No retry under this candidate. | | Validation failure with missing normalized content or unknown provider-byte presence | Preserve the protected outcome; do not infer no bytes from an empty normalized output. Remain `contract-mapping-blocked` until a separate policy and evidence establish a valid mapping. | No retry. | | Failure where an output exists, has been produced, or its existence/integrity is uncertain | Do not use the no-output form. Apply an already supported mapping only when its actual evidence satisfies that mapping; otherwise preserve protected evidence and block for reconciliation. | Not eligible under the rate-limit rule. | | Provider Execution `timed-out`, ambiguous dispatch, or uncertain persistence | Keep the exact protected outcome and `contract-mapping-blocked` or reconciliation-required host state. Emit no Comic Manifest terminal result under this proposal. | No retry. Timeout and integrity mappings remain deferred. | @@ -142,12 +142,7 @@ the result. A consumer that does not advertise support for the exact selected version must fail closed before use. The versioning policy requires versioned schema identity and exact support -negotiation for changes to accepted meaning. The recommendation for owner review -is to evaluate a new minor version (for example, 1.1.0) if compatibility review -classifies this as an additive valid representation; if that review finds the -change incompatible, select a new major version instead. This RFC does not -assign a version string, schema URI, support window, release date, or final -compatibility classification. +negotiation for changes to accepted meaning. This paragraph records the pre-implementation proposal. The local candidate now selects exact version 1.1.0 and its version-specific schema ID with a proposed additive classification, subject to contract-owner review. That candidate choice does not constitute normative acceptance, release, or production adoption. Existing records are never rewritten or relabeled. A historical attempt may be represented under a later version only through a separately reviewed migration @@ -201,11 +196,11 @@ These are proposed expectations, not executed tests or claims of conformance. confirmation. After the delay and explicit caller authorization, one retry uses fresh IDs, links the old attempt, preserves the pinned production bytes and old records, and stays within original budgets. -2. **Validation failure with actual provider bytes:** preserve verified digests - of those bytes in the transformation when using RFC 0010's existing - `failed` + `VALIDATION_FAILED` mapping. Do not mark the transformation as - empty-output. If normalized content is missing and provider-byte presence - cannot be established, remain blocked without a terminal result. +2. **Validation failure with actual provider bytes:** preserve the protected + outcome and verified provider-byte evidence. The 1.1.0 candidate does not + select a Comic result mapping for validation failure. Do not mark the + transformation as empty-output; remain mapping-blocked without a terminal + result until a separate accepted mapping applies. 3. **Cancellation:** pre-dispatch cancellation makes no call and emits no result. A dispatched mock that returns confirmed `cancelled` remains mapping-blocked under this candidate; no `CANCELLED` result mapping or retry @@ -280,13 +275,12 @@ retry delay, unchanged revision, or remaining budgets required by RFC 0011. 1. Accept or reject a new versioned Comic Manifest representation for the narrowly defined no-output failure shape. -2. Confirm whether the existing no-output `CANCELLED` mapping is included in - that version, or restrict the new form to `OUTPUT_MISSING`. This proposal - excludes `VALIDATION_FAILED` with empty output digests; a future change would - need a separate policy that proves provider bytes were absent. -3. After cross-consumer compatibility review, select a minor or major version - and exact schema ID. The RFC recommends evaluating a minor version first - only if the change is classified as additive; no version is selected here. +2. Review and confirm that cancellation mapping remains outside this candidate; + the selected 1.1.0 form is restricted to `OUTPUT_MISSING`. Validation failure, + timeout, and ambiguous outcomes also remain unmapped here. +3. Review the candidate's proposed additive classification and exact version/ + schema identity. Normative acceptance, consumer adoption, and release remain + separate decisions. 4. Decide whether to authorize the separate implementation, adoption, and release steps after the specification and conformance evidence are reviewed. From 667db63ce91593c6d3604281a0d3b84093c6331b Mon Sep 17 00:00:00 2001 From: Andrew Peris Date: Thu, 5 Nov 2026 07:56:05 -0500 Subject: [PATCH 08/10] docs: exclude timed-out outcomes from job closure --- rfcs/0010-build-attempt-lifecycle.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rfcs/0010-build-attempt-lifecycle.md b/rfcs/0010-build-attempt-lifecycle.md index a58efae..fd2b808 100644 --- a/rfcs/0010-build-attempt-lifecycle.md +++ b/rfcs/0010-build-attempt-lifecycle.md @@ -16,7 +16,7 @@ ## Implementation reconciliation — 2026-11-05 -The merged [Codex candidate](https://github.com/DefinitelySecureStudio/codex/pull/26), [Platform retry](https://github.com/DefinitelySecureStudio/platform/pull/54), and [Platform review fixes](https://github.com/DefinitelySecureStudio/platform/pull/55) establish a bounded synthetic path only: exact opt-in Comic build-result 1.1.0, with one explicit caller-authorized retry for a confirmed no-output rate-limit outcome under the original job deadline and material limits. They do not adopt this RFC. The candidate does not map cancellation, timeout, validation failure, or ambiguous outcomes into a Comic result, and it does not perform writable restart recovery. Those broader proposals below remain deferred pending contract-owner review. A confirmed unmappable second provider outcome may close the exhausted host job after confirmed evidence writes; that closure does not create a second Comic result or terminal result link. +The merged [Codex candidate](https://github.com/DefinitelySecureStudio/codex/pull/26), [Platform retry](https://github.com/DefinitelySecureStudio/platform/pull/54), and [Platform review fixes](https://github.com/DefinitelySecureStudio/platform/pull/55) establish a bounded synthetic path only: exact opt-in Comic build-result 1.1.0, with one explicit caller-authorized retry for a confirmed no-output rate-limit outcome under the original job deadline and material limits. They do not adopt this RFC. The candidate does not map cancellation, timeout, validation failure, or ambiguous outcomes into a Comic result, and it does not perform writable restart recovery. Those broader proposals below remain deferred pending contract-owner review. A confirmed unmappable second provider outcome with status `failed`, `cancelled`, or `succeeded` may close the exhausted host job only after its outcome and close evidence are confirmed; `timed-out` outcomes remain unresolved and do not emit `job-closed`. This host closure does not create a second Comic result or terminal result link. ## Summary From 9f797703c6a90e28b6c7aef1b19f2e03c03b1ab9 Mon Sep 17 00:00:00 2001 From: Andrew Peris Date: Thu, 5 Nov 2026 07:56:10 -0500 Subject: [PATCH 09/10] docs: exclude timed-out outcomes from job closure --- rfcs/0011-job-limits-and-recovery.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rfcs/0011-job-limits-and-recovery.md b/rfcs/0011-job-limits-and-recovery.md index 211d36c..1325cb9 100644 --- a/rfcs/0011-job-limits-and-recovery.md +++ b/rfcs/0011-job-limits-and-recovery.md @@ -16,7 +16,7 @@ ## Implementation reconciliation — 2026-11-05 -The merged [Codex candidate](https://github.com/DefinitelySecureStudio/codex/pull/26), [Platform retry](https://github.com/DefinitelySecureStudio/platform/pull/54), and [Platform review fixes](https://github.com/DefinitelySecureStudio/platform/pull/55) implement only the bounded, opt-in synthetic no-output rate-limit retry using the original deadline and material budgets. This Draft's broader cancellation mapping and restart-driven writes/calls remain proposals, not tested candidate behavior or accepted contract. Under the current candidate, restart handling is inspection-only; cancellation, timeout, ambiguous writes, and other unmappable outcomes do not authorize retry. A confirmed unmappable second outcome can close the exhausted host job after confirmed close evidence without producing a second Comic result or terminal result link. Contract-owner review remains pending. +The merged [Codex candidate](https://github.com/DefinitelySecureStudio/codex/pull/26), [Platform retry](https://github.com/DefinitelySecureStudio/platform/pull/54), and [Platform review fixes](https://github.com/DefinitelySecureStudio/platform/pull/55) implement only the bounded, opt-in synthetic no-output rate-limit retry using the original deadline and material budgets. This Draft's broader cancellation mapping and restart-driven writes/calls remain proposals, not tested candidate behavior or accepted contract. Under the current candidate, restart handling is inspection-only; cancellation, timeout, ambiguous writes, and other unmappable outcomes do not authorize retry. A confirmed unmappable second provider outcome with status `failed`, `cancelled`, or `succeeded` may close the exhausted host job after the outcome and close evidence are confirmed; `timed-out` outcomes remain unresolved and do not emit `job-closed`. Closure does not produce a second Comic result or terminal result link. Contract-owner review remains pending. ## Summary From 042df3a099f49c213df9aa14e9d2ad7e371899eb Mon Sep 17 00:00:00 2001 From: Andrew Peris Date: Thu, 5 Nov 2026 07:56:15 -0500 Subject: [PATCH 10/10] docs: exclude timed-out outcomes from job closure --- rfcs/0012-no-output-failed-build-results.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rfcs/0012-no-output-failed-build-results.md b/rfcs/0012-no-output-failed-build-results.md index 7cf9688..a05e703 100644 --- a/rfcs/0012-no-output-failed-build-results.md +++ b/rfcs/0012-no-output-failed-build-results.md @@ -26,7 +26,7 @@ adoption remain separate review gates. ## Implementation reconciliation — 2026-11-05 -Codex [PR #26](https://github.com/DefinitelySecureStudio/codex/pull/26) merged the exact 1.1.0 result-only candidate; Platform [PR #54](https://github.com/DefinitelySecureStudio/platform/pull/54) and [PR #55](https://github.com/DefinitelySecureStudio/platform/pull/55) implement and fix its bounded synthetic retry path. The opening proposal below is historical where it offers undecided version choices or broader mappings. Current candidate scope is exact 1.1.0, additive and opt-in; v1 behavior is unchanged. Only a confirmed no-output rate-limit failure can authorize one separately explicit retry under original limits. Cancellation, timeout, validation-failure and ambiguous-write mappings, plus writable restart recovery, remain deferred. A confirmed but unmappable second outcome may close an exhausted host job after confirmed close evidence; it does not produce a validated second Comic result or terminal result link. Normative acceptance, issue acceptance, release and production adoption remain pending. +Codex [PR #26](https://github.com/DefinitelySecureStudio/codex/pull/26) merged the exact 1.1.0 result-only candidate; Platform [PR #54](https://github.com/DefinitelySecureStudio/platform/pull/54) and [PR #55](https://github.com/DefinitelySecureStudio/platform/pull/55) implement and fix its bounded synthetic retry path. The opening proposal below is historical where it offers undecided version choices or broader mappings. Current candidate scope is exact 1.1.0, additive and opt-in; v1 behavior is unchanged. Only a confirmed no-output rate-limit failure can authorize one separately explicit retry under original limits. Cancellation, timeout, validation-failure and ambiguous-write mappings, plus writable restart recovery, remain deferred. Only a confirmed unmappable second provider outcome with status `failed`, `cancelled`, or `succeeded` may close the exhausted host job after confirmation of the outcome and close evidence; a `timed-out` outcome remains unresolved and does not emit `job-closed`. Host closure does not produce a validated second Comic result or terminal result link. Normative acceptance, issue acceptance, release and production adoption remain pending. ## Summary