# Construction Contracts for Generated Embedded Domain-Specific Language Programs: A Measurement Protocol and a Conditional Effect

DevFeed: [Construction Contracts for Generated Embedded Domain-Specific Language Programs: A Measurement Protocol and a Conditional Effect](<https://devfeed.tech/articles/construction-contracts-for-generated-embedded-domain-specific-language-programs-a-measurement-protocol-and-a-conditional-effect-118081.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.06525>)

Author: Haowen Guo, Yangzhao Huang

Published: 2026-11-05T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [llm-reasoning](<https://devfeed.tech/topics/llm-reasoning.md>), [domain-specific language](<https://devfeed.tech/topics/domain-specific-language.md>), [AI Models](<https://devfeed.tech/topics/ai-models.md>)

Tags: [3](<https://devfeed.tech/tags/3.md>), [abstract](<https://devfeed.tech/tags/abstract.md>), [also](<https://devfeed.tech/tags/also.md>), [arxiv](<https://devfeed.tech/tags/arxiv.md>), [assembly](<https://devfeed.tech/tags/assembly.md>), [bootstrap](<https://devfeed.tech/tags/bootstrap.md>), [can](<https://devfeed.tech/tags/can.md>), [card](<https://devfeed.tech/tags/card.md>), [changes](<https://devfeed.tech/tags/changes.md>), [checkpoint](<https://devfeed.tech/tags/checkpoint.md>), [conditional](<https://devfeed.tech/tags/conditional.md>), [construction](<https://devfeed.tech/tags/construction.md>), [contracts](<https://devfeed.tech/tags/contracts.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [domain](<https://devfeed.tech/tags/domain.md>), [domain-specific-language](<https://devfeed.tech/tags/domain-specific-language.md>), [effect](<https://devfeed.tech/tags/effect.md>), [embedded](<https://devfeed.tech/tags/embedded.md>), [language](<https://devfeed.tech/tags/language.md>), [measurement](<https://devfeed.tech/tags/measurement.md>), [protocol](<https://devfeed.tech/tags/protocol.md>)

## AI overview

In OpenQASM 3, host acceptance and full structural match are distinct outcomes: across seven conditions, parse rates ranged from 0.55 to 0.97, while full matches ranged from 0.02 to 0.87. On QAOA, adding a construction card at fixed weights raised full match by 32 percentage points when weights had been trained with the card, but lowered it by 13 points without that training. The 45-point difference is not a deployment comparison. The same-step plan-free gain was 23 points, though the primary distributional score did not distinguish it; comparisons with an earlier checkpoint also changed the checkpoint. Evidence is limited: the interval includes zero on 20 QAOA instances outside all training splits, and under the card VQE adherence was 0.020 with full match near 0.03. The authors recommend reporting parsing and structural matching separately, and using a card only with a generator trained to read it and after a pilot shows adherence.

## Source excerpt

arXiv:2611.06525v1 Announce Type: new Abstract: A generated domain-specific program can be accepted by its host and still miss the reference construction. We measure the two events separately and test a short construction contract. The vehicle is Open Quantum Assembly Language (OpenQASM) 3. One 3-billion-parameter generator is run under seven conditions on 100 quantum approximate optimization (QAOA) and 100 variational quantum eigensolver (VQE) instances. Eighty of 100 QAOA signatures appear in some training split. Exact McNemar tests and 95% paired bootstrap intervals are used. The contract, a card, lists structural decisions, enters the prompt, and is checked without a simulator. Parse rates are 0.55 to 0.97 and full structural match is 0.02 to 0.87. On QAOA, at fixed weights, the card moves full match by +32.0 percentage points on card-trained weights (interval +22 to +42) and by -13.0 (-23 to -3) without that training. The +45.0-point difference is not a deployment contrast. The same-step plan-free gain is +23.0 (+13 to +33); the primary distributional score does not separate it. Against the earlier checkpoint the gain is +27.0 (+17 to +37), and the checkpoint also changes. A rule card is not separated from the learned planner, nor is a predicted-card compiler (0.760 vs. 0.780). On 20 QAOA rows outside every training split, the interval includes zero. Under this card, VQE adherence is 0.020 and full match stays near 0.03. Report the two checks separately. Insert a card only into a generator trained to read it, and only where a pilot shows adherence.