Skip to content

AGENTS.md: leave feature-flag defaults to humans - #39718

Merged
ggevay merged 1 commit into
MaterializeInc:mainfrom
ggevay:gabor/agents-md-flag-defaults
Oct 10, 2026
Merged

ggevay merged 1 commit into
MaterializeInc:mainfrom
ggevay:gabor/agents-md-flag-defaults

Conversation

@ggevay

@ggevay ggevay commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Motivation

AGENTS.md told agents that every new feature flag defaults off in production and on in tests, and agent-written reviews now raise deviations as blockers (#38845). The right default depends on product context: big new syntax may need to stay off so users don't rely on it before the syntax is settled, while a small, low-risk flag can ship on as an escape hatch. An agent rarely has that context.

Description

  • Agents ask a human for a new flag's production default instead of applying a fixed rule, and don't question the default in PR reviews.
  • In tests, a new flag should usually be on. The bullet now names where CI defaults are set: get_variable_system_parameters or get_minimal_system_parameters in misc/python/materialize/mzcompose/__init__.py, which bin/sqllogictest and mzcompose's Materialized service pass to environmentd. It used to point at --system-parameter-default, the flag those lists are delivered through. TestHarness::with_system_parameter_default stays for Rust integration tests.

🤖 Generated with Claude Code

@ggevay
ggevay force-pushed the gabor/agents-md-flag-defaults branch from aa9a0a6 to 790d2a7 Compare October 10, 2026 18:00
@ggevay ggevay changed the title AGENTS.md: let flags that only gate new syntax default on AGENTS.md: leave feature-flag defaults to humans Oct 10, 2026
@ggevay
ggevay force-pushed the gabor/agents-md-flag-defaults branch 2 times, most recently from 2a32088 to 20236d4 Compare October 10, 2026 18:32
The feature-flag bullet told agents that every new flag defaults off in
production and on in tests, and agent-written reviews raise deviations as
blockers. The right production default depends on product context an agent
rarely has, so agents now ask a human when adding a flag and do not question
the chosen default in reviews. Tests should still usually run with the flag
on. The bullet now points at the mzcompose parameter lists that CI and
bin/sqllogictest read, instead of the --system-parameter-default flag those
lists are passed through.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ggevay
ggevay force-pushed the gabor/agents-md-flag-defaults branch from 20236d4 to 7fc87ae Compare October 10, 2026 18:34
@ggevay
ggevay marked this pull request as ready for review October 10, 2026 18:36
@ggevay
ggevay requested a review from antiguru October 10, 2026 18:36

@antiguru antiguru left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's try this!

@ggevay
ggevay merged commit 5dcc2a4 into MaterializeInc:main Oct 10, 2026
8 checks passed
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