Skip to content

2.3 Programmable Environments for Human-AI Collaboration

Editorial context, 2026-04-20: The questions, constraints, proposals, disagreements, and caveats below are reformulated from the saved research discussion. LLM recommendations remain attributed proposals, not decisions by the author or independently verified findings. Technical examples and quoted source passages retain their original wording.

Executive summary

The literature does not yet have a single established name for the system you are describing. Several mature research traditions each capture part of it: blackboard architectures model collaboration through shared hypotheses; multi-agent systems model autonomous participants and protocols; workflow and Petri-net research model explicit task/state transitions; operating systems model mediation of authority and effects; programming-language research models composition, types and effects; provenance standards model responsibility and derivation; mixed-initiative systems model the division of work between people and machines; and recent LLM systems add a powerful generative search operator that can propose plans, code, hypotheses, actions and even new problem representations. 12345

The strongest framing identified by the saved LLM survey is:

A programmable socio-technical runtime in which heterogeneous participants contribute to a durable shared computation, while a smaller trusted substrate controls what becomes authoritative state and what may affect the external world.

“Participant” is deliberately broader than “agent”. A participant may be a person, an LLM invocation, a persistent agent, a deterministic function, a theorem prover, an organisation, a database, or a service. This fits the distinction in the attached working dictionary: task-solving intelligence, persistence, agency and autonomy are separate properties. An LLM can therefore be a capable generative participant without making the LLM itself the unit that owns authority or persistent agency. 6

A useful synthesis is to separate three planes:

EPISTEMIC PLANE
What might be true / useful?
LLMs, people, search, simulation, solvers
→ hypotheses, alternatives, candidate plans, predictions

COORDINATION PLANE
What work exists and what has happened?
tasks, artefacts, dependencies, events, checkpoints,
observations, results, provenance

AUTHORITY / EFFECT PLANE
What is allowed to become consequential?
identity, permissions, approvals, capabilities,
invariants, budgets, validation, external effects

This separation is increasingly visible in recent systems. AlphaGeometry lets a language model propose constructions while a symbolic engine performs deductions; FunSearch and AlphaEvolve generate candidate programs and submit them to objective evaluators; LLM+P gives planning to a classical planner after an LLM translates the problem; Temporal separates deterministic durable orchestration from nondeterministic LLM/tool calls; LangGraph can pause a proposed tool action before execution for human approval; and CaMeL explicitly prevents untrusted model-observed data from determining control flow or unauthorised effects. 78910111213

The historical evidence also argues against constraining everything. Unix succeeded with a narrow compositional interface while permitting highly varied programs above it; effect systems constrain observable effects without prescribing algorithms; a reference monitor mediates security-sensitive operations without deciding how an application reasons; and workflow systems constrain state transitions where process guarantees are required. 144152 A 2026 field experiment provides a useful contemporary warning: imposing a behavioural protocol on human-AI collaboration reduced document quality and production in that study, whereas a lighter cognitive intervention had different effects; the authors also report important experimental limitations. The result does not prove that workflow constraints are generally harmful, but it argues against assuming that more prescribed collaboration produces better work. 16

The practical implication is therefore to constrain commitments more strongly than cognition. In a general-purpose system the proposal is to make identity, authority, externally visible effects, durable state, provenance, resource limits and critical invariants part of the trusted substrate. The proposal is to normally leave search strategy, internal reasoning, number of generated alternatives, choice of specialist and local representation much more open. This closely resembles the Unix idea of a small compositional waist, extended with concepts Unix pipes did not need to carry: types, identity, provenance, trust and authority. Unix itself established compatible process/file/device I/O and pipelines as simple composition mechanisms; modern agent systems need a semantically richer waist because their outputs can themselves request consequential actions. 1417513

The central research question can consequently be sharpened to:

What is the smallest semantic and trusted substrate that permits open-ended composition among humans, generative models and software while preserving the invariants we actually care about?

That question is broader than neuro-symbolic AI. Neuro-symbolic AI gives an important answer to the representation and reasoning boundary: learned systems can generate or interpret representations consumed by symbolic reasoning systems. It says much less by itself about identities, multiple principals, human authority, durable execution, access control, resource ownership or external side effects. 1819

