# Field: Multi-Agent Systems & Software Orchestration

## Why This Field Matters to Storyweaver

The 13 Storyweaver agents are not just named roles — they are agents in the MAS technical sense: autonomous, goal-directed, reactive, proactive, and socially capable. The orchestration architecture (central conductor, state manifest, handoff contracts, pause gates) has a 30-year research tradition behind it. This field answers: *why an Orchestration Architect and not peer choreography? why a state.md blackboard? why FIPA-style handoff envelopes? why four pause routes?*

## Canonical Concepts

| Concept | Definition | Source |
|---------|-----------|--------|
| **Intelligent agent** | A computer system situated in an environment that acts autonomously toward goals, with reactivity (responds to environment), proactivity (goal-directed initiative), and social ability (interacts with other agents) | Wooldridge & Jennings (1995) |
| **Orchestration vs. choreography** | Orchestration: central conductor holds global workflow state and directs participants. Choreography: peer-to-peer coordination via shared protocol, no central authority | Peltz (2003) |
| **Blackboard architecture** | A shared data structure visible and writable by all agents (knowledge sources); enables asynchronous, loosely-coupled coordination without direct message-passing | Erman et al. (1980) |
| **FIPA Contract Net** | A standardized interaction protocol for task allocation: caller broadcasts CFP (call for proposals), agents bid, caller awards contract; winner delivers result | FIPA SC00029H (2002) |
| **Mixed-initiative interaction** | A collaboration model where both human and agent can take initiative; human gates decisions when agent confidence is below threshold or task stakes are high | Horvitz (1999) |
| **Workflow net (WF-net)** | A Petri net subclass with a single source (start) and sink (end), all nodes on a path between them; used to formally model, verify, and analyze multi-step pipelines; soundness (no deadlock, proper termination) is decidable | van der Aalst (1998) |
| **Dual-surface artifact** | A single document in structured format (JSON/YAML) simultaneously machine-parseable for agent consumption and rendered for human oversight — same graph, multiple serializations | Klyne & Carroll (2004); RDF pattern |
| **Pause condition / escalation** | A defined condition under which an agent must suspend execution and route to human: uncertainty threshold, irreversible action, policy boundary, or explicit human-gate annotation | Horvitz (1999); Amershi et al. (2019) |

## Academic References

| # | Author(s) | Title | Year | URL / DOI |
|---|-----------|-------|------|-----------|
| 1 | Wooldridge, M. & Jennings, N.R. | "Intelligent Agents: Theory and Practice" | 1995 | doi:10.1017/S0269888900008122 |
| 2 | Jennings, N.R. | "On Agent-Based Software Engineering" | 2000 | doi:10.1016/S0004-3702(99)00107-1 |
| 3 | FIPA | *Contract Net Interaction Protocol Specification* SC00029H | 2002 | http://www.fipa.org/specs/fipa00029/SC00029H.html |
| 4 | Peltz, C. | "Web Services Orchestration and Choreography" | 2003 | doi:10.1109/MC.2003.1236471 |
| 5 | Erman, L.D. et al. | "The Hearsay-II Speech-Understanding System" | 1980 | doi:10.1145/356810.356816 |
| 6 | Horvitz, E. | "Principles of Mixed-Initiative User Interfaces" | 1999 | doi:10.1145/302979.303030 |
| 7 | Johnson, M. et al. | "Autonomy and Interdependence in Human-Agent-Robot Teams" | 2011 | doi:10.1109/MIS.2011.13 |
| 8 | van der Aalst, W.M.P. | "The Application of Petri Nets to Workflow Management" | 1998 | doi:10.1142/S0218126698000043 |
| 9 | Amershi, S. et al. | "Software Engineering for Machine Learning" (ICSE-SEIP) | 2019 | doi:10.1109/ICSE-SEIP.2019.00042 |
| 10 | Shneiderman, B. | "Human-Centered AI: Reliable, Safe & Trustworthy" | 2020 | doi:10.1080/10447318.2020.1741118 |
| 11 | Wu, Q. et al. (Microsoft Research) | "AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation" | 2023 | arXiv:2308.08155 *(not peer-reviewed)* |

*All DOIs: training-knowledge, not live-verified. FIPA disbanded ~2005; specs remain valid design vocabulary, not active standard.*

