Skip to content

30.oct.2026

49.7-second animated WebP reel with xfade transitions and 5 telemetry cards showing the Forgejo Generic Package build, Valhala Poudriere sysutils/zot pilot, 12-builder Xeon E5-2620 load, and the 15.1-RELEASE cutover

49.7s Visual Reel (20 scenes · 5 telemetry cards + 15 live captures · 0.5s cross-dissolves): Animated WebP · MP4 Video · Render Manifest · Pilot Receipt JSON

Illustrative framing scene (fictional motif): a short exchange on keeping package ownership singular, version strings exact, and upstream build dependencies pre-seeded.

Operator: Both 15.0-RELEASE and 15.1-RELEASE need signed packages, and pkg check -s cannot fail on the live image. Clawdie: Then /usr/local/bin/zot must have a single owner whenever pkg installs it, and build.sh must cache packages per FreeBSD version and branch. Pi: FreeBSD’s DISTVERSION macro also rewrites adjacent hex letters in git short-SHAs—ga09dd42 became g09.d42 until PORTVERSION pinned the exact string. Agy: And Forgejo’s /api/packages/ router uses HTTP Basic Auth with a write:package token rather than /api/v1 bearer headers. Jev: I flagged the unbound $ZOT_STAGE variable and /api/v1 router mismatch before the first push; the host build and pkg info -F receipt remain the ground truth. Operator: Lock the distinfo, wire -b latest so Poudriere fetches upstream dependencies instead of compiling 136 ports from source, and record every receipt.

WorkstreamResultStatus and evidence
Dual-jail Poudriere & scoped pkg cacheclawdie-15-0-amd64 (15.0-RELEASE, Yellow stage) + clawdie-15-1-amd64 (15.1-RELEASE, Green stage), @flavor manifest validation, and ${PKG_CACHE_DIR}/${FREEBSD_VERSION}/${DEFAULT_PKG_BRANCH} cachingMerged: clawdie-iso #29, fc10942
Single-owner /usr/local/bin/zotstage-zot-iso.sh leaves /usr/local/bin/zot untouched when ZOT_FROM_PKG=YES or var/db/pkg/zot-*/+MANIFEST exists (6/6 tests)Merged: clawdie-iso #29, 8d88b88
Zot -freebsd label & --version-jsonHuman CLI prints zot 0.4.57-95-freebsd (ga09dd42) while --version-json preserves canonical 0.4.57-95-ga09dd42 for zot-update.shMerged: zot #29, c8ea66b
Forgejo Generic Package publish & portNative FreeBSD CI builds zot-<ver>-freebsd-amd64.tar.gz, build-receipt.json, and distinfo, and publishes to /api/packages/clawdie/generic/zot/<ver>/ via PACKAGE_TOKEN (111/111 tests)Merged: zot #31 0a0373a · zot #32 a09dd42 · zot #34 3861cec
Valhala sysutils/zot Poudriere pilotBuilt and signed zot-0.4.57.95.ga09dd42.pkg (SHA256: 7bd274c3...95eadc9b, FreeBSD:15:amd64, 1500068) in jail clawdie-15-0-amd64Verified on Valhala: Pilot receipt JSON · Exactname build capture
Poudriere host hardening & -b latestFixed FREEBSD_HOST=https://download.freebsd.org, -m git+https, per-jail ALLOW_UNSUPPORTED_SYSTEM=yes, -b latest binary seeding, and added sysutils/zot to packages/poudriere-ports.txtMerged: clawdie-iso #30, 7d3c167 (65ca8c6)
Zot SemVer fix & tag/dispatch publish gateNormalized git-describe <tag>-<N>-g<sha> versions in normalizedVersion(), gated CI package publish to tag/dispatch, added bump-port.sh (114/114 tests), and bumped port to 0.4.57-102-ga61ff14Merged: zot #35, a61ff14 · zot #36, 7123d27
15.0 → 15.1-RELEASE cutover & poudriere.conf guardArchived archive/yellow-dev-15.0, removed global PACKAGE_FETCH_BRANCH from poudriere.conf (15/15 tests, Jev 0.92/0.92/0.91), fetched 130/138 binary deps in 55s, and built zot-0.4.57.102.ga61ff14 in 27s on clawdie-15-1-amd64Merged & Verified: clawdie-iso #33 9c757d8 · clawdie-iso #34 cd1a1f8

1. Dual-Jail Poudriere Architecture (15.0-RELEASE & 15.1-RELEASE)

Section titled “1. Dual-Jail Poudriere Architecture (15.0-RELEASE & 15.1-RELEASE)”

