Skip to content

[codex] Add surface contract view#21

Merged
nahiyankhan merged 2 commits into
mainfrom
codex/surface-contract-view
Jun 11, 2026
Merged

[codex] Add surface contract view#21
nahiyankhan merged 2 commits into
mainfrom
codex/surface-contract-view

Conversation

@nahiyankhan

Copy link
Copy Markdown
Collaborator

Summary

Adds a read-only Surface Contract View layer that derives from the host-selected compiled SurfacePolicy and makes Summon's typed boundaries explicit without changing enforcement.

What changed

  • Added public SurfaceContractView types and helpers in engine/public facades.
  • Added a concise surface-contract system prompt block while preserving detailed capability and component prompt blocks.
  • Emits host-owned /surface-contract meta after /surface-policy and /surface-plan for policy-backed generation sessions.
  • Blocks model-authored /surface-contract like the other host-owned surface meta paths.
  • Wires Devtools, Generate workbench, and Surface Gallery summaries to prefer the emitted view.
  • Completes empty-state key follow-through in validator/host resource maps so the current typed contract remains coherent.

Validation

  • pnpm test
  • pnpm test:gallery
  • pnpm test:safety
  • pnpm build:impl
  • pnpm build:public-core
  • pnpm check:public-api
  • git diff --check

@nahiyankhan nahiyankhan marked this pull request as ready for review June 11, 2026 01:54
@nahiyankhan nahiyankhan merged commit 54f165b into main Jun 11, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant