CI runs the suite as root, where the drafter refuses to run pi without an unprivileged
user, so every local flow test exited 1 there and passed on a workstation. The flow tests
now patch geteuid to a normal user; the root refusal keeps its own test.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
drafter: local runs the pi agent against the model already loaded on a self-hosted server,
as an unprivileged user, in the same sandbox as the Claude drafter. It fails soft when the
server is unreachable or has no model loaded. Both drafters now refuse to continue if
git metadata changed during drafting, and strip project pi configuration from the sandbox.
Tested live against a self-hosted server: one run, 12 turns, docs PR opened.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>