Skip to content

Add read-only O08 resume candidate recovery - #69

Merged
andrewperis merged 4 commits into
mainfrom
feat/o08-resume-candidate-rehydration
Nov 8, 2026
Merged

andrewperis merged 4 commits into
mainfrom
feat/o08-resume-candidate-rehydration

Conversation

@andrewperis

@andrewperis andrewperis commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Persist a synthetic stable-time resume window for the safe first-attempt rate-limit case.
  • Add read-only restart classification for the exact no-context synthetic fixture, including original deadline and inclusive retry-bound checks.
  • Add regressions for rollback between repeated eligible inspections and prove eligible inspection never calls claimResume.
  • Reject candidate classification when the persisted provider outcome is malformed or bound to a different execution, even when its blob digest is recomputed.
  • Document the bounded scope and remaining writable-resume/O09 gates.

No resume claim is acquired and no resumed attempt or provider call is made. This remains an experimental synthetic path, not a released durable-resume contract or exactly-once guarantee. Context-enabled recovery is out of scope.

Validation at head 7407bec

  • Focused candidate tests: 13/13 passed.
  • Node 24: npm test 991/991; offline Comic Manifest conformance 326/326.
  • Node 22: npm test 991/991; offline Comic Manifest conformance 326/326.
  • Conformance network tripwire passed; 31 fixture files remained byte-identical.

This PR contains only synthetic fixture logic and public documentation; no private creative material or credentials.

@andrewperis
andrewperis marked this pull request as ready for review November 8, 2026 15:51
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-08T16:08:49.857149Z 057adca Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 894ddcea43

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@andrewperis
andrewperis marked this pull request as draft November 8, 2026 15:58
@andrewperis
andrewperis marked this pull request as ready for review November 8, 2026 16:05
@andrewperis
andrewperis merged commit b8d423f into main Nov 8, 2026
2 checks passed
@andrewperis
andrewperis deleted the feat/o08-resume-candidate-rehydration branch November 8, 2026 16:05

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 057adca897

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

|| outcomeRecord.status !== 'failed'
|| outcomeRecord.payload_key !== `provider-outcome:${executionId}`
|| terminal.result_sha256 !== digest(resultBytes) || terminal.result_byte_size !== resultBytes.byteLength
|| resumeWindow.checked_at_ms >= timeRecord.deadline_at_ms

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Classify post-deadline resume windows as exhausted

When the stable clock reaches the deadline between the monotonic terminal sample and the resume-time sample, persistResult still emits a resume-window because retry eligibility is based only on terminalClock, but this condition rejects that otherwise valid window before the current stable time is evaluated. After a genuine restart, the generic fallback cannot compare the new monotonic epoch and reports deadline-unverifiable instead of budget-exhausted, so the documented expired-window classification fails at this boundary. Treat checked_at_ms >= deadline_at_ms as an exhausted/empty window rather than invalidating the entire record.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant