The dispatch's central premise needs correcting before anything is built.
The brief describes "THE DASHBOARD CANVAS. New." Measured against the live VC tree, that is partly false, and the false part is load-bearing:
src/host/canvas/widget-registry.ts (FVC 208, id 10, 2026-10-02).src/host/canvas/home-canvas.tsx (Gallery, Database, Actions).app-surfaces/surface-host-dashboard.yaml, v0.1.0, status: formation, two panels.non_scope block already names the gap this dispatch is trying to close: panel.notes — "requires FreshCards bridge (unwired per b2859)".What does not exist is the one thing a dashboard actually is. There is no query path from VC into FreshCards' entity database. The widget named "database" reads a file listing. So the work is not "add a dashboard" — it is "give the existing widget system something real to read."
| Input | Measured value |
|---|---|
| VC repository | avidtech6/vibecoder-standalone, branch main, HEAD bbfd614 (2026-10-14T22:39:10Z) |
| VC on the box | /opt/vibecoder-bridge (VPS 185.249.73.178) |
| Production host | vibecoder.freshvibeapps.com → 185.249.73.178 |
| FC module in VC | app-modules/freshcards/ (module.json + recipe-book) |
| F 271 | Does not exist. No plan record, no bulletin, no file in the VC repo or /opt/operator. This plan proceeds as its sibling. |
Access note. The dispatch was drafted for id 44 and warns that id 12 does not own HQ. Two consequences were checked rather than assumed:
1 — the VC anchor is reachable. Lane id 17 stopped on 2026-10-14 reporting /opt/vibecoder-bridge: MISSING (b015078). That is true in that sandbox and false on the box — the directory exists and id 12 reads it over SSH. No access gap. Anyone repeating that stop should read the anchor over SSH before repeating it.
2 — HQ's plans namespace is writable by any thread token. POST /api/artifacts with type:"plan" is public to any authenticated thread. This plan is id 12's, filed under the vibecoder-standalone project, and needs no id 44 action.
One consolidated store: src/vcs/VibeChatStore.js (38,944 B). Its header states it replaced duplicated state in both vibechat-panel.js and host-boot.js — "one source of truth, one listener registry, one persistence path." Two persistence layers, in that order: localStorage vibechat.threads.v1 for offline-first, and PocketBase at https://vibecoder.freshvibeapps.com/api/agent for cross-device, behind a one-way vibechat.threads.v2-migrated-v2 migration flag. Four endpoints: list_conversations (queried by email, optionally projectId), save_conversation, delete_thread, rename_thread. Shapes as read from the mapping code: a thread is {id, title, createdAt, projectId}; a message is {id, role: 'user'|'assistant', content|text, timestamp}; a stream event is {id, ts}. A separate durable preference key, vibechat.chatState.v1, holds minimised/expanded and has a build-hash-prefix fallback because host-boot reaps prefixed keys on deploy. Scoping is by email + projectId — per user and per project, not per app.
src/host/canvas/home-canvas.tsx (365 lines). "Home = project shell": a welcome message and three hard-wired zones — Gallery (an EmptySection, "remains empty for now"), Database (routed through the widget registry since FVC 208), and Actions (three placeholder buttons, "not wired yet"). A slot list at module scope currently holds exactly one entry, the Database slot; Gallery and Actions are deliberately excluded with comments saying so. There is no second home view and no dashboard in this sense.
Everything routes through src/host/fce-integration/fs-bridge-client.ts, a thin re-export of src/host/dashboard/files-tree.ts onto window.__fvFsBridge, exposing listApps / loadInitialTree / expandNode / getFileContent / clearTreeCache. The whole VC→FC read surface is two endpoints: POST /api/agent/read_file and POST /api/agent/readdir, both behind X-FVC-Pin. The module's own comment records why: FC's FilesystemStorageAdapter uses node:fs/promises and node:path and is Node-only, so "the brain layer had no path to read VC's project folder from the browser" — a "Browser-safe FilesystemStorageAdapter" was explicitly deferred to a future dispatch. There is no query, no entity read, no view materialisation. A widget today can only read files.
VC is the host; each app is a module in app-modules/ with a module.json and optional recipe-book/ — FreshCards is app-modules/freshcards. Declared behaviour lives in app-surfaces/*.yaml and app-registry/modules.index.json; each surface declares id, version, status, isolation_class, tier, edge_section, panel_id and the panels it provides. A surface's canonical_source is the file in this repo that implements it, so a surface is a contract over real code rather than a standalone registry.
More than a few, and this is the material for risk 7d: src/chrome/panel-system.js, src/chrome/panel-manager/, src/chrome/edge-panel/, src/host/panel-system-runtime.js, src/host/custom-panels.js, src/host/panels/ (edge, dev, header/GalleryPanel.tsx, brain-graph/BrainGraphPanel.tsx, editor/rewind/*, editor/cinema-panels.tsx), src/vcs/PM2PanelContainer.js, src/vcs/SoakPanel.js, and src/host/dashboard/DashboardPanel.tsx (384 lines, a read-only admin overlay over describeWorkspace() and listApps()). Separately, src/cms/panel-manager/panel-manager.js and src/cms/fvcms-panel-manager/fvcms-panel-manager.js are FV-CMS-VENDORED — 392 files repo-wide carry the marker, and the established workflow is source edit → version/manifest bump → re-vendor, never edit in place.
| Definition | |
|---|---|
| a. Audience | One app's own user or operator — the person already working in that app's surface. Not a fleet administrator by default; a fleet operator is a second audience, reached by a capability, not by default. |
| b. Scope | That app's own FreshCards entities, plus two extra surfaces the app surface does not show: dev data (§5a) and admin/control (§5b). Every widget is bound to one app's FC database. A widget that cannot name its app is invalid. |
| c. Access | Read = anyone who can see the app. Write (rearranging the layout) = the same person, locally, in their own client. Layout is a personal preference, not shared state, until the operator says otherwise. Admin widgets additionally require the capability flag, because a credential surface is not a visibility toggle. |
| d. Persistence | The layout is itself FC data — a node in the app's database, one per user. This is the one genuinely new modelling decision, and it cuts both ways (§7c). |
| e. Relation to the app surface | Sibling, not a replacement. One toggle between "working in the app" and "working on the app". The app surface keeps the app's own chrome; the canvas is a workspace about the app. Neither nests inside the other. |
| f. Relation to FCC | Different shape, deliberately. FCC sees across apps, so its natural unit is the app and its natural content is a comparison. The canvas is scoped to one app, so its natural unit is the widget and its natural content is that app's own data. Shared: the widget contract (§3) and the FC read path. Not shared: the layout, the default widget set, or the scope rule. |
Already decided, and I recommend not re-deciding it. widget-registry.ts is a module-scope Map<string, {displayName, component}> with register / get / has / registeredNames. get returns null and the canvas renders nothing — it never throws. That failure mode is exactly right for a user-composable surface, and it is the one property the dashboard must keep. So: a widget is a named React component plus a declaration of what it reads and how big it is. Not a node, not a document — a registered component. In FC's model a widget is referenced by a layout node, never inlined.
Declared, not ambient. The registry's WidgetProps is an open bag today — "widgets decide which keys they read" — and that is the seam to tighten: add a binds declaration so the canvas can tell a widget bound to fc://<app>/<view> from one that wants the credential surface, and refuse the second without the capability. The read itself becomes an FcViewReader (§4), not a widget-internal fetch. Today DatabaseWidget owns its own fetching via window.__fvFsBridge; the moment two widgets need the same view that becomes duplicated network code with divergent auth, which is how the read layer drifts.
Position, size, order, grouping. Map to a CSS grid: { widget, x, y, w, h } on a fixed row height, with group as a nesting level for a titled section. Two constraints from the existing code: the canvas must keep rendering nothing for an unknown widget name rather than throwing, and the 50-entry / depth-3 caps in DatabaseWidget are per-widget implementation limits that must not become layout limits.
Params are data, declared in FC alongside the layout: { widget: 'table', props: { view: 'tasks', filter: {...}, limit: 20 } }. Props are JSON. The registry receives them verbatim. Keep it that way — no code in a persisted layout, only names and values, so a layout survives a widget's internals being rewritten.
| Widget | Reads | Status | Note |
|---|---|---|---|
table / list | any declared FC view | NEW | The generic one. If this works, most of the rest is configuration. |
entity | one entity by reference, plus Used-in and history | NEW | FC already ships EntityDetailFooter with History and Used in. |
recent | last N, one kind | NEW | Cheapest useful widget; needs only a filter. |
devdata | commits / dispatches / reports / plans / lane state | NEW | Capability-gated (§5). |
admin | providers, credentials, backup, config | NEW | Capability-gated. VC already has a credential panel to wrap. |
database | file tree via __fvFsBridge | EXISTS | Misnamed. Reads files, not a database. Either rename to files or re-point it at a real view — do not let the name imply a capability it lacks. |
gallery | EmptySection wrapper | PLACEHOLDER | Registered only to prove multi-widget dispatch works. |
conversations | turn store, scoped by projectId | NEW | Reads VibeChatStore through its own API, never the wire. |
Reuse before build: BrainGraphPanel, GalleryPanel, RewindStackPanel, RewindDiffPanel, PM2PanelContainer and SoakPanel are already panels with a shape. A widget is a placement contract around a component that may already exist.
| Surface | Queryable today? | Wrapper needed |
|---|---|---|
| Nodes and kinds | No — only as files under the project root | Yes: a bridge route returning entities, not filenames |
| References / Used-in | No — reverse index exists inside FC's library, unreachable from VC | Yes |
| Entity history | No — field-level history is in the library, not exposed | Yes |
| Anchors | No — note f255-anchorstore-barrel.spec.ts landed on FC main 2026-10-15; the barrel exists, the route does not | Yes |
| Turn store | Yes, from the client. VibeChatStore is in-process | No HTTP wrapper — read the store API |
| Declared views / schema | No | Yes: a view manifest, so a widget can bind by name |
Files (read_file/readdir) | Yes, behind X-FVC-Pin | No — already wrapped as __fvFsBridge |
So: one new capability carries the whole dashboard — a read-only FC query route. Everything else is composition. It should answer: given an app, a view name, a filter, a limit and a cursor, return entities plus a next cursor. The VC↔bridge routes under /api/agent/* are owned by id 8 (stated in fs-bridge-client.ts), so this is a cross-lane dependency, not a unilateral VC change — sequence accordingly (§6).
Work artefacts about the app's development: commits and PRs on the app's own repo; dispatches and their reports; plans; decisions (FC keeps a decisions log); and lane state — but only for lanes that touched this app. Not included: other apps' lanes, fleet-wide bulletin traffic, HQ internals. The unit is the app, so a FreshCards dashboard shows FreshCards dispatches, and a dispatch about FreshCards made by another lane still appears — that is correct, and is why lane id is metadata rather than a filter.
Control surfaces for the app: configuration, credentials (VC already has credential-store-panel.tsx and a CredentialStore), providers, and backup/restore. These are the surfaces where a widget has a blast radius, so they are capability-gated, never merely hidden.
Enforced at the route, not the widget: every dev/admin read takes an app parameter and the bridge refuses any app the caller's session does not hold. A widget that omits app must fail closed. Filtering in the UI is not scoping — it is a filter over data the client already received.
Yes, and deliberately — but as capability, not as a mode. A normal user gets the app's own content widgets. A dev/admin-capable session additionally gets the dev/admin widget types available; whether the saved layout uses them is a separate choice. One canvas, one layout, two capability sets. An operator switching to a low-privilege session should lose those widgets from the registry, not merely stop rendering them.
| Stage | Produces | Depends on | Parallel? |
|---|---|---|---|
| 1 — Read path cross-lane: FC + bridge owner | A read-only FC query route: app → view → filter/limit/cursor → entities, and a view manifest naming what each view returns. Plus a decision on the database-widget rename. | Nothing. This is the root. | No — everything else waits on it. Run it first and alone. |
| 2 — Widget contract VC only | WidgetProps.binds, a size on WidgetComponent, the capability flag, and table/list/recent registered against the real reader. No layout work yet. | Stage 1's route exists (even behind a stub). | Partly, with 3. |
| 3 — Layout in FC FC only | Decide where a user's layout lives as FC data, and ship the node kind plus a round-trip test. | Nothing. | Yes — pure FC, no VC, no bridge. Runs concurrently with 2. |
| 4 — Canvas switch | The app-scoped canvas, reachable from the app surface; Gallery and Actions move to the registry; the layout drives slot order, size and order. | 2 and 3. | No. |
Shape after stage 4: the existing three-zone home canvas becomes an app-scoped, data-driven workspace; dashboard.notes — deferred in the surface YAML since 2026-09-11 as needing "FreshCards bridge (unwired per b2859)" — becomes implementable, and the surface moves from status: formation toward v0.2 with real panels. Only then does the dev/admin widget work (stage 5+) start, and it starts on a canvas that already reads real data.
| Risk | Mitigation |
|---|---|
| 7a. The widget model overfits to FreshCards | Make binds name a view, not an FC entity type. Ship the generic table first — if it is genuinely generic, the model has not overfit. Test: bind the same table to a second app's view with no widget change. If that needs a code edit, stop and widen the contract. |
| 7b. The dashboard reads dev data at unintended scope | Scope at the route (§5c), fail closed on a missing app, and capability-gate admin. Test: request a widget for app A while authenticated to app B — must refuse, not return empty. An empty result and a refusal are different answers and only one of them is a pass. |
| 7c. The layout conflicts with F 271's HQ migration | F 271 does not exist — no plan, no bulletin, no file. This risk is currently unmeasurable, not absent. Do not build stage 3 until F 271 exists and has been reconciled. That is the one sequencing constraint I would hold hardest: a layout stored in the wrong place is expensive to move once users have arranged things. |
| 7d. The widget system duplicates an existing UI primitive | Already partly realised — see §1e. The registry, the home canvas and a dashboard surface all predate this dispatch. Mitigation is to extend widget-registry.ts and surface-host-dashboard.yaml in place, never to introduce a second registry. Test: after stage 2, registeredNames() still returns one flat list and no module outside src/host/canvas/ defines a Map of components. |
7e. The database widget's name outlives its meaning | It reads a file tree. Rename to files, or re-point it at a real view. Cheap now, confusing after stage 2 when three widgets genuinely read views. |
| 7f. The bridge owner disagrees on the route's shape | The /api/agent/* routes are id 8's. Agree the contract before stage 1 ships, and treat a route rejection as a cross-lane conversation, not a VC bug. |
HQ plans namespace, as artifact type plan, project vibecoder-standalone. Steps, handover, verification steps and targeting are in the record's meta; this document is the artifact body. A bulletin points here. Not mirrored to Notion — this dispatch's scope forbids touching Notion, and the contract already allows an HQ plan URL in place of a Notion one.
git and curl.