Repository navigation
Description
The 2026-11-17 patch run (#113, record) left two findings open, both dormant components:
named:docker: idle, butdeploy/names it, so the operator reads what that says, then either proposes the prune or declareskeep:docker.dormant:nginx: idle, nothing names it. The skill's verdict is to prune it or declarekeep:nginx.
They are new findings, not new state: the 11-10 run reported none. The probe has reported them since the vendored skill was bumped (217364d, 8a1b79f). Until each is pruned or excepted, every patch run's before- and after-probe lists both.
What the host shows (read 2026-11-17, non-root unless noted)
Both came with the image. One apt-get install -y … nginx … docker.io docker-buildx docker-compose-v2 … at 2026-09-29 17:12Z, the exeuntu build. The skill's profile says the same of nginx: it "ships with the image, disabled, and was in the security set on six hosts: patched for nothing."
docker:
- Installed:
docker.io29.1.3,containerd2.2.1,runc1.3.4,docker-buildx0.30.1,docker-compose-v22.40.3. docker.service,docker.socketandcontainerd.serviceare alldisabled.docker.socketwas disabled 2026-10-05 (Contain the extraction child: it runs as the service user and can reach the service's secrets #2 gate 1, docs/PROVISIONING.md), since/run/docker.sockis root to thedockergroup.- The probe read it as inactive for 49 days, never started since boot, 0 containers, 0 volumes.
exedevis still in groupdocker(gid 107). That is root-equivalent the moment Docker comes back. A purge deletes the group (pruning.md,group; cf. co-watcher leftovers: docker group (exedev member) and the retired notifier backup key watcher#336).- What the repo says about it is never a use on this host:
deploy/processor.service:processoris not in groupdocker;deploy/apt/apt.conf.d/processor-periodic: the name sorts after the image'sdocker-disable-periodic-update. That file is owned by no package (dpkg -Sfinds none), so a purge leaves it, andtests/test_apt_automatic.pykeeps reading it;deploy/disk-gc/disk-gc.conf: nodockertier, because the daemon is inactive;tests/test_child.py: the child refusessocket()before any connect, so/run/docker.sockneed not exist;- CI's
redis:7.0.15service runs on GitHub's runners, not here. Tests here use the aptredis-server.
nginx:
- Installed:
nginxandnginx-common1.24.0-2ubuntu7.19. nginx.serviceisdisabled. The probe read it as inactive 48 days;/var/log/nginxis all empty files, the newest 2026-09-29.sites-enabled/defaultis the image's link. Nothing in this repo names nginx.
Proposed route (the vendored patching-hosts skill, references/pruning.md)
For each component, one stage at a time. Each stage gets its own approval in this repo's session, and every prune-plan.sh/prune.sh run escalates through sudo -n, so each is a sudo step.
- Plan:
prune-plan.sh --component docker --out <file>and--component nginx --out <file>. They change nothing. Attach the JSON or summarise it here:units,packages(remove/purge sets, held),autoremove_would_take,reverse_depends,purge_scripts,paths,conffiles,group.- Read
autoremove_would_takeclosely for docker. On noble, docker.io with its recommends orphans about 47 packages,iptables,gitandopenssh-clientamong them. Heregitandopenssh-clientwere named in the same install line, so they should be manual and stay. The plan confirms it.
- Decide
docker: prune, orexception keep:docker <review-by> <reason>. Nothing found here needs it. - Disable:
- Command:
prune.sh --stage disable --plan <fresh plan> --approve. It stops, disables and masks every unit the packages ship. - Knob line:
exception disabled:<name> <review-by> <reason>. Its review-by date is the soak: 30 days by default. - The knob is a
RUNTIME_FILESpath, so the knob change is a PR and a deploy.
- Command:
- Savepoint (optional, preferred), taken during the soak:
prune.sh --stage savepoint --plan <fresh plan> --approve. It tarballs the config and conffiles at mode 600. With it, the remove stage is skipped, and norcresidue is left holding config. - Purge, once the soak ends:
- Command:
prune.sh --stage purge --plan <fresh plan> --approve --savepoint <dir>. - nginx-common's purge script deletes
/etc/nginxand/var/log/nginx, so its purge needs--purge-data /var/log/nginx. - docker.io's purge leaves
/var/lib/docker, which holds 0 containers and 0 volumes here. Name it with--purge-dataonly if the plan lists it and the operator wants it gone. - Knob line:
exception purged:<name> <review-by> <reason>, which stays until the image stops shipping it.
- Command:
- Docs:
- docs/PROVISIONING.md: the
docker.socketrow, and thedockergroup note. - docs/MONITORING.md and
deploy/disk-gc/disk-gc.conf: the "daemon is inactive" reason for nodockertier. - docs/PATCHING.md: the knob table, for the new exception lines.
- docs/PROVISIONING.md: the
Run it outside a patch window, never during one, and pick the order with the operator. nginx is the simpler first: no group, no reverse dependants expected.
The base image
pruning.md: "Where the component shipped with the image on every host, the prune belongs in the base image instead … Until it gets there, a prune on one host is drift from that image, and the knob declares it." Both ship in exeuntu on every cohort host. A note to the image's owner is a cross-repo post, so it is drafted here first and posted only with the operator's approval (AGENTS.md § Cross-repo Policy).
Done when
- The probe on co-processor reports neither
named:dockernordormant:nginxas a finding, either because each is purged (knobpurged:) or because each is declaredkeep:with a reason. exedevis out of groupdocker, orkeep:dockerstates why it stays.- The docs above match the host.
Activity
gregoryfoster commentedon Nov 17, 2026
Brief: #143, prune the dormant docker and nginx (coordinator, epic #84, 2026-11-17)
Authorities: this issue's body is the spec. This brief adds a pre-flight against
origin/main8a1b79fand the host. The vendored skill at063ba5db(skills/patching-hosts/references/pruning.md) governs the mechanics. Where the body and the skill disagree on mechanics, follow the skill. Where they disagree on scope, stop and ask. Labels:[measured]read from the host or a registry in this pre-flight;[traced]followed through the repo or a sibling's;[stated]an issue or a person says so.What the host shows now
[measured, 2026-11-17 ~20:00Z, non-root]The body's inventory holds:
docker.io29.1.3,containerd2.2.1,runc1.3.4,docker-buildx0.30.1,docker-compose-v22.40.3,nginxandnginx-common1.24.0-2ubuntu7.19.docker.service,docker.socket,containerd.serviceandnginx.serviceare eachdisabledandinactive. None is masked yet./run/docker.sockis absent.docker:x:107:exedev.Two corrections and one refinement:
The
dockergroup adds no access forexedevhere.exedevis in groupsudo, andsudo -nworks, so it already has root.processor(uid 997) is in no group but its own. So the group is hygiene, not exposure: deleting it at the purge is right, and Tier 3 is the right tier. The body's "root-equivalent the moment Docker comes back" is true in general, but grantsexedevnothing it lacks.Upstream's "about 47 orphans" for docker.io doesn't apply here.
apt-get -s purge --autoremoveon the five docker packages takes 9 packages:pigz, the only new orphan;bridge-utils,dns-root-dataanddnsmasq-base.git,openssh-client,docker.io,docker-buildx,docker-compose-v2andnginxare marked manual.iptablesstays:tailscaleandubuntu-standarddepend on it.bridge-utils,dns-root-dataanddnsmasq-baseare orphans already.apt-get -s autoremovetakes them today, before any prune. That's why the nginx purge simulation also lists them.prune.shnever autoremoves (pruning.md: "No autoremove, ever"), so they stay unless the plan takes them by name with--take-orphans. The weighed choice is below.prune-plan.shis the reading of record. Compare itsautoremove_would_takeandpackagesagainst the above, and say on the issue where they differ.Cohort precedents
[traced: each repo's .skills/patching-hosts]disabled:nginxanddisabled:docker, masked 2026-11-13disabled:nginx, masked 2026-11-17disabled:nginxtests/test_patching_knob.py::test_the_knob_reads_cleanassertsfindings == []. Adisabled:line's review-by passing turns into a finding, and CI goes red by calendar. Archiver'stests/deploy/test_patching_knob.py(_assert_clean,PRUNE_STAGES = ("disabled:", "removed:")) lets an expired exception through only on a prune-stage line, and keeps every other finding red. pruning.md asks for exactly that: "A repo that tests its knob allowssoak-endedon adisabled:orremoved:line". Port it test-first, before the firstdisabled:line lands. Whether the reader reports it assoak-endedorexpired-exceptionat this pin is for you to read fromread-knob.sh; archiver's filter matchesexpired-exception.Shape: two phases, two deploys
.skills/patching-hostsis aRUNTIME_FILESpath (src/processor/drift.py:65). So each knob change is a PR, thenscripts/deploy.sh, which restartsprocessorfor a few seconds. Deploys don't wait for a window (PATCHING.md).prune-plan.shfor each component;disablefor both;exception disabled:<name> <review-by> <reason>plus the ported test, as one PR and one deploy, with the docs left as they are (the host still matches them while the units are only masked);Refs #143, notCloses.purgewith--savepoint;exception purged:<name> <review-by> <reason>, since exeuntu keeps shipping both;Operator decisions
keep:docker— recommend prune. Nothing on this host uses it (the body's survey, andprocessorisn't in the group), and archiver pruned both.]--take-orphans— recommend no. It would namepigz(docker's one new orphan) and pull in the three orphans that predate the prune. They're harmless, and taking them widens the change past the issue.]--purge-data /var/lib/docker— recommend yes, if the plan lists it. It's root-only, with 0 containers and 0 volumes per the patch run's probe[stated: #113 comment 6956497896].--purge-data /var/log/nginxis required, per the body.]Starting the thread approves the recommendations. Every
prune-plan.shandprune.shrun escalates throughsudo -nby itself (this issue's body; PATCHING.md:61 forprobe.sh), so each one is a sudo step that needs approval in this repo's session. A plan binds one stage and expires in 24 h: take a fresh one for each stage.Every mention on
origin/main[traced: git grep -i 'docker|nginx', skills-vendor and uv.lock excluded]The body names PROVISIONING, MONITORING,
disk-gc.confand PATCHING. The search finds more. Each row is a recommendation to weigh:docs/PROVISIONING.md:19,:175,:193docker.socketrow, its rationale, and theis-enabled docker.socketcheckdpkg -s docker.ioabsentdocs/PROVISIONING.md:18,AGENTS.md:40,deploy/processor.service:12processor… not indocker"deploy/disk-gc/disk-gc.conf:12,docs/MONITORING.md:132dockertier "because the daemon is inactive"tests/test_disk_gc.py:68still holdsdocs/PATCHING.md:71docker: "Docker and containerd are disabled and inactive"[traced: grep]docs/SOCRATICODE.md:144-145, not in the bodydocker.socketis disabled (#2)"tests/test_child.py:380/run/docker.sockparameter, "each when present"socket()before any pathtests/test_apt_automatic.py:55,deploy/apt/apt.conf.d/processor-periodic:5docker-disable-periodic-update/etc/apt/apt.conf.d/docker-*[measured: dpkg -S]; they're the image's apt files, so the purge leaves them:345,:365;src/processor/_contain.py:14;docs/plans/*.github/workflows/ci.yml,tests/test_ci.pyDoc headroom (exact counts from the 2026-11-10 measurement; sizes unchanged or smaller since): PATCHING.md 8,690 / 10,000; PROVISIONING.md 8,299; MONITORING.md 7,629; AGENTS.md 5,945 / 6,000. Phase 2 should be net-neutral.
The base image
CannObserv/provisioner's co-image-base is
FROMexeuntu with no apt removal (image/Dockerfile)[traced]. So moving co-processor onto it (CannObserv/provisioner#16, group 3) drops neither package, and thepurged:lines outlive the move. No CannObserv/provisioner issue asks the image to drop them yet[measured: issue search]. Archiver, watcher and index carry the same drift. Draft the note on this issue and stop. It's a cross-repo post, and the operator approves it (AGENTS.md § Cross-repo Policy). It doesn't block either phase.Who closes, and when
named:dockernordormant:nginx. Its closing comment names the final SHA and the probe's run directory.Out of scope
--take-orphans);gregoryfoster commentedon Nov 17, 2026
Phase 1 pre-flight: corrections to the brief (2026-11-17 ~21:10Z)
Read against
origin/main8a1b79f, the skill at063ba5db, and the host. The operator approved the brief's four recommendations (prune docker, 7-day soak, no--take-orphans,--purge-data /var/lib/dockerif listed) and the twoprune-plan.shruns below.The plans
[measured: prune-plan.sh, 2026-11-17T21:06Z, both exit 0, not_read empty]They match the brief on packages, units, holds and the group:
nginx,nginx-common. No drag-along, nothing held, no reverse dependants.autoremove_would_takeis empty: the three pre-existing orphans aren't nginx's, so the plan leaves them out.docker.io,containerd,runc,docker-buildx,docker-compose-v2.autoremove_would_take=pigzonly. Groupdocker, membersexedev.nginx.service,docker.socket,docker.service,containerd.service, eachdisabled/inactive, unit files under/usr/lib/systemd/system, so the disable masks all four.declared: none,next: disable.Corrections
soak-ended, notexpired-exception, at this pin._knob-lib.sh:657-670(#636) gives a passeddisabled:/removed:line kindsoak-ended. Every other passed line,purged:included, staysexpired-exception. knob.md:65 asks a repo's test to allow exactly that. Archiver's_assert_cleanmatchesexpired-exception, so copied verbatim it would go red on 2026-11-25. The port matchessoak-endedon a prune-stage line and keeps everything else red.--todaypast it):disabled:andremoved:pass,purged:andkeep:stay red. That's red before the helper exists, so the test comes first, ahead of thedisabled:lines./var/lib/containerd(96 KiB) as data, beside/var/lib/docker(184 KiB, only abuildkit/dir). Both were created 2026-09-30 19:50Z, so the daemon ran once the day after the image build, and never since boot./etc/dockeris empty./var/www(16 KiB, an emptyhtml/) as data. nginx-common's purge script deletes/var/lib/nginx(empty),/var/log/nginxand/etc/nginx. So--purge-data /var/log/nginxis required, as the body says./var/wwwstays unless named./etc/docker. nginx has four:/etc/default/nginx,/etc/init.d/nginx,/etc/logrotate.d/nginxand/etc/ufw/applications.d/nginx. The savepoint keeps them.today > review-by), so:kept, not as findings (probe.sh:120);soak-ended, and with it the purge, is due from 2026-11-25, clear of the window.docker.socketreadsmasked, notdisabled. That affects docs/PROVISIONING.md:194's check (systemctl is-enabled docker.socket # disabled) and its row at :19. The brief leaves the docs to phase 2, so phase 1 leaves them, and the check's comment is stale while the unit is masked. Nothing automated runs that check (git grepfinds no other caller), so no test goes red. Phase 2 retires it.src/processor/patching.pyparses onlywindowlines (parse_windows), soexceptionlines can't trip the hourly patching check. The knob is still aRUNTIME_FILESpath, so the PR needs a deploy.No scope disagreement found, so phase 1 goes ahead as briefed.
gregoryfoster commentedon Nov 17, 2026
DRAFT, not posted: proposed new issue on CannObserv/provisioner (the base-image note)
Title: co-image-base: exeuntu's dormant nginx and docker, pruned host by host, are drift from the image
Body:
Every exeuntu build installs
nginx/nginx-commonanddocker.io,containerd,runc,docker-buildxanddocker-compose-v2. They come in oneapt-get install; on co-processor that ran 2026-09-29 17:12Z. co-image-base isFROMexeuntu, andimage/Dockerfilecarries no apt removal, so moving a host onto it (#16) keeps both.Hosts that pruned them, or are pruning them, through patching-hosts'
prune.sh(pruning.md: "a prune on one host is drift from that image, and the knob declares it"):disabled:nginx,disabled:docker; purge planned (archiver#512)disabled:nginxdisabled:nginxdisabled:nginx,disabled:docker, masked 2026-11-17; purge from 2026-11-25Each ends with an
exception purged:<name>line that stays as long as the image ships the component.Two things limit what the image can take on:
image/Dockerfile, owner 2026-10-01): "only fixes every host needs", and "COPY and LABEL only, no RUN". Anapt-get purgeis a RUN, so a removal in the image breaks the rule as it stands.docker buildx(#40 test: deterministic reclaim test; sweep of timing margins in tests/ #41). nginx has no exe.dev cohort user that we know of.Asks, in your order of preference:
purged:nginxline as declared drift.purged:dockerare the intended shape for every other host.image/README.mdnaming the hosts that prune them would let the next image bump re-check the drift.Not blocking anything: #143's phase 2 goes ahead either way.
gregoryfoster commentedon Nov 17, 2026
Phase 1: done on the host, PR open, shipping paused (2026-11-17)
PR #145 (
Refs #143), head961ab930274edafc4b2950c7cbfe7125187b4b3a(11e3f1c..961ab93, 5 commits). Not merged yet: the operator ships it. Corrections to the brief: the pre-flight comment.prune-plan.sh, 21:06Z) match the brief. docker's only new orphan ispigz; nginx takes none.prune.sh --stage disable --approveat 21:57Z maskednginx.service,docker.socket,docker.serviceandcontainerd.service. Each wasdisabled/inactivebefore. Logs:/var/backups/patching-hosts-prune-{nginx,docker}/disable.log.config.tar(/etc/nginxplus 4 conffiles) is sha256120a38d7245c8877cd1ce95ce7d83210eb8fcb51109d1100d5746b14788ad1b8. docker's (/etc/docker, empty) is85c544c770f5475cce3c6a0058fea0911ab2e56ba1363c3e98070e4c1372e9a6.exception disabled:nginxanddisabled:docker, review-by 2026-11-24. The knob test now allowssoak-endedon adisabled:/removed:line and keeps every other expiry red (purged:included), test-first. CR 1–3 fixed, 4 stet, 5 held (PR body).prune-plan.shandprune.shrun (12) was approved one by one in the session, and all ran outside the Tue 2026-11-24 05:00–10:00Z window.The soak
Review-by 2026-11-24 for both. The reader expires a line only after its date. So the 11-24 window's probe reads both as
kept, andsoak-ended(the purge's prompt) is due from 2026-11-25, clear of the window.Post-merge host steps (operator, once CI is green on
961ab93)/home/exedev/processor:git fetch origin && git merge --ff-only origin/143-prune-docker-nginx && git push origin main(docs/SKILLS.md § Merging underpr; never GitHub's button)..skills/patching-hostsis aRUNTIME_FILESpath (src/processor/drift.py:65). Runscripts/deploy.shin the background and readjournalctl -t processor-deployfor the verdict.processorrestarts for a few seconds; no window needed. Skip it and the drift check alerts 8 h after the push.cat /srv/processor/live/REVISIONreads961ab9302740;systemctl is-active processoris active;bash skills/patching-hosts/scripts/read-knob.sh --host co-processorfrom the checkout givesfindings: [];systemctl is-enabled nginx.service docker.socket docker.service containerd.servicereadsmaskedfor each.probe.shdry run (a sudo step) should list docker and nginx underdormantwith verdictkept, and neithernamed:dockernordormant:nginxas a finding.sudo systemctl unmaskthe unit. Every unit wasdisabled/inactivebefore, so nothing to enable or start. Then drop its knob line in a PR.Follow-up:
prune.sh --stage purge --approve --savepoint /var/backups/patching-hosts-prune-<name>with--purge-data; the knob'spurged:lines; the docs (the brief's table); one PR and one deploy; then close Prune the image's dormant docker and nginx from co-processor (or declare keep) #143.Known limits:
keptcomes from probe.sh:120 andread-knob.sh, not from a probe reading.is-enabled docker.socket # disabled) and its row at :19 now mismatch the host (masked) until phase 2 retires them (CR 5, held to the brief's scope).prune.shsays to dump the data off the node before the purge:/var/www(an emptyhtml/) and/var/log/nginx(empty logs),/var/lib/docker(buildkit/only) and/var/lib/containerd. Measured near-empty; phase 2 decides whether a dump is worth it.exedevstays in groupdockeruntil the purge'sgroupdel. It already hassudo, so the group adds nothing (brief correction 1).For #143:
--purge-data:/var/log/nginxis required: nginx-common's purge script deletes it, and the purge refuses until it's named./var/lib/docker./var/lib/containerd(96 KiB) and/var/www(16 KiB), which no decision covers yet. Ask the operator.test_the_dormant_components_are_prunedacceptspurged:lines and a staggered order (CR 1).test_the_knobs_own_soaks_end_greenskips once nodisabled:line is left.For #84:
soak-endeddate and phase 2's re-brief. Ship #143 prune docker and nginx, phase 1: disabled: lines and the soak-safe knob test #145 first; the deploy is the only open phase-1 step.gregoryfoster commentedon Nov 18, 2026
Phase 1 shipped (2026-11-18): PR #145 fast-forwarded
mainto961ab930274edafc4b2950c7cbfe7125187b4b3a; CI passed on it (run).scripts/deploy.shexited 0:/srv/processor/live/REVISION=961ab930274e, containmentrequired, the smoke run passed,processoris active with 0 warnings since. The live knob declaresdisabled:nginxanddisabled:docker, andread-knob.shgivesfindings: []. All four units readmasked. Post-merge steps 1–3 are done; step 4 (a probe) didn't run. #143 stays open for phase 2, from 2026-11-25.gregoryfoster commentedon Nov 18, 2026
Corrected 2026-11-23: the note is CannObserv/provisioner#164, filed by this issue's phase 1 thread at 2026-11-18T05:47Z. The coordinator didn't search again before posting, so it filed the same note a second time as
CannObserv/provisioner#165. #165 is now closed as a duplicate of #164.The base-image note drafted above (comment 6964631233) is filed as CannObserv/provisioner#165, with the operator's approval (2026-11-18).One change from the draft: the archiver purge ref is written in full (CannObserv/archiver#512) so it links from the provisioner repo. It blocks nothing here; phase 2 goes ahead from 2026-11-25 either way.gregoryfoster commentedon Nov 18, 2026
Operator decision (2026-11-18), for phase 2's
--purge-data: the purge also deletes/var/lib/containerdand/var/www.So phase 2's paths are:
--purge-data /var/log/nginx(required: nginx-common's purge script deletes it) and--purge-data /var/www.--purge-data /var/lib/docker(decided 2026-11-17) and--purge-data /var/lib/containerd.As measured on 2026-11-17 by phase 1's plans
[stated: the pre-flight comment above]:/var/lib/containerd: 96 KiB;/var/lib/docker: 184 KiB, abuildkit/directory only;/var/www: 16 KiB, an emptyhtml/;/var/log/nginx: empty logs.Phase 2 takes fresh plans, so re-read each path's contents from them before the purge. If any path holds more than the above (a container, a volume, a non-empty site, a non-empty log), stop and ask before deleting it. With these contents, no off-node dump is planned; the savepoints keep the config.
gregoryfoster commentedon Nov 24, 2026
Phase 2 rescheduled [operator, 2026-11-24]: the purge, the knob PR and its
scripts/deploy.shdeploy happen on Thu 2026-11-26, around 23:00Z (15:00 PST). Not on Wed 11-25.Why: the broker has two windows that week. On Wed 2026-11-25 23:00Z to Thu 05:00Z it runs an OS patch catch-up (CannObserv/broker#153). On Fri 2026-11-27 from 17:00Z it moves to Valkey (CannObserv/broker#85). Broker asked every consumer not to deploy on either day (processor#54). Thursday 23:00Z is clear of both.
gregoryfoster commentedon Nov 24, 2026
Notes for #143, collected by the coordinator (epic #84), 2026-11-24, from #147 (PR #151, FF
c817b34..056d23e; source: #147 comment 7142490286):.skills/attest-local-gateisonfrom056d23e. Ship from a clean worktree, submodules included:push.shrefuses untracked files and submodule edits, and asks the gate before it pushes. That takes about 2 minutes unless this tree's pass is already stamped.attestreadsattested=yes,pytestis skipped, andpytest (integration)runs 60 tests. After the fast-forward,main's push run runs the full suite; that's the rundeploy.shreads.056d23eor later.gregoryfoster commentedon Nov 26, 2026
Brief: #143 phase 2, savepoint purge of docker and nginx (coordinator, epic #84, 2026-11-26)
Authorities:
--purge-datadecision (comment 6979810559) and the schedule (comment 7133060071).patching-hostsat the vendored9443df67(PR chore: update skills submodules #150):references/pruning.md§ The calendar.origin/main056d23eand the host.Labels:
[measured]: run in this pre-flight;[traced]: read in the code or docs;[stated]: a comment says so.Clear to run today
[measured, 2026-11-26T16:0xZ]consumer loop error; backing offwarnings (00:15:59Z, 00:16:10Z), then oneconsumer loop recovered(00:16:18Z,after_failures2,PRIORITY=6).NRestarts0, MainPID 345.read-knob.sh --host co-processorreportssoak-endedfordisabled:nginx(line 73) anddisabled:docker(line 74). Each plan'sstagereads "remove, or savepoint then purge".The fresh plans
[measured: prune-plan.sh at 9443df67, no --take-orphans; exit 0, not_read empty]They match the 2026-11-17 contents exactly (comments 6961029634 and 6979810559), so no stop is needed.
masked,inactive)nginx.servicedocker.socket,docker.service,containerd.servicenginx,nginx-commondocker.io,containerd,runc,docker-buildx,docker-compose-v2autoremove_would_takepigz(left, per the no---take-orphansdecision)/etc/nginx84 KiB, plus 4 conffiles/etc/docker4 KiB/var/www16,/var/log/nginx4/var/lib/docker184,/var/lib/containerd96/var/lib/nginx,/var/log/nginx,/etc/nginxdocker, membersexedev: dropped, then the group is deletedThe run (every
sudostep approved by the operator in this repo's session)Fresh plans:
prune-plan.sh --component <name> --out <run>/plan.jsonfor each.The savepoints: check the 2026-11-17 savepoints still pass, at
/var/backups/patching-hosts-prune-nginxand-docker(root-only, comment 6964639871).prune.shrefuses a savepoint whose record isn't this component's on this host, or whose tarball's sha256 has changed.The purges, nginx then docker:
prune.sh --stage purge --plan <plan> --approve --savepoint /var/backups/patching-hosts-prune-nginx --purge-data /var/log/nginx --purge-data /var/www;prune.sh --stage purge --plan <plan> --approve --savepoint /var/backups/patching-hosts-prune-docker --purge-data /var/lib/docker --purge-data /var/lib/containerd.Run
prune.shthroughsudofromexedev; its knob commands refuse to run as root.Afterwards:
dpkg -lshows none of the seven packages, not even asrc;getent group dockeris empty;processoris still active withNRestarts0, since the purge restarts nothing of ours;probe.sh/read-knob.shstop namingnamed:dockeranddormant:nginx.What it touches on
main[traced on 056d23e].skills/patching-hosts:66-74disabled:→exception purged:<name> <review-by> <reason>(pruning.md's purge row), and rewrite the block's comment. Archiver's shape: CannObserv/archiver.skills/patching-hosts:98-99. Keep' #'out of reasons (test_patching_knob's reason test)tests/test_patching_knob.py:145-153test_the_dormant_components_are_prunedalready allows any stage; its docstring says "disabled:thenpurged:". Check that it and thesoak-endedallowance still hold forpurged:: apurged:line's expiry isexpired-exception, which stays reddocs/PATCHING.md:71docker(containerd) step goes: nothing is installed to holddocs/PROVISIONING.md:18-19, 175, 193docker.socketdisabled → purged 2026-11-26 (#143).:193'ssystemctl is-enabled docker.socketcheck no longer applies. History stays as writtendocs/MONITORING.md:132,deploy/disk-gc/disk-gc.conf:12deploy/is a runtime path: this PR deploys anywayAGENTS.md:40docker" is still true, with no group at all. Leave it unless.skills/context-budgetallows a word (5,959 of 6,000 per PR #152)Operator decision
purged:lines' review-by date — recommend 2027-02-23 (a Tuesday, 89 days, inside the skill's 90).purged:line's date is only a recheck of whether the base image still ships the component. CannObserv/provisioner#164 has had no reply.expired-exception, andtests/test_patching_knob.pygoes red. That reddensmain's CI and blocks deploys. So the coordinator adds the renewal to Standing checks.2026-12-21). That's shorter, and the renewal lands over the holidays.]Starting the thread approves the recommendation.
Order and timing
attestattested=yes,pytestskipped, andpytest (integration)run.scripts/deploy.sharound 23:00Z, and finish before 2026-11-27T00:00Z. Broker asked for no Processor deploy on Fri 11-27 (UTC), the day of its Valkey window from 17:00Z. If the deploy would cross midnight UTC, stop after the merge and deploy Sat 11-28. The drift check alerts only after 8 h.REVISION= the merge,read-knob.shfindings[], the patching checkok.Done when
.skills/patching-hostsholds the twopurged:lines, andread-knob.sh --host co-processorreports[].REVISIONis the merge;NRestarts0; the deploy reads "smoke run passed"; driftok.Closes #143.Out of scope
--take-orphansandpigz.purged:lines stay.gregoryfoster commentedon Nov 26, 2026
Phase 2 pre-flight: corrections to the brief (2026-11-26 ~21:30Z)
Read against
origin/main056d23e, the skill at9443df67, and the host (non-root). Starting this thread approves the brief's decision:purged:review-by 2027-02-23.Confirmed as the brief says
[measured]: all four unitsmasked/inactive; the seven packagesii, pluspigz;docker:x:107:exedev; both savepoint dirs present (root, 700);read-knob.shgivessoak-endedon lines 73 and 74 only;processoractive, MainPID 345,NRestarts0; liveREVISION4127d5cb8432. The line refs in "What it touches" hold on056d23e./etc/apt/apt.conf.d/docker-disable-periodic-updateis owned by no package (dpkg -S), so the purge leaves it andtests/test_apt_automatic.pykeeps reading it.Corrections:
1.24.0-2ubuntu7.21, not the savepoint's7.19. unattended-upgrades took it at 2026-11-20 13:58:45Z (dpkg.log). Not a stop: the purge's savepoint gate (prune.sh:325-353) checks only the record's component and host, thatversionsexists, andconfig.tar's sha256. A restore from it installs whatever the archive still carries (pruning.md: the versions list says what was there, not what can come back).docs/SOCRATICODE.md:144-145, "No Docker here:docker.socketis disabled (Contain the extraction child: it runs as the service user and can reach the service's secrets #2)" → purged (Prune the image's dormant docker and nginx from co-processor (or declare keep) #143). Added to this PR.tests/test_child.py:380's/run/docker.sockcase already skips here (absent here: the socket has been gone since the mask). After the purge it always skips on this host. It stays: it guards a Docker coming back. Recorded under Known limits.Unchanged:
AGENTS.md:40(still true, no group at all);deploy/processor.service:12and the spec's history;tests/test_disk_gc.py:68's name (still true).Timing: deploy around 23:00Z, finished before 2026-11-27T00:00Z (the brief's; Fri 11-27 is Broker's Valkey day), else Sat 11-28.
gregoryfoster commentedon Nov 26, 2026
Phase 2: both purged on the host (2026-11-26, 22:17Z)
Every
sudostep was approved by the operator in this session. Scripts from the skill at9443df67, run asexedev(they escalate withsudo -n).Plans (
prune-plan.sh, 21:22Z, no--take-orphans): exit 0,not_readempty. They match the brief's table: the units, the package sets,pigzthe only orphan, groupdocker/exedev, and data at 16/4/184/96 KiB. nginx is1.24.0-2ubuntu7.21(correction 1).The data, re-read before the purge:
/var/log/nginx: two empty logs./var/www/htmlwas not empty, unlike 11-17's record: two image placeholders, unchanged since 2026-09-29 and owned by no package. They are nginx'sindex.nginx-debian.html(615 B) and exeuntu'sindex.html(860 B, the__HOSTNAME__"served with nginx" template). The operator confirmed the deletion anyway./var/lib/dockerand/var/lib/containerd(rootfind): 9 files, all state databases.containers/empty, no volumes, empty snapshot directories.The savepoints:
prune.sh --stage purgewithout--approvegavecalendar.savepoint: trueanddrift.matches: truefor both. The only refusal was the missing approval.The purges,
--approve, both exit 0 withverdict ok:apt-get purge nginx nginx-common,rm -rf /var/log/nginx,rm -rf /var/www.apt-get purge docker-buildx docker-compose-v2 docker.io containerd runc,gpasswd -d exedev docker,groupdel docker,rm -rf /var/lib/docker,rm -rf /var/lib/containerd.Step 4's checks (22:18Z):
dpkg -lfinds none of the seven: 0ii/rclines.getent group dockeris empty, andid exedevno longer lists it./var/www,/var/log/nginx,/var/lib/docker,/var/lib/containerd,/etc/nginx,/etc/docker: all gone.processorisactive,NRestarts0, MainPID 345.read-knob.sh --host co-processoron the PR's knob givesfindings: []. The probe wasn't run: see Known limits./etc/systemd/system/{nginx,docker,containerd}.service,docker.socket→/dev/null) stay, by design (pruning.md: "The masks stay", so a reinstall stays down).pigz2.8-1 stays (out of scope).Also:
/etc/cannobserv/disk-gc/disk-gc.confinstalled from the branch at 22:26Z (approved; the one-line comment change), sotest_installed_copy_matches_trackedpasses in the gate.PR #154 (
Closes #143), head787ed8c.gregoryfoster commentedon Nov 26, 2026
Phase 2: PR #154 ready, paused for the operator before the merge (2026-11-26 ~22:32Z)
PR #154 (
Closes #143), head787ed8c67d2062dedb637f46edf2e7e4613e3a81(056d23e..787ed8c, 4 commits). The host record is in comment 7204730153..skills/patching-hosts:exception purged:nginxandpurged:docker, review-by 2027-02-23, with the block's comment rewritten.read-knob.sh --host co-processor→findings: [].test_the_dormant_components_are_purgedrequires exactly the twopurged:lines: red first (43934b3), then green (9344dcf).dockerstep is gone), PROVISIONING.md (row, prerequisite, check), MONITORING.md,deploy/disk-gc/disk-gc.conf, SOCRATICODE.md.14eb68d,787ed8c); 3–5 stet (below).787ed8c(run 45905121765):lintsuccess;testsuccess, withattested=yes,pytestskipped andpytest (integration)60 passed;uv auditsuccess. This is the second attested push.scripts/deploy.sharound 23:00Z, finished before 2026-11-27T00:00Z, else Sat 11-28. Close once deployed and verified.Known limits:
probe.shran after the purge (a sudo step outside the four approved). That the probe stops namingnamed:dockeranddormant:nginxcomes fromread-knob.sh→[]and the packages being gone, not from a probe reading.test_the_knobs_own_soaks_end_greennow always skips, since nodisabled:orremoved:line is left.tests/test_child.py's/run/docker.sockcase always skips on this host. Both stay as guards (CR 3)./etc/cannobserv/disk-gc/disk-gc.confwas installed from the branch before the merge (CR 4). Until the FF merge,main's checkout failstest_installed_copy_matches_tracked.versionsname nginx7.19;7.21was purged. Their config is 11-17's, so a restore installs whatever the archive still carries./var/wwwheld two image placeholders, not an emptyhtml/; the operator confirmed its deletion.For #84:
purged:lines before 2027-02-23. Past it,test_the_knob_reads_cleangoes red onmainand every PR, which blocks deploys (CR 5). Drop the lines instead if CannObserv/provisioner#164 lands and the image stops shipping them./var/backups/patching-hosts-prune-{nginx,docker}(root, 600; config tarballs plus the logs of this run) have no stated retention. Decide whether to keep or delete them.gregoryfoster commentedon Nov 26, 2026
Phase 2: deployed and verified (2026-11-26, 22:55–23:00Z)
PR #154 was fast-forwarded at 22:33:15Z (
056d23e..787ed8c). ThroughCloses, that closed this issue at 22:33:17Z, before the deploy; the brief had it close after. The checks below finish the record.probe.sh, read-only, approved; 22:33Z):findings: [].dormantlists onlyredis(in-use), and no longer docker or nginx.787ed8c:lintsuccess,testsuccess. The full suite ran (1117 passed, 41 skipped). That's the rundeploy.shreads.scripts/deploy.sh 787ed8c…, 22:55:20–22:55:38Z, exit 0):CI passed for 787ed8c67d20;live -> 787ed8c67d20 (was releases/4127d5cb8432);live is on 787ed8c67d20: pid 115936 logged starting (child_containment required), then consuming; the smoke run passed./srv/processor/live/REVISIONis787ed8c67d20;processorisactive, MainPID 115936,NRestarts0;read-knob.sh --config /srv/processor/live/.skills/patching-hosts --host co-processor→findings: [].kind: ok, "live 787ed8c is main", checkin 202.kind: ok, checkin 202.Done, finished before 2026-11-27T00:00Z.
For #84:
attested=yes,pytestskipped, andpytest (integration)60 passed.purged:lines before 2027-02-23 (see comment 7204755604).