# Directory Update Log

## 2026-10-23

* **Update**: for DESIGN amendment A9 (DuckDB 2.0; mesa-mcp and mesa-ducklake 0.2.0). [Install](getting-started/install.md): the doctor checks duckdb against the 2.x window. [Provenance](concepts/provenance.md) and [Architecture](develop/architecture.md): DuckDB 2.0.0 still rejects `UNIQUE NULLS NOT DISTINCT` and no longer probes `import pandas` per bound value; `bulk_insert` is kept. `llms.txt` and `llms-full.txt` regenerated.

## 2026-10-05

* **Update**: for DESIGN amendment A8 (the user's decision of 2026-10-05, amending A6's aspect fallback only, after A7's note that on seven non-bench SRER runs the prior-ordered fallback gave `taxon` to 25 numeric or unit-bearing columns). [Decision model](concepts/decision-model.md): the Q2 fallback row and a new A8 paragraph (a numeric column or a column with a unit gets `measurement` first, then `unit` when it has a unit, else the prior's next aspect that is neither `taxon` nor `other`; a string column keeps the prior order with `taxon` removed; two kept; `taxon` never from the fallback, still from the hint or the lookup; `search_json.a6.fallback` carries `rule: "a8"` and the reason `unit`, `numeric` or `string`; what moved on the fixture cards). [Tiers and policy](concepts/tiers-and-policy.md), [Quickstart](getting-started/quickstart.md), [Configuration](getting-started/configuration.md) and [Testing](develop/testing.md): the fallback's one-line descriptions and the A8 tests. `llms.txt` and `llms-full.txt` regenerated.
* **Update**: [Tiers and policy](concepts/tiers-and-policy.md) and [Learning and bench](concepts/learning-and-bench.md) record that the M4 production audit is deferred, not run (DESIGN A7's appended note: the curator cannot review by hand; no `audits` row; every `auto` null; the sample and the seven live runs kept); `llms-full.txt` regenerated.
* **Update**: after the first real curator review pass of the production audit (the curator could not judge correctness from what `audit review` showed, and the sample held unpromoted decisions). [Tiers and policy](concepts/tiers-and-policy.md), the audits paragraph: `audit sample` draws by default only decisions that carry an `artifact_version` (the promoted artifacts' decisions, the only ones that can feed an `audits` row), the would-be-auto decile is computed per task over that pool alone (a zero-shot `p_fit` is σ(s_c) and saturates near 1, so the unpromoted `column.ontology_fits` decisions set no cut), `--all-tiers` restores the whole pool for the report-only precision, the file records `artifact_only`; `audit review` shows, before the candidates, the target (scope and column name, site or dataset), the column's description, dtype and unit, the aspect and ontology the group searched and its OLS queries, for `column.ontology_fits` that the candidates are ontologies, and the tier marked plainly; `audit record` says how many reviewed items had no artifact under `--all-tiers`. [Install](getting-started/install.md): the three `audit` rows of the verb table. `llms.txt` and `llms-full.txt` regenerated.
* **Update**: for DESIGN amendment A7 (the consequences of the registered M4 run, `bench/results/2026-10-04/`): a task `decider.ols_rank_tasks` names is decided by `ols_rank` unless the provider resolves a promoted probe for its active framing, in which case the probe decides it at level `probe` (proposed-only, every `auto` null), D24's specificity refinement is asked again for those groups, the run names the task under `probe_tasks` and `ols_rank_tasks` lists only what `ols_rank` actually decided; `--tier ols_rank` still sends every candidate group to `ols_rank`, `decider.ols_rank_fallback` is unchanged, and a host without the promoted artifact keeps K1. [Tiers and policy](concepts/tiers-and-policy.md): the rule, the shipped-defaults table and the one promotion that exists (`learn promote --version 1 --task term.fits --tier probe`, K2(b)). [Decision model](concepts/decision-model.md): Q4–Q6 and Q4b under a promoted probe, `degraded` unchanged. [Install](getting-started/install.md): what `learn promote` changes for `term.fits` at tier `auto`. [Learning and bench](concepts/learning-and-bench.md) gains "M4 results (2026-10-04; DESIGN A7)" with the numbers A7 quotes from `x3.json`, `k2.json` and `x4.json` (`term.fits` K2(b), the probe promoted; `column.ontology_fits` K2(c), nothing promoted; the closed choices K2(c) by construction; X4 keeps no teacher labels; CLM's head adds signal; no numeric `auto`). `llms.txt` and `llms-full.txt` regenerated.

## 2026-10-04

* **Update**: after the M4 pre-run reviews, still before any result. [Learning and bench](concepts/learning-and-bench.md): the M4 registration's teacher pins are filled (the corpus hash at its neon-ducklake commit, the teacher and silver-minus-Opus snapshots with both hashes) from the label-free ingest run before the commit, whose real counts replace the placeholders (55 files, 389 items, 6 replicate proposal files read for their model and 0 implicit rows, the drops per reason, 5 ontology rows skipped outside the drops, 231 resolutions, 435 rows inserted); K2's card-sign condition is rule R's literal sign test without a margin, the margin-shifted per-card test named, rejected and reported only; a K2 candidate must itself be pre-registered and the full-set count fails closed; the closed choices' reasons for having no `beats_lookup_novel` are given one by one (`column.annotate` has an AUROC); the floors stated in advance are qualified with the published per-card counts; `learn fit` refuses a deviation from the registration instead of writing unregistered; the run protocol says the teacher step is done and disclosed. [Tiers and policy](concepts/tiers-and-policy.md): promotion reads K2's verdict only for the task's best tier (no per-tier verdict) and (b) suffices. [Serving](concepts/serving.md) and [Install](getting-started/install.md): `learn fit`'s pinned defaults, its refusal and the `cite: null` entries it names. [Testing](develop/testing.md): `test_m4_plan_constants` holds the filled pins. `llms.txt` and `llms-full.txt` regenerated.
* **Update**: for milestone M4's pre-run commit (`design/m4-analysis-plan.md` and its code, written before any M4 result; no number is reported). [Learning and bench](concepts/learning-and-bench.md) gains "Milestone M4: the analysis plan (pre-run)": the inputs and the M4 registration (A1's framings lock, the X3 grid, the pinned `tiers.json` and `x2.json`, the K2 constants, X4's arms, the teacher pins filled after the label-free ingest; every producer applies it itself), the probe tier (the three readings, the seven specs and their models, the weighted fitters with the weighted-mean penalty convention, the grids in tie order, the nested inner selection on the pooled unweighted OOF NLL, the out-of-fold calibrator, the floors of 40 and 100 and what they imply in advance for the closed choices, the teacher rows), the four X3 cells and what can be cited, K2's three verdicts and the clm-raw clause, X4 and the teacher corpus as D19 is read (the 55 files and 389 accepted items, target resolution to every table card of the product, no implicit rows, the silver-minus-Opus rebuild, the arms and the decision), `bench e2e` marked planned (second wave), and the run protocol; the tier table and the X4 bullet are updated. [Tiers and policy](concepts/tiers-and-policy.md) documents the `feature_spec` invariant, tier `auto`'s resolution order and the `--tier probe` rule, the probe tier served (the vector cache, the head export, the spec formulas, clm-serve never asked, the record's fields and the anchor's row), the `audit_required` demotion under `auto_requires_audit`, the citation test as implemented (`CellCitationValidator`, `policy.results_root`, the checks in order, tier equal to level, the live fingerprint bound by the pipeline, fold agreement for probe cells), the four promotion rules and the audits (`audit sample|review|record`, the strata, the labels a verdict mints, the pass rule). [Serving](concepts/serving.md) gains "Learned artifacts": the layout, immutability, the manifest and the strict load, `CURRENT.json` and what the live provider serves, `learn fit`, `learn promote`, `artifacts publish|pull` (local paths; the iRODS transport planned) and the doctor's `artifacts` check; the [Serving runbook](deploy/serving.md) layout table gains the artifacts tree and moves head promotion to M7. [Install](getting-started/install.md) lists the new verbs (`labels ingest-teacher`, `bench x3|k2|x4`, `bench e2e` planned, `learn fit|promote`, `artifacts publish|pull`, `audit sample|review|record`, with the M2 bench verbs beside them), says they take `--provenance`/`--actor` after the verb, that the exit codes are unchanged, how an unservable explicit tier is refused, and adds the doctor's `artifacts` row; [Configuration](getting-started/configuration.md) documents `policy.results_root`, `artifacts.dir` and `artifacts.strict` as now read; [Architecture](develop/architecture.md) moves the M4 modules into an M4 (pre-run) row and names the artifact, audit and probe-path layers; [Testing](develop/testing.md) gains "The M4 tests (pre-run)" (the synthetic-only rule, `tests/fakes/m4.py`, every new test file, the 110 OLS teacher fixtures, `test_m4_plan_constants`) and replaces the planned M4 test names with the real ones; the home page status names M4's pre-run phase. `llms.txt` and `llms-full.txt` regenerated.
* **Update**: the user confirmed amendment A6's two readings (a column name no other card carries goes to the fallback; the fallback's order and its cap of two). [Decision model](concepts/decision-model.md) and DESIGN A6 say so.
* **Update**: for amendment A6 (the user's decision after M2's results: the closed choices answered by deterministic rules, CLM's answers to them kept for audit only; product safety, not a scientific claim). [Decision model](concepts/decision-model.md) gains "The closed choices by rule (amendment A6)": the three `tiers.json` cells it follows from, what decides Q1 (every non-identifier column, whatever the planner says), Q2 (the planner's hint and the top two of the M0 lookup over the table frozen from the registered snapshot, the card held out; else the first two aspects in the lookup's prior order, never `unit` without a unit, no CLM answer read) and Q7, how each is recorded, the two readings left for the user to confirm, and the audit-only marker (`abstain`, `audit_only_a6`); the step table says what drives each step. [Tiers and policy](concepts/tiers-and-policy.md) documents `decider.closed_choice`, what drives each step of a run with the shipped defaults, and where a stored outcome is not the verdict. [Learning and bench](concepts/learning-and-bench.md) notes, after the closed-choice cells, that A6 changes serving and no cell, and that its lookup is M0's over the frozen snapshot items. [Configuration](getting-started/configuration.md), [Install](getting-started/install.md) and [Quickstart](getting-started/quickstart.md) document `decider.closed_choice` and `annotate --closed-choice`, the summary line and the `closed_choice` and `n_audit_only` keys of the `--out` JSON; [Testing](develop/testing.md) and [Architecture](develop/architecture.md) the A6 tests, `closed_choice.py`, `aspect_lookup.json` and `scripts/freeze_aspect_lookup.py`; the home page status mentions A6. `llms.txt` and `llms-full.txt` regenerated.

## 2026-10-03

* **Update**: after the registered M2 run, [Learning and bench](concepts/learning-and-bench.md) gains "Milestone M2: the registered results (2026-10-03)": X1 per arm on both tasks (`term.fits` K1, no arm qualifying; `column.ontology_fits` F9 on `clm-latest`, chosen in 7 of 7 nested folds), the candidate-only probe, the nested `column.ontology_fits` cells and the `term.fits` audit cells, the closed choices against their majority rates, and X2, every number naming its file under `bench/results/2026-10-03/` (the independent recomputations agree with every number they recomputed). [Decision model](concepts/decision-model.md) describes amendment A1: Q3 asked with F9, `term.fits` groups decided by `ols_rank` by default with Q4b not asked for them, `--ols-rank-tasks none` for an audit run, and the lock rotation that moved no `question_key`. [Tiers and policy](concepts/tiers-and-policy.md), [Configuration](getting-started/configuration.md), [Install](getting-started/install.md) and [Quickstart](getting-started/quickstart.md) document `decider.ols_rank_tasks` and `annotate --ols-rank-tasks` (the quickstart's fake run reaches the `term.fits` steps and Q4b only with `--ols-rank-tasks none`); [Testing](develop/testing.md) and [Architecture](develop/architecture.md) the A1 tests and the M2 modules; the home page status moves to M2. `llms.txt` and `llms-full.txt` regenerated.
* **Update**: [Learning and bench](concepts/learning-and-bench.md) and [Testing](develop/testing.md) for the second pre-run review of the M2 analysis plan: the registration also pins the framings lock, each model's fingerprint and X2's dump, and a run is registered only on the grid it evaluated; `--decide --from` holds every reported number to its trace and the items file (and names what it cannot replay); `bench run` recomputes X1 first; the reported AUROC intervals are labelled as the 90% intervals they are; the timing run alternates which model it asks first. The testing page lists the new tests and the second mutation round. `llms.txt` and `llms-full.txt` regenerated.
* **Update**: [Learning and bench](concepts/learning-and-bench.md) gains "Milestone M2: the analysis plan (pre-run)" from `design/m2-analysis-plan.md`, committed before any M2 result: the registered snapshot and configuration (anything else written unregistered), how X1 decides (rule (1) with the within-card shuffle against the mean AUROC of 200 seeded derangements, K1, rule (2) read literally, rules (3) and (4), the report-only controls, the replay and recompute from the files), nested selection, the zero_shot and calibrated cells (`tiers.json`, the one producer of citable cells), X2, and the planned results files (none exist yet). [Testing](develop/testing.md) describes the M2 bench tests on synthetic labels only, what they read from the snapshot (identity and state columns, the label digest), `test_m2_plan_constants` and the mutation checks run before the commit. `llms.txt` and `llms-full.txt` regenerated.

## 2026-10-01

* **Update**: [Serving runbook](deploy/serving.md) and [Serving](concepts/serving.md) for the third pre-merge revision of DESIGN A5: every keyed client also checks each new connection, once it is made and before a byte is sent, by asking the kernel which account holds its server end (a port taken between the `/proc` check and the connect gets nothing), and the `docker` group is named as a residual risk (root-equivalent without an authorization plugin or user-namespace remapping: `docker inspect` shows the encoder key). [Testing](develop/testing.md) describes the new connection-check tests. `llms.txt` and `llms-full.txt` regenerated.
* **Update**: [Serving runbook](deploy/serving.md), [Serving](concepts/serving.md) and [Install](getting-started/install.md) for the second pre-merge revision of DESIGN A5: the encoder's proxy relays only this account's connections (the kernel names the client socket's owner) and runs sandboxed without namespaces, logs each kind of refusal at most once per 10 s, and the doctor's new `serving units` check compares the loaded units and the running proxy with the checkout's rendering; every keyed client named (the planner gateway client and the probe scripts check the port's owner too); `endpoint_checks.py --foreign` and the `serving_m1e` record; new troubleshooting rows (another account's connection, the AppArmor denial of a namespaced proxy, `serving units`). [Quickstart](getting-started/quickstart.md): no live **annotate** run uses a bench card before the M2 cells. `llms.txt` and `llms-full.txt` regenerated.
* **Update**: [Serving runbook](deploy/serving.md) and [Serving](concepts/serving.md) for the pre-merge revision of DESIGN A5: the encoder unit requires its socket unit (a port another account holds stops the encoder and clm-serve from starting), the endpoint proxy is `mesa-clm-encoder-proxy` (`serving/encoder_proxy.py`: never through a symlink, at most 4,096 connections, idle ones closed) instead of `systemd-socket-proxyd`, keyed clients refuse another account's socket, and the doctor checks the listeners' owners and the run directory; the start limit counts manual starts (`reset-failed` before a manual restart, also after `serve keys --rotate`); keys stay off command lines and screens (`grep -rlF -f` to look for a leak); new troubleshooting rows. [Install](getting-started/install.md) and [Testing](develop/testing.md) describe the new checks and tests; [Configuration](getting-started/configuration.md) says why `config.yaml.example` keeps the key settings commented out; `llms.txt` and `llms-full.txt` regenerated.
* **Update**: [Serving](concepts/serving.md) and the [Serving runbook](deploy/serving.md) for DESIGN A5: the encoder container has no network and serves on a unix socket that the new socket unit `mesa-clm-encoder-proxy.socket` exposes on 127.0.0.1:8090 through `systemd-socket-proxyd`; the KV cache is pinned to 4.5 GiB (the encoder now measures 19,609 MiB by `nvidia-smi`, 21.45 GiB of `MemAvailable`); the encoder unit starts the socket and the headroom timer and is started at most three times an hour; the doctor reads the container's network namespace, warns on a stopped headroom timer and checks the feature store; the runbook adds the six-unit install, `reset-failed`, the removal of the socket units, the draft of the CARC allocation request (not sent) and the fallback's refusal of a batched encoder. The fallback's parity run is described as passing its two cosine gates, with the probe gate still pending.
* **Update**: [Learning and bench](concepts/learning-and-bench.md): the feature cache keeps float32 vectors (float16 only in the export), records the serving lock's vector recipe, and X1's cross-check passes from it (`bench/results/2026-10-01/x1_crosscheck.json`; from float16 it failed); bench-card membership is fixed and curator rows on bench cards are dropped before a target's label is chosen; X1's anchor-variant rule is withdrawn before G1. [Install](getting-started/install.md) adds the doctor's `feature store`, `encoder network` and `headroom timer` checks; [Testing](develop/testing.md) the engine tests on the non-bench SRER card and the offline-parity test, and the real command for the serve-side tests (`serving/tests`); `llms.txt` and `llms-full.txt` regenerated.
* **Update**: [Serving](concepts/serving.md) and the [Serving runbook](deploy/serving.md) for DESIGN A3 and A4: the encoder runs vLLM's batch-invariant kernels (`encoder_fp` c3b3d5e1a283; the fallback at batch 1, b171b1ba4536), answers nothing but `/health` without its key (the bearer guard `serving/vllm_auth.py`; the "open by design on loopback" wording for `/tokenize` and `/metrics` is withdrawn), clients truncate at 4,095 tokens, and the lock carries the container recipe; the fallback's parity run passes at batch 1. Both pages now describe the doctor's full serve-mode probes (the 401 matrix over every encoder route, encoder goldens, the long-input probe, the systemone parity against the local route, the drift warning) and the live provider's refusals and keyed pre-flight, and say the keys under `~/.mesa/clm/secrets` are read by default.
* **Update**: [Install](getting-started/install.md) and [Quickstart](getting-started/quickstart.md) for DESIGN A2: curator labels need an interactive terminal; `review --pick/--decline` and `feedback` run without one are recorded as an agent's answers (`via=tool`, `agent_pick` at weight 0) with a notice on stderr; a curator's answer settles a group, an agent's stays pending; `feedback` takes group-id prefixes and needs `--option-key` for a pick; `labels import-anyjev --trust-curator`. Also the `features` verbs, the default key files, the keyed pre-flight, owner-only files, the export stamped last, YAML errors that never quote the file, and which verbs take `--provenance`/`--actor` after the verb (not `doctor`, `framings`, `serve`, `features`). The quickstart no longer says "four hashes" for artifacts: an artifact is checked against `encoder_fp` and `clm_model_fp` and its `question_key`, a bench cell against the whole fingerprint.
* **Update**: [Configuration](getting-started/configuration.md) documents the default key files and how to turn them off; [Provenance](concepts/provenance.md) the owner-only sidecar and the export stamped only after a verified copy; [Decision model](concepts/decision-model.md) and [Tiers and policy](concepts/tiers-and-policy.md) the pending rule and the refusals that are never degraded.
* **Update**: [Learning and bench](concepts/learning-and-bench.md) gains the feature cache (the store, the X1/X2 manifest in builder order, the TextCache export, offline scoring, the live build under c3b3d5e1a283 from `bench/results/2026-10-01/features_build.json`, the collapse diagnostic on the pipeline's rendering) and the AnyJev L2 per-item dump that reproduces the committed cells and pairs with the snapshot.
* **Update**: [Architecture](develop/architecture.md) moves `learn/features.py` and `learn/offline.py` to the M1 row and adds `perms.py`, the live provider's pre-flight and refusals and the curator-answer rules; [Testing](develop/testing.md) adds the guarded fake encoder, the per-test serving home of the autouse fixture, `test_live_provider`, `test_perms` and the new doctor, config and CLI tests; `llms.txt` and `llms-full.txt` regenerated.

## 2026-09-29

* **Creation**: [Quickstart](getting-started/quickstart.md) for milestone M1: annotate a fixture card offline with `--provider fake` and the recorded OLS fixtures, read the summary, `explain`, `review` (interactive and `--pick`/`--decline`), `feedback`, `provenance export`, then the same on the serving host with `--provider clm` (key files, `doctor --serve`, `--tier zero_shot`, the fingerprint lines, the unreachable-clm-serve rule); added to the Getting started nav and index.
* **Update**: [Install](getting-started/install.md) documents the M1 command line (`framings`, `annotate`, `explain`, `review`, `feedback`, `provenance migrate|export|import|prune`, `serve keys|units|lock`, `doctor --serve`), owners, the providers and the `decider.ols_rank_fallback` rule, the doctor's M1 checks and serve mode, and the key-file and `MESA_CLM_ENCODER__TOKENIZER_JSON` settings; [Configuration](getting-started/configuration.md) gains `decider.tier: ols_rank`, `decider.ols_rank_fallback` and `encoder.tokenizer_json`; the home page status moves to M1.
* **Update**: [Serving runbook](deploy/serving.md) uses the `mesa-clm serve keys --init|--rotate`, `serve units` and `serve lock --check` verbs and describes what `doctor --serve` checks (and that the golden-vector and tail probes are M1 track A measurements, not doctor checks).
* **Update**: [Architecture](develop/architecture.md) marks the M1 modules as existing (`providers/live.py`, the sidecar's JSON bulk insert, `service.py` behind the CLI) and keeps `learn/features.py` planned; [Testing](develop/testing.md) adds `framings --check` and the fake annotate to the commands, the offline doctor fixture, `test_cli_m1`, `test_health_serving`, `test_provenance_bulk_insert` and the `engine` test `tests/engine/test_doctor_live.py`.
* **Update**: [Decision model](concepts/decision-model.md) (the pipeline as built: shared requests, Q3 masking, the second taxon, keep-rule drops, decision storage, pending groups, the aspect in the target identity), [Tiers and policy](concepts/tiers-and-policy.md) (choosing a tier, `ols_rank` and the fallback rule), [Provenance](concepts/provenance.md) (decision storage, `migrate`, `export`, `import`, `prune --dry-run`; project export, retry and revert stay M3) and [Serving](concepts/serving.md) (keys, units, the lock and what the doctor checks); `llms.txt` and `llms-full.txt` regenerated.
* **Creation**: [Serving runbook](deploy/serving.md) for milestone M1 track A: bootstrap, keys (init and rotate), installing the systemd user units without enabling them, start and stop order, health checks, the GPU budget next to CARC, the fallback encoder, rollback and removal.
* **Update**: [Learning and bench](concepts/learning-and-bench.md) notes that ECE, coverage-at-risk and AURC are tie-invariant (DESIGN D33) and that the baselines cell was regenerated.
* **Update**: [Testing](develop/testing.md) counts the 1,884 OLS fixtures (five `get_term` responses recorded for the compound units `UNIT_TABLE` now names exactly: meter per second, watt per square meter, milligram per kilogram, square meter, cubic meter); `llms.txt` and `llms-full.txt` regenerated.
* **Update**: [Install](getting-started/install.md) gains the M0 command line (`doctor`, `labels ingest-neon-eval|import-anyjev|snapshot|stats`, `bench baselines|mde`, the global options, exit codes and the bench sequence); [Testing](develop/testing.md) adds `mesa-clm doctor --quick`, the 1,879 OLS fixtures and `test_cli`, `test_health`, `test_mcp_tools`; [Architecture](develop/architecture.md) moves the modules that landed in M0 (`tasks`, `identity`, `policy_defaults`, `ols_closure`, `provenance/labels`, `bench/{stats,results}`, `bench/tasks`, `health`, the `mcp_tools` stub) into the M0 row; [Learning and bench](concepts/learning-and-bench.md) cites the reproduced lookup controls and the minimum detectable effect from `bench/results/2026-09-29/`.
* **Creation**: the documentation bundle for milestone M0: [Getting started](getting-started/index.md) ([Install](getting-started/install.md), [Configuration](getting-started/configuration.md)), [Concepts](concepts/index.md) ([Decision model](concepts/decision-model.md), [Tiers and policy](concepts/tiers-and-policy.md), [Provenance](concepts/provenance.md), [Learning and bench](concepts/learning-and-bench.md), [Serving](concepts/serving.md)), [Develop](develop/index.md) ([Architecture](develop/architecture.md), [Testing](develop/testing.md)) and [About](about/index.md) ([AI agents](about/ai-agents.md), [License](about/license.md)). Pages describe the plan (`design/plan-2026-09-28.md`) and mark future-milestone features as planned.
