Skip to main content
Hosted quiz visual proof renders one exact Native Forms draft revision or published version through the real worker form runner in Chromium. It gives agents desktop/mobile PNG, ARIA, diagnostics, and provenance evidence without creating a real worker attempt.
This is SIMULATED_WORKER_PREVIEW evidence. It proves the captured visual and semantic state, not that a worker received or opened an assignment.
Agents should fetch the PNG and ARIA artifacts directly. Create an observe link only when an authorized human needs to inspect the same pinned render.

Workflow

  1. Read capabilities.
  2. Create a session with exactly one draft revision or one published version.
  3. Optionally select one question using the current state revision.
  4. Render desktop, mobile, or both.
  5. Inspect the returned artifacts directly, or create a short-lived human review link.
  6. Revoke the link or expire the session.

Endpoints

Pin an exact form

Draft:
Published version:
Exactly one pin is required. Draft sessions are content-hash bound so a later edit cannot be mistaken for the reviewed content. Render with the current state revision:
The result contains the exact render revision, target, PNG records, ARIA snapshot, diagnostics, and a manifest binding every artifact to its checksum and byte size. MCP returns PNGs inline when the client supports image content; the CLI can download and verify the complete evidence set with --out.

Zero-write and privacy guarantees

Preview never creates or changes:
  • Native Forms attempts, answers, grades, or result releases;
  • Project To-do assignments or transitions;
  • worker progress or completion;
  • notifications; or
  • audit completion events.
The renderer receives the worker-safe projection and never returns answer keys. Direct agent renders do not require a browser or Vercel login. Human observe links require a currently authorized OpenTrain employer and are short-lived, organization-bound, and revocable.

Authorization and retry behavior

  • Capability, session, artifact, and link reads require project_todos:read.
  • Session control, rendering, and link mutations require project_todos:write and an Idempotency-Key.
  • State-changing operations require the current expectedStateRevision.
  • Reuse the same idempotency key after an uncertain or retryable 503.
  • Retrieve an artifact again when its signed URL expires.

SDK

@opentrain-ai/sdk 0.21.0 or later exposes getNativeFormPreviewCapabilities, createNativeFormPreviewSession, getNativeFormPreviewSession, manageNativeFormPreviewSession, renderNativeFormPreview, artifact list/get, and link create/list/revoke. Use the machine-readable OpenAPI document for complete request, response, and error schemas.