Skip to content

#168 posture scheduled: join the operator's Tuesday cycle (PR B) - #171

Merged
gregoryfoster merged 13 commits into
mainfrom
168-posture-scheduled
Dec 4, 2026
Merged

gregoryfoster merged 13 commits into
mainfrom
168-posture-scheduled

Conversation

@gregoryfoster

Copy link
Copy Markdown
Member

Refs #168 (PR B of two; PR A, the daily report, is #169). Plan: docs/plans/2026-12-03-168-operator-patch-cycles.md, with its 12-04 revisions.

What changes

The cohort operator now patches co-processor in its Tuesday cycle. This PR moves the repo to match.

  • Knob: posture scheduled and window Tue 14:00-23:59. The operator launches at 03:00 Pacific and plans only a window that opens after the launch and closes the same day. The new window is clear of the broker's Mon 23:00-05:00. Comments are rewritten; records CannObserv/processor and report stay.
  • Patching: a missed window goes unnoticed — solicit approval before each window, or automate unless overridden #113's apt files are gone: processor-periodic, both processor-window.conf drop-ins, their HOST_CONFIGS rows and test_apt_automatic.py. test_apt_scheduled.py holds the node scheduled: both apt timers masked, APT::Periodic::Enable 0 (the image's own), no Automatic-Reboot true, and none of the three files installed. It skips off the node by hostname.
  • The patch-due check is off but kept. deploy.sh gains DORMANT_TIMERS (processor-patching.timer): it installs the timer, never enables it, and an interrupted deploy's advice never names it. So a rebuilt host doesn't start a check that would page due/missed every week. Status paused co-processor-patching on 2026-12-04 (status#162).
  • Tailscale SSH on record: a live RunSSH test, and NETWORK.md § Tailscale SSH (any later tailscale up carries --ssh; why SSHPolicy reads empty between runs; why a step survives tailscaled's restart).
  • Docs:
    • PATCHING.md § Patching and § The patch-due check, each with its way back;
    • AGENTS.md's Patching row (5,959 of 6,000 tokens, down from 5,962);
    • DEPLOYMENT.md and PROVISIONING.md;
    • patching.py's docstring;
    • doc-sections and SocratiCode's manifest.

Review

The code review (CR 1–4) is applied, one commit each, and CR 5 is left as is:

  • CR 1: an interrupted enable's advice left out DORMANT_TIMERS. Red first.
  • CR 2: the way back is 11ca178^, not ca03c79.
  • CR 3: the unit comments say the timer is dormant.
  • CR 4: the plan records its revisions.

Tests

uv run pytest on co-processor: everything passes except 6 live tests in test_apt_scheduled.py. Those 6 read today's host, which is still automatic, and pass after host step B7.2. Off the node (CI) they skip. ruff, ruff format and shellcheck are clean.

Gate (merge only when all hold, and before 2026-12-08 11:00Z)

  1. ✅ The first report: sent: 201 (2026-12-04 16:40:05Z).
  2. ✅ patching-hosts-report.timer is enabled.
  3. ⏳ The operator confirms co-processor is on its host list (Provisioner's change and deploy).
  4. ✅ Status paused co-processor-patching (status#162, 05:53Z).

If item 3 isn't met by 2026-12-07 23:00Z, 12-08 runs as today: attended, in the old window.

Host steps before the merge (each approved in session)

  1. sudo systemctl disable --now processor-patching.timer.
  2. Outside 12:00–14:00Z, with both apt services inactive:
    • disable --now and mask both apt timers;
    • remove /etc/apt/apt.conf.d/processor-periodic and both installed processor-window.conf drop-ins;
    • daemon-reload.
  3. uv run pytest from this branch on co-processor: green.

Then merge (fast-forward) and scripts/deploy.sh: the knob is a RUNTIME_FILES path. Drift reads ok.

Known limits

  • A -security fix waits up to 7 days (owner, 2026-12-03).
  • cadence:off-window is expected until a run lands in Tue 14:00-23:59.
  • A reboot is already due: PID 1 maps a deleted libcrypto.so.3. The 12-08 plan carries it unless the owner reboots first.
  • If the operator doesn't plan or reach the host, nothing patches it that week until an attended run in the window. A failed first contact is known by about 14:05Z.

For #84

The patch-due check comes back only once patching.py reads the operator's record issue (Patch run record: co-processor, <date>), not #113-style comments.

🤖 Generated with Claude Code

gregoryfoster and others added 13 commits December 4, 2026 19:16
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…cycle)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…les gone (red)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…op-ins)

Posture scheduled: the apt timers stay masked and APT::Periodic::Enable reads
the image's 0. deploy.sh no longer compares the three; test_apt_automatic.py
goes with them. The way back is this commit's parent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…patching.timer)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… § Tailscale SSH)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d fallback, the patch-due check off but kept

PATCHING.md § Patching and § The patch-due check (the way back to automatic, and
to the check); AGENTS.md's Patching row (no growth); DEPLOYMENT.md's
DORMANT_TIMERS and host configs; PROVISIONING.md; patching.py's docstring;
the doc-sections route and SocratiCode's manifest description.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…red)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…MERS

The test's logger check now reads the interrupt line itself: the install's own
'units from' line names every new unit, the dormant timer included.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…(three later commits changed those files)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… enabled by a deploy

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…scale ahead of B, B5's scope)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@gregoryfoster
gregoryfoster merged commit 3fa4ff6 into main Dec 4, 2026
3 checks passed
@gregoryfoster
gregoryfoster deleted the 168-posture-scheduled branch December 4, 2026 21:02
@gregoryfoster

Copy link
Copy Markdown
Member Author

Merged by fast-forward at 3fa4ff65e58f and deployed: drift ok (live is main), 21:20:54Z. Host steps and record: #168

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