Commit 3949370
fix(ci): make assail-classifications.a2ml conformant TOML-A2ML (#52)
## What
Follow-up to #51. The Dogfood Gate's **Validate A2ML manifests** job
failed on `audits/assail-classifications.a2ml` (added in #51) with:
```
##[error]Missing required identity field (agent-id, name, or project)
```
#51 was merged with that check red; this PR fixes it at source.
## Why
`a2ml-validate-action` scans **every** `*.a2ml` and expects TOML-A2ML
with a self-identifying header (`name`/`project`/`schema_version`), the
standard `ANCHOR.a2ml` documents for this repo. The panic-attack
user-classification registry was authored in panic-attack's native
**S-expression** dialect, which has no such header — so the validator
rejected it.
## How
Rather than gaming the lenient (`strict:false`) check, the file is made
**genuinely** TOML-A2ML conformant:
- Real `[metadata]` header: `name` / `project` / `schema_version`
(mirrors every other `.a2ml` in the repo).
- The S-expression payload is carried in a TOML **literal multiline
string** (`'''…'''`, no escape processing) under `[payload]`.
The result parses as valid TOML **and** is still consumed by
panic-attack, whose loader (`load_user_classifications`,
`src/assail/mod.rs`) reads the **raw file text** scanning for
`(classification …)` forms — it does not TOML-parse, and ignores
everything outside a form.
## Verification (local, ground-truthed)
- **TOML-A2ML validity** — Julia `TOML` stdlib parses the file;
`metadata.{name,project,schema_version}` present; `payload.sexpr` holds
exactly 3 classification forms.
- **Suppression preserved** — `panic-attack assail`: 18 weak_points, 5
suppressed (the 3 audited FFI/unsafe residuals `crypto/src/lib.rs`
UnsafeCode + `signing.jl`/`zig_ffi.jl` UnsafeFFI, plus 2 structural
ProofDrift), **0** unsuppressed critical — identical suppression to
before the reformat.
No code changes; docs/config only.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---
_Generated by [Claude
Code](https://claude.ai/code/session_01UPFC9YQ7g9gc3VnRox42Q1)_
Co-authored-by: Claude <noreply@anthropic.com>1 parent 0140014 commit 3949370
1 file changed
Lines changed: 23 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
4 | 13 | | |
5 | 14 | | |
6 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
7 | 28 | | |
8 | 29 | | |
9 | 30 | | |
| |||
20 | 41 | | |
21 | 42 | | |
22 | 43 | | |
| 44 | + | |
0 commit comments