Repository navigation
Description
Context
PR #2042 (ent#325) shipped the grid widget chassis: InfoTile, the GRID_WIDGETS registry, layout v2 with a one-time v1 migration, and the Tiles ▾ menu. Info tiles join the same lattice as agent tiles under widget:* keys, so drag, swap-with-preview, keyboard reorder, viewport culling and the snap socket all reuse one code path.
Two docs describe that lattice and its occupants, and neither knows about any of it:
docs/memory/architecture.md§ Dashboard Grid view (trinity-enterprise#47) — describesFleetGrid.vue/AgentTile.vue/stores/fleetGrid.js/utils/gridLayout.jsas if agent tiles were the only occupant, and names the layout as "per-user self-healing layout (localStorage v1)".docs/memory/feature-flows/dashboard-grid-view.md— same shape.
Both were accurate before #2042 and are now silently stale. That matters more than usual here because epic ent#94 lands tiles one sub-issue at a time (#95–#101, #259), so each one is written against whatever these two docs say.
What to write
- Second occupant type.
widget:*keys share the layout map with agent names;:cannot appear in an agent name (sanitize_agent_namestrips outside[A-Za-z0-9_-]), soisWidgetKeyis exact rather than heuristic and collision is impossible by construction. - What
InfoTiledeliberately lacks — no Run/Autonomy toggles (a fleet-scope operating control makes a misclick fleet-wide) and no connect port, so a tile cannot be a reporting-line endpoint. Enforced by omittingAgentTile's hover handlers, not by a runtime check. - Org-overlay interlock.
tidyByDept/arrangeByDeptcarrywidget:*keys through andapplyLayoutmerges instead of blind-replacing — guarded at both ends deliberately, since one guard is how the bug existed.computeZonesiteratesagents, so widgets are excluded from zone hulls by construction. - Layout v1 → v2.
trinity-grid-layout-v2, migrated by a one-time copy; v1 is left in place, so a downgrade is not a data-loss event. Agents reconcile first, so a collision evicts the tile. Default placement is the band above the fleet (negative rows), which is what makes "default-on tiles appear without moving a saved agent position" true by construction. - Prefs are a sparse override map, not an allow-list — a tile added in a later release reaches existing users instead of staying invisible behind a stale list, and the catalog filter (not stored prefs) is what decides an
adminOnlytile.
Why this is a follow-up rather than a hold on #2042
Raised as non-blocking on both review passes of #2042. The chassis has exactly one reference tile today; a docs pass reads better once a couple of real tiles from ent#94 have landed and the shape has stopped moving. Filing it so it does not become folklore.
Done when
-
architecture.md§ Dashboard Grid view covers the second occupant type + layout v2 -
feature-flows/dashboard-grid-view.mdcovers the same, plus the org-overlay interlock - Neither doc still implies agent tiles are the only lattice occupant
Follow-up to #2042 · epic abilityai/trinity-enterprise#94 · chassis abilityai/trinity-enterprise#325
Activity
feat(grid): Recent failures info tile — fleet failures one glance awa…