↓ Skip to main content

0005. Zeca: optional, apart from the flock, rules before models

Documented version: v0.1.9

Status: Accepted, 2026-10-10. Consolidated on 2026-10-12 from former 0010 and former 0012. Amended on 2026-10-16: Tasks leave Vults.

Context
#

The app does two jobs: it shows what the user’s agents are doing (the flock), and it offers a companion who chats, listens, reads the flock and remembers (Zeca). Some users want only the first, and the second’s power must not leak into it. A small local decision model was also proposed for the app’s own choices, but the events it receives are already typed, and such models without fine-tuning score below a majority-class guess, with confidence we cannot calibrate without collecting data (0004).

Decision
#

  • Optional. Everything about the flock works with Zeca off: sessions, cards, notifications, connectors, the Nest with its records and costs (0006). With him off: no Zeca chat, microphone, talk shortcut, Chat… in the tray, Chat tab or Ask Zeca; the island has its own idle look, and zeca starts no process, writes no file and makes no request.
  • Specialist Chat uses the existing Chat UI. A profile opens from Flock into the existing Chat tab, selected as the recipient. Switching recipients retains each conversation and draft. A specialist remains available with Zeca off without turning him on. The recipient is the immutable profile and skill snapshot. Claude Code uses isolated settings in the empty managed workspace or a project explicitly selected before the first turn. Configured API/local providers use only the pinned instructions, their own messages and explicitly selected attachments without terminal or project access. Codex uses an app-owned home per profile and authenticated principal/workspace, binds resumed threads to that identity, suppresses project instructions and external configuration, and receives subscription authentication only in memory from the existing CLI login; it never falls back to an unqualified driver. No flock mention, companion context, external MCP, user setup or Zeca memory is attached. The user chooses Ask, accepted policies or full access separately for each profile; the default is Ask, and changes apply to the next tool call. Destructive actions, policy asks and actions after reading outside content require a card; policy denies block the call. Zeca’s Chat access setting cannot grant specialist access. Voice, Ask Zeca and local companion commands are unavailable in this route. Native state, history and approval streams remain scoped to the selected profile while the UI reuses the production ChatPanel.
  • Specialist GitHub is an explicit, revocable grant. Developer and Reviewer have independent, default-off controls for one exact repository, host and signed-in account. They do not inherit Zeca’s switches, another profile or an earlier grant. The existing connector must be enabled and its network gate, budgets, traces and typed services remain authoritative. Only scoped GitHub tools are offered: no cached global snapshot, account discovery, repository search, memory or flock tools. Supported API tools run in the host; local providers retain messaging only; CLI tools use a private same-user, per-turn MCP relay that ends with its turn. Reads taint the conversation. Every write still requires its exact human card, active policy denies remain binding, and revocation/version/account checks run before approval execution and before returning data. A new grant cannot revive a pending old write. GitHub controls govern Vults connector tools; separately approved shell commands retain their own permission boundary.
  • Agent preferences are separate from immutable revisions. Each profile keeps versioned local executor/model/effort defaults, independent of Chat access. Content and defaults save atomically; conflicts retain the draft. Defaults apply only before the first turn. API history is scoped to its profile, provider and model; it never adopts a companion prompt or history. Claude and Codex defaults apply to new isolated CLI conversations. A bound conversation keeps its original executor, model and source. Custom agents can be archived/restored without deleting revisions or history. Archived agents reject new turns and resets; an admitted turn may finish, with Stop and human cards still usable. Reading history remains available. Copies start with Ask, regardless of the source’s access.
  • Where: his brain is a zeca crate in the Connect layer, beside chat; his body (sprites, the island, the Nest) stays in Experience. No crate below zeca knows it exists; app wires it in.
  • What he reads: the flock through a FlockReader built from the view, with no path to an Intent. Flock content is untrusted input: it may carry an injection.
  • What he does: typed actions of his own; zeca does not depend on vults-core, so app maps each to core’s policy classes (read, external read, write, destructive, spend, external) and ledger, like any agent’s. He never builds Decide or DecideAlways, by type, and never answers a permission, his own or another agent’s (0002).
  • What he remembers: a git repository of his own (through gix): every write is a commit, undone by a revert.
  • Code is the agents’ work: on the harness (an API key or a local model) he never runs code himself. Removing Tasks adds no substitute execution path. CLI-backed Chat and /continue keep their existing drivers and permission checks; his commands and edits in the chat ask the user like any chat.
  • His work is never a session: his CLI processes carry VULTS_ZECA=1; the hook marks their events and core sends them to the chat’s state (taint and activity), never to the flock. Any process could set that variable, so a marked event never hides or drops a permission request: it is still asked of the user, through the chat’s approver.
  • Rules before models in the app’s own decisions:
    • What can be decided from typed state is decided by plain rules in core, with tests: notifications, attention, Zeca’s look, which agent is installed and has quota.
    • Free text from the user (what they ask Zeca) goes to the chat model.
    • A learned classifier may come later only behind the same interface, only for free text, only local, and only if an evaluation set on this repository shows the rules fall short.
    • No model ever answers a permission.

Consequences
#

  • The companion’s growth never changes who answers a permission; decisions stay exact, testable and explainable.
  • scripts/check-layers.sh places zeca in Connect; a compile-fail test pins that FlockReader cannot reach an Intent.
  • The protocol gained a field for the marked event (version 6).

History
#

  • former 0010, 2026-10-04: Zeca is optional and kept apart from the flock; his handle cannot build a decision.
  • former 0012, 2026-10-04: rules before models in the app’s own decisions.
  • 2026-10-16 (former 0031): remove Tasks and routing; keep /continue and costs, and keep the flock independent of Zeca (D7).
  • 2026-10-21 to 2026-10-25: specialists. A profile describes a role, instructions and an appearance, never access. Each specialist conversation freezes its profile revision and runs with isolated settings, without Zeca’s memory. Access is chosen per profile (Ask by default), and destructive actions, policies and the outside-content guard still hold. A Codex specialist’s thread is bound to the login that started it.