Skip to content

Allow SD05 approved checker groups (0.2.13 candidate) - #67

Merged
FlyOverCoderKY merged 2 commits into
mainfrom
claude/sd05-checker-provider-group-20261114
Nov 14, 2026
Merged

FlyOverCoderKY merged 2 commits into
mainfrom
claude/sd05-checker-provider-group-20261114

Conversation

@FlyOverCoderKY

@FlyOverCoderKY FlyOverCoderKY commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

SD05 independent checks currently refuse an otherwise complete, explicitly approved provider-group route. Enable that existing capability only for the independent checker, while retaining its separate purpose/wire evidence, approval renewal identity, receipt MAC domain, current Source/Work fences, native-charge accounting and before-physical-call guards. Generators and legacy absent-option request bytes/hashes remain unchanged.

Prepare the synchronized unpublished 0.2.13 candidate: five package versions and exact internal/root development pins, workspace lock importers, release metadata tests and candidate documentation. Public 0.2.12 receipts/assets/history remain intact; this PR does not publish or activate a host/provider.

Validation at 92c16c8a56f303240a098cfeb81f81a6dae7564d:

  • Actual Node 22.18.0 and 24.18.0: frozen installs, normal format/type gates, and six affected pure suites pass (234 tests each, zero skips).
  • Real public SDK/application cases cover all opt-in combinations, causal refusals before provider credential/admission/fetch, exact legacy wire/hash, receipt recovery and binding queued-expiry renewal checks. Existing receipt-HMAC read ordering is unchanged.
  • Full normal backend/pack/consumer/example gates are in progress. The earlier full Node22 run is retained as 4301 passed/1 signed-tag key-generation fixture failed; it is not reported as a full pass. Required current-head CI and configured review remain gates.

No actual model calls, credentials/config activation, production cap changes, tag or release.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 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
🔒 Security Review ✅ Completed 2026-11-14T08:29:38.319242Z f3971eb 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.

@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

OpenRouter review posted (clean). #67 (review)

@github-actions github-actions 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.

OpenRouter pull-request review

Verdict: issues
Scope: full-pr (full-pr)
Mode: initial
Commit: f3971eba3c5fd181c1e2c4cf9850cddf559be6c9
Judge: openai/gpt-5.6-luna (repaired(canonical+1): source coverage preserved before publication cap)
Cost: $0.3596 (lanes $0.3582 + judge $0.0014)

Lanes

  • openai/gpt-6.1-sol: ok (1 finding(s), 56.6s, 210893+2291 tokens (161490 cached), 6 tool round(s), via Azure, $0.18)
  • z-ai/glm-5.3-flash: ok (1 finding(s), 389.0s, 4305807+60334 tokens (3813632 cached), 43 tool round(s), via Relace, $0.18)

Findings

🔵 Issue 1 — Non-binding original-expiry assertion

tests/openrouter-release-followup-provider-groups.test.ts:459 · nit · identified by openai/gpt-6.1-sol

A regression that signs group receipts using the renewed approval expiry instead of the original approval expiry would still pass both renewal cases, despite the test claiming to preserve the original receipt lifetime.

The original approval expires after 120 seconds, but createSupportReleaseFollowupChecks defaults maxReceiptMilliseconds to 60 seconds. Renewal advances the clock by only one second, so even an incorrectly extended receipt would expire after at most 61 seconds and satisfy the assertion against the original 120-second ceiling. Make the original approval window shorter than the receipt limit, or explicitly raise the receipt limit, so the original approval is the decisive bound.

I checked the receipt construction in packages/ai/src/openrouter/support-release-followup-checks.ts, the fixture options, and the existing receipt-lifetime and staged tests. Those tests cover other lifetime boundaries, but they do not make this new group-renewal assertion sensitive to losing the original approval bound.

🔵 Issue 2 — Benign-renewal test's receipt-expiry assertion cannot fail for the property it names

tests/openrouter-release-followup-provider-groups.test.ts:449 · nit · identified by z-ai/glm-5.3-flash

The case "allows only a benign approval extension %s and retains the original receipt expiry" pins renewal containment with expect(Date.parse(proof!.validUntil)).toBeLessThanOrEqual(Date.parse(original)), where original is the pre-renewal approval window at now + 120_000. The inline sf1 receipt's validUntil is min(now() + receiptLimit, ...) with the default maxReceiptMilliseconds of 60,000, so the receipt is always stamped at roughly now + 61s, far below original. The assertion therefore passes regardless of whether the implementation honored pre-renewal bounds: a future regression that replaced the pre-renewal c.policy/c.route bounds with the renewed window (approval now at +181s, receipt key re-read live at +181s) would still yield a ~61s receipt and keep this assertion green. As written, the test can only fail if the implementation also dropped the 60s receipt limit, so it does not actually pin "a renewal cannot extend a receipt's lifetime" for the inline flow that it exercises.

