docs(agents): reconcile agent instructions; scope global vs repo #775
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "agent-process-reconcile"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Splits agent guidance by scope — global
CLAUDE.md= every project,AGENTS.md= this repo/fleet — and fixes what was outright wrong. Docs only; no behavior change.Why
Four overlapping sources of truth contradicted each other:
~/code/workspaces/nix/<name>vs in-repoworkspaces/<name>)main@origin(localmaingoes stale within minutes here)jj undo— listed as a normal command in global, banned in AGENTS.mdDEVELOPMENT_WORKFLOW.mdre-described already-pushed changesDeleted
.claude/DEVELOPMENT_WORKFLOW.mdIts entire PR flow pointed at
lib/modules/home/scripts/agent/bin/pr-submit-and-monitor— a path that no longer exists at all. It also taught in-repo workspaces, pushed-commit rewriting, and--allow-new(removed in jj 0.42). The live path (fj) is already documented in AGENTS.md.Corrections
~/.config/home-manager(gone) → now points at its real source,dotfiles/agents/claude/CLAUDE.md.beefcake-blueguest on thebattleshiphypervisor;deploy .#beefcakeshipsbeefcake-guest; bare-metalnixosConfigurations.beefcakeis a fallback that must not be deployed to the box.lib/modules/home/was dead).New: two deploy invariants + a merge policy
A host runs one generation at a time, so "prove it live on prod before merging" forced un-merged branches onto production, where each deploy yanked out whatever the previous agent was still validating. Locking harder only turns simultaneous thrash into sequential thrash.
So state the two things that actually matter:
…and let the merge gate be off-production validation (CI + the
beefcake-liteVM gate, a test host, or a green slot) rather than a live prod deploy. Prod-tracks-mainstays the recommended default without being a hard requirement.Also reframed "coordinating with other agents" → "working alongside others on this host": agents aren't asked to coordinate with each other (Daniel orchestrates), just to not clobber — workspace isolation, the
secrets/beefcake/secrets.ymlhot file (split tracked in newissues/open/split-beefcake-secrets.md), CI cancel-only-superseded.The stack
lib/modules/home/(merge first)main)2b46887dafaf756eb52d