Skip to content

Make the agent guide match how the project works, with one home per rule - #969

Draft
danfry1 wants to merge 3 commits into
mainfrom
960-agent-guide-truth
Draft

danfry1 wants to merge 3 commits into
mainfrom
960-agent-guide-truth

Conversation

@danfry1

@danfry1 danfry1 commented Dec 2, 2026 •

Copy link
Copy Markdown
Owner

Summary

The agent guide now describes how the project actually works, and each rule has one home that the other files link to.

Why

AGENTS.md said every merge was the maintainer's, that every behaviour change goes behind the flag table, and that every pull request needs a changeset. It also named an "agent workflow standard" that is not defined anywhere. The delivery lane gave the wrong changeset prefix for behaviour changes. The same rules appeared in two or three places with different wording, and lane-file traps had grown into bug histories.

Changes

  • AGENTS.md gains a Merging section: who merges, the review and check conditions, the squash merge pinned to the reviewed head, and what only the maintainer decides.
  • The flag rule now has two paths. A change still on trial goes behind the flag table, as ADR 0016-a states. A decided default change ships in a minor as a "Behaviour change:" changeset, as delivery.md states. ADR 0001-b, whose decision put every behaviour change in the table, is marked superseded by 0016-a.
  • delivery.md uses "Behaviour change:" for changed behaviour and "Breaking:" for raised requirements (see Release rules name the wrong prefix for behaviour changes #942; the check-changeset lint stays with that issue).
  • The changeset rule defers to check-changeset. The dangling "standard" sentence is removed.

Where each moved rule lives

Rule Home Was also in
No git stash AGENTS.md, Traps CONTRIBUTING, land-a-stack 11
Blob audit after a merge; data files from main land-a-stack 4, 6 AGENTS.md Traps (now a link)
No bunx/npx AGENTS.md, Commands CONTRIBUTING, delivery.md
One heavy run at a time; keep the machine awake AGENTS.md, Traps CONTRIBUTING, perf-measurement 8, 9
Realpath spelling runtime.md, Conventions CONTRIBUTING
Compute per-run state once runtime.md, Conventions CONTRIBUTING, perf-measurement 7
Closing keywords AGENTS.md, Conventions CONTRIBUTING, land-a-stack 1
Don't reassign members you don't own; .cjs; guard rm -rf AGENTS.md, Conventions CONTRIBUTING
Tests fail without the fix; loops count; gates from the package AGENTS.md, Verification CONTRIBUTING
Frozen install; scratch installs; file: paths in bun.lock; reporter output AGENTS.md, Commands CONTRIBUTING, delivery.md
Child streams read separately cli.md, Conventions CONTRIBUTING
When a changeset is required CONTRIBUTING, Development Workflow delivery.md, AGENTS.md (now a link)
Merge conditions AGENTS.md, Merging land-a-stack 2, 9; release-rc 4; CONTRIBUTING Releasing
bun run build after merges AGENTS.md, Commands runtime.md

Trimmed traps keep their rule in one line. The incident detail is in the code they name: importOnlyFile (node-registry.mjs, which gains the load-order and nested-copy notes), listDirectory and assets.mjs (#930), registry-process.mjs (#873), ecosystem.ts (#883), hostAutoWorkers and tests/memory-plan.test.ts (#906, now with the host-stub note), scripts/ci/deadline.mjs (#946), scripts/docs-checks.mjs (#890), and jest-object.mjs (#892) and node-registry.mjs (#899).

Notes

Closes #960.

AGENTS.md now states the merge process as practised, the two ways a
behaviour change ships, and that check-changeset decides when a changeset
is needed. Rules repeated across CONTRIBUTING.md, lane files and skills
now live in one place and are linked elsewhere; long lane-file traps keep
their rule in one line, with the history in the code they describe.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make the agent guide match how the project works, with one home per rule

1 participant