Note for the fix: simply shortening original inside the receipt window (e.g., now + 30_000) would make the current implementation fail, because the inline receipt is bounded by maxReceiptMilliseconds plus current policy/release-evidence/receipt-key windows and is not directly bounded by the pre-renewal approval window at all (that containment is enforced at verification time via live(r.approval, now), and for the deferred flow via entry.expiresAt, which the pre-existing tests/openrouter-release-followup-receipt-lifetime.test.ts pins). Pinning the inline property meaningfully needs either an explicit expected value derived from maxReceiptMilliseconds or restructuring the case around the deferred flow's expiresAt bound under a renewal.

Checked: packages/ai/src/openrouter/support-release-followup-checks.ts inline h.validUntil computation (min over now() + receiptLimit, fresh.validUntil, live k.validUntil, c.policy.validUntil, c.route.releaseFollowup.validUntil, policy.validUntil); fixture defaults (maxReceiptMilliseconds unset → 60000, k.validUntil mirrors the live approval); and the pre-existing deferred receipt-lifetime suite, which does pin the queued expiresAt bound.

Workflow run

@FlyOverCoderKY FlyOverCoderKY changed the title Allow approved provider groups for SD05 independent checks Allow SD05 approved checker groups (0.2.13 candidate) Nov 14, 2026

@github-actions github-actions 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.

OpenRouter pull-request review

Verdict: issues
Scope: latest-commit (commit-range)
Mode: verify
Commit: 92c16c8a56f303240a098cfeb81f81a6dae7564d
Judge: openai/gpt-5.6-luna
Cost: $0.1989 (lanes $0.1982 + judge $0.0007)

Lanes

  • openai/gpt-6.1-sol: ok (0 finding(s), 31.9s, 170846+1218 tokens (138744 cached), 7 tool round(s), via Azure, $0.12)
  • z-ai/glm-5.3-flash: ok (1 finding(s), 156.5s, 1385618+27972 tokens (1171584 cached), 30 tool round(s), via Mistral, $0.0812)

Round 2 resolution

  • 2 nit finding(s) from earlier rounds retired (severity floor for follow-up rounds is risk).
  • Open findings after this round: 1 (0 bug-severity).

Findings

🟠 Issue 1 — PR description contradicts the head commit's version/pin bump

risk · identified by z-ai/glm-5.3-flash

The PR body states "No version, package pin, CI/configuration, credential or activation change is included; hosts retain the published 0.2.12 refusal until a separately verified release.", but the reviewed head commit bumps all five package versions to 0.2.13 (packages/{contracts,core,templates,application,ai}/package.json), the root development pins (package.json: ai/application/templates 0.2.13), the internal dependency pins (ai → application, application → contracts/core, core → contracts), and the workspace lock importers (pnpm-lock.yaml). A maintainer or host operator relying on the PR summary could conclude the head is version-neutral when it is a synchronized 0.2.13 source-preparation commit.

The bump itself is not a defect: it follows the repo's own established ahead-of-publication pattern (docs/RELEASING.md "Historical 0.2.12 source preparation" describes the identical then-unpublished bump for 0.2.12), and all in-repo references are consistent — no stale 0.2.12 remains in tests/, test/, scripts/, or .github/workflows; releaseVerificationVersion derives from packages/contracts/package.json and its single literal pin (tests/release-verification.test.ts:1233) was updated; new doc anchors (0213-sd05-provider-group-checks, source-version-0213) and the preserved unreleased-source-sd05-independent-check-provider-groups anchor all resolve. Only the PR metadata is stale, so the fix is to update the PR description, not the code.

Workflow run

Copy link
Copy Markdown
Contributor Author

