Update the beta check for 1.0.11-beta.2 #124

Merged
aluminum-ice merged 1 commit from beta-check/1.0.11-beta.2 into main 2026-10-31 07:40:42 +00:00
Owner

What this PR does

Updates tools/beta-check/beta-check-device.sh for 1.0.11-beta.2, an in-place update on top of beta 1. The generic parts are unchanged: the helpers, the throwaway-config harness, the dashboard read (with #122's password fix) and the redactor. The CHECK ids match the checklist issue I'll open once the beta is published:

  1. Update to this beta: version, applied in place, no failed units, no tracebacks, settings unchanged by the update; the beta-channel offer by hand.
  2. Fair model contests (#120):
    • 2.1: the contest code is installed (HOLDOUT_SCHEME, contest_decision, _run_contest, evaluate), and promotion_decision is gone.
    • 2.2: the agent's status publishes the contest-shaped tally and last_decision.
    • 2.3: every on-device run since the update was followed by a contest line in the journal (counts, and the last few lines scrubbed).
    • 2.4: with remote-train enabled, the host launches the agent's own algorithm (journal, and the algorithm names in host-models.json).
    • 2.5: the /agent card shows "Model contests" or "Earlier adoptions", not the old "Promotions".
    • 2.6, by hand: a day of capture, then the diagnostics script.
  3. Desktop scripts (#121):
    • 3.1: all seven files are installed with the right owner and modes, and the two retired scripts are gone.
    • 3.2, by hand: run pull-health.sh from a computer.
  4. The release version (#123):
    • 4.1: /status.json version equals /etc/kestrel/version, with package_version beside it.
    • 4.2: the dashboard header shows v<release>.
  5. Regressions from beta 1: its checks, renumbered 5.1–5.20.
  6. Regressions from 1.0.10: 6.1–6.27.

The closing step is 7.1 (stable 1.0.11, app-layer from beta 2 on).

Checklist

  • Lint passes — make lint (ansible --syntax-check, yamllint, shellcheck --severity=error, and the real-data check). The Lint workflow runs this on the PR.
  • Tests pass — make test (the kestrel_pi pytest suite and the real-data check's tests). The Test workflow runs this on the PR.
  • Nothing real: no secrets, no personal information, no real data. This is a public repository. The diff contains no real account passwords or hashes, Wi-Fi passphrases, private keys, API tokens, .env files, real names, personal emails, device serials, and no real captured or device data: SSIDs, MAC addresses, GPS coordinates, capture files, diagnostics bundles, logs, or screenshots of a real device — placeholders only. The real-data check catches MACs, emails, keys and capture files; real SSIDs, coordinates and screenshots are on you.
  • Consent gates intact. Capture and network plugins still ship disabled, enabling them still takes the authorized-use acknowledgment (never pre-ticked or given by code), and the capture whitelist is still enforced.
  • Docs updated in the same PR, if this changes something an operator sees or configures: the README package table, the relevant page under docs/, and the on-device operator guide (GUIDE_MD in kestrel_pi/userguide.py) where it applies.
  • Commit messages are short and imperative.

Release impact

  • App-layer-safe — changes only files the in-place update engine carries: the kestrel_pi package, plugins/*.py, systemd units, the journald drop-in, a lib script already in the engine's LIB_SCRIPTS, or the CLI.
  • Reflash-class — touches a build input the engine does not carry onto a running device: apt or pip packages, boot options / config.txt / cmdline, kernel modules, the base image or partition size, builder/config.json, builder/config.yml, the Makefile, .forgejo/workflows/, a shipped config default (config.toml / default.conf), or a brand-new lib script.

Notes for review

  • tools/beta-check/ only; the scripts aren't shipped in the image.
  • The README's rules hold:
    • read-only, with the management link untouched;
    • the agent's status, host-models.json and the journal are read as the device user or for counts, and contest lines go through jscrub;
    • no row, model or host value leaves the device;
    • the new lines print algorithm names, counts and versions only.
  • Checked off the device:
    • make lint;
    • the config harness against staged copies of beta 2's plugins-ctl, plugins and config.toml: all pass, staged config unchanged;
    • a weakened copy (a planted eink, a plugins-ctl that accepts everything): 5.9, 6.6 and 6.22 fail;
    • 3.1's comparison against a correct and a broken scripts folder: PASS and FAIL;
    • the redactor's code is unchanged since beta 1, where it was checked with an invented report.
  • The first run on a device is still the scripts' first real test.

🤖 Generated with Claude Code

## What this PR does Updates `tools/beta-check/beta-check-device.sh` for **1.0.11-beta.2**, an in-place update on top of beta 1. The generic parts are unchanged: the helpers, the throwaway-config harness, the dashboard read (with #122's password fix) and the redactor. The CHECK ids match the checklist issue I'll open once the beta is published: 1. **Update to this beta:** version, applied in place, no failed units, no tracebacks, settings unchanged by the update; the beta-channel offer by hand. 2. **Fair model contests (#120):** - **2.1:** the contest code is installed (`HOLDOUT_SCHEME`, `contest_decision`, `_run_contest`, `evaluate`), and `promotion_decision` is gone. - **2.2:** the agent's status publishes the contest-shaped tally and `last_decision`. - **2.3:** every on-device run since the update was followed by a contest line in the journal (counts, and the last few lines scrubbed). - **2.4:** with `remote-train` enabled, the host launches the agent's own algorithm (journal, and the algorithm names in `host-models.json`). - **2.5:** the `/agent` card shows "Model contests" or "Earlier adoptions", not the old "Promotions". - **2.6, by hand:** a day of capture, then the diagnostics script. 3. **Desktop scripts (#121):** - **3.1:** all seven files are installed with the right owner and modes, and the two retired scripts are gone. - **3.2, by hand:** run `pull-health.sh` from a computer. 4. **The release version (#123):** - **4.1:** `/status.json` `version` equals `/etc/kestrel/version`, with `package_version` beside it. - **4.2:** the dashboard header shows `v<release>`. 5. **Regressions from beta 1:** its checks, renumbered 5.1–5.20. 6. **Regressions from 1.0.10:** 6.1–6.27. The closing step is 7.1 (stable 1.0.11, app-layer from beta 2 on). ## Checklist - [x] **Lint passes** — `make lint` (ansible `--syntax-check`, `yamllint`, `shellcheck --severity=error`, and the real-data check). The **Lint** workflow runs this on the PR. - [x] **Tests pass** — `make test` (the `kestrel_pi` pytest suite and the real-data check's tests). The **Test** workflow runs this on the PR. - [x] **Nothing real: no secrets, no personal information, no real data.** This is a public repository. The diff contains no real account passwords or hashes, Wi-Fi passphrases, private keys, API tokens, `.env` files, real names, personal emails, device serials, and no real captured or device data: SSIDs, MAC addresses, GPS coordinates, capture files, diagnostics bundles, logs, or screenshots of a real device — placeholders only. The real-data check catches MACs, emails, keys and capture files; real SSIDs, coordinates and screenshots are on you. - [x] **Consent gates intact.** Capture and network plugins still ship disabled, enabling them still takes the authorized-use acknowledgment (never pre-ticked or given by code), and the capture whitelist is still enforced. - [x] **Docs updated in the same PR**, if this changes something an operator sees or configures: the README package table, the relevant page under `docs/`, and the on-device operator guide (`GUIDE_MD` in `kestrel_pi/userguide.py`) where it applies. - [x] Commit messages are short and imperative. ## Release impact - [x] **App-layer-safe** — changes only files the in-place update engine carries: the `kestrel_pi` package, `plugins/*.py`, systemd units, the journald drop-in, a lib script already in the engine's `LIB_SCRIPTS`, or the CLI. - [ ] **Reflash-class** — touches a build input the engine does not carry onto a running device: apt or pip packages, boot options / `config.txt` / `cmdline`, kernel modules, the base image or partition size, `builder/config.json`, `builder/config.yml`, the `Makefile`, `.forgejo/workflows/`, a shipped config default (`config.toml` / `default.conf`), or a brand-new lib script. ## Notes for review - `tools/beta-check/` only; the scripts aren't shipped in the image. - **The README's rules hold:** - read-only, with the management link untouched; - the agent's status, `host-models.json` and the journal are read as the device user or for counts, and contest lines go through `jscrub`; - no row, model or host value leaves the device; - the new lines print algorithm names, counts and versions only. - **Checked off the device:** - `make lint`; - the config harness against staged copies of beta 2's `plugins-ctl`, plugins and `config.toml`: all pass, staged config unchanged; - a weakened copy (a planted `eink`, a `plugins-ctl` that accepts everything): 5.9, 6.6 and 6.22 fail; - 3.1's comparison against a correct and a broken scripts folder: PASS and FAIL; - the redactor's code is unchanged since beta 1, where it was checked with an invented report. - The first run on a device is still the scripts' first real test. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Update the beta check for 1.0.11-beta.2
All checks were successful
Lint / lint (push) Successful in 34s
Test / test (push) Successful in 25s
Lint / lint (pull_request) Successful in 33s
Test / test (pull_request) Successful in 21s
e9dd6bbc24
Check this in-place beta's changes: the fair model contests (the code,
the published tally, a contest after each on-device run, the host
training the agent's own algorithm), every desktop script installed, and
the release version on the dashboard. Keep beta 1's and 1.0.10's checks
as regressions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
aluminum-ice deleted branch beta-check/1.0.11-beta.2 2026-10-31 07:40:43 +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!124
No description provided.