Requirementsdoc/{zh,en}/product/requirements.md

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.

text
Transport → Trigger → Runtime → Presentation → Delivery

A 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

IDRequirementWhere it lives in v2Status
K01Install, describe, discover and configure plugins, with versions and dependenciesHost: 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)
K02Identity, authorization, quotas, secrets and auditHost: principals from CallContext, uses/scope/approval/targets/grants, operator policy, encrypted secrets, limitsPartial: 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
K03Run state, cancellation, timeouts, questions and recoveryHost: internal/host/runs, internal/host/interaction, internal/host/engineBuilt: 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)
K04Artifacts and an independent delivery per itemHost: 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
P01Plugins in any language, process plugins, remote services, declarative pluginsProcess and manifest formsPartial: process plugins for every role (pkg/plugin/serve), manifest plugins; remote services only as MCP over Streamable HTTP
P02Models, embeddings, usage and model choicemodel role (plugin.Model, optional plugin.Embedder) reached through Caller.Chat and Caller.EmbedPartial: 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
P03MCP discovery, tools, resources, prompts and requests from serversManifest 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
P04HTTP requests, credentials, proxies and egress limitswebfetch tool pluginBuilt: 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)
P05Memory: recall, writing, forgetting, per-user dataA Memory plugin with the context, tool, observer and service roles and its data directory; not part of the runtimeBuilt, awaiting acceptance (2026-12-01): plugins/memory, since 2026-11-16
P06Wiki and knowledge: sync, parsing, index, retrieval, source ACLsA knowledge plugin (tool, service) reading with the user's own token (Caller.GetSecret)Not built
P07Image and video generation and understanding; long workTool plugins that write artifacts, marked long; models that accept imagesPartial: image parts reach models that list image in inputs; no generation plugins
R01Orquelo's own Go AgentBuiltin runtime plugin plugins/agentPartial: model steps with tools, approvals, ask_user, todo, load_skill, streaming progress, checkpoints; no compaction, steering, follow-up, delegation, multi-agent or model fallback
R02Claude Code, Codex and other external runtimesRuntime plugins that drive the external CLIBuilt, awaiting acceptance (2026-12-01): plugins/external (Claude Code, Codex, ACP agents), since 2026-11-27
I01Feishu, Slack and TelegramOne 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
I02Cron and webhook triggersTransport plugins with a service that submit events; no Host timerBuilt, awaiting acceptance (2026-12-01): plugins/schedule and plugins/webhook, since 2026-11-26
I03A2A server and clientChannel plugin (server) and long tool (client)Not built
I04ACP server and clientChannel plugin (server) and runtime plugin (client)Not built
I05CLI, APIs, event subscriptions and TUIorquelo CLI, console and httpapi channel plugins, TransportHost.Run/CancelRunPartial: CLI, terminal channel, Web API channel with run status, cancel and answers; no event subscriptions or TUI
O01Triggers choose what runs, including commandsTrigger decisions; RunInput.Skills, sigils (P84)Partial: / commands, $name skills and ! shell anywhere in a message (pkg/sigil, plugins/chat); one runtime per connection
O02One result to several channels or APIsRuntimeHost.Send, Question.Target, the targets grantPartial: sends to other conversations on any connection; no fan-out of one final result to several connections
O03Normalized runtime output rendered and sent per channelOutput kinds, Item, Delivery, TextItem fallbackBuilt
D01Several tenants, cloud workers, isolationHost: 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
B01Feishu digital twin: speaks for its owner, memory, takeoverA trigger plugin plus agent, Memory and feishu, limited by works_withBuilt, awaiting acceptance (2026-12-01): the feishu plugin's web-session twin (plugins/feishu/web), since 2026-11-27
K05Ownership and cleanup of what runs holdHost: generations, retentionPartial: a run keeps the generation it started on; retention deletes finished runs and their artifacts; no exclusive resources (gap B17)
K06Typed extension, discovery of tools, cleanup on changeRoles 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
K07Distribution, source and authority kept apartpublisher claim, recorded source and digest, grants only from configurationBuilt: trust on change (orquelo plugin approve), policy
K08Configuration changes, review and rollbackRevisions, orquelo reload, orquelo config rollbackPartial: revisions, rollback, reload into a new generation; no drafts or diffs
R03Replaceable prompt parts, context, compaction, skills, tools, planning, completion checksAgent config fields, context, guard, skill and tool rolesPartial: 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)
R04Subagents, delegation, steering, pause and resumeAgent 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
P08Computer UseThe 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
P09Browser login, page objects, site actionsTool 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
P10Workspaces, files, terminals, Git, LSP, testsTool plugins; which environment runs tools is which tool instance is in the runtime's usesPartial: plugins/localenv with read, write, edit, glob, grep, bash (powershell on Windows), artifact, one workspace per conversation; no Git, LSP, test or sandbox tools
P11Document, image, audio and video parsing, conversion, generation, realtimeTool plugins and artifacts; long toolsPartial: inbound attachments fetched into artifacts (plugin.Fetcher)
P12Artifact retention and capacityHost retention now; a policy plugin laterPartial: retention sweep (internal/host/engine/duties.go)
I06One login across channels and devicesidentity plugin with grants: [identity], Caller.LinkStart/LinkFinishPartial: 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
I07TUI attachment, reconnect, answers from another channel, UI formsChannel plugins; questions answerable from linked accountsPartial: questions answered from any linked account of the approver; no TUI or forms
O04Natural-language configurationadmin tool plugin with grants: [manage] and approver: adminPartial: manage plugins and instances from a conversation; no plugin-creation skill
O05Evaluation, observability, replayHost log (pkg/logging), orquelo logs, observer role, run tracesPartial: 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

  1. 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 Caller methods. Value-only packages such as pkg/plugin hold no behavior.
  2. 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 uses and the other's scope applies to the run.
  3. A runtime is any plugin with the runtime role, not only an LLM loop. The Agent, a Claude Code adapter or a command runner all implement Runtime.Execute and return a Result; resumable says only what the runtime really supports.
  4. 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.
  5. 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.
  6. ask_user and approvals are durable questions. An answer names the question and its QuestionView.Version, comes from a principal the Host verified, and is checked against the Approver. A client going away does not cancel the run; recovery does not repeat a tool call the ledger marks done, and reports one marked started as outcome unknown.
  7. 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.
  8. A manifest's permissions is 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; publisher is only a claim.
  9. 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.
  10. New models, memory, media, sites or channels are plugins and configuration. A new Host mechanism (a role, an optional interface the Host calls, a Caller method) 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.