Skip to content

fix(onboarding): kernel-driven starter-task completion + inspector/board consistency (#916) - #920

Merged
lilyshen0722 merged 1 commit into
mainfrom
fix/starter-task-inspector-truth
Aug 13, 2026
Merged

lilyshen0722 merged 1 commit into
mainfrom
fix/starter-task-inspector-truth

Conversation

@lilyshen0722

Copy link
Copy Markdown
Contributor

Closes #916.

Three claim-vs-state drifts on the first-workspace board, caught in the 2026-08-12 smoke:

  1. TASK-001 completes from the kernel fact, not narration. The Guide said "that's your first starter task done" while the card sat Pending. Now the first-ever authentication of a BYO runtime token (the same moment feat(byo): verify the listening step live — the checkmark, not the paragraph #909's checkmark keys on) auto-completes the seeded card — matched by sourceRef: onboarding:connect-agent, only pending/claimed flip, system update line, task_updated emitted. Hooked at both agentRuntimeAuth paths and the WS transport (it stamps the same lastUsedAt, so skipping it would swallow the first-use signal for WS-first agents permanently). Fire-and-forget; a board write can never fail auth.
  2. Inspector goes live. It now subscribes to task_updated (emitted by every task write; previously only the v1 board listened) — no more "Tasks 3" beside a chat message announcing task Add frontend utility tests #4.
  3. One status vocabulary. Run state shows the board's four buckets in the board's order (pending un-folded from "In Progress"), and the recent-task pill says "Pending" rather than "Active". en + zh.

Tests: 5 service-contract cases + 3 middleware first-use cases green locally; typecheck clean; frontend jest runs in CI (its tier on this machine).

🤖 Generated with Claude Code

https://claude.ai/code/session_01XeUH4HVDsDHYPsHJthXjB8

…act + reconcile inspector/board task views (#916)

Three claim-vs-state drifts from the 2026-08-12 smoke, one PR because they
share a surface (the first-workspace task board):

1. TASK-001 "Connect your first agent" now completes itself the moment the
   BYO runtime token authenticates for the FIRST time — the same #909
   verified-listening moment the connect page's checkmark keys on. New
   starterTaskService targets the seeded card by sourceRef
   (onboarding:connect-agent), flips only pending/claimed, stamps a system
   update line, and emits task_updated. Hooked at every token-use stamp:
   both agentRuntimeAuth paths AND the WS transport (which stamps the same
   lastUsedAt and would otherwise swallow the first-use signal for WS-first
   agents). Fire-and-forget — a board write can never fail an auth request.

2. The v2 inspector now subscribes to task_updated (already emitted by every
   task write; previously consumed only by the v1 board) — a task created
   mid-conversation no longer sits beside a stale "Tasks 3" count until
   reload.

3. Run state shows the board's four buckets in the board's order — pending is
   no longer folded into "In Progress" (the "3 in progress vs 3 Pending" split
   reading), and the recent-task pill says "Pending" instead of "Active" for
   pending tasks. en + zh keys added.

Tests: 5 starterTaskService contract cases + 3 middleware first-use cases
(fires with podIds/label, once-only, path-2 parity) green locally alongside
the existing suite. Frontend typecheck clean; jest runs in CI (its tier).

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XeUH4HVDsDHYPsHJthXjB8
@lilyshen0722
lilyshen0722 merged commit 85cff00 into main Aug 13, 2026
11 checks passed
@lilyshen0722
lilyshen0722 deleted the fix/starter-task-inspector-truth branch August 13, 2026 02:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Guide narrates 'starter task done' without completing TASK-001 + inspector task surfaces disagree with the board

1 participant