Skip to content

Sources on Language Design for LLM Agents

Final response from the Language design sub-agent in Research LLM Programming Languages. Captured on 2026-04-29 from the signed-in sub-agent viewer. Wording, URLs, headings, lists, and tables are preserved; rich-text formatting is converted to Markdown. Retrieved-reference IDs are retained as written in the report.


1. ETAS: An Effect-Typed Language for Agent Systems – closest match to the entire idea

Huiri Tan, Yikun Wang, Puyang Zhang, Shangyu Li, Jiasi Shen. 20 July 2026; arXiv preprint, in submission.

ETAS makes agents, tools, prompts, typed memory, human approvals, policies, and action traces explicit language elements. It distinguishes ordinary computation, nondeterministic model calls, and external actions. Its types record effects and requested-action traces; policies express allowed, forbidden, and ordered actions. Checks that depend on dynamic resources remain runtime obligations.

Suggested wording: “This paper proposes almost exactly the programming-language foundation you describe, including humans, model calls, external tools, permissions, and inspectable execution traces.”

Maturity caveat: Do not call it a mature or fully verified platform. The author lists it as in submission. The repository calls it an early research prototype and says protocol-state analysis, full concurrency, and its production runtime remain incomplete. The abstract says it states safety theorems. I could not retrieve its full paper to establish the strength/completeness of proofs. A secondary summary claims mechanization is future work; don’t rely on that without verifying the paper.

2. A Road Map for Tamed Interactions with Large Language Models – strongest established publication for the conceptual argument

Vincenzo Scotti, Jan Keim, Tobias Hey, Andreas Metzger, Anne Koziolek, Raffaela Mirandola. ACM Transactions on Software Engineering and Methodology, 35(9), article 279, 21 August 2026.

It argues for LLM Scripting Language (LSL), making interaction structure explicit and inspectable, analyzable, and governable. It separates deterministic control flow from probabilistic generation and gives context, output constraints, and workflow paths explicit semantics. It is especially close to the user’s argument that opaque model internals increase the value of inspectable surrounding software.

Important qualification: This is explicitly a vision and research road map, illustrated with scenarios and a survey of 28 researchers/practitioners. It does not establish broad deployment benefits or language-adoption trends. It expressly excludes guarantees of factual accuracy and semantic correctness. The paper itself says the limitation in existing approaches concerns appropriate analyzable abstractions, not raw expressive power.

Suggested use: Pair this with ETAS: an established argument for the direction, followed by a concrete but immature language proposal.

3. Hard-KLAIM: Hardening MCP-Enabled Agentic Workflows with a Locality-Aware Type-and-Effect System for Trace Safety – strongest formal support for agent permissions and human approval

Marco Aldinucci, Andrea Bracciali, Iacopo Colonnelli, Doriana Medić, Alberto Mulone, Luca Roversi, Marco Edoardo Santimaria. Journal of Logical and Algebraic Methods in Programming; available online 9 March 2026, journal pre-proof; article 101191.

Models an agent-tool-workflow boundary with effects, capabilities, provenance, and a proposal -> approval -> commitment -> execution protocol. It claims a mechanized Rocq proof of trace safety, including exact approval binding and no capability amplification.

Scope: The proof concerns represented action traces, under assumptions about authoritative declarations, conservative tool schemas, faithful runtime adapters, and administrative closure. It does not establish correctness of model reasoning or permit arbitrary external actions to escape monitoring.

This paper helps substantiate “agent cannot delete” and “human approval must apply to this exact proposed action” better than ordinary data types alone.

Other sources if needed

SourceStatusUseful contributionLimit
Prompting Is Programming: A Query Language for Large Language Models, Luca Beurer-Kellner, Marc Fischer, Martin VechevPLDI 2023LMQL combines prompt text, ordinary scripting, control flow, and output constraints under defined language semantics.Constrained output and orchestration do not by themselves prove factual correctness or authorization.
Type-Constrained Code Generation with Language Models, Niels Mündler et al.PLDI 2025Types can guide decoding, with a formal simply typed core and a TypeScript implementation. Reported reduction in compilation errors greater than half.This is about generated-code well-typedness; it is a different issue from controlling a deployed agent’s authority.
Concordat: Typed Sessions for LLM Agents, Milad SikaroudiarXiv preprint, 27 March 2026Python library makes agent interfaces finite-state protocols, checks calls before side effects, reserves decisions for humans, and tracks budgets across handoffs.Very recent, limited benchmark, not evidence of broad production reliability; only the mediated tool boundary is covered.

Primary URLs:

Taxonomy to use in the answer

The useful distinction is what the language makes explicit, followed by where it is enforced:

Language featureProperty it can expressEnforcement
Data types and schemasTool inputs have the required shape; success and failure are distinguished.Type checking, decoding constraints, input validation.
Effect typesA computation can read files but cannot delete them or send network requests.Static analysis, plus a faithful runtime controlling effects.
CapabilitiesThe agent has authority over a specific resource or operation.Unforgeable handles and restricted tool/service credentials.
Typestate and protocol typesApproval must precede execution; no execution after cancellation.Static checking where possible, stateful runtime monitors for dynamic decisions.
Refinements and contractsAmount below limit, path within scope, preconditions satisfied.Proof/solver checks for static facts; runtime checks for changing facts.
Information-flow rulesSensitive data cannot flow into a public model call or outbound message.Labels, conservative tracking, policy checks.
Linear/affine resourcesAn approval or budget allocation cannot be duplicated and reused.Type discipline and runtime accounting.
Explicit traces and semanticsReview what was requested, authorized, denied, and committed.Trace-preserving runtime, inspectable policy, audit storage.

A static type such as Approved is insufficient when an LLM can simply return {“approved”: true} or when unchecked external code can perform actions. The trusted boundary must create authorization evidence and mediate the side effect. The richest general-purpose language is therefore not automatically the best enforcement language; restricted, analyzable policy languages can give stronger practical guarantees.