Aller au contenu principal
BlueForge
Commencer gratuitement

Agent pack

app-dev-db and dev-db

Two similarly named tools, told apart — what each one is and when to reach for it.

Rendered from docs/agent-pack/app-dev-db.mdrelease v0.2.0Edit on forge-git

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 package audit-upload, with a read API: latest, runs, history, series, compare, baselines, projects). Asset audit has no upload.
  • No live audit.score producer 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

  1. Operator creates the producer secret and project UUID entry (an operator step; agents do not read or write secrets).
  2. Add the script and a CI step that runs after the suite and pushes with --dry-run first. Make it advisory (|| true on exit 5).
  3. Confirm with …/latest?project=<uuid>&kind=test.run using a reader secret. A reading you cannot read back is not verified.

Restez informé

Notes de version et accès anticipé

Un e-mail à chaque nouveauté : fonctionnalités de la plateforme, nouvelles applications et invitations de lancement. Inscrivez-vous sur la liste d'attente pour accéder en avant-première à l'inscription en libre-service et aux sites de promotion.

Pas de spam. Désabonnement en un clic.