COSPEC: A Specification Elicitation Framework for Context Co-Construction with LLMs
Yongjin Seo, Hyeon Soo Kim
Key points
From the paper's conclusion- We conducted 150 runs across five conditions involving COSPEC, GitHub Spec Kit-based Spec-Driven Development (SDD), and vibe coding, varying Claude/Codex role assignments and Maker reasoning levels.
Abstract
Vibe coding uses repeated natural-language prompts and minimal code review in large language model (LLM)-based development. Development may end before sufficient client–LLM context co-construction occurs. We propose CO-constructed SPECification (COSPEC), combining Joint Application Development facilitation with Specification by Example. Within a four-stage cycle, the LLM presents prototype scenarios for client review and records approved scenarios as Given–When–Then (GWT) specifications. An automated exploratory evaluation used an LLM client given a reference specification and engagement policies. We conducted 150 runs across five conditions involving COSPEC, GitHub Spec Kit-based Spec-Driven Development (SDD), and vibe coding, varying Claude/Codex role assignments and Maker reasoning levels. Dialogues and artifacts showed client-role revision requests and acceptance reflected in scenarios and GWT specifications. Mean requirements coverage through co-construction favored SDD under diligent engagement and COSPEC under satisficing engagement; significant method differences were limited to particular requirement categories and Judges. Both methods covered more requirements through co-construction under diligent engagement. These observations support the feasibility of delegating specification writing to the LLM while involving clients through repeated responses. However, presentation medium and procedure varied together, preventing isolation of their effects. Whether this supports sustained human participation requires human evaluation.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Vibe Coding: An experiment with test-driven developmentEmpirical Software Engineering · 2026
- Evaluating multi-LLM pipelines for early-stage software requirements elicitationEmpirical Software Engineering · 2026
- Compiling Large Multi-modal Requirement Documents into Runnable Software Systems: From an Agentic Test-Driven PerspectiveProceedings of the ACM on Software Engineering · 2026
- Better Specifications, Better Code: Fine-Tuning LLMs for Behavioral Contract GenerationarXiv · 2026
- Building Software by Rolling the Dice: A Qualitative Study of Vibe CodingProceedings of the ACM on software engineering. · 2026
- SWE-Clar: Can Coding Agents Clarify Incomplete Client Requirements and Deliver Greenfield Software?arXiv · 2026