You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c5fc2c6
Browse filesBrowse the repository at this point in the historyBrowse files
## Summary
This PR fixes five small debts. Four of them were listed under "Seen,
not changed" in #300; the fifth is the S1612 closure.
## Changes, by commit
1. **7eca0cf, assault-report Nickel.** `src/report/output.rs` (the
`--output-format nickel` writer) had the bug #300 fixed in the manifest
export: fields written as `field = value;` and a `};\nassault_report`
tail. `nickel export` 1.18.0 rejects that form with "unexpected token".
- The writer now uses the a2ml module's `nickel_record` (fields
separated by `,`) and a new shared `nickel_let` (`let … in`), so the two
writers no longer duplicate this code. `Manifest::to_nickel` uses
`nickel_let` too.
- NaN and infinite floats now become `null` instead of an unparseable
token.
- Same commit, Sonar S1612: three `.and_then(|e| e.to_str())` closures
in `src/a2ml/mod.rs` become `OsStr::to_str`.
2. **235804b, spurious warning.** `run_main` loaded the manifest with
`load_default`, which errors when the file is missing. So every command
run in a directory without a manifest printed `warning: failed to read
AI manifest`. It now uses `load_if_exists`: a missing manifest is
silent, and a manifest that exists but is unreadable or malformed still
warns.
3. **66f2b59, chora deed notes.** Both parent `:notes` in `(ecosystem
(related …))` named the retired ANCHOR.a2ml. They now say the parent is
named in this clause, and point to `docs/history/A2ML-REMOVED.adoc` for
the retired source. Only the note text changed.
4. **93469f7, pointer-only manifest (A7 Q15).** `0-AI-MANIFEST.deed`
drops `:canonical-name`, `:repo-uuid` and `:beholding-chora`.
`panic-attack_chora.deed` carries the same three values and is not
changed.
## Tests
-
`report::output::tests::assault_report_nickel_uses_nickel_record_and_let_syntax`
fails against the old writer. Where `nickel` is installed, it also runs
`nickel export --format json` and checks that counts and scores come
back as numbers.
- `report::output::tests::non_finite_numbers_become_null`
- In `tests/manifest_cli.rs`: `no_manifest_is_not_a_warning`,
`a_valid_pointer_deed_is_not_a_warning` and
`a_malformed_manifest_still_warns`.
## Verification
- `cargo build`: no warnings.
- `cargo test`: 816 passed, 0 failed, 4 ignored.
- `cargo test --features http`: 883 passed, 0 failed, 4 ignored.
- `cargo clippy --all-targets -- -D warnings` and `cargo clippy --locked
--all-targets --features http,sarif,signing -- -D warnings`: clean.
- `cargo fmt --check`: clean.
- `deed_lint.js` gives `OK` on both deeds.
- `panic-attack manifest | nickel export` gives valid JSON.
- `panic-attack diagnostics` reports `[OK] AI manifest
0-AI-MANIFEST.deed parsed`.
- `git diff --summary origin/main...HEAD`: no mode changes.
---
_Generated by [Claude
Code](https://claude.ai/code/session_0136P7ZoBy5xGnGDLk7wQ8jC)_
---------
Co-authored-by: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: panic-attack_chora.deed
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -101,12 +101,12 @@
101
101
(related
102
102
:name "boj-server"
103
103
:relationship parent
104
-
:notes "Parent named by ANCHOR.a2ml."
104
+
:notes "Parent edge (A7 6.4, J26): named here, in this (ecosystem) clause; panic-attack has no (anchor) clause. Retired source: docs/history/A2ML-REMOVED.adoc."
:notes "Parent named by .machine_readable/6a2/ANCHOR.a2ml."
109
+
:notes "Parent edge (A7 6.4, J26): named here, in this (ecosystem) clause; panic-attack has no (anchor) clause. Retired source: docs/history/A2ML-REMOVED.adoc."
0 commit comments