Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

6.8 KB
Raw Blame

ADR-0043 — Skills the self-building loop proved go live on trial

Status: Accepted · Date: 2026-10-19 · Amended: 2026-10-20 (execution proof)

Context

Two rules assume that a person approves every skill a model wrote before it can run:

  • MASTERPLAN §6.7: agents may draft skills, and "a visible approval flow (model card → Learned skills) is the only path to active".
  • AP-SM6 (docs/self_mod.md §7): generated skills are forced to draft, the trigger matcher skips drafts, and only the person promotes one.

The self-building loop (docs/self-build.md) builds skills on its own initiative from what the person keeps doing. Under the two rules every such skill would wait as a draft that the person has to find and activate, so the loop could never take work off them without first asking, and the "trial, measure, keep or archive" cycle would have nothing to measure.

The rules exist for good reasons. Unverified self-written skills make agents worse, not better: in SkillsBench (2026) self-generated skills scored 1.3 points below no skills at all. What works in the literature keeps only artefacts whose success was checked (Voyager's critic, Agent Workflow Memory, ReasoningBank), and the checker must stay out of the builder's reach (the Darwin Gödel Machine learned to game its own).

Decision

  1. One narrow exception. A skill may go from draft to active without the person's click when all of the following hold:
    • it was made by the trusted self-build service (dodaios/self_build/), which runs at the scheduler's privilege and is not a tool any agent or chat can call;
    • it passed the judge (dodaios/self_build/judge.py): a replay of the person's own past requests through the production skill router (dodaios.skills.eval_harness.route) catches at least two thirds of them and fires on none of the person's other recent requests, the skill validator, the pre-promote lint and the duplicate check pass, and it needs only tools the assistant used for those requests; and its steps, run read-only on one or two of those requests (see the amendment below), finish without a failed step, give an answer and reach the tools that answered the request the person accepted then;
    • [self_build].skill is trial or full, or the person accepted the build's card (which is itself the visible approval §6.7 asks for).
  2. Every other path keeps the old rule. Skills from an agent's own review, from a chat or voice request (create-skill, the creator dialog, spawn_skill_author) still land as drafts and wait for the person. The writer still renders state: draft; the builder then calls the registry's own promote, which runs the same pre-promote lint as a person's click. No new write path to skills exists.
  3. Live means on trial, not kept. The skill carries the self-built tag, has a ledger record that says why it exists and how it was checked, and is undone with one click. Its uses are counted from real runs (SkillInvoked) and corrections right after them; a trial that is not used is archived (switched off, restorable), and only at autonomy full is a used one kept without the person.
  4. The judge is not the builder. The judge is deterministic Python that takes the finished skill and the person's recorded turns; no model output decides whether a skill passes, and the builder has no way to change what is checked. A failed proof records the lesson, and the same build is not tried again.

Consequences

  • With the shipped defaults (skill = "suggest", seven silent days) nothing changes for a person until they raise the autonomy or accept a card.
  • A self-built skill can be wrong in a way the replay does not catch (it routes correctly but its steps do a poor job). The trial bounds that: it is labelled, counted, corrected-against and archived when it does not help.
  • The replay proves routing and form; the execution proof (amendment below) proves that the steps run. Neither proves that the answer is as good as the one the person accepted then: the person's answer text is not kept (the miner stores only their own words), so the comparison is structural. The trial carries the rest of the risk.
  • MASTERPLAN §6.7 and AP-SM6 now name this exception.

Amendment 2026-10-20: the execution proof

The routing replay could pass a skill whose steps do not work. Before a skill goes live, the builder now runs its steps (dodaios/self_build/sandbox.py): the drafted body and one of the person's past requests, at most two requests, newest first on different days, preferring ones the person accepted (answered, not a correction, not corrected by their next turn).

  • Seat. A signed-in subscription or a keyless local model, never a per-token key (rule 1). On a subscription the turn runs through the vendor CLI as an unattended scheduled task does: only the Dodaios gateway's tools (native tools isolated), the CLI's read-only permission mode, a tool scope of the tools the skill names plus the tools the assistant used for those requests, approvals denied. On a local model the tool loop runs in process with the same tools. Without either the build waits in building.
  • Side effects disabled. Every call goes through ToolExecutor with the Plan-mode gate (chat_read_only): a tool runs only when its trusted metadata says it reads (read_only / read_only_for_args). Anything else is refused before it runs and recorded as held back. The working folder is a temporary directory, removed afterwards. Nothing is delivered.
  • Judge. judge.skill_execution, deterministic Python over the recorded run: it finished, no step failed (a held-back step is reached, not failed), it answered, and it reached a tool family of the accepted answer when that answer used tools. A failure fails the build and records the lesson, like a failed replay.
  • Budget. Each run takes one unit of the builder's existing daily budget (DAILY_MODEL_CALLS, six); no new budget was added. A run is one short tool loop (at most six rounds) and is attributed to the build in the cost ledger.

The decision above is unchanged: the judge still decides from recorded facts, not from a model's verdict, and the builder cannot change what it checks.

References

  • SkillsBench (2026): self-generated skills score below no skills.
  • Wang et al., Voyager (2023): a critic verifies a skill before it enters the library.
  • Wang et al., Agent Workflow Memory (2024); Ouyang et al., ReasoningBank (2025): keep checked workflows, learn from failures too.
  • Zhang et al., Darwin Gödel Machine (2025): a self-improving agent edited its own checker; keep the judge out of the builder's reach.