mix acp.schema.verify (Raxol Agent Client Protocol v0.1.0)

Copy Markdown View Source

Recomputes the SHA256 of the vendored ACP (Agent Client Protocol) schema oracle files under priv/schema-oracle/v1/ and compares them against the hashes recorded at pin time (see priv/schema-oracle/PINNED.md).

mix acp.schema.verify

These files are a dev/test-only oracle (Apache-2.0, upstream https://github.com/agentclientprotocol/agent-client-protocol, tag schema-v1.19.0). They are excluded from the published Hex package via mix.exs :files and exist purely so tests can validate our hand-written/generated ACP types against the protocol's own JSON Schema.

The task therefore runs only in packages/raxol_agent_client_protocol of a checkout of https://github.com/DROOdotFOO/raxol-agent. Anywhere else (this package installed from Hex) it refuses with a message saying so.

Exits with a non-zero status (via Mix.raise/1) if either file is missing or its hash no longer matches the pinned value -- which means either the file was edited locally (don't -- re-run the pin procedure in priv/schema-oracle/PINNED.md instead) or corrupted.