Repository navigation
docs: Add language enforcing feature flags - #1129
Conversation
To maintain velocity, we need to gate changes landing behind feature flags more aggressively. Signed-off-by: usize <[email protected]>
8683711 to
bc4292d
Compare
mrsabath
left a comment
There was a problem hiding this comment.
Review Summary
Solid documentation of the feature flag policy. All technical claims verified against upstream/main:
kagenti_feature_flag_*fields exist inconfig.py(lines 69-71)FeatureFlagsResponseandGET /featuresendpoint exist inrouters/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 ✓
| values, operator). Track this in a dedicated issue. | ||
|
|
||
| ## Code Style | ||
|
|
There was a problem hiding this comment.
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.
| See [CLAUDE.md — Feature Flags](../CLAUDE.md#feature-flags-required) for the | ||
| full policy and current flag inventory. | ||
|
|
||
| ### Making a PR |
There was a problem hiding this comment.
👍 Good cross-link back to CLAUDE.md — keeps the dev guide concise while pointing to the authoritative source.
pdettori
left a comment
There was a problem hiding this comment.
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 ✅
| ### 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` |
There was a problem hiding this comment.
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.
To maintain velocity, we need to gate changes landing behind feature flags more aggressively.