Qualify Sites evidence API against pinned SQL and fix JSONB journey capture
Review capture rejected unchanged reports after PostgreSQL JSONB reordered journey keys. Capture now uses the existing journey schema for artifact comparison, matching assessment, while preserving the original report and digests.
The offline bridge executes actual capture, stored assessment, selected publication and typed RPC wrappers against unchanged Database #136 at afd214aa73dfd70b0f2b860fce90c12ceb23f28b. It verifies/freeze-loads 31 API modules and verifies 16 Database/bootstrap sources. External authority/provider reads are explicit synthetic seams; no PostgREST exposure, hosted authentication, provider acceptance or publication activation is claimed.
The parent owns disposable directory leases, quiesces its dedicated worker group, independently identifies/stops PostgreSQL by the exact registered data directory, and verifies process/socket absence before deleting files. Uncertain cleanup preserves evidence. Lifecycle responsibilities and source verifiers are separate modules.
Validation at ddd614c998ffdbc837f8bfde58333350c36d648c:
- All ten reported checks pass. Full unit CI: 9,978 passed / 67 skipped; downstream offline workflow, production TypeScript and contract-type steps pass.
- PostgreSQL 15/17 CI: 14 business-contract cases, six lifecycle faults and old-output stale-marker rejection pass on each version. Source loader: 31 loaded / zero missing; this is load attribution, not every-branch coverage.
- Local focused API tests: 148 passed; dedicated fixture cases correctly skip without the runner. Focused actual-import types, lint and formatting pass. Broad test-inclusive repository TypeScript remains separately non-green.
- Exact-head independent spec/standards reviews clear. Seventeen review threads resolved; final Cubic review reports zero issues in the latest eight-file delta. CodeRabbit was skipped/manual-review-required.
The stale-marker negative covers old output reuse, not foreign root/worker marker injection at the current-root read path. Those identity comparisons are source-reviewed guards. Database #136 remains draft and unapplied; no SQL proposal, route/factory wiring or activation changes. Root retains merge/release approval.