Skip to content

AgentProbe/oasf-agent-validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oasf-agent-validator

OASF (Open Agentic Schema Framework) agent record validator for AgentProbe.

Purpose

Validates OASF agent records — the unified description layer that sits above MCP and A2A protocols. Part of the AgentProbe multi-protocol validation pipeline.

What It Validates

  1. Fetch — Retrieve an OASF record from a URL or Agent Directory
  2. Schema Validate — Check record against OASF JSON Schema
  3. Module Detect — Identify modules: MCP, A2A, Agent Spec, Evaluation
  4. Cross-Reference — Probe MCP/A2A endpoints if modules are present
  5. Skill/Domain Verify — Check taxonomy IDs against OASF schema
  6. Snapshot Build — Build structured assessment snapshot

Validation Codes

Every finding is a structured object { code, severity, location, message } conforming to the AgentProbe finding-object spec (01-finding-object.md). severity is one of error, warning, info (lowercase canonical casing); location is the dotted sub-path within the record, or null when none applies. Severities are catalogued normatively in the fleet spec page 08-oasf-codes.md.

Code Severity Meaning
OASF-001 error document is required
OASF-002 error document must be an object
OASF-003 error either document or endpoint is required
OASF-004 error endpoint must be a non-empty, valid URL string
OASF-005 error timeout must be a number >= 1000
OASF-006 error compare(): before is not a snapshot object
OASF-007 error compare(): after is not a snapshot object
OASF-050 error connector: HTTP fetch error (non-2xx response)
OASF-051 error connector: fetch / parse / timeout error
OASF-110..112 error name: missing / wrong type / empty
OASF-113..115 error description: missing / wrong type / empty
OASF-116..118 error version: missing / wrong type / not semantic versioning
OASF-119..121 error schema_version: missing / wrong type / bad format
OASF-130..131 error authors: not an array / element not a string
OASF-132..133 error created_at: wrong type / invalid RFC 3339 timestamp
OASF-140..143 error domains: not an array / entry / name / id
OASF-150..153 error skills: not an array / entry / name / id
OASF-154 warning skills: taxonomy exceeds the OASF target depth (4 levels)
OASF-160..162 error modules: not an array / entry / missing name-or-type
OASF-170..174 error locators: not an array / entry / type / url(s)
OASF-175 warning locators: non-standard locator type
OASF-180 warning schema_version: unrecognized OASF line (0.7.x / 0.8.x / 1.0.x)
OASF-181 warning record declares no skills or domains

Related

License

MIT

About

OASF (Open Agentic Schema Framework) agent validator — JSON-Schema validation in JS

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors