Skip to content

feat: add opt-in bounded no-output rate-limit retry - #54

Merged
andrewperis merged 1 commit into
mainfrom
local/no-output-rate-limit
Nov 4, 2026
Merged

andrewperis merged 1 commit into
mainfrom
local/no-output-rate-limit

Conversation

@andrewperis

Copy link
Copy Markdown
Contributor

Summary

Selecting noOutputResultVersion: '1.1.0' lets the synthetic in-memory prototype persist and validate a confirmed no-output rate-limit failure, then accept one explicitly caller-authorized retry after the delay within the original deadline and material budgets. Reverify prior input, prompt, protected outcome, result bytes and terminal links before retry allocation and immediately before dispatch. Fresh identities link retry_of_attempt_id; the second attempt closes the job.

Depends on the candidate contract in Codex #26; review that first. Related: DefinitelySecureStudio/studio#103 and DefinitelySecureStudio/studio#104.

Validation

  • Full suite: 796/796 on Node 22.12.0 and 24.22.2; fresh November 3 Node 24 run also passed.
  • Focused orchestration: 58/58.
  • Offline Comic Manifest conformance: 326/326, network tripwire active, 31 fixture files unchanged; fresh November 3 Node 24 run passed.
  • Context Builder: 307/307 plus reference flows/readiness; Builder release check ready with no blockers.
  • Candidate generator reproduces identical bytes; paired candidate fixtures are identical; v1 artifacts unchanged; diff checks pass.
  • No lint or typecheck script is configured.
  • An earlier Node 24 aggregate run failed the existing 10 ms hung-iterator reference test with signal undefined; its standalone rerun and full suite passed. The test predates this change, but the failure was not reproduced on the base, so a pre-existing race or concurrency cause is not established.

Constitutional and release impact

  • Constitution: 1.0.0, constitution/v1.0.0, commit a9cc8a503aa30e17820edc62ac95f7cbe10e0564.
  • Profiles: universal, RFC/specification and runtime implementation.
  • Accountable owner/reviewer: @andrewperis; normative acceptance remains pending.
  • Candidate source: Codex 780de1c7e3b76e02f43f0a594991e3cf7fe874f8; schema 32330 bytes, SHA-256 aee6887e056ca709717f579c46e98c9da4c5d9214735af7137ec457767ed231d.
  • This is an unreleased candidate pin, not production adoption. If the Codex source commit changes, refresh this pin through a reviewed follow-up.
  • Default v1 behavior remains blocked for no-output failures; successful results still use v1. Omit the opt-in to retain that behavior. Historical records are never rewritten.
  • No merge, release, production execution, durable storage, real provider, daemon or creative-content scope is included.

Boundaries and dependencies

  • Fixtures, tests and examples contain only synthetic or already-public content.
  • No secrets, private context, proprietary lore, unpublished canon or personal data included.
  • Cross-repository contract change is proposed in Codex feat(context-builder): offline authoring and replay CLI (#84) #26.
  • Operational guidance documents explicit authority, protected audit evidence, immutable readback and human close/authorization.
  • Recovery remains read-only; cancellation, timeout, validation failures and uncertain evidence never authorize this retry.
  • Release/adoption gates remain separate; published artifacts are unchanged.

@chatgpt-codex-connector

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

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-03T19:02:39.374997Z ee5b433 PR opened
ℹ️ 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: ee5b4334f5

ℹ️ 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".

Comment on lines +542 to 543
if (!artifactBytes && !noOutput && job.production.value.classification !== 'public') {
return blockComicMapping('no-output-result-not-representable-under-current-validator');

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 Close the job after an unmappable retry

When the second attempt returns an output-validation failure, cancellation, or mismatched successful output, noOutput is false and this branch returns contract-mapping-blocked. Because blockComicMapping leaves the job unresolved rather than closed, closeJob() and further submissions are permanently rejected for this runner/store, despite the documented guarantee that the second attempt always closes the job. Handle this differently when retryOfAttemptId is set so every consumed retry reaches a closed state.

Useful? React with 👍 / 👎.

Comment on lines +30 to +31
if (noOutput && !same(value.execution.transformations[0].input_digests,
[p.inputs.canon.artifact.sha256, p.inputs.prompts[0].identity.sha256])) return failure('ACTUAL_INPUTS');

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 Handle productions without prompt bindings

The Comic Manifest schema permits inputs.prompts to be empty, so a schema-valid production with no prompt bindings and a no-output transformation containing only the canon digest reaches this expression and throws while reading prompts[0].identity. A validation API should return an ACTUAL_INPUTS/production diagnostic for this supported shape rather than crashing; derive the expected inputs without assuming a first prompt.

Useful? React with 👍 / 👎.

@andrewperis
andrewperis merged commit 6f1bc19 into main Nov 4, 2026
2 checks passed
@andrewperis
andrewperis deleted the local/no-output-rate-limit branch November 4, 2026 17:14
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