fix(validate-a2ml): exempt canonical typed manifests + *file.a2ml from identity check#8
Merged
hyperpolymath merged 1 commit intoMay 14, 2026
Conversation
…m identity check The identity check (`agent-id`/`name`/`project`) is appropriate for manifests that genuinely declare a subject, but two families of A2ML files carry identity by convention rather than by in-file field: 1. **Canonical typed manifests under `.machine_readable/6a2/`** — `AGENTIC.a2ml`, `META.a2ml`, `NEUROSYM.a2ml`, `PLAYBOOK.a2ml`. These hold typed *aspects* of the enclosing project (agent permissions, metadata, neurosymbolic invariants, playbook recipes). Identity is the parent directory; the filename indicates the aspect. Sibling files `ECOSYSTEM.a2ml` and `STATE.a2ml` already declare `[project] name` or `[metadata] project` and continue to be validated normally. 2. **Dockerfile-style top-level typed manifests** — `Intentfile.a2ml`, `Trustfile.a2ml`, etc. These use markdown-flavoured A2ML (`@abstract:` blocks, `## headers`) rather than TOML-style fields, so the identity-field regex cannot match by construction. Identity is the parent repo, exactly as with a `Dockerfile` or `Makefile`. Adds both patterns to the existing `*AI-MANIFEST*` exemption. The check remains active for any other `*.a2ml` filename, so genuinely-missing- identity bugs are still surfaced. Without this, `Validate A2ML manifests` reports 40+ errors across every estate consumer that ships a complete 6a2 manifest set. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Parallels hyperpolymath/k9-validate-action#6 for the A2ML validator. Same shape: a check that's correct in spirit but doesn't recognise the canonical filename conventions in use across the estate.
Symptom
Validate A2ML manifestsis red on every consumer with a complete 6a2 manifest set:…on each of the typed manifests (
AGENTIC.a2ml,META.a2ml,NEUROSYM.a2ml,PLAYBOOK.a2ml), and on everyIntentfile.a2ml/Trustfile.a2ml.Why those files don't have an identity field
.machine_readable/6a2/carry an aspect of the parent project — agent constraints, metadata, neurosymbolic invariants, playbook recipes. Identity is the parent directory; the filename is the aspect tag. Sibling filesECOSYSTEM.a2mlandSTATE.a2mldo declarename/projectbecause they describe the project itself — those continue to be validated.*file.a2mlfiles (Intentfile,Trustfile, …) use markdown-flavoured A2ML —@abstract:blocks,## headers— so thename = …/project = …regex cannot match by construction. Identity is the parent repo, like withDockerfile.Fix
Extend the existing
*AI-MANIFEST*exemption with these two patterns. Every other*.a2mlfilename remains subject to the identity check, so genuinely-missing-identity files are still surfaced.Test plan
hyperpolymath/stapeln/container-stack/svalinn/.machine_readable/6a2/.foo.a2mlwith no identity.