The fixture begins with a specific change request instead of a generic chat prompt.
CodePilot
Give it a task. Get back a verified patch.
I built CodePilot around one rule: the model can propose code, but it cannot declare its own work correct. The runtime owns the repository boundary, mutation policy, validation commands, repair budget, and final verification state.
Inspect repositoryrepo.listFiles · repo.readFile
READ ONLYEdit export pathworkspace.writeFile
2 FILESValidation failedtests · CSV escaping
EXIT 1Repair patchbounded repair loop
1 / 3Validation passedtests + typecheck
EXIT 0Verifiedrevision + config rebound
HASH MATCH62c7e3d19a0b…9af1✓ VERIFIEDMost coding-agent demos end at “done.”
I cared about what makes “done” trustworthy.
The interesting work in CodePilot is not the chat interface. It is the boundary between untrusted model intent and trusted runtime code: path confinement, optimistic concurrency, validation authority, repair limits, sandbox trust, and evidence persistence.
DETERMINISTIC PUBLIC FIXTURE · REAL RUNTIME VOCABULARY
The demo is designed to show the failure path, not hide it.
The demo deliberately surfaces a real CSV escaping failure before any repair can happen.
The agent gets a limited repair attempt, then validation runs again outside model authority.
Completion only appears after the workspace revision and validation configuration still match.
TASK → MODEL → POLICY → WORKSPACE → VALIDATION → EVIDENCE
The model proposes.
Runtime code owns authority.
Validation stays outside model control.
The model can request tests, typecheck, lint, or build, but cannot choose the actual command. Success criteria stay in trusted workspace configuration.
Writes are bounded before touching disk.
Sensitive paths are denied, stale writes fail hash checks, and patch impact is measured before mutation.
Failures do not unlock unlimited retries.
Repair attempts are explicit, capped, and separate from provider-level transient retries.
Completion is bound to the exact code validated.
Workspace revision and validation configuration are rechecked before verification evidence and COMPLETED are persisted.
core.autocrlfHost Git settings were changing bytes.
Git apply now pins deterministic line-ending behavior so the same patch means the same thing across environments.
git diff <baseline>Brand-new files were invisible in review.
New files are staged without committing so the final diff is complete and still fully reviewable.
ENGINEERED BY MALEK EL BADAWI EL NAJJAR