Skip to Content
JobWzrd Docs

Observability audit — component and operation coverage

Read-only audit of the working tree (main scrapers, cloudflare backend), performed before any implementation. The percentage is computed from the 46-row inventory in §2, not estimated.

Statuses: V implemented and verified by a test that asserts emission · I instrumented (emits an event carrying a usable identifier) · P partial (emits something, but missing identity, outcome, or duration — or failure-only) · N nothing.


1. Headline

MeasureValue
Inventoried operations46
Verified by a test (V)0 — no test in backend/test/ or app/src asserts that a path emits an event
Instrumented (I)3 (6.5 %)
Partial (P)16 (34.8 %)
Nothing (N)27 (58.7 %)
At least some emission (V+I+P)19 (41.3 %)
End-to-end reconstructable user journeys0 of 8

The 3 instrumented operations are a deploy-time catalogue sync (catalogue.synced), the cron sweep (retention.run + retention.swept) and one frontend assistant turn. Everything a user actually does — search, save, upload, connect Gmail, delete an account — is partial or silent.


2. Inventory

Frontend (app/)

#OperationWhereStatusEvidence
F1route crashapp/src/components/ErrorBoundary.tsxProute-crash with route + error name; no trace_id, no dedup
F2API network failureapp/src/services/api.ts:123Papi-network, request_id only, no route/duration
F3API error responseapp/src/services/api.ts:157Papi-error with code/status; no dur_ms, no body
F4search startedapp/src/store.tsxNno start event
F5search progress pollapp/src/store.tsx:1038Pwarn only when observation fails
F6saved-job toggleapp/src/store.tsx:1245Pwarn only on sync failure
F7application advanceapp/src/store.tsx:1286Pinfo/warn with a message, no ids
F8resume uploadapp/src/store.tsx (upload path)N—
F9profile save/syncapp/src/store.tsx:1221Pwarn only
F10Gmail connect/disconnectapp/src/features/outreach/ChangeEmailMenu.tsxN—
F11AI assistant turnapp/src/store.tsx:283Iassistant-turn info/warn
F12stuck loading—Nno watchdog
F13unhandled rejection—NSentry only (app/src/lib/sentry.ts), no log line

Backend Worker (backend/)

#OperationWhereStatusEvidence
B1request lifecycle (23 route entries)backend/src/http/router.tsNno start/end event
B2auth verify / rejectbackend/src/platform/auth.tsPone warn for a missing email config only
B3authorization denialbackend/src/http/router.ts:158Nreturns 403, logs nothing
B4validationbackend/src/http/protocol.tsN—
B5quota check / chargebackend/src/platform/limits.tsN—
B6search create (+cap +enqueue)backend/src/features/jobs/searches.tsPonly the terminal search.settled
B7search status readbackend/src/http/routes/searches.tsN—
B8jobs readbackend/src/http/routes/jobs.tsN—
B9saved-job writebackend/src/features/jobs/*N—
B10profile/dossierbackend/src/features/profile/*N—
B11resume upload/parsebackend/src/features/resume/*N—
B12account deletionbackend/src/http/routes/account.tsN—
B13source catalogue syncbackend/src/features/jobs/sourceCatalogue.ts:114Icatalogue.synced
B14D1 batchbackend/src/platform/db.tsN—
B15R2 put/get/deletebackend/src/platform/storage.tsN—
B16AI callbackend/src/platform/ai.ts:66N—
B17cron sweepbackend/src/index.ts:44, features/jobs/retention.ts:50Iretention.run, retention.swept
B18queue publishbackend/src/platform/queue.tsN—
B19queue consume / claim / settlebackend/src/features/jobs/scrapeQueue.tsPqueue.forged, queue.execution_failed; no msg_id/attempt/trace
B20DLQ—Nno consumer exists
B21scraper HTTP dispatchbackend/src/platform/scraperClient.tsN—

Scrapers

#OperationWhereStatusEvidence
S1Go request receivedscrapers/MiniWzrd/internal/api/server.go:155Plog.Printf("%s %s %s"): no id, tenant, outcome, duration field
S2Go upstream scrapescrapers/MiniWzrd/internal/api/memstore.go:172,240PWARN on failure only
S3Go quota/ratescrapers/MiniWzrd/internal/api/tenancy.goNsilent 401/429/402
S4Rust requestscrapers/jobindie/src/server.rsNno logging middleware
S5Rust upstreamscrapers/jobindie/*N—
S6Rust quotascrapers/jobindie/src/tenants.rsNsilent 429

Integrations and gateway

#OperationWhereStatusEvidence
I1Google OAuthserver/convex/* (frozen)PConvex logs; unverified from here
I2Gmail sendserver/convex/features/outreach/send/send.tsPlogs + explicit outcome; Convex-only
I3Gmail pollserver/convex/features/inbox/poller.tsPConvex-only
I4AI (Convex)server/convex/lib/ai/*PConvex-only
I5AI (Workers AI / Groq)backend/src/platform/ai.tsN—
G1proxy gateway tunnelsbackend/proxy-gateway/main.goNboot/fatal lines only; /stats exists but no request events

3. The most serious blind spots

  1. No request lifecycle at all. A 500 in the Worker leaves http.unhandled with a route and a message, and nothing else — no duration, no actor, no status, no trace, no downstream. You cannot tell whether the failure was before or after the D1 write.
  2. The async hand-off is a hole. queue.message.published does not exist, so for any slow search you cannot distinguish "never enqueued" from "enqueued and lost" from "consumed and crashed".
  3. uncertain is invisible today. The state is designed (B6-EXECUTION-DESIGN.md §5) but nothing emits it, and there is no DLQ consumer to receive the message that would carry the evidence.
  4. Frontend telemetry dies at cutover. app/src/lib/logger.ts posts to /api/v1/logs/ingest, which exists only in server/. Backend has no such route. Silent by design — the failure looks like "everything is fine".
  5. The scrapers cannot be asked what they did. Go logs a URL and a duration; Rust logs nothing per request. A board that returns zero jobs and a board that blocked the request are indistinguishable from the outside — exactly the defect the honesty invariant forbids.
  6. No metrics and no alerts exist. All thresholds in the audit are percentage points of nothing.

4. Requirement ledger (design vs implementation)

Brief requirementStatus
Whole-app component inventoryDONE (this document, 46 rows)
Unified envelope, versionedDESIGNED (OBSERVABILITY-ARCHITECTURE.md §3); existing emitters differ (at vs ts)
Cross-language field parityDESIGNED; today 4 divergent shapes (browser, Worker, Go, Rust)
W3C trace contextNOT SUPPORTED today — no traceparent anywhere; x-request-id only, unvalidated
Queue v2 trace propagationDESIGNED in B6; NOT IMPLEMENTED (B6 execution itself is pending approval)
Frontend lifecycle eventsDESIGNED; today 1 of 13 operations instrumented
API/middleware instrumentationDESIGNED; 0 of 23 route entries
D1/R2 operation instrumentationDESIGNED; none today
Queue/task/DLQ instrumentationDESIGNED; partial consumer logging, no DLQ consumer
Scraper instrumentationDESIGNED; Go partial/unstructured, Rust none
OAuth/Gmail/AI instrumentationPARTIAL, UNVERIFIED (Convex only; frozen)
Redaction policy + testsIMPLEMENTED on browser + Convex + Worker key-lists; NOT value-shape, NOT Go/Rust
Error taxonomyIMPLEMENTED (21 codes) + DESIGNED extension (21 new, log-only)
MetricsNOT IMPLEMENTED; Cloudflare-native mechanisms identified, none wired
AlertsNOT IMPLEMENTED; delivery mechanism is an owner decision (D6)
DashboardsNOT IMPLEMENTED (queries specified)
RunbooksDESIGNED (18 existing + 18 new); never exercised
Local capabilityPARTIAL: console + wrangler dev; queues/D1 simulated, Logpush impossible
Remote verificationNOT DONE; 10 staging gates defined
Sampling policyDESIGNED; today sampling is whatever the platform default is
D1 capacity monitoringNOT IMPLEMENTED; no per-table size exists in the platform (L-OBS-2)
Retention/privacy of telemetryDESIGNED; today the Convex log table exists, the backend has none

5. What is not deferred to the design

These are defects in what exists, not missing features, and should be fixed inside the phases:

  • backend/src/http/router.ts:105 accepts any client string as x-request-id (unbounded, may contain newlines/control characters) and reflects it in a response header. Validation is a security fix, not observability polish.
  • backend/src/platform/log.ts has no msg/service/env, so a Worker line cannot be attributed to an environment without external context — dangerous when staging and production share an account.
  • backend/src/features/jobs/scrapeQueue.ts:49 logs attempts from the message, which is client-influenced until the HMAC verifies; the verified value is what should be logged.
  • scrapers/MiniWzrd/internal/api/server.go:155 logs the raw path including query string; a tenant key or a search term in a query would be persisted to container logs.

6. Verification method

  • Counts come from grep -rn "log(" backend/src, grep -rn "logger\." app/src, grep -rn "log.Print" scrapers/MiniWzrd, and the absence of any logging middleware in scrapers/jobindie/src/server.rs.
  • "Verified" requires a test asserting emission; grep over backend/test/ and app/src/**/*.test.ts returns none for any event string.
  • Nothing in this document was inferred from documentation alone; each row names a file, and where behaviour could not be confirmed from the working tree (Convex OAuth/Gmail/AI) it is marked unverified rather than credited.

7. Revision ledger (review findings → status)

#FindingStatus
1Tracing contract precise (ids, spans, async parent, runtime limits, no "distributed tracing" claim)PASS — OBSERVABILITY-ARCHITECTURE.md §4.1–4.5; specs/correlation extended
2Emitter transport and searchable destination per emitterPASS — §9; Go/Rust stdout explicitly excluded from Workers Logs
3Watchdog must not terminate a slow operationPASS — §5.1 replaces the earlier "resolve as timeout" with slow/stalled that change no state
4Privacy: pseudonymous and linkable, not erasedPASS — §8.2–8.3; specs/privacy-redaction rewritten; optional D7 unlinkability
5Ingest hardeningPASS — §6.1 + specs/telemetry-ingest + OT-66…OT-73
6Native alerting evaluated before a custom evaluatorPASS — §11 + OBSERVABILITY-ALERTS-RUNBOOKS.md §1; durable state is the trigger
7Retention/capacity plan-specific; no full scansPASS — §10.1–10.4; wrangler d1 info + deltas, no routine COUNT(*)
8Decisions separated from prerequisitesPASS — §14 phase/decision table; P0–P3 decision-free

Remaining limitations carried forward: L-OBS-1 (un-echoing scraper), L-OBS-2 (no per-table D1 size), L-OBS-3 (Worker termination), L-OBS-4 (staging-only capabilities), L-OBS-6 (no span aggregation), L-OBS-7 (CF traces not joined), L-OBS-8 (missing parent_span_id fallback).

On this page