-
-
Notifications
You must be signed in to change notification settings - Fork 0
GitHub Rules
LoFi edited this page Jan 26, 2026
·
1 revision
The Gate must be unbreakable.
To fully enforce "Physics over Law," you must configure your GitHub Repository to reject any code that does not pass LoFi Gate.
Go to Settings > Rules > Rulesets (or Branches in older repos) and create a rule for main:
- Require status checks to pass before merging
- Search for your CI job (e.g.,
verify,test, orci/circleci). -
Why: This ensures
lofi-gate verifyactually ran and returnedExit Code 0.
- Search for your CI job (e.g.,
- Require branches to be up to date before merging
- Why: Prevents logical conflicts that might break the build after merge.
- Do not allow bypassing the above settings
- Why: Even Admins should not break the build.
Ensure your CI workflow (GitHub Actions) runs the gate and fails on error.
Example (.github/workflows/verify.yml):
name: Verify
on: [push, pull_request]
jobs:
lofi-gate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install
run: pip install lofi-gate
- name: Verify
run: lofi-gate verifyWhen an Agent (or Human) opens a PR:
- GitHub Actions runs
lofi-gate verify. - If it fails (Red), the Merge button is disabled.
- The Agent must fix the code to turn it Green.
There is no negotiation. Only passing tests.