caelum0x 4d74188fd5 fix(rithub): agent-signup CLI/server — fix the exact git-push instructions it prints
RIT-ACT: dogfooded `npx @recoder.xyz/rithub init` live and found two real
activation blockers.

1. Universal: provisionAgent created every starter repo with auto_init:true,
   so the server-authored README commit on main always rejects the CLI's own
   printed `git push -u origin main` as a non-fast-forward push. Switched to
   auto_init:false; verified against the live API (empty:true, a real local
   push lands as [new branch]).
2. Machine-dependent: the CLI hardcoded `main` in both its own `git init` and
   the printed push instruction, so any machine whose git still defaults to
   `master` hit "src refspec main does not match any" before even reaching
   bug 1. Normalized freshly-created repos to `main` via symbolic-ref and
   made the printed instruction report the real current branch. Added a
   real-git regression test that forces init.defaultBranch=master to prove
   it. Published @recoder.xyz/rithub@0.1.1 to npm, re-dogfooded live.

Server-side fix (agentSignup.mjs) is committed but not yet deployed to
railyard-box's pm2 rithub-mcp -- box load1 was climbing (10->16) from other
lanes' concurrent work during this pass, so the restart was held rather than
forced through a spike. Next session: rsync + pm2 restart once load1<8, then
re-walk the init->commit->push flow end to end.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 00:57:03 +03:00
..