Count from-scratch contests in the diagnostics; check 2.4 per window #179

Merged
aluminum-ice merged 1 commit from diagnostics-fresh-contests into main 2026-11-08 03:58:29 +00:00
Owner

What this PR does

Two fixes found reviewing 1.0.14-beta.1's on-device results.

  • pull-agent-diagnostics.sh counts from-scratch contests. Its journal pattern for a contest line expected a single word before "candidate vs active". Since #175 a from-scratch candidate's line reads "local (from scratch) candidate vs active", so those contests were missing from the event counts and the "contest results" table. That left one fewer local contest than local training runs.
    • The pattern now accepts the optional "(from scratch)".
    • From-scratch results get their own row in the table ("local (from scratch)").
    • The "last 30 events" list leaves out optional parts a line doesn't have, instead of printing None.
  • Beta check 2.4 counts exploring windows, not runs. The agent logs an explore: trying … line for every exploring window, so a run of two windows gives two lines. The check compared the lines with runs, so a device behaving correctly got INFO.
    • It now compares the lines with the exploring windows in the episode log.
    • It counts only from the agent's first journal line since the update, because the journal may no longer reach back to the update.
    • Results:
      • PASS when the counts agree within 2, or within 5% when that's larger. The window in progress already has its line but no row yet.
      • FAIL when there are exploring windows but no line at all.
      • INFO otherwise, with the direction of the gap.

Checklist

  • Lint passes — make lint. The Lint workflow runs this on the PR.
  • Tests pass — make test (1745 passed). Neither script is covered by it. Check 2.4 was run off the device on invented episode logs and a stub journal: equal counts (PASS), one more line (PASS), no lines (FAIL), fewer and more lines (INFO each), and exploring windows from before the journal's first line, which are left out. The new contest pattern was run on invented contest lines (plain, from scratch, and remote).
  • Nothing real: no secrets, no personal information, no real data.
  • Consent gates intact. Both scripts stay read-only.
  • Docs updated in the same PR: nothing an operator configures changes.
  • Commit messages are short and imperative.

Release impact

  • App-layer-safe — pull-agent-diagnostics.sh is one of the desktop scripts the update engine already installs in /usr/local/share/kestrel/scripts/. The beta-check scripts aren't shipped.
  • Reflash-class

Notes for review

  • Item 2.4 on the 1.0.14-beta.1 checklist (#176) is reworded to match: one line per exploring window. Once this is merged, the fixed script can be attached to #176 for the run with capture on.
  • The diagnostics fix reaches devices with the next beta.

🤖 Generated with Claude Code

## What this PR does Two fixes found reviewing 1.0.14-beta.1's on-device results. - **`pull-agent-diagnostics.sh` counts from-scratch contests.** Its journal pattern for a contest line expected a single word before "candidate vs active". Since #175 a from-scratch candidate's line reads "local (from scratch) candidate vs active", so those contests were missing from the event counts and the "contest results" table. That left one fewer local contest than local training runs. - The pattern now accepts the optional "(from scratch)". - From-scratch results get their own row in the table ("local (from scratch)"). - The "last 30 events" list leaves out optional parts a line doesn't have, instead of printing `None`. - **Beta check 2.4 counts exploring windows, not runs.** The agent logs an `explore: trying …` line for every exploring window, so a run of two windows gives two lines. The check compared the lines with runs, so a device behaving correctly got INFO. - It now compares the lines with the exploring windows in the episode log. - It counts only from the agent's first journal line since the update, because the journal may no longer reach back to the update. - Results: - PASS when the counts agree within 2, or within 5% when that's larger. The window in progress already has its line but no row yet. - FAIL when there are exploring windows but no line at all. - INFO otherwise, with the direction of the gap. ## Checklist - [x] **Lint passes** — `make lint`. The **Lint** workflow runs this on the PR. - [x] **Tests pass** — `make test` (1745 passed). Neither script is covered by it. Check 2.4 was run off the device on invented episode logs and a stub journal: equal counts (PASS), one more line (PASS), no lines (FAIL), fewer and more lines (INFO each), and exploring windows from before the journal's first line, which are left out. The new contest pattern was run on invented contest lines (plain, from scratch, and remote). - [x] **Nothing real: no secrets, no personal information, no real data.** - [x] **Consent gates intact.** Both scripts stay read-only. - [x] **Docs updated in the same PR**: nothing an operator configures changes. - [x] Commit messages are short and imperative. ## Release impact - [x] **App-layer-safe** — `pull-agent-diagnostics.sh` is one of the desktop scripts the update engine already installs in `/usr/local/share/kestrel/scripts/`. The beta-check scripts aren't shipped. - [ ] **Reflash-class** ## Notes for review - Item 2.4 on the 1.0.14-beta.1 checklist (#176) is reworded to match: one line per exploring window. Once this is merged, the fixed script can be attached to #176 for the run with capture on. - The diagnostics fix reaches devices with the next beta. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Count from-scratch contests in the diagnostics; check 2.4 per window
All checks were successful
Lint / lint (pull_request) Successful in 35s
Test / test (pull_request) Successful in 1m4s
Lint / lint (push) Successful in 33s
Test / test (push) Successful in 59s
1b3f748d0f
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
aluminum-ice deleted branch diagnostics-fresh-contests 2026-11-08 03:58:29 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
aluminum-ice/kestrel!179
No description provided.