AdPilot · Corpus
T-030 — Competitor-parity nitty-gritty pack (console slice)
T-030 — Competitor-parity nitty-gritty pack (console slice)
Frozen spec for the T-030 build: the small things paid tools always have.
Decisions
- Scope (Q1): the highest-value console slice — ⌘K / Ctrl K command
palette navigating all 15 routes,
?shortcut legend, notification bell aggregating workflow + rule approvals with an unread count, usage meter in the shell footer (live/v1/usage/summaryoverride, plan constants fallback), CSV export + copy-prompt on the assets page, and share links for the previews editor. The card's second slice (toasts, undo/redo, bulk select) stays deferred. - Implementer — share links: the static export has no server routes, so
share state is hash-encoded —
#share=<base64 of URI-encoded JSON>— decoded post-paint. Sandbox-local by construction; the card's tokenized server URL is recorded as a deviation. - Implementer — SQL literals: the couple SQL parser refused the multi-line INSERT string literals in the assets/campaigns/generations stores. They are collapsed to single lines — behavior-identical, all tests green — so the map's couple half can read the schema again.
Surface-area deltas
apps/web-next/lib/shortcuts.ts— command registry (gsequences, palette toggle),matchShortcutstate machine, legend.apps/web-next/lib/exporters.ts—toCSV(RFC-4180-style), client download, clipboard copy with legacy fallback.apps/web-next/lib/parity.test.ts— matcher + CSV tests.apps/web-next/components/CommandPalette.tsx— palette dialog + legend overlay.apps/web-next/components/NotificationsBellHydrated.tsx— the bell (workflow + rule approvals, unread count) and the usage meter.apps/web-next/components/UsageMeterShell.tsx— re-export boundary.apps/web-next/app/layout.tsx— shell mounts palette, bell, meter.apps/web-next/app/assets/page.tsx— CSV export + copy-prompt.apps/web-next/app/previews/page.tsx— share-link copy + consumption.services/api/internal/store/assets.go,services/api/internal/store/campaigns.go,services/api/internal/store/generations.go— INSERT strings collapsed.- Bookkeeping:
tasks/00-backlog/T-030-parity-nittygritty-pack.md(deleted side of the git mv) /tasks/10-in-progress/T-030-parity-nittygritty-pack.md, and this specdocs/tech-spec/T-030.md.
Verification
Web gates: npm run build (strict), jest (44 total), eslint clean. Go
gates: go test ./... green (no behavior change from the SQL collapse).
rk couple --base origin/main now exits 0.
Out of scope
Toasts, undo/redo, bulk select (deferred slice), tokenized share server, mobile parity.