For the sole PR-metadata finding in current-head review 43576926278: the description was updated at 2026-11-14T08:41:18Z, after the workflow captured its starting metadata but before the review was submitted at 08:43:16Z. It now explicitly describes the synchronized unpublished 0.2.13 candidate, all five versions, internal/root development pins, lock importers and preparation tests/docs; current public 0.2.12 receipts/history remain intact. The title is likewise “Allow SD05 approved checker groups (0.2.13 candidate)”. The quoted version-neutral sentence is absent from the actual current description. No further source change is needed for that metadata mismatch. The deferred expiry witness fixes remain in 92c16c8, with 234 affected tests passing on each actual Node22/24 plus normal format/types. Full current-head backend/consumer gates are still running and are not being waived.

@github-actions github-actions 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.

OpenRouter pull-request review

Verdict: partial
Scope: latest-commit (single-commit)
Mode: verify
Commit: 92c16c8a56f303240a098cfeb81f81a6dae7564d
Judge: openai/gpt-5.6-luna
Cost: $0.1131 (lanes $0.1130 + judge $0.0001)

Lanes

  • openai/gpt-6.1-sol: ok (0 finding(s), 25.9s, 98337+1026 tokens (77123 cached), 5 tool round(s), via Azure, $0.0781)
  • z-ai/glm-5.3-flash: ok (0 finding(s), 186.3s, 817091+22469 tokens (688831 cached), 28 tool round(s), via OpenInference, $0.0349)

Round 3 resolution

  • ✅ r2-1 fixed correctly — PR description contradicts the head commit's version/pin bump: The supplied current PR title and body explicitly identify an unpublished synchronized 0.2.13 candidate and disclose all five version bumps, internal/root development pins, and lock importers. The contradictory version-neutral sentence is absent.

The current manifests, lockfile, candidate documentation, and release metadata assertions consistently select 0.2.13, while distinguishing the verif…

  • Open findings after this round: 0 (0 bug-severity).

The before SHA was missing (first push, force-push, or workflow_dispatch). This prompt embeds only the single latest commit on the PR head. This is not a full-PR review and the full pull request diff was not fetched.

No structured findings from the successful lane(s).

Workflow run

@github-actions github-actions 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.

OpenRouter pull-request review

Verdict: clean
Scope: full-pr (full-pr)
Mode: verify
Commit: 92c16c8a56f303240a098cfeb81f81a6dae7564d
Judge: openai/gpt-5.6-luna
Cost: $0.2994 (lanes $0.2993 + judge $0.0001)

Lanes

  • openai/gpt-6.1-sol: ok (0 finding(s), 44.2s, 262160+2141 tokens (204817 cached), 6 tool round(s), via Azure, $0.20)
  • z-ai/glm-5.3-flash: ok (0 finding(s), 361.1s, 2732665+35861 tokens (2639956 cached), 40 tool round(s), via OpenInference, $0.0955)

Round 3 resolution

  • ✅ r2-1 fixed correctly — PR description contradicts the head commit's version/pin bump: The supplied current PR title and body explicitly describe the unpublished 0.2.13 candidate, all five package versions, internal/root development pins, and lock importers. This matches the reviewed manifests and lockfile. Candidate documentation consistently distinguishes source preparation from the verified public 0.2.12 release; the contradictory version-neutral sentence is absent.
  • Open findings after this round: 0 (0 bug-severity).

No structured findings from the successful lane(s).

Workflow run

Copy link
Copy Markdown
Contributor Author

Current-head qualification complete at 92c16c8.

  • Actual local Node22.18.0 and24.18.0: normal format/types, full pnpm test4302/4302 across98files with zero skips each, release metadata, both examples, and normal five-package pack/clean-consumer gates all pass. The two Nodes produced byte-identical five archives and all339members; candidate manifest SHA256 a13e7f59e6689124d35dc886f54eb9f77a790dcb3ceef5a21b55ef5803be5959.
  • Local Windows qualification selects the installed Git-bundled OpenSSH on PATH. The unchanged signed-tag acceptance/refusal tests pass; prior native-Windows-OpenSSH exit255 failures remain retained, with no assertion/timeout/source weakening.
  • Fresh configured full-PR review is CLEAN, both lanes healthy, authoritative ledger empty. Fresh CI and CodeQL succeeded. Both fixed expiry-witness threads are resolved.

This remains an unpublished0.2.13 source candidate. Protected release verification, public host adoption and activation/quality/privacy/Free-CPU gates remain separate. No actual provider calls or configuration activation were performed by this qualification.

@FlyOverCoderKY
FlyOverCoderKY merged commit 114094d into main Nov 14, 2026
10 checks passed
@FlyOverCoderKY
FlyOverCoderKY deleted the claude/sd05-checker-provider-group-20261114 branch November 14, 2026 09:05
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