mirror of
https://github.com/donlucasx/xscapes.git
synced 2026-10-20 08:43:32 +02:00
Twenty-eight confirmed findings from an adversarial review of the plumbing,
two refuted. The ones that mattered:
- THE BLOCKER: the bubble was gated on the companion's pose, so after any
failed command the Worried pose swallowed everything -- including a
permission prompt the agent was actually blocked on. The session could sit
waiting for input with nothing on screen saying so. Pose and bubble are
different channels now; only one of them is allowed to be silent. I had
seen this and called it acceptable precedence, which was wrong.
- Two secret leaks. `PGPASSWORD=hunter2 psql ...` published the assignment
verbatim, because taking token zero assumes the first token is the program
and the leading-assignment form is the single most common way a secret
appears literally in a shell line. And WebFetch put the raw URL in, query
string and all, which is where access tokens live.
- The installer identified its own entries by substring over raw JSON, so a
user hook that merely MENTIONED the marker was classified as ours and
deleted -- and the safety check was written in terms of the same predicate
it was meant to police, so it waved that through. Identification now
decodes and requires the shape we emit.
- `install --apply` printed a statusline instruction that, followed
verbatim, deleted the user's statusline: the chain never stripped `--`.
- An entry pointing at a moved binary reported "already installed" while
every hook silently did nothing; it re-points now.
- A tool whose end never arrived pinned the sea and the companion at
"working" forever, and the turn timeout was conditioned on the flight map
being empty -- so the one case it was written for, an agent killed
mid-tool, was the exact case that could not fire it.
- Auto-compaction re-announces the session with SessionStart, which wiped
the sea, the litter and the sand mid-turn.
- TurnSilence was measured from the prompt and never refreshed, so any turn
past five minutes put the cat to sleep while the agent was still working.
- `emit <kind> -flags` discarded every flag, so the documented way to drive
the scene by hand emitted empty events.
Also: an oversize payload no longer loses the tool_use_id it needs to close
its own tool; a session tag is a hash rather than a prefix, so two sessions
cannot share a socket; clean()'s fast path no longer waves newlines through;
socket reclaim is serialised so two starting scapes cannot unlink each other;
Bus.Close waits for its reader instead of racing it; a symlinked settings.json
keeps its link and its mode.
The mirrored composition is now the default (-mirror=false for the old one).
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AU2ieNpECMF7S4go2CwcDX
650 KiB
1560x3400px
650 KiB
1560x3400px