The historical foundations and timeline, current systems and comparison matrices, and trusted effect boundaries are now in related notes. The complete architectural synthesis, research agenda, and original bibliography remain below.

Architectural synthesis and research agenda

The combined literature suggests that the system should be framed less as an “agent framework” and more as a programming model plus trusted runtime for heterogeneous collaboration.

A possible architecture is:

    flowchart TB
    subgraph Participants["Heterogeneous participants"]
        H["Human"]
        L["LLM / generative model"]
        G["Persistent agent"]
        D["Deterministic program"]
        SVC["Tool / service"]
        SOL["Solver / verifier"]
    end

    subgraph Workspace["Durable semantic workspace"]
        T["Tasks / goals"]
        A["Artifacts / evidence"]
        P["Proposals / plans"]
        O["Observations / results"]
        V["Provenance / history"]
    end

    subgraph Trusted["Trusted runtime boundary"]
        TY["Schema + type checks"]
        AU["Identity + authority"]
        EF["Effect / capability policy"]
        IN["Invariants + budgets"]
        AP["Approval / delegation"]
    end

    WORLD["External systems / world"]

    Participants -->|"contribute / propose / observe"| Workspace
    Workspace --> Participants

    Workspace -->|"requested commitment / effect"| TY
    TY --> AU
    AU --> EF
    EF --> IN
    IN --> AP
    AP -->|"authorised effect"| WORLD
    WORLD -->|"recorded observation / result"| Workspace
  

This architecture combines the blackboard insight that specialists can cooperate through a shared workspace, the workflow insight that durable state transitions should have explicit semantics, the effect-system insight that producing a value and causing an effect are distinct, the reference-monitor insight that consequential operations need a non-bypassable mediation point, and PROV’s distinction among artefacts/activities/responsible actors. 124155 Temporal and LangGraph provide contemporary engineering examples of durable state and interruptible execution, while CaMeL demonstrates why the effect boundary cannot safely be implemented only as another instruction inside the same vulnerable LLM context. 111213

The resulting proposal is to make the “thin waist” approximately this:

Principal
Task
Artifact<T>
Observation<T>
Proposal<T>
Decision<T>
Approval<Effect>
EffectRequest<E>
EffectResult<E>
Provenance
Obligation

These are not intended as an exhaustive domain ontology. They represent semantic roles in computation.

Artifact<T> says that some participant has produced a durable object. Observation<T> says information arrived from an external event or tool and therefore may have a different trust class. Proposal<T> is deliberately non-authoritative. Decision<T> records a selected alternative. Approval<E> is an authority-bearing act by an authenticated principal over a particular effect or bounded class of effects. EffectRequest<E> is what crosses the reference-monitor boundary. EffectResult<E> is what actually happened, as distinct from what a participant expected to happen. Provenance links all of these. The need to distinguish these roles follows jointly from provenance standards, effect systems, HITL runtimes and recent prompt-injection work. 541213

The smallest core state transition could consequently be thought of as:

propose :
    Context × Participant
    → Proposal<T>*

assess :
    Proposal<T> × Evidence*
    → Assessment

authorise :
    Principal × EffectRequest<E> × Policy
    → AuthorityDecision

commit :
    SharedState × EffectRequest<E> × AuthorityDecision
    → SharedState' × EffectResult<E>

An LLM can implement propose, assess, or parts of planning. So can a human. A theorem prover can implement a particular assess. A deterministic program can implement any of them. The runtime does not need to equate intelligence with any one role. That follows naturally from the working dictionary’s distinction between capability/intelligence and agency. 6

The crucial rule is that:

No participant’s generated representation becomes an external effect merely because that participant emitted it.

This is the same separation seen in LangGraph when a model’s tool call becomes an interrupt requiring approve, edit or reject; in AlphaEvolve/FunSearch where generated code becomes a candidate to an evaluator; and in CaMeL where the model’s requested tool action is subject to non-model security policy. 129813

