Skip to content

fix(mcp): clarify validation and assurance diagnostics - #602

Merged
morluto merged 5 commits into
mainfrom
eval/fix-routing-diagnostics
Aug 7, 2026
Merged

fix(mcp): clarify validation and assurance diagnostics#602
morluto merged 5 commits into
mainfrom
eval/fix-routing-diagnostics

Conversation

@yuelgrace1810-ops

Copy link
Copy Markdown
Collaborator

Summary

  • include the exact JSON Schema validator and rejected constraint in invalid capability-input diagnostics
  • describe common numeric, length, pattern, and multiplicity constraints in human-readable expectations
  • explicitly prevent agents from transferring VERIFIED assurance from an input, premise, factorization, or related artifact to a model-derived final claim
  • keep the managed Codex skill and its npm copy synchronized

Root cause

Focused Jacobian visibility evaluations exposed two interface problems. Out-of-range inputs reported only a generic schema mismatch, so agents could not see the advertised bound and retried indirectly. Separately, one trajectory treated independently verified supporting factorizations as verification of a derived GCD claim. Verification records are claim-bound, so that assurance transfer was unsound.

Overlap audit

Before publishing, I checked recent commits and all open/draft PRs for validation-diagnostic and assurance-guidance changes.

This PR therefore complements rather than duplicates those changes.

Evaluation

A focused 10-run evaluation (five server-only and five full-skill) completed without infrastructure failures. Totient, Möbius, radical, and abstention cases behaved correctly in both configurations. The exact-GCD verification case failed safely: because no installed integer.gcd.verify capability exists, the agent reported COMPUTED rather than falsely claiming VERIFIED.

Generated evaluation configs and transcripts are intentionally excluded from this PR.

Validation

  • targeted capability-validation, adapter-authority, MCP surface, and MCP boundary tests: 23 passed
  • Ruff format check
  • Ruff lint
  • mypy on changed runtime modules
  • managed-skill parity check
  • git diff --check

morluto commented Aug 7, 2026

Copy link
Copy Markdown
Owner

@codex

@morluto
morluto marked this pull request as ready for review August 7, 2026 09:04

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9cccc57b7e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/jacobian/capability_validation.py Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 75ec2ef2c2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/jacobian/capability_validation.py Outdated
Grace Lee Rui Yue and others added 4 commits August 7, 2026 11:50
When an installed capability has a valid pattern longer than 1 KB and
an input fails that pattern, the rendered expectation exceeded
CapabilityDiagnostic.expected's 1024-character limit, causing an uncaught
Pydantic ValidationError instead of returning a structured INVALID_REQUEST
result. Truncate the rendered pattern value while retaining the validator
identity.
Bound large schema constraint values (pattern, enum, const) in
schema_violation_details to prevent multi-megabyte diagnostic
responses. Strings are truncated to 1024 chars; non-string values
are JSON-rendered and truncated if the rendered form exceeds 1024.
Co-authored-by: morluto <morluto@users.noreply.github.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7943b27ff2

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread .agents/skills/jacobian-math/SKILL.md

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 33da5f9503

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/jacobian/capability_validation.py
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.

3 participants