Proof-Before-Done Gate
Refuses to let an agent say “I’m done!” unless real computed evidence backs up the claim.
An agent under pressure skips tests and tells you "Done! Fixed everything" while the code is still broken.
Completion Gate rejects the fake completion (MISSING_COMPUTED_EVIDENCE) and forces real verification.
What It Does (In Plain English)
LLMs often hallucinate "All tests pass!" without actually running tests or after ignoring a failing check. Completion Gate stands at the exit door (task.complete) and checks that required trusted evidence artifacts exist, match goal acceptance criteria, and were freshly computed.
Real-World Example
- 1Agent edits a file and immediately tries to finish with "Fix complete!"
- 2Completion Gate checks for a trusted
sandbox.verify_archiveevidence artifact. - 3None exists (or tests failed) → Completion Gate blocks closing the task.
- 4Agent runs real verification, gets green evidence, and now the gate opens.
When Should You Turn It On?
Required automatically at Level 2 (draft) and above.
Safety level note: Level 2 · Draft — Can create saved drafts and run offline sandbox checks.
How to Add It (workspace.yaml)
kits:
- "@neusym/kit-completion-gate@0.1.0"
kitConfigs:
completion-gate:
requireEvidenceArtifacts: true
requireTrustedEvidence: trueKits It Works With
Technical Details & Configuration Options (2 settings)
| Package | @neusym/kit-completion-gate |
|---|---|
| Provides Ports | None |
| Requires Ports | goals@1 |
| Optional Ports | artifacts@1operations@1constraints@1 |
| Publishes Events | None |
| Owned DB Collections | None |
Configuration Options (kitConfigs.completion-gate)
| Setting | Type | Default | Description |
|---|---|---|---|
requireEvidenceArtifacts | boolean | true | — |
requireTrustedEvidence | boolean | false | When true, only platform-vouched artifacts (trusted === true) satisfy requireEvidenceArtifacts, minEvidenceCount, and requiredEvidenceKinds for kind 'evidence'. |