To support both the Yellow stage (FreeBSD 15.0-RELEASE, aligned with Colibri 0.15.0) and the Green stage (FreeBSD 15.1-RELEASE, aligned with Colibri 0.15.1) without cross-contaminating ABI packages or re-downloading ~600 MiB of base packages on every ISO build, clawdie-iso PR #29 (fc10942) introduced three structural changes:

  1. Dual Poudriere jails (clawdie-15-0-amd64 and clawdie-15-1-amd64): scripts/poudriere/poudriere-setup.sh provisions both release jails by default (or a single jail via --version) and maps any X.Y-* release string to clawdie-X-Y-<arch>.
  2. Manifest-driven @flavor builds: scripts/poudriere/poudriere-build.sh validates category/port@flavor entries against the underlying ${BASEFS}/ports/${PTREE}/category/port/Makefile and reads packages/poudriere-ports.txt when invoked without positional arguments.
  3. Version+branch-scoped package cache in build.sh: prefetch_iso_packages() caches downloaded .pkg files and FreeBSD.conf fingerprints under ${PKG_CACHE_DIR}/${FREEBSD_VERSION}/${DEFAULT_PKG_BRANCH} and passes pkg fetch -y -d -o "${cache_root}" without -r FreeBSD, allowing higher-priority first-party repositories (Clawdie / Clawdie-stage) in REPOS_DIR to satisfy first-party and flavor-gap packages alongside upstream FreeBSD.

2. Forgejo Generic Package Registry & the Basic Auth Boundary

Section titled “2. Forgejo Generic Package Registry & the Basic Auth Boundary”

Rather than standing up a separate binary artifact server or asking Poudriere to consume unverified tarballs, we connected Cox’s Forgejo CI directly to Poudriere’s MASTER_SITES fetch phase:

Forgejo CI native FreeBSD build artifact upload

During live verification on code.clawdie.si, two router contracts surfaced and were fixed in zot PR #31 (0a0373a) and zot PR #32 (a09dd42):

  • Router path (/api/packages/ vs /api/v1/): Forgejo mounts its Generic Package Registry at /api/packages/<owner>/generic/<pkg>/<version>/<file>, outside ${GITHUB_API_URL} (/api/v1).
  • HTTP Basic Auth (Www-Authenticate: Basic realm="Gitea Package API"): Unlike /api/v1 endpoints that accept -H "Authorization: token ...", the package registry requires HTTP Basic Auth (curl --user "${PACKAGE_USER}:${PACKAGE_TOKEN}") with a Personal Access Token carrying write:package scope. Adding PACKAGE_TOKEN once under user-level Actions secrets made it available to zot, herdr, and bherdr.

Run #78 on commit a09dd42 published all four artifacts (zot-0.4.57-95-ga09dd42-freebsd-amd64.tar.gz, .sha256, build-receipt.json, and distinfo), verified via unauthenticated HTTP/1.1 200 OK:

TIMESTAMP = 1793368648
SHA256 (zot-0.4.57-95-ga09dd42-freebsd-amd64.tar.gz) = 3ae05c8bca51d4283857bccfdddb304ae927f4a066eb6e35b6230652e42f068c
SIZE (zot-0.4.57-95-ga09dd42-freebsd-amd64.tar.gz) = 15864715

3. Valhala Poudriere Pilot: DISTVERSION Normalization & Signed sysutils/zot

Section titled “3. Valhala Poudriere Pilot: DISTVERSION Normalization & Signed sysutils/zot”

On valhala (FreeBSD 15.0-RELEASE-p14 amd64, ZFS pool neo), provisioning clawdie-15-0-amd64 and running the first poudriere bulk for ports-mgmt/pkg and sysutils/zot succeeded in 00:04:34, but produced an unexpected package filename:

  • First run (DISTVERSION only): zot-0.4.57.95.g09.d42.pkg
  • Root cause: FreeBSD’s default bsd.port.mk derivation (:C/([a-z])[a-z]+/\1/g:C/([0-9])([a-z])/\1.\2/g) treats multi-letter sequences as alpha/beta words (ga → g, dd → d) and splits digit-to-letter transitions (09d → 09.d), mangling hex git short-SHAs.
  • Fix (aa83a81): Adding PORTVERSION= ${DISTVERSION:S/-/./g} preserves the exact short-SHA. The incremental Poudriere rebuild reused cached pkg-2.8.4 and produced zot-0.4.57.95.ga09dd42.pkg in 00:01:06.

Valhala Poudriere incremental rebuild of zot-0.4.57.95.ga09dd42

Post-build verification on the signed package (/usr/local/poudriere/data/packages/clawdie-15-0-amd64-clawdie_proof/All/zot-0.4.57.95.ga09dd42.pkg, SHA-256 7bd274c346d0516ea479b27fa5b3f8d3c51d1a83110439ddbc9d78fd95eadc9b) confirmed:

  • pkg info -F: Architecture: FreeBSD:15:amd64, FreeBSD_version: 1500068, Flat size: 35.1MiB, Origin: sysutils/zot.
  • readelf -n: .note.tag reports ABI tag: 1203000 (Go’s minimum FreeBSD 12.3 syscall ABI tag emitted by the Go linker), while package metadata targets 1500068.
  • Binary execution: zot --version → zot 0.4.57-95-freebsd (ga09dd42) and zot --version-json → {"version":"0.4.57-95-ga09dd42","display":"0.4.57-95-freebsd (ga09dd42)","platform":"freebsd","commit":"a09dd42"}.

4. graphics/py-pillow@py312, Ctrl+T (SIGINFO), and -b latest Binary Seeding

Section titled “4. graphics/py-pillow@py312, Ctrl+T (SIGINFO), and -b latest Binary Seeding”

When Poudriere started building graphics/py-pillow@py312 without -b latest, it queued the full 136-package transitive build/runtime closure from source (perl5.42, tcl86, gmake, pkgconf, libxml2, zstd, python312, etc.) across 12 parallel builders on valhala’s Xeon E5-2620 (Load avg: 6.77, 1.75 / 11.9 GiB RAM):

Valhala btop under 12-builder Poudriere load

Sending Ctrl+T (SIGINFO) in the root console printed Poudriere’s live per-builder table (Queued: 136 Built: 38 Failed: 0 Tobuild: 98 at 00:15:11, with lang/python312 at 99% CPU in 144.78 MiB tmpfs) directly into the tee’d build log, allowing Pi to read the live phase timings from its monitoring pane:

Poudriere SIGINFO Ctrl+T live builder table on Valhala

After 24 minutes (41/136 built), we canceled the unseeded source compile and committed the permanent fix in clawdie-iso (65ca8c6):

  1. poudriere bulk -b "${FETCH_BRANCH}" (default: latest): Instructs Poudriere to pre-fetch unmodified upstream dependencies (python312, cmake, tiff, webp, freetype2) as official binary packages from pkg.FreeBSD.org and compile only the requested port (graphics/py-pillow@py312).
  2. Host setup hardening in poudriere-setup.sh: Fixes FREEBSD_HOST=https://download.freebsd.org, switches ports tree creation to -m git+https, and writes ALLOW_UNSUPPORTED_SYSTEM=yes into per-jail poudriere.d/<jail>-make.conf.

5. Canonical ports Tree Build, Host Launcher Migration & End-to-End clawdie Verification

Section titled “5. Canonical ports Tree Build, Host Launcher Migration & End-to-End clawdie Verification”

After fast-forwarding zot (b22289e) and clawdie-iso (7d3c167) on valhala, Pi migrated the Poudriere tree name from clawdie_proof to the canonical ports (/usr/local/poudriere/ports/ports) and uncovered one subtle heredoc expansion detail in poudriere-setup.sh:

  • Unquoted heredoc \${ABI} expansion: Because poudriere-setup.sh writes poudriere.conf via an unquoted <<EOF heredoc, a single backslash (\${ABI}) was consumed during file generation, leaving literal PACKAGE_FETCH_URL=pkg+http://pkg.FreeBSD.org/${ABI} in poudriere.conf. When Poudriere sourced poudriere.conf, ${ABI} expanded to empty (pkg+http://pkg.FreeBSD.org//latest).
  • Fix (000b150): Escaping PACKAGE_FETCH_URL=pkg+http://pkg.FreeBSD.org/\\\${ABI} in poudriere-setup.sh preserves literal \${ABI} in poudriere.conf, resolving pkg+http://pkg.FreeBSD.org/${ABI}/latest cleanly.

Building sysutils/zot under the canonical ports tree produced and signed /usr/local/poudriere/data/packages/clawdie-15-0-amd64-ports/All/zot-0.4.57.95.ga09dd42.pkg (SHA-256: 6b6e786a002750af0fc5149c4b5585a633a7f31b108947aef2d2b87b1bbf552d). First, an isolated alt-root check (pkg -r /var/tmp/zot-pkg-check) and clawdie-15-0-amd64 jail chroot check confirmed package checksum integrity (CHECK_RC=0) and binary execution (JAIL_RUN_RC=0). Note that the alt-root console screenshot below displays [unknown-repository] and missing /usr/share/keys/pkgbase-15/trusted warnings because /var/tmp/zot-pkg-check was an empty scratch root without the host key store:

Valhala alt-root pkg check -s zot and jail chroot execution

Next, in a separate host-level step on valhala, we migrated the host itself from its legacy unowned source-install wrapper (/usr/local/bin/zot, 1093 bytes, zot 0.4.11 from Sep 30) to the signed clawdie-local Poudriere repository (signature_type: "pubkey", /usr/local/etc/ssl/clawdie-pkg.pub) and verified end-to-end execution as the unprivileged clawdie user (uid=1001):

# 1. Host signed-repository update & package install (root@valhala)
Fetching meta.conf: 100% 179 B 0.2 kB/s 00:01
Fetching data: 100% 1641 B 1.6 kB/s 00:01
Processing entries: 100%
clawdie-local repository update completed. 2 packages processed.
All repositories are up to date.
[1/1] Installing zot-0.4.57.95.ga09dd42...
[1/1] Extracting zot-0.4.57.95.ga09dd42: 100%
# 2. End-to-end runtime & provider round-trip (clawdie@valhala, uid=1001)
[clawdie@valhala ~/ai/zot]$ command -v zot; zot --version; zot --version-json; pkg info zot | sed -n "1,20p"; pkg check -s zot
/usr/local/bin/zot
zot 0.4.57-95-freebsd (ga09dd42)
{"version":"0.4.57-95-ga09dd42","display":"0.4.57-95-freebsd (ga09dd42)","platform":"freebsd","commit":"a09dd42"}
zot-0.4.57.95.ga09dd42
Name : zot
Version : 0.4.57.95.ga09dd42
Installed on : Fri Oct 30 17:30:31 2026 CET
Origin : sysutils/zot
Architecture : FreeBSD:15:amd64
Prefix : /usr/local
Categories : sysutils
Licenses : MIT
Maintainer : hello@clawdie.si
WWW : https://code.clawdie.si/clawdie/zot
Comment : Compact coding agent harness
Annotations :
FreeBSD_version: 1500068
build_timestamp: 2026-10-30T15:12:52+0000
built_by : poudriere-git-3.4.8
port_checkout_unclean: yes
port_git_hash : 26814d676edb0c48d1439dafaea101f2cdd52aec
ports_top_checkout_unclean: yes
ports_top_git_hash: 26814d676edb0c48d1439dafaea101f2cdd52aec
Checking zot: 100%
[clawdie@valhala ~/ai/zot]$ zot -p "Reply with exactly: zot-pkg-ok"
zot-pkg-ok

The hardened host migration runbook (using root-owned 0700 mktemp -d /root/... directories and set -C exclusive file creation rather than world-writable /var/tmp paths) and ZOT_FROM_PKG=YES ISO package wiring are now codified in clawdie-iso PR #31 (e0c24bd).


6. 15.0 → 15.1-RELEASE Cutover, PACKAGE_FETCH_BRANCH Safety Gates & Zot 0.4.57-102-ga61ff14

Section titled “6. 15.0 → 15.1-RELEASE Cutover, PACKAGE_FETCH_BRANCH Safety Gates & Zot 0.4.57-102-ga61ff14”

When we ran poudriere bulk -n -v -b latest in the 15.0-RELEASE jail (clawdie-15-0-amd64, OSVERSION 1500068) with PACKAGE_FETCH_WHITELIST="*" (clawdie-iso PR #32, 2aadcee), Poudriere contacted pkg.FreeBSD.org and skipped all 135 upstream binary packages with:

Skipping <pkg>: remote osversion 1501000 is newer than jail 1500068

Because FreeBSD’s official FreeBSD:15:amd64/latest builders already target 15.1-RELEASE (OSVERSION 1501000), we recorded the 15.0-RELEASE (0.15.0) milestone as a completed stepping-stone checkpoint in clawdie-iso PR #33 (9c757d8), preserved the legacy Yellow branch as annotated tag archive/yellow-dev-15.0 (615e61c3a1), and cut over our primary build target to 15.1-RELEASE (clawdie-15-1-amd64).

Poudriere poudriere.conf Sourcing Order & Jev 3×3 Verification

Section titled “Poudriere poudriere.conf Sourcing Order & Jev 3×3 Verification”

Tracing Poudriere’s own source (bulk.sh:28 → common.sh:10861 → common.sh:4696) revealed a subtle trap: Poudriere sources /usr/local/etc/poudriere.conf before getopts parses -b, and download_from_repo() only returns early when PACKAGE_FETCH_BRANCH is empty (""). If PACKAGE_FETCH_BRANCH=latest is written globally in poudriere.conf, omitting -b on 15.0 does not clear it.

In clawdie-iso PR #34 (cd1a1f8):

  1. Per-invocation -b only: poudriere-setup.sh no longer writes PACKAGE_FETCH_BRANCH to /usr/local/etc/poudriere.conf, and poudriere-build.sh resolves FETCH_BRANCH=auto (latest on 15.1+, none on 15.0), logging fetch-branch: <branch> (<version>).
  2. Anchored fail-closed config guards (15/15 unit tests): Both scripts fail closed if poudriere.conf contains an active ^[[:space:]]*PACKAGE_FETCH_BRANCH=, a custom PACKAGE_FETCH_URL=, a custom PACKAGE_FETCH_WHITELIST=, or duplicate active keys (> 1 line), while preserving existing file permissions (stat -f '%Lp' || stat -c '%a' + chmod) across URL repair.
  3. 2-pass Jev (jev-1.14.0) 3×3 evaluation: After remediating Pass-1 findings (noul 0.33 / 0.06 / 0.05), Pass 2 reached 0.92 / 0.92 / 0.91 across all three axes with choice confidence 1.00.

Zot 0.4.57-102-ga61ff14: SemVer git-describe Normalization & Tag-Gated Publishing

Section titled “Zot 0.4.57-102-ga61ff14: SemVer git-describe Normalization & Tag-Gated Publishing”

Starting zot 0.4.57-95-freebsd (ga09dd42) on valhala surfaced a false-positive update banner (0.4.57-95-ga09dd42 -> 0.4.57). Under standard SemVer (semver.Compare), the -95-ga09dd42 suffix from git describe is parsed as a pre-release of 0.4.57, ranking a 95-commit-newer snapshot older than the v0.4.57 tag and caching that false positive in ~/.local/state/zot/update-check.json for 12 hours.

In zot PR #35 (a61ff14) and zot PR #36 (7123d27):

  • SemVer git-describe normalization: normalizedVersion() in packages/agent/update.go strips -[0-9]+-g[0-9a-f]+$ (gitDescribeReleasePrefix) before semver.Compare, so 0.4.57-102-ga61ff14 compares equal to v0.4.57 (up to date) while still upgrading cleanly when v0.4.58 is released (114/114 tests).
  • Tag/dispatch publish gate & bump-port.sh: Routine merges to main no longer auto-publish new snapshots to the Generic Package registry; publishing is gated to v* tags or manual workflow_dispatch, paired with packaging/freebsd/bump-port.sh. Run #92 published zot-0.4.57-102-ga61ff14-freebsd-amd64.tar.gz (15,865,604 bytes, SHA-256: 02ec5f06...10c7d9).

Live 15.1-RELEASE (clawdie-15-1-amd64) Execution on valhala

Section titled “Live 15.1-RELEASE (clawdie-15-1-amd64) Execution on valhala”

Provisioning clawdie-15-1-amd64 (15.1-RELEASE-p6 amd64) alongside clawdie-15-0-amd64 on valhala and syncing sysutils/zot (0.4.57.102.ga61ff14) into /usr/local/poudriere/ports/ports immediately validated the 15.1-RELEASE cutover:

Dual Poudriere jails (15.0 and 15.1) and zot-0.4.57.102.ga61ff14 synced on Valhala

Running poudriere-build.sh --version 15.1-RELEASE sysutils/zot graphics/py-pillow@py312 logged fetch-branch: latest (15.1-RELEASE), produced zero remote osversion skips, fetched 130 binary packages in 55 seconds (Queued: 138, Fetched: 130, Tobuild: 8), and built ports-mgmt/pkg (138s) and sysutils/zot (zot-0.4.57.102.ga61ff14 in 27s):

Valhala clawdie-15-1-amd64 fetching 130 binary packages in 55 seconds with 8 to build

Notice also why upstream sysutils/zot (zot-2.1.22_2, the OCI registry port in official FreeBSD ports) was never fetched over our first-party port: Poudriere’s -b latest version check saw 0.4.57.102.ga61ff14 != 2.1.22_2 and built our sysutils/zot from the local port. Meanwhile, inspecting btop on valhala after 03:35:29 of session uptime confirmed the runtime footprint across our stack—compiled Go zot at 41 MiB and its Rust child process herdr-agent-state at 4.07 MiB RAM (0.03%), compared to 381 MiB for the node: pi harness:

Valhala btop showing herdr-agent-state at 4.07 MiB RAM after 03:35 uptime