Repository navigation
fix(claude): report unreadable records as incomplete discovery - #395
Merged
Merged
Conversation
This was referenced Nov 15, 2026
abruption
marked this pull request as ready for review
November 15, 2026 01:53
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: be056dea90
ℹ️ 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".
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A record in a single selected Claude registry can fail with
PermissionError, yet listing reportsok=trueand exits 0. Discovery already counts the failure internally;ClaudeAdapter.listwas checking only the separate profile-error list.Copy the inventory error list and include the existing
session_record_unavailablecode when a genuine permission failure was observed. Keep readable session rows and the established partial-discovery status/error shape. Healthy and intentionally ignored non-permission-invalid records retain their prior behavior. Regenerate the standalone artifact.Refs #394
Type
Validation
--checkand whitespace checks passed.Independent review
Fresh independent source reviews of this exact adapter/generated/test fix and its #393 integration completed before Draft creation: Claude Code 2.1.325 / requested and metadata-confirmed
claude-opus-5-5(226.331s), and Antigravity CLI 1.5.9 / requested and init-confirmedgemini-4-argon-medium, medium (54.691s). Same 161,293-byte frozen technical input SHA-256220ebee96deea60d519b34d6b0158dcabe62dd00a999fb268d1ba2a8be22dc04.Both were fresh, non-interactive read-only calls; Claude tools disabled/plan/no persistence, Antigravity plan+sandbox/600s timeout. Both exited 0 with substantive responses, unchanged input hashes and no fallback. Neither reported a confirmed Draft blocker for the fix. Codex checked the requested caller-impact audit: default multi-agent listing intentionally reports incomplete with retained rows, while doctor and send target resolution use
discoverdirectly and are unchanged. This review is supplied-source analysis, not a native-agent or operational certification.Compatibility and scope
When Claude discovery has a genuine record permission failure, the default multi-agent list can now return exit 1 while retaining readable rows from all agents. Existing MCP
list_sessionssimilarly preserves partial rows and uses its existing error flag; the new #393 page API can report a valid incomplete page. Operators can inspect the inaccessible registry record through their normal permission-management process; this change does not delete files, repair permissions or retry automatically.Call-graph audit:
diagnose_claudeand Claude target resolution usediscoverdirectly, notClaudeAdapter.list; this change does not alter those routines. Explicit wake remains Codex-only. No new fields, probes, model turns, sends, receipts/ACKs or operational actions are introduced.This Draft is the supporting correction for #393; merge order is this fix, then the separately reviewed paged-list Draft. It does not change the runtime version or publish a package, tag or release. Existing immutable artifacts and user installations are untouched.
Codex P2 follow-up — 2026-11-15
Commit
9410607fdb3d3b85b9734d2b50a0ecb6ccff08abaddresses the mode-000 fixture portability finding. The test probes an actual kernel read independently ofread_claude_record; when the environment can read the file (for example DAC-bypass privileges), only that actual-denial fixture is skipped. In denial-capable environments, the existing production-reader, healthy-row, partial-status and privacy assertions still run unchanged. Injected permission-error coverage remains unconditional.A new controlled readable-probe regression verifies the skip branch without treating the production reader as the capability probe. Python 3.13.7 and Apple Python 3.9.6 each ran six tests successfully, including the actual unprivileged denial fixture and controlled bypass branch. No privileged/root process was started for this follow-up. Whitespace checks passed.
This is a test-only post-review correction; runtime and generated source are unchanged. The earlier independent review covered the preceding five-test revision; these fixture refinements were locally validated and are not represented as another external CLI review. Current-head CI and automatic review results remain to be checked.