surface.py python
41 lines 1.8 KB
Raw
sha256:8461d44b77376fbf06fa7c3e085d309e3010fd8d5886d63c63e69ce118811ad4 docs: record AFF-b feature-tip SHAs after AFF-b-ISR commit. Human 3 days ago
1 """Reminder tips for optional config features (LT follow-up patch)."""
2
3 from __future__ import annotations
4
5 from adapters.config import OverseerConfig
6
7
8 def build_optional_feature_tips(config: OverseerConfig) -> list[str]:
9 """Return human-readable tips when optional LT features are disabled."""
10 tips: list[str] = []
11 if not config.session_bookends.enabled:
12 tips.append(
13 "tip: session_bookends off — set session_bookends.enabled: true in "
14 ".overseer/config.yaml then ok sync for Cursor session start/end nudges "
15 "(cursor/hooks/README.md)"
16 )
17 if not config.honesty.enabled:
18 tips.append(
19 "tip: honesty off — set honesty.enabled: true in .overseer/config.yaml "
20 "for verification-evidence and independent-second-reviewer reminders "
21 "(require_verification_evidence / require_independent_second_reviewer: warn|require; "
22 "docs/INDEPENDENT-SECOND-REVIEWER.md)"
23 )
24 elif config.honesty.require_independent_second_reviewer == "off":
25 tips.append(
26 "tip: require_independent_second_reviewer off (opted out) — default is "
27 "require; set honesty.require_independent_second_reviewer: require to "
28 "re-enable second-chat DONE gating (docs/INDEPENDENT-SECOND-REVIEWER.md)"
29 )
30 if config.honesty.enabled and config.honesty.adversarial_freeze == "off":
31 tips.append(
32 "tip: adversarial_freeze off — set honesty.adversarial_freeze: suggest "
33 "(or require) for pre-Auto attack-posture freeze review "
34 "(docs/ADVERSARIAL-FREEZE-REVIEW.md)"
35 )
36 return tips
37
38
39 def optional_feature_tips_payload(tips: list[str]) -> dict:
40 """JSON payload for ``overseer status --json``."""
41 return {"tips": list(tips)}
File History 1 commit
sha256:8461d44b77376fbf06fa7c3e085d309e3010fd8d5886d63c63e69ce118811ad4 docs: record AFF-b feature-tip SHAs after AFF-b-ISR commit. Human 3 days ago