Qualify versioned ingestion through HTTP and MCP on an isolated preview

Merged
SI
2d ago
+560-0

Prepare the hosted acceptance tooling for API #1320, after the portable core is accepted. This PR adds a manually invoked qualification script and a synthetic workbook. The script resolves an exact deployment and revision in the Recoup Vercel team before contacting its immutable preview URL.

The read-only check command reports the ingestion gate. After a controlled preview is configured, run submits ready and held workbook contracts over HTTP, then checks ordinary-account MCP readback, source, full-contract and gold digests, catalog records, idempotent replay and nonmember denials. Both jobs stay in the isolated qualification environment. The run expects workbook engine version 2. Existing simple contracts retain their original version.

The branch includes the merged workbook core. Five local qualification tests pass, including two actual workbook transformations and a regression that rejects incorrect field types even when the artifact and receipt hashes agree. The package and fixture verifiers also ran with Node 22.23.4. Strict TypeScript, ESLint, formatting and whitespace checks passed. A read-only check on a known ready API preview returned the private, uncached disabled gate.

Hosted synthetic processing, interruption recovery, infrastructure controls and any enabled external destination still require an isolated configured preview. The operator instructions describe the remaining evidence and rollback. No application route, environment setting, database or production deployment was changed by this contribution.


Summary by cubic

Adds a pinned qualification script so the v2 ingestion engine can be verified over HTTP and MCP on an isolated Recoup preview before release.

  • check reports the unauthenticated ingestion gate on an immutable preview URL; run submits ready and held synthetic workbook contracts and verifies MCP readback, schema-validated receipts, source and gold digests, published field metadata, catalog rows, idempotent replay, and nonmember denials.
  • Resolves the exact deployment and commit through Vercel metadata checks and refuses production, stale code, or unrelated hosts before sending credentials.
  • Requires an isolated preview database and bucket, version 2 contracts, and a dedicated synthetic organization; no production routes, settings, or databases change.
  • Runs the qualification tests with the repository test runner; they execute against the merged engine so the pinned digests and completion evidence match real engine output before the preview is contacted.
  • Documents Vercel CLI setup in the ingestion README.