Manuscript Offprint

arXiv:2610.33312

Responsibility Boundaries for Agentic Systems: A Comparative Evaluation of Probabilistic Agentic Programming

Khadim Lo, Soukaina Alaoui Ismaili, Jean-Sébastien Dessureault

Abstract

Language-model agents combine reasoning, tools, memory, delegation, and external effects. Authority is often distributed across prompts, host code, configuration, and logs. Probabilistic Agentic Programming (PAP) makes responsibility boundaries explicit programming abstractions connecting mandate, authority, effects, and evidence.

We compare PAP with programming paradigms, agent-oriented and BDI systems, workflow and policy languages, and LLM tool-use frameworks along seven dimensions. A mediation kernel formalizes checks before tool execution, operation-bound approval, resource limits, and evidence. Inductive proofs establish conditional safety for arbitrary model responses, assuming correct guards and complete mediation. A backward simulation matches graph executions to source executions in a defined sequential Touba subset. Its human checkpoints release program continuations; operation-bound approval remains a separate kernel contract. Finite-state exploration checks the model. Scripted enforcement tests exercise selected refusal paths and permitted controls.

An exploratory study combines seven business cases, including two three-agent workflows, seven models from three providers, five methods, and five repetitions per case and method. Shared English instructions and exact checks of stored outcomes yield 1,225 assessed observations. Native Touba completes all 35 observations on six models and 30 on the remaining model; structured Touba ranges from 21 to 35. Native matches the highest observed count for each model, including ties with the frameworks. All paired case intervals include zero. These observed counts describe the evaluated tasks; the runtime authority boundary remains fixed. The results connect responsibility contracts, execution rules, and evidence.

Keywords: Probabilistic Agentic Programming; probabilistic agentic systems; agent-oriented programming; governed tool use; capability boundaries; structured execution traces; auditability.

1 Introduction

Programming paradigms shape what programmers see as a first-class design object. Structured programming made uncontrolled jumps a design problem; modular programming made information hiding and change localization central; functional programming emphasized expression and composition; actors made active entities and messages explicit [2, 8, 15, 41].

*Touba documentation: https://toubalang.org/docs/.

Language-model agents create a different pressure. They can select tools, consult memory, delegate, request human judgment, and affect external systems through probabilistic decisions. The facts that govern an action (responsibility, authority, capability, memory scope, validation, binding, and evidence) can be scattered across the stack. Probabilistic Agentic Programming (PAP) studies that scattering as a programming problem: the agent becomes a responsibility-bearing unit whose permitted effects and obligations are explicit.

Figure 1 contrasts this organization with a conventional distribution of governance mechanisms. PAP connects existing mechanisms through a common responsibility boundary; it builds on computation, orchestration, authorization, and established agent traditions.

Conventional placement

often scattered across the stack

Prompt template

SDK / function call

Environment variable

Scheduler / route

Package / dependency drift

UI callback / ticket

Ad hoc logs

implicit responsibility

fragmented authority

informal audit trail

Linked responsibility contracts

explicit responsibility boundary

Agent responsibility

Trigger / run plan

Tool + binding + lock

Resource + memory + secret

Callable + ownership review

Human validation point

Trace + audit evidence

declared responsibility

bounded authority

structured evidence

Figure 1: Organization of governance mechanisms. PAP links governance-relevant facts through explicit responsibility contracts.

The founding account introduces PAP as a programming paradigm [23]. This paper develops its comparative account of responsibility boundaries, a formal preservation result, and an executable evaluation. The comparison identifies how programming traditions and tool-use stacks represent boundary obligations. A mediation kernel specifies the checks before execution, operation-bound human decisions, resource limits, and evidence. A backward simulation relates graph execution to source contracts in a defined Touba subset. Compiled tests check selected implementation mechanisms, and business cases examine completion across model-facing interfaces.

The evaluation links model proposals, runtime events and independently observed effects. It combines scripted enforcement tests (Section 11.2) with case-paired business outcomes (Section 12).

Comparing two Touba decision interfaces examines completion while runtime authority remains fixed.

References (33)