scope
Where the agent may act
The contract names the paths and directories the agent is allowed to touch. Everything outside the declared scope is treated as out of bounds and is rejected at validation time.
The system, described in plain terms
A short, honest description of what Latchpoint actually is and what it actually does. This page stays focused on behavior that can be verified from the system itself and avoids absolute claims.
The control loop
None of the steps can be skipped, and none of them happen silently. A failure at any point sends the change back to the previous coherent state.
The approval contract
The approval contract is what makes validation a structured decision rather than a judgment call. It declares the agent's scope, permissions, operating limits, and pre-write conditions before the agent runs.
scope
The contract names the paths and directories the agent is allowed to touch. Everything outside the declared scope is treated as out of bounds and is rejected at validation time.
permissions
The contract declares the permitted operations — what the agent can read, what it can write, and what is off limits. Permissions are inspectable rather than implicit.
limits
Declared budgets, scope of effect, and run-time boundaries the agent is required to stay inside. The contract is the place these become checkable, not the prompt.
preconditions
Clean-tree gates, branch state, and other pre-write conditions that must hold before any change is applied. Failed preconditions block the change before any write takes place.
Operating modes
The control layer is mode-agnostic. The team chooses how the contract resolves proposals: fully autonomous, human-in-the-loop, or a hybrid of the two. The validation, write, rollback, and audit machinery is the same in all three.
autonomous
The approval contract decides every change against declared rules. No human review step. Suitable for routine changes inside well-defined boundaries where the cost of a human gate exceeds the cost of a contract miss.
human-in-the-loop
Every change pauses for a human reviewer. The most conservative mode. Useful for high-stakes systems and for the early phase of any new contract while the team builds confidence in the rules.
hybrid
The contract auto-approves routine changes and routes flagged ones to a human — risky paths, large diffs, schema or infrastructure files, security-sensitive areas. The default for most teams running the pattern in production.
Reference implementation default: human-in-the-loop. The autonomous and hybrid modes are properties of the contract pattern; the team chooses per change class.
The write step
atomic
Approved changes are applied using atomic file replacement so the codebase moves from one coherent state to the next without spending any time half-written.
verified
Every write is verified after it is applied. If the resulting state does not match what the contract expected, the change is treated as failed and rolled back.
recoverable
A failed step rolls the repository back to its prior coherent state. Rollback is part of the system, not an afterthought, and it is recorded in the audit trail.
Out of scope
Permissions
Permissions are declared in the approval contract and stay narrow by default. Scope, allowed paths, and allowed actions are inspectable rather than implicit. See Privacy for the current access posture.