diff --git a/.claude/ux-guidelines.md b/.claude/ux-guidelines.md index 0ec43f3..5ea2c05 100644 --- a/.claude/ux-guidelines.md +++ b/.claude/ux-guidelines.md @@ -336,3 +336,15 @@ Complexity appears progressively. Users begin with observations rather than conclusions. The Confidence Engine behaves like a facilitator introducing a workshop — calm, patient, and focused on understanding before acting. + +## Facilitator Behaviour + +Orientation should support work, not interrupt it. + +The facilitator is present by invitation, not obligation. + +Returning users should control repeated guidance. + +The workspace should remain the primary visual focus. + +Information should naturally flow from left to right. diff --git a/components/scenario-form.jsx b/components/scenario-form.jsx index d65be3d..5696e62 100644 --- a/components/scenario-form.jsx +++ b/components/scenario-form.jsx @@ -218,6 +218,7 @@ export default function ScenarioForm() { const [lastSubmittedAnswer, setLastSubmittedAnswer] = useState(""); const [currentUnderstanding, setCurrentUnderstanding] = useState(null); const [mockScenario, setMockScenario] = useState(""); + const [hideFacilitatorOnLanding, setHideFacilitatorOnLanding] = useState(false); const textareaRef = useRef(null); /* Restore persisted session on mount (Phase 3) ─────────── */ @@ -231,6 +232,15 @@ export default function ScenarioForm() { setStatus("success"); }, []); + /* Restore facilitator dismiss preference (Experiment 05) ─── */ + useEffect(() => { + if (typeof window === "undefined") return; + try { + const pref = sessionStorage.getItem("ce-facilitator-dismissed"); + setHideFacilitatorOnLanding(pref === "true"); + } catch (_) {} + }, []); + /* Inject mock globals so the interceptor can read them at runtime */ useMockGlobals(); @@ -379,50 +389,71 @@ export default function ScenarioForm() { {status === "idle" && (