Requirements and Scope
Status: 2026-11-13. The requirement IDs come from the 2026-11-04 baseline; each requirement is stated here in v2 terms. "Built" means implemented and tested in v2, with the code pa
Status: 2026-11-13. The requirement IDs come from the 2026-11-04 baseline; each requirement is stated here in v2 terms. "Built" means implemented and tested in v2, with the code path given; "Partial" names what exists and what does not; "Not built" means only a design or a gap exists. "Built, awaiting acceptance" means it is on main and in daily use, with its code path and first date, but not yet verified as AGENTS.md asks; each such status carries its date (Feishu #305, 2026-12-01). The plugin design and the M6 record hold the evidence.
Product and Main Pipeline
Orquelo is a Go Host plus plugins. The Host owns events, runs, questions, deliveries, artifacts, the tool ledger and configuration; every channel, runtime, model, tool and output target is a plugin. Plugins come in three forms with one manifest (plugin.yaml with name, version, api: v1): builtin (Go, linked into the binary), process (any language, JSON-RPC 2.0 over stdio, pkg/plugin/rpc) and manifest (no code: MCP servers, skills and command hooks). Progress is measured by what runs and is tested, not by claims of rank.
Transport → Trigger → Runtime → Presentation → DeliveryA connection names one instance for each stage. The transport submits events (TransportHost.Submit); the trigger decides ignore, start, cancel, answer or reply; the runtime executes one run (one turn) and returns a Result; the Host turns results, errors, questions and notices into Output; presentation renders Items; delivery sends them, with one delivery record each. A run may also send to other conversations through RuntimeHost.Send and Question.Target when the runtime instance's targets grant allows it.
Requirement Register
| ID | Requirement | Where it lives in v2 | Status |
|---|---|---|---|
| K01 | Install, describe, discover and configure plugins, with versions and dependencies | Host: manifest validation, orquelo plugin install, catalogs, instances under plugins: (internal/manage, pkg/plugin/manifest.go) | Built: three forms, install from a directory, pinned git or hashed archive, catalogs (Claude Code marketplaces included), host range, depends resolved from the catalogs at install, platform prerequisites installed at install (system packages after confirmation) and checked at load (dependencies and prerequisites) |
| K02 | Identity, authorization, quotas, secrets and audit | Host: principals from CallContext, uses/scope/approval/targets/grants, operator policy, encrypted secrets, limits | Partial: per-user principals, linked persons, encrypted options and per-principal secrets, token limits per person and per run (internal/host/usage); one tenant; no audit log beyond configuration revisions and the Host log |
| K03 | Run state, cancellation, timeouts, questions and recovery | Host: internal/host/runs, internal/host/interaction, internal/host/engine | Built: run states, cancel, run_timeout (active time), question_timeout (2 h), parked runs (P54), durable questions, restart recovery (resumable runtimes continue from RuntimeHost.Checkpoint, others fail and the user is told) |
| K04 | Artifacts and an independent delivery per item | Host: internal/host/artifact, the delivery queue written in the run outcome's transaction (internal/host/delivery) | Built: per-delivery retry with backoff, orquelo delivery retry; a failed delivery never reruns the runtime |
| P01 | Plugins in any language, process plugins, remote services, declarative plugins | Process and manifest forms | Partial: process plugins for every role (pkg/plugin/serve), manifest plugins; remote services only as MCP over Streamable HTTP |
| P02 | Models, embeddings, usage and model choice | model role (plugin.Model, optional plugin.Embedder) reached through Caller.Chat and Caller.Embed | Partial: plugins/openai (OpenAI-compatible), embeddings, Host metering of Chat in runs; no fallback between models, no other vendor families; the shared pkg/llm package is proposed |
| P03 | MCP discovery, tools, resources, prompts and requests from servers | Manifest plugins (internal/bundle, internal/mcp) | Partial: stdio and Streamable HTTP, prefixed tools, include/exclude, last good list kept, instructions as context items, elicitation as Ask; no resources or prompts |
| P04 | HTTP requests, credentials, proxies and egress limits | webfetch tool plugin | Built: allowed hosts, named connections whose credentials the model never sees, private and loopback addresses refused (plugins/webfetch); web search through declared provider profiles, Tavily verified live (plugins/websearch) |
| P05 | Memory: recall, writing, forgetting, per-user data | A Memory plugin with the context, tool, observer and service roles and its data directory; not part of the runtime | Built, awaiting acceptance (2026-12-01): plugins/memory, since 2026-11-16 |
| P06 | Wiki and knowledge: sync, parsing, index, retrieval, source ACLs | A knowledge plugin (tool, service) reading with the user's own token (Caller.GetSecret) | Not built |
| P07 | Image and video generation and understanding; long work | Tool plugins that write artifacts, marked long; models that accept images | Partial: image parts reach models that list image in inputs; no generation plugins |
| R01 | Orquelo's own Go Agent | Builtin runtime plugin plugins/agent | Partial: model steps with tools, approvals, ask_user, todo, load_skill, streaming progress, checkpoints; no compaction, steering, follow-up, delegation, multi-agent or model fallback |
| R02 | Claude Code, Codex and other external runtimes | Runtime plugins that drive the external CLI | Built, awaiting acceptance (2026-12-01): plugins/external (Claude Code, Codex, ACP agents), since 2026-11-27 |
| I01 | Feishu, Slack and Telegram | One channel plugin each (transport, presentation, delivery) | Partial: plugins/feishu (direct and group chats, cards, files; used live with the Agent and Kimi); no Slack or Telegram |
| I02 | Cron and webhook triggers | Transport plugins with a service that submit events; no Host timer | Built, awaiting acceptance (2026-12-01): plugins/schedule and plugins/webhook, since 2026-11-26 |
| I03 | A2A server and client | Channel plugin (server) and long tool (client) | Not built |
| I04 | ACP server and client | Channel plugin (server) and runtime plugin (client) | Not built |
| I05 | CLI, APIs, event subscriptions and TUI | orquelo CLI, console and httpapi channel plugins, TransportHost.Run/CancelRun | Partial: CLI, terminal channel, Web API channel with run status, cancel and answers; no event subscriptions or TUI |
| O01 | Triggers choose what runs, including commands | Trigger decisions; RunInput.Skills, sigils (P84) | Partial: / commands, $name skills and ! shell anywhere in a message (pkg/sigil, plugins/chat); one runtime per connection |
| O02 | One result to several channels or APIs | RuntimeHost.Send, Question.Target, the targets grant | Partial: sends to other conversations on any connection; no fan-out of one final result to several connections |
| O03 | Normalized runtime output rendered and sent per channel | Output kinds, Item, Delivery, TextItem fallback | Built |
| D01 | Several tenants, cloud workers, isolation | Host: the tenants configuration, tenant admins, per-tenant/per-user data directories (release and runtime layout section 8) | Not built: data tables carry tenant_id; on 2026-11-19 it was decided to support several tenants this round (one node); cloud workers stay out |
| B01 | Feishu digital twin: speaks for its owner, memory, takeover | A trigger plugin plus agent, Memory and feishu, limited by works_with | Built, awaiting acceptance (2026-12-01): the feishu plugin's web-session twin (plugins/feishu/web), since 2026-11-27 |
| K05 | Ownership and cleanup of what runs hold | Host: generations, retention | Partial: a run keeps the generation it started on; retention deletes finished runs and their artifacts; no exclusive resources (gap B17) |
| K06 | Typed extension, discovery of tools, cleanup on change | Roles and optional interfaces; Caller.Tools pinned per run (internal/host/broker/pin.go) | Built: typed roles, tool list pinned per run, a changed definition refused, ambiguous skill names left out |
| K07 | Distribution, source and authority kept apart | publisher claim, recorded source and digest, grants only from configuration | Built: trust on change (orquelo plugin approve), policy |
| K08 | Configuration changes, review and rollback | Revisions, orquelo reload, orquelo config rollback | Partial: revisions, rollback, reload into a new generation; no drafts or diffs |
| R03 | Replaceable prompt parts, context, compaction, skills, tools, planning, completion checks | Agent config fields, context, guard, skill and tool roles | Partial: skills, tools, context items, CompletionGuard on the final answer, todo; no compaction, no guard before each continuing step, no prompt parts from plugins (gap B14) |
| R04 | Subagents, delegation, steering, pause and resume | Agent features plus plugin agents (gap B13) | Partial, awaiting acceptance (2026-12-01): the agent's delegate (since 2026-11-16) and plugins/workflow (since 2026-11-21); steering, pause and resume not checked |
| P08 | Computer Use | The computer plugin (tool and service) and the orquelo-desktop agent (design, actions) | Partly built: the tool, the agent protocol, the X11 and macOS providers and the sandbox image (S1–S2), devices per conversation with /computer, owner approval and Host leases (S3, ADR 0019), 2026-11-29; app tiers, takeover and the macOS on-screen presence (S5b), the Windows provider (S7b); not yet Wayland, accessibility actions, the Linux and Windows presence |
| P09 | Browser login, page objects, site actions | Tool plugins; exclusive resources (B17) | Partial: websites through the agent-browser CLI with one operator-set profile, so a site's login carries over (P87 S6, ADR 0012); page objects and site actions are not built |
| P10 | Workspaces, files, terminals, Git, LSP, tests | Tool plugins; which environment runs tools is which tool instance is in the runtime's uses | Partial: plugins/localenv with read, write, edit, glob, grep, bash (powershell on Windows), artifact, one workspace per conversation; no Git, LSP, test or sandbox tools |
| P11 | Document, image, audio and video parsing, conversion, generation, realtime | Tool plugins and artifacts; long tools | Partial: inbound attachments fetched into artifacts (plugin.Fetcher) |
| P12 | Artifact retention and capacity | Host retention now; a policy plugin later | Partial: retention sweep (internal/host/engine/duties.go) |
| I06 | One login across channels and devices | identity plugin with grants: [identity], Caller.LinkStart/LinkFinish | Partial: account linking by a one-time code, orquelo identity link, and orquelo identity show to see an account's person and linked accounts; no CLI or Web login |
| I07 | TUI attachment, reconnect, answers from another channel, UI forms | Channel plugins; questions answerable from linked accounts | Partial: questions answered from any linked account of the approver; no TUI or forms |
| O04 | Natural-language configuration | admin tool plugin with grants: [manage] and approver: admin | Partial: manage plugins and instances from a conversation; no plugin-creation skill |
| O05 | Evaluation, observability, replay | Host log (pkg/logging), orquelo logs, observer role, run traces | Partial: structured redacted logs with run timelines, observers; a run's trace with findings through /trace, orquelo run trace and trace_get; no evaluation or replay |
Required Boundaries
- Each behavioral package has one owner of its state. The Host engine coordinates; registries, stores and services are injected; plugins reach each other only through
Callermethods. Value-only packages such aspkg/pluginhold no behavior. - Plugins never import each other's code or read each other's data directories. A plugin reaches another only if that instance is in its
usesand the other'sscopeapplies to the run. - A runtime is any plugin with the
runtimerole, not only an LLM loop. The Agent, a Claude Code adapter or a command runner all implementRuntime.Executeand return aResult;resumablesays only what the runtime really supports. - Presentation renders; delivery sends. Files leave a run only as artifacts (
Caller.PutArtifact), never as plugin-local paths. Feishu IM, documents and a Web API are different delivery plugins or item kinds, not one text call. - Run, presentation and each delivery have separate state. A failed delivery is retried alone and never reruns the runtime. Admission (
Submit), run success and delivery success are separate facts. ask_userand approvals are durable questions. An answer names the question and itsQuestionView.Version, comes from a principal the Host verified, and is checked against theApprover. A client going away does not cancel the run; recovery does not repeat a tool call the ledger marksdone, and reports one markedstartedas outcome unknown.- The tool ledger, runtime checkpoints and any long-term memory are separate stores with separate owners. Identity and grants come only from the Host's
CallContext, never from payloads. - A manifest's
permissionsis a request, not a grant, and a process is not a sandbox. Builtin, first-party and third-party plugins pass the same validation, policy and grants;publisheris only a claim. - Platform identity, per-user third-party tokens (
Caller.GetSecret) and browser sessions are kept apart. Linking accounts grants nothing by itself, and source ACLs also limit what is derived from the source. - New models, memory, media, sites or channels are plugins and configuration. A new Host mechanism (a role, an optional interface the Host calls, a
Callermethod) needs a bilingual ADR; M6 showed three new plugins with no Host change, and that is not a promise for every future need.
Acceptance Approach
Each requirement family is tracked in the extension matrix. A family is accepted when its plugins run with no change under internal, pkg or cmd, recorded the way M6 did; changes to the Agent are recorded separately, because special cases in the Agent do not prove extensibility either.
Cases still to run include: one run whose files go to Feishu IM, a document target and a Web API, with one delivery failing and only that one retried; a question raised in one channel and answered from a linked account in another; a tool call interrupted by a crash, reported as outcome unknown and never re-sent; a revoked instance refused at the next call. Site and device plugins state their limits instead of promising stable automation.
Accepted so far: M6 (three plugins added with no Host change). Build and test results are reported apart from design coverage; Linux and Windows have not been run natively.
Further reading: Architecture, Plugin design, Plugin scenarios, Runtime.