This is an adapter-boundary failure.The exception occurs after command resolution but before the handler runs, so every registry-backed command can fail identically.

Prove the route first.

Local command

/sessions works

Registry command

/compact fails

Second registry command

same stack

Handler

never entered

Restore the positional contract.

await commands.execute(
  agent,
  line,
  [],
  controller.signal,
)
No exception does not yet prove a correct fix.

Test settled results, cancellation, packaged installation, both call sites, and direct adapter arguments.

Primary evidence.

Keep the complete diagnostic.

The canonical runbook includes loaded-bundle checks, two-call-site repair, failure routing, cancellation assertions, and the integration regression contract.

Read the full runbook