Repository navigation
Description
Resolution — verified 2026-11-16
Fixed by PR #395, merged as 0fc38ee0f3af7e34d86316902008d927c6f9f76b, and included in published v1.6.0, source 8a45803748baf371dd31bb33db5db68373cd45f5.
Current main b8d8613b5ba597aedd314488f77f52c3f934916a is a later documentation commit. Its Claude discovery implementation, adapter, generated standalone and relevant regression fixtures are identical to the v1.6.0 tag. The existing permission-failure counter is now mapped by ClaudeAdapter.list() to the established incomplete-discovery error while healthy rows are retained. The original description below is historical.
The verification comment below links exact source and offline/public-asset evidence. No additional source defect was found; no new issue, PR or release is needed for this original bug. #393's page API remains separate.
Problem and reproduction
On published v1.5.0 / main 83396579f7343f72a58cf408604c3b80bd456086, a single explicitly selected Claude registry can contain an unreadable record while ordinary listing still exits 0 with ok=true and discovery.claude.status="ok".
A 2026-11-15 owned-file macOS reproduction used the actual standalone CLI, a private synthetic registry, one readable PID record and one record with mode 000. Opening the latter raises PermissionError; the CLI retains the healthy record but serializes no discovery failure. No real Claude session, inbox, model or message was used. This was found while reviewing #393; a paginated projection cannot reconstruct a failure that the CLI did not report.
Historical source at the reported pre-fix v1.5.0 / 83396579f7343f72a58cf408604c3b80bd456086: discover() incremented permission_failures but only appended errors for multiple/alternate registries (session_peer_core/claude.py, record-read failure branch). At that revision, ClaudeAdapter.list() built discovery status from rows.errors only (session_peer_core/adapters.py). This describes the original reproduction, not current main or published v1.6.0. The behavior is therefore specific to the single-selected-registry path; successful empty discovery and intentionally ignored malformed/stale entries are separate cases.
Proposed scope
Report the existing unreadable-record evidence through the established discovery error contract, preserving healthy rows and normal successful output. Keep this small native-discovery correction separate from #393's new MCP page API.
Acceptance
- Preserve ordinary successful listing shapes, discovery selection, source bounds, stale/malformed-record handling, identity/generation checks and submission behavior.
- A genuine record permission failure makes discovery incomplete using existing status/error fields and the existing nonzero partial-list exit behavior. Retain healthy rows; do not reflect private file paths or record contents.
- Cover direct adapter, actual standalone CLI and new MCP projection behavior with owned fixtures. Reproduce the old false-success result, then require the corrected result; keep actual permission and injected-I/O evidence distinguishable.
- Check generated standalone consistency and relevant core/adapter/MCP tests, including Python 3.9 compatibility and cross-platform handling where actual mode-000 semantics differ.
- Complete independent CLI review before its Draft PR; coordinate feat(mcp): add bounded paginated session discovery #393's completeness tests and merge ordering. No new version probe, agent turn, send/wake, receipt/ACK, installation or operational change.
Planning
Priority P2; assignee abruption; candidate support fix in MCP discovery hardening. No release/date or merge/publication commitment. Refs #393 and the completed bounded Claude discovery work #317; this issue tracks the newly reproduced evidence-loss case rather than reopening that historical scope.
Activity
abruption commentedon Nov 15, 2026
Implementation checkpoint — 2026-11-15
Draft PR #395, head
be056dea9079fe3fa438d03ffba7d78582375c8b, changes only the canonical Claude list adapter, its generated standalone counterpart and five focused tests.Before the fix, two tests failed by reproducing actual owned-record permission denial and separately injected evidence loss; after the fix all five passed on Python 3.13.7 / 3.9.6 and both KR Linux SDK environments. Related 68 tests passed. Healthy rows and normal healthy output are preserved; permission failure now uses the existing partial-discovery error/exit contract. Doctor/target-resolution paths remain independent and unchanged.
The exact fix and #393 integration received fresh independent Claude Opus 5.5 and Gemini Argon Medium source reviews before this Draft. Source hashes, timings and review limits are recorded in the PR body. The change supports #396 and should be merged first when human review/current-head checks pass. This issue stays OPEN; no merge or package publication was performed.
Tracking:
MCP-NEXT-RELEASE-DRAFTS-20261115.abruption commentedon Nov 16, 2026
Resolution verification — 2026-11-16
The original evidence-loss bug is fixed and shipped. Closing this issue as completed based on the following checks, without reopening the old report as a current defect.
Source and release inclusion
9410607fdb3d3b85b9734d2b50a0ecb6ccff08ab, merge0fc38ee0f3af7e34d86316902008d927c6f9f76b.8a45803748baf371dd31bb33db5db68373cd45f5, itself an ancestor of current mainb8d8613b5ba597aedd314488f77f52c3f934916a. The release tag points directly to8a45803; the later documentation main commit is not the published tag source.PermissionErrorevidence. Claude adapter copies existing errors, addssession_record_unavailablewhen that count is nonzero, deduplicates error names and preserves healthy rows.ok=false, and the existing list command returns exit 1 for incomplete discovery. Reader/adapter blobs match the merged fix, tag and current main; tagged/current standalone bytes match exactly (the earlier fix-to-release difference is the version value).Offline compatibility verification
Apple Python 3.9.6:
status=error,ok=false, exit 1, with healthy rows retained and the original inventory unmodified.python tools/generate_session_peer.py --checkpassed. Tests exercised the generated standalone, whose bytes were independently matched to the publishedsession_peer.pyasset.Published standalone SHA-256:
546b0385effe2e3234cab5fbf79e3964553b8ac1ac701c157ce3d5bd31ef2d12. The asset andSHA256SUMSalso passed authenticated attestation checks for the exact release source, protected-main ref, preparation workflow, GitHub OIDC issuer and hosted-runner policy.A separate read-only source audit agreed with the control-flow/inclusion finding. No real agent session, native model, inbox message or live send was tested. Synthetic fixtures do not establish every OS permission behavior or every possible discovery failure. No source/contract change, new issue, PR, release or operational change was made. #393 page-API findings remain outside this closure.