Skip to content

Record project profile and per-agent pointers - #126

Merged
scottdensmore merged 1 commit into
mainfrom
scottdensmore/docs/agent-guidance
Aug 19, 2026
Merged

Record project profile and per-agent pointers#126
scottdensmore merged 1 commit into
mainfrom
scottdensmore/docs/agent-guidance

Conversation

@scottdensmore

Copy link
Copy Markdown
Owner

Documentation only. No product code, no test changes.

What this adds

AGENTS.md — two missing sections

Gotchas & Troubleshooting records things that have actually bitten someone, not invented ones:

  • make check is not the CI gate. It is fmt-check vet coverage-check lint, which is what release.yml runs. ci.yml additionally runs corpus-smoke, fuzz, build, release-check, and vuln in separate steps and jobs. A green make check does not imply a green pull request.
  • The first tool or corpus command needs network (go install into .tools/bin, tarball into .cache/), and make clean deletes .tools, so the next lint or vuln run needs it again.
  • The corpus cache is keyed by commit — internal/corpus.Fetch refuses a directory holding a different SHA, or one missing .corpus-commit.
  • make coverage-check runs the whole race suite first, so it is not a cheap check.
  • test/ is not a unit tier: it builds the real binary and runs test/scripts/*.bas through it.

Verification Map gives stage 7 the table it already refers to, so a fix reruns only the gate commands whose inputs it touched, with the complete gate transcribed from ci.yml.

The *.md / docs/** row claims "nothing," which the skill treats as a strong claim, so it states the evidence: go test ./..., go vet ./... and golangci-lint run ./... collect Go packages only, make fmt-check globs -name '*.go', and no Go file in the repository opens a Markdown, YAML, or Makefile path.

CLAUDE.md and GEMINI.md

Thin pointers so Claude Code and Gemini both read AGENTS.md rather than maintaining drifting copies.

Development Workflow

Managed by the agent-skills tooling and committed as generated. Edits inside its markers are overwritten on the next adoption run.

How the commands were confirmed

Every command recorded was confirmed by declarationMakefile targets, .PHONY, and committed workflow steps — plus make -n check to verify wiring. Nothing was executed to find out what it does, and nothing is marked <!-- unverified --> because nothing needed to be.

Sanity check on the claims

This session exercised the Verification Map in practice across #119#122, and it held up in a way worth noting: while fixing #119 I ran focused tests over ./pkg/interpreter and ./test and missed a stale expectation in cmd/go-basic. The complete gate caught it. That is exactly the failure mode the "focused runs do not substitute for the gate" rule exists to prevent.

🤖 Generated with Claude Code

AGENTS.md gains two sections that were missing, both filled from what the
repository actually declares rather than from convention:

- Gotchas & Troubleshooting records that `make check` is not the CI gate,
  that the first tool and corpus commands need network, that the corpus
  cache is keyed by commit, and that `test/` builds the real binary.
- Verification Map gives stage 7 the table it refers to, so a fix reruns
  only the gate commands whose inputs it touched. The complete gate is
  transcribed from `.github/workflows/ci.yml`, which runs more than
  `make check` does.

Every command listed was confirmed by declaration in the Makefile or a
committed workflow; none were run to find out.

The Development Workflow block is managed by the agent-skills tooling and
is committed as generated.

CLAUDE.md and GEMINI.md are thin pointers so Claude Code and Gemini both
read AGENTS.md as the single source of truth instead of drifting copies.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@scottdensmore
scottdensmore merged commit 3e8223e into main Aug 19, 2026
3 checks passed
@scottdensmore
scottdensmore deleted the scottdensmore/docs/agent-guidance branch August 19, 2026 16:31
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.

1 participant