Skip to content

Commit 8eb487b

Browse files
Merge branch 'main' into dependabot/github_actions/actions-bfe1b08dbd
2 parents 6739c68 + 29f7b55 commit 8eb487b

51 files changed

Lines changed: 2505 additions & 2227 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.claude/CLAUDE.md‎

Lines changed: 73 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ src/
6767
│ ├── reachability.rs # Import scanning for phantom dependency detection
6868
│ ├── classify.rs # Three-way classification: Mitigable/Unmitigable/Informational
6969
│ └── registry.rs # Mitigation lifecycle registry (JSON persistence)
70-
├── a2ml/ # AI manifest protocol (TOML-like format support, 0-AI-MANIFEST.a2ml priority lookup)
70+
├── a2ml/ # AI manifest reader (0-AI-MANIFEST.deed first; legacy .a2ml read-only fallback) + Nickel export + report-bundle codec
71+
├── deed.rs # Minimal DEED reader (standards deed.abnf v2.0.0); used by the classification registry, the AI manifest and diagnostics
7172
├── panll/ # PanLL event-chain export
7273
├── storage/ # Filesystem + VerisimDB persistence
7374
├── i18n/ # Multi-language support (ISO 639-1, 10 languages)
@@ -193,24 +194,55 @@ All five detection categories shipped in v2.5.0 (2026-04-12):
193194
- **InputBoundary (PA024)**: Unchecked CBOR/MessagePack (Rust), JSON.parse without try-catch (JS/Julia)
194195
- **MutationGap (PA025)**: No cargo-mutants config (Rust), all-type-only assertions (Julia), no property testing (Elixir)
195196

196-
## User-Classification Registry (2026-04-18)
197+
## User-Classification Registry (2026-04-18; deed-first 2026-11-14)
197198

198199
Optional project-local classification file that flips audited findings
199-
to `suppressed = true` after the kanren structural-suppression pass:
200-
201-
- Path: `<project>/audits/assail-classifications.a2ml` (preferred) or
202-
`<project>/.panic-attack-classifications.a2ml` (fallback).
203-
- Format (A2ML S-expression):
200+
to `suppressed = true` after the kanren structural-suppression pass.
201+
Code: `src/assail/classifications.rs` (registry) and `src/deed.rs`
202+
(a minimal reader of the standards deed grammar, `deed.abnf` v2.0.0).
203+
204+
- Read order, new input first:
205+
1. `<project>/audits/assail-classifications_praxis.deed` — a DEED
206+
`praxis-deed`. When it exists it *is* the registry; the A2ML files
207+
below are not read at all.
208+
2. `<project>/audits/assail-classifications.a2ml` (legacy fallback).
209+
3. `<project>/.panic-attack-classifications.a2ml` (legacy fallback).
210+
- The deed name ends `_praxis.deed` because the deed grammar dispatches the
211+
head on the file name: a bare `assail-classifications.deed` matches no
212+
dispatch pattern and is not a conforming deed.
213+
- Deed form (`bun <standards>/1-formats/deed/tools/deed_lint.js FILE` passes):
204214
```
205-
(assail-classifications
215+
;; SPDX-License-Identifier: MPL-2.0
216+
(praxis-deed
217+
:schema-version "1.0.0"
218+
:canonical-name "<repo>-assail-classifications"
219+
:beholding-chora #uuid"0889b37b-defb-831f-973c-e119500db00e" ; estate chora
220+
:profile assail-classifications
206221
(classification
207-
(file "crates/foo/src/bar.rs")
208-
(category "UnsafeCode")
209-
(audit "audits/audit-ffi-unsafe.md §1")
210-
(rationale "one-line summary")))
222+
:file "crates/foo/src/bar.rs"
223+
:category UnsafeCode ; a symbol: a WeakPointCategory variant
224+
:audit "audits/audit-ffi-unsafe.md §1"
225+
:rationale "one-line summary"))
211226
```
212-
- Public API: `UserClassification`, `load_user_classifications(root)`,
213-
`apply_user_classifications(&mut report, root)` in `src/assail/mod.rs`.
227+
Top level: `:schema-version`, `:canonical-name`, `:beholding-chora` and
228+
`:profile assail-classifications` exactly once each, then any number of
229+
`(classification …)` clauses. Per clause: `:file` and `:category` exactly
230+
once, `:audit` and `:rationale` at most once, nothing else.
231+
- **A malformed deed is an error, never a silent pass.** Any grammar or
232+
profile violation (unknown field, string category, unknown category,
233+
missing `:file`, wrong head, trailing content …) makes
234+
`load_user_classifications` / `apply_user_classifications` return `Err`,
235+
and `analyze()` / `analyze_verbose()` fail with the file and line. A
236+
malformed deed never falls back to the A2ML files.
237+
- The legacy A2ML reader is unchanged and lenient: an entry without a quoted
238+
`file` and `category` is skipped. It stays only until the repositories
239+
that still carry an A2ML registry have moved to the deed. Never create a
240+
new `.a2ml` registry; write the deed.
241+
- Public API: `UserClassification`, `load_user_classifications(root) ->
242+
Result<Vec<_>>`, `apply_user_classifications(&mut report, root) ->
243+
Result<()>`, `parse_classification_deed(text, path)`,
244+
`USER_CLASSIFICATIONS_DEED_PATH` in `src/assail/` (re-exported from
245+
`assail`).
214246
- Called automatically by `analyze()` / `analyze_verbose()` after
215247
`apply_suppression`.
216248

@@ -221,13 +253,13 @@ suppressions non-gameable by single-side edits while still letting
221253
repositories record honest audits of legitimate-FFI and other
222254
genuinely-sound residuals.
223255

224-
**Reference implementation**: `hyperpolymath/007`
225-
`audits/assail-classifications.a2ml` (cross-references
226-
`audits/audit-ffi-unsafe.md §1` for `zig_bridge.rs` UnsafeCode).
256+
**Worked example**: `hyperpolymath/hypatia`
257+
`audits/assail-classifications_praxis.deed` (translated entry for entry
258+
from its former A2ML registry).
227259

228260
## Integration Points
229261

230-
- **panicbot**: gitbot-fleet verifier bot — invokes `panic-attack assail --output-format json`, translates WeakPoints to Findings (PA001-PA025). Directives at `.machine_readable/bot_directives/panicbot.scm`
262+
- **panicbot**: gitbot-fleet verifier bot — invokes `panic-attack assail --output-format json`, translates WeakPoints to Findings (PA001-PA025). Directives, when a repo has any, are the `(bot-directives (bot :name panicbot …))` clause of its `<repo>_chora.deed` (standards `agentic-neurosym-playbook-to-repo-deed.adoc` §6); with none, panicbot runs the full suite
231263
- **verisimdb**: Store scan results as hexads (document + semantic modalities). File I/O works, API planned
232264
- **hypatia**: Neurosymbolic rule engine processes findings. Env var watcher in diagnostics
233265
- **panll**: Event-chain export for three-panel visualisation. Working via `panll` subcommand. Two dedicated panels: panic-attack (single-repo) and Mass Panic (assemblyline batch GUI)
@@ -253,3 +285,26 @@ Run with `just readiness` or `just readiness-summary`.
253285
- Use anyhow::Result for error handling
254286
- Serde derive on public types for JSON serialization
255287
- Zero compiler warnings policy (release + test builds)
288+
289+
## Machine-Readable Metadata (deed forms; A2ML retired 2026-11-14)
290+
291+
A2ML is retired. Never create, restore or extend a `.a2ml` file here, and do
292+
not recommend one to a scanned repository. The repo's metadata is in deeds
293+
(grammar: standards `1-formats/deed/spec/abnf/deed.abnf`; check with
294+
`bun <standards>/1-formats/deed/tools/deed_lint.js FILE`):
295+
296+
- `panic-attack_chora.deed` — identity, clade, forges, lineage, maturity, and
297+
the `(meta)`, `(ecosystem)`, `(agentic)`, `(neurosym)` and `(playbook)`
298+
clauses translated from the retired descriptiles.
299+
- `.machine_readable/descriptiles/STATE.deed` — lifecycle `(status)`
300+
(`deed_lint.js --state`).
301+
- `0-AI-MANIFEST.deed` — pointer-only front door (A7 Q15).
302+
- `audits/assail-classifications_praxis.deed` — the classification registry
303+
form (see above); this repo carries none.
304+
305+
`docs/history/A2ML-REMOVED.adoc` records every removed `.a2ml` file and where
306+
its content went. One remains, with its reason there:
307+
`.machine_readable/contractiles/adjust/Adjustfile.a2ml`, which `just
308+
adjust-check` still reads until its edict form exists. Readers in `src/` keep
309+
an A2ML fallback only where other repositories still carry the legacy file
310+
(the classification registry and the AI manifest); they never write one.

‎.github/CONTRIBUTING.md‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ Example:
210210
│ ├── abduct/ # Isolation + time-skew
211211
│ ├── adjudicate/ # Campaign verdict aggregation
212212
│ ├── axial/ # Reaction observation
213-
│ ├── a2ml/ # AI manifest protocol
213+
│ ├── a2ml/ # AI manifest reader (deed first) + report bundles
214214
│ ├── panll/ # PanLL event-chain export
215215
│ ├── storage/ # Filesystem + VerisimDB persistence
216216
│ ├── i18n/ # Multi-language support (ISO 639-1, 10 languages)
@@ -229,7 +229,10 @@ This project follows RSR (Reproducible Software Repositories) standards:
229229
1. **SCM files in .machine_readable/ only** - Never put STATE.scm,
230230
ECOSYSTEM.scm, or META.scm in the repository root
231231

232-
2. **AI manifest required** - AI.a2ml must be present and up-to-date
232+
2. **Repo deed and AI manifest required** - `panic-attack_chora.deed`
233+
and the pointer-only `0-AI-MANIFEST.deed` must be present and
234+
up-to-date. A2ML is retired: never add a `.a2ml` file
235+
(`docs/history/A2ML-REMOVED.adoc`)
233236

234237
3. **License consistency** - All files must use MPL-2.0 (SPDX header)
235238

‎.github/workflows/scan-and-report.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ jobs:
137137
esac
138138
139139
# Count only findings the scanner did NOT suppress. `suppressed` is
140-
# set by the user-classification registry (audits/*.a2ml) and by
140+
# set by the user-classification registry (audits/*_praxis.deed) and by
141141
# test-context detection, and is omitted rather than set false, so
142142
# test for `!= true`.
143143
OFFENDING=$(jq --argjson t "$THRESHOLD" '

‎.machine_readable/6a2/AGENTIC.a2ml‎

Lines changed: 0 additions & 188 deletions
This file was deleted.

‎.machine_readable/6a2/ANCHOR.a2ml‎

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)