Agent pack
app-dev-db and dev-db
Two similarly named tools, told apart — what each one is and when to reach for it.
Two different things with confusingly similar names. Verified 2026-10-11 (forge-control read from forge-git/main).
| app-dev-db (platform) | dev-db (package) | |
|---|---|---|
| What | readings store in mission-control (hub) | per-repo local SQLite .forge/devdb.sqlite, gitignored, derived-only |
| Network | HTTP ingest + read API | none |
| Use | CI pushes readings; dashboards / MCP read | pnpm exec dev-db sync then summarize, app <id>, flow <id>, tests <ref>, impact <ref>, docs, packages, flags, assets, asset-audits (--format json; exit 0 ok, 1 usage, 2 not found, 3 walker errors) |
Published dev-db version is UNVERIFIED (local checkout says 0.2.2; the 10-08 handover says 0.10.0). dev-db is installed in very few repos; an empty answer means "not available here", never "zero". Producers do not depend on dev-db.
Writing readings (producers)
POST /api/app-dev-db/ingest, contract docs/plans/2026-10-05-app-dev-db-producer-contract.md (v0.5), Authorization: Bearer <producer secret>
bound to a tenant (APP_DEVDB_PRODUCERS). The project is addressed by UUID, not slug. Dedupe is content_hash(commit, payload).
| Kind | Payload | 422 empty scope when |
|---|---|---|
test.run |
{suite, passed, failed, skipped, duration_ms} |
passed+failed+skipped < 1 |
audit.score |
{gate, score, floor, checked} |
checked < 1 |
flows.verify |
{files_checked, violations, warnings, declared_drafts} |
files_checked < 1 |
Limits: 256 KB payload (413), measured_at > 5 min ahead (400), unknown kind (400). series is derived server-side (gate / suite); never send it.
Client: copy scripts/push-devdb-reading.mjs (dependency-free, Node 18+). node scripts/push-devdb-reading.mjs <kind> --flag value … [--dry-run].
Env: APP_DEVDB_URL (the full ingest URL), APP_DEVDB_PROJECT (UUID), APP_DEVDB_SECRET, optional APP_DEVDB_PRODUCER|REPO|WORKSPACE.
Exit: 0 accepted/deduped, 2 usage/config, 3 empty scope (refused locally), 4 server 4xx, 5 transport/5xx after 3 retries.
forge-dev's @blueforge-studio/app-devdb-producer 0.1.0 is a separate client where exit 2 means "plane unavailable, warn only": do not copy its
exit-code mapping onto this script. Make the push step non-blocking on exit 5.
Reading
GET /api/app-dev-db/{catalog,latest,series,runs} with a reader secret (APP_DEVDB_READERS, tenant + project allow-list; an out-of-list
project returns a 404 identical to a missing one). Read endpoints use the default branch only; ref=<name> pins, ref=* widens.
series takes window (default 30d, max 365d) and step (hour|day|week); runs takes limit (<= 200) and before.
MCP toolset app-dev-db: forge_devdb_readings_{catalog,latest,series,runs}, needs APP_DEVDB_URL (mission-control base) and
APP_DEVDB_READER_SECRET. Do not confuse these with forge_devdb_{recent,summarize,packages,flow,impact,tests}, which read the
architecture-graph path (arch_graph_runs) and see only what was pushed. Metrics: GET /api/metrics/devdb.*?app=<slug> on hosting-api.
What actually reaches it today
- Pushing: forge-dev (
flows.verify,test.run) and linguaquest (test.run). blueforge has the script but no workflow that pushes. One of ~116 repos at census time. Prod held ~1.4k readings from one project on 2026-10-08. - Screen, storybook and asset audits do not go to app-dev-db. Screen and storybook have their own store (
/api/audits/screen|storybook, upload packageaudit-upload, with a read API:latest, runs, history, series, compare, baselines, projects). Asset audit has no upload. - No live
audit.scoreproducer was found (UNVERIFIED which project produced the existing rows). - The contract's read side (v0.6: units per kind, staleness, canonical ref) is not started.
To add a producer to a repo
- Operator creates the producer secret and project UUID entry (an operator step; agents do not read or write secrets).
- Add the script and a CI step that runs after the suite and pushes with
--dry-runfirst. Make it advisory (|| trueon exit 5). - Confirm with
…/latest?project=<uuid>&kind=test.runusing a reader secret. A reading you cannot read back is not verified.