Files
PaperClipAI/packages/paperclip-runner/runner
DottaandClaude Opus 5.5 3d4cf276fa fix(runner): a sidecar session.open refusal keeps its code and reason
The live /swarm failure was undiagnosable: the Runner composed
"classification=unclassified" and dropped the sidecar's code and message,
so nothing in run events, logs or state said why.

- The Runner classifies the typed /swarm refusals
  (antigravity_swarm_*), candidate_admission_invalid and
  sidecar_request_invalid instead of "unclassified".
- A rejected command keeps the sidecar's own code, and its redacted,
  bounded message when no typed provider cause was sent, as
  `sidecarRejection` on the failed command result (run error). The
  rejection text stays closed; provider text still travels only in
  providerFailure.
- The server settles a typed /swarm refusal at session.open as
  antigravity_swarm_unavailable (waits for the user, no same-run retry)
  and a request-contract or grant refusal as a startup rejection.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 13:21:08 -06:00
..