A second rule follows from distributed systems:

Authoritative shared state must have persistence and concurrency semantics independent of participants’ memories.

Blackboard architecture established the value of external shared state; Temporal records nondeterministic outcomes in durable history so execution can replay safely; LangGraph checkpoints shared graph state; A2A separates durable task state/artefacts from potentially transient messages. 1112021 An LLM’s context window can be one view over this state. It should not be the only copy of it.

A third rule concerns humans:

A human should be modelled as a first-class principal and participant, not a boolean human_in_the_loop fallback.

Mixed-initiative research supports dynamically shared initiative; Magentic-UI exposes several qualitatively different forms of participation; PROV distinguishes people from software agents while representing both as responsible agents; and modern approval middleware already needs authenticated human decisions that persist across execution. 322512 A person may be the task owner, an expert generating hypotheses, a critic, an approver, a source of observations, a delegated authority or the person whose workflow is being augmented. Those roles should not collapse into one human node.

A fourth rule is the closest analogue of Unix:

Keep participant interfaces small and compositional, while making effect semantics richer than the composition mechanism itself.

Unix gave processes a common I/O substrate. FIPA and A2A show the value of protocol-level interoperability without requiring shared implementation. 142321 The modern extension is that values travelling across the common substrate should carry enough metadata to distinguish content from control:

Envelope<T> {
    id
    semantic_type
    payload_or_reference
    producer_principal
    task / context
    provenance
    trust_class
    schema_version
}

Authority should be kept out of ordinary payload text:

EffectRequest<E> {
    effect
    arguments
    proposed_by
    supporting_artifacts
    required_authority
    expected_effect_class
}

Approval<E> {
    principal
    exact_scope
    request_id
    expiry / constraints
    authenticated_evidence
}

This is a synthesis of PROV’s provenance concepts, RBAC/capability security, LangGraph’s explicit human action decisions and modern agent-security work; these exact types are proposed here rather than taken from one existing specification. 524251213

The fifth rule concerns the symbolic layer:

Use symbolic representations where the system needs stable semantics, inspection, composition or enforcement; do not require every useful cognitive representation to be symbolic.

That is a broader reading of neuro-symbolic research. AlphaGeometry illustrates it well: the model can search a huge, poorly structured space of possible constructions while the theorem-proving portion remains symbolic. 7 LLM+P similarly confines the formal planner to a PDDL representation. 10 Effect systems and workflow nets show two other symbolic representations–effects and state transitions–whose purpose has nothing specifically to do with reproducing human reasoning. 42 The architecture can therefore be “neuro-symbolic” in several independent places without having one global neuro-symbolic representation.

This leads to a useful set of boundary questions for evaluating any proposed architecture:

BoundaryQuestion to make explicit
EpistemicWhich outputs are conjectures, estimates or generated possibilities, and which are verified facts?
SemanticWhich representations have machine-enforced types or formal meaning?
StateWhat is authoritative shared state, and who can update it?
ControlWho chooses the next computation or participant?
AuthorityWhich principal can approve which class of consequential operation?
EffectWhere does a proposal become a mutation of the external world?
TrustWhich data/control sources may be adversarial, mistaken or unauthenticated?
TemporalWhat survives retry, restart, participant replacement and long delays?
ProvenanceCan the system reconstruct which inputs, principals and activities produced a result?
ResourceWho owns/spends time, money, tokens, compute and scarce external resources?

The surveyed traditions can largely be understood as choosing different subsets of these boundaries to formalise. Neuro-symbolic AI emphasises the semantic/epistemic boundary; MAS emphasises participant/control boundaries; workflow emphasises state/control/temporal boundaries; operating systems emphasise authority/effect/trust boundaries; provenance emphasises causal/responsibility history; control theory emphasises observation/action/feedback; mixed initiative emphasises control allocation between human and machine. 19262155273

That yields a more precise answer to the original “what should we constrain?” question:

Constrain the parts for which global correctness depends on all participants agreeing. In a general-purpose system those are usually identity, authority, the meaning of committed effects, durable state transitions, provenance, resource ownership and hard domain invariants. Classical OS, workflow, effect-system and provenance research all provide machinery for these concerns. 15245

Allow plural implementations where diversity is useful. Different participants should be free to generate hypotheses differently, use different models, call different local solvers, maintain private intermediate state, explore different plans or specialise in different skills. Blackboard, Unix, FIPA/A2A and generator-evaluator systems all gain power from this form of implementation independence. 11423219

Represent uncertainty by allowing proposals to branch, rather than pretending every computation is a function producing one answer. FunSearch, AlphaEvolve, self-consistency methods and modern multi-agent creative work explicitly exploit multiple generated candidates. 892829 In this sense, generation is a first-class computational operation and “intelligence” is only one property of the component performing it.

Do not put the most important guarantees inside the same component whose failures they are meant to contain. seL4’s trusted-kernel architecture is the classical version of this rule; CaMeL applies the same basic idea to prompt-injectable LLMs; runtime-enforcement research is extending it to consequential agent actions. 25133031

The resulting research programme is therefore larger than “make LLM agents better”. It is closer to the intersection of programming languages, distributed systems, operating systems, HCI, AI and formal methods:

Design a small, typed and durable collaboration substrate through which heterogeneous participants can freely create and transform possibilities, while a separately trusted mechanism controls identity, authority, commitments and real-world effects.

The strongest existing work provides pieces of that system. Blackboard architectures provide the shared-workspace abstraction; FIPA and A2A provide opaque heterogeneous participants; Unix provides compositional minimalism; workflow systems and Temporal provide durable process semantics; effect systems provide a vocabulary for separating computation from consequences; seL4 and reference monitors provide the trusted-kernel principle; PROV provides provenance and responsibility; mixed-initiative research and Magentic-UI provide first-class human participation; neuro-symbolic systems provide formal interfaces to generative cognition; and FunSearch, AlphaGeometry and AlphaEvolve demonstrate why generation should be treated as productive search rather than merely probabilistic error. 121142114255322789

What is still missing is a widely accepted common semantic waist joining all of those pieces. Current frameworks standardise graphs, conversations, tasks or tools; current security work adds action-level boundaries; current provenance models record responsibility. None yet provides a broadly adopted type system in which, for example, Proposal<Plan>, Evidence<Claim>, Approval<Payment>, Delegation<Authority>, Observation<T> and CommittedEffect<T> have portable meanings across humans, models, workflow engines and remote agents. The continued evolution of MCP Tasks and A2A’s task/artifact model as of August 2026 suggests that this interface is still being worked out. 323321

That gap looks like the most promising framing of the problem: the research object is the collaboration substrate and its semantics, not any single intelligent component inside it.

References

The original Deep Research export used transient ChatGPT source identifiers. They are preserved as footnote IDs below and resolved to stable primary, standards, or official project sources where identifiable.


  1. Lee D. Erman, Frederick Hayes-Roth, Victor R. Lesser, and D. Raj Reddy, “The HEARSAY-II Speech Understanding System: Integrating Knowledge to Resolve Uncertainty,” ACM Computing Surveys 12(2), 1980. https://doi.org/10.1145/356810.356816 Original Deep Research source key: turn3search1. ↩︎ ↩︎ ↩︎ ↩︎ ↩︎

  2. Wil M. P. van der Aalst, “The Application of Petri Nets to Workflow Management,” Journal of Circuits, Systems and Computers 8(1), 1998. https://doi.org/10.1142/S0218126698000043 Original Deep Research source key: turn4search2. ↩︎ ↩︎ ↩︎ ↩︎ ↩︎ ↩︎ ↩︎

  3. Eric Horvitz, “Principles of Mixed-Initiative User Interfaces,” CHI ‘99, 1999. https://doi.org/10.1145/302979.303030 Original Deep Research source key: turn7search0. ↩︎ ↩︎ ↩︎ ↩︎

  4. John M. Lucassen and David K. Gifford, “Polymorphic Effect Systems,” POPL ‘88, 1988. https://doi.org/10.1145/73560.73564 Original Deep Research source key: turn6search0. ↩︎ ↩︎ ↩︎ ↩︎ ↩︎ ↩︎ ↩︎

  5. W3C, PROV-DM: The PROV Data Model, W3C Recommendation, 2013. https://www.w3.org/TR/prov-dm/ Original Deep Research source key: turn14search0. ↩︎ ↩︎ ↩︎ ↩︎ ↩︎ ↩︎ ↩︎ ↩︎ ↩︎

  6. Project working dictionary supplied to the Deep Research run as dictionary.md (user-provided source; no external URL). Original Deep Research source key: turn0file0. ↩︎ ↩︎

  7. Trieu H. Trinh et al., “Solving olympiad geometry without human demonstrations,” Nature 625, 2024. https://doi.org/10.1038/s41586-023-06747-5 Original Deep Research source key: turn18search12. ↩︎ ↩︎ ↩︎

  8. Bernardino Romera-Paredes et al., “Mathematical discoveries from program search with large language models,” Nature 625, 2024. https://doi.org/10.1038/s41586-023-06924-6 Original Deep Research source key: turn18search1. ↩︎ ↩︎ ↩︎ ↩︎

  9. Alexander Novikov et al., “AlphaEvolve: A coding agent for scientific and algorithmic discovery,” 2025. https://arxiv.org/abs/2506.13131 Original Deep Research source key: turn18search0. ↩︎ ↩︎ ↩︎ ↩︎ ↩︎

  10. Bo Liu et al., “LLM+P: Empowering Large Language Models with Optimal Planning Proficiency,” 2023. https://arxiv.org/abs/2304.11477 Original Deep Research source key: turn8academia3. ↩︎ ↩︎

  11. Temporal, “AI Agent Reference Architecture,” current product/reference documentation. https://go.temporal.io/platform-hub/ai-engineering/ai-reference-architecture Original Deep Research source key: turn21search3. ↩︎ ↩︎ ↩︎ ↩︎

  12. LangChain, “Human-in-the-loop,” current LangGraph/LangChain documentation. https://docs.langchain.com/oss/python/langchain/human-in-the-loop Original Deep Research source key: turn21search11. ↩︎ ↩︎ ↩︎ ↩︎ ↩︎ ↩︎

  13. Edoardo Debenedetti et al., “Defeating Prompt Injections by Design” (CaMeL), 2025; revised for IEEE SaTML 2026. https://arxiv.org/abs/2503.18813 Original Deep Research source key: turn21search0. ↩︎ ↩︎ ↩︎ ↩︎ ↩︎ ↩︎ ↩︎

  14. Dennis M. Ritchie and Ken Thompson, “The UNIX Time-Sharing System,” Communications of the ACM 17(7), 1974. https://doi.org/10.1145/361011.361061 Original Deep Research source key: turn17search0. ↩︎ ↩︎ ↩︎ ↩︎ ↩︎

  15. NIST, Glossary of Computer Security Terminology, NISTIR 4659, including the reference-monitor definition. https://nvlpubs.nist.gov/nistpubs/Legacy/IR/nistir4659.pdf Original Deep Research source key: turn5search3. ↩︎ ↩︎ ↩︎ ↩︎

  16. Alex Farach, Alexia Cambon, Lev Tankelevitch, Connie Hsueh, and Rebecca Janssen, “Scaffolding Human-AI Collaboration: A Field Experiment on Behavioral Protocols and Cognitive Reframing,” 2026. https://arxiv.org/abs/2604.08678 Original Deep Research source key: turn15search0. ↩︎

  17. Dennis M. Ritchie, “The Evolution of the Unix Time-sharing System,” 1979/1984 historical account. https://pdos.csail.mit.edu/6.828/2009/readings/ritchie79evolution.html Original Deep Research source key: turn17search7. ↩︎

  18. Artur S. d’Avila Garcez, Krysia B. Broda, and Dov M. Gabbay, Neural-Symbolic Learning Systems: Foundations and Applications, Springer, 2002. https://doi.org/10.1007/978-1-4471-0211-3 Original Deep Research source key: turn2search1. ↩︎

  19. Artur d’Avila Garcez and Luis C. Lamb, “Neurosymbolic AI: The 3rd Wave,” 2020. https://arxiv.org/abs/2012.05876 Original Deep Research source key: turn2academia38. ↩︎ ↩︎

  20. LangChain, “Persistence,” current LangGraph documentation (checkpointed state and threads). https://docs.langchain.com/oss/python/langgraph/persistence Original Deep Research source key: turn11search2. ↩︎

  21. Agent2Agent (A2A) Protocol, current specification and core concepts. https://a2a-protocol.org/latest/topics/key-concepts/ Original Deep Research source key: turn15search3. ↩︎ ↩︎ ↩︎ ↩︎ ↩︎

  22. Hussein Mozannar et al., “Magentic-UI: Towards Human-in-the-loop Agentic Systems,” Microsoft Research, 2025. https://www.microsoft.com/en-us/research/publication/magentic-ui-report/ Original Deep Research source key: turn21academia49. ↩︎ ↩︎

  23. FIPA, Abstract Architecture Specification. https://www.fipa.org/specs/fipa00001/ Original Deep Research source key: turn2search10. ↩︎ ↩︎

  24. Ravi S. Sandhu, Edward J. Coyne, Hal L. Feinstein, and Charles E. Youman, “Role-Based Access Control Models,” IEEE Computer 29(2), 1996. https://csrc.nist.gov/csrc/media/projects/role-based-access-control/documents/sandhu96.pdf Original Deep Research source key: turn14search6. ↩︎

  25. Gerwin Klein et al., “seL4: Formal Verification of an OS Kernel,” SOSP ‘09, 2009. https://cgi.cse.unsw.edu.au/~kleing/papers/sosp09.html Original Deep Research source key: turn5search2. ↩︎ ↩︎ ↩︎

  26. Michael Wooldridge, An Introduction to MultiAgent Systems, 2nd ed., Wiley, 2009. https://www.wiley-vch.de/en/areas-interest/computing-computer-sciences/an-introduction-to-multiagent-systems-978-0-470-51946-2 Original Deep Research source key: turn16search0. ↩︎

  27. Norbert Wiener, Cybernetics or Control and Communication in the Animal and the Machine, 1948. https://direct.mit.edu/books/oa-monograph/4581/Cybernetics-or-Control-and-Communication-in-the Original Deep Research source key: turn7search3. ↩︎

  28. Xuezhi Wang et al., “Self-Consistency Improves Chain of Thought Reasoning in Language Models,” 2022/ICLR 2023. https://arxiv.org/abs/2203.11171 Original Deep Research source key: turn18search8. ↩︎

  29. Keisuke Ueda et al., “Exploring the Design of Multi-Agent LLM Dialogues for Research Ideation,” SIGDIAL 2025. https://aclanthology.org/2025.sigdial-1.26/ Original Deep Research source key: turn15search2. ↩︎

  30. Haoyu Wang, Christopher M. Poskitt, and Jun Sun, “AgentSpec: Customizable Runtime Enforcement for Safe and Reliable LLM Agents,” ICSE 2026. https://doi.org/10.1145/3744916.3764546 Original Deep Research source key: turn20academia24. ↩︎

  31. Yu He et al., “AttriGuard: Defeating Indirect Prompt Injection in LLM Agents via Causal Attribution of Tool Invocations,” USENIX Security 2026. https://www.usenix.org/conference/usenixsecurity26/presentation/he-yu Original Deep Research source key: turn20search4. ↩︎

  32. Model Context Protocol maintainers, “The 2026-01-28 Specification,” 28 July 2026. https://blog.modelcontextprotocol.io/posts/2026-01-28/ Original Deep Research source key: turn14search2. ↩︎

  33. Model Context Protocol maintainers, “The 2026-01-28 MCP Specification Release Candidate,” including the Tasks extension redesign. https://blog.modelcontextprotocol.io/posts/2026-01-28-release-candidate/ Original Deep Research source key: turn14search10. ↩︎