Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 1.35 KB

File metadata and controls

59 lines (40 loc) · 1.35 KB

Sponsor

= a2ml-pre-commit :toc: preamble :icons: font

== Overview

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.

== Checks Performed

  1. SPDX headerSPDX-License-Identifier in the first 10 lines
  2. Identity fields — Requires agent-id, name, or project (relaxed for AI-MANIFEST files)
  3. Version fieldversion or schema_version presence
  4. Attestation blocks — Validates proof/signature/hash fields if [attestation] section exists

== Installation

Add to your .pre-commit-config.yaml:

[source,yaml]

repos:


Then install:

[source,bash]

pre-commit install

== Manual Usage

You can also run the hook script directly:

[source,bash]

./hooks/validate-a2ml.sh path/to/file.a2ml [more-files.a2ml ...]

== Author

Jonathan D.A. Jewell j.d.a.jewell@open.ac.uk

== License

SPDX-License-Identifier: MPL-2.0

See link:LICENSE[LICENSE] for details.