From b0654031bcfac4221ec53961b745537edb12679e Mon Sep 17 00:00:00 2001 From: gsxdsm Date: Fri, 17 Jul 2026 16:38:29 -0700 Subject: [PATCH] FN-8251: hide overseer eye when oversight is off Resolve inherited workflow oversight before rendering task-card overseer indicators. - Resolve selected-workflow oversight using the planning workflow identity - Fail closed for unknown, pending, malformed, and failed inherited settings - Cover workflow changes and mobile suppression, and document the behavior - Add a patch changeset for the corrected card indicator Files changed: .changeset/fn-8251-card-eye-effective-oversight.md | 7 + docs/dashboard-guide.md | 4 +- packages/dashboard/app/components/TaskCard.tsx | 116 ++++++++------- .../__tests__/TaskCard.oversight.test.tsx | 161 ++++++++++++++++++++- .../app/components/__tests__/TaskCard.test.tsx | 6 +- 5 files changed, 234 insertions(+), 60 deletions(-) Fusion-Task-Id: FN-8251 Fusion-Task-Lineage: 72dfa67e-e6d5-4557-91b3-23aff6dcf9e7 Co-authored-by: Fusion (runfusion.ai) --- .../fn-8251-card-eye-effective-oversight.md | 7 + docs/dashboard-guide.md | 4 +- .../dashboard/app/components/TaskCard.tsx | 116 +++++++------ .../__tests__/TaskCard.oversight.test.tsx | 161 +++++++++++++++++- .../components/__tests__/TaskCard.test.tsx | 6 +- 5 files changed, 234 insertions(+), 60 deletions(-) create mode 100644 .changeset/fn-8251-card-eye-effective-oversight.md diff --git a/.changeset/fn-8251-card-eye-effective-oversight.md b/.changeset/fn-8251-card-eye-effective-oversight.md new file mode 100644 index 0000000000..b95d40cc62 --- /dev/null +++ b/.changeset/fn-8251-card-eye-effective-oversight.md @@ -0,0 +1,7 @@ +--- +"@runfusion/fusion": patch +--- + +summary: Hide the task-card overseer eye when the selected workflow has oversight turned off. +category: fix +dev: TaskCard resolves planner oversight from the per-workflow board identity and fails closed when inherited oversight cannot be resolved. diff --git a/docs/dashboard-guide.md b/docs/dashboard-guide.md index 91cf775a41..bd8b6453bf 100644 --- a/docs/dashboard-guide.md +++ b/docs/dashboard-guide.md @@ -234,10 +234,10 @@ Features: - Task cards show a read-only **oversight-level badge** (`Observe`, `Steer`, or `Auto-recovery`) in the meta-badges cluster reflecting the effective planner-oversight level, but only when oversight is *meaningfully configured* — an explicit per-task override (including an explicit `autonomous` override), or a resolved workflow/effective tier of `observe`/`steer` (`data-testid="card-oversight-badge"`). A card that merely **inherits** the schema default `autonomous` tier (no per-task override, no non-default workflow tier) renders no badge and no empty `.card-meta-badges` shell. The badge is also absent when the effective level is explicitly "off", **and** while an inherited (no per-task-override) workflow tier is still being resolved (in flight or not yet fetched) — it never shows a guessed default during that window. - + - Completed and archived task cards show a compact **Reverted** footer chip after a clean or already-reverted git outcome has persisted the source task's revert marker; conflicts, AI undo tasks, and revert PRs awaiting merge do not show it. -- Task cards show a compact **planner-overseer eye badge** (`data-testid="planner-overseer-state-badge"`) only when the engine reports a non-idle, non-off transient `plannerOverseerState` **and** the task's freshly-resolved effective oversight level is not `off`. When effective oversight is off, the eye badge and otherwise-empty `.card-header-badges` wrapper are both absent, matching the Task Detail `EyeOff` state. The eye badge is an active-overseer state marker, not a human-read/view indicator: `watching` means passive monitoring, `steering`/`recovering` mean active guidance or recovery is underway, and `awaiting-confirmation` means a human decision is required before the overseer can continue. Hover exposes the composed tooltip with the overseer's reason, watched stage/signal, and pending-confirmation note when present. +- Task cards show a compact **planner-overseer eye badge** (`data-testid="planner-overseer-state-badge"`) only when the engine reports a non-idle, non-off transient `plannerOverseerState` **and** the task's effective oversight is positively resolved as active. Aggregate cards resolve inherited oversight through their task workflow badge; selected-workflow board cards resolve it through their trusted board workflow ID. Identity-less cards and pending, failed, or malformed inherited workflow-setting loads fail closed. When effective oversight is off or cannot be positively resolved, the eye badge and otherwise-empty `.card-header-badges` wrapper are both absent. This matches—but does not alter—the separate Task Detail `EyeOff` menu trigger. The eye badge is an active-overseer state marker, not a human-read/view indicator: `watching` means passive monitoring, `steering`/`recovering` mean active guidance or recovery is underway, and `awaiting-confirmation` means a human decision is required before the overseer can continue. Hover exposes the composed tooltip with the overseer's reason, watched stage/signal, and pending-confirmation note when present.