Pre-edit guidance inside the agent
Agents query policy, preflight target blocks, and inspect refusal reasons over /mcp.
Source code stays outside model context.
Software engineering is entering the autonomous era. Datafew Locus is the admission layer that lets organizations scale coding agents into production—with cryptographic proof on every merge.
All policy gates passed; signed receipt bound to the exact diff.
A gate failed or approval is needed, with a concrete fix for the agent.
Nothing failed, but required test, coverage, or custom evidence is missing.
The shift
Engineering teams face a defining mandate: capture the velocity of autonomous coding agents while preserving the discipline of mission-critical systems. Datafew Locus separates code generation from code admission—turning policy, syntax, and test evidence into a permanent, independently verifiable record.
Architecture
Scope violations and syntax regressions are refused immediately, before CI spends time running tests.
Every receipt separates what Locus directly checked from what customer CI ran and reported.
Agent hooks give early feedback; required CI checks verify the receipt offline before merge.
Integration
A standalone plugin or MCP server runs inside the agent's own session. Datafew Locus coordinates three independent layers—in-session guidance, server-side deterministic judgement, and offline CI enforcement—so policy holds from first edit to final merge.
Agents query policy, preflight target blocks, and inspect refusal reasons over /mcp.
Source code stays outside model context.
Stop hooks invoke the public datafew CLI to submit changed files and local
reports, returning structured fix guidance immediately.
CI runs under its own principal, obtains an authoritative receipt, and verifies the Ed25519 signature
and git changeDigest offline before merge.
Supported agents & CI recipes
Guarantees
File bodies live only in request memory. Storage holds paths, block IDs, hashes, and counts.
Pure deterministic decision core. Identical inputs and policy always return the identical verdict.
Signed sequential numbering exposes any deleted record; verify independently with public keys.
REST, remote MCP, and a public thin CLI across model vendors and Git platforms.
Positioning
Agent harnesses drive execution. Datafew Locus is the independent governance layer that verifies policy and anchors every merge in cryptographic proof.
| Dimension | Agent Harnesses | AI Code Reviewers | CI & Linters | Datafew Locus |
|---|---|---|---|---|
| Primary role | Orchestrate tools & sandboxes | Comment on pull requests | Run builds & static rules | Enforce admission & sign receipts |
| Determinism | Model & prompt dependent | Probabilistic (LLM) | Deterministic scripts | Pure deterministic, 0 LLM calls |
| Granularity | Shell, tool & file permissions | Whole-diff text feedback | File & pattern alerts | Function & code-block policy |
| Audit proof | Local session transcripts | PR comment threads | Vendor-bound CI logs | Offline Ed25519 signed receipt |
| Code retention | Local or harness cloud | Sent to model providers | Retained in CI logs/cache | 0 bytes stored (memory only) |
Artifacts
{
"policyId": "payments-core",
"scope": {
"allow": ["src/**", "tests/**"],
"protect": ["src/billing/**", "src/auth/session.ts::rotateKey"]
},
"actors": {
"owners": ["prn_owner_01"],
"allowedPrincipals": ["prn_agent_04", "prn_ci_main"]
},
"approval": { "expiresHours": 24 },
"evidence": {
"tests": { "required": true },
"coverage": { "required": false },
"custom": [{ "name": "license-scan", "required": true }]
},
"reuse": { "enabled": true }
}
session.ts::rotateKey.
{
"decision": "refuse",
"changeDigest": "sha256:9f3c...81e4",
"reasons": [
{
"gate": "scope",
"code": "approval_required",
"path": "src/auth/session.ts",
"blockId": "src/auth/session.ts::rotateKey",
"message": "Protected block requires owner approval.",
"fix": "Revert this block or obtain owner approval for changeDigest sha256:9f3c...81e4."
}
]
}
fix guidance bound to changeDigest.
{
"format": "datafew.admission-receipt.v1",
"receiptId": "rcpt_01J...",
"seq": 418,
"decision": "admit",
"subject": {
"changeDigest": "sha256:4a10...c9d2",
"changedBlocks": ["src/pricing/tax.ts::calculateTax"]
},
"submitter": { "principalId": "prn_ci_main", "kind": "ci" },
"gates": [
{ "gate": "scope", "runner": "datafew", "judge": "datafew", "outcome": "pass" },
{ "gate": "syntax", "runner": "datafew", "judge": "datafew", "outcome": "pass" },
{ "gate": "tests", "runner": "customer", "judge": "datafew", "outcome": "pass" }
],
"signature": { "algorithm": "ed25519", "keyId": "k-2026-11", "value": "base64..." }
}
runner and judge are recorded separately; seq is inside the signature.
Delivery
Stateless managed API for multi-repository engineering teams.
For regulated environments where changed source stays inside the perimeter.
Autonomous velocity. Deterministic trust.
DATAFEW LOCUS