Skip to content

Diagnose Windows native-main claim setup failures - #8341

Merged
lidge-jun merged 2 commits into
devfrom
codex/fix-windows-native-claim
Nov 8, 2026
Merged

lidge-jun merged 2 commits into
devfrom
codex/fix-windows-native-claim

Conversation

@lidge-jun

@lidge-jun lidge-jun commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

Summary

The post-merge dev batch failed the Windows quota-provenance case before its mocked RPC ran: native-main claim setup returned NATIVE_MAIN_CLAIM_UNAVAILABLE, but the setup phase and sanitized ACL cause were not visible in the test output.

Add test-only, allowlisted claim-phase diagnostics and injected-failure coverage. The original refusal assertion remains intact and production authentication behavior is unchanged. The helper distinguishes internal identity checks, captures SQLite statement execution failures, and avoids invoking untrusted metadata accessors. This is diagnostic instrumentation, not a claim that the underlying Windows failure is fixed.

Verification

  • Failing-first injected phase, SQLite execution and hostile-metadata regressions failed before the fixes and passed afterward.
  • Isolated-home provenance and native-claim suites: 58 passed, 0 failed.
  • Isolated-home layout, file-size ratchet and Lab boundary checks: 63 passed, 0 failed.
  • Isolated-home bun run typecheck, bun run privacy:scan, and bun run structure:check passed.
  • Fresh independent technical and separate security/privacy reviews: PASS on da7989055110dc8eb21902b7614c0033547bac9f, with no introduced P0/P1 or correctness/security P2.
  • Exact-head hosted CI: ci, gates, and all five test shards succeeded. Skipped and cancelled jobs are not counted as passing evidence.
  • Push used git push --no-verify as requested by the owner.
  • NOT RUN: native Windows execution, full local suite, service lifecycle and release dry-run. The original Windows failure is not reproduced or fixed yet.
  • P3 follow-up: Include claim diagnostics in positive-selection test failures #8342.

Checklist

  • Scope stays focused and avoids unrelated cleanup.
  • Docs or release notes were updated when needed.
  • Security-sensitive changes were reviewed for secrets, auth, and unsafe defaults.

@lidge-jun lidge-jun added the ci:full Run the four full Ubuntu test shards on this pull request label Nov 8, 2026
@coderabbitai

coderabbitai Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions

github-actions Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

✅ Deterministic PR hygiene checks passed.

@github-actions github-actions Bot added chore Maintenance, CI, tests, refactors, or build changes (not a user-facing bug or feature). bug Something isn't working and removed chore Maintenance, CI, tests, refactors, or build changes (not a user-facing bug or feature). labels Nov 8, 2026
@lidge-jun
lidge-jun marked this pull request as ready for review November 8, 2026 09:07
@lidge-jun
lidge-jun requested a review from Ingwannu as a code owner November 8, 2026 09:07
@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-08T09:09:32.703928Z da79890 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.

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

Labels

bug Something isn't working ci:full Run the four full Ubuntu test shards on this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant