fix(validate-a2ml): recognise clade- and anchor-shape A2ML doc types#13
Closed
hyperpolymath wants to merge 1 commit into
Closed
fix(validate-a2ml): recognise clade- and anchor-shape A2ML doc types#13hyperpolymath wants to merge 1 commit into
hyperpolymath wants to merge 1 commit into
Conversation
The identity check only matched TOML `agent-id|name|project = ...`, so two legitimate, differently-shaped A2ML doc types produced false-positive "Missing required identity field" errors: - Clade files (CLADE.a2ml): gv-clade-index registry declarations whose identity is the registry uuid + `canonical-name` under `[identity]` plus a `[clade]` assignment. - Anchor files (ANCHOR.a2ml): YAML-flavoured, identity is the reverse-DNS `id:` value using `key: value` (never TOML `key = value`); forcing a `name =` line in would corrupt the YAML. Both are now detected structurally and exempted, mirroring the existing 6a2-manifest and contractile-shape carve-outs (hypatia#243: a validator that scans content patterns must distinguish a target file from a legitimately differently-shaped one). The change is strictly a relaxation — it can only clear false positives, never introduce errors. Refs hyperpolymath/neurophone#41 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Owner
Author
|
Superseded by #12 (59145c7), which generalises the carve-out to the entire |
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.
Problem
The identity check in
validate-a2ml.shonly matched TOML^(agent-id|name|project) =. Two legitimate, differently-shaped A2ML doc types therefore produced false-positive "Missing required identity field" errors:CLADE.a2mlcanonical-nameunder[identity]+[clade]blockANCHOR.a2mlid: "org.hyperpolymath.<repo>"(key: value, neverkey = value)Forcing a TOML
name =line into either would corrupt registry-/YAML-governed files.Fix
Detect both structurally and exempt them, mirroring the existing 6a2-manifest and contractile-shape carve-outs (hypatia#243 precedent: a validator that scans content patterns must distinguish a target file from a legitimately differently-shaped one).
is_clade_shape:[clade]section orcanonical-name =is_anchor_shape:⚓ ANCHORmarker or reverse-DNS top-levelid:The change is strictly a relaxation — it can only clear false positives, never introduce errors. Verified against
hyperpolymath/neurophone(15→0 identity errors with this + repo-side fixes) and against this repo's own corpus (12→10; the −2 are the clade/anchor files, 0 new errors).Refs hyperpolymath/neurophone#41
🤖 Generated with Claude Code