English

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

Software Engineering 2026-04-16 v1 Artificial Intelligence

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 isolating inter-module implementation details, decreasing 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.

Keywords

Cite

@article{arxiv.2604.13100,
  title  = {Contract-Coding: Towards Repo-Level Generation via Structured Symbolic Paradigm},
  author = {Yi Lin and Lujin Zhao and Yijie Shi},
  journal= {arXiv preprint arXiv:2604.13100},
  year   = {2026}
}
R2 v1 2026-07-01T12:09:27.334Z