Skip to content

Add an additive feature-flag skill for agents - #3989

Draft
reakaleek wants to merge 1 commit into
mainfrom
chore/feature-flag-skill
Draft

Add an additive feature-flag skill for agents#3989
reakaleek wants to merge 1 commit into
mainfrom
chore/feature-flag-skill

Conversation

@reakaleek

Copy link
Copy Markdown
Member

Agents that add a feature flag now load /feature-flag and must prove the flag-off path still matches the previous default.

Affects: Agentic Skills

Why

A new feature flag is easy to wire around new code only. Existing output then lives only on the flag-on path. Environments that leave the flag off lose behavior that already shipped. The additivity check has to happen before the work is done, not after a regression.

What

Additive rule

Flag off keeps the previous default. Flag on adds new behavior only. The skill treats a relocated copy of shipped output as a failure, not as a new feature.

Flag registration

The skill points at FeatureFlags.cs, feature_flags in assembler.yml, and ToFeatureFlags(). New flags stay off in prod. Tests must cover flag-off, flag-on, sibling flags, and the default environment.

Agent discovery

AGENTS.md lists /feature-flag with the other required skills so an agent loads it when it adds or extends a flag.

Out of scope This PR does not change how flags load or which environments enable them.

Made with Cursor

Flag-off must keep the previous default so new flags do not hide shipped behavior.

Co-Authored-By: Cursor Grok 4.6 <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown

Docs preview (local build)

Handbook preview: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/3989/

Sample changed pages:

@Mpdreamz Mpdreamz 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.

Worth having. Fwiw navigation_preview was tested on and off by me and and agent so sometimes things can still slip :)

Unless we test all feature flag combinations with synthetics but that is a bit expensive.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants