Repository navigation
fix(tailscale)!: add the ubuntu-26.04 apt suite section, its disposable bed, and fix the build-scope check - #8
Merged
Conversation
…uite The tailscale apt repo is declared only under a VERSION-SPECIFIC `ubuntu-24.04:` section, so an Ubuntu 26.04 image matches no section at all and gets neither the repo nor the package. Ubuntu 26.04 is the org default (opencharly/charly#1177), so this adds the matching `ubuntu-26.04:` section. ubuntu-24.04: <- unchanged, still noble: correct for 24.04 repo: tailscale … noble.noarmor.gpg / suite: noble ubuntu-26.04: <- NEW repo: tailscale … resolute.noarmor.gpg / suite: resolute WHY THE OBVIOUS ONE-LINE FIX WOULD HAVE BEEN WRONG, and I caught it before pushing: my first pass rewrote the existing block in place (`noble` -> `resolute`). That block is inside `ubuntu-24.04:`, so the edit would have declared a 24.04 section serving the 26.04 suite - self-contradictory, and it would have broken 24.04 consumers while still leaving 26.04 with no matching section. The versioned key has to be ADDED, not repurposed. Note the packages union with the generic `ubuntu:` section, so the new section declares only what differs from it (container-nesting: the `tailscale` package; layer-tailscale declares no package list at all, only the repo). The suite itself was verified end-to-end earlier in this campaign, in a disposable ubuntu:26.04: `apt-get update` accepted `resolute.noarmor.gpg` + `suite resolute`, and `apt-cache policy tailscale` reported `Candidate: 1.104.7`. A 200 on the key URL alone would not have proved that. validate: OK - 0 warnings, 0 errors Refs opencharly/distro-ubuntu#65, opencharly/charly#1177. Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)
Adds the in-repo assertion the review asked for: a build-scope check that FAILS without the
ubuntu-26.04 distro section, on the 26.04 guest, with no external fixture.
- check: the 26.04 guest's tailscale repo names the resolute suite, not a stale one
command: grep -q 'pkgs[.]tailscale[.]com/stable/ubuntu resolute' /etc/apt/sources.list.d/tailscale.list
run_as: root
exclude_distro: [ubuntu:24.04, ubuntu-24.04, debian, debian-13, fedora, arch]
WHY THIS SHAPE, and what my first attempt got wrong: I first wrote it as a distro-agnostic comparison
against the guest's own codename (`. /etc/os-release; grep "ubuntu ${VERSION_CODENAME}" …`). Charly
rejected it as an "assertion is DEAD": a check step resolves only the runner's auto-exported names, so
`$VERSION_CODENAME` can never resolve there. The variable-free form is what actually runs - and it is
scoped by `exclude_distro` so it is skipped on 24.04, which keeps `noble` by design.
MEASURED, both directions, through a real image:
$ charly box build --no-cache tailscale-suite-test # ubuntu:26.04, composes this candy
$ charly check box tailscale-suite-test
PASS check the 26.04 guest's tailscale repo names the resolute suite … [plan:candy:tailscale:1] exit=0
# the pre-fix states, in a disposable ubuntu:26.04:
# repo file says `noble` -> grep fails
# no repo file at all -> grep fails
FAIL as expected: the assertion rejects the stale noble suite
FAIL as expected: no repo file at all
The --no-cache matters: the plan is baked into the image as an OCI label, so a cached image carries the
PREVIOUS plan and reports the previous check text. That cost me a confusing run and is worth knowing.
A NOTE ON A PRE-EXISTING FAILURE, not caused by this commit: `tailscaled-unit-enabled` exits 127 in the
build scope (`systemctl` absent from a plain container), so `check box` reports rc=2 for this candy
regardless of this change. It is unrelated to the suite and is being filed separately rather than
folded into this PR.
validate: OK - 1 candy, 6 distros, 7 builders; 0 warnings, 0 errors
Refs #4, opencharly/distro-ubuntu#65.
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
…x the build-scope check that blocked it
Two changes, because the first could not be green without the second.
1. A DISPOSABLE TARGET. The candy had none - no box in the org composes it - so every previous
round's "live proof" was an ad-hoc box kept out of the diff. It now ships one:
tailscale-suite-test ubuntu:26.04 image composing this candy
check-tailscale-suite-pod pod: {image: tailscale-suite-test, disposable: true, lifecycle: dev}
check: the guest's repo names the resolute suite
MEASURED, the full disposable sequence:
$ charly -C <layer-tailscale> check run check-tailscale-suite-pod
PASS (steps=16)
including [check-image], [check-live], [update], [check-live-rebuild], [cleanup]. Reverting the
ubuntu-26.04 distro section makes the plan's check FAIL - that is the falsifiability the review
asked for, now enforced by a target that exists rather than one authored in /tmp.
2. THE PRE-EXISTING CHECK THAT MADE `check box` PERMANENTLY RED. The first run of the new bed failed
at [check-image], not on the suite but on:
FAIL check the tailscaled systemd unit is enabled ... exit=127
command: systemctl is-enabled tailscaled.service
A build stage has no running init, so that check can only ever fail there - and the candy's own
`run:` step already tolerates the same absence with `|| true`. It now asserts what the BUILD can
prove (the unit file exists, which is what the enable step acts on) and leaves "enabled" to a
deploy-scope check. That is #5, fixed here rather than left filed.
Also adds the `.gitignore` this repo was missing: `.build/`, `.check/`, `.containerignore` and
`.dockerignore` are build outputs, and a `git add -A` in this session swept 22 files of them into the
first version of this commit before I caught it. They are not tracked by any sibling repo either.
validate: OK - 1 candy, 1 box, 1 deploy, 6 distros, 7 builders; 0 warnings, 0 errors
Refs #4, #5, opencharly/distro-ubuntu#65.
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
The ADE review was right that the new box shipped as a bare candy composition: no description, no plan, no check. It now carries both, so `charly box build` alone reports whether the apt repo the candy declares names the right suite, without needing the pod bed to be driven. The bed keeps its own copy of the assertion on purpose: the box check proves the IMAGE, the bed check proves the DEPLOYED target. Refs #6, #7. Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
…resence The ADE review was right: the step was labelled "the apt repo file names the suite this release actually uses" and implemented as a `file:` probe, which only proves the file EXISTS. A noble suite in that file would have satisfied it. It is now a `command:` grep for `pkgs.tailscale.com/stable/ubuntu resolute`, matching what the bed's own check asserts. The two still differ in what they prove, and both are kept: box check -> the IMAGE the composition produces bed check -> the DEPLOYED target after bring-up Refs #6. Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
R2: the predicate was spelled verbatim in the candy plan, the box plan and the bed plan. A candy plan is composed into the image's plan, so the CANDY's copy is the one that runs in both contexts - the box build and the bed's live phase - and the other two were the same sentence said twice. The box and the bed keep what is theirs: the box is the composition, the bed is the disposable target plus the full build/deploy/rebuild/cleanup sequence. Neither needs its own copy of the assertion to have a plan. MEASURED after the dedup: check-tailscale-suite-pod PASS (steps=16) - the bed still fails without the ubuntu-26.04 section, because the surviving predicate is the candy's and it reads the repo file that section writes. Refs #6. Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
Two review findings pulled in opposite directions and the right answer satisfied both:
ADE - a box must have a plan/check, or it ships an untested image.
R2 - the same predicate must not be spelled twice.
My dedup satisfied R2 by DELETING the box's plan, which broke ADE. The resolution is `include:`:
plan:
- include: candy:tailscale
The box composes the candy's plan - one predicate, defined once - and still reports the assertion
when built on its own.
MEASURED: check-tailscale-suite-pod PASS (steps=16).
Refs #6.
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
Review — PASSHead SHA: Security screen: PASS — no secrets, no weakened guardrails, no embedded directives, no supply-chain change; scope matches the body (26.04 section, suite check, unit-check fix, disposable bed, Checklist: All applicable rules PASS or NA.
Comment thread: empty (0 comments) — nothing to disposition. Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
This was referenced Nov 17, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Three things, because the first could not be proven without the other two:
ubuntu:26.04test image plus adisposable: truepod bed that asserts the apt suite.ubuntu-26.04:distro:entry that the bed gates.tailscaled-unit-enabledcould never pass at build scope.Plus the
.gitignorethis repo was missing.Successor to #6 (itself the successor to #4), auto-closed by the validator after 5 counting verdicts
(
AI_REVIEW_AUTO_CLOSE_AFTER=5) with the instruction "open a clean pull request from a fresh branch andthread". Same two commits, cherry-picked onto a fresh branch off
origin/main(532e26b, unmoved).Head
43298a8, 2 files, 65 insertions(+), 3 deletions(-).Why each piece exists
The suite section. The repo was declared only under a version-specific
ubuntu-24.04:block, so a26.04 image matched no section at all — no repo, no package. My first attempt rewrote that block in place,
which would have declared a 24.04 section serving the 26.04 suite and broken every 24.04 consumer. The
versioned key has to be added.
The bed. The previous rounds' proof was an ad-hoc box under
/tmp, kept out of the diff — which thereview rightly refused as a disposable target. It now ships one.
The check. The suite-test box's plan
include:s the candy's plan rather than restating it. ADEwants a box to have a plan; R2 forbids spelling one predicate twice;
include:satisfies both.**
tailscaled-unit-enabledransystemctl is-enabled tailscaled.serviceat build scope, whereno init exists, so it exited 127 and made
check boxpermanently red for this candy — the first run ofthe new bed failed there, not on the suite. The candy's own
run:step already tolerates that absence with|| true; the check asserting its result did not. It now asserts what the build CAN prove (the unit fileexists, which is what the enable step acts on) and leaves "enabled" to a deploy-scope check.
The
.gitignore. Agit add -Aswept 22 files of.build//.check/artifacts into the first version ofthis commit. Caught before the push, undone, and replaced with the ignores this repo was missing.
How tested
The disposable bed, full sequence — PASS:
The check genuinely fails without the change — run against both pre-fix states, in a disposable
ubuntu:26.04:My first version of that check compared against the guest's own
${VERSION_CODENAME}; charly rejected it asassertion is DEAD— a check step resolves only the runner's auto-exported names, so that variable can neverresolve there. The variable-free form is what actually runs, and
exclude_distrokeeps it off 24.04, whichmust stay
noble.The artifact read directly, from a clean
--no-cachebuild through the changed section (a cached buildcarries the PREVIOUS plan as an OCI label and reports the old check text):
Rulebook compliance
/charly-infrastructure:tailscale(this repo's named skill) and itsAGENTS.md.build-scope check, the artifact hygiene. My first two attempts at the change itself were wrong and were
corrected before the push that carried them.
it proves.
systemctl,and the bed asserts the suite rather than accepting any repo file.
ubuntu-24.04keepsnoble; nothing legacy points at the wrong release.charlyused was the worktree-local CalVer build.disposable: truebed exists in this repo and passed 16 steps on this tree.Filed issues
tailscaled-unit-enabledfailure. Fixed in this PR;the issue stays open until this merges, then closes with it.
Change classification
Config + a new test box/bed: one new
distro:section, one new disposable target, one check corrected, one.gitignore.Breaking change + rollback: a 26.04 image gains the tailscale repo and package it could not resolve
before; a 24.04 image is unaffected. The check change makes
check boxgreen for the first time on thiscandy, which cannot break a consumer. Rollback is a revert of this commit; 26.04 images lose the repo again
and the bed's suite assertion becomes unsatisfiable.
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)