Skip to content

Define v0 semantic context projection schema#144

Open
yvlachak wants to merge 1 commit into
vercel-labs:mainfrom
yvlachak:yanni/semantic-context-v0-schema
Open

Define v0 semantic context projection schema#144
yvlachak wants to merge 1 commit into
vercel-labs:mainfrom
yvlachak:yanni/semantic-context-v0-schema

Conversation

@yvlachak
Copy link
Copy Markdown

@yvlachak yvlachak commented May 19, 2026

Summary

Defines an exploratory v0 schema for source-anchored semantic context projection in Zero.

This PR adds a short design document and one concrete JSON fixture grounded in the existing TYP009 / make-binding-mutable repair path.

Motivation

Zero already exposes structured diagnostics, explain output, repair metadata, fix-plan JSON, graph JSON, command contracts, and conformance fixtures.

This PR explores how those existing surfaces could feed a small semantic context projection artifact: a source-anchored repair-memory node that preserves the relationship between a diagnostic, a repair, an edit preview, and human-readable rationale.

The goal is not to implement a full semantic memory system yet. The goal is to define a minimal reviewable contract that future commands or sidecar storage could build on.

Changes

  • Adds docs/design/semantic-context.md
  • Adds conformance/context/repair-memory-typ009.projection.json

The fixture models a v0 repair-memory node containing:

  • schemaVersion
  • kind
  • nodeId
  • sourceAnchor
  • string codes
  • diagnosticCode
  • repairId
  • residualSummary
  • parents
  • a small context-projection frontier

Scope

This is intentionally schema/design-only.

Validation

Passed locally:

  • fixture JSON parse check
  • git diff --check
  • npm run command-contracts:local
  • npm run conformance:local

@vercel
Copy link
Copy Markdown

vercel Bot commented May 19, 2026

@yvlachak is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

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