handoff: refuse the freebuff backend, and say why

Freebuff's usage policy rejects prompts that read as a job handed to another agent
('Driven by another agent'), does not send them to the model, and counts the attempt
as a strike on the account. The queue must not drive it, so submit refuses the
backend with that explanation and the skill points at interactive use instead.
This commit is contained in:
Ziad Arafat committed 2026-11-28 23:32:38 -07:00
1 parent 7669aebd14
commit 81b99618b5
2 files changed
+13 -4

No files matched your search

+9
View File
@@ -59,6 +59,15 @@ cmd_submit() {
if [ "$brief" = "STDIN" ]; then body="$(cat)"; else [ -f "$brief" ] || die "no such brief: $brief"; body="$(cat "$brief")"; fi
[ -n "$body" ] || die "brief is empty"
# Freebuff refuses prompts that read as a job handed to another agent and counts
# them as strikes on the account, so this pipeline must not drive it.
if [ "$backend" = "freebuff" ]; then
die "Freebuff is not available to this queue: its usage policy blocks agent-initiated
job handoffs ('reads as a job handed to other agents') and counts an attempt as a
strike. Use it interactively, by hand. Queue the task on an API lane instead
(omit --backend, or --backend free-agent)."
fi
[ -n "$id" ] || id="$(slugify "$(head -c 60 <<<"$body" | tr '\n' ' ')")-$(date +%H%M%S)"
local bpath="$DATA/$id.brief.md"
printf '%s\n' "$body" > "$bpath"
+4 -4
View File
@@ -40,10 +40,10 @@ handoff submit BRIEF.md --dir ~/Projects/thing --role code --id fix-tests
config/runbooks. The daemon (systemd user unit `handoff.service`, tmux session
`handoff`) picks it up within 5 s and runs it in a new window.
Add `--backend freebuff` to hand that task to **Freebuff** instead (the
ad-supported agent on the account already logged in; it drives its TUI in tmux
via `bin/freebuff-agent`). Freebuff ignores the pool and its budgets entirely, so
use it when the free API lanes are spent or the task needs a long session.
**Do not queue work to Freebuff.** Its usage policy blocks prompts that read as a job
handed to another agent ("Driven by another agent"), refuses to send them to the model,
and counts each attempt as a strike on the account. `handoff submit --backend freebuff`
refuses for that reason. Freebuff is for interactive, human-driven use only
```sh
handoff list # queue / running / done / failed