mirror of
https://github.com/PerpetualSoftware/pad.git
synced 2026-10-26 14:30:13 +00:00
1d94d038a4
* test: collection create publishes an event; the launchpad and connect banner follow agent writes live (BUG-3447) * fix(web,server): collection create publishes collection_updated; the launchpad and connect banner follow agent writes live (BUG-3447) * test(web): a debounce armed in one workspace does not fire into the next (BUG-3447, codex r1) * fix(web): the live reload and the banner re-check fire only for the workspace they were armed in (BUG-3447, codex r1) * test(web): an event during the first load or check still triggers the live refresh (BUG-3447, codex r2) * fix(web): an event before the first load or check commits still triggers the live refresh (BUG-3447, codex r2) * test(web): a failed quiet re-check that overtook the first check leaves the banner showing (BUG-3447, codex r3) * fix(web): a failed quiet re-check from the unknown state falls back to showing the banner (BUG-3447, codex r3) * test: an agent's collection is agent activity (dashboard, banner, e2e incl. the Agent-connected step) (BUG-3447, lead) * fix: a collection records its source; an agent-created collection is agent activity for the launchpad and the banner (BUG-3447, lead) * test(e2e): the launchpad follows an onboarding agent from outside the tab, red on main for each outcome (BUG-3447, lead) * test(store): collection provenance survives export/import; the census sees the new column (BUG-3447, codex r5) * fix(store): collection provenance travels in the workspace bundle, validated on import; census records the column (BUG-3447, codex r5) * test(store): an unrecognised bundle source is stored as '' (BUG-3447)
12 lines
706 B
SQL
12 lines
706 B
SQL
-- Migration 126: record how a collection was created (web UI / CLI / MCP)
|
|
-- (BUG-3447). During a real onboarding an agent creates collections minutes
|
|
-- before its first item, and the launchpad's "Agent connected" step and the
|
|
-- connect banner read has_agent_activity, which counted only agent-created
|
|
-- ITEMS. An agent-created collection now counts too.
|
|
--
|
|
-- Same shape as 069_workspace_source.sql: existing rows predate the tracking
|
|
-- and default to '' ("provenance unknown"), which is never treated as
|
|
-- agent-created. New collections set 'web' | 'cli' | 'mcp' at creation from
|
|
-- the request's auth shape, never from the body.
|
|
ALTER TABLE collections ADD COLUMN source TEXT NOT NULL DEFAULT '';
|