aisignoff¶
aisignoff records how each file, and each line, of a repository was made and checked: how much an AI generated, how thoroughly a human reviewed it, and how thoroughly an AI reviewed it. aisignoff lint checks those declarations in CI, the way a test suite checks code.
pipx install aisignoff
aisignoff init -g G0 -H H2 -a A0 --reviewed-by "Jane Doe"
aisignoff lint
What it is for¶
Research code, analysis scripts, papers and data are increasingly written with AI help. Readers, reviewers and co-authors need to know which parts were, and what was done to check them. aisignoff makes that a property of the repository, kept next to the code:
- Declare each file once in
SIGNOFF.toml, and let each pull request declare its own lines through its description. - Check in CI that nothing is undeclared, incomplete or below the repository's minimum levels.
- Show the result: README badges, a folder report like a coverage report, and the levels of just the lines a pull request changes (
aisignoff diff).
It works like REUSE does for licences. The name is meant both ways: the AI signs off, and so does the human ("ai", said in German, sounds like "I"). A declaration is a statement someone signs off on, not a cryptographic signature.
The levels in one table¶
Every file or line gets one level on each of three axes:
| Generation | Human review | AI review | |
|---|---|---|---|
| 0 | G0 Human | H0 Plausibility check | A0 No independent AI review |
| 1 | G1 AI-assisted | H1 Tested | A1 Context-free check (a new session) |
| 2 | G2 AI-generated | H2 Reviewed line by line | A2 Check by a different model |
| 3 | G3 AI-autonomous | H3 Independently validated | A3 Validated by a different model |
Reports add a fourth axis, Findings: what the last independent AI review (A1, A2 or A3) of a line left open, from F0 (nothing) to F3 (a critical finding), or F- where no such review has covered the line since it last changed. A finding is recorded, never a threshold.
The rules that go with them are on Levels and rules.
Files or lines¶
aisignoff works at two depths, and you can start with the first:
- File level.
SIGNOFF.tomlmaps paths to levels: a default for**, exceptions for folders and globs. This needs nothing butSIGNOFF.toml, and suits results, data, notebooks and papers. See Declaring files. - Line level. With
[history]inSIGNOFF.toml, each line takes the declaration of the commit that landed it on the default branch, which for a pull request is its description. A pull request that changes 35 lines of an 800-line file changes the levels of those 35 lines. The file-level declarations stay as the fallback. See Declaring lines.
Where to go next¶
- Quick start: from nothing to a checked repository.
- Declaring lines: the declaration model with
[history], worked out from the whole history, and the blame cache that keeps it fast. - CI and workflows: checks, pull request descriptions, merge methods, merge queues.
- Reports: summaries, the folder report,
diffand badges. - Reference: commands,
SIGNOFF.toml, compatibility, changelog.