Skip to content

docs: add plan-time enforcement footguns to AGENTS.md#385

Merged
ethanndickson merged 1 commit into
mainfrom
docs/agents-plan-time-footguns
Jul 9, 2026
Merged

docs: add plan-time enforcement footguns to AGENTS.md#385
ethanndickson merged 1 commit into
mainfrom
docs/agents-plan-time-footguns

Conversation

@ethanndickson

@ethanndickson ethanndickson commented Jul 8, 2026

Copy link
Copy Markdown
Member

Distills the plan-time enforcement footguns from the #383 review into reusable AGENTS.md guidance (fail at plan time not apply time; detect a create with req.State.Raw.IsNull(); check a collection's null/unknown-ness before len(); note that many stock validators skip null/unknown). Also adds CLAUDE.md as a symlink to AGENTS.md so Claude Code sees it(?)

Refs #383

Add guidance distilled from the coderd_template 'make versions optional'
review: prefer enforcing decidable invariants at plan time over erroring
in Create()/Update(); detect a genuine create with req.State.Raw.IsNull();
inspect a collection's null/unknown-ness explicitly instead of relying on
len(); and note that many stock validators skip null/unknown values.

Also add CLAUDE.md as a symlink to AGENTS.md so both entrypoints resolve to
the same instructions.
@ethanndickson ethanndickson changed the title docs(AGENTS): capture plan-time enforcement footguns from #383 docs: add plan-time enforcement footguns to AGENTS.md Jul 8, 2026
@ethanndickson ethanndickson requested a review from BobbyHo July 8, 2026 11:07
@ethanndickson ethanndickson merged commit 6aee284 into main Jul 9, 2026
13 checks passed
@ethanndickson ethanndickson deleted the docs/agents-plan-time-footguns branch July 9, 2026 04:04
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.

2 participants