A solo design pick ships a brittle ticket. A small jury forces you to surface the hard rule, spot when "labeling problem" is really a data gap, and converge to ready instead of refining.
When to convene
Caucus is for design questions with real divergence, where the goal is a ready ticket. Skip it for one-line facts (one agent), pure execution (just do it), or where there's only one sane option.
Composition: two advocates + one skeptic
Two advocates pick majority-wins and call it consensus. Add an impartial chair/skeptic whose job is failure modes and a decision criterion. Three is convention, not doctrine — two advocates + one chair works; one advocate + one skeptic works; three advocates doesn't.
The three prompts share one SCENARIO
Each agent gets the same verified facts (IDs, code-line refs, observed outcomes). Letting each agent self-research drifts the facts and you can't synthesize. Then each gets a distinct lens and a boundary:
SCENARIO (verified): ...
CONTEXT (read these files, these are the related issues, decision-maker's steer): ...
YOUR LENS: [extend-X | separate-track | skeptic/chair]
BOUNDARY: read-only, no code, ≤500 words, return VERDICT line.
Use VERDICT as the last line so synthesis can grep it. Pick lens names that frame the choice (extend-#122 advocate, separate-track advocate, skeptic/chair) — the framing shapes the output.
Run the three concurrently in background; wait for all three before synthesizing. Sequential loses the wall-clock and the parallel disagreement.
Synthesize
- Consensus → hard rule. Whatever all three agree on goes in as a non-negotiable constraint, not a soft preference.
- Divergence → chair's criterion + compatibility points. The skeptic's job is to name when each advocate breaks. Often the advocates are compatible once you apply the criterion (e.g. fallback rule + quarantine path, gated by data-first verification).
- Lock → ready. The whole point of the caucus is to converge. If you converged, open
ready and release the lock. Don't re-refine.
Traps
- Treating caucus as solution. Three agents return positions; you synthesize. Letting them agree with each other is a fragile consensus.
- No skeptic. Two advocates ship majority-wins.
- No shared SCENARIO. Facts diverge, synthesis collapses.
- No VERDICT line. Agent writes an essay, you can't grep.
- Caucus for execution. Locating a bug, writing a doc, picking a flag value — none of these need a jury.
- "Three" as dogma. Two advocates + one chair is the minimum useful shape. Three advocates is the maximum useless shape.
The synthesis rule that matters most: when the chair says "this is a data problem disguised as a labeling problem," that's the reframe — verify the data first, then design the fallback. Without the skeptic, you'd have built a clever rule on top of an incomplete export and shipped proxy labels.
You're migrating a GitHub Pages site from your personal account to an org. You verify the custom domain for the org, the org's Pages settings show it green "Verified", and then binding it to the repo fails — over and over:
You must verify your domain app.example.com before being able to use it.
Every route is blocked. The API returns 400:
gh api -X PUT repos/<org>/<repo>/pages -f cname=app.example.com
# => "Invalid cname" / "You must verify your domain..."
The repo's Settings → Pages custom-domain box throws the same error. Switching to legacy "Deploy from a branch" with a CNAME file already in the branch? The cname stays null. You can't even unpublish to reset — DELETE /repos/<org>/<repo>/pages comes back 422 Deactivating GitHub Pages for this repository is not allowed.
The verified-domains list says green. The cname check says unverified. Both are telling the truth.
The domain is also verified under your personal account. It's a leftover from when the site lived there and pointed at <user>.github.io. That personal verified claim silently takes precedence and blocks the org repo from binding the cname. GitHub never says "this domain is claimed elsewhere" — just the generic must-verify error, which sends you down a rabbit hole of re-verifying on the org side that never helps.
Fix: remove the verified domain from the personal account (user Settings → Pages → verified domains → remove), then bind the cname on the org repo. It goes through immediately.
A tell that this is your problem: the custom domain used to resolve to <user>.github.io before the migration.
One related trap: apex-domain verification does not auto-cover subdomains for cname binding, despite the docs implying it does. app.example.com needs its own _gh-<org>-o.app.example.com TXT even when example.com is already verified — otherwise the same must-verify wall.
Same task — "show me what this branch changed" — but the two tools take opposite dot conventions. Get it backwards and your review fills with commits the author never touched.
The diff: use three dots
git diff origin/main...HEAD
Three-dot diff is git diff $(git merge-base origin/main HEAD) HEAD — it diffs against the branch point, not the tip of main. That's exactly what you want: the author's delta and nothing else.
The nice property: it's immune to origin/main moving forward. New commits landing on main after the branch point aren't ancestors of HEAD, so they don't shift the merge-base. The diff stays clean.
The trap is a stale base, not a newer one. If your local main is older than the branch point, the merge-base slides back to an older ancestor and the diff swallows unrelated upstream commits — making the author look like they changed far more than they did. So fetch first:
git fetch origin
git diff origin/main...HEAD
Want to see the branch point itself? git merge-base origin/main HEAD.
The log: use two dots
git log origin/main..HEAD
Two-dot log = commits reachable from HEAD but not from origin/main = the branch's own commits, exactly.
Don't reach for three dots here out of habit — git log A...B is the symmetric difference, so it also lists the commits main picked up that HEAD doesn't have. That's the noise you were trying to avoid.
So: diff three-dot, log two-dot. Different tools, opposite defaults, same job.
Moving a vagrant-libvirt VM between Linux hosts looks like a two-step
(vagrant package then vagrant up on the other side), and that's exactly
what I tried. Both steps died in the same place: fog-libvirt's stream
upload/download of a large qcow2 from/to libvirt's storage pool reset
mid-flight (Cannot recv data: Connection reset by peer, hung at 0%).
The streaming bug is in fog-libvirt's vol upload/download. The fix is to
bypass vagrant-libvirt's vol-upload/vol-download entirely: flatten
the overlay qcow2 against its backing file, drop the result in a libvirt
storage pool by hand, then virsh define + virsh start. Treat
vagrant-libvirt as the boot-time scaffolding only; the running VM is plain
libvirt after that.
1. Make the box self-contained
vagrant package exists to bake the VM's disk + metadata into a .box
file. With a libvirt provider the disk is usually a qcow2 with a backing
file (qemu-img info ... | grep "backing file"), and vol-download only
streams the overlay — you'd ship an incomplete box. Skip it and flatten
manually:
…more
You SSH through a bastion box. So you copied your private key onto it. Now that key lives on one more machine — one more place it can be stolen from, one more copy to rotate when something goes wrong.
SSH agent forwarding removes the need entirely.
What it actually does
This is the part most explanations hand-wave past. Your private key never needed to be on the bastion — that's not how SSH auth works.
- The target machine needs your public key (in
~/.ssh/authorized_keys). It always did.
- The client (you) holds the private key and signs a challenge the target sends.
Without forwarding, when you SSH from the bastion to a third machine, the bastion becomes the client — so it needs the private key to sign. That's the only reason you ever copied it there.
With forwarding, the bastion doesn't sign anything itself. It forwards the challenge back to your agent on your laptop, your agent signs it, and the signature travels back. The bastion never touches the private key.
No forwarding: laptop (key) → bastion (key) → target (pubkey)
With forwarding: laptop (key+agent) → bastion (no key) → target (pubkey)
Setup
- Load your key into the agent on your laptop (the agent is usually already running):
ssh-add ~/.ssh/id_rsa
- Enable forwarding for the bastion in
~/.ssh/config:
Host bastion
HostName bastion.example.com
User myuser
ForwardAgent yes
- Verify it works:
ssh bastion
ssh-add -l # lists your keys → forwarding is live
ssh internal-vm # connects, bastion never had your key
The catch
Only forward through machines you trust. Anyone with root on the bastion can request signatures from your agent while your session is open — effectively borrowing your identity. Never use -A on a shared or untrusted host.
Do you still need it with a passphrase-less key?
If your key has no passphrase and you've already copied it everywhere, forwarding isn't strictly required — direct auth from the bastion works fine. But keep ForwardAgent yes in the config anyway. It costs nothing, and the day you switch to a passphrase-protected key, you'll only ssh-add once on your laptop instead of typing the passphrase on every connection.