From c9253911740e423806b6a3a33ccc590a2a74b2f6 Mon Sep 17 00:00:00 2001 From: Snider Date: Fri, 20 Feb 2026 03:23:43 +0000 Subject: [PATCH] =?UTF-8?q?docs:=20mark=20Phase=203=20Step=203.4=20agent?= =?UTF-8?q?=20tests=20complete=20=E2=80=94=20Phase=203=20done?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Virgil --- TODO.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/TODO.md b/TODO.md index f82be1e..761929b 100644 --- a/TODO.md +++ b/TODO.md @@ -171,12 +171,12 @@ All other consumers (service.go, judge.go, agent.go, expand.go, go-ai tools_ml.g - [x] **Extract hardcoded values to constants** — Commit `12f3a1c`. 15 constants in agent_config.go: EpochBase, 5 InfluxDB measurements, 2 DuckDB tables, probe defaults (temp/maxTokens/truncation), InfluxBufferFile, LogSeparatorWidth, InterCheckpointDelay. Hardcoded probe counts replaced with len(). 7 files, build/test/vet clean. -### Step 3.4: Agent tests +### Step 3.4: Agent tests — COMPLETE -- [ ] **Test `AdapterMeta()`** — Extract model tag, label prefix, run ID from dirname patterns -- [ ] **Test `FindUnscored()`** — Filtering logic with mock scored labels -- [ ] **Test `BufferInfluxResult()`/`ReplayInfluxBuffer()`** — JSONL persistence round-trip -- [ ] **Test `DiscoverCheckpoints()`** — Mock SSH output parsing +- [x] **Test `AdapterMeta()`** — 8 tests: known families (12 entries), variant suffix, subdirectory patterns, unknown fallback, no-prefix edge case. Commit `3e22761`. +- [x] **Test `FindUnscored()`** — 5 tests: all unscored (sorted), some scored, all scored, empty input, nil scored map. Commit `3e22761`. +- [x] **Test `BufferInfluxResult()`/`ReplayInfluxBuffer()`** — 4 tests: JSONL round-trip, multiple entries, empty file, missing file. Commit `3e22761`. +- [x] **Test `DiscoverCheckpoints()`** — 6 tests: happy path (3 checkpoints across 2 dirs), subdirectory pattern, no adapters, SSH error, filter pattern, no safetensors. Uses `fakeTransport` mock implementing `RemoteTransport`. Commit `3e22761`. ---