*Crosswalk (2026-10-08):* how much of a delegation an agent takes up (levels of help, adjustable autonomy and transfer of control, intention commitment) is held in [`../delegation-and-adjustable-autonomy/`](../delegation-and-adjustable-autonomy/), `miadi-foundation:delegation-and-adjustable-autonomy`.

## Mapping to Storyweaver Portal Design

- **Orchestration Architect as central conductor** (Peltz 2003, Wooldridge & Jennings): narrative state must be centrally held — peer-to-peer choreography would fragment the story manifest. The Orchestration Architect's proactivity (goal: finished story packet) and social ability (routing to specialized agents) are the exact Wooldridge-Jennings agent properties.
- **`state.md` as Blackboard** (Erman et al. 1980): the shared state manifest is Hearsay-II's blackboard. Write operations must be typed — each agent writes only to its designated fields. The blackboard enables asynchronous coordination: agents do not need to message each other directly, only to read/write state.
- **Handoff contracts as FIPA Contract Net** (FIPA SC00029H): the CFP = task assignment from Orchestration Architect; propose = agent's acceptance with capability statement; inform-done = completion with result artefact path. The Storyweaver handoff JSON envelope can use this vocabulary without inventing new terms.
- **accept/revise/pause/ask-human as mixed-initiative gate** (Horvitz 1999): maps exactly — `accept` = agent proceeds; `revise` = agent self-corrects within mandate; `pause` = human gate with full context packet; `ask-human` = escalation with explicit uncertainty signal.
- **JSON/YAML ↔ human view toggle as dual-surface artifact** (Klyne & Carroll 2004): the state manifest is a single source of truth rendered two ways. No hidden state lives in only one surface.

## Engineering Implications

- Agent handoff envelope schema: `{task_id, from_agent, to_agent, storyworld_delta, accepted_artefacts[], open_promises[], pause_condition, timestamp}`.
- `state.md` write discipline: each agent appends to its own keyed section — never overwrites another agent's section. The Orchestration Architect holds the merge authority.
- WF-net soundness caveat: LLM agents introduce non-deterministic branching. Petri net formal guarantees do not transfer directly — use WF-net as a modeling and visualization tool, not a completeness proof.
- AutoGen/CrewAI: useful implementation precedents but not peer-reviewed — cite as "industry practice" rather than academic source.
- The pause condition must include a context packet sufficient for the human to decide without re-reading the full transcript.

## Narrative / Chronicle Implications

The Hearsay-II blackboard was originally a speech understanding system — all agents listening to the same signal, each contributing what it could hear. The `state.md` manifest is the same: the story being assembled, each agent hearing its part, writing what it knows. The chronicle can carry this metaphor: the session is a collaborative hearing, not a monologue.

Mixed-initiative design (Horvitz) is the formal grounding for why the Cultural Protocol Steward can pause the pipeline: the pause condition is not a failure, it is a designed gate. In chronicle terms: the pause is the moment the portal says *I do not know enough to proceed — this requires a human voice.*

## Risks / Cautions / Anti-Patterns

- **Choreography creep**: if agents begin messaging each other directly (bypassing the Orchestration Architect), the global story state fragments. All coordination must route through state.md or explicit Orchestration Architect invocation.
- **FIPA literalism**: FIPA specs are design vocabulary, not a live interoperability standard. Do not implement FIPA ACL (Agent Communication Language) encoding — use its concepts, not its wire format.
- **LLM non-determinism**: WF-net soundness assumes finite, deterministic transitions. LLM pipeline steps are neither — treat formal workflow models as design inspiration, add empirical testing for actual soundness.

## Lines Worth Carrying into Voice Chronicle

> "Hearsay-II was a blackboard where every agent listened to the same signal and wrote what it heard. That is what state.md is — a shared act of listening."

> "Horvitz called it mixed-initiative: the human and the agent share the right to act. The pause condition is not a failure. It is a designed gate."

> "Orchestration, not choreography — because when a story is being made, someone has to hold the whole shape in mind while others work the details."

## Visual Motifs for Grok Imagine

- A blackboard with 13 chalked regions, each labeled with an agent name, arrows showing read/write flows converging on a central `state.md` node
- A conductor's score open on a stand, each instrument line a different agent, the conductor's baton paused at a fermata — the pause condition as music
- A Petri net diagram rendered in teal on slate — tokens flowing from Brief through Bible through Chapters, accumulating at Export
