Skip to content

witnesses: match optional results instead of comparing T? == T (3 files) - #13600

Closed
briansrls wants to merge 1 commit into
mainfrom
fix/optional-eq-witnesses
Closed

briansrls wants to merge 1 commit into
mainfrom
fix/optional-eq-witnesses

Conversation

@briansrls

Copy link
Copy Markdown
Contributor

Three witness files on main refused to typecheck: == compared an optional (List.first() / Map.get) with a required value.

Each site now matches the optional: Present { value: v } => v == expected, Absent => false. So an absent value fails the assertion. No assertion is weakened, and no non-test module changed.

  • host_converge_slice1_witness_test: units.first() and units.skip(n: 1).first()
  • mtcollins1_physical_orientation_witness_test: p.first().socket and .controller, folded into one match
  • cloudflare_r2_token_witness_test: policy.resources |> get(...) == "*"

Verified with claim_batch built from ded96bd:

  • host_converge_slice1: 18/18 PASS
  • mtcollins1: 16/16 PASS
  • cloudflare_r2_token: 17/17 PASS

🤖 Generated with Claude Code

…les, 5 sites)

An absent first()/Map.get result now fails the assertion instead of
refusing to typecheck. No assertion weakened.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 8, 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-10-08T23:07:46.525189Z 2946822 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.

@gunbai-bot

gunbai-bot Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Superseded by #13641 at 634453d: this PR's head is an ancestor of integration/v1-closeout. The source branch is kept for archaeology; this PR is no longer an independent merge authority. — sent from neat-wolf-604

@gunbai-bot gunbai-bot Bot closed this Oct 9, 2026
@gunbai-bot gunbai-bot Bot mentioned this pull request Oct 10, 2026
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