Skip to content
This repository was archived by the owner on Nov 24, 2026. It is now read-only.
sdageltcPublic archive

About

Zero-runtime-dep GitHub Action for LILWAL02 frame checksum and Python AST syntax verification.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

letitloop-action 🛡️

GitHub Action for LILWAL02 Frame Integrity & Python AST Syntax Verification

CI Action License: MIT Zero Runtime Dep Engine


Overview

letitloop-action is a zero-runtime-dependency TypeScript GitHub Action that runs two deterministic verification checks in CI:

  1. LILWAL02 Write-Ahead Log Frame Verification: Scans a configured wal-dir for *.jsonl WAL journals and verifies LILWAL02:<length_hex>:<crc32_hex>:<json> frame lengths, CRC32 checksums, and JSON validity.
  2. Python AST & Path Containment Check (scripts/verify_ast.py): Parses all .py files in the workspace with ast.parse() to catch syntax errors and checks that resolved paths stay within the workspace root.

Quickstart

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'

Inputs & Outputs (action.yml)

Inputs

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.

Outputs

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).

License

MIT License. Copyright (c) 2026 sdageltc.

About

Zero-runtime-dep GitHub Action for LILWAL02 frame checksum and Python AST syntax verification.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages