From 4121114efbe2380b8e3b5c94df4e27dfb402c9bd Mon Sep 17 00:00:00 2001 From: Andrew Peris Date: Mon, 9 Nov 2026 19:28:40 +0000 Subject: [PATCH 1/2] Record scoped O08 acceptance verdict --- docs/o08-durable-resume-decision-packet.md | 26 ++++++++++++---------- docs/offline-orchestration-prototype.md | 13 ++++++----- 2 files changed, 21 insertions(+), 18 deletions(-) diff --git a/docs/o08-durable-resume-decision-packet.md b/docs/o08-durable-resume-decision-packet.md index c5c01c7..c027b78 100644 --- a/docs/o08-durable-resume-decision-packet.md +++ b/docs/o08-durable-resume-decision-packet.md @@ -1,9 +1,10 @@ # O08 durable-resume decision packet Status: the narrow synthetic resume scope was accepted by the contract owner -on 2026-11-08; the local storage trust boundary is selected below. This does -not define a released contract or claim O08 completion. It contains no private -creative material. +on 2026-11-08; the local storage trust boundary is selected below. The +synthetic no-context local-filesystem acceptance receives a scoped pass below; +the O08 issue remains open and this does not define a released contract or +claim broader completion. It contains no private creative material. ## Current evidence and gap @@ -375,7 +376,7 @@ runner. | Original bounds and attempt ceiling | Candidate boundary and runner resume tests cover the original deadline, inclusive retry bound and two-attempt cap; subprocess events assert second-attempt linkage. | Provider idempotency and generic exactly-once behavior are not established. | | Async fresh-time/authority matrix | Runner resume tests cover implemented boundaries; `resume-proposal-harness.test.js` enumerates the broader claim/evidence/preflight/marker scenario matrix. | Harness-only cases are reference logic, not runner conformance. | | Storage bootstrap and integrity | `local-file-store.test.js` covers initialization ordering, immutable writes and corruption handling. | Digests cannot authenticate a record against an actor who can modify both record and digest. | -| Full O08 acceptance | Independent acceptance verdict is pending. | This finite synthetic evidence does not close O08; broader criteria remain open. | +| Full O08 acceptance | Scoped pass for the accepted synthetic, no-context, local-filesystem path, based on the runner, store and subprocess evidence below. The independent acceptance review interprets “unrecoverable cases terminate” as stopping automatic execution and preventing further dispatch while preserving ambiguous effects for reconciliation; it does not require fabricating a terminal success or failure. | The proposal-only harness is not runtime evidence. This pass does not claim provider deduplication, generic exactly-once behavior, context-enabled restart, power-loss durability, guarantees on other filesystems, or live-provider support. | The simultaneous-process barrier demonstrates one successful claim and at most one mock effect for this pinned local synthetic fixture. It does not generalize @@ -384,15 +385,15 @@ durable-resume implementations. ## Reconciliation to Studio issue #109 — 2026-11-09 -This reconciliation uses Platform `main` at `c9ef54836a9f3537d66aff5154159d3ae6619629` and the open [Studio issue #109](https://github.com/DefinitelySecureStudio/studio/issues/109). Platform [PR #72](https://github.com/DefinitelySecureStudio/platform/pull/72) is merged at this main commit; exact-head PR CI run [#181](https://github.com/DefinitelySecureStudio/platform/actions/runs/42666625421) passed on Node 22 and 24, and post-merge CI passed. The issue's original acceptance remains the controlling checklist; merged Platform work is evidence for bounded synthetic paths, not an automatic issue verdict. +This reconciliation uses Platform `main` at `0b6dbfb3f2334626ec251a634ee677ecae29616c` and the open [Studio issue #109](https://github.com/DefinitelySecureStudio/studio/issues/109). Platform [PR #73](https://github.com/DefinitelySecureStudio/platform/pull/73) records the preceding evidence reconciliation and is merged at this main commit. Post-merge CI run [#185](https://github.com/DefinitelySecureStudio/platform/actions/runs/42682296850) passed on Node 22 and 24, including full tests, offline Comic Manifest conformance/security and Context Builder conformance/reference flows. The independent acceptance review gives a scoped O08 pass for the accepted synthetic, no-context, local-filesystem path described below. It does not close Studio issues or establish broader production support. ### O05–O07 prerequisite evidence | Prerequisite | Issue acceptance and current evidence | Status boundary | | --- | --- | --- | -| [O05 #106](https://github.com/DefinitelySecureStudio/studio/issues/106): current execution/package-use authority; denial means zero protected reads and provider calls; expiry/revocation tested; no implicit fetch or renewal | `runner.test.js` covers execution/package-use checks before fixture reads and dispatch and rechecks across awaits. `retry-package-use-authority.test.js` directly covers revoked/expired package-use evidence on cached retry. `resume-candidate.test.js` covers authority before claim/protected reads, revocation during claim, and same-process retry versus resume sharing one claim. Merged PRs [#56](https://github.com/DefinitelySecureStudio/platform/pull/56), [#57](https://github.com/DefinitelySecureStudio/platform/pull/57), and [#63](https://github.com/DefinitelySecureStudio/platform/pull/63) provide implementation/test evidence. | Bounded evidence only for installed synthetic readers, mock and local resume path. No arbitrary reader, real package fetch/renewal, production data or production verifier. Issue remains open; tests are not an independent passing verdict. | -| [O06 #107](https://github.com/DefinitelySecureStudio/studio/issues/107): deterministic deadline/cancel stops; cleanup; preserve valid results/evidence; ignore late settlement; uncertain in-flight result remains unresolved | `runner.test.js` covers pre-admission, pre-dispatch, protected-reader, in-flight and late-settlement boundaries, cleanup, and immutable result preservation. `context-reader-lifecycle.test.js` covers all six pending readers for cancellation/timeout, late fulfillment/rejection, propagated signals and cleanup. Merged PRs [#58](https://github.com/DefinitelySecureStudio/platform/pull/58) and [#60](https://github.com/DefinitelySecureStudio/platform/pull/60), with the accepted boundary documented in Platform, provide evidence. | Andy accepted safe stopping, preservation, and unresolved uncertainty as the bounded O06 boundary. New Comic Manifest mappings for timeout/cancellation remain separate. Issue remains open; this evidence is not an issue-close action. | -| [O07 #108](https://github.com/DefinitelySecureStudio/studio/issues/108): missing/corrupt input fails safely; partial output distinguished from success with traceable inputs/transforms | `runner.test.js` covers missing, empty, corrupt and rejected values in all six installed synthetic reader slots, malformed/unsupported production, and partial/mismatched output with retained actual input and provider-outcome evidence, sanitized diagnostics, no false Comic success and no unauthorized retry. Merged PR [#59](https://github.com/DefinitelySecureStudio/platform/pull/59) adds the bounded failure coverage. Andy accepted attempt-level input/outcome linkage for unmappable partial results; no formal Comic transformation/result is fabricated, and behavior remains `contract-mapping-blocked`. | Formal transform records for unmappable output remain separate work. Evidence is limited to the pinned fixtures and mock. Issue remains open pending its required passing verdict; the accepted linkage boundary does not authorize issue closure. | +| [O05 #106](https://github.com/DefinitelySecureStudio/studio/issues/106): current execution/package-use authority; denial means zero protected reads and provider calls; expiry/revocation tested; no implicit fetch or renewal | **Bounded prerequisite: pass.** `runner.test.js` covers execution/package-use checks before fixture reads and dispatch and rechecks across awaits. `retry-package-use-authority.test.js` directly covers revoked/expired package-use evidence on cached retry. `resume-candidate.test.js` covers authority before claim/protected reads, revocation during claim, and same-process retry versus resume sharing one claim. Merged PRs [#56](https://github.com/DefinitelySecureStudio/platform/pull/56), [#57](https://github.com/DefinitelySecureStudio/platform/pull/57), and [#63](https://github.com/DefinitelySecureStudio/platform/pull/63) provide implementation/test evidence. | Pass is limited to installed synthetic readers, mock and local resume path. It does not cover arbitrary readers, real package fetch/renewal, production data or a production verifier. Studio issue remains open. | +| [O06 #107](https://github.com/DefinitelySecureStudio/studio/issues/107): deterministic deadline/cancel stops; cleanup; preserve valid results/evidence; ignore late settlement; uncertain in-flight result remains unresolved | **Bounded prerequisite: pass.** `runner.test.js` covers pre-admission, pre-dispatch, protected-reader, in-flight and late-settlement boundaries, cleanup, and immutable result preservation. `context-reader-lifecycle.test.js` covers all six pending readers for cancellation/timeout, late fulfillment/rejection, propagated signals and cleanup. Merged PRs [#58](https://github.com/DefinitelySecureStudio/platform/pull/58) and [#60](https://github.com/DefinitelySecureStudio/platform/pull/60) provide evidence. | The accepted boundary preserves valid results/evidence and leaves uncertain effects unresolved; timeout/cancellation Comic Manifest mappings remain separate. Studio issue remains open. | +| [O07 #108](https://github.com/DefinitelySecureStudio/studio/issues/108): missing/corrupt input fails safely; partial output distinguished from success with traceable inputs/transforms | **Bounded prerequisite: pass.** `runner.test.js` covers missing, empty, corrupt and rejected values in all six installed synthetic reader slots, malformed/unsupported production, and partial/mismatched output with retained actual input and provider-outcome evidence, sanitized diagnostics, no false Comic success and no unauthorized retry. Merged PR [#59](https://github.com/DefinitelySecureStudio/platform/pull/59) adds the bounded failure coverage. Attempt-level input/outcome linkage is accepted for unmappable partial results; no formal Comic transformation/result is fabricated, and behavior remains `contract-mapping-blocked`. | Formal transform records for unmappable output remain separate work. Evidence is limited to pinned fixtures and the mock. Studio issue remains open. | ### O08 acceptance rows against current implementation @@ -401,18 +402,19 @@ This reconciliation uses Platform `main` at `c9ef54836a9f3537d66aff5154159d3ae66 | Mock transient failures obey attempt limits | Met within the accepted synthetic no-context boundary: retry/resume tests cover one verified rate-limit-before-acceptance outcome, current authority, a maximum of two attempts, and no third attempt after another rate limit. `resume-candidate.test.js` and `resume-subprocess.test.js` verify the second attempt's lineage and preserved original bounds. | | Resume rechecks authority and has no duplicate effects | Met within the local synthetic boundary: every resume requires current retry authority; the durable exclusive one-shot claim is shared with ordinary retry/resume; tests cover simultaneous processes, partial claims, held claims, crash points and at most one mock effect. A prior verified before-acceptance outcome proves the prior request was rejected; it does not prove anything about an uncertain dispatch. | | Supported idempotency/deduplication mechanism is identified | The supported suppression mechanism is the durable one-shot local claim plus verified pre-acceptance proof for this single mock boundary. Attempts use distinct `idempotency_key` values, but `MockTextAdapter` does not deduplicate and Provider Execution v1 does not by itself promise provider-side deduplication. No provider dedupe mechanism has been implemented or tested. | -| Unrecoverable cases terminate | **Not established for ambiguous outcomes.** After a confirmed unmappable second-attempt outcome, the host job can close as `contract-mapping-blocked` while preserving the prior immutable Comic result; this does not create a new Comic terminal result. Recovery status depends on the phase: uncertain claim, write, or close state can report `reconciliation-required`; a durable dispatch marker without an eligible linked outcome reports `resume-not-eligible`. Both block replay and leave the external outcome unasserted; neither proves terminal success or terminal failure. This is the deliberate fail-closed behavior accepted for bounded O08 safety, but it does not satisfy a literal requirement that every unrecoverable case reach a terminal state. A passing O08 verdict therefore requires the contract owner/independent reviewer to reconcile this row with the accepted unresolved-outcome boundary. | +| Unrecoverable cases terminate | **Met within the accepted scope when “terminate” means stop automatic execution and prevent further dispatch.** A confirmed unmappable second-attempt outcome closes the host job as `contract-mapping-blocked`, preserving the prior immutable Comic result without fabricating a new Comic result. For ambiguous outcomes, persisted state is preserved for reconciliation: uncertain claim/write/close states may report `reconciliation-required`; a durable dispatch marker without an eligible linked outcome reports `resume-not-eligible`. Both block replay; neither asserts terminal success or failure or that the external effect did not occur. This matches the accepted O06 uncertainty boundary and the independent O08 scoped acceptance review. | | Finite transient, exhausted-attempt, authorized-resume and denied-resume fixtures; one adapter/effect boundary | Covered for the pinned Comic Manifest fixture, synthetic authorities, local filesystem and `MockTextAdapter`. No context-enabled resume, live provider, production storage or other effect boundary is covered. | | No generic exactly-once claim | Preserved. The local atomic claim limits concurrent/repeated local resume attempts and uncertain dispatch is never automatically replayed; this is not provider-level deduplication or a general exactly-once guarantee. | -**O08 remains open.** Current evidence demonstrates bounded synthetic behavior, but the ambiguous-outcome terminalization row is not met as written, and no independent passing acceptance verdict is recorded here. O09 has not been started or unblocked by these changes. The merged harness, runner and test matrices do not authorize issue closure. +**O08 receives a scoped pass** for the accepted synthetic, no-context, local-filesystem behavior, including termination as stopping automatic execution while preserving ambiguous outcomes for reconciliation. This verdict relies on actual runner/store and subprocess tests; `resume-proposal-harness.test.js` is a reference-only model and is not counted as runtime evidence. The pass does not claim provider deduplication, generic exactly-once behavior, context-enabled restart, power-loss durability, support for other filesystems, or live-provider support. Studio issues #106–#109 remain open; this documentation does not close them. O09 has not been started or unblocked. ## Scope estimate and exclusions The owner-approved local store slice was estimated at 1–2 focused days. The read-only candidate slice was separately bounded to roughly one focused day. -The no-context writable slice above is likewise narrow; the broader O08 -durable-resume acceptance remains incomplete and subject to independent review. +The no-context writable slice above is likewise narrow; durable-resume claims +beyond the scoped pass remain unsupported and subject to separate review and +contract gates. Production-grade persistent storage, an authenticated integrity root, provider-specific deduplication, and O09's result linkage remain separate decisions. This slice diff --git a/docs/offline-orchestration-prototype.md b/docs/offline-orchestration-prototype.md index cbd835b..f6c94b6 100644 --- a/docs/offline-orchestration-prototype.md +++ b/docs/offline-orchestration-prototype.md @@ -347,9 +347,10 @@ The accepted O06 boundary is limited to deterministic synthetic safe stopping, resource cleanup, and preservation of verified results and immutable evidence; uncertain in-flight outcomes remain unresolved and are never converted into success or absence. New Comic Manifest results for cancellation, timeout, or -uncertain external effects require a separate contract decision. This evidence -does not establish O05 or O07 completion or broader production readiness. O05 -and O07 acceptance remain separate. O08 evidence and remaining acceptance -gates are tracked in the -[durable-resume decision packet](o08-durable-resume-decision-packet.md). O08 -remains open pending independent acceptance; O09 remains separately gated. +uncertain external effects require a separate contract decision. O05, O06 and +O07 receive bounded prerequisite passes only for the synthetic path described +in the [durable-resume decision packet](o08-durable-resume-decision-packet.md); +their Studio issues remain open and no broader production readiness is implied. +O08 receives a scoped pass for its accepted synthetic, no-context, +local-filesystem behavior, while issue #109 remains open and O09 remains +separately gated. From acf743c899f08c13eabd4de67d1ab904f324e8d7 Mon Sep 17 00:00:00 2001 From: Andrew Peris Date: Mon, 9 Nov 2026 19:33:36 +0000 Subject: [PATCH 2/2] Clarify historical review and unresolved closure states --- docs/o08-durable-resume-decision-packet.md | 14 +++++++++----- docs/offline-orchestration-prototype.md | 7 +++++-- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/docs/o08-durable-resume-decision-packet.md b/docs/o08-durable-resume-decision-packet.md index c027b78..4700761 100644 --- a/docs/o08-durable-resume-decision-packet.md +++ b/docs/o08-durable-resume-decision-packet.md @@ -242,8 +242,10 @@ during claim/preflight, retry and deadline boundaries, concurrent callers, unknown claims, final evidence uncertainty, marker uncertainty, uncertain provider-outcome persistence, successful attempt-two linkage, and repeated resume. Context-enabled recovery, live providers, production data, automatic -claim takeover, and O09 remain out of scope. O08 stays open pending remaining -criteria and independent review. +claim takeover, and O09 remain out of scope. At this implementation checkpoint, +remaining O08 criteria and independent review were still pending. The scoped +acceptance review recorded below subsequently passed the bounded local path; +broader criteria remain outside that pass. The implementation and subprocess acceptance evidence above cover the bounded no-context runtime path. Broader O08 criteria, different storage backends, @@ -274,8 +276,10 @@ points; all call counts are checked against the durable event history. These are process-crash and local-filesystem integration tests around the existing fsync-backed prototype store. They do not simulate power loss, prove behavior on other filesystems, add a production backend, or provide a generic -exactly-once guarantee. O08 remains open pending its remaining criteria and -review; O09 remains gated separately. +exactly-once guarantee. At the time this subsection was written, O08 review and +remaining criteria were pending. The scoped review recorded later in this +packet passed the bounded local path; broader criteria remain outside that +pass, and O09 remains gated separately. ## Finite synthetic restart and crash-point fixtures @@ -402,7 +406,7 @@ This reconciliation uses Platform `main` at `0b6dbfb3f2334626ec251a634ee677ecae2 | Mock transient failures obey attempt limits | Met within the accepted synthetic no-context boundary: retry/resume tests cover one verified rate-limit-before-acceptance outcome, current authority, a maximum of two attempts, and no third attempt after another rate limit. `resume-candidate.test.js` and `resume-subprocess.test.js` verify the second attempt's lineage and preserved original bounds. | | Resume rechecks authority and has no duplicate effects | Met within the local synthetic boundary: every resume requires current retry authority; the durable exclusive one-shot claim is shared with ordinary retry/resume; tests cover simultaneous processes, partial claims, held claims, crash points and at most one mock effect. A prior verified before-acceptance outcome proves the prior request was rejected; it does not prove anything about an uncertain dispatch. | | Supported idempotency/deduplication mechanism is identified | The supported suppression mechanism is the durable one-shot local claim plus verified pre-acceptance proof for this single mock boundary. Attempts use distinct `idempotency_key` values, but `MockTextAdapter` does not deduplicate and Provider Execution v1 does not by itself promise provider-side deduplication. No provider dedupe mechanism has been implemented or tested. | -| Unrecoverable cases terminate | **Met within the accepted scope when “terminate” means stop automatic execution and prevent further dispatch.** A confirmed unmappable second-attempt outcome closes the host job as `contract-mapping-blocked`, preserving the prior immutable Comic result without fabricating a new Comic result. For ambiguous outcomes, persisted state is preserved for reconciliation: uncertain claim/write/close states may report `reconciliation-required`; a durable dispatch marker without an eligible linked outcome reports `resume-not-eligible`. Both block replay; neither asserts terminal success or failure or that the external effect did not occur. This matches the accepted O06 uncertainty boundary and the independent O08 scoped acceptance review. | +| Unrecoverable cases terminate | **Met within the accepted scope when “terminate” means stop automatic execution and prevent further dispatch.** After a confirmed, retained unmappable second-attempt outcome, the runner returns `contract-mapping-blocked` with `job_closed: true` only once both the `contract-mapping-blocked` event and `job-closed` append are confirmed. It preserves the prior immutable Comic result and fabricates no new Comic result. Provider timeouts and uncertain outcome/readback/index/close writes remain unresolved for reconciliation and do not claim confirmed closure. For other ambiguous recovery states, persisted state is preserved: uncertain claim/write/close states may report `reconciliation-required`; a durable dispatch marker without an eligible linked outcome reports `resume-not-eligible`. These statuses block replay; neither asserts terminal success or failure or that the external effect did not occur. This matches the accepted O06 uncertainty boundary and the independent O08 scoped acceptance review. | | Finite transient, exhausted-attempt, authorized-resume and denied-resume fixtures; one adapter/effect boundary | Covered for the pinned Comic Manifest fixture, synthetic authorities, local filesystem and `MockTextAdapter`. No context-enabled resume, live provider, production storage or other effect boundary is covered. | | No generic exactly-once claim | Preserved. The local atomic claim limits concurrent/repeated local resume attempts and uncertain dispatch is never automatically replayed; this is not provider-level deduplication or a general exactly-once guarantee. | diff --git a/docs/offline-orchestration-prototype.md b/docs/offline-orchestration-prototype.md index f6c94b6..8422e06 100644 --- a/docs/offline-orchestration-prototype.md +++ b/docs/offline-orchestration-prototype.md @@ -148,8 +148,11 @@ later, but the SDK/host processing race ignores that late fulfillment or rejection. The host timer and caller-abort listener are removed after execution settles; invoking a captured late callback after a committed terminal result does not change stored evidence. On a stopped second attempt, a confirmed SDK -outcome may close the host job while leaving the earlier immutable Comic result -unchanged. These are distinct host/SDK states, not a new result mapping. +outcome may close the host job only after the `contract-mapping-blocked` and +`job-closed` writes are confirmed, while leaving the earlier immutable Comic +result unchanged. Provider timeouts and uncertain outcome or closure writes +remain unresolved for reconciliation. These are distinct host/SDK states, not +a new result mapping. ### Timeout and cancellation mapping analysis