GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — mcpx: Phase 1 of #1481 — schemaval core: a real JSON Schema 2020-12 validator + dialect policy (no call-path changes) · Issue #1482 · developing-today/code

mcpx: Phase 1 of #1481 — schemaval core: a real JSON Schema 2020-12 validator + dialect policy (no call-path changes) #1482

New issue
Copy link
New issue
Copy link
Closed
#1570
Closed
mcpx: Phase 1 of #1481 — schemaval core: a real JSON Schema 2020-12 validator + dialect policy (no call-path changes)#1482
#1570
Copy link
Assignees
dezren39
Labels
app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workkind/featureNew feature or capability requestmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/design-architectFiled by the repo design architect jobstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

Description

@dezren39
dezren39
opened on Oct 27, 2026
Issue body actions

Phase 1 of design #1481 (JSON Schema validation of tool input and output). Design doc: files/designs/code-mcpx-json-schema-validation.md in the keep-the-four-repos-healthy goal workspace. Origin gap: dezren39/darwin-nix#254 — its acceptance requires the validator decision recorded before implementation; that decision is recorded on #1481 (adopt github.com/santhosh-tekuri/jsonschema/v6 behind internal/schemaval; internal/mcpspec stays the test-only protocol-frame validator).

Scope

Build the validator core only — no call-path changes, nothing enforces yet:

  • New package internal/schemaval (name indicative; settle at triage) wrapping github.com/santhosh-tekuri/jsonschema/v6; it is the only package importing the dependency. Add the dependency to pkgs/mcpx/go.mod (cause recorded on design(mcpx): JSON Schema validation of tool input and output — one validator at the client choke point #1481: full 2020-12 support is a MUST row in mcpx's own conformance matrix; the library passes the JSON-Schema-Test-Suite and covers drafts 4/6/7/2019-09/2020-12).
  • Dialect policy: a schema with no $schema compiles as 2020-12; a declared $schema must name 2020-12, 2019-09, draft-07, draft-06 or draft-04 — anything else returns a distinct, typed UnsupportedDialect error.
  • No network, ever: the compiler's loader resolves only inline/already-registered resources. An external $ref is a typed UnresolvedRef compile error; an internal unresolvable $ref is likewise a compile error. Fetching is not an option the API exposes.
  • Compilation is bounded: a maximum schema size (settle the number at triage against real catalog schemas) — an oversized or pathological schema fails compilation as invalid rather than consuming the daemon.
  • Validation API: compile once from json.RawMessage, validate decoded instances; instances must be decoded the way the library requires (jsonschema.UnmarshalJSON) so >2^53 integers keep numeric fidelity. Validation errors flatten to a concise path-carrying form, e.g. $.count: expected integer, got string.
  • Formats are annotations, not assertions, in v1 (format: email alone never fails validation).
  • Dialect document: add the supported-dialect list + the policies above to pkgs/mcpx/docs/, and note in internal/conformance/coverage_messages.go that the validator mechanism exists (row closures land with Phases 2–3, not here).
  • Package comment in schemaval must state the division of labour plainly: mcpspec = protocol frames, tests only; schemaval = tool/elicitation schemas, in the binary.

Out of scope: any change to ListTools, CallTool, Client.answer, codegen, or the daemon; enforcement of any kind; format assertion.

Acceptance

  • Defining tests pass: (a) 2020-12 keyword corpus incl. prefixItems, unevaluatedProperties, boolean schemas, $defs internal refs; (b) declared draft-07 schema compiles and validates per draft-07; (c) unsupported $schema dialect → UnsupportedDialect error, distinct from a generic compile error; (d) unresolvable $ref → compile error; (e) schema with a remote $ref → compile error and zero HTTP requests observed by a counting test server; (f) integer 9007199254740993 (2^53+1) validates as integer and fails a maximum: 9007199254740992 check correctly; (g) a value violating a nested required/type rule returns the path-qualified error form.
  • go.mod gains exactly one new direct dependency; internal/mcpspec is untouched and TestNotImportedByBinary still passes.
  • Dialect document exists in pkgs/mcpx/docs/ stating supported dialects, the no-network rule, and formats-as-annotations.
  • Full suite passes: cd pkgs/mcpx && go test ./... (via CI on the PR per fleet policy).

agent-note:v1 — filed by the repo design architect (dedicated code job, pass 3, 2026-10-27) as a sub-issue of design #1481. Filed as task/triage: triage confirms scope against current main (package name, schema-size bound) and enqueues the implementation packet; do not implement in the triage task.

Activity

Next
  1. dezren39
    added
    kind/featureNew feature or capability request
    task/triageQueue packet kind: verify, reproduce, and route this item
    priority/normalOrdinary priority (the default)
    queue/queuedHas a queued queue task
    app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)
    effort/mMedium: expected under 1 day of work
    on Oct 27, 2026
  2. developing-today commented on Oct 27, 2026

    @developing-today
    developing-todayBot
    on Oct 27, 2026 – with developing.today
    Contributor
    More actions

    CODE-553

  3. dezren39
    added
    source/design-architectFiled by the repo design architect job
    on Oct 27, 2026
  4. github-actions
    assigned
    dezren39
    on Oct 27, 2026
  5. dezren39
    added a parent issue on Oct 27, 2026
    • design(mcpx): JSON Schema validation of tool input and output — one validator at the client choke point #1481
  6. dezren39 commented on Oct 27, 2026

    @dezren39
    dezren39
    on Oct 27, 2026
    MemberAuthor
    More actions

    Intake review

    🤖 Agent note · filed

    • Agent: fleet monitor
    • Session / ID: repo-fleet-monitor run 2026-10-27T18:20Z
    • Found via: monitor reconciliation
    • Task: intake enrichment (§5 pass)
    • Expectation: triage confirms scope against current main once the Phase 1 gate clears, per the issue body
    • Links: parent design design(mcpx): JSON Schema validation of tool input and output — one validator at the client choke point #1481; origin gap mcpx: JSON Schema validation of tool inputs/outputs and elicitation schemas (7 conformance rows) dezren39/darwin-nix#254

    Related: #1481 (parent design, decision recorded there), #1482 / #1483 / #1484 (the three phases), dezren39/darwin-nix#254 (origin).

    Liveness: searched merged PRs for schemaval / schema-validation work — none merged. Not solved; the Phase 1 dependency gate in the body still governs start order.

    Notes / risks: the body's ## Acceptance section is a full acceptance-criteria set in substance (defining tests enumerated), so no duplicate criteria section was appended; status/needs-triage added to complete the filed-state label set. This item already carries queue/queued — triage via the queue, do not implement in the triage task (per the filer's note).

    Suggested approach: exactly as scoped in the body; park on claim if the Phase 1 gate has not cleared, naming the dependency.

  7. dezren39
    added
    status/needs-triageNot yet triaged; needs a first look
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Oct 27, 2026
  8. 38 remaining items

  9. dezren39
    added
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    on Oct 28, 2026
  10. dezren39 commented on Oct 28, 2026

    @dezren39
    dezren39
    on Oct 28, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked

    • Agent: queue worker (repo-worker-code), lane B shift
    • Session / ID: queue task 1614
    • Found via: queue claim (resume)
    • Task: PR feat(mcpx): schemaval core — JSON Schema 2020-12 validator + dialect policy (#1482) #1570 schemaval core is complete and pushed; resuming worker re-polled CI for 5 minutes — the test-job rerun (run 40627224607, attempt 2) and the conformance "compare with the records" job (run 40627224548) are still queued/pending (runner backlog), all other checks pass including the full conformance matrix, nix build, and treefmt. Parked 20 minutes per the CI rule.
    • Expectation: on resume — if both jobs are green, merge PR feat(mcpx): schemaval core — JSON Schema 2020-12 validator + dialect policy (#1482) #1570, close this issue via the PR, complete task 1614, and clean the lifecycle labels; if the single mcpclient test fails again, investigate that specific test (the diff does not touch mcpclient and that package passed on the laptop at the same HEAD).
    • Links: PR feat(mcpx): schemaval core — JSON Schema 2020-12 validator + dialect policy (#1482) #1570 @ d38cfb4
  11. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Oct 28, 2026
  12. dezren39 commented on Oct 28, 2026

    @dezren39
    dezren39
    on Oct 28, 2026
    MemberAuthor
    More actions

    Picked up again — queue task 1614 (Lane A, 2026-10-27)

    • Resuming PR feat(mcpx): schemaval core — JSON Schema 2020-12 validator + dialect policy (#1482) #1570 (queue/1614-1482-schemaval-core): ALL checks pass (nix build, test, treefmt, flake, all conformance client/server suites, spec parity), merge state CLEAN, no hold labels.
    • Merging under the standing merge directive; this also unblocks Phase 2 (mcpx: Phase 2 of #1481 — validate tool arguments at CallTool (enforce, -32602) + structuredContent against outputSchema (warn-only) #1483, task 1616 parked on this gate).
  13. dezren39
    added a commit that references this issue on Oct 28, 2026

    feat(mcpx): schemaval core — JSON Schema 2020-12 validator + dialect …

    1da6d84
  14. dezren39
    closed this as completedin #1570on Oct 28, 2026
  15. developing-today
    added
    status:done
    on Oct 28, 2026
  16. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workkind/featureNew feature or capability requestmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/design-architectFiled by the repo design architect jobstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.