Pre-commit hook for validating A2ML manifest files.
A2ML (Agnostic Agent Markup Language) is a manifest format for machine-readable
metadata, AI agent instructions, and project state. This hook validates .a2ml
files on commit for structural correctness and required fields.
-
SPDX header —
SPDX-License-Identifierin the first 10 lines -
Identity fields — Requires
agent-id,name, orproject(relaxed for AI-MANIFEST files) -
Version field —
versionorschema_versionpresence -
Attestation blocks — Validates
proof/signature/hashfields if[attestation]section exists
Add to your .pre-commit-config.yaml:
repos:
- repo: https://github.com/hyperpolymath/a2ml-pre-commit
rev: v1.0.0
hooks:
- id: validate-a2mlThen install:
pre-commit installYou can also run the hook script directly:
./hooks/validate-a2ml.sh path/to/file.a2ml [more-files.a2ml ...]Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
SPDX-License-Identifier: PMPL-1.0-or-later
See LICENSE for details.