Skip to content

feat(ops): Version check — every runtime component against its Target, into the bug list - #179

Merged
cryptolir merged 3 commits into
mainfrom
feat/versions-check
Sep 30, 2026
Merged

cryptolir merged 3 commits into
mainfrom
feat/versions-check

Conversation

@cryptolir

Copy link
Copy Markdown
Owner

What. scripts/ops/versions-check.py, run daily by the 05:45 dependency audit (deps-audit-cron.sh, new Phase C).

  • Reads what runs on eu, us and dev: Docker, Compose, OS, pending security updates and reboot on each server; each OpenClaw Agent's gateway image tag and what each image contains (OpenClaw, Node, Playwright, Chrome for Testing, Python); each Hermes Agent's version; each browser sidecar's Chromium; and the stable gateway image's contents, from a local copy on dev.
  • Compares against the Targets in the dashboard's docs/DEPENDENCIES.md "Pinned versions" (dashboard Add optional home volume + extra bind mounts in Docker setup openclaw/openclaw#678/feat(gateway): OpenAI-compatible /v1/chat/completions HTTP endpoint openclaw/openclaw#680), and each Target against its newest upstream release. Upstream is looked up weekly (Mondays, or when a cached answer is over 7 days old); a failed lookup is retried the next day.
  • Reports into the 06:00 diagnostic, as the email section and the AUTOSCAN block of bug_list.md, where the owner decides. Every finding says what to do, or how to hold the row (Hold until + Note → P3 until that date).

Read-only, everywhere: docker ps, docker exec of version commands, apt-get -s ... dist-upgrade with Debug::NoLocking=1 (a simulation; never takes the dpkg lock), and one docker run --rm --network none of the stable image on dev.

Priorities:

  • P1: a security release (Node's own flag), or Chrome at least 2 majors behind stable.
  • P2: major or minor behind; date versions 3 months or more behind; Agents, sidecars or servers below the Target; pending security updates.
  • P3: a patch behind; a newer unpromoted image; a newer Node LTS line; a reboot pending; a held row; the doc disagreeing with the stable image; a check that could not run.

Internal review (subagent) found 7 problems, all folded:

  • The roll advice pointed at deploy.sh, which rolls every Agent on a server, pilots and stopped ones included. It now points to each Agent's Upgrade in the dashboard.
  • A weekly-only snapshot froze problems that fix themselves (dev installed its pending security updates an hour after a scan) and hid a roll or hold until the next Monday. Now the fleet is read daily and only the upstream lookups are weekly.
  • A half-failed run counted as done. Now a failed run says so, and the last good result stands in for up to 8 days.
  • An impossible hold date crashed the script later. It is now refused while parsing.
  • An escaped \| in a cell broke the table. It now stays in its cell.
  • Digest and non-version image tags were reported as "behind". They are now listed, not compared.
  • A broken apt read as "0 pending". It now reads as "not read".
  • A component missing from the stable image went unreported. It is now a P3.

Tests: scripts/ops/test_versions_check.py, 33 tests with no network: parsing, versions, every finding rule, holds, the weekly cache, and the Phase C bash block run for real with a stub. 22 mutations were caught.

Live runs:

  • Read-only, against all three servers.
  • End to end under cron's minimal PATH into scratch files: the deps audit took 12 s cold and 9 s warm, and all 18 findings appear in the rendered AUTOSCAN.

First findings (2026-09-30):

  • P1: Chrome for Testing 145 vs stable 154.
  • P2: 26 production Agents on images older than stable v2026.09.09.1; EU Docker 29.2.1 and Compose 5.0.2 below Target; 1 security update on EU and US; OpenClaw about 7 months behind upstream; Node, Playwright, Docker and Compose updates.
  • P3: reboots pending on all three servers.

🤖 Generated with Claude Code

Liran Peretz and others added 3 commits September 30, 2026 19:05
…, into the bug list

scripts/ops/versions-check.py, run daily by deps-audit-cron.sh (Phase C). It
reads what every server and running container has (read-only: docker ps,
docker exec of version commands, apt-get -s, one docker run --rm --network
none of the stable image on dev) and compares it with the Targets in the
dashboard's docs/DEPENDENCIES.md "Pinned versions"; each Target is compared
with its newest upstream release, looked up weekly (Mondays, cached). The
findings reach the 06:00 AUTOSCAN block through the deps issues file, where
the owner decides: act, or hold the row (Hold until + Note -> P3).

Components: gateway image per Agent, OpenClaw, Node, Playwright, Chrome,
Python (vs the stable image and upstream), Hermes, sidecar Chromium, Docker,
Compose, security updates and reboots. A row without a check, or a check
without a row, is reported.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@cryptolir
cryptolir merged commit ca3a542 into main Sep 30, 2026
20 of 25 checks passed
@cryptolir
cryptolir deleted the feat/versions-check branch September 30, 2026 19:16
cryptolir pushed a commit that referenced this pull request Oct 10, 2026
…scriptEnv; fleet snapshot

- AGENTS.md (CLAUDE.md is a symlink to it) and the gateway release runbook
  told sessions to roll prod with `deploy.sh <tag> all`, which rolls every
  Agent on a server, pilots and stopped ones included (#179 review). Prod
  rolls are the owner's per-Agent dashboard Upgrade (dashboard openclaw#690).
- Core API key list now points to dashboard TERMINOLOGY.md (it had 4 of 7).
- configuration-reference: tools.exec.scriptEnv (#174) was undocumented.
- INFRASTRUCTURE.md: dev row and §6 fleet from today's docker ps (was June).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
cryptolir added a commit that referenced this pull request Oct 10, 2026
…eet snapshot (2026-10-10) (#181)

* docs(status): refresh to 2026-10-10 — open work only, follow-ups, fleet and deploy rules

The claimed-branches table had 21 rows, many still "open" or "in review"; all but
dashboard openclaw#639 had merged. Merged rows leave the table, their loose ends
move to a short follow-up list (checked against the hosts today). The
duplicate May-era branch table and Currently In Progress list go. Deploy
Rules now name the dashboard Upgrade for prod rolls, not deploy.sh.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs: prod Agents roll by the dashboard Upgrade; document tools.exec.scriptEnv; fleet snapshot

- AGENTS.md (CLAUDE.md is a symlink to it) and the gateway release runbook
  told sessions to roll prod with `deploy.sh <tag> all`, which rolls every
  Agent on a server, pilots and stopped ones included (#179 review). Prod
  rolls are the owner's per-Agent dashboard Upgrade (dashboard openclaw#690).
- Core API key list now points to dashboard TERMINOLOGY.md (it had 4 of 7).
- configuration-reference: tools.exec.scriptEnv (#174) was undocumented.
- INFRASTRUCTURE.md: dev row and §6 fleet from today's docker ps (was June).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs(status): dashboard openclaw#639 merged today; drop its row

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Liran Peretz <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
cryptolir added a commit that referenced this pull request Oct 16, 2026
)

- Build/push: run build-and-push.sh without a tag (an explicit tag can
  overwrite an existing registry tag, 2026-09-07).
- Default release: pilot on one Agent, then promote it.
- Prod roll: only the owner's per-Agent dashboard Upgrade (dashboard openclaw#690);
  never deploy.sh for a prod roll (#179 review). Points to AGENTS.md
  "Gateway Deploy Protocol" as the source.
- Servers: 5.161.84.219 is US prod (2ndClaw), not standby.
- §3/§10: note that the `ssh DevAgents` alias may be missing and give
  the full form.

Co-authored-by: Liran Peretz <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant