License compliance credits

From event4u-app/agent-config · View interactive version

License compliance credits is an AI agent skill from the GitHub repository event4u-app/agent-config. Regenerate docs/THIRD-PARTY-NOTICES.md from provenance/borrows.jsonl after any ledger change — even a single new entry — never hand-edit the notices file

How to use this skill

Skill file

license-compliance-credits

When to use

borrow was ledgered via

CODE0,

or a correction line was appended).

reports the notices file is out of sync with the ledger.

credits file".

Do NOT use when:

CODE0;

this skill only regenerates the derived file from an already-updated

ledger.

the offending line via license-compliance-borrow-check's discipline

first; this skill cannot repair a bad ledger, only render it.

Procedure

  1. Inspect the current state — read provenance/borrows.jsonl (it may

be legitimately empty) and note how many lines it has before

regenerating, so the diff is checkable.

  1. Regenerate the notices file:

```bash

npx tsx node_modules/@event4u/agent-config/src/scripts/lint_provenance.ts --regenerate-notices

```

  1. Diff docs/THIRD-PARTY-NOTICES.md before vs. after — confirm only

that generated file changed, and that provenance/borrows.jsonl itself

was not touched (it is append-only; this command never writes to it).

  1. Verify sync + validity with a plain run (no flag):

```bash

npx tsx node_modules/@event4u/agent-config/src/scripts/lint_provenance.ts

```

Exit code 0 confirms every ledger record is schema-valid, no deny-class

or unknown license slipped through, no transformation note reads as

rename-only, and the notices file now matches the ledger byte-for-byte.

  1. If the linter fails, stop — do not hand-patch

docs/THIRD-PARTY-NOTICES.md to make it pass. Fix the actual offending

line in provenance/borrows.jsonl via

CODE0,

then re-run step 2.

Output format

  1. The regenerate command's exit status and a one-line summary of what

changed in the notices file (e.g. "added 1 entry: <source_url>

(<license>)", or "no borrows recorded" for the honest empty-ledger

state).

  1. The follow-up lint_provenance (no flag) exit code, confirming sync —

never report success on the regenerate step alone.

Gotcha

until the next lint_provenance run flags the drift as a linter failure,

not as an obvious diff. Always regenerate; never patch the file directly.

plain "no borrows recorded" line. Do not "fix" that by adding a

placeholder entry.

(no flag) still fails after regenerating, the defect is in

provenance/borrows.jsonl, not in the notices file.

Do NOT

regeneration and validation are two different checks; passing one does

not imply the other passed.

that belongs to license-compliance-borrow-check.

See also

a ledger entry mandatory before a conscious borrow lands.

where new ledger entries are drafted and fixed.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.