Contract-Coding: Towards Repo-Level Generation via Structured Symbolic Paradigm

Yilin, Lujin Zhao, Yijie Shi


Abstract
The shift toward intent-driven software engineering (often termed "Vibe Coding") exposes a critical Context-Fidelity Trade-off: vague user intents overwhelm linear reasoning chains, leading to architectural collapse in complex repo-level generation. We propose Contract-Coding, a structured symbolic paradigm that bridges unstructured intent and executable code via Autonomous Symbolic Grounding. By projecting ambiguous intents into a formal Language Contract, our framework serves as a Single Source of Truth (SSOT) that enforces topological independence, effectively inter-module implementation details, decreasing a topological execution depth and unlocking Architectural Parallelism. Empirically, while state-of-the-art agents suffer from different hallucinations on the Greenfield-5 benchmark, Contract-Coding achieves 47% functional success while maintaining near-perfect structural integrity. Our work marks a critical step towards repository-scale autonomous engineering: transitioning from strict "specification-following" to robust, intent-driven architecture synthesis. Our code is available at https://github.com/imliinyi/Contract-Coding
Anthology ID:
2026.findings-acl.400
Volume:
Findings of the Association for Computational Linguistics: ACL 2026
Month:
July
Year:
2026
Address:
San Diego, California, United States
Editors:
Maria Liakata, Viviane P. Moreira, Jiajun Zhang, David Jurgens
Venue:
Findings
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
8187–8206
Language:
URL:
https://preview.aclanthology.org/ingest-acl/2026.findings-acl.400/
DOI:
Bibkey:
Cite (ACL):
Yilin, Lujin Zhao, and Yijie Shi. 2026. Contract-Coding: Towards Repo-Level Generation via Structured Symbolic Paradigm. In Findings of the Association for Computational Linguistics: ACL 2026, pages 8187–8206, San Diego, California, United States. Association for Computational Linguistics.
Cite (Informal):
Contract-Coding: Towards Repo-Level Generation via Structured Symbolic Paradigm (Yilin et al., Findings 2026)
Copy Citation:
PDF:
https://preview.aclanthology.org/ingest-acl/2026.findings-acl.400.pdf
Checklist:
 2026.findings-acl.400.checklist.pdf