Skip to content

fix: Allow additive test handlers in reviewed main release - #1095

Merged
Pigbibi merged 2 commits into
mainfrom
fix/reviewed-main-test-handlers
Nov 9, 2026
Merged

Pigbibi merged 2 commits into
mainfrom
fix/reviewed-main-test-handlers

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

AI assistance

AI: DeepSeek coding agent (Qoder Desktop session). Owner Pigbibi approved this gate change (option A) for the frontend release line of .github#36 / .github#40.

What changed

  • .github/workflows/deploy-strategy-switch-console.yml: in reviewed-main release mode only, treat the test-only __test named-handler export as code rather than configuration. All other named handlers stay strictly equal; __test handlers may only be added, never removed, and the export's presence/shape must match (new checkpoints test_export_shape_mismatch, test_export_handlers_removed). Additions are recorded as reviewed_main_test_export_handlers_added. Post-release readback additionally requires the activated version's __test export to exactly equal the validated upload (post_release_test_export_mismatch), so the relaxed hash cannot hide export loss after activation. Non-reviewed flows keep the strict hash comparison unchanged.
  • scripts/console_version_comparator.mjs: mirror the new comparable block to satisfy the static pin test, with allowTestHandlerAdditions = false so the read-only comparator stays strict and still surfaces test-handler diffs.
  • tests/console_deploy_safety_validation.mjs: new integrated release cases covering additive __test handlers (pass + recorded), removal (stop), shape change (stop), non-test handler change (stop), additive handlers outside reviewed-main mode (stop), and post-activation readback with shrunk or omitted __test (stop at post_release_test_export_mismatch). Fail-before proof confirmed for both the gate change and the readback fix.

How verified

  • node --test tests/console_deploy_safety_validation.mjs: all pass, including 257 isolated release cases and the 5 new cases.
  • Fail-before proof: with the new tests but the old workflow/comparator, the suite fails at the additive case; with this change it passes.
  • node --test tests/console_version_comparator_validation.mjs and nearby comparator tests: pass (static pin satisfied).
  • actionlint on the workflow: exit 0.
  • Root cause evidence: failed run 42495379084 stopped at configuration_hash_mismatch because candidate bff806e0 adds exactly 5 test-only handlers to __test (credentialRotationResponse, deskAuth, deskTargetReadback, runtimeInstanceCommand, splitSelectorValues) vs live baseline ead1e472; RuntimeInstances and all bindings are unchanged.

Why

The frontend release (reviewed main 084ba428) cannot activate because the release gate hashes script.named_handlers wholesale, and the reviewed source legitimately adds test-only exports under __test. The gate blocked a code-only additive change as a configuration drift. This change lets reviewed-main releases admit additive test handlers while keeping every real configuration surface (bindings, runtime, handlers, other named handlers, placement) strictly compared.

Risk

Medium (release gate logic), owner-approved. Scope is limited to reviewedMain mode; resume/off and external flows keep the previous strict behavior. Removal or shape change of __test still stops the release before activation. RO-M07 remains HOLD and is not touched.

AI: DeepSeek coding agent.

@Pigbibi

Pigbibi commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 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-09T05:42:26.243426Z ad7c97b Manual request
🔒 Security Review ✅ Completed 2026-11-09T05:45:00.736920Z ad7c97b Manual request
ℹ️ 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

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: b73c0d3c53

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

@Pigbibi
Pigbibi force-pushed the fix/reviewed-main-test-handlers branch from b73c0d3 to 9a38920 Compare November 9, 2026 05:34
@Pigbibi

Pigbibi commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@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: 9a38920553

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

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 9a38920553

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@Pigbibi

Pigbibi commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: ad7c97ba0f

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

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: ad7c97ba0f

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@Pigbibi Pigbibi added the agent-approved An agent cleared this high-risk change on the current head; not an owner confirmation label Nov 9, 2026
@Pigbibi
Pigbibi merged commit 0a64623 into main Nov 9, 2026
24 of 27 checks passed
@Pigbibi
Pigbibi deleted the fix/reviewed-main-test-handlers branch November 9, 2026 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-approved An agent cleared this high-risk change on the current head; not an owner confirmation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant