letitloop-action is a zero-runtime-dependency TypeScript GitHub Action that runs two deterministic verification checks in CI:
LILWAL02Write-Ahead Log Frame Verification: Scans a configuredwal-dirfor*.jsonlWAL journals and verifiesLILWAL02:<length_hex>:<crc32_hex>:<json>frame lengths, CRC32 checksums, and JSON validity.- Python AST & Path Containment Check (
scripts/verify_ast.py): Parses all.pyfiles in the workspace withast.parse()to catch syntax errors and checks that resolved paths stay within the workspace root.
Add .github/workflows/letitloop-verify.yml to your repository:
name: Verify WAL & Python AST
on:
pull_request:
branches: [ main ]
permissions:
contents: read
pull-requests: write
jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- uses: sdageltc/letitloop-action@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
mode: 'gate'
wal-dir: '.bench_wal'
workspace: '.'
fail-closed: 'true'
comment: 'true'| Input | Required | Default | Description |
|---|---|---|---|
token |
No | ${{ github.token }} |
GitHub token for PR comments (pull-requests: write). |
mode |
No | 'gate' |
'gate' (fail-closed) or 'report' (comment only, never fail). |
wal-dir |
No | '.bench_wal' |
Directory scanned for *.jsonl WAL frame files. |
workspace |
No | '.' |
Workspace root scanned for Python AST syntax checks. |
proof-key |
No | '' |
Optional HMAC-SHA256 key for deterministic receipt ID generation. |
fail-closed |
No | 'true' |
Fail the workflow step when WAL or AST checks report errors. |
comment |
No | 'true' |
Post or update the verification summary comment on Pull Requests. |
| Output | Description |
|---|---|
verified |
'true' if all enabled gates passed, otherwise 'false'. |
proof-id |
Deterministic SHA-256 or HMAC-SHA256 digest of the verification run. |
ast-verdict |
AST syntax verification verdict (PASS / FAIL + file counts). |
wal-verdict |
WAL frame checksum verification verdict (PASS / FAIL + frame counts). |
MIT License. Copyright (c) 2026 sdageltc.