01 / THE FLOW
Detect. Explain. Fix with consent. Verify.
DETECTLint, typecheck, tests, build, custom checks.
EXPLAINFile, line, likely cause. Push not started.
PROPOSESmallest patch from a local model, shown as a diff.
VERIFYSnapshot, apply, re-run the whole pipeline.
PUSHOnly after the gate passes and you confirm.
truthlens-ai — pushguard SIMULATED · SAMPLE PROJECT
Answer prompts with the buttons or the y / n keys. Enter takes the default.
02 / THE RULES
The pipeline is the authority.
The model never decides.
- No automatic edits and no push without your yes.
- Every patch is shown as a diff first.
- A snapshot is taken before any change, so rollback is always possible.
- A repair limit (default 5) prevents endless loops.
- The model runs locally (Ollama) and never sees secrets or .env values.
Only code failures go to repair.
| CODE | lint, types, tests, build. Repairable. |
| GIT | remote, auth, oversized objects. |
| RESOURCE | LFS or CI quota. Warn only. |
| ENVIRONMENT | missing runtime or variable. |
| NETWORK | remote unreachable. |
| CONFIG / UNKNOWN | reported, never auto-fixed. |
03 / CONFIG
One file, any language.
version: 1
checks:
- name: lint
command: npm run lint
- name: test
command: npm test
ai:
enabled: true
provider: ollama
repair:
require_approval: true
max_attempts: 5
git:
confirm_before_push: true