Skip to content

docs: capture agent conventions in AGENTS.md and mz-* skills#37741

Open
antiguru wants to merge 1 commit into
MaterializeInc:mainfrom
antiguru:mh/docs-agent-conventions
Open

docs: capture agent conventions in AGENTS.md and mz-* skills#37741
antiguru wants to merge 1 commit into
MaterializeInc:mainfrom
antiguru:mh/docs-agent-conventions

Conversation

@antiguru

Copy link
Copy Markdown
Member

Records durable, non-obvious project conventions that agents kept rediscovering, none of them enforced by existing tooling.

AGENTS.md guidance:

  • debug_assert! side-effect footgun: the macro body compiles out under [profile.optimized] (bin/environmentd, mzcompose) and [profile.release], so a side effect written there is silently inert outside cargo test.
  • Sharpen the durable-names rule to vendor, customer, and account names, across code, comments, docs, specs, commits, PR bodies, and fixtures.

mz-run skill:

  • bin/environmentd --reset DROPs the shared CockroachDB schemas, which are global across all worktrees, not per-worktree.
  • mz_environmentd::Config has three constructor sites, one in mz-sqllogictest, so cargo check -p mz-environmentd alone misses a new field.

mz-test skill:

  • testdrive connection=mz_system needs an explicit postgres-connect line.
  • Batch sqllogictest files and use replace for nondeterministic ID drift.
  • Avoid LOAD GENERATOR COUNTER + mz_sleep in slt; split monotonic coverage.

Docs-only, no code or generated docs touched.

🤖 Generated with Claude Code

Records durable, non-obvious project conventions that agents kept
rediscovering, none of them enforced by existing tooling.

AGENTS.md guidance:
* debug_assert! side-effect footgun: the macro body compiles out under
  [profile.optimized] (bin/environmentd, mzcompose) and [profile.release],
  so a side effect written there is silently inert outside cargo test.
* Sharpen the durable-names rule to vendor, customer, and account names,
  across code, comments, docs, specs, commits, PR bodies, and fixtures.

mz-run skill:
* bin/environmentd --reset DROPs the shared CockroachDB schemas, which are
  global across all worktrees, not per-worktree.
* mz_environmentd::Config has three constructor sites, one in mz-sqllogictest,
  so cargo check -p mz-environmentd alone misses a new field.

mz-test skill:
* testdrive connection=mz_system needs an explicit postgres-connect line.
* Batch sqllogictest files and use replace for nondeterministic ID drift.
* Avoid LOAD GENERATOR COUNTER + mz_sleep in slt; split monotonic coverage.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@antiguru
antiguru marked this pull request as ready for review July 20, 2026 08:34
@antiguru
antiguru requested review from aljoscha and def- July 20, 2026 08:34
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