Cron reconciler rejects jobs whose empty toolset list reads back as [] #25

Closed
opened 2026-10-21 18:09:59 +00:00 by bryan · 0 comments
Owner

Problem

python3 hermes/install.py --adopt-identical fails cron reconciliation before reaching later manifest jobs:

ERROR: cron verification failed for 'Watch Hermes status fix for nightly updates': {"enabled_toolsets": {"actual": [], "expected": null}}

Cause

hermes/reconcile_cron.py builds its readback expectation with definition["enabledToolsets"] or None and the comment "Hermes normalizes an explicitly empty toolset list to null." The installed Hermes (v0.22.2, cron/jobs.py::_normalize_enabled_toolsets, upstream #82010) now persists an explicit [] as [] ("nothing allowed"), because normalizing it to null would read back as "no restriction". The job is created correctly; only the reconciler's expectation is stale.

Affected manifest jobs with enabledToolsets: []: Watch Hermes status fix for nightly updates, Monitor Studio services, Hermes context threshold watchdog. Reconciliation stops at the first one, so later jobs are not synchronized.

Workaround in use

2026-10-21: the new job "Watch for official Pi Durable Claude provider" (dotfiles 69128fd) was created by running reconcile_cron.py against a one-job temporary manifest; the reconciler reported it synchronized (job ea7086e8fbe4).

Acceptance criteria

  • Readback expects the manifest's enabledToolsets exactly ([] stays []), with the stale comment corrected.
  • A test_reconcile_cron case covers an empty toolset list reading back as [].
  • install.py --adopt-identical completes on Studio with every manifest job synchronized.
## Problem `python3 hermes/install.py --adopt-identical` fails cron reconciliation before reaching later manifest jobs: ``` ERROR: cron verification failed for 'Watch Hermes status fix for nightly updates': {"enabled_toolsets": {"actual": [], "expected": null}} ``` ## Cause `hermes/reconcile_cron.py` builds its readback expectation with `definition["enabledToolsets"] or None` and the comment "Hermes normalizes an explicitly empty toolset list to null." The installed Hermes (v0.22.2, `cron/jobs.py::_normalize_enabled_toolsets`, upstream #82010) now persists an explicit `[]` as `[]` ("nothing allowed"), because normalizing it to null would read back as "no restriction". The job is created correctly; only the reconciler's expectation is stale. Affected manifest jobs with `enabledToolsets: []`: Watch Hermes status fix for nightly updates, Monitor Studio services, Hermes context threshold watchdog. Reconciliation stops at the first one, so later jobs are not synchronized. ## Workaround in use 2026-10-21: the new job "Watch for official Pi Durable Claude provider" (dotfiles 69128fd) was created by running `reconcile_cron.py` against a one-job temporary manifest; the reconciler reported it synchronized (job `ea7086e8fbe4`). ## Acceptance criteria - Readback expects the manifest's `enabledToolsets` exactly (`[]` stays `[]`), with the stale comment corrected. - A `test_reconcile_cron` case covers an empty toolset list reading back as `[]`. - `install.py --adopt-identical` completes on Studio with every manifest job synchronized.
bryan closed this issue 2026-10-21 18:29:26 +00:00
Sign in to join this conversation.
No labels
ready-for-agent
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
bryan/dotfiles#25
No description provided.