SpecGap: Preserving Disagreement in Specification Assurance
Warren Smith · Team SpecGap
Submitted to The Secure Program Synthesis Hackathon. Sprint projects are early-stage work by participants, not Apart Research publications.
SpecGap detects specification divergence between stakeholder intent, formalised policy, and implementation before runtime. When independent mechanisms disagree, SpecGap preserves the disagreement as evidence rather than collapsing it into a single verdict.
Reviews
SpecGap is built around the idea that disagreement between independent checks is a valuable signal, and that collapsing it into one verdict hides unfalsifiable false-confirmations.
A limitation is that it shows the principle without measuring, as everything runs over a few hand-authored samples that are built to elicit one state.
Good next steps are to expand the measuring of the delta on a programmatically generated, ground-truth-labeled corpus and to build the single-verdict baseline.
Cite this project
@misc{smith2026specgap,
title = {{SpecGap: Preserving Disagreement in Specification Assurance}},
author = {Warren Smith},
year = {2026},
month = may,
note = {Submitted to The Secure Program Synthesis Hackathon, an Apart Research Sprint},
howpublished = {\url{https://apartresearch.com/sprints/projects/specgap-preserving-disagreement-in-specification-assurance-uzpw}},
url = {https://apartresearch.com/sprints/projects/specgap-preserving-disagreement-in-specification-assurance-uzpw}
}More from The Secure Program Synthesis Hackathon
- View project: Vibe-Coding Specs: Eliciting, Editing, and Verifying Specifications for AI Coding Agents
Vibe-Coding Specs: Eliciting, Editing, and Verifying Specifications for AI Coding Agents
Lida Safety
Specifications for real systems do not exist as one-shot artifacts: the user's intent emerges as they discover edge cases, rewrite drafts, and react to failing tests. We present an iterative pipeline that takes this …
- View project: AgentSpecGap
AgentSpecGap
solo-team
This prototype extracts rules from system prompts, tool descriptions, and runtime config. Rules are classified into one of interface validation, authorization check, workflow ordering validation, runtime validation, …
- View project: SpecGap Arena
SpecGap Arena
Obligation Cartographers
SpecGap Arena is a benchmark and framework that exposes how incomplete specifications let plausible but incorrect code pass public tests. It synthesizes missing semantic obligations (security boundaries, invariants, …