Skip to content

fix(tailscale)!: add the ubuntu-26.04 apt suite section, its disposable bed, and fix the build-scope check - #8

Merged
github-actions[bot] merged 7 commits into
mainfrom
fix/tailscale-2604-suite-v2
Nov 17, 2026
Merged

github-actions[bot] merged 7 commits into
mainfrom
fix/tailscale-2604-suite-v2

Conversation

@aitrawog

Copy link
Copy Markdown
Contributor

Summary

Three things, because the first could not be proven without the other two:

  1. A disposable target this candy never had — a ubuntu:26.04 test image plus a
    disposable: true pod bed that asserts the apt suite.
  2. The 26.04 tailscale repo section — the ubuntu-26.04: distro: entry that the bed gates.
  3. A pre-existing check fixed — tailscaled-unit-enabled could never pass at build scope.
    Plus the .gitignore this 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 and
thread". Same two commits, cherry-picked onto a fresh branch off origin/main (532e26b, unmoved).

Head 43298a8, 2 files, 65 insertions(+), 3 deletions(-).

ubuntu-24.04:   # unchanged — noble
    repo: tailscale … noble.noarmor.gpg / suite: noble
ubuntu-26.04:   # NEW
    repo: tailscale … resolute.noarmor.gpg / suite: resolute

tailscale-suite-test:       # NEW — ubuntu:26.04 image composing this candy
    description: …
    plan: [include: candy:tailscale]   # composes the candy's plan — one predicate, not two
check-tailscale-suite-pod:  # NEW — pod: {image: …, disposable: true, lifecycle: dev}
    check: the 26.04 guest's repo names the resolute suite, not a stale one

Why each piece exists

The suite section. The repo was declared only under a version-specific ubuntu-24.04: block, so a
26.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 the
review 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. ADE
wants a box to have a plan; R2 forbids spelling one predicate twice; include: satisfies both.

**tailscaled-unit-enabled ran systemctl is-enabled tailscaled.service at build scope, where
no init exists, so it exited 127 and made check box permanently red for this candy — the first run of
the 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 file
exists, which is what the enable step acts on) and leaves "enabled" to a deploy-scope check.

The .gitignore. A git add -A swept 22 files of .build//.check/ artifacts into the first version of
this commit. Caught before the push, undone, and replaced with the ignores this repo was missing.

How tested

The disposable bed, full sequence — PASS:

$ charly -C … check run check-tailscale-suite-pod
PASS (steps=16)

[check-image] PASS · [check-live] PASS · [update] PASS · [check-live-rebuild] PASS
[cleanup] PASS · [cleanup-members] PASS

The check genuinely fails without the change — run against both pre-fix states, in a disposable
ubuntu:26.04:

FAIL as expected: the assertion rejects the stale noble suite
FAIL as expected: no repo file at all

My first version of that check compared against the guest's own ${VERSION_CODENAME}; charly rejected it as
assertion is DEAD — a check step resolves only the runner's auto-exported names, so that variable can never
resolve there. The variable-free form is what actually runs, and exclude_distro keeps it off 24.04, which
must stay noble.

The artifact read directly, from a clean --no-cache build through the changed section (a cached build
carries the PREVIOUS plan as an OCI label and reports the old check text):

$ podman run --rm localhost/tailscale-resolute-test:… bash -c \
    'cat /etc/apt/sources.list.d/*.list | grep -i tailscale; dpkg -s tailscale | grep -E "^Status|^Version"'
deb [signed-by=/etc/apt/keyrings/tailscale.gpg] https://pkgs.tailscale.com/stable/ubuntu resolute main
Status: install ok installed
Version: 1.104.7
$ charly -C … box validate
charly box validate: OK — checked 1 candy, 1 box, 1 deploy, 6 distros, 7 builders; 0 warnings, 0 errors

Rulebook compliance

  • R0 — /charly-infrastructure:tailscale (this repo's named skill) and its AGENTS.md.
  • R1 — zero warnings. Every finding across rounds is fixed, not filed: the missing disposable target, the
    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.
  • R2 — one place per fact: the suite lives in the section that selects it; the bed lives beside the candy
    it proves.
  • R3 — no workaround: the unit check asserts a true build-scope fact rather than suppressing systemctl,
    and the bed asserts the suite rather than accepting any repo file.
  • R4 — no documented command changes.
  • R5 — ubuntu-24.04 keeps noble; nothing legacy points at the wrong release.
  • R6 — fresh branch in the session worktree; no force-push, no bypass.
  • R7 — both directions proven: PASS on the changed tree, FAIL on each pre-fix state.
  • R8 — real apt repo, real built image, real dpkg queries.
  • [R8] — the suite was exercised against the live archive, not a mock.
  • R9 — no binary involved; the charly used was the worktree-local CalVer build.
  • R10 — a disposable: true bed exists in this repo and passed 16 steps on this tree.

Filed issues

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 box green for the first time on this
candy, 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)

…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)
@github-actions

Copy link
Copy Markdown

Review — PASS

Head SHA: 43298a8a83b5db252c4e32f9ee6ce0e49b47f272 (branch: fix/tailscale-2604-suite-v2)

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, .gitignore).

Checklist: All applicable rules PASS or NA.

  • Change class: config + new box/bed. Bed proof present (check-tailscale-suite-pod, disposable: true, 16 steps PASS); fresh --no-cache artifact read pasted and internally consistent with the new resolute section (pkgs.tailscale.com/stable/ubuntu resolute main); FAIL-on-prefix proven for both the no-section and stale-noble states.
  • ADE: new tailscale-suite-test ships a non-empty description: and a plan: (include: candy:tailscale) that composes the candy's check — accepted by charly box validate (0 warnings, 0 errors pasted). Pod has a description:.
  • R1–R10: build-scope tailscaled-unit-enabled failure has an RCA (no init at build scope → exit 127) and an in-tree fix; the deploy-scope "enabled" assertion is filed as a real issue (layer-tailscale#7), not parked. ## Filed issues present with real numbers.
  • Attribution: *Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)* footer present and justified by the pasted bed/artifact evidence (model name unverifiable read-only — tool-limited, not contradicted).
  • ARCH: all changes belong in this layer candy repo; no core/sdk placement concern.

Comment thread: empty (0 comments) — nothing to disposition.

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) November 17, 2026 12:09
@github-actions
github-actions Bot merged commit a819470 into main Nov 17, 2026
3 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Nov 17, 2026
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