Skip to content

Latest commit

 

History

History
63 lines (54 loc) · 3.11 KB

File metadata and controls

63 lines (54 loc) · 3.11 KB

WP Codebox Docs

Start here when authoring or maintaining WP Codebox integrations. The current contracts are generated from code where possible; planning docs are historical unless this index says otherwise.

Current Contracts

  • Architecture explains the product boundary, package map, and ownership rules.
  • Recipe contract is the authoring guide for wp-codebox/workspace-recipe/v1 recipes, including supported input names and assertion syntax.
  • Sandbox session contract defines the parent orchestration boundary for sandbox sessions.
  • External apply adapter contract documents reviewed artifact apply-back.
  • Agent fanout contract documents generic multi-sandbox fanout inputs and outputs.
  • Agent runtime contract documents the stable orchestrator-facing agent-task CLI, schema boundary, artifacts, runner workspace publication, lifecycle metadata, provider overlays, and default sandbox bootstrap expectations.
  • Generic runtime primitives documents the caller-neutral artifact storage, trusted browser origin, materialization, and target-context envelopes shared by runtime integrations.
  • Portable WP Codebox documents portable runtime packaging and invocation.
  • Benchmark contract documents benchmark evidence shape without making benchmark scoring a core runtime concern.

Example Consumer Integration Notes

  • Example consumer boundary contracts documents runtime profile, preview lease, and browser session handoff seams for host adapters. Named products in that note are examples only; the runtime contracts remain caller-neutral.

Audits And Historical Plans

Contract Authority

  • Recipe schema: npm run wp-codebox -- schema recipe --json.
  • Command catalog: npm run wp-codebox -- commands --json.
  • Runtime TypeScript contracts: packages/runtime-core/src/runtime-contracts.ts.
  • Generic primitive TypeScript contracts: packages/runtime-core/src/artifact-storage.ts, packages/runtime-core/src/browser-session-origin.ts, packages/runtime-core/src/materialization-contracts.ts, and packages/runtime-core/src/evidence-artifact-envelope.ts.
  • JSON Schema factory: packages/runtime-core/src/recipe-schema.ts.
  • Default check coverage: npm run check includes npm run test:generic-primitives through the smoke manifest core group.