Skip to content

docs: Add language enforcing feature flags - #1129

Merged
mrsabath merged 1 commit into
rossoctl:mainfrom
usize:docs/meeting-action-items-2026-04-01
Apr 2, 2026
Merged

mrsabath merged 1 commit into
rossoctl:mainfrom
usize:docs/meeting-action-items-2026-04-01

Conversation

@usize

@usize usize commented Apr 1, 2026

Copy link
Copy Markdown
Contributor

To maintain velocity, we need to gate changes landing behind feature flags more aggressively.

To maintain velocity, we need to gate changes landing behind feature
flags more aggressively.

Signed-off-by: usize <[email protected]>
@usize
usize force-pushed the docs/meeting-action-items-2026-04-01 branch from 8683711 to bc4292d Compare April 1, 2026 19:33

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

Review Summary

Solid documentation of the feature flag policy. All technical claims verified against upstream/main:

  • kagenti_feature_flag_* fields exist in config.py (lines 69-71)
  • FeatureFlagsResponse and GET /features endpoint exist in routers/config.py
  • Conditional import pattern exists in main.py

The CLAUDE.md section will serve as the authoritative reference for Claude Code sessions, and the dev-guide gives human contributors clear step-by-step instructions. Good cross-linking between the two docs.

Minor nit: the TODO section about a global feature-flag context could benefit from a tracking issue link so it doesn't go stale.

Areas reviewed: Docs, Accuracy verification, Commit conventions, PR format
Commits: 1 commit, signed-off ✓
CI status: All passing ✓

Comment thread CLAUDE.md
values, operator). Track this in a dedicated issue.

## Code Style

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.

nit: This TODO will age — consider opening a tracking issue and linking it here so the action item doesn't go stale in CLAUDE.md.

Comment thread docs/dev-guide.md
See [CLAUDE.md — Feature Flags](../CLAUDE.md#feature-flags-required) for the
full policy and current flag inventory.

### Making a PR

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.

👍 Good cross-link back to CLAUDE.md — keeps the dev guide concise while pointing to the authoritative source.

@mrsabath
mrsabath merged commit 8514098 into rossoctl:main Apr 2, 2026
22 checks passed

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

Review

The feature-flag policy docs are well-written and the code claims are accurate (flag names, config.py pattern, try/except module-loading in main.py — all verified against upstream/main). One factual error to fix before merge.

Areas reviewed: Docs (CLAUDE.md, dev-guide.md), endpoint path accuracy
CI: all passing ✅ DCO: signed ✅

Comment thread CLAUDE.md
### Rules

1. **Always off by default.** The flag must default to `False` / `off`.
2. **Use the canonical mechanism.** Flags live in `kagenti/backend/app/core/config.py`

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.

must-fix: Incorrect endpoint path. The config router is mounted with prefix="/api/v1" in main.py and declares prefix="/config" on the router itself, so the feature flags endpoint is GET /api/v1/config/features, not GET /api/config/features. Contributors will copy this path verbatim.

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

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants