fix(dotagents): keep global agent rules fresh on switch and fleet
Merged
SH
3d ago+23+23+01234567890123456789-3-3-0123456789
Summary
dotagents-switch-sync(used bymake switch) ranruler-dotdirs-synclast and never ranruler-apply-global, so stale gitignored repo-local Ruler outputs overwrote~/.claude/CLAUDE.mdand other agent rules on every switch. That is why sessions still saw "No co-authorship" weeks after shunkakinoki/dotagents#213. It now runs dotdirs first andruler-apply-globallast; the CI branch ofdotagents-syncuses the same order.dotfiles-updateronly ranmake install, which never syncs dotagents, so fleet hosts kept whatever agent rules they were provisioned with. It now runsmake dotagents-switch-syncafter install. A failure there is logged and does not block the installed-commit marker.bun,jq, andrsyncare added to the service PATH on Linux and Darwin.- Bumps
dotagentsto shunkakinoki/dotagents#215 (sync ordering, non-aborting sync, removal of dead BetterWright skills).
Verification
shellspec spec/dotfiles_updater_spec.sh: 26 examples, 0 failures (new case covers the sync call and the non-blocking failure).make dotagents-switch-syncexits 0 locally;~/.claude/CLAUDE.mdcontains the co-author rule.
๐ค Generated with Claude Code
Summary by cubic
Fixes agent rule sync so make switch stops overwriting ~/.claude/CLAUDE.md and other global Ruler outputs with stale repo-local copies, and makes fleet hosts pick up current agent rules on update.
dotagents-switch-syncnow runsruler-dotdirs-syncfirst andruler-apply-globallast; the CI branch ofdotagents-syncuses the same order.dotfiles-updaternow runsmake dotagents-switch-syncafter install so hosts get fresh agent rules, skills, and MCP configs; a sync failure is logged and does not block the installed-commit marker.- Adds
bun,jq, andrsyncto the service PATH on Linux and Darwin. - Bumps the
dotagentssubmodule for sync ordering and dead-skill removals.