Skip to content

fix(contract): validate headless v3 schema constraints - #194

Merged
BunsDev merged 1 commit into
mainfrom
docs/headless-contract-closeout
Oct 13, 2026
Merged

BunsDev merged 1 commit into
mainfrom
docs/headless-contract-closeout

Conversation

@BunsDev

@BunsDev BunsDev commented Oct 13, 2026

Copy link
Copy Markdown
Member

Summary

Enforce the documented headless v3 schema constraints and correct stale contract references. Add a pinned JSON Schema validator to CI so cross-field constraints are tested directly.

Context

  • User request: finish useful corrections from dirty worktrees and archive unfinished drafts.
  • Scope: runtime contract documentation, fixture schemas, validator script, and CI; one Rust comment is corrected.
  • The adapter currently documents v2 and rejects the runtime's review-memory field. This existing cross-repository migration gap is documented explicitly; memory governance and runtime behavior are unchanged.

Changes

  • Require a brief contract version and consistent review mode/evidence combinations.
  • Enforce null/absent success exit reasons and required failure/needs-input reasons, while retaining optional partial reasons.
  • Replace stale artifact links and the inaccurate claim that local fixtures are verbatim adapter copies.
  • Validate fixtures and status/evidence combinations with a pinned Draft 2020-12 validator.

Validation

  • git diff --check
  • rustup run stable cargo fmt --all -- --check
  • uv run scripts/test-headless-schemas.py: all four test groups passed; 17 regression cases failed before the schema corrections.
  • Independent specification and quality review passed; upstream adapter contract/schema checked live.
  • Local workspace check/Clippy/tests: N/A for documentation, JSON Schema, Python validation, and a comment-only Rust change. The PR still runs full Rust and terminal CI.

PR Readiness

  • Diff is limited to seven intended files.
  • Generated files were not edited by hand.
  • User-facing contract documentation is updated.
  • No secrets, credentials, local paths, or unrelated logs are included.
  • The existing adapter-v2/runtime-v3 migration gap is documented.

@vercel

vercel Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Ready Ready Preview Oct 13, 2026 1:05pm UTC

Request Review

@BunsDev
BunsDev merged commit 12b199b into main Oct 13, 2026
5 checks passed
@BunsDev
BunsDev deleted the docs/headless-contract-closeout branch October 13, 2026 13:44

This branch was successfully deployed

1 active deployment
Preview — 92661161 Deployed Oct 13, 2026 by vercel[bot]
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