Skip to content
0063 · Learning, taught first

Lessons are taught first; evaluation-gated self-evolution is withdrawn

Status: Accepted
Date: 2026-12-01
Deciders: Smana (Platform Owner)
Related: repository lessons design, superseded design, ADR-0058


Context

The November design made Maku learn from developer corrections without any human authoring: a model distilled lessons, an independent evaluator ran holdout replay, shadow and a live canary, and only then did a lesson reach a run. A later mode rewrote prompts, skills, workflows and harness code under the same gate.

Nine pull requests landed that design on main. A review on 2026-12-01 found:

  • No production binary runs the pipeline. No lesson can be created, evaluated or recalled.
  • An operator cannot install it: no image is published and the chart cannot configure or reach the learning API.
  • The gate cannot conclude at repository scale. The design’s own estimate is several hundred tasks per arm.
  • Three database authority boundaries are bypassable when tested as each role on real Postgres.
  • No surface lets a maintainer teach, and the surfaces that exist have blocking bugs.

No release contains the feature. The documentation described it as shipped.


Decision Drivers

  • A developer sees value on the first day, with no model spend and almost no operator setup
  • A maintainer can see what Maku learned, where it was used, and fix or stop it in one gesture
  • Text a model wrote never influences a run before a human accepted that exact text
  • Durable rules end up in the repository, reviewed, where other tools can read them
  • The feature is announced only when a scenario passes on a real cluster

Considered Options

Option 1: Wire the November design as written

Pros:

  • No human in the activation path; strongest protection against a poisoned lesson
  • The libraries exist

Cons:

  • Most repositories would never activate a lesson: the gate needs more tasks than they have
  • A maintainer who knows the rule waits on an evaluator
  • Four workloads, six database roles and a second service-to-service hop to provision
  • The decision engine, the adversarial suites and the database triggers need rework before they can be trusted

Option 2: Human approval of every lesson

Pros:

  • Simple and trusted; common in comparable products

Cons:

  • Still depends on a model proposing before anyone benefits
  • No path for a rule a maintainer already knows

Option 3: Two lanes, taught first

A maintainer’s teaching is active immediately. A machine-inferred lesson is a proposal, inert until accepted with the same gesture. Evaluation becomes measurement: usage, votes, dormancy.

Pros:

  • Value on day one from teaching alone, with no model, budget or new workload
  • Quarantine stays where the risk is: model-written text from observed corrections
  • One typed action serves every surface
  • Storage and recall live in the broker, on the roles and connections every install has

Cons:

  • A maintainer can teach a bad rule; mitigated by visible use, one-step stop, votes and dormancy
  • No causal measure of a lesson’s effect
  • Proposals add a prompt to answer, bounded to one per pull request

Decision

Option 3. The eleven rulings (L1–L11) and the full design are in the repository lessons design.

  • Lessons live in the broker’s database and can be codified into the repository’s steering note through a pull request the factory opens and never merges.
  • Lessons enter the brief as their own layer, below the task, the steering note, the acceptance checks and the safety rules.
  • Self-evolution, federation and personal preferences are withdrawn. The code written for the November design is removed and kept under the tag learning-v1-attempt.
  • Delivery is in slices, teach first. A slice is announced only after its scenario passes on a cluster installed by the quickstart.

Consequences

  • main stops claiming the feature is shipped, and carries no learning code between the reset and the first slice.
  • The first slice needs no new database role, Secret, image or workload.
  • The owner rulings Q1, Q2, Q4, Q7, Q8, Q12, Q13, Q23, Q36, Q38 and Q44 of the November design are reversed.
  • Fake stores no longer stand in for the database in authority tests: grants, triggers and vocabularies are tested as each role on real Postgres.

What would reopen this

  • A repository with enough task volume to power an experiment asks for an evaluation gate or a per-lesson holdout.
  • Usage data from the first three slices shows taught lessons are mostly unused or voted down.
  • Maintainers ask for lessons that change prompts or workflows directly, not only the brief.