arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.05203cs.HC
收藏

面向决策的编程:Aporia

Decision-Oriented Programming with Aporia

UC San Diego(加州大学圣地亚哥分校);Technion(以色列理工学院);University of Pennsylvania(宾夕法尼亚大学);Cornell University(康奈尔大学);University at Buffalo, SUNY(纽约州立大学布法罗分校)

Saketh Ram Kasibatla, Raven Rothkopf, Hila Peleg, Benjamin C. Pierce, Sorin Lerner, Harrison Goldstein, Nadia Polikarpova

AI总结:

本文提出面向决策的编程范式,通过Aporia工具增强设计过程的参与度,提升代码实现的准确性。

摘要:

AI代理允许开发者以抽象方式表达计算意图,减少认知负担并促进编程流畅性。然而,增加抽象性会带来代价:开发者将决策权交予代理,往往未意识到重要设计决策由代理做出。我们旨在通过一种称为面向决策的编程(DOP)的范式,使这些决策显性化。在DOP中,决策是显式且结构化的,作为程序员与代理之间的共享媒介;决策是交互式共同撰写的,代理主动从程序员处提取决策;每个决策可追溯至代码。为实现这一愿景,我们构建了Aporia,一个设计探针,可持久化、可编辑地跟踪决策;通过提问促使程序员提出决策;并为每个决策编码为可执行测试套件以验证实现。在14名程序员的用户研究中,Aporia增强了设计过程的参与度,并支撑了探索与验证。参与者对实现的理解更准确,其心理模型与代码一致的可能性比基线编码代理低5倍。

英文摘要:

AI agents help developers express computational intent abstractly, but at a cost: developers cede decision-making authority to agents, often without realizing that important design decisions are being made without them. We bring these decisions to the foreground in a workflow we dub decision-oriented programming. In DOP, decisions are (1) explicit and structured, serving as the shared medium between programmer and agent; (2) co-authored interactively, with the agent eliciting them from the programmer; and (3) traceable to code. As a step towards this vision, we built Aporia, a design probe that tracks decisions in a persistent, editable Decision Bank; elicits them proactively through design questions; and encodes each as a test suite that can help validate the agent's implementation. A study of 14 programmers showed that structuring collaboration around decisions kept programmer and agent in sync throughout the design process, and highlighted opportunities to better support programmer decision-making in future systems.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