Skip to content

[skip-cr] fix(session-peers): bound holder-probe error text - #187

Merged
vtmocanu merged 1 commit into
mainfrom
fix/peers-list-liveness-bound
Nov 12, 2026
Merged

vtmocanu merged 1 commit into
mainfrom
fix/peers-list-liveness-bound

Conversation

@vtmocanu

Copy link
Copy Markdown
Owner

A timed-out lsof holder probe reported Python's TimeoutExpired text, which carries the full argv. list --json copies that error into every unverified Codex thread, so one probe over 1927 rollouts produced 450 MB of JSON (measured: 73-100 s, 816 MB RSS). claims.sh in a sibling repo then called it about 60 times per listing.

  • run_cmd: on a timeout, name the binary and the timeout only; other exceptions are capped at 512 characters.
  • lsof_holders_checked: lsof error text is capped the same way.
  • Tests: both paths (red on main, green here).

The main cost came from the installed copy lacking #185 (refresher broken, see the skill-maker PR). With #185, list --json here is 41 KB, 100 MB RSS, 3 s CPU, 0 unverified. This PR bounds the worst case on the lsof fallback.

Review: lead plus buddy (skip-cr).

🤖 Generated with Claude Code

A timed-out lsof reported Python's TimeoutExpired text, which carries the
full argv. list --json copies the error into every unverified Codex thread,
so one probe over 1927 rollouts produced 450 MB of JSON (100 s, 816 MB RSS).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vtmocanu
vtmocanu force-pushed the fix/peers-list-liveness-bound branch from ff9bca3 to f6b90a4 Compare November 12, 2026 09:27
@vtmocanu
vtmocanu merged commit 20e1d32 into main Nov 12, 2026
9 checks passed
@vtmocanu
vtmocanu deleted the fix/peers-list-liveness-bound branch November 12, 2026 09:48
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