Skip to content

feat: yodel report --audit in chant's audit format - #393

Merged
lex00 merged 1 commit into
mainfrom
feat/385-chant-audit
Nov 21, 2026
Merged

lex00 merged 1 commit into
mainfrom
feat/385-chant-audit

Conversation

@lex00

@lex00 lex00 commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

yodel report --audit appends chant.audit/v1 lines, and yodel report --json prints them in audit[] and auditFile.missing. chant's readAuditLine (@intentius/chant/report-store) does the mapping, and a line's kind is chant's word: approved, override-recorded, applied, refused or recorded. Yodel's own word stays in product_kind when it differs, for example silenced, failed, repaired or wave-run. Each line names product: "sql-yodeler" and its environment, and keeps the id the earlier entry had. The report keeps every other field as it was.

An audit.jsonl written earlier is still read, and one file may hold both forms. yodel appends no entry the file already holds in either form and rewrites no existing line, and schemas/report.schema.json accepts either form in audit[].

The tests in test/report.test.ts run on the audit fixtures, where every line passes chant's published audit schema and readAuditLine. chant's toProductAuditLine returns each earlier entry unchanged, for every kind yodel derives. A file of earlier entries and a mixed file compare and append correctly.

The pin moves to chant@0.124.110, the release carrying chant#5336. The forge lexicons move to 0.124.102 with it. The same commit regenerates .github/workflows/publish.yml with chant release workflow, because the new chant words the label input description differently. #391 made the identical change on main, so a rebase after it drops the commit.

The gate npm ci && npm run build && npm run check passes on the pinned chant. The pull request stays a draft until a behold release that carries behold#1228 is out, and merges after it.

Closes #385

@lex00

lex00 commented Nov 20, 2026

Copy link
Copy Markdown
Contributor Author

This pull request merges after a behold release carrying INTENTIUS/behold#1228 (draft INTENTIUS/behold#1239), so behold reads chant's audit format before yodel stops writing its own. The writer switches with no flag, as the issue asks; behold reads both forms, mixed in one file.

@lex00
lex00 force-pushed the feat/385-chant-audit branch from 7b484a1 to 4376d49 Compare November 21, 2026 06:40
@lex00
lex00 marked this pull request as ready for review November 21, 2026 06:40
@lex00
lex00 added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit 5843d3c Nov 21, 2026
8 checks passed
@lex00
lex00 deleted the feat/385-chant-audit branch November 21, 2026 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

yodel report --audit in chant's audit format

1 participant