Repository navigation
Description
What happened
Priority: P2 reliability correction; a candidate for v1.1.1 after a fix is implemented and verified, not a release commitment.
Owned local fixtures reproduce a Claude registry/input robustness defect in published Python v1.1.0, exact source 8ca77cf31254c8287a2593fe484bb30a7dba2727:
- A readable regular
².jsonrecord passesstem.isdigit()butint(stem)raises ValueError. One abnormal record prevents otherwise healthy Claude sessions from being returned. - A matching oversized ASCII filename/PID (
99999999999999999999.json) reaches POSIXos.kill(pid, 0)and raises OverflowError, with the same healthy-row loss. - A legitimate healthy session named
²is discoverable, butsend --to '²' --dry-runchooses numeric PID conversion and fails instead of resolving that exact name.
This is a local metadata/input reliability finding. No remote attack, security exploit, live-agent failure or native delivery was demonstrated.
Exact reproduction and results
Environment: macOS ARM64, CPython 3.13.7, exact published source. Each case uses a fresh temporary registry, one owned Unix socket and a healthy 101.json record. Liveness for the healthy fixture PID is mocked; the oversized value exercises the real platform PID conversion with signal 0. Other agents and installed skills are isolated/mocked; update notices are disabled. Native posting is mocked and its call count is asserted to remain zero.
- Baseline
list --agent claude --jsonand targetworkerdry-run: exit 0, healthy session retained. - Add either abnormal registry entry: list becomes exit 1 /
ok:false/sessions:[]/ Claude discovery error, despite the still-valid healthy record. - Doctor remains its normal diagnostic-query exit 0 /
ok:true, but replaces useful Claude records/counts withstatus:unknownandadapter_failed. This issue does not propose changing doctor exit semantics. - Healthy-target dry-run with either abnormal record: exit 1 /
reason:outcome_unknown, even though native posting was never called. - Healthy session named
², with no abnormal record: matching name dry-run also yieldsoutcome_unknownbefore any native posting.
The fresh-fixture reproduction was rerun independently with identical results. Existing related registry/list-probe/output/CLI/SSH-security/remote-update tests: 97 passed. Those passing tests do not cover the new cases.
Fixed source locations
discover and diagnose_claude use the broad Unicode isdigit() predicate and convert the filename outside the per-record read-error boundary. resolve_target repeats the predicate/conversion mismatch. pid_alive does not contain the native PID overflow case. Sender discovery shares discover, but separate sender end-to-end impact was not reproduced.
Expected behaviour and acceptance
- Define and share a bounded native PID/record-filename parsing contract. Reject or safely skip unconvertible/out-of-range/invalid values before platform inspection, without rejecting valid native records.
- Contain abnormal records individually; keep healthy discovery rows, available inbox counts and useful permission diagnostics.
- Resolve nondecimal Unicode names through name matching rather than assuming every
isdigit()string is an integer PID. Preserve valid numeric addressing and ambiguity protection. - Preserve Python 3.9 compatibility and platform process-identity checks; do not relax Windows PID-reuse, owner/generation or Codex guards.
- Add fresh owned-fixture regressions for nondecimal digit filenames, oversized native PIDs, healthy rows mixed with bad entries and Unicode session names. Verify direct helpers and CLI JSON/exit/no-native-effect results.
- Do not turn all unexpected exceptions into guaranteed pre-effect refusal or retry permission. Preserve uncertain post-effect results and no automatic resend.
- Regenerate/check standalone source and run the related suites/platform CI before considering a patch release.
Duplicates and limits
Follow-up to CLOSED #267 (bounded abnormal registry reads), not a request to reopen its completed scope. All-state issues/PRs were searched; no exact PID-conversion/Unicode-name follow-up exists. #180 target-generation and #268 native Codex storage work remain separate.
Linux/Windows execution, real hosts, actual Claude/Codex sends and operational/fleet acceptance were not tested. Filing this issue does not implement a fix or authorize a merge, deployment or release.
Activity