()
| 86 | * the env var alone also sets userMsgOptIn via maybeActivateBrief(). |
| 87 | */ |
| 88 | export function isBriefEntitled(): boolean { |
| 89 | // Positive ternary — see docs/feature-gating.md. Negative early-return |
| 90 | // would not eliminate the GB gate string from external builds. |
| 91 | return feature('KAIROS') || feature('KAIROS_BRIEF') |
| 92 | ? getKairosActive() || |
| 93 | isEnvTruthy(process.env.CLAUDE_CODE_BRIEF) || |
| 94 | getFeatureValue_CACHED_WITH_REFRESH( |
| 95 | 'tengu_kairos_brief', |
| 96 | false, |
| 97 | KAIROS_BRIEF_REFRESH_MS, |
| 98 | ) |
| 99 | : false |
| 100 | } |
| 101 | |
| 102 | /** |
| 103 | * Unified activation gate for the Brief tool. Governs model-facing behavior |
no test coverage detected