Changelog

The changelog documents the history of changes and version releases for Piceli.

For detailed information on each version, please visit the Piceli GitHub Releases page.

Version 0.99.1

The prune line agrees with its count (ops#120)

  • The host agent’s piceli.host.prune event says “1 generation deleted” and “3 generations deleted” (it said “1 generations”). The count stays in the event’s piceli.deleted field.

Version 0.99.0

Records-only commits start no run (ops#119)

  • Source(records=["config/signatures/**", ...]) names paths that change no environment’s run (* stays within one path segment; ** crosses segments). A followed branch that moves by a fast-forward touching only those paths starts no run. The log says so, and the environment keeps its revision. A force-push, a first sight or a Git error runs as before.

  • Such a commit counts as verified through the commit whose run it follows (via in the record of passed commits): Promotion and piceli promote accept it, and the plan names that run. Candidates skip it.

A release candidate holds the whole release (ops#119)

  • Candidate(steps=[Step(...)]): once the copies are done, each step runs its command on a build host, in a checkout of the release source. It gets the candidate’s record (PICELI_CANDIDATE_FILE) and its secrets. Piceli commits the files it changed and pushes them with that host’s own Git write credential. Only paths that match the step’s records and the source’s records are allowed. The command comes from the build host’s own composition, never from the controller.

  • Candidate(releases=[web_release]): when the head of release_branch pins the candidate’s commit in flake.lock, Piceli prebuilds the release (closure signed and pushed to the cache, manifest uploaded, no pointer). ready waits for every prebuild. A later tag at that commit is a pointer-only publish: the build host checks the prebuilt closure and writes the tag’s manifest and pointer, and builds nothing.

  • Candidate(rehearse=[canary_release]): the build host points a canary host (one that follows Branch(...)) at the prebuilt closure. It then reads the host’s status over SSH until the deploy and its checks passed, failed or timed out. ready waits for it; a failure is candidate-rehearsal-failed, with the host’s reason.

  • piceli gitops candidate list shows each step, release and rehearsal.

Version 0.98.0

Scheduling values for named workloads (ops#118)

  • HelmChart(scheduling=["web"]) gives nodeSelector, tolerations and affinity only to the named workloads; a DaemonSet that runs on every node keeps its own. The storage probe’s Job and pod get them when the workload whose claim it probes is named. A name that is not a workload of the bundle, an empty list or a bare string is refused with bundle-invalid. scheduling=True is still every workload.

Version 0.97.0

A storage probe that needs nothing from the app’s images (ops#115)

  • StorageProbe() without image= runs Piceli’s controller image, pinned by digest in Piceli (piceli.bundle.probe.DEFAULT_IMAGE, the 0.96.0 image), with a Python version of the probe: the same API calls and the same lines as the sh and curl script. Distroless and scratch app images now work. image.registry rewrites its host for a mirror; image= keeps the sh script.

Where the pods run (ops#115)

  • HelmChart(scheduling=True) adds the values nodeSelector, tolerations and affinity. Every workload gets them, merged with its own (the value wins on a key; tolerations are added). The storage probe’s Job and pod get them too (of affinity, only nodeAffinity). So --set nodeSelector.pool=x puts the app and the probe’s volume on one node pool. Charts without it render byte for byte as in 0.96.0.

Version 0.96.0

A failed copy names its check, and a candidate tries it again (ops#100)

  • copy-verification-failed says which read-back check failed and what it compared: the manifest digest read back, the tag, the served bytes, a platform manifest or a referrer, for example tag 1.4.0: the target names nothing, not sha256:…. It is the copy receipt’s message, the copy set’s detail (report and ledger) and a candidate’s detail (<component>: <text>).

  • A release candidate whose copy fails with copy-verification-failed or copy-failed is tried again with the candidate backoff (60 s, then 5, 15 and 30 minutes, at most five tries), as a registry that does not answer already is. A registry still settling after a push no longer leaves the candidate failed until someone requests it.

Version 0.95.0

Chart values that need other values (ops#116)

  • HelmOptional(when=[...]) renders a value’s objects, and applies its patches, only when every listed value is true too: one {{- if and (A) (B) }}, each value read as before (default_on_reuse included). It names toggles or optional values, and gates whole objects.

  • HelmChart(requires={"collector.enabled": ["intake.expose"]}) fails the install with collector.enabled=true needs intake.expose=true when the first is true and the second is not.

  • values.yaml, values.schema.json and the chart’s README note each dependency. Unknown names, a value naming itself, a cycle and defaults that would fail the default install are refused with bundle-invalid.

  • Charts that use neither render byte for byte as in 0.94.0.

An install note for an optional value (ops#117)

  • HelmOptional(note="...") prints one line in the install notes (NOTES.txt) only when the value’s objects render (when included); it is a template line ({{ .Release.Namespace }} works), and the chart’s README lists it next to the value.

An image may read no context

  • contexts = [] on an [[output.image]] is accepted: the image’s key is its own tables only, so an OpenTelemetry Collector image built from its collector table (0.94.0) is not rebuilt for every source change.

Version 0.94.0

An OpenTelemetry Collector image built with OCB (ops#115)

  • Host builds can build an OpenTelemetry Collector image with OCB (OpenTelemetry Collector Builder). An [output.image.collector] table lists only the components you want, as short names or full module pins (a stable module such as k8sattributesprocessor v1.x needs its full pin).

  • Piceli writes the manifest and builds a static binary for each platform with the Go that the new build.toolchains.go pins (a version, or a go.mod toolchain line, checked against go.dev).

  • /THIRD-PARTY-NOTICES is written from the licence and NOTICE files of every linked Go module, Go’s own included. The SBOM (software bill of materials) lists each module as pkg:golang, and the provenance records the collector version, the components and the manifest’s sha256.

  • New errors: collector-notices-failed, collector-licence-missing.

Every image is scanned for known vulnerabilities (ops#115)

  • Images are scanned for known CVEs (Common Vulnerabilities and Exposures) with Grype 0.122.1, pinned by sha256: each host-build archive before it is pushed or recorded, each mirror copy before it is ready, and the source of piceli artifacts copy before anything is copied.

  • A Critical finding with a fixed version fails with image-vulnerable. A waiver needs a reason and an end date ([scan] ignore in host-build.toml, --scan-policy FILE or PICELI_SCAN_POLICY).

  • Receipts record scans (scanner version, database build time, counts by severity, waived ids), and attestations/<image>.scan.json sits beside the SBOM. Turning scanning off ([scan] enabled = false, --no-scan) is recorded as "scan": "off".

  • New errors: image-vulnerable, image-scan-failed, image-scanner-checksum, scan-policy-invalid.

A storage probe before a chart’s install (ops#115)

  • HelmChart(storage_probe=StorageProbe(image=..., timeout_seconds=180, size="1Gi")) adds Helm pre-install hooks. A Job (sh and curl) creates a claim in storageClass and a pod that mounts it, then deletes both once the pod runs.

  • Otherwise the install stops before any app object, with one line that names the newest warning event (FailedAttachVolume, ProvisioningFailed, FailedScheduling) and the storage classes to try. Helm 4 prints that line; Argo CD shows it as the termination message.

  • Values storageProbe.enabled (default true) and storageProbe.timeoutSeconds. Every hook object passes the safety gate; the ClusterRole only reads storage classes. Chart only, and only for an app with a claim.

Version 0.93.0

The canary checks compositions with derived images (ops#114)

  • gitops enable --canary refused every composition with derived images (0.89.0): its dry builder could build, mirror and copy, but not append, so the resolve stage failed with component-build-unsupported (“this controller’s builder cannot append derived images”), although the live controller deploys the same composition.

  • The canary now appends them dry, as it builds: the live controller’s image for the same key is reused, any other gets a placeholder and is listed in the environment’s derives. Its line says appends N derived images.

Version 0.92.0

Cluster init replaces a development cache that cannot grow (ops#113)

  • A refused object no longer stops piceli cluster init --approve: every other object is applied, then init fails with cluster-init-partial, listing each refused object with the API’s own reason. Before, a cache claim that could not grow kept the development config from being applied.

  • The plan says replace for the claim piceli-dev-cache when cache_size asks for a size it cannot reach in place: smaller, or larger on a storage class that cannot resize it (allowVolumeExpansion not true, or a volume the class did not provision), or another storage class. Applying it sets a Retain volume to Delete, deletes the claim, and creates it again at the new size; the cache rebuilds. A claim in use by a running pod is left as it is and reported.

  • Every API refusal names the API’s reason (the Status message) after the HTTP status. A 403 that is not RBAC (an admission refusal) is reported as refused, not denied.

Version 0.91.0

A tailnet device that is a node reaches the LoadBalancer companions (ops#112)

  • The Tailscale operator marks a companion’s tailnet IP ipMode: VIP, so kube-proxy on every node sends it straight to the pod, and the packet comes from the node, not from the operator’s proxy. The ingress policies admitted only the operator’s namespace, so a tailnet device that is also a cluster node was refused (for example a TURN server’s port 3478).

  • env up and the GitOps controller now read the nodes when an environment declares Access(tailnet=True) and add a second rule on the ports of the plain companions: each node’s InternalIP and the first two addresses of its pod range (flannel.1 and cni0 on flannel). Ports served by a Tailscale Ingress (https=True) are not opened to the nodes. Nothing is widened beyond those ports.

  • The plan’s access lists them as nodes. When the nodes cannot be listed, env up says so and admits only the operator, as before.

Version 0.90.0

The development cache’s budget follows its disk (ops#111)

  • DevBuilds(cache_free_share=) (default 0.5, 0 turns it off): the budget of a run is the smaller of cache_budget × cache_size and what the cache holds plus that share of its disk’s free space, measured when the run starts. A bigger cache_size is then safe on a disk shared with other data. Its log says which applies: [piceli-dev] cache budget: ... GiB (...); the budget report has max_bytes, cap_bytes and limited_by.

  • piceli dev run says when the installed config is not the declared one: one line naming the fields (cache_size: 80Gi -> 110Gi). Runs use the installed config; piceli cluster init applies the declaration.

Version 0.89.0

A derived image appends files to a built image, without a build (ops#110)

  • An [[output.image]] with from = "<image>" in host-build.toml is a derived image: that built image of the same spec plus one layer of files. It takes only name, repository, from, files, contexts and labels; anything else is refused when the spec is loaded.

  • Its change key is the base image’s key plus the files of its own contexts. A file read only by derived images (a release number, for example) changes only their keys, so changing it runs no build: no build host, no build Job.

  • The composition controller appends the files in the cluster registry to the base image it recorded, pinned by digest, as crane append does. The base layers and config are kept (base layers are mounted, not downloaded); a base index gets one derived manifest per platform and a new index. The same files give the same layer, so every image derived for one release shares that layer.

  • A derived image is never made from a rebuilt base: when the base’s key did not change but its record is lost, the step fails with derived-base-unrecorded instead of building the base.

  • The record and provenance carry derived_from: {image, digest}, the added files’ sha256 and the layer; the status and gitops history show derived_from. The SLSA (Supply-chain Levels for Software Artifacts) statement uses build type https://piceli.dev/derived-image/v1.

  • piceli artifacts build-spec run refuses derived images (derived-image-local-unsupported). A builder or build host older than 0.89.0 refuses a spec with from: upgrade them with the controller.

An idle build host stays live (ops#109)

  • An idle piceli builder serve renews a lease (build-host-lease) every 2 minutes. “Not heard from for 10 minutes” now means the host stopped, so the in-cluster fallback waits host_wait for an idle host instead of building cold after 60 seconds.

  • A host on another Piceli version than the controller’s reports it once per upgrade. For 30 minutes after that it counts as coming (upgrading), and the fallback waits for it to restart.

  • A host that claims a build while its in-cluster fallback Job runs takes it over: the controller stops the Job and uses the host’s images. If the Job finished first, its images stand and the host’s answer is refused, so a build never has two results.

  • piceli gitops hosts says per host whether the fallback waits for it: busy, live, UPGRADING, STALE or never seen (liveness in --json). piceli gitops builds shows one record for a build whose fallback Job runs.

  • Hosts on 0.88.0 or older send no lease: upgrade the build hosts before, or with, the controller.

Version 0.88.0

A new commit with the same images gets checks of its own (ops#108)

  • An unchanged release is checked again for new commits. When the GitOps controller deploys source commits whose images and manifests did not change, nothing is applied, but the environment’s checks now run against the running release (verification.trigger: new-revision). Before, the run skipped its checks (“release already verified”), so the commit never counted as passed: a promotion gate refused it and gitops candidate request did not find it. Now its run carries passed checks like any other.

  • The checks output records the commits it covers (revision). The same commits again stay verified; a release whose last checks were recorded before 0.88.0 is checked once more on its next run.

  • The deploy log line says why: verified ... (new commits, same images).

Version 0.87.0

A candidate copies an image the run lists by digest only (ops#106)

  • No more candidate-no-image for an image in the cluster registry. A run’s component with a digest but no image reference is copied from registry/repository@digest, the repository the controller pushes the component to (<registry repository>/<component>). An image that is not there fails the copy with the registry’s answer, which is not retried.

A resumed copy says what it copied

  • artifacts copy --ledger run again (also --in-cluster) when the ledger says a copy is done now reports that copy’s receipt (target and tag, digest, platforms, pull reference, result, referrers; from_ledger: true) instead of result: null, in --out and on stdout. The ledger keeps that compact receipt with each done copy; a copy recorded before 0.87.0 has none.

Version 0.86.0

Which commits an unchanged image stands for (ops#107)

  • components[].current_for in the run history. {source: commit}: the run’s commits this component’s image stands for. An image whose inputs did not change keeps the build of an older commit; current_for says it is current for the run’s commits, so a release that copies a verified run’s images compares current_for to the run’s sources (also in gitops show RUN --artifacts). commit and provenance.commits stay the build’s. A run recorded before 0.86.0 reads with current_for too: the component’s own source at the run’s commit (older records do not list the other sources an image reads).

  • An image’s provenance does not move without a build. The same image recorded again for a newer commit keeps the provenance of its build; a rebuild (piceli gitops build, rebuild --host) records its own. Candidates copy the run’s image whatever commit built it (a test covers it).

  • Docs: Candidate(source=) takes the source’s name in the environment, not a Python variable name.

Version 0.85.0

A candidate named by the source you choose (ops#106)

  • Candidate(source="product"). A candidate is named by the commit of one source the environment follows, no longer only the first one. source names that followed source (default: the first, as before). Its commit names the candidate and fills {commit} in copy tags, its passed commits are the ones recorded, and the commit given to gitops candidate request is that source’s. source is written to the configuration only when set, so existing hashes do not change. A source the environment does not follow is refused when the composition loads (candidate-source-unknown, naming the sources it follows).

  • Upgrade: piceli gitops enable again for the controller.

Version 0.84.0

Layers per platform; a candidate without copies (ops#106)

  • History layers for multi-platform images. The components of gitops history --json and gitops show RUN --artifacts now carry the file-mapping layers of every platform of a multi-platform image, each entry {"platform", "mapping", "digest"} (at most 4 platforms and 16 layers each). A single-platform image keeps {"mapping", "digest"}. The component image stays the index reference. Additive within piceli.gitops-history.v1.

  • Candidate(copies=()) is allowed. A candidate without copies is a ready marker: after the quiet time (or gitops candidate request) it is ready once the run that passed the commit is found, with digests taken from the run’s images.

  • A missing credentials Secret no longer stops the controller. Each CandidateCopy(credentials=) Secret is mounted as optional; the candidate fails with candidate-credentials-missing, naming the Secret, is retried with the usual backoff (up to five tries) and starts again with gitops candidate request.

  • Upgrade: piceli gitops enable again for the controller.

Version 0.83.0

Release candidates and a resumable copy to an outside registry (ops#106)

  • A run’s artifacts. The components of gitops history --json now carry image (repository and a reference pinned by digest) and layers (one entry per file mapping of a host build, at most 16). New piceli gitops show RUN --artifacts [--env E] [--json] prints piceli.gitops-artifacts.v1: the commits and, per component, the digest, image reference, platform digests, layers and provenance. piceli.gitops.releases.artifacts(document, run_id, env) returns the same body. A key is left out when the run did not record it (for example layers on an image built by Docker). The history schema stays piceli.gitops-history.v1.

  • A copy that survives a dropped connection. piceli artifacts copy gains --attempts N (default 5): a whole copy is tried again after registry-unreachable or HTTP 429, 502, 503 and 504, with a pause that grows to 60 s; other reasons stop at once. --set FILE copies a list of images under one plan digest. --ledger NAME records each copy, and a rerun continues at the first one not done.

  • No laptop port-forward. --in-cluster runs the copy as a Job next to the registry, which it reaches by its Service name; credentials come from a Secret (--credentials-secret), never from arguments. A killed client leaves the Job running, and the same command attaches to it. New hidden artifacts copy-job-run is what the Job runs; the report is piceli.copy-set.v1.

  • Release candidates. Controller(candidate=Candidate(environment=..., quiet="30m", keep=5, copies=(CandidateCopy(component=..., to="oci://host/repo", tag="{commit}"),))). After the environment passes a commit and no newer one passes for the quiet time, the controller copies that run’s images, by digest, to the declared paths with the resumable copy set. A candidate is waiting, building, ready, failed (with a reason) or cancelled; a newer passed commit cancels one still building. piceli gitops candidate request COMMIT starts one at once, release COMMIT marks it released, list [--json] shows them, and gitops status (text and JSON) gains candidates. The keep newest and every released one stay; their digests come from candidate list --json for artifacts retention --pin-file. See Release candidates.

  • Promote a passed commit that is not the newest. piceli promote HOST --from ENV --commit SHA (7 to 40 hex characters) pins a commit ENV passed even when a newer one passed since. It is refused (promotion-not-verified) unless ENV ran it with its release checks passed; the plan’s verified_run names that run and the digest covers the commit.

  • Not in this release: Nix closure candidates, a macOS build host, records-only paths and an upgrade environment.

  • Upgrade: the controller image for candidates and the in-cluster copy (piceli gitops enable again); the client for the new flags and commands.

Version 0.82.0

A source missing a tracked file is cloned again; the copy is restored (ops#101)

  • The host check looks at the files. git status calls a checkout clean when a tracked file is missing but its index entry has a skip-worktree or assume-unchanged flag. After each checkout, builder serve now also checks that every tracked file exists; if not, it clones the source again (source NAME did not verify on the host (source 'NAME' lacks 1 tracked file(s) (path)); re-cloned it).

  • The container’s copy is restored from its objects. If Git calls the copy of a source changed, the log names the paths and how each looks in the mount (builder: in the mount: ...), the container restores the tracked files from the copy’s own objects (exactly the commit the host verified), and says builder: source NAME restored from its objects; it is clean, or still not clean with the paths. The build then records the sources as before.

  • The copy fails loudly. The tar pipe is now cp -a: a file it cannot copy stops the build with the reason, instead of leaving a copy without it.

  • Upgrade: builder serve on the build hosts and the builder image.

Version 0.81.0

A missing value reads as its default only where the chart owner asks (ops#104)

  • default_on_reuse=True on HelmOptional and HelmToggle. 0.80.0 made every optional value or toggle with a true default read as true when helm upgrade --reuse-values finds the key missing from the stored values. That also switched on objects a client never turned on (a cluster-wide DaemonSet, for one). Now the chart owner chooses per value: with default_on_reuse=True a missing key reads as the default (an explicit false still turns it off); without it a missing key is off, as in 0.79.0. --reset-then-reuse-values still turns a default on.

  • Upgrade: a chart that relied on 0.80.0’s behaviour for a value adds default_on_reuse=True to it; every other chart renders as in 0.79.0 again.

Version 0.80.0

piceli bundle names the product the operator installs (ops#102)

  • --input-prefix PREFIX (default PICELI_INPUT_) names the input variables of prepare.sh, in its error texts and in INSTALL.md.

  • --tool-name NAME (default piceli bundle) is the tool named in the generated comments: prepare.sh, the headers of the chart’s templates, values.yaml, Chart.yaml and the chart README.

  • --annotation-domain DOMAIN (default piceli.io) is the domain of every annotation and label key the bundle writes (DOMAIN/bundle, /namespace, /helm-release, /configmaps-digest, /secrets-digest, safety.DOMAIN/allow-<rule>), in the objects, the pod templates, the selectors that use them and the fieldPath that reads one. A bad name is refused with bundle-invalid.

  • With all three set, no file or file name of a bundle or chart holds the tool’s name: the base’s image host, the schema of bundle.json and the chart’s Secrets template take the first label of the domain (images.shop.invalid, shop.client-bundle.v1, templates/shop-secrets.yaml). piceli support-bundle reads the DOMAIN/bundle marker under any domain.

  • Upgrade: the defaults are unchanged: a bundle rendered without the options is byte for byte the same. Moving an installed chart to a new annotation domain works with helm upgrade but makes its pods roll once (the digest annotation keys on the pod templates change); the old keys are not migrated.

A HelmChart takes one existing Secret per app Secret, and optional values keep their default on reuse (ops#103)

  • HelmChart(existing_secrets={"api.existingSecret": ["shop-api"]}) maps a value name to the app Secrets it replaces. Set it to the name of a Secret you made: the chart does not render those Secrets, and every reference to them (environment, volumes, projected sources, envFrom) reads the name.

  • Only what is needed runs. A generator whose outputs land only in replaced Secrets is skipped, and an import that feeds only them is not required, so an install that brings one Secret needs no --set-file for the rest. The secrets-digest annotation takes the name, so a different Secret rolls the pods.

  • The README, values.yaml and values.schema.json list each value with the keys its Secret must hold. A bad declaration is refused when the chart is built (bundle-invalid): an unknown Secret, a Secret in two values, a name that clashes with another value, a bad name, two Secrets of one value with a key in common.

  • existingSecret is unchanged: it replaces every Secret, and when it and a value are set together, existingSecret wins for all. List existingSecret in existing_secrets to make it a value of some Secrets only; then nothing replaces every Secret.

  • Optional values keep their default. helm upgrade --reuse-values over a release made before a value existed no longer turns it off: a HelmOptional or HelmToggle whose default is true reads as true when its key is missing. An explicit false still turns it off.

  • Upgrade: a chart without existing_secrets renders byte for byte as in 0.79.0, and a default of false renders as before. Only a chart with an optional value or toggle whose default is true differs in its templates (the if tests the key, then its value); nothing changes for a fresh install.

Version 0.79.0

A refused source says why, and the builder repairs its checkout (ops#101)

  • source-identity and source-drift carry their reason. A host build refused for a source dropped the cause (host build failed (source-identity)); the build log and piceli gitops builds now end the line with the source and the failed check, redacted and cut at 400 characters: host build failed (source-identity): git status failed in /work/src/shop: ..., or source 'shop' has 2 uncommitted change(s), or the drift’s shop: commit 'a' -> 'b'. The error’s message stays fixed; the text is BuildSpecError.reason.

  • builder serve checks each checkout the way the build does. After export_source, Git must name the commit and the tree must be clean. If not, the checkout is removed and fetched again, then the mirror too (as a corrupt mirror since 0.71.0). The repair is in the log and in the receipt’s source.repaired ("check": "identity"). If the source still fails, the log says why and the build decides.

  • Upgrade: builder serve on the build hosts (the reason and the repair) and the builder image (the reason inside a Job).

Version 0.78.0

Shared commands run alongside the platform commands (ops#99)

  • New opt-in [build] shared_commands_alongside = true in host-build.toml. A multi-platform host build ran its shared commands, then the first platform’s commands, then the second platform’s. With the field, the shared commands start at the same time as the first platform’s commands; a build whose shared step takes 453 s and whose platforms take 252 s and 251 s goes from about 1012 s to about 704 s. Without it, nothing changes: a platform command may still read the shared outputs.

  • An image is assembled once its platform’s commands and every shared command that names it (images, or every one for a plain entry) have finished. The two sides keep separate target directories (<cache>/target/shared and <cache>/target/<arch>-<page size>), so cargo never makes one wait for the other’s build lock.

  • The first failure on either side fails the build and stops the other side (SIGTERM to its process group, SIGKILL five seconds later; its step is cancelled). The error, the receipt’s steps (failing step last) and the log name the failing command. A cancelled host command now gets SIGTERM before SIGKILL in every build.

  • Every host build step records start_seconds, its start in seconds from the start of the whole build, so overlapping steps show. piceli gitops builds prints the commands’ wall time and, when they overlapped, their sum (3 command(s) in 706s (956s of work)).

  • Upgrade: the overlap runs inside the build: the builder image (what piceli builder serve and in-cluster build Jobs run, the controller’s) and the client, for local host builds. start_seconds reaches piceli gitops builds when the controller and builder serve on the build hosts are 0.78.0 (they must match already); an older one drops the field. An older Piceli refuses a spec with the field (invalid-spec), so set it only after the upgrade.

Faster CI

  • CI runs each Python version’s unit tests in two halves on two runners (PICELI_TEST_SHARD=I/N) and the kind tests in five shards; release images build while PyPI publishes, so they are out about two minutes sooner.

A flaky request no longer fails a copy or a promotion (ops#100)

  • A registry request that fails in transit (a refused, reset or aborted connection, a timeout, a name not resolved, a TLS connection cut short, HTTP 429, 502, 503 or 504) is tried again: up to 5 times, with a growing, partly random pause (about 1, 2, 4, 8 seconds; Retry-After honoured up to 60 seconds), never past the command’s deadline. Before, one dropped connection failed a whole artifacts copy with registry-unreachable.

  • A failed chunk of a large upload resumes where the registry’s upload session says it stopped (its Range); when the session is gone, the blob starts again (up to 3 times). A chunk is never resent blindly.

  • The copy receipt lists each retry (retries) and, on failure, where it failed (error: side, host, method, path, blob digest and offset, exception and errno or HTTP status; never a credential). The CLI line says it too: copy: failed [registry-unreachable] target ghcr.io PATCH blob sha256:9072a3f9… at 33554432: ConnectionResetError(54). The error codes are unchanged. Mirror receipts get the same retries and error.

  • The same retries cover every command that talks to a registry through Piceli’s client: artifacts publish, publish-files, deliver, copy, mirrors, retention and the in-cluster registry.

  • piceli promote: a git fetch, push, ls-remote or clone that fails in transport (such as ssh: connect to host … Operation timed out) now runs up to three times, after 2 seconds and then 4 to 8 seconds (0.74.0 retried once). git_retries entries gain attempt.

Version 0.77.0

A damaged cargo registry source is repaired (ops#95)

  • A dev run whose build cannot read or parse a file of an extracted crate in the cache’s cargo home (couldn't read `…/registry/src/…`: stream did not contain valid UTF-8, failed to parse manifest at, unknown start of token) removes that crate’s registry/src/<index>/<crate> directory and runs once more: cargo extracts it again from its checked .crate. The result says cache.repaired {kind: "registry-src-reextracted"}. Only a real directory strictly inside registry/src/ goes, under cargo’s own package cache lock. Damaged again after the fresh extraction, the run fails with the new dev-registry-src-damaged: the host is likely corrupting files (check its disk and memory).

  • piceli dev cache clear --crate NAME also removes that crate’s extracted sources (NAME: every version; NAME-VERSION: one); the new --registry-src removes only extracted sources (all, or --crate’s), no target. Never registry/cache nor registry/index.

A resumed or finished deploy names its commits (ops#98)

  • The controller’s end-of-deploy lines name the commits, as the push line does. main: deployed; rolled nothing is now main: deployed shop@610572993f71, workspace@c5f6c1059cf8; rolled nothing, and after a restart main: its deploy of shop@..., workspace@... was interrupted (restart), and main: verified shop@... (checks changed); rolled nothing. The verification failed, failed and approval required lines add at shop@..., workspace@... (the single-repository controller: at <commit>). A restarted controller’s log alone now tells which commits were deployed.

  • piceli gitops status --json already had the deployed commit of each source: envs.<env>.deployed_revision (and, per cluster, envs.<env>.clusters.<cluster>.deployed_revision); unchanged.

Version 0.76.0

Host builds send their step times (ops#97 follow-up)

  • piceli gitops builds --json shows step times for host builds too. piceli builder serve now sends the build’s steps (each command’s seconds, from its build container’s receipt) with its built answer, and with build-failed when the build ran commands (the steps that ran, the failing one last). The controller keeps them where an in-cluster build’s go, so steps is filled for every build: host or in-cluster, passed or failed. No more reading a host’s journal over SSH for step times.

  • Compatible both ways. A 0.76.0 controller records a build from an older builder serve without steps; an older controller ignores the new field. Upgrade both the controller and the build hosts to see host steps.

  • Steps from a host are checked. The controller keeps at most 64 steps and only their known fields (platform, kind, tool, state, exit_code, seconds); a step with a wrong type, a text too long or seconds out of range is dropped.

Version 0.75.0

A container-engine failure does not block a host (ops#97)

  • A build host whose container engine fails once is backed off, not blocked. When docker run exited 125 (the engine could not start the build container, for example a runtime hook error), the controller quarantined the host for every source of the build, with no end: the host refused every build until piceli gitops release-host, every image build went to the in-cluster fallback, and nothing said so. Now the early build-failed answer names its cause (engine or source); an engine failure hands the build over as before but quarantines no source. The host claims no image build for 5 minutes, then twice as long at each next engine failure in a row (at most 1 hour); after 3 in a row it is blocked until release-host. Its next build that starts clears the count. An older builder sends no cause: an early failure that names no source counts as engine. See engine backoff.

  • A source quarantine ends after 24 hours. The host then tries the source again (until in controller.source_quarantine).

  • piceli gitops hosts shows every block. Each source block and engine backoff or block, with its reason, cause and times (source_quarantine and engine_backoff in --json, new controller.engine_backoff in the status). Before, it showed only health events, so a blocked host read 0 recent health event(s).

  • Two new alarms. build-host-blocked fires for a host blocked by its engine (build-host-engine-failed) or by a source (build-host-source-failed). builds-fallback fires when an environment’s image builds all went to the in-cluster fallback: Alarms(fallback_after=3) builds in a row, or at least two over Alarms(fallback_for="6h") (build-host-fallback-only; new controller.builds_fallback in the status).

In-cluster builds keep their step times (ops#97)

  • piceli gitops builds --json shows each command’s seconds of an in-cluster build. When no build host took an image build, the in-cluster build Job (the fallback) printed its steps only in its pod log, and its record had none, so a script summing command times saw nothing. The Job’s receipt now lists every platform’s steps (the shape of a host build’s receipt: platform, kind, tool, state, exit_code, seconds); the controller keeps them in the history (builds.<image>.steps) and the build record shows them in the new field steps. The CLI line adds “N command(s) in Ss”. A failed build Job prints a last receipt line with the steps that ran, so a failed build is a record too (stage failed), with those steps and the end of its log in log_tail. Upgrade the controller and the builder image; with an older builder image a passed build shows its first platform’s commands, a failed one no steps. See Every build: list, start, cancel (0.26.0).

Version 0.74.0

Features

  • A pipeline spec’s declared platforms are all built and recorded as one OCI index. Since 0.68.0 a GitOps pipeline build compiled only the platforms of the nodes the pods run on, and build.platforms only limited them: an arm64-only environment built arm64 alone, and its recorded digest was one arm64 manifest, so a release had nothing to copy for amd64. Now a spec that declares platforms in [build] builds every declared platform and pushes one OCI (Open Container Initiative) image index over them; nodes pull their own platform. The status records the index digest with media_type and platforms (each platform’s manifest digest), and so do the history and piceli gitops builds --json (new field digests). Every platform’s manifest stays in the registry under the index. A spec without platforms, and Controller(delivery="nodes"), keep the 0.68.0 rule. The provenance’s platforms now lists the platforms built, not every enabled one. See Declared platforms are all built (0.74.0).

  • piceli artifacts copy promotes an image by digest. --from oci://host/repo@sha256:… --to oci://host/repo:tag copies the index, every platform’s manifest and blob, and the referrers (SBOM, provenance, signatures, and the referrers of those), keeping every digest; skopeo copy --all --preserve-digests lost the referrers. Same plan, approve and receipt flow as artifacts publish: without --approve it prints the plan digest (exit 3) and contacts nothing; the tag moves last, and one that names another digest is refused (copy-tag-exists) unless --move-tag. New error codes copy-invalid, copy-not-approved, copy-tag-exists, copy-verification-failed and copy-failed. See Promote a built image by digest: piceli artifacts copy (0.74.0).

The build rule runs in the controller: upgrade the controller. Images of a spec that declares platforms rebuild once (their platforms are part of the image key). artifacts copy runs in the client: upgrade the client that releases.

Fixes

  • A sync waiting for its build is not a failed run. While a build host built the commit, the controller ended one SYNC <composition>/<env> run per poll as failed (error.type: build-waiting, status ERROR), each with build <image> spans marked component-build-failed: a dozen failed runs per good deploy, and alerts on failed runs fired for the whole build. Such a run now stays open, like a run waiting for its approval: one trace from the push to the result, one build <image> span per image from the first wait to the delivery, and one INFO event piceli.build.waiting. component-build-failed stays for a build that failed. A run replaced by a newer revision (superseded) has status unset and counts no run error; its unfinished builds are cancellation.

  • A re-verification no longer invalidates a piceli promote approval. The plan’s digest covered the run that verified the pinned commit, so when the environment ran the same commit again between plan and --approve (a push to another of its sources), the approval failed with promote-plan-changed. The digest now covers what the promotion changes (host, input, old and new commit, lock hash, tag, base, remote, branch). The commit must still be verified at plan and at approve; the run found at approve is named in the commit message, the tag and the result’s new verified_run.

  • A failed promotion push is resumed by the same command. After promote-push-failed, running the same --approve command again finds the local commit and tag, checks the commit is exactly the planned flake.lock change, and pushes them (resume in the plan, resumed in the result). Before, the working copy was refused as ahead of its upstream and the push had to be typed by hand.

  • One transport failure no longer stops a promotion. A git fetch, push, ls-remote or clone that times out or loses its connection is retried once after 2 seconds, listed in the result’s new git_retries.

  • A re-verification no longer changes a gated NixRelease plan. When the controller plans the same pinned commit again, the live plan keeps its pinned run, so its digest and approval stay valid.

A digest printed by an older client does not match: plan again after the upgrade. Build hosts are unchanged.

Version 0.73.0

Features

  • piceli dev nix build --artifact PATH copies files of the built output back. Before, a build copied back only a disk image (--image), so reading one small file of an output (a manifest, a list) meant building it again outside Piceli, where the build’s private inputs are not reachable. --artifact (repeat) takes a path or glob relative to the output; the files land under --artifacts-dir and the result’s new artifacts field lists each with its path, local file, bytes and sha256 (an empty list without --artifact). A path that matches nothing fails the build with dev-nix-no-output; an absolute path, .. or ** is refused before the build (dev-nix-invalid).

Version 0.72.0

Fixes

  • A tracked file a run’s command changed is restored. An in-place refresh of a lineage’s tree only re-read the paths of the uncommitted changes, so a file a test or build script had deleted, truncated or rewritten stayed that way for up to 49 runs, and a later run of the same commit failed with a missing file. Each in-place refresh now checks every tracked file of the commit (exists, file, executable or symlink, size) and re-reads those that differ (sync.restored, with up to 10 paths in sync.restored_sample). About 90 ms for 10,000 files. A same-size content change is not caught; the full sync every 50 runs still covers it.

  • A run never starts on a tree that lacks a tracked file. After the sync of a delta upload, a tree still missing a file the commit tracks (less those the run’s own diff deletes) fails the run with the new error dev-tree-mismatch, listing a few paths; the next run syncs in full.

The fix runs in the client: piceli dev run sends its own copy of the run’s code. Upgrade the client that starts the runs.

Version 0.71.0

Fixes

  • A dev run on a damaged disk continues on a fresh lineage. When the tree sync into a lineage fails with a filesystem error inside it (EUCLEAN “Structure needs cleaning”, EIO, EBADMSG, EROFS, ENOTEMPTY), the lineage is renamed into cache/quarantine/ without reading or deleting anything in it, and the same run continues on a fresh lineage (cache.repaired.kind = "lineage-quarantined"). A quarantined lineage is never taken again; piceli dev status lists it until a person removes it. A second fault fails the run with dev-lineage-damaged.

  • No empty folder survives a tree sync. A whole-tree upload that held an empty folder (left by a branch switch) kept it in the lineage, and a workspace glob such as members = ["crates/*"] then failed. Empty folders are now removed after every sync (bottom-up, never the root, never inside target/ or .git/).

  • A corrupt source mirror is cloned again. When a build host’s Git mirror of a source is corrupt (pack has bad object, invalid index-pack output, …), builder serve removes it and fetches the source once more in the same build, says so and records it in the receipt (source.repaired). Before, the host handed the build over and stayed quarantined for that source. A network or credential failure never removes the mirror.

  • The fallback does not wait for hosts that cannot build. It builds at once when every declared host is quarantined for one of the build’s sources, also when an earlier build set the quarantine; and after 60 seconds, not host_wait, when no host that may take it reported in the last 10 minutes (an offline laptop). The waiting status says why.

The dev-run fixes run in the client: piceli dev run sends its own copy of the run’s code. Upgrade the client that starts the runs. The build-host fixes need the 0.71.0 controller and builder serve.

Version 0.70.1

Fixes

  • typer is capped below 0.29. typer 0.29.0 (released 2026-11-09) reworked its option classes: piceli help-json failed and --help on a subcommand exited with code 2 in a fresh install. Piceli 0.70.0 allowed it; its images were never published, use 0.70.1.

  • A release run finishes after an interrupted one. When the PyPI files were already uploaded, the release workflow skipped the release notes and the images too; they now run once the tag is pushed.

Version 0.70.0

Fixes

  • A silent build keeps its claim. A build host now reports every 2 minutes while it builds, whatever the build prints. Before, only output lines renewed the claim, so a compile or link step silent for 10 minutes made the controller drop it (and its in-cluster fallback could start a second build).

Version 0.69.0

Fixes

  • A damaged dev lineage is rebuilt, not reused. When a run on a warm lineage still crashes rustc after the incremental/ repair, or a linker refuses a file inside the lineage’s target/, or rustc itself is killed by SIGSEGV or SIGBUS while compiling, the run removes that target/ and runs once more cold (cache.repaired.kind = "lineage"). A lineage still damaged at the end is removed, so the next run never takes it. Before, the incremental repair could not reach damaged dependencies in target/debug/deps/, and each new run failed on the same lineage.

Version 0.68.0

Changes

  • Pipeline builds compile only the platforms the pods run on. An environment’s needed nodes come from its on_nodes, else from its pods’ node selectors (kubernetes.io/arch, the hostname, Piceli’s role labels), else every node. A build compiles their platforms only, and delivery into nodes imports into those nodes only. An arm64-only environment on a cluster with an amd64 builder node no longer builds amd64. Its images rebuild once after the upgrade, since the platforms are part of the image key.

  • Build steps for some images only. A host-build command can be { run = [...], images = ["site"] } in build.commands or build.shared_commands; it runs only when one of those images changed. A plain argv list still runs in every build.

  • Only changed images are assembled. Images whose key did not change are no longer packaged or pushed again.

  • Failed dev runs stay in piceli dev status for 7 days (in failed, at most 60) after they leave the last 50 runs; piceli dev logs RUN finds them.

Fixes

  • Every CI download from GitHub is signed in. OpenTofu, sops and kustomize now come through scripts/gh_fetch.sh (gh release download with the job’s token, retried for about two minutes), like kind and Flux since 0.67.0.

Version 0.67.0

Changes

  • A failed dev run names the signal that ended it. The result has signal (number, name, and whether the command or a line of its output showed it) and a cause: SIGKILL is out-of-memory and no longer looks like a crash; SIGSEGV, SIGBUS and SIGILL are host-or-toolchain. piceli dev status keeps signal, cause, health and the last 30 lines (was 20) of each failed run, and the run summary ends with killed by SIGKILL (out-of-memory).

Fixes

  • CI and the builder image survive slow GitHub downloads. kind, the Flux and Gateway API manifests are fetched signed in, with retries; the builder image’s nextest download retries on a cut-off transfer.

Version 0.66.0

Changes

  • Optional ConfigMap volumes. ConfigVolume(..., optional=True) renders configMap.optional: true, like SecretVolume since 0.55.0: the pod starts when the ConfigMap is missing and sees an empty directory. A HelmValue can name the ConfigMap, also on a workload another value patches.

Version 0.65.0

Changes

  • Retired Helm values. HelmChart(retired={"tlsCert": "a TlsCa makes it now"}) names values an older chart had. The schema still accepts them, so helm upgrade --reuse-values from that chart works; the chart ignores them, and the install notes warn when one is set. Before, the upgrade failed: additional properties ... not allowed.

  • Scalars as strings where needed. A boolean or number HelmValue placed where the object holds a string (a ConfigMap key, an environment variable) is written as one ("true", "30"), so a chart can offer scrape.enabled: false.

Version 0.64.0

Fixes

  • A rustc 1.97 crash is repaired again. Since 0.20 a dev run that hits a rustc internal compiler error drops the lineage’s incremental/ directories and runs once more. rustc 1.97 words the crash differently (thread 'rustc' (1169) panicked, the compiler unexpectedly panicked), so the retry never ran and the build host was not marked. Both wordings are recognised now.

Changes

  • piceli dev run --env. --env NAME=VALUE (or --env NAME, its value in your shell) sets a variable for one run over the profile’s env, such as CARGO_INCREMENTAL=0. Before, a variable set in the caller’s shell never reached the run.

Version 0.63.0

Changes

  • Helm charts make a private CA and its certificates. A TlsCa (or self-signed) generator was refused by piceli bundle --helm. The chart now makes the CA and the leaves at install (genCA, genSignedCert) and keeps them on upgrade through lookup; a DNS name with the bundle’s namespace takes the release namespace. Keys are 2048-bit RSA; other sizes and IP addresses are refused.

  • Several Helm values on one object. Two HelmValues aimed at the same object (for example scrape.enabled and scrape.intervalSeconds) were refused with name objects the render lacks: the placements were counted per object, not per value. Each value now renders its own place.

Version 0.62.0

Fixes

  • Helm charts upgrade with --reuse-values. A chart from piceli bundle --helm now reads every nested value (storage.size, image.registry, intake.expose, a HelmValue like alerts.egressAllow) safely: when the values lack its map, as with helm upgrade --reuse-values from an older chart, the value takes its default. Before, the render failed with nil pointer evaluating.

Version 0.61.0

Changes

  • “Warm” means warm for this command. A dev run prefers the lineage that last finished the same command key (the command up to --, its working directory, RUSTFLAGS, CARGO_* and the other build variables). Before, a lineage built for other commands counted as warm, and a new target or profile compiled every crate there (875 s where the warm build took 93 s). When only a busy lineage has the key, the run copies it into a new lineage if there is room, else waits for it up to 120 s (warm_wait_seconds). The result adds cache.tree_warm and cache.command_key; the log says cold for this command when only the tree was warm.

Version 0.60.0

Fixes

  • A rollback keeps the current tailnet companions. A rollback still re-applies the older release’s own objects, but its tailnet companions (label piceli.io/access) now come from the release it rolls back from. Before, rolling back to a release 0.58 had rendered brought back the Access(https=True) companions that 0.59 fixed, and deleted a TURN Service’s plain companion.

Version 0.59.0

Fixes

  • Access(https=True) serves only HTTP over HTTPS. A port counts as HTTP by its forward’s scheme (as piceli access shows it), not by its path: every forward has a path (/ by default), so a TURN forward got Tailscale Ingresses. UDP ports never get an Ingress, and a port number gets one Ingress, not one per protocol.

  • A companion changing kind keeps its tailnet name. Turning on https replaces a port’s plain companion (a LoadBalancer Service) with an Ingress of the same name. The release now deletes the old companion first and waits until it is gone. Before, the Ingress was created while the old proxy still held the name, so it registered as NAME-1.

Version 0.58.0

Fixes

  • A failed switch says why. The host agent keeps the end of a failed switch-to-configuration (or service restart) output in the failed stage’s detail and in its journal. Before, it kept only host-switch-failed, so a cause such as warning: user activation for root failed took a journal search to find.

  • host wait keeps one SSH connection. Status reads share one connection (ControlMaster, kept 60 s after the last read), so a wait no longer opens a login session every poll. Each logout stopped root’s user manager 10 s later, and a switch that landed in that gap failed.

  • Generated host modules keep root’s user manager running. A whole-system host module sets users.users.root.linger = lib.mkDefault true, so no logout can stop it during a switch. Service-mode modules do not.

Version 0.57.0

Features

  • cargo-nextest in the builder image. The builder image ships cargo-nextest 0.9.149 (pinned, checked against its sha256, amd64 and arm64), so development runs on build hosts run test binaries in parallel with retries instead of falling back to cargo test.

  • One name for plan hashes in JSON. The plan documents of promote, artifacts publish and artifacts publish-files carry plan_hash (the value --approve takes), as gitops enable already did; a script reads stdout, not the human text on stderr. An approved promote always prints its result (tag, commit) on stdout.

Fixes

  • builder serve no longer fills its temporary directory. A build’s scratch was bind-mounted into the container, whose user made directories there the host’s user could not remove, so every build left files behind (49 GB on one host). The container now opens the scratch to the host’s user before it exits, and builder serve removes the scratch of killed builds (older than 6 hours) when it starts.

Version 0.56.0

Fixes

  • A Docker host’s cache volume is always the run user’s. The volume was given to the run user (uid 65532) only when Piceli created it. Reading a host’s cache (dev status) or builder serve --check mounted it first when it did not exist, so Docker created it owned by root and every run failed with Permission denied: '/cache/git', for example after the host’s Docker data moved. Runs and builder serve now set the owner every time and fail clearly when they cannot; reads and the check never create the volume.

  • A claimed build says where it builds. gitops wait, enable --wait and the controller log said “waiting for a build host” while a host was already building; they now say building <images> on <host>.

  • Paused runs no longer wait for good. A dev run paused for 10 minutes that still does not fit the cache stops (dev-cache-over-cap) and its lineage is freed for the runs that wait.

Version 0.55.0

Features

  • Optional Secret volumes. SecretVolume(..., optional=True) renders secret.optional: true: the pod starts when the Secret is missing, with an empty directory. A chart can mount a Secret its user creates later, or never (an alerting key), on a workload another value already patches.

Version 0.54.0

Fixes

  • dev status says why queued runs wait. The scheduler’s held (the node under disk pressure, the cache over its budget) and each queued run’s waiting_for reach dev status and its --json; a waiting dev run prints the reason next to its position. Before, the view dropped held, so a queue held by disk pressure looked stuck for no reason.

  • The cache numbers survive a controller restart. A restarted scheduler starts from the last published cache use and recent runs.

  • Queued runs nobody waits for expire. A dev run that leaves before its run starts deletes its queued Job. A client killed outright cannot, so it marks its Job every 30 s while it waits; the queue removes a run with no mark for 5 minutes, or one that waited past its queue timeout (dev-run-abandoned).

Version 0.53.0

Features

  • A new lineage starts warm. A run picks the free lineage of its branch, else the one nearest its commit in Git (fewest commits apart), else the most recently used. A run that needs a new lineage starts from a copy of the nearest sibling, busy or not (cp --reflink=auto, else a plain copy); files that changed during the copy are removed with their cargo unit, so cargo rebuilds only those. The result says cache.warm: "seeded" and cache.seed.

  • A full cache pauses a run instead of stopping it. When a lineage passes its cap while other runs hold lineages, the youngest running run pauses (SIGSTOP) and resumes when room appears (cache.paused); older runs continue, so the oldest always finishes. Its lineage is kept. Only a run that alone is over the budget still stops (dev-cache-over-cap). Paused time extends the run’s deadline, by at most its timeout.

  • piceli dev status lists the lineages (size, last use, the run that holds it, its hint, paused), largest first; --json lists them all. piceli dev hosts shows a docker or native host’s lineages.

Version 0.52.0

Features

  • One trace per host release. piceli gitops build NAME --ref TAG --traceparent TP and piceli gitops approve NAME DIGEST --traceparent TP take a W3C (World Wide Web Consortium) traceparent; without one the controller starts a trace when it plans the release. It travels beside the plan (never in its digest) to the build host, which signs it into the ref pointer. The host agent’s deploy uses its trace id and its records carry the parent’s span id (spanId), so the release shows up as one trace in the collector. host status shows parent_span_id. A bad value is refused by the CLI (gitops-traceparent-invalid) and ignored by the agent.

Version 0.51.0

Fixes

  • host status no longer says the report is ok while nothing is sent. The host agent keeps its last send error (last_error, last_error_detail such as HTTP 415, last_error_at) and its last success (last_sent_at, sent_total) across runs; the report is down while records wait behind an error.

  • Waiting records are sent again on every run, also a run with nothing new, and once more after a release’s checks pass, so a release that restarts the collector still delivers its events.

Version 0.50.0

Fixes

  • piceli dev run uploads work with staged renames. Uncommitted changes go as a delete and an add, and the builder reads both names of a rename (also in uploads from older clients), so the patch applies.

  • A run killed while its tree was refreshed in place no longer leaves a stale record: the next run on that lineage syncs the whole tree.

  • dev-cache-over-cap names the cap that stopped the run. The cap shrinks while a run runs when other runs’ lineages grow; the message gives the cap at the stop, the cap at the start and what other runs hold, and the result records cache.cap_bytes_at_stop.

  • Merge-train runs started in the same second sort in order. Run ids carry microseconds, so train-wait <train> and status find the newest run; older ids still work.

Version 0.49.0

Features

  • Release retention. [release] keep_releases = 20 (or Pipeline(keep_releases=20)) keeps the newest releases, the running one and any rollback target, and retires the rest with their sessions, files, executions and secret versions at the end of a successful apply. Off unless set; values below 2 are refused.

  • piceli release retention runs it by hand; --dry-run lists what it would retire and changes nothing. Replace backups are never deleted; their size is reported.

Fixes

  • The secret store no longer fills up with old object copies. Versions nothing names any more (also those left by executions 0.47.0 already forgot) are removed after a grace period, and the store’s budget counts the pages in use, so freed space counts before a VACUUM.

  • A rollback to a retired release says it was retired.

Version 0.48.0

Fixes

  • A growing development run makes room before it is stopped. A run’s cap was the cache budget less what the other lineages held when it started, so on a full cache a run was stopped (dev-cache-over-cap) and its own warm lineage evicted while idle lineages stayed. Now it evicts free lineages first and stops only when nothing else can go.

  • gitops wait survives a slow API. A timed-out or dropped status read is retried until --timeout instead of ending the wait.

  • Release journal compaction is logged: what it removed and the bytes in use.

Features

  • A build host’s own cache budget. BuildHost.docker(..., cache_max="300Gi") (also native hosts) replaces the cluster’s cache_size share on that host, so a host with a large disk keeps more lineages warm.

Development

  • The nightly CI has its own concurrency group, so it never cancels the push run on main that the release waits for.

Version 0.47.0

Fixes

  • A full release journal no longer blocks every release. The journal kept every execution forever, so after about 160 releases it reached its 64 MB budget and every new release was refused (“journal byte budget exhausted”). Past half its budget it now forgets finished executions nothing needs (not pending, not the latest of a release, not in recent history, not named by a migration lineage), counts only the pages in use, and shrinks the file with VACUUM. Deployment sessions stay. See How big the state grows (0.47.0).

Version 0.46.0

Features

  • The Helm release name and namespace as env values. A generated chart escapes every {{ in literal values, so a container could not be given {{ .Release.Name }}. HelmRelease.name and HelmRelease.namespace are env values for that: the namespace comes from the pod itself, and the name from a pod annotation the chart sets to the release name (only on pods that use it). Outside Helm the name is empty.

Version 0.45.0

Features

  • Release services, not the whole system. NixHost(..., scope=Services(profile, units)) publishes and follows a package: the agent sets the named Nix profile to the new build and restarts only the listed units, and rolls the profile back when a restart or check fails. It never runs switch-to-configuration or touches the boot entry, and generations= prunes that profile only, so a hand-run nixos-rebuild and a release never undo each other. See Only some services. Moving a host into service mode drops what the agent recorded for the system (its current, previous and held builds), so no rollback or pin ever points the profile at a system build.

Version 0.44.0

Fixes

  • A test tag never becomes the release a host follows. A tag with build metadata (web-v1.2.3+rollbacktest) used to count as a normal release, so it outranked the real ones: a host followed it, and piceli promote bumped from it or reported current without a new tag. Such a tag is now a test tag: hosts, Nix releases and promote ignore it (the host status lists it under ignored_tags), and a host still running one goes back to the newest release at its next poll.

Features

  • Checks that must hold. HostCheck.unit(..., stable=N) (also http and command) must keep passing for N seconds after a switch; a failed try within that window starts it again. A unit that starts and dies a few seconds later now fails its check, and the host rolls back. The default (0) passes on the first success, as before.

Development

  • The release images build each platform on its own runner (arm64 on ubuntu-24.04-arm) instead of emulating arm64, and join the two digests under the version tag.

Version 0.43.0

Fixes

  • Nix builds on a docker host run in parallel. A DevProfile.for_nix run (and piceli dev nix build --publish) reaches the host’s Nix daemon from a container that has no nix.conf, so its client asked the daemon for max-jobs = 1 and independent derivations built one after another. The container now gets NIX_CONFIG=max-jobs = auto; a profile’s own NIX_CONFIG still replaces it.

Development

  • A pre-commit hook (doc-refs) refuses a {ref} without a title to a label that is not above a heading, which the docs build rejects.

  • The pre-commit hooks keep every extra installed (uv run --frozen --all-extras), so a commit no longer leaves the environment without them.

Version 0.42.0

Fixes

  • An in-cluster build no longer stops the controller. The controller used to create the build Job and wait for it inside its poll: during a 25-minute build nothing else ran (no other environment, no approval, no NixRelease publish, piceli gitops builds empty). Now it starts the Job, records it (controller.cluster_builds in its status) and looks at it once per poll, as it already did for builds on build hosts. The waiting environment says building <images> in the cluster: Job <name> since <time> (pending|running). A passed Job’s receipt and a failed Job’s log tail are read as before. A restarted controller looks at the same Job. piceli gitops cancel deletes it (before, it ran to its end), and a commit with other inputs replaces it. piceli gitops run --once still waits for its build. See in-cluster build Jobs.

  • A commit that changes no input keeps the running build. A wanted build is now named by each image’s change key and the platforms, not by the commits it is fetched at. A commit that changes only a file no image reads (for example flake.lock) no longer cancels a host’s running build and offers a new one: the claim (or the in-cluster Job) continues and its images serve the new revision. A build not yet claimed is handed the newest commits. A host’s failure now stands for the same inputs, not the same commit: a commit that changes none of them does not retry it (piceli gitops sync does). See build identity.

  • A replacement build goes to the live host first. When inputs really change while a host builds them, the new build is offered first to that host, and the in-cluster fallback waits while the host still reports (within 10 minutes, the rule that already decides a claim is dead), even past host_wait. Before, the fallback took it after host_wait although the host was alive and idle. host_wait still applies when no host is alive. A build that replaces one the cluster was building goes back to the cluster at once. See replacement builds.

Version 0.41.0

Features

  • A failed host build’s output reaches the run record. A build host that answers build-failed now sends the failing command’s own block (the failed step, the first error, then the command’s last lines) and its stage (fetch, build or push). Before, it sent the end of the whole build output, bounded from the end in three places (the host’s 120 lines, the status’ 80 lines, the history’s 2000 characters), so lines printed after the failing command pushed the command’s own output out, and the stage was never sent. The controller keeps both in failure (log_tail, stage, host) and in each failed_attempts entry. piceli gitops show RUN --logs prints them (text and --json), a failed run now also keeps the attempts before it, and the text no longer says “in stage None”: a run without a host stage shows the step’s stage. The output is redacted by the build, as before, and stays bounded.

  • A command that names a file its context does not stage is refused when the spec is loaded (host-build-path-not-staged). For example ["bash", "site/scripts/build.sh"] with [context.site] include = ["src/**"] used to fail on the build host with No such file or directory. The error names the command, the path and the include list. The check is conservative: plain relative paths only, the programs of a sh -c script only, placeholders, outputs and directories skipped. See Builds without a VM.

  • An identical failure is not retried. When a step fails with the same code and the same output (times, durations, temporary paths and hex ids taken out) on the same revision and inputs as the attempt before, the environment is failed at once, with stopped: "same-failure" in its status and history entry, instead of four more attempts over about nine minutes. Failures that may pass on their own (unreachable, timeouts, network errors, quarantined hosts, disk or memory pressure) are still retried. A new revision or piceli gitops sync tries again.

Version 0.40.0

Features

  • FilesImage, a folder of an image mounted read-only. A content-keyed folder of files (site builds, for example) can now come from an image in one declaration: volumes={"/srv/builds": FilesImage(images["site-builds"], size_limit="2Gi")}. It renders a disk emptyDir, an init container files-<volume> that runs cp -a /data/. /piceli-files/ with that image (before the workload’s own init containers), and a read-only mount in every container. The image is resolved, mirrored and pinned like any container image, so a new digest rolls the pods. The init container gets the workload’s security settings over locked-down defaults, and small resources when the pod declares resources. The image needs a cp (a pinned busybox base is enough); the copy runs once per pod start. See Describe an app in typed Python (“Files from an image”).

CI

  • Pull requests that touch machine code run the OpenTofu tests again: the checkout fetched one commit, so the comparison with the base failed and the tests were skipped. The check now diffs the pull request’s merge commit against its base, and runs the tests when the diff itself fails.

  • Tool downloads in CI (OpenTofu, sops, Helm, kustomize) retry 5 times, so a dropped connection no longer fails a run.

Version 0.39.0

Features

  • Plain file outputs for host builds: [[output.files]] in a host-build.toml (name, and target_files mapping a path under the target directory to a file name, placeholders such as {arch} allowed) copies each file to files/<name>/<file name> in the output directory (<platform>/files/… for several platforms). A spec may declare files only, with no image. The receipt (piceli.build-receipt.v1) lists them in outputs.files ({path: sha256}, as a Docker build’s receipt does) and in the new outputs.file_details (per path: output, file, platform, sha256, size). Specs without the section keep their digests and plan hashes. See Builds without a VM.

  • piceli artifacts publish-files --receipt RECEIPT publishes the files a host build receipt lists (each must still have the receipt’s sha256 and size; --output-dir when they are not next to the receipt). See Publish and sign release files.

  • A deploy pipeline and piceli build job refuse a host build with no image (pipeline-invalid), and a composition controller refuses [[output.files]] (composition-invalid): they deliver images only.

Fixes

  • The nightly retention test on kind waits for the Deployment’s observed generation before it trusts the rollout status (#88): the controller writes the new revision before it updates the status, so the old status could pass for the new revision.

CI

  • The tests that run the real OpenTofu binary (marker tofu, the slowest of the suite) run only with PICELI_TOFU_TESTS=1: a local pytest -n auto skips them. CI installs OpenTofu and runs them nightly, by hand and on pull requests that touch machine code (before, CI had no OpenTofu and always skipped them).

Version 0.38.1

Fixes

  • A development run can no longer fill its node’s disk. On storage that never enforces a claim’s size (k3s local-path), a lineage in use was counted but never evicted, and the cache’s budget was checked only before a run: one lineage could grow far past the claim until the node was under disk pressure, and then no run started to trim it. Now the wrapper watches the cache’s disk while the command runs (statvfs every 15 seconds, a measurement of the lineage only when needed). A lineage over its cap (the budget less the rest of the cache), or one that grows by 1 GiB while the disk is under 15% free, stops the run with the new code dev-cache-over-cap and is evicted at once. The result’s cache has cap_bytes, lineage_bytes and over_cap.

  • Every development run evicts the cache to its budget again when it ends, passed or not (cache.trim in its result), so the cache never sits over its budget between runs.

  • While the last run left the cache over its budget or its disk low, the queue starts one run at a time, and only when none is running; while the builder node is under disk pressure it starts none. dev status and a waiting dev run say so (held). The controller still creates no Job in piceli-dev.

Version 0.38.0

Features

  • piceli gitops history, gitops show and gitops compare: the controller’s deployment history on the command line, read-only, from the document the UI’s Deployment history reads. history [ENV] [--limit N] lists each environment’s runs, newest first, each with window and release_window; show RUN [--logs] is one run and the log tail it kept; compare ENV [A] [B] puts two runs side by side (default: the running release and the one before): source commits, components whose image changed, objects added, removed and changed, and both windows. --json prints piceli.gitops-runs.v1, piceli.gitops-run.v1 and piceli.gitops-compare.v1. New codes: gitops-history-unavailable, gitops-run-unknown. See GitOps: Piceli’s controller and manifest export.

  • Release markers: each finished release sends one OpenTelemetry log record named piceli.release, from the controller (an environment deploy that applied a release, a published NixRelease) and from each Nix host’s agent to the host’s own HostReport endpoint. It carries deployment.environment.name, deployment.id, deployment.status (succeeded, failed, rolled_back), service.version, vcs.ref.head.revision, the components it changed, its window (piceli.release.started_at, .finished_at, .seconds) and the previous release (piceli.release.previous.*). A rollback that ends a release sends one with rolled_back. Existing events and attributes are unchanged; the host agent’s resource adds deployment.environment.name. See Deploy events to OpenTelemetry.

Fixes

  • A node under disk pressure that holds a Piceli cache recovers.

    • piceli dev cache clear and piceli gitops cache clear run their Job with the priority class system-node-critical. Under DiskPressure the kubelet admits only critical pods: the toleration of 0.35.0 got the pod scheduled, then the node evicted it. A ResourceQuota that limits that class in the namespace stops it; the refusal says so.

    • A pod the node refuses or evicts fails the command with the node’s reason (the cache-clear pod was rejected by the node: Evicted: The node had condition: [DiskPressure].), not “the cache-clear Job printed no result”. controller.cache_clear adds reason and message.

    • No run or build starts on such a node, so their budget eviction never ran there. The controller now evicts the build cache to its budget itself, at most once per poll window, and records it in storage.relief. It does not create Jobs in the development namespace, where untrusted code runs, so for the development cache storage.relief records the refusal and the status says to run piceli dev cache clear.

    • storage.caches carries each cache’s last measured use (used, budget, free disk), and the controller is degraded with a plain reason (storage.problem, controller.storage_problem) while a node under disk pressure holds a Piceli cache. gitops status shows health: degraded.

Version 0.37.1

Fixes

  • Piceli works again with the oldest kubernetes client it allows (29.0). Clients before 36.0 have no V4_CHANNEL_PROTOCOL constant (port-forward checks failed with an import error), read the bearer token from another key (exec-plugin and tokenFile credentials were not sent) and cannot choose a patch type per call (branch environments and claim growth sent a strategic merge patch). All three now work on 29.0 to 36.x.

CI

  • A failed nightly run (CI or Stress) opens one issue labelled nightly-failure, comments on it while the failures go on, and closes it when the nightly passes again.

  • Coverage uses the sysmon core (Python’s sys.monitoring): the test job with coverage was twice as slow as the others and the longest job of a pull request.

  • The delayed-write executor test no longer fails when a read is slow on a busy runner: only the held write has the short time limit.

Version 0.37.0

Fixes

  • A NixHost runs a release only once it says so. piceli gitops builds and the Builds page named a host in running_on as soon as the release was published, before the host switched to it. A NixHost now counts only when its own agent reports the revision as its current system with its checks passed. Until then the build’s new field host_switch is not-switched-yet (the CLI prints “published, host not switched yet”); after it, switched.

Features

  • {source_rev:<context>} in a host build’s env. A build.env value can carry the full commit of the source a context reads, for example APP_BUILD_REV = "{source_rev:shop}". It is filled in when the build runs, after the plan hash, so a commit that changes no staged file keeps the same plan. An unknown context, or one without a source, fails when the file is loaded. See host builds.

Version 0.36.0

Fixes

  • A reused lineage no longer keeps emptied folders. piceli dev run removed the files of a deleted folder but kept the folder. A Rust workspace with a glob member (members = ["crates/app/*"]) then failed on every later build of that lineage: cargo found a crate folder without Cargo.toml. The sync now removes folders it leaves empty (never the lineage root, never under target/ or .git/), also those left by older versions. The sync result counts them in removed_dirs.

Features

  • ScratchVolume, a scratch folder on disk. MemoryVolume keeps its data in RAM, which costs the node’s memory for large files. ScratchVolume(size_limit="2Gi") renders an emptyDir on the node’s disk and is accepted wherever MemoryVolume is (containers, init containers, sidecars). Its size_limit counts against the node’s ephemeral storage: a pod that writes more is evicted. piceli import now types a plain emptyDir as ScratchVolume.

Version 0.35.0

Features

  • Cache budgets enforced by Piceli. On a storage class without quotas (k3s local-path) a cache claim is a directory on the node’s disk and could grow past its size until the node was full. Before each development run the whole cache now counts (lineages, toolchains, cargo’s home, Git mirrors), and free lineages are evicted, least recently used first, while it holds more than DevBuilds(cache_budget=) (default 0.8) of cache_size or while its disk has less than 15% free. A lineage a killed run never released, or one that never recorded its size, is measured again instead of counting as empty. Each cluster build Job does the same on its cache claim (JobSettings.cache_budget, ClusterBuildConfig(cache_budget=), default 0.8), evicting the least recently used target/<arch>-<page size>, stage/<name> and blobs. Both report over_budget, fs_free_bytes, fs_low and what they evicted (the run’s result and the build receipt’s cache).

  • Disk alarms. The controller reads every minute which nodes report DiskPressure and the caches’ last budget checks, publishes them as controller.storage, and piceli gitops alarms raises node-disk-pressure and cache-over-budget (each resolved when the condition ends). The dev scheduler’s status carries node_disk_pressure.

  • piceli dev run never waits in silence. It says at once what it waits behind (queue, cache against its budget, a node under disk pressure), repeats its state every 30 seconds, and fails with dev-run-unschedulable and the scheduler’s reason when its pod finds no node for --unschedulable-seconds (default 60) instead of waiting for --queue-timeout. piceli dev cache clear fails the same way.

Changes

  • piceli dev cache clear and piceli gitops cache clear Jobs tolerate node.kubernetes.io/disk-pressure:NoSchedule: they free space, so they run on a node whose disk is full.

  • The development cache budget was 85% of cache_size for the lineages’ recorded bytes alone; it is now cache_budget (80%) of everything in the cache. Build Jobs carry PICELI_CACHE_MAX_BYTES and PICELI_CACHE_MIN_FREE_RATIO, so cluster build plan hashes change once.

Version 0.34.0

Features

  • Client charts: one value adds objects and patches others. HelmOptional(description, objects=[...], patches=[(obj, patch)]): patches (a JSON Patch or a merge patch per object, as for HelmToggle) applies only when the value is true, so one value (for example intake.expose) both installs a Service and a NetworkPolicy and switches the app’s listen address. objects may now be empty when patches is not. A patched object may not be one of the optional objects of any value, nor patched by another value (bundle-invalid), and the patched render passes the safety gate. See Deliver to a cluster you never access.

  • Client charts: optional secret inputs. HelmChart(optional_inputs= ("privateCa",)) names --set-file inputs the client may leave out: the install no longer fails, and the Secret keys the input fills are omitted while it is empty (once passed, it is kept across upgrades like any input). piceli bundle --helm reports them as optional_inputs; the README and the install command list them as optional.

Changes

  • The refusal for two values patching one object now reads two values patch the same object(s); a patch list naming one object twice is refused (is patched twice; join its patches) instead of keeping the last one.

Version 0.33.0

Features

  • Build hosts run the controller’s Piceli version. piceli builder serve claims a build only while it runs the same Piceli version as the GitOps controller (controller.version). On a mismatch it claims nothing (the controller builds in the cluster), tells the controller its version (new request build-host-version), writes the controller’s version into --version-file PATH when given and exits 75 (EX_TEMPFAIL, new code builder-version-mismatch), so its service installs that version without root (uv tool install "piceli==$(cat PATH)" before it starts) and starts again. piceli builder status shows version-mismatch (version_mismatch, controller_version in piceli.builder-status.v1), piceli gitops hosts prints VERSION MISMATCH, and the new alarm build-host-version fires until the host runs the same version. builder serve --check reports both versions and exits 1 on a mismatch. See The same Piceli version as the controller (0.33.0).

  • Build hosts build in the controller’s builder image. The controller publishes its build Job’s image (controller.builder_image); builder serve uses it by default and pulls it again when it changes (claiming nothing while it cannot), so a host never builds in an older image. --image is now an explicit override, said once when it differs.

Version 0.32.0

Features

  • piceli artifacts publish-files: release files as one OCI artifact. Each file is one layer stored as it is, so its digest is the file’s sha256, titled with its name; the manifest has artifactType and the empty config, and no time, so the same files give the same digest. Plan (exit 3), --approve, --move-tag, credentials and receipt as for artifacts publish. piceli artifacts fetch-file downloads one file by its digest (anonymous for a public repository) and writes it only when the digest matches. See Publish and sign release files.

  • Release signing keys. piceli secrets signing-key NAME --generate (or --file KEY to import an ed25519 key) keeps an ssh-ed25519 key in the local secret store (kind signing-key; status, setup, backup and delete cover it; SigningKey(NAME, public_key=...) declares it) and prints only its public key and allowed_signers line. piceli sign-file FILE... --key NAME writes FILE.sig, the same bytes as ssh-keygen -Y sign -n file; --agent KEY.pub signs with a key an SSH agent holds. New codes sign-file-invalid, signing-agent-failed.

Version 0.31.0

Features

  • Client charts: optional objects, values in objects, an existing Secret, the claim size. HelmChart(optional={"intake.expose": HelmOptional(..., objects=[...])}) installs named objects only when the client sets the value; HelmChart(values={"intake.allowNamespaces": HelmValue(..., targets=[(obj, "/json/pointer")])}) writes a value (a list, a string, a number) into named objects; NetworkPeer.namespaces([...]) selects namespaces by name (kubernetes.io/metadata.name In [...]), so a policy’s namespace list can be such a value. existingSecret=NAME: the chart makes no Secret and every workload reads the client’s Secret, which holds every key the README lists; nothing is generated, so helm template and Argo CD render the same every time. storage.size sets every claim’s size, and HelmChart(storage_env={"DISK_LIMIT": 90}) sets a declared variable to that share of it, in bytes. See Deliver to a cluster you never access.

  • Image labels. labels = {...} per [[output.image]] in host-build.toml (build hosts and the cluster) and build.toml (buildx --label): image config labels such as org.opencontainers.image.licenses. See Builds without a VM.

  • piceli promote HOST --from ENV --wait --machines MODULE[:ATTR] names the module declaring the Infrastructure of the host’s server; without it, the one the composition imports from its directory is used. --infra stays an older name of --composition.

  • piceli access prints services by what they speak. Web pages (http, https) first, with their label; others by scheme (turn:HOST:3478) and marked “not a web page”. The scheme comes from app.access.forward(scheme=...), the Service port’s appProtocol (ServicePort(app_protocol=...) renders it), its name, or a well-known port; JSON entries carry scheme and web. See Reach your services from your laptop.

Fixes

  • piceli gitops builds names the build host of images a build host delivered (they were missing from the history), and each in-cluster build records the machine that built it.

  • Tests that build real images (PICELI_DOCKER_TESTS=1, the kind suites) remove the piceli-e2e/* and piceli-examples/* images they add, on every outcome; a test whose image cannot be removed fails.

Contributors

  • make release-bump VERSION=X.Y.Z pins a release everywhere (pyproject, uv.lock, the skill, the API snapshot, eval baselines); make docs-fresh builds the docs without the cache.

Version 0.30.0

Features

  • piceli bundle --helm: the client bundle as a Helm chart. The same render, after the same safety gate, becomes a Helm 3 chart (Chart.yaml, values.yaml, values.schema.json, README.md, templates/), so a client installs it with one helm install and removes it with one helm uninstall, with no archive and no prepare.sh. ConfigMap keys and secret inputs become camelCase values (cluster-id → clusterId; an imported token is --set-file NAME=FILE); a HelmChart declaration names required settings (Helm’s required), descriptions and boolean toggles (HelmToggle: JSON Patch or merge patches applied when the value is true; the patched render passes the safety gate too). Generated Secrets (Random, Static, Template) are made at install like prepare.sh makes them and kept across helm upgrade (lookup). Images stay pinned by digest; image.registry points every image at a mirror, image.pullSecrets names pull Secrets, storageClass sets every claim’s class and deleteDataOnUninstall makes uninstall delete the StatefulSets’ claims (by default they stay). Cluster-scoped RBAC follows the release namespace and is removed by helm uninstall. values.schema.json refuses unknown values. See Deliver to a cluster you never access.

  • piceli bundle --helm --push oci://HOST/PATH publishes the chart as helm push does, to PATH/<name>:<version>: without --approve it prints the chart’s deterministic digest and exits 3; --approve DIGEST pushes it (--credentials FILE, --ca-file). --app-version sets appVersion.

Not covered

  • TLS generators (TlsCa, self-signed) and build images from --receipt are refused with --helm; use the kustomize bundle for them.

Version 0.29.0

Features

  • Only declared build hosts build. When the composition declares build hosts (DevBuilds(hosts=[...])), the GitOps controller refuses claims, answers and standbys from any other host (not declared in the composition in rejected_requests). A host still running after it was removed from the composition says so in its builder serve output and claims nothing until it is declared again. The status lists the declared hosts (controller.build_hosts_declared). See only declared hosts.

  • A failure before the build runs is handed over. A build host that cannot fetch a source, or whose container engine cannot start the build, answers build-failed with early. The build is not failed: the controller hands it to another declared host (60 seconds before the in-cluster fallback) or to the fallback at once when no host is left, and quarantines that host for that source until piceli gitops release-host (controller.source_quarantine). Before, the host kept claiming the build and failing it, and the fallback never ran. See hand-over.

  • piceli builder serve --once --take-next stands by for the next build this host may take, claims it before the in-cluster fallback (which waits for a standing-by host at most 2 minutes past host_wait), builds it and exits (--timeout, default 30 minutes). Claims and standbys wake the controller within 2 seconds. See –take-next.

  • builder serve --check also runs git ls-remote of every source the controller follows, as the build fetches it, and writes into a scratch directory and the build cache from inside the builder container (sources and scratch in piceli.builder-check.v1; exit 1 when one fails).

  • NixOS build hosts. builder install --print prints the unit without checking anything, so it works before the secrets exist. builder serve --args-file PATH reads more arguments at start (one per line), so a fixed unit from Nix takes its image and flags from a file under the state directory. See NixOS build hosts.

Fixes

  • piceli gitops build ENV did nothing when the environment’s commit was already deployed: it now builds its images again (offered to build hosts, or in the cluster) and deploys them through the usual plan and approval.

  • The images a build host delivered for gitops build are no longer asked for again at the next step.

Design

Upgrade notes

  • A build host that is not in DevBuilds(hosts=[...]) of a composition that declares hosts can no longer claim builds: declare it, or stop it.

  • builder install --print no longer runs the checks; run builder serve --check where the service runs.

Version 0.28.0

Features

  • Alarms. Controller(alarms=Alarms(targets=[Notify.ntfy(url), Notify.webhook(url_env=...), Notify.desktop()], secret="piceli-alarms", waiting_after="10m")) makes the GitOps controller send a short message when an environment fails or waits too long for a build host or an approval, a NixRelease fails or waits, the composition does not import, or the controller restarts on a new version. Each alarm is sent once (also across restarts), with one “recovered” message when it ends; each names the environment or host, the reason code and the next command. Secret URLs and tokens come from a Kubernetes Secret, never the config, logs or status. A failed send is listed in the status (gitops-alarm-failed) and never stops the controller. piceli gitops alarms --follow raises the same alarms as desktop notifications on your machine. The train’s notifiers gain Notify.ntfy. See Alarms (0.28.0).

  • --wait after an install or a promotion. piceli gitops enable infra.py --approve HASH --wait [--timeout 15m] waits until every environment runs its revision with its checks passed, printing progress lines (staging: building (waiting for a build host) 3m), or reports the first failure with its environment, stage, reason code and log tail (a composition that does not import included). piceli promote HOST --from ENV --approve DIGEST --wait does the same for the Nix host. Exit 0: all good; 1: a failure; 2: timeout (gitops-wait-timeout). See Wait for every environment after an install: --wait (0.28.0).

  • Test an upgrade before it replaces the controller. piceli gitops enable infra.py --approve HASH --canary first runs the new controller image once, as a Job that imports the composition, resolves each environment, loads its builds and plans it without applying anything (main: imports, plans 3 changes, builds 2 components: ok). A failure refuses the upgrade (gitops-canary-failed, naming the first failure) and the live controller keeps running; --force replaces it anyway. The Job and its ConfigMap are removed when the command ends. See Test an upgrade before it replaces the controller: --canary (0.28.0).

  • Previews in minutes. piceli env up BRANCH --cluster infra.py:CLUSTER --wait asks the GitOps controller to deploy the branch’s preview now: the controller wakes for the request within 2 seconds instead of waiting for its next poll, takes the images a merge train offered for the branch’s head (no build), and the command prints the preview’s URL once it runs with its checks passed (Environment.per_branch(url= "https://{branch}.preview.example.org")). A branch outside the rule’s patterns gets a preview on request. piceli env down BRANCH --cluster ... tears it down until the branch’s next push, and Environment.per_branch(down_when_merged=True) also tears down a branch once it is merged into main (deleting the branch always did). Exit codes as gitops enable --wait. Every request people make (env up, gitops sync, gitops approve, promote, …) now wakes the controller at once. See Previews in minutes.

  • Build hosts as services. piceli builder install --cluster infra.py:my_cluster --host builder-1 (run on the build host) writes and starts a systemd unit (Linux) or launchd property list (macOS) that runs builder serve with the same arguments and Piceli program, restarts it on failure and stops it with SIGINT. It runs the builder serve --check checks first and refuses on a missing credential or a missing docker, git or kubectl; --print only shows the unit; piceli builder uninstall --host builder-1 removes it. piceli builder status lists each build host’s Piceli version, last sighting, live or expired claim, last build and quarantine, and the declared hosts never seen (claims and progress reports now carry the host’s version; controller.build_hosts in the status). See Run a build host as a service (0.28.0).

  • Cycle report. Piceli records how long each commit takes from a push to running with its checks passed, and each phase on the way: the controller per deploy (queued, waiting for a build host, building, delivering, applying, checking) in its history, status and OpenTelemetry event; a train run in its run.json and trace (queued, merging, testing per step, promoting, images, pushing); piceli host wait per host switch. piceli cycle report [--since 24h] [--target NAME] [--json] [--markdown] gives, per environment, Nix release, Nix host and train, the p50 and p90, the count, the slowest phase and the slowest cycle; --markdown prints a table to paste into docs. A push time Piceli does not know is said, with when it first saw the commit. See Cycle report (0.28.0).

  • Adopt the train in ten minutes. piceli train init train_spec.py --from scripts/merge.sh writes a starting train spec from a shell script: cargo, pytest, npm, make and similar commands become steps, the base branch is read, and every line it cannot translate stays as a TODO comment (also printed). Without --from it writes a commented template. --images infra.py adds Step.images for a Controller(prebuilt=True), --host NAME runs the cargo steps on a build host; an existing file is kept unless --force. piceli train SPEC --branches ... --compare "COMMAND" runs the old command in a scratch clone, then the train on the same branches without promoting, and prints a side-by-side table (wall time, time per phase, tests, failures, retries, and whether both agree). See Adopt the train in ten minutes.

Version 0.27.1

Fixes

  • A restarted controller deploys again when the composition’s head failed to import. When an older controller could not import the composition’s newest commit (for example, it used a newer Piceli API), it recorded the commit as failed. After an upgrade or a restart, the new controller never tried that commit again and had no composition loaded, so it read no requests and ran no steps: builds waited forever, no build host could claim them and the in-cluster fallback never started. Now a controller of another version tries the failed commit once more, and when the head still fails it deploys the last good commit again. piceli gitops status shows composition at <commit> failed to import (<type>: <message>), and the health is degraded. The error keeps the exception’s message, not only its type.

  • A dead build host no longer blocks a build. A claim lives while its host reports; after 10 minutes without a report the in-cluster fallback may take the build and another host may claim it (before: 4 hours, and the fallback waited forever).

  • A waiting build says what it waits for: the hosts it is offered to, who claimed it, and when the in-cluster fallback starts or why it never does. piceli builder serve says once why it skips a build (claimed by another host, failed until piceli gitops sync, claim refused and why). A controller without a builder image no longer takes the fallback and fails; the build keeps waiting for a host and says so.

Version 0.27.0

Features

  • Versioned Secrets. app.secret("turn", {...}, versioned=True) names the Secret turn-<hash>, where the hash is a short keyed digest of its values (never the values). A changed value is a new, immutable Secret; every workload that reads turn is pointed at the new name in the same apply, so it rolls. Piceli still never rewrites a Secret. The plan prints secret turn → turn-a1b2c3d4e5 (new value) and, once nothing mounts an old version, delete turn-0f9e8d7c6b (no longer mounted). The current version and the one the running release uses (the rollback target) are kept. Binding a random, tls-self-signed or tls-ca value directly into a versioned Secret is refused (versioned-secret-generated). See Versioned Secrets.

Version 0.26.3

Fixes

  • A Nix build with a private flake input uses the exact tree the fetch step fetched. Before the build, the build host fetches each private input with exactly the attributes flake.lock pins (shallow included; 0.26.2 forced shallow = false) and recomputes the tree’s narHash. A different tree stops the release with infra-nix-input-unreachable, naming the expected and the actual hash. The step then stores a copy of flake.lock in which each fetched input points at its tree in the Nix store, and the build reads it with nix build --reference-lock-file. The build no longer resolves a private input itself, so it needs no Git credential and cannot get another tree. The checkout’s flake.lock and every other pin stay as they are, so the built store path is the same. This applies to builder serve --publish and dev nix build. The copy is held by a GC (garbage collection) root until the build ends, like the trees.

  • The in-cluster build Job builds contexts at a source’s top. Since 0.23.0 the Job links each source to its checkout on the cache claim, and a context with path = "." (or none) read that link and failed context-missing in every Job. The Job now reads the checkout itself. Build hosts were not affected.

  • context-missing names the context and the path, for example host build failed (context-missing): context 'site' (source 'web'): context directory /work/src/web/site is unreadable (Permission denied).

  • A new value in a retained Secret is refused by the plan. A rotated or regenerated value, or a changed template, under an existing Secret name passed the plan and then failed every apply with retained-content-precondition-failed. The plan now refuses it with retained-content-differs, naming the Secret and the keys (never a value). Put the new value in a Secret with a new name.

  • retained-content-precondition-failed says what failed. The execution’s diagnosis.precondition names the object, the check and each differing field, with keyed digests of the expected and live values. A pipeline reports it as release X was not applied: a precondition failed (...), not as “did not become ready”: nothing was written and the live release keeps running.

Upgrade notes

  • A changed value under an existing Secret name now stops the plan (retained-content-differs) instead of failing every apply. Piceli never rewrites a retained Secret: give the new value a new Secret name.

  • Use the 0.26.3 builder image for the in-cluster build Job fix; the fix runs inside the Job.

Version 0.26.2

Upgrade notes

  • Nix hosts: render the host module again and switch once. The host agent now activates a new system in a new order (below). A host keeps the old agent until its module is rendered again and switched to one time. Deploy stages are now activate, checks and boot (were switch and checks).

  • secrets status exits 1 for S3 key pairs the owner has not stored. An S3 (object storage) key pair the owner makes by hand (NixCache(write_credentials=, read_credentials=)) was pending; it is now missing until stored. Pairs the next infra apply creates stay pending.

Changes

  • A Nix host makes a new system the boot default only after its checks pass. The agent records a pending attempt, activates the new system for this boot only (switch-to-configuration test), runs the checks, and then sets the profile and the boot default. A failed check activates the previous system again. An agent that died mid-attempt rolls it back on its next start (host-deploy-interrupted), and a reboot comes up on the previous system.

  • piceli host status and wait never hang on SSH (Secure Shell). A status read connects within 10 s and gives up after 30 s. A session that breaks after login is the new host-ssh-failed; host-unreachable stays for no session at all. wait keeps waiting until --timeout.

  • Replace a server instead of rebuilding it. Server(on_image_change="replace") recreates a server whose image changed, on the same IP addresses and with its current user data (the first-boot secret). The default, "rebuild", rebuilds it in place as before, and now warns when the server has user data, which a rebuild reuses although it was single-use. piceli infra replace REF SERVER replaces one server on request, through the usual plan and approval.

  • infra apply reads the OpenTofu state once instead of three times (each read costs about 1 s of CPU).

  • Garbage-collection roots on docker build hosts. BuildHost.docker(roots_dir=...) keeps what a build fetched or made safe from Nix’s garbage collector while it is needed: a fetched private input until the build ends, an --image build until the next build of that name.

  • dev nix build fetches the private inputs the release path fetches, so a plain --image build of a flake with private inputs no longer fails.

  • Tests: the forward, telemetry and parallel-train tests no longer fail on a busy machine.

  • Docs: a shorter roadmap, one object-model page instead of three, and unused images removed.

Version 0.26.1

  • Private flake inputs are fetched on a docker build host. The fetch and publish steps of a docker build host ran the image None when the host and its DevProfile.for_nix() declared none, and Nix then aborted (“cannot determine user’s home directory”) as uid 65532 without a home it owns; SSH also refused to run without a passwd entry. Both steps now use the image the build run uses (the host’s, the profile’s, else the DevBuilds image; a missing one is refused when builder serve --publish starts), and run as 65532 with an entry and a home of their own (the container starts with only SETUID/SETGID to add it, then drops every capability). infra-nix-input-unreachable and dev-nix-publish-failed now name the docker or Nix error instead of “the fetch failed”. The 0.26.0 builder image keeps working.

  • The S3 key pair test has a hang guard sized for its 47 OpenTofu runs (it timed out under load, never with a wrong result).

  • A forward that has just started is recorded for access stop --stale also on a loaded machine. For a moment after exec a new process’s command line reads empty, so its fingerprint read as unknown and the owned-process registry silently skipped the record; piceli access stop --stale then could not recognise that forward as Piceli’s. The registry now reads the fingerprint again while the child exists (up to 5 s).

  • The stale access ui forward test is reliable under load. Its fake kubectl closed every connection, as a forward with a dead upstream does, so the supervisor’s health probe restarted it with a new pid about 13 s after the start; it now keeps them open, as a healthy forward does. The foreign listener binds a port the kernel picks, and the forward’s port comes from the pytest worker’s own slice below the ephemeral range, so neither a connection nor a parallel run of the test can take it before the fake binds it.

Version 0.26.0

0.26.0 brings a pre-merge train: piceli train merges candidate branches onto the base, judges them by the checks of the commit under test (impact tests, with a retry of only the failed tests), bisects out the branches that fail, and runs its steps on build hosts with warm and reused builds, behind a queue per train, seen with piceli trains, OpenTelemetry and notifications. A promoted train hands the images it built to the GitOps controller (prebuilt), which deploys them without building again. Nix builds fetch private flake inputs with the build host’s or the controller’s Git credentials, and builds are now something you can see and start: NixReleases follow a branch or a schedule, piceli gitops build and cancel start and stop one, and the UI’s Builds page shows them all.

  • A pre-merge train: piceli train. Declare a Train in Python (piceli.train: Train(name, steps=[...], base="main", tested="tested", tag="tested/{date}.{n}", remote="origin")) with Step.command, CargoCheck, CargoTests(select=Impact()) and Step.publish steps, then run piceli train MODULE[:ATTR] --branches a b c. Each candidate set is merged with git merge --no-ff onto the train’s current head (the base plus the branches already joined) in a temporary worktree, and judged by the steps of the merged tree: the spec module is loaded from that tree in a fresh process, so a branch meets the base’s newest rules and its own. The first trial merges every candidate; a failing set is bisected, and each failing branch is ejected with the step, an output tail and its log (train-step-failed, train-step-timeout, train-spec-invalid; a conflict is never resolved: train-merge-conflict). See Merge train.

  • Impact selection and flaky tests. Impact() tests the cargo packages with changed files plus their dependents (from cargo metadata), and every package when a root file changes (Cargo.toml, the toolchain and cargo configuration by default; configurable). A Cargo.lock change (Impact(lockfile="packages"), the default) tests the members that use its added or changed entries, by name and version, transitively over the resolved graph, and their dependents; a toolchain or [patch] change, a lock that cannot be read or a graph that cannot be resolved still tests everything (lockfile="all": any lock change does). A file outside every package tests everything (Impact(outside="all"), the default), except documentation (ignore=("*.md", "docs/*")); outside="none" ignores them. CargoTests(select=Impact(), on_push="all") (and CargoCheck) tests everything in a run with --push and the impact selection otherwise. With Impact(dev_targets=True), a member that reaches a changed package only through a dev-dependency runs only its integration test targets that name the changed library (the whole member when its unit tests or shared test code name it). CargoTests runs every test binary, then retries only the failed tests, by exact name; a test that passes on the retry joins and is recorded as flaky with its failure output.

  • Promote and push, only when asked. --promote tags tested/<date>.N and moves tested and the base by fast-forward only (refused with train-not-fast-forward or train-checkout-dirty, before anything moves), then runs the publish steps; --push (with --promote) pushes the tag and both branches atomically. Without them no ref changes and nothing is pushed.

  • Retire joined branches: --retire. With --promote (or --promote-run), --retire renames each joined branch to_delete_<date>_<branch> once promoted, never deleting it; a branch checked out in a worktree with changes, or one that moved after it joined, is left alone. --retire-remote (needs --push) also deletes the branch on the remote after the push, only while it is at the joined commit. The result’s retire object, the branch-retired and retire-skipped events, the summary (retired) and piceli trains say what was retired (train-retire-invalid without the promotion or push it needs).

  • Keep the tested head; promote a reviewed run. Every run that joined something points refs/piceli/train/<name>/last at its head. piceli train APP --promote-run RUN (or last) promotes that head without running the train again, refused when the base is no ancestor of it (train-not-fast-forward) or the run is unknown (train-run-unknown). It is an ordinary run of the train: it can be queued (--promote-run last --queue pins the run it means when it queues), and one that raises midway is run-failed.

  • Train steps on build hosts. Train(builds=..., hosts=[...]) names where steps run: "local" and the BuildHosts of a DevBuilds (or MODULE:ATTR of one, or of a Cluster with dev=); a step’s own hosts= wins. A step on a build host is a piceli dev run of the merged checkout: the same upload, the host’s own queue and slots, quarantine and warm lineage (the profile’s shared cargo target on that host). Only the PICELI_TRAIN_* variables and the step’s env travel, never the caller’s environment; declared outputs come back as artifacts. A host that is down or unavailable at start hands the step on, and Train(fallback="local") (the default) runs it here when every host named is down (else train-host-unavailable). The result’s host is where each step ran.

  • Warm local runs. Local commands take one of Train(local_slots=1) slots of the machine (file locks shared by every train), so the laptop keeps its limit. Trials use a few stable worktree paths under $XDG_CACHE_HOME/piceli/train, each with its own shared cargo target directory (Train(target_dir="auto"); CARGO_TARGET_DIR in the environment wins), and files whose content did not change since that path’s previous trial keep their modification time, so cargo rebuilds only what changed. sccache is used when on PATH (Train(sccache="auto")).

  • Content-hash reuse. A step with inputs= (globs) and outputs= (paths) has a key: the Git blobs of its inputs, its definition (argv, env, impact selection) and the toolchain pins. A step whose key passed before is reused: nothing runs, its outputs are restored from a content store, and the result names the run, trial and host that made them. It holds across trials (bisection included), runs and trains of the machine; failures are never kept. Publish steps get the outputs of the tested steps restored first, so what is published is what was tested.

  • Parallel halves. After a failed joint run the right half is judged, at the same time as the left one, on top of the left half’s merge; when the whole left half joins, that verdict stands, else it is discarded and the right half judged again. Train(parallel="auto") does it when two slots are free ("on", "off"). The verdicts are the sequential ones.

  • Bounded caches: Train(retention=Retention(...)) and piceli train-prune. At the end of every run the train prunes leftover trial worktrees, cargo target directories unused for 14 days or beyond 100 GiB per train and repository (least recently used first), content-store records unused for 30 days or beyond 20 GiB (shared by the machine) and the bytes no record keeps, and runs older than 30 days beyond the newest 20; never what a running trial holds, and never the queue, the lock, the run in progress, the runs queued requests name or the newest promoted runs. The result reports the sizes kept (prune). piceli train-prune NAME|SPEC [--dry-run] [--json] does the same by hand. The cache layout is now checkouts/<train>/<repo>/ and targets/<train>/<repo>/.

  • History. Each run’s result (piceli.train.v1: every branch’s verdict, every step’s start, duration, host, verdict and log) is kept in $XDG_STATE_HOME/piceli/train/<name>/runs/, with an append-only flaky registry (flaky.jsonl: count, first and last seen, last failure tail). Steps run through a runner interface and report to an event sink. Every event of a run is appended to runs/<id>/events.jsonl, and the lock names the run and process holding it.

  • A queue per train. piceli train … --queue on a busy train queues the request with its flags (--promote, --push) and returns at once with its id and position (piceli.train.queued.v1). Every piceli train serves the queue in order when its run ends; piceli train-queue NAME lists it, --cancel ID cancels a waiting request and --drain serves it here. A request whose process died is resumed by the next server; one whose branches are gone is rejected when it starts. piceli train-wait Q-ID waits for the run that serves a request, and piceli trains and the UI show the queue.

  • run-failed. A run that raises midway (train-git-failed, train-run-failed, Ctrl-C: train-run-cancelled), or whose build hosts are all gone (train-host-unavailable), is recorded failed with its reason and what had joined, emits run-failed, and sends its notifications and OpenTelemetry finished event; train-wait exits 1 for it.

  • See a train: piceli trains [NAME]. One view of the trains on this machine (piceli.trains.v1, --json), read from the events without ever taking the lock: the run in progress with its branches, the steps done and the running step’s start, elapsed time, host and log tail (--follow streams the log until the run ends); recent runs with their verdicts and seconds per step; per-step trends (median of the last N executions, the last one against it: slower, faster, steady); flaky tests with their counts and last failure; and, with --composition/--infra, which run produced what each environment and NixHost runs (its tag, its commit or the product commit it pins, matched to a run’s promoted tag or head). A killed run shows as interrupted.

  • Fast trains are seen too. A step on a build host emits step-placed with the host its command went to, so piceli trains shows it running there, and its span and run row name it (hosts in each recent run). A reused step is reused in its event (with the run, trial and host it came from), in the status (reused per run; no trend sample) and in the trace (an ok span with piceli.train.reused_from). Parallel halves show both trials and steps at once (trials, steps, the right half speculative, a discarded one in discarded), and halves-parallel, trial-discarded, outputs-restored and pruned are span events of the run.

  • piceli train-wait RUN. Blocks until a run (its id, or a train’s name) ends and exits with its verdict, printing the run’s summary (piceli.train.summary.v1): train-interrupted for a killed run, train-wait-timeout after --timeout, train-run-not-found.

  • A train is a trace. Train(telemetry=Otlp(url, protocol="http/protobuf")), or the standard OTEL_EXPORTER_OTLP_* variables, exports each run over OTLP/HTTP: a root span piceli.dev.train, a span per trial and per step (piceli.dev.train.trial, piceli.dev.train.step: branches, step, kind, host, verdict, duration, impact selection), span events for verdicts, promotion, push and flaky tests, a log record with each step’s output tail and the event piceli.dev.train.finished. Spans go out as they end, through a bounded queue with a 2 s timeout: a collector that is down never slows or fails a run (one train-telemetry-failed warning). http/protobuf is sent as protobuf (the piceli[telemetry] extra; a spec that declares it without the extra is refused before the run with train-telemetry-unavailable), OTEL_EXPORTER_OTLP_PROTOCOL=http/json (or unset) as JSON. A collector behind a private CA takes Otlp(..., ca_file=PATH) or OTEL_EXPORTER_OTLP_CERTIFICATE; the cluster-only headers_secret= and ca_secret= are refused with the local alternative named (the controller, in turn, refuses ca_file=).

  • Notifications when a train ends. Train(notify=[Notify.command(argv), Notify.webhook(url or url_env=, headers_env=), Notify.desktop()]), each when="always" or "failure": the command gets the summary JSON on stdin, the webhook a POST of it, the desktop a headline (osascript, notify-send). The summary names the joined and ejected branches (with step and reason), the promotion, tag and push, the duration and the flaky tests, never step output. A failing notifier never changes the result: one train-notify-failed warning, and the run record’s notify list.

  • The UI’s Trains view. piceli ui serve --trains (with --train-composition MODULE for the deployed-by-train join) shows the same document, live, with the queue.

  • The train’s images go to the cluster: Step.images("infra.py"). On promote the train computes the change key the GitOps controller will compute once the promoted head is pushed, builds the images with the same host-build code as piceli builder serve, pushes them to the cluster’s registry with their provenance (naming the train run and host) and offers them to the controller with a new prebuilt request, before the push the controller reacts to. It covers each component built from the repository, and each pipeline environment’s build spec (the spec, the files its contexts select, node facts and the controller’s platforms; one OCI index over the platforms). The composition may live in another repository than the train’s, with contexts reading both: Step.images("infra.py", repository="https://…/infra.git", branch="main"). The train then takes every source an environment follows at the commit the controller will pick: its own repository at the promoted head, every other one at its current tip, read from the same remote with the machine’s Git credentials; the offer records those commits. A failure is train-images-failed.

  • Controller(prebuilt=True) uses those images. Such a controller keeps an offer and uses it only when a step’s own change key is the offered key, the reference names the component’s repository in its registry, pinned by digest, and the digest is in the registry; it then deploys without waiting for a host or a Job. Offers show in the controller’s status with the source commits their key was made with; a component built although an offer exists names, in its status entry (prebuilt), the sources whose commits differ (another repository moved after the offer). Only for registry delivery.

  • Private flake inputs of a Nix build. A NixRelease (and piceli dev nix build) whose flake.lock pins a private input now builds on a build host with no Git credential of its own: before the build, the build host fetches each private input into its own Nix store (builtins.fetchTree of the locked attributes, one nix process per input) with a git-token from its own Piceli secrets, and the build finds it there by its narHash. Covered: the promotion gate’s input, every input whose repository is a Source of the composition (by host and path, git+ssh, git+https, github: and .git normalised), and NixRelease(inputs={"lib": "lib-token"}) (default credential git); the release plan lists them (inputs), and the build host checks each one against flake.lock of the commit it fetched. git+https uses GIT_ASKPASS with credential helpers off, git+ssh of the token’s host is fetched over HTTPS, github:/gitlab: get Nix’s access-tokens; the token is on the fetch step’s stdin only, never in an argument, the build, the log, the receipt, the manifest, the cache or the closure. A failure refuses before any build with the new code infra-nix-input-unreachable, naming the input, its URL and the credential tried. The release’s stages gain inputs. See Nix host releases.

  • Two ways to give that fetch a credential: NixRelease(credentials="host") (default) uses the build host’s own read-only credential; credentials="controller" uses the composition’s Git Secret (piceli secrets git), which the controller seals per build to a one-time X25519 key the build host claimed it with (bound to the build and the host; the claim’s cache-key proof covers that key), only for inputs on the hosts of the composition’s sources (the plan’s git_hosts). The claim of a controller release without a key is refused.

  • piceli secrets git-token NAME --host HOST --prompt stores a token (with its host, used for no other, and --username), piceli secrets git-ssh-key NAME --host HOST --file KEY [--known-hosts FILE] a read-only deploy key; either reaches a build host with piceli secrets backup --only NAME and restore.

  • builder serve checks them: at start it warns per release of an input whose credential the host lacks, and builder serve --check claims nothing and prints piceli.builder-check.v1 (each release’s mode, inputs and credential states; exit 1 when one is missing).

  • needed_secrets(), secrets status and secrets setup list each credential a NixRelease declares in inputs= as an owner-made secret needed on its builder (where names the build host; once stored, the next step is the secrets backup --only ... --recipient transfer and restore there), and, with credentials="controller", the composition’s Git Secret piceli-build-git (in the cluster) instead; secrets status also gives each release’s mode (nix_inputs).

  • GC roots for fetched inputs. On a native build host each fetched tree gets an indirect GC root, held from the fetch until the build ended, then removed with its temporary directory.

  • piceli dev nix build --input NAME[=CREDENTIAL] adds private inputs to a hand-run build; with --publish, the composition’s NixRelease of the output adds its own, and the plan lists them.

  • A NixRelease follows a branch, or a schedule. NixRelease accepts a host that follows Branch("main"): each new head of the branch is planned with the branch’s pointer and no tag, and the build host checks the commit is on the branch before it builds. schedule="daily" (hourly, weekly or five cron fields, UTC) plans the newest tag or head again at that time. Each one goes through the promotion gate, the plan and the approval as a new tag does; the record names its trigger_kind (tag, branch, schedule, sync, cli, ui).

  • Builds started by hand: piceli gitops build NAME [--ref TAG|COMMIT] [--approve DIGEST]. A NixRelease plans that tag, its branch or a full commit (the newest without one); an environment rebuilds every image at the commit it follows. It is recorded as triggered by cli with the requester (--by, else the user name); --approve approves the plan in one go when its digest is that one, otherwise it waits for piceli gitops approve as usual. An unknown ref is gitops-build-ref-unknown.

  • piceli gitops cancel NAME. A planned or queued build is dropped; a build host that holds one stops before its next stage and its answer is refused (gitops-build-cancelled). A cancelled image build fails its step until piceli gitops sync. Nothing to cancel: gitops-build-not-running.

  • Build hosts report their progress. piceli builder serve sends a build-progress request at each stage (fetch, build, publish or push) and at most every 15 seconds while it logs: the stage and the last 4000 characters of its log, kept on the wanted build in builds_wanted. A build that is no longer wanted (cancelled, or superseded by a newer commit) stops at its next stage instead of building on.

  • One record per build: piceli gitops builds [--target NAME] [--state STAGE|active] [--json]. NixRelease publishes, image builds and train handoffs share one record, piceli.builds.v1: the trigger (kind, who, text), the commit, tag and branch, the build host, the stage (from approval-required and queued through fetching-inputs, building, signing and uploading to published, failed, cancelled or rejected) with a time for each, the log tail, the duration, the plan digest and the targets that run it now, joined with piceli targets.

  • A Builds page in the UI. Delivery → Builds lists every build with those fields, filters by target and state, a live log tail polled every three seconds, and approve (the plan and its exact digest, confirmed), retry and cancel buttons for sessions that may sync. “Build now” takes a target and a tag or commit and writes the request piceli gitops build writes.

  • Fix: the UI’s breadcrumb named the Machines page “Page not found”.

  • New error codes. In the new train area: train-not-found, train-unknown, train-load-failed, train-invalid, train-repo-invalid, train-branches-required, train-branch-unknown, train-push-needs-promote, train-busy, train-merge-conflict, train-step-failed, train-step-timeout, train-spec-invalid, train-not-fast-forward, train-checkout-dirty, train-publish-failed, train-push-failed, train-git-failed, train-host-unavailable, train-run-unknown, train-images-failed, train-run-not-found, train-wait-timeout, train-interrupted, train-run-failed, train-run-cancelled, train-queue-not-found, train-queue-not-waiting, train-queue-cancelled, train-notify-failed, train-telemetry-failed, train-telemetry-unavailable and train-retire-invalid; in gitops: gitops-build-ref-unknown, gitops-build-not-running and gitops-build-cancelled; in infra: infra-nix-input-unreachable.

  • A train merges where Git has no identity. On a CI runner or a build host without user.name/user.email, every merge used to fail and was reported as a conflict. The train now commits its own merges and tags as Piceli train <train@piceli.invalid> there, and a merge that fails for any other reason is train-merge-failed with Git’s message, never a conflict.

Upgrade notes

  • Train impact: Cargo.lock and files outside every package. Since the 0.26.0 preview, Cargo.lock is no longer a default root: a lock change tests the members that use its changed entries (Impact(lockfile="packages")) instead of the whole workspace, and a changed file outside every package (a script, a fixture) now tests the whole workspace instead of nothing (Impact(outside="all")), except *.md and docs/*. A spec that listed Cargo.lock in roots keeps testing everything on a lock change; drop it from roots for the new selection. For the earlier behaviour: Impact(lockfile="all", outside="none"). A cargo step’s content-hash key includes its selection, so steps with inputs= run once more after the upgrade.

  • Plan digests of gated NixReleases change once. A release plan now lists the private inputs the build host fetches first (inputs; the promotion gate’s input is always among them), so the first plan after upgrading has a new digest for every gated release, and for any release with a covered input: an approval of the old digest no longer matches; approve the new one (or let auto_approve do it).

  • Upgrade build hosts with the controller. Only a 0.26.0 piceli builder serve fetches private inputs before the build, and the claim of a credentials="controller" release from a build host that sends no key is refused.

  • Controller(prebuilt=True) is opt-in. Without it the controller keeps no offer and builds the images as before, even when a train hands them over.

  • A superseded or cancelled build stops at its next stage. A build host no longer builds on a build that is no longer wanted; a cancelled image build fails its step until piceli gitops sync.

Version 0.25.3

  • The Infomaniak preset refuses S3Key. Infomaniak’s API lets only the account’s own user create S3 (EC2) credentials, never an application credential, restricted or not: infra apply failed with a 403 on OS-EC2. Infomaniak now creates no S3 keys (supports_s3_keys is false), and Bucket(keys=[S3Key(...)]) there is refused when the module loads, before any plan, with the new code infra-s3-keys-unsupported. Its message gives the commands for each pair: openstack ec2 credentials create signed in as the project’s user, piceli secrets s3 NAME --prompt, and the NixCache(write_credentials=, read_credentials=) to declare. A generic OpenStack still creates them.

  • NixCache(read_credentials=NAME) names a read pair you made. It is the alternative to the bucket’s S3Key(access="read") (giving both, or naming the write pair or another key of the bucket, is refused; only for an s3:// cache). NixHost and piceli host secrets install it exactly as they install a bucket’s read key: /var/lib/piceli-host/cache.env by default, the same plan, digest and comparison; while it is not stored, host secrets refuses with infra-credential-missing and the command that stores it. write_credentials= works without keys= as before.

  • secrets status lists owner-made pairs pending. Both pairs are reported with created_by: "owner", state pending until stored (exit 0, like the pairs the next infra apply creates), next command piceli secrets s3 NAME --prompt, and a detail naming how to make them (openstack ec2 credentials create, signed in as the project’s user); where names the build host of a NixRelease for the write pair and the host for the read pair. needed_secrets() rows gain hint. secrets setup asks for them (piped: one part per line). The owner-made read pair gets the same s3-read-not-enforced warning as a bucket’s read key. An s3:// cache’s own write_credentials= is now pending by owner too, instead of missing.

  • Piceli uploads OpenStack images itself, from where they were built. OpenTofu’s image resource sent the file from the machine running tofu apply in one stream: a dropped connection after minutes left a half-made image in saving and the next plan replaced it. Glance cannot resume an upload (PUT /v2/images/{id}/file and glance-direct staging are each one stream), so piceli infra apply now creates the image record, sends the file and lets OpenTofu adopt it (tofu import), then plans again and applies that plan, which must be the approved one less the upload (infra-plan-changed otherwise).

    • Image.from_build of an image built on a docker host over SSH uploads it from that host (a short docker run --rm -i of the run image with the host’s /nix read-only); piceli dev nix build --image records the host and the store file in the sidecar (built_on, store_file). upload="local" keeps the local copy. A fresh Keystone token reaches the host on stdin only and is revoked after each attempt.

    • The plan lists each upload (images: action, from where, size, sha256), covered by its hash; images a killed upload left at the cloud are listed as stale_images and deleted before the upload.

    • Three attempts, on the same record when Glance put it back to queued, else on a new one after deleting the old; then infra-image-upload-failed (new code, exit 1).

    • Progress on stderr (bytes sent, total, rate, ETA; at most once a second), the log’s path when it starts (image-upload-NAME.log in the state directory), uploaded_images in the JSON result.

    • A failed or interrupted upload (Ctrl-C too) deletes the image it made, by its tags. Glance’s checksum and os_hash_value must be the hashes of the bytes sent, and those the declared sha256 (infra-image-checksum).

  • A half-made image is replaced, and a new sha256 too. An image in the state whose status is not active, or whose sha256 is not the declared one, is planned with -replace: replace (a failed upload left it in saving). Images carry their sha256 as a tag (piceli.io:image-sha256=…) and ignore local_file_path, so an image uploaded by 0.25.2 is kept: its first plan updates its tags in place.

Version 0.25.2

  • Infomaniak’s public network is found by name. Infomaniak() looked ext-net1 up as a router:external network; it is a shared network that is not, so every plan failed with “Your query returned no results”. The preset now matches the name alone. OpenStack(public_network_external=) chooses how a generic cloud’s network name is matched: True (the default, as before) only a router:external network, False only one that is not, None the name alone. The plan hash of an Infomaniak declaration changes (its lookup changed).

  • An OpenTofu failure names what it failed on. infra-tofu-failed and infra-apply-failed say which resource or data source failed (from OpenTofu’s JSON diagnostics: tofu plan failed on data.openstack_networking_network_v2.public-network), list the addresses in failed_on, and start each tofu: line on stderr with its address. OpenTofu’s whole output, redacted, is kept in tofu-<command>.log in the state directory (tofu_log); piceli infra plan|apply|destroy --verbose prints it.

  • A destroy removes the images Piceli uploaded to OpenStack. Glance gives every image a computed metadata map, which was read instead of its tags, so piceli infra destroy refused Piceli’s own image as foreign (infra-foreign-resource). An image’s labels are now read from its tags.

  • cryptography is a dependency. Generating keys is core to piceli secrets setup, secrets nix-cache and secrets age, which crashed with ModuleNotFoundError when Piceli was installed without the crypto extra. cryptography>=42 is now a base dependency; piceli[crypto] still installs (an empty extra). The codes state-crypto-unavailable and dev-nix-crypto-unavailable, which could no longer happen, are removed.

Version 0.25.1

  • A reaped forward is stopped only once its exit is confirmed. The reaper of piceli access forwards took a process whose fingerprint no longer matched as gone, but an exiting process reads as unknown for a moment (its command line is released before it becomes a zombie). It now reports a forward stopped only when its pid no longer exists, is a zombie, or is held by another process on two reads in a row.

Version 0.25.0

A Nix host’s releases need no hand-run publish step: in 0.25.0 the GitOps controller publishes a NixHost’s release when you push its tag, behind a promotion gate that only lets through product commits an environment verified. Tags carry a prefix per target, and piceli targets shows every environment and host in one view.

  • The controller publishes Nix host releases. NixRelease(host, source=, builder=, auto_approve=False) (new in piceli.infra) in a composition makes the GitOps controller follow the host’s Tag("web-v*") in the flake’s source: a new tag is planned (piceli.nix-release-plan.v1), waits for piceli gitops approve NAME <plan digest> unless auto_approve=True, and is asked for as a nix-publish wanted build. piceli builder serve --publish MODULE:ATTR (repeatable; a native host with it only publishes) claims it only for a cache whose signing and S3 write keys are in its own secrets, proves it with the key’s signature over the claim (the keys never leave it), checks that the tag points at the commit, builds, signs and publishes exactly as dev nix build --publish does and answers nix-published; the controller accepts only a manifest signed by the cache’s key for the planned commit and tag. gitops status --json lists nix_releases (latest tag, state, stages with times, manifest digest); the history and telemetry (piceli.nix.release.finished) record each attempt. A failure is failed with its tail (gitops-nix-release-failed) until a newer tag or gitops sync; tags present at first sight are the baseline. A composition may now hold releases and no environment. builder serve --publish MODULE:ATTR --publish-only claims only those publishes on any kind of host, never an image build (said once), and needs no cluster registry: a remote machine that only publishes is a docker host with an SSH context to itself (BuildHost.native is the machine running Piceli), so a publisher never changes who builds a cluster’s images.

  • A build host that only publishes. BuildHost(..., runs=False) (docker or native) declares a host that only publishes Nix releases: it is in the plan (runs: false, only when declared, so other hashes stay) and piceli dev hosts shows it (runs in --json). piceli dev run, piceli dev nix build and builder serve never pick it without --host, so an agent’s runs never land on the publisher. builder serve on it implies --publish-only and is refused without --publish or with --no-publish-only (dev-host-publish-only).

  • A promotion gate and piceli promote HOST --from ENV. NixRelease(..., gate=Promotion(input="app", environment="main")) (Promotion is new in piceli.infra) publishes only a commit whose flake.lock pins the input to a commit the environment ran with its release checks passed (deployed, every check passed, no rollback). The controller leaves another tag rejected (promotion-not-verified, with the newest passed commit) and checks it again on every poll; dev nix build --publish --release HOST --composition MODULE runs the same gate and refuses an unreadable history (promotion-history-unreachable). The result, pinned (input, commit, environment, verified_run, verified_at), is in the release plan, the signed manifest (an optional field) and gitops status. piceli promote web-1 --from main plans the pin of the newest passed commit in the flake’s working copy (nix flake lock --override-input, or a direct edit with the computed narHash without nix), the commit and the next tag of the host’s pattern, and with --approve DIGEST commits, tags and pushes atomically; it refuses a dirty working copy or one out of sync with its upstream. A hand-run publish of a gated host’s attribute to its cache runs the gate without --release (found in the --publish module or --composition). The controller keeps a record of the commits each gated environment passed (the last 200 per source; passed_commits in the history), so a verified commit keeps qualifying after it left the 20 listed runs. NixHost(gate=Promotion(...)) makes the host agent refuse a build without that verified pin (host-promotion-missing); its NixRelease takes the host’s gate. New codes promotion-*, promote-*; see docs/gitops.md.

  • Tag prefixes per host. Tag("web-v*") orders tags by the version after the pattern’s literal prefix (Tag.prefix, Tag.version(tag)): web-v1.10.0 is above web-v1.9.0, and two hosts released from one repository (web-v*, api-v*) never see each other’s tags. Tag("v*") never matches web-v1.2.3. The agent’s resolve and “never older” use it; dev nix build --publish --tag-pattern GLOB points the host’s tag when a commit carries several, and dev nix gc --tag-pattern GLOB (repeatable) keeps the newest --keep-tags versions of each.

  • One status view of every target. piceli targets [--composition MODULE] [--infra MODULE] [--json] lists each GitOps environment and each NixHost with its commit or tag, the product commit it pins (a promotion gate’s pinned where present, else every source’s commit), its checks and its state, as of when and from which source (controller or host agent): piceli.targets.v1. The controller is read once, by default from the composition’s home cluster with its piceli login profile (explicit flags win; without the profile, environments show profile-not-found and the login to run); hosts over SSH in parallel with --timeout; an unreachable one shows unreachable and never fails the view (exit 1 when any target failed or is unreachable). The UI’s new Targets view shows the same document; the in-cluster UI cannot reach hosts and shows each release as published. The host agent now reports the pin of the build it runs: it copies the deployed manifest’s pinned into its status (current.pinned, previous.pinned and each attempt’s pinned; a rollback restores the previous build’s), piceli host status --json shows it, and piceli targets prefers it (facts.pinned: host-agent) over the controller’s release. Status files without the field still read.

  • An encrypted backup of the secret store. piceli secrets backup --to PATH [--recipient R]... [--recipients-file F] [--force] streams every file of $PICELI_CREDENTIALS_DIR (whatever its kind, the registered clusters’ kubeconfigs included) and the profiles into age, to the recipients you choose (age1... keys, hardware keys through their age plugin, SSH keys); no plaintext touches the disk. The recipients and a marker of the last backup (time, sha256, names) are kept, without values, in credentials.backup.json next to the store, so later backups need no flags. piceli secrets restore PATH [--identity FILE] decrypts in memory, refuses an unsafe archive (secrets-restore-archive-invalid) and restores 0600 files in 0700 directories; into a store that is not empty it lists what it would add, what is identical and what differs, and writes only with --approve DIGEST (exit 3 otherwise). piceli.infra.machines.secrets_backup.staleness() tells when the last backup is older than the newest secret; backup --json includes it. Needs the age command (secrets-age-missing otherwise).

  • The cache’s S3 keys from infra apply. Bucket(..., keys=[S3Key( "cache-write"), S3Key("cache-read", access="read")]) (S3Key new in piceli.infra) declares the key pairs a bucket needs. infra plan lists them in s3_keys (name, bucket, access, action, credential, read_only_enforced and how; never a value); infra apply creates them (OpenStack: openstack_identity_ec2_credential_v3) and stores each as the credential of its name (s3-keys, 0600), also after a partial apply, redacted from every output (an EC2 credential’s id, its access key id, is not reported). A re-apply is a no-op; removing a key deletes the pair through the plan and then its stored credential; a credential Piceli did not store is never replaced (infra-credential-exists). Key pairs need an encrypted, enforced state (infra-state-unencrypted). NixCache(bucket=) takes the bucket’s write key as write_credentials by default.

  • What “read” means at OpenStack. An EC2 credential carries its user’s project roles, and Swift lets member read and write every container: S3Key(access="read") is a separate pair, not a read-only one, and the plan says read_only_enforced: false. A bucket in a project of its own limits what the pair reaches. Since Keystone’s OSSA-2026-005 fix a restricted application credential may not create EC2 credentials: infra-s3-key-refused (new) names that.

  • piceli host secrets installs the cache’s read pair. This reverses 0.24.0, where the hosts’ cache keys lived only in sops-nix: for a cache whose bucket declares S3Key(access="read"), NixHost’s read_credentials_file= defaults to /var/lib/piceli-host/cache.env, and host secrets writes the stored pair there (0600 root, on ssh’s stdin, compared by sha256, never read back). The plan’s cache shows the path, credential, a short digest and what the host has; a rotated pair is replaced without --replace and needs no activation (the agent reads the file each poll). A host without age_identity= gets only this file; the age-only plan and its digest are unchanged. A read_credentials_file= you give (a sops-nix path) is left alone.

  • piceli.infra.machines.keys.needed_secrets(...) lists every secret a declaration (Infrastructure, Bucket, NixCache, NixHost) needs: name, kind, who creates it (infra-apply or operator) and the command.

  • Backups need two recipients. piceli secrets backup refuses a single recipient (secrets-backup-single-recipient): losing that one key loses the store and its backup together. --single-recipient allows it, and the backup’s manifest, the remembered marker in credentials.backup.json and staleness() record it (single_recipient: true). The recommended pair is an age key kept in the password manager plus an offline age key: piceli secrets backup-key --out PATH [--add] [--force] creates it with age-keygen, writes the private key to PATH (0600; refused inside the store (secrets-backup-key-invalid) and over an existing file without --force (secrets-backup-key-exists)), prints only its age1... recipient and, with --add, adds it to the remembered recipients. age-plugin-yubikey is documented as the hardware alternative.

  • Two-part credentials are asked for, checked and stored by part. piceli secrets provider NAME --prompt asks for a Porkbun API key pair as “Porkbun API key (pk1_…)”, then “Porkbun secret API key (sk1_…)”, and an OpenStack (Infomaniak) application credential as “Application credential ID”, then “Application credential secret”, each with where to find it; identifiers are echoed, secrets are not. Each part is checked before anything is stored (not empty, no space around it, no : inside, pk1_/sk1_, 32 hex for the ID): a wrong one is refused with infra-credential-part-invalid, whose part names it, so a pasted secret alone or a swapped pair is caught at once, not at apply. Parts are stored under their own names; the stored line and JSON name them ("parts": [...], "provider", "replaced"), never their values. Piped input is one part per line; --from-env reads the provider’s standard variables (PORKBUN_API_KEY, PORKBUN_SECRET_API_KEY, OS_APPLICATION_CREDENTIAL_ID, OS_APPLICATION_CREDENTIAL_SECRET, HCLOUD_TOKEN). The provider comes from --provider, --infra MODULE:ATTR, the credential stored before, or the name (porkbun, infomaniak, hcloud, alone or before a dash); otherwise one token. piceli secrets s3 NAME --prompt checks and stores its two keys by part too. A credential stored as one A:B value still reads; one that lacks a part is refused by every plan before any API call (infra-credential-incomplete: “porkbun: one part of two stored, re-run piceli secrets provider porkbun --prompt”), and re-running that command replaces it. piceli.infra.machines.credential_parts.credential_reports() reports every stored credential’s completeness; secrets backup --json lists the incomplete ones (incomplete).

  • piceli secrets status MODULE[:ATTR] and piceli secrets setup. status lists every secret a module’s declarations need (Infrastructure, Bucket, NixCache, NixHost, NixRelease, DevBuilds, and a composition’s clusters, whose credentials are piceli login profiles): present, missing, incomplete (a credential that lacks a part), damaged (unreadable, readable by others, another kind, a signing key whose public key is not the declared one), pending (a key pair the next infra apply creates: the infrastructure’s records show it not applied yet; not an error) or not-needed (the user data of a server that exists); who creates it (infra-apply, piceli with --generate, or owner with --prompt); the exact next command; what it is for and where else it must live (the host, a build host, “read once at creation”). Then the backup’s state (none, stale with the newer names, single-recipient, current) and warnings (an S3 read pair the cloud does not limit to reading, a spent user-data key). --json prints one piceli.secrets-status.v1 object; exit 0 when every secret is stored and complete or pending, 1 otherwise (a pair applied but absent here is missing: the next plan stores it again), 2 for a module that declares nothing (secrets-nothing-declared). setup walks the missing ones in order: provider credentials part by part, the keys Piceli generates (printing only the public halves to copy into the declaration or .sops.yaml; --yes without a terminal), the user data (offered, left for right before infra apply by default), the S3 pairs (left to infra apply) and a backup. It never replaces a stored key without a typed confirmation; --json prints one object per step. Never prints a value.

  • A cache declared before its key exists: NixCache(key_name=). NixCache(key_name="cache-1", bucket=...) names the signing key without its public key (NixCache("cache-1:base64...", ...) still works), so piceli secrets status and setup load the module that the key does not exist for yet, and infra plan of the bucket works. status shows the key missing, then, once generated, copy with “put cache-1:... into NixCache(public_key=)” (blocking: exit 1); setup generates it and prints the public key to copy. dev nix build --publish, dev nix gc, host module and the agent’s configuration refuse with dev-nix-cache-key-unset, naming piceli secrets setup MODULE. A composition holding a NixRelease of such a cache still loads, so its environments deploy as usual: the controller keeps that release rejected with reason dev-nix-cache-key-unset and its message (in gitops status, nix_releases, and piceli targets, where the host is held), plans and publishes nothing for it, and takes the tags it sees once the key is declared as the baseline; gitops enable prints a warning line for it. A module whose declaration raises while loading is now reported under the declaration’s own code (for example dev-nix-cache-invalid), else infra-load-failed, not infra-not-found with a hint about an Infrastructure attribute; host commands do the same.

  • needed_secrets() also takes NixRelease (its cache’s signing and write keys are needed on its build host too) and DevBuilds, and each NeededSecret carries provider, where and build_host (the release’s builder).

  • Carrying a build host’s keys there: piceli secrets backup --only NAME. The signing key and S3 write pair a NixRelease’s builder publishes with are made on the owner’s machine; backup --only cache-1 --only cache-write --to PATH --recipient <the build host's age1...> writes just those, encrypted to that one key (one recipient is enough with --only; the manifest says only: true; an unknown name is secrets-backup-only-unknown), without touching the last backup’s marker or the remembered recipients. piceli secrets restore PATH --identity KEY on the build host adds them (plan, then --approve, into a store that is not empty) and does not adopt the transfer as its backup configuration. secrets status gives that command for each such secret once it is present.

  • S3 pairs from infra apply are stored by part, as piceli secrets s3 stores them, so credential_report() sees them complete. Plans pass OpenStack and Porkbun credentials to OpenTofu from their stored parts (Provider.credential_env(parts) now takes the parts by name, not an ID:SECRET string). piceli secrets s3 NAME --from-env reads AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY.

  • Upgrade note: credentials stored by part need 0.25.0. A credential that 0.25.0 stores by part (a Porkbun key pair or an OpenStack application credential from secrets provider, S3 keys from secrets s3 or infra apply) cannot be read by an earlier Piceli, which expects one A:B value. Credentials stored before still read in 0.25.0. Keep every machine that shares a secret store (or restores its backup) on 0.25.0.

Version 0.24.0

A machine without a cluster: 0.24.0 creates NixOS hosts on OpenStack clouds, points DNS at them, publishes signed Nix builds to your own binary cache and lets each host follow your release tags on its own, with checks and rollback.

  • A single NixOS host, end to end. docs/single_nixos_host.md takes one host from nothing to its first release with one tested declaration (an Infomaniak server from an uploaded image on a persistent port, a security group, a key pair, a bucket as the Nix cache, two Porkbun records, a NixHost following v* tags), then compares a single host with a Kubernetes environment.

  • OpenStack machines, with an Infomaniak preset. OpenStack(...) and Infomaniak(...) in piceli.infra render servers, a persistent public port per PrimaryIp (a replaced server keeps its addresses without a floating IP; protect=True is prevent_destroy), security groups with inbound rules, key pairs, uploaded Images (sha256 verified before the upload: infra-image-checksum, infra-image-unavailable) and Buckets for the pinned terraform-provider-openstack/openstack 3.4.0. The application credential reaches OpenTofu only in its environment; ownership marks and infra-foreign-resource work as for Hetzner; prices are a declared table. Infrastructure(buckets=) is new; Hetzner declarations render and hash as before.

  • Secret user data, at creation only. Server(user_data=UserData(NAME)) (new in piceli.infra; OpenStack servers) gives a server a stored secret as its user data: a cloud-config, a script or a bootstrap key, stored with piceli secrets user-data NAME --file PATH (or --prompt; 0600, never printed). It renders as a sensitive OpenTofu variable passed only through TF_VAR_*, redacted from every output (also JSON-escaped), with lifecycle.ignore_changes = ["user_data"]. Only a plan that creates or replaces the server loads it; the plan shows the secret’s name and a short digest (user_data), which the plan hash covers. Later plans never need it and never replace the server for it. A creating plan without it fails with the new code infra-user-data-missing. The provider keeps only its SHA-1 in the state. The single-host guide now bootstraps the host onto a tailnet with a one-hour, single-use key and opens no public port 22.

  • piceli secrets delete NAME [--kind KIND] [--yes] removes a stored credential, such as the spent bootstrap key of a server’s user data. --kind (provider, state-key, nix-cache, s3, age, user-data) refuses a credential of another kind (infra-credential-invalid). Without --yes it asks for the name on a terminal, otherwise it exits 3 with the command to run and deletes nothing. It prints the name, kind and path ({"state": "deleted", ...}), never the value. The single-host guide uses it to discard the spent key.

  • OpenStack flavors are an allow-list. OpenStack(flavors=[...]) is required and Infomaniak(flavors=) defaults to its smallest, a1-ram2-disk20-perf1, like Hetzner(server_types=): a server with another flavor is refused when it is declared (infra-invalid).

  • DNS records at Porkbun, for servers anywhere. Porkbun(credentials=) in piceli.infra renders DnsRecord(..., provider=Porkbun(...)) for the pinned marcfrederick/porkbun 1.3.3 OpenTofu provider (API v3; one record per answer). A record’s servers may now be at another provider than the record: each answer is a reference through the server’s own provider (an OpenStack server on a port answers with the port’s address), so records follow a replaced server and no address is written down. The key pair is stored as APIKEY:SECRETKEY and reaches OpenTofu only as PORKBUN_API_KEY/PORKBUN_SECRET_API_KEY (redacted, refused in the environment of piceli secrets provider). Records carry no labels, so the ledger alone owns them (infra-foreign-resource otherwise). New code infra-dns-api-disabled for a domain without API access. DnsRecord(ttl=) now defaults to the provider’s (300 s; Porkbun’s minimum and default 600 s).

  • Porkbun API access is checked at plan time. A plan that changes records at Porkbun asks Porkbun’s API once per domain; a domain without API access fails the plan (infra-dns-api-disabled) instead of the apply, and a check that cannot run fails it too (new code infra-dns-check-failed). The plan JSON’s new checks says whether it ran; it is not part of the plan hash.

  • DNS records in the way fail the plan, not the apply. The plan-time Porkbun check now also reads each zone’s records. A record Piceli did not create (not in its ledger) where the plan creates one fails the plan with the new code infra-dns-record-conflict: a CNAME or ALIAS at the same name (a parking ALIAS at the apex), any record at a name where Piceli creates a CNAME, or a record of the same name and type (for TXT, the same content). Its conflicts lists each record (type, name, content) and the fix: remove or change it at the registrar; Piceli never touches it. A wildcard does not answer explicit names, so it is a warning in the plan’s new porkbun-record-conflicts check, as is a TXT record with other content beside Piceli’s. Provider.plan_check now receives the ledger and may return several checks.

  • A partially applied change exits 1. piceli infra apply and destroy that fail after changing something exit 1 (also for a refusal such as infra-dns-api-disabled, which exited 2), with partially_applied, applied (address, action, the provider’s id) and not_applied; stderr says what was applied and that the next plan shows what remains. Upgrade note: a script that took exit 2 from apply as “nothing changed” must now read partially_applied.

  • Nix builds on build hosts, a signed binary cache and build manifests. piceli dev nix build ATTR builds a flake output (a NixOS system; with --image, a disk image copied back with its sha256) as a development run with DevProfile.for_nix(): a docker host mounts its own /nix read-only and builds through its daemon, a native host uses its nix. --publish MODULE:ATTR names a NixCache(bucket=|url=, public_key=) (new in piceli.infra); it plans (exit 3) and runs only with --approve DIGEST; the build stays isolated, and a separate step on the same host receives the signing key and S3 keys on stdin only, signs each path as nix copy uploads it, and Piceli uploads a manifest piceli/NAME/COMMIT.json (piceli.nix-build.v1: commit, tag, flake attribute, store path, system, closure size, build time) signed with the cache key; piceli.dev.nix_verify checks it and the narinfo with the standard library only. A cache’s write_credentials (builds, gc) never reach a host; hosts read with read-only keys kept in sops-nix. piceli dev nix gc keeps the last 5 tags, the current main and their closures and deletes the rest after approval. New piceli secrets nix-cache NAME --generate (prints the public key only) and piceli secrets s3 NAME --prompt; new codes dev-nix-*.

  • Nix host releases. NixHost(name, server=, flake=, follow=Tag("v*") | Branch("main"), cache=, checks=[HostCheck.unit|http|command], report= HostReport(endpoint)) in piceli.infra. piceli host module MODULE:ATTR renders a self-contained NixOS module (a standard-library agent, its verifier, the configuration without secrets, a systemd service and timer) that you commit and import. On each poll the agent resolves the ref from signed pointers, verifies the pointer, the manifest and the narinfo with the cache key, fetches the system with nix copy (never builds: no builders, max-jobs 0), switches, runs the checks, and rolls back and marks the build bad when one fails. It refuses replayed pointers and older versions. It reports over OTLP/HTTP logs (a collector that is down never blocks a deploy) and writes /var/lib/piceli-host/status.json. piceli host status and piceli host wait HOST REV read it over SSH, with no cluster. dev nix build --publish now also writes signed ref pointers piceli/NAME/refs/{tags,heads}/REF.json (--branch), and dev nix gc keeps what they name. host wait judges only the newest publication of the rev the host has seen (a commit published again is retried, and its earlier failure is not reported meanwhile); --published-after pins one before the host has polled. New codes host-*; see docs/nix_hosts.md.

  • A Nix host keeps 5 systems, not every one. NixHost(generations=5) (at least 2: a rollback needs the previous one). After a deploy whose checks passed, the agent deletes the system profile’s older generations (nix-env --delete-generations +N; never the current, the previous or a held system, which it then names generation by generation) and collects the store (nix-store --gc), each within a time limit. A failure is reported (new code host-prune-failed) and never fails the deploy. The status, each attempt and the OTLP event piceli.host.prune say what was deleted, kept and freed; piceli host status prints it. The rendered module sets the boot menu’s configurationLimit (GRUB and systemd-boot) to the same number with lib.mkDefault.

  • Pin, unpin and roll back a Nix host. piceli host pin HOST TAG deploys a published tag’s build (verified like any deploy, an older version too, checked and rolled back on failure) and holds it; piceli host rollback HOST switches to the previous system, already in the store, runs the checks and holds it, so the next poll does not deploy what was rolled away from; piceli host unpin HOST drops the hold and starts a poll. They run the agent once over SSH (the module now puts a piceli-host-agent command on the host’s PATH), need no approval digest, print piceli.host-control.v1 with --json and report piceli.host.pin, piceli.host.unpin and piceli.host.rollback over OTLP. A hold lives in /var/lib/piceli-host/state.json across reboots; host status shows it and host wait for another build exits 1 with host-pinned. New codes host-pinned, host-pin-not-found, host-rollback-unavailable, host-busy, host-control-unsupported.

  • A host’s secrets live in sops-nix; Piceli provisions its age key. piceli secrets age NAME --generate (or --prompt) stores an age X25519 identity (0600, never printed) and prints its age1... public key for .sops.yaml. NixHost(age_identity=NAME, age_key_file= "/var/lib/sops-nix/key.txt") and piceli host secrets MODULE:ATTR put it on the host after approval of a plan that shows the path, mode, owner, public key and whether the host has the same, another or no key (compared by fingerprint); the key travels on ssh’s stdin, is renamed into place atomically, another key is replaced only with --replace, and the host re-runs its activation so sops-nix decrypts. The cache’s read-only keys and the OTLP headers are sops-nix secrets: read_credentials_file= defaults to /run/secrets/piceli/cache.env for an s3:// cache, and the agent accepts sops-nix’s 0400 root files (it refuses files that root does not own). NixCache(read_credentials=) is removed: Piceli no longer keeps keys that only hosts use. New codes host-secret-*.

  • Nix builds need no cluster. piceli dev nix build --cluster (now also --dev) takes a bare DevBuilds, as well as a Cluster with dev=.

  • No hand-copied image checksum. dev nix build --image writes ARTIFACTS_DIR/NAME.image.json (piceli.nix-image.v1: the image’s path, sha256, format, size, store path and commit), and Image.from_build(NAME, PATH) reads it (new code infra-image-build-invalid).

  • Host keys without a cluster. piceli infra register INFRA SERVER for a server without cluster= pins its SSH host keys only, after the same preview and approval of their fingerprints (mode: host-keys, state pinned). The state’s known_hosts now keeps the other servers’ keys when one is registered.

  • Hosts by name. piceli host status|wait|pin|unpin|rollback|secrets NAME --infra MODULE finds the NixHost the module declares by its name, and reads it with the host keys pinned in the infrastructure’s state; --infra takes a module or MODULE:ATTR.

  • Docker’s containerd image store. Docker 29 stores images in containerd by default (Docker Desktop offers it as an option). There the image ID (docker image inspect --format '{{.Id}}') is the digest of the image’s index, not of its config, so every delivery of a Docker build was refused with digest-mismatch. A build now reads the config digest from docker image save (the manifest for the built platform; attestation manifests are ignored) and records it as image_id, the identity deliveries approve and nodes report; the engine’s own ID is the new local_id, used for the smoke check, presence checks and docker image save. A delivery of an archive that holds several platforms takes the image whose config was approved, and the node is given only that image. The classic store is unchanged. To approve an image by hand, read its config digest as Image delivery shows.

  • Local import and run with the containerd image store. DockerLocalImporter records the engine’s own ID of the loaded image as local_id when it is not the config digest, and LocalRunGrant(local_id=) lets DockerLocalRunner inspect and run the image by it; the runner checks that the saved image’s config is the granted image_id. Before, a loaded image could not be found by its config digest in the containerd store.

Version 0.23.0

  • Workloads roll when their configuration changes. Every Deployment, StatefulSet and DaemonSet that reads a ConfigMap or Secret of its release (volume, projected volume, envFrom, env.valueFrom) carries piceli.io/configmaps-digest and/or piceli.io/secrets-digest on its pod template: a changed value rolls the pods; an unchanged or carried-over value changes nothing. Secret values are reduced to an HMAC-SHA256 under a random key kept in the private secret store and are never exposed. Jobs and CronJobs are not annotated. roll_on_change=False on app.deployment, stateful_set and daemon_set (or piceli.io/roll-on-change: "false" on a raw workload) opts out; piceli import sets it for imported workloads that read configuration. Upgrade note: the first release after upgrading rolls every workload that reads a ConfigMap or Secret of its release once. A new release’s plan dry-runs the final pod templates of Secret consumers, so an unrelated change leaves them a no-op. A Secret or ConfigMap declared without content (adopted metadata only) adds no digest.

  • Generated Secrets survive an empty state. When the state has no record of a random, tls-self-signed or tls-ca generator but a live Secret the app declares carries this release’s owner annotation and field manager, the plan adopts its values instead of generating new ones (origin adopted, secret_adoptions in the plan JSON, bound with the Secret’s UID into the plan hash). Nothing is rotated, deleted or written. This fixes a GitOps controller with a new state volume failing with retained-content-precondition-failed. New codes secret-adoption-invalid and secret-adoption-incomplete. Secrets without the app’s marks are refused as before.

  • Steps shared by every platform run once. build.shared_commands (a wasm32 browser bundle, generated assets) run once in a multi-platform build into <cache>/target/shared ($PICELI_SHARED_TARGET_DIR); images copy their outputs with shared_files. Node facts are refused in them. Specs without them keep their spec digest and plan hash.

  • host_wait is the real wait. A waiting step looked again only a whole poll after it ended, and the run loop slept a whole poll: host_wait="20s" with a 1-minute poll waited 121-122 s. Now the fallback starts when host_wait ends.

  • Cluster build Jobs keep their source checkouts on the cache claim: incremental fetches, and unchanged files keep their times, so cargo rebuilds only what changed. Each Job’s time is broken down per image (the whole Job, the wait to start, the source fetch, commands, assembly, push) in the controller’s log and history.

  • Reliable tests. Process waits in tests are hang guards of at least 30 s, and a test keeps them so; an end-to-end test builds a commit while a newer one arrives and checks the newer one is deployed.

Version 0.22.0

  • The toolchain follows the source, for builds too. A host build spec declares its pins: [build] toolchains = { rust = "app/rust-toolchain.toml", node = "app/.nvmrc", wasm-bindgen = "app/Cargo.lock", binaryen = "123" } (paths relative to the stage root, or versions). Each tool is installed once into <cache>/toolchains under a lock: Rust with rustup, node and binaryen from their official tarballs checked against the published sha256, wasm-bindgen-cli with cargo install --locked and the pinned Rust. It works for local builds, the cluster build Job and piceli builder serve. The pins bind the plan hash and the image change key (a changed pin rebuilds); the receipt and the SLSA provenance record them. DevProfile(toolchains=...) pins node, wasm-bindgen and binaryen for development runs. New codes host-toolchain-invalid, host-toolchain-checksum, host-toolchain-failed, dev-toolchain-checksum.

  • Where each image was built. The controller records every image’s provenance (build host or node, builder image, commits, toolchains, times) with the component: piceli gitops status --json, the history and its image cache. piceli builder serve also pushes it as an in-toto OCI 1.1 referrer (application/vnd.in-toto+json); a registry that refuses referrers only loses the copy.

  • Faulty machines are quarantined. Machine-health signs in a build or a development run (internal compiler error, segfault, illegal instruction, bus error, machine check, a corrupt or repaired cache) record a health event for the host. After quarantine_after events within quarantine_window (BuildHost and Controller, default 2 in 24 h) the host is quarantined: dev run skips it, builder serve claims nothing, the controller refuses its claims and does not fall back to a quarantined builder node (build-host-quarantined). piceli dev hosts and piceli gitops hosts show it; piceli dev release-host and piceli gitops release-host end it.

  • Suspect images. piceli gitops suspects --host NAME [--since ISO] lists the deployed images a machine built; piceli gitops rebuild --host NAME [--since] drops their cached builds and redeploys them through the usual plan, approval and checks.

  • Verified caches. Host builds re-hash cached blobs before reusing them; a mismatch is discarded, rebuilt and counted against the build host.

  • Delivery into the nodes, without a registry. Controller(builds=("hosts",), delivery="nodes") with Node(target="ssh://user@host?runtime=k3s-containerd") on every node: piceli builder serve imports each image into each node’s containerd over SSH (ctr images import, through the validating relay), the platform of each node’s architecture. Nodes know it by a content tag of its config digests (node.piceli.invalid/<repository>:sha256-…). The controller accepts the answer only when each node’s import receipt shows its platform’s config digest; such a controller needs no registry.

  • piceli gitops run --local-build builds every platform and pushes one OCI index per image.

  • The builder image ships Rust 1.97.0 and lld.

  • One public API. piceli/public_api.py lists the 13 modules code imports from: piceli, piceli.app, piceli.artifacts, piceli.checks, piceli.envs, piceli.infra, piceli.k8s, piceli.k8s.ops, piceli.k8s.release_spec, piceli.k8s.templates, piceli.pipeline, piceli.server.cluster_install, piceli.testing. piceli.k8s, piceli.k8s.ops, piceli.artifacts and piceli.infra now also export what the guides imported from internal modules (DeploymentComposition, PlanExecutor, load_all, DeliveryGrant, register_cluster, …), loaded on first use, so importing them stays cheap. The old import paths keep working. The API reference documents these modules (90 pages instead of 329), and the eval harness checks their exports.

  • dir(piceli.envs) and dir(piceli.pipeline) list their lazily loaded names.

  • Reliable tests: seven tests that failed on busy CI runners are fixed (wall-clock bounds, leases and fakes that assumed an idle machine). A nightly Stress workflow runs the suites on twice as many workers as cores (make test-stress locally), and a test rejects elapsed-time bounds under 1 s. The kind shards also run on pushes to main.

  • The build queue reaches the current build. builds_wanted drops what no step waits for any more (a superseded commit, an environment that moved on, leftovers of an older controller after three polls); a failed build shows failed with its tail and is not offered again until its inputs change or piceli gitops sync retries it; a host never rebuilds what it just delivered while the controller still lists it.

Version 0.21.1

  • piceli builder serve builds specs with inputs. Each source is checked out with its .git (kept between builds in ~/.cache/piceli/builder/checkouts) instead of exported as plain files, so the build’s source identity check passes; 0.21.0 failed every spec build with an inputs file (source-identity, “not a git repository”). The builder container copies the read-only checkouts into its cache volume, owned by its own user, so Git verifies them with no exception to its ownership check. Unchanged files keep their times: incremental builds see only what changed (0.21.0’s archives stamped every file with the commit’s time).

  • Private sources. Fetches never prompt; an HTTPS URL that cannot be fetched is fetched again over SSH with the host’s keys (this process only; no Git config changes). A source neither transport reaches fails with both errors.

Version 0.21.0

  • GitOps builds on build hosts. Controller(builds=("hosts",)) (or ("hosts", "cluster")) makes the controller hand its builds to the build hosts instead of a builder-node Job: it publishes what it waits for (builds_wanted in piceli gitops status) and the step waits as retrying with reason build-waiting (no attempt counted). Controller(host_wait="30m") is how long an unclaimed build waits before ("hosts", "cluster") falls back to the in-cluster Job.

  • piceli builder serve. On a docker build host: claims a wanted build (build-claim), exports each source at its commit with the host’s Git, builds with the same host-build code as the in-cluster Job, pushes to the cluster registry through a port-forward and answers built (or build-failed with its log tail). The controller checks the id, every image’s key and that each digest is in its registry, then deploys through the same plan, approval and checks. --once builds one and exits.

  • Every platform. A build for several platforms pushes one image per platform and one OCI index over them; the deploy pins the index digest. piceli gitops enable defaults the platforms to the cluster nodes’ architectures. Another architecture is cross-compiled (cargo zigbuild), not emulated.

  • piceli build job-run --archives-only writes the image archives without pushing them.

Version 0.20.0

  • Build hosts. DevBuilds(hosts=[...]) declares where development runs may execute besides the in-cluster builder: BuildHost.docker(name, context=None | "ssh://user@host") (Linux containers of the profile’s image through Docker Desktop, OrbStack, colima, Podman or a Linux engine, locally or over the CLI’s own SSH transport), BuildHost.native(name) (this machine, no container: macOS-only builds) and BuildHost.cluster(node). Each has slots, cpu, memory, platforms. DevBuilds(node=None) means no in-cluster runs.

  • A queue on each host. Slots and waiting runs live on the host itself (uniquely named containers, or lock files), so every client shares them and they work with the cluster or its controller down; waiting runs start in the cluster queue’s order (priority, fair share, age).

  • Automatic fallback. piceli dev run takes the first host that is up and has a free slot (a docker host whose engine does not answer, or a cordoned builder node, is skipped) and tries the next one when the chosen host turns out unavailable (dev-host-unavailable). --host pins one, --platform runs another platform (emulated on a docker host). piceli dev hosts shows each host’s state, platforms, slots and queue.

  • The toolchain the source pins. A run in a pod or a docker host reads the source’s rust-toolchain.toml (or rust-toolchain) and installs that toolchain once into the cache with rustup (channel, targets, components), instead of the image’s Rust; toolchain.rust in the result (dev-toolchain-invalid, dev-toolchain-failed).

  • Every second of a run is attributed. The result has a timeline: contiguous phases with millisecond wall times (the client’s queue, pack and transfer; the run’s extract, isolation, toolchain, lineage, sync, fetch, build and test, repair and artifacts). The controller’s trace of a run uses it: no gap, no second-rounded edges.

  • Failed tests by name: tests.failed_names in the result and piceli.dev.tests.failed_names on the trace.

  • A dropped log stream no longer orphans a run: the client reopens the pod’s (or container’s) log and skips the lines it has seen.

  • More corrupted caches repaired: an internal compiler error in rustc’s incremental state drops incremental/ and retries once; a plain undefined symbol (a corrupt rlib) clears the crates whose artifacts the link error names and retries once.

  • Errors name the path: a link out of the tree (with its target), an unsafe path or special file in a run’s archive, a duplicate source name, a symlink leaving an image directory, an undeclared, missing or oversized build output.

  • DaemonSets run on every node: an environment’s on_nodes no longer narrows a DaemonSet (a node agent); its own node_selector still does.

  • piceli access ENV --cluster ... forwards only the declared forwards when the app declares any (no internal ports); --all-ports adds the other live Service ports.

Version 0.19.1

  • Tailnet companions in GitOps deploys. The controller rebuilt each composition environment without its Access (and ignored the cluster’s access), so an environment deployed by the GitOps controller got no tailnet companion at all in 0.19.0; only local piceli env deploys did.

  • Tailnet: the NetworkPolicies are decided by the pods. In 0.19.0 an ingress policy was opened to the Tailscale operator’s namespace only when its podSelector labels were all in an exposed Service’s selector. A policy that selects the same pods through other labels was skipped and kept blocking the operator’s proxies, so those services never answered on the tailnet. Now every ingress policy whose podSelector (matchLabels and matchExpressions) selects a pod template of the release that an exposed Service selects gets the operator rule, on the exposed target ports only; still no policy is added or widened.

  • Why a service is not on the tailnet. The plan’s plan stage has access (not hashed): the companions, the policies admitting the operator and notes (access-tailnet-skipped: not found, no selector, no matching port; access-policy-unchanged: a selector that cannot be evaluated, pods not in the release). piceli access checks the cluster read-only and prints tailnet_notes (also in its JSON events): access-tailnet-missing (the running release predates the declaration), access-operator-missing, access-operator-not-ready (also a crash-looping operator), access-operator-unknown, and access-tailnet-pending with the operator’s latest Event on a companion without a name.

  • Options: Access(tags=[...]) (tailscale.com/tags), and opt-in Access(https=True): a Tailscale Ingress per HTTP port, https://NAME.TAILNET.ts.net/ with a tailnet certificate. proxy_class is now rendered as the tailscale.com/proxy-class label, which is what the operator reads (0.19.0 wrote an annotation).

  • Docs: the access guide’s tailnet section says that Cluster(access=...) reaches every environment (release candidates and branches included), that branch environments create and delete tailnet devices, that the URL’s name is read from the operator (a stale device gives NAME-1), and has a cluster owner checklist (tailnet policy, OAuth client, the operator’s two traps).

Version 0.19.0

  • Development runs ship Git deltas. The builder keeps a Git mirror per repository; the run pod’s init container fetches the repository’s remote with the cluster’s Git credentials (the controller keeps a copy for runs, piceli-dev-git in piceli-dev, limited to the composition’s source URLs, mounted only by that init container) and reports which commits the mirror has. The client uploads only a git bundle from the nearest known commit, the uncommitted diff and the untracked files: kilobytes for a typical run instead of the whole tree. Without a known commit the whole history goes once and seeds the mirror. Sibling sources the same way; a --source that is the tree being run is skipped with a note. The result gains upload (mode, bytes, chunks, retries, seconds) and per-source base, bundle_bytes and fetch (fetched, masked error, note). An image without git still gets the whole tree.

  • Uploads survive a slow or dropped link. 4 MiB chunks over pods/exec, each retried after 1, 2, 4, 8 and 16 s, progress on stderr; the run waits while parts keep arriving; dev-upload-failed names the chunk, the bytes sent and the cause. The waiting line says fetching sources while the init container runs (it said ContainerCreating).

  • Environments on the tailnet. Environment(access=Access(tailnet=True)) (also Cluster(access=...) for every environment, and Environment.per_branch(access=...)) adds, per Service with a declared forward, a companion Service <name>-tailnet (loadBalancerClass: tailscale) that the Tailscale Kubernetes operator exposes on the tailnet under hostname ({env}-{service} by default); the environment’s ingress policies that select those pods admit the operator’s namespace. piceli access ENV --cluster ... prints the tailnet URLs instead of forwarding them (tailnet in the started event; exits 0 when nothing is left to forward); a companion without a name yet is forwarded, with a note; --forward forwards everything.

  • A busy forward is never restarted. piceli access holds each local port in a relay in front of kubectl: a forward that moved bytes in the last 15 s is busy, not failed, whatever its probe says; probes go straight to kubectl on a connection of their own; restarts keep the local port. status events and the dashboard carry restart_reasons (last ten, {at, reason}) and traffic. access stop --stale now identifies every port’s holder before signalling any, so one leftover holding several ports is stopped through all of them; piceli status reports a port held by that relay up, not occupied. On Linux, a forward reaped after its server was killed and left a zombie no longer counts as running.

  • A failing Git remote is never silent. Git’s stderr, masked, is kept in gitops-git-failed (controller.last_error_detail, sources.*.error_detail, gitops status, the UI’s Cluster page), logged once per change, and emitted as piceli.controller.git.failed; gitops wait for a commit the controller cannot see fails after two failed polls (stage: fetch) with controller_error; a GitHub token that expires within 7 days is warned (gitops-token-expiring in controller.warnings).

  • Failed checks say why. The check’s own detail is in checks.results[].detail, gitops status, gitops wait (failed_checks), the controller’s log and the UI.

  • Corrupted caches repair themselves. A dev run or a cluster build step that fails with a loader, metadata or link error on cached artifacts has the blamed crates cleared and runs once more (cache.repaired, the step’s repaired). piceli dev cache clear [--lineage] [--crate] and piceli gitops cache clear [--crate] empty the caches without a root pod on the claim. A failure keeps its first_error (the first error line and 19 more), printed by dev run and at the end of a build Job’s log.

  • Dev runs: the lineage name defaults to the repository’s main checkout (Git’s common dir), so every worktree builds warm on one lineage; the builder image has clippy and rustfmt.

  • piceli dev run no longer leaves its packed tree behind when it is stopped by SIGTERM or SIGHUP (a cancelled agent): its scratch is a tracked Piceli temporary directory.

Version 0.18.0

  • Development builds (piceli dev run): a developer’s or coding agent’s build and test commands run on the cluster’s builder node for a working tree as it is on disk (the default, or --worktree PATH: uncommitted and new files, never Git’s ignored ones) or a commit (--ref), with sibling sources at pinned commits or as working trees (--source NAME=PATH[@REF]), in a shared warm cache. Declared on the cluster (Cluster(dev=DevBuilds(node=, image=, profiles=[DevProfile(...)]))) and installed by piceli cluster init: namespace piceli-dev, cache claim, NetworkPolicy, configuration. Each run is an isolated pod; the commit is packed on the client and uploaded over pods/exec (no registry, no Git credentials in the cluster), runs nothing from the repository until its NetworkPolicy holds (dev-isolation-not-enforced otherwise); it builds in a cache lineage synced keeping unchanged files’ mtimes, so cargo rebuilds only what changed. The result (piceli.dev-run.v1) has the exit code, phase durations, cargo test counts, crates compiled and the log tail; --artifact copies files back. New codes dev-* (piceli explain); see docs/dev_builds.md.

  • A queue for development runs. slots (auto from the builder’s CPU and memory, or fixed); the GitOps controller runs the queue on a thread (or piceli dev schedule): runs start by priority (round before agent before normal), then fair share per requester, then age, are recorded in piceli-dev-status (last 50) and their Jobs removed. piceli dev status (slots, running, queued with position, recent runs, cache use), piceli dev logs RUN [--follow], piceli dev cancel RUN.

  • Observe the development cycle. Each finished run is an OpenTelemetry trace (DEV <profile> <requester>, spans queue, sync, fetch, build, test; event piceli.dev.run.finished; histograms piceli.dev.run.duration, piceli.dev.queue.wait) through the controller’s exporter, and the UI has a Development builds page (slots, running, queue order, recent results, cache use; shown where development builds are installed). docs/dev_builds.md has an agent section and an integration-round recipe.

  • The builder image has Node.js (for development runs of small JS tests).

Version 0.17.0

  • kubernetes<37. The kubernetes Python client 37.0.0 changed ApiClient (call_api, update_params_for_auth, model constructors); Piceli needs a client from 29 to 36 until it is ported. Fresh installs of 0.16.0 and earlier pick 37 and fail on their first API call.

  • A failed restore point leaves the release running. When a deploy’s backup stage fails, its writers are started again on the running release before the controller backs off, also when an earlier attempt was killed mid-copy and left them at zero replicas (0.16.0 started them “again” at zero: the retry had recorded the replicas it found). The replica counts are written to the restore point’s record before any writer is scaled, and a retry takes them from a point that never ended. The deploy says so ([backup] started again on the running release: ...) and the status’ failure.writers_started lists the workloads.

  • Every restore point attempt writes a clean point. A point directory is created only once (a reused id is refused with restore-point-exists before any writer stops); a take first closes the points of attempts that died mid-copy (state: interrupted, their .partial files removed); and one process at a time takes into a directory (restore-point-busy, new: two controllers, or a controller and a laptop, sharing one would write and verify each other’s files). A restore-point-checksum-mismatch now says whether the file’s size differs from the recorded one.

  • Restore points per environment. Environment(restore_points=...) and Environment.per_branch(restore_points=...) take "off", "touched", "all" or a RestorePoints(...) for a pipeline environment; not set, the pipeline’s restore_points apply as before. Pipeline(..., restore_points=None) (the default) turns them off.

  • A restore point size guard. RestorePoints(max_claim_bytes=N, over_limit="fail" | "skip"), off by default: each claim is measured by a read-only helper before anything is quiesced or stopped; "fail" fails the stage with nothing stopped (restore-point-claim-too-large, new), "skip" leaves the claim out with a warning (skipped_claims).

  • Build times per image. A pipeline image build Job reports each command’s time and, per image, commands_seconds (the spec’s commands, shared by every image of the Job), assemble_seconds and push_seconds; the deployment history keeps them under builds.<image>.timings with shared_with (the other images of the same Job), and the controller logs one line per image (built api in 812.4s (commands 790.1s, shared with web, worker; assembly 14.2s, push 8.1s)). Images whose inputs did not change are still not built (each image’s change key covers only the contexts it lists).

  • A persistent cargo cache for the build Job. CARGO_HOME is on the build cache claim (/cache/cargo-home) next to the target directory, so a build no longer downloads the registry index and crates again.

  • Failed builds keep their evidence. A retry’s image build Job gets a name of its own (piceli-image-build-<key>-r<attempt>); the failed attempts’ Jobs and pod logs stay until a build on that cache succeeds (0.16 deleted the failed Job and reused its name, so the failure’s log was gone). The status (failure.log_tail), each failed attempt and the piceli.build.failed event keep the last 80 lines of the build log (20 lines or 4000 characters before), at most 8000 characters.

  • Telemetry that survives its receiver’s restart. Spans and events the OTLP endpoint refuses are spooled on the controller’s state volume (at most 64 MiB per signal) and sent again with their original times when it answers; a deploy that stops its own receiver keeps its trace.

  • Deploy events for timelines: piceli.deploy.started, piceli.deploy.stage (one per stage that ran, at its end), piceli.deploy.retry (attempt, cause, next retry) and piceli.deploy.finished (result).

  • Timestamps on the controller’s log lines. Every line piceli gitops run prints starts with its UTC time, as do the Python logging lines (an OTLP exporter’s errors).

  • piceli gitops wait ENV COMMIT blocks until the environment runs the commit (of any of its sources) and returns deployed, failed (with the stage and cause), approval-required, superseded, stopped or timed-out (--timeout, default 1800 s; --json); retries are waited through. Agents end an integration round with it.

  • The status shows the running stage and a summary. While a step runs, envs.<env>.in_progress.stage (build, then the pipeline’s stages) and stage_since are published as they change; a failed step records failed_stage. piceli gitops status --json adds summary.<env>: state, commit, stage, attempt, next retry (ISO time) and last error.

Version 0.16.0

  • A stopped multi-cluster environment stays stopped across a controller restart. The first poll after a start forgot stop requests (and other per-environment memory) kept under the environment’s name when its records are per cluster (edge@<cluster>), so the environment deployed again (0.15.0–0.15.1).

  • Stage and build times. Run journals, run summaries and the deployment history (piceli.gitops-history.v1) give each stage started_at and finished_at (inputs, build, deliver, prerollout, backup, plan, apply, checks), each build its own (builds.<name>: started_at, finished_at, state), the apply’s deletes (prune) and the automatic rollback (rollback) theirs, and an owner-approved run its approval_wait. Runs and summaries also have finished_at.

  • Interrupted runs. A controller that restarts after dying during a step marks that step and every run journal still running as interrupted (reason gitops-run-interrupted, finished_at when detected): they no longer show as running forever in the history and the status (envs.<env>.interrupted until the next step).

  • Approval and stop times. approved_by.at is set for policy approvals (when the run was created) and stop.at for declared stops (when the controller first saw the declaration); both were null.

  • Stops, starts and teardowns in the history: entries of their own kind (stop, start, teardown; runs are kind: "run") with at, by, via, state and the environment; a torn-down branch environment keeps its entries.

  • Controller heartbeat. The status has controller.heartbeat_at, refreshed every 30 s (controller.heartbeat_seconds) by a thread of the controller, also during a long build or deploy; it writes only that field, never at the same time as the step’s own publish. gitops status, cluster status and the UI report stale from the heartbeat when there is one (from last_poll for older controllers): a long build no longer reads as a stopped controller.

  • Fix: an automatic rollback after failed checks restores the previous release whole again: what the failed release removed and the previous one declares is created again (a workload kept running without the Role the failed release had deleted), and what only the failed release declares is pruned. The environment still stops at failed (checks-failed-rolled-back) with no retry until a new revision or piceli gitops sync. Same for release apply with rollback_on_failed_checks.

  • Compatibility promise: piceli.gitops-status.v1 and piceli.gitops-history.v1 change only additively within v1 (documented in GitOps: Piceli’s controller and manifest export); a test fails when a field disappears.

  • The controller’s OpenTelemetry. Controller(telemetry=Otlp(endpoint, protocol="grpc"|"http/protobuf", headers_secret=, ca_secret=, insecure=)) makes the GitOps controller send, with the OpenTelemetry SDK (the telemetry extra, now in the controller image), one trace per environment deploy (SYNC <composition>/<env>, CI/CD semantic conventions v1.43.0) with a span per stage: each image’s build, plan, approval wait, restore point, pre-rollout, apply with prune, checks with one span per check, rollback; times from the run journal and the controller’s own hooks. Events (log records with an event name and a stable piceli.event.id) for approvals, rollouts, failed checks, rollbacks, prunes, failed builds (the last 20 redacted log lines), stops, starts and the controller’s start; CI/CD metrics (cicd.pipeline.run.*, cicd.worker.count) and Piceli’s (build durations, check results, approval and queue waits, time since the last successful deploy, a heartbeat from a background thread that keeps ticking during long builds). A run the controller was in when it died is closed as interrupted in the same trace at its next start. Telemetry never blocks or fails a deploy (bounded queues, background export, bounded timeouts); header and CA Secrets are mounted, never printed. Without the setting the standard OTEL_EXPORTER_OTLP_* variables are honoured; the controller’s configuration (and its hash) is unchanged when it is not set. See OpenTelemetry from the GitOps controller.

  • k3s lifecycle stage 31: a pinned OpenTelemetry Collector in the cluster checks the traces, events and metrics of a deploy, a rolled-back check failure, an approval, a stop and start, a broken build and a controller killed mid-build, and that deploys go on with the Collector down.

Version 0.15.1

  • A dead controller is visible. piceli gitops status (JSON controller_live), piceli cluster status (controller.live) and the UI read the controller’s pod: down with its reason, restarts and last error line (the containers keep their last log lines as the termination message), or stale when it has not polled for three intervals. When the controller is not running, the status says its environments’ states were written before it stopped, instead of showing them as current.

  • Self-check at start. The controller and UI images ship the digests of their Python files; piceli verifies them before importing anything else (PICELI_SELF_CHECK, under a second) and stops, exit 70, with “controller image files corrupted on this node; remove the image from the node’s containerd and restart” and the files that differ. Found on a cluster whose node altered one .pyc of the unpacked image: the controller had crash-looped for hours with an unrelated import error.

  • Overview: topology across the width, details below. The topology uses the whole width; the selected node’s details are a wide card under it (its sections side by side, source → image → environment left to right) instead of a narrow side column. ⌘/Ctrl- or Shift-click (or Shift+Enter) pins more nodes: their cards sit side by side, denser, with connections folded under More, each with a close button (pin in the URL keeps the comparison). The expanded explorer keeps its side panel.

Version 0.15.0

  • Several clusters from one GitOps controller. A composition declares several Clusters; the one with Controller(...) runs the controller and builds. Environment(..., clusters=[Placement(cluster, namespace=, on_nodes=, values=, replicas=, pipeline=)], rollout=Rollout(order=[...])) (and Environment.per_branch) deploys to each cluster through its API server, one record per cluster. See the Several clusters page.

  • Canary rollouts. Rollout(order=["edge-canary", "edge-*"]): a later wave deploys a revision only when the earlier ones run it with their checks passed; a failure there (rolled back once, as in 0.14.7) holds the rest (held, rollout-stopped) until a new revision.

  • An unreachable cluster blocks nobody. It is probed every poll, retried with backoff without failing (cluster-unreachable), shown with its last_contact, and converges when it answers again.

  • Each cluster pulls from its own registry: the controller copies the images by digest into that cluster’s Registry.in_cluster through its API server; builds stay on the home cluster.

  • piceli secrets cluster --cluster MODULE:ATTR --kubeconfig FILE --context NAME [--server URL] (or --prompt for a token) stores another cluster’s credentials as the Secret piceli-cluster-<name>; never printed. piceli.infra.multicluster.register_cluster(...) does the same from Python (with the local profile).

  • Per-cluster status, history and UI. gitops status adds envs.<env>.clusters.<cluster>{state, health, checks, revision, reason, last_contact, …}, clusters and removals (JSON additive); the deployment history lists every cluster’s runs with their cluster; the web UI’s environment page and inventory show each cluster.

  • Removing a cluster (or a placement) deletes there only the app’s objects in its namespace; claims and Secrets are kept with their delete command; the namespace goes only when Piceli created it and nothing is kept.

  • Replicas per environment. Environment(..., replicas={"web": 3}) and Environment.per_branch(..., replicas={"db": 1}) set Deployment and StatefulSet replica counts per environment (an autoscaled workload is refused). Compositions that declare neither keep their config and hashes.

  • New error codes: cluster-unreachable, cluster-credentials-missing, cluster-credentials-unsupported, cluster-credentials-refused, cluster-registry-copy-failed, rollout-stopped, rollout-waiting.

  • Status while a step runs. The GitOps controllers publish the status when an environment’s deploy, teardown or stop starts (in_progress: {action, since}) and when it ends, not only at the end of the poll, which left it minutes stale during a long rollout.

  • No failed checks next to healthy. After a rolled-back release, a no-op deploy (a revert) shows the last passing checks of the running images, or none; a no-op never takes another run’s checks.

  • piceli status lists StatefulSets and DaemonSets also when the app cannot be rendered without the cluster (the fallback listed Deployments only).

  • piceli ui connect needs only the base package (the standard library posts to the UI when the ui extra is not installed), and SIGTERM or SIGHUP stop it like Ctrl-C, closing its kubectl port-forward.

  • A *TOKEN* variable holding a file path applies unredacted through a whole piceli deploy (end-to-end test; fixed in 0.13.0).

  • Deliver to a cluster you never access: piceli bundle TARGET --env ENV --out DIR. The same typed App as one directory a client installs with kubectl alone: a kustomize base and overlays/dev (namespace, image registry and digests, requests and limits, storage class), every object labelled app.kubernetes.io/part-of=<name>; prepare.sh NAMESPACE, a POSIX script that makes the app’s generated Secrets (random tokens, templates, a private CA and its certificates) in the client’s cluster with kubectl and openssl (idempotent, never prints a value; no Secret is shipped); OCI image-layout archives of the build receipt’s images (--receipt; amd64 by default, --platform or --all-platforms) with their SBOM and provenance, whose digest survives skopeo copy --preserve-digests; INSTALL.md and UNINSTALL.md with the exact commands; bundle.json and SHA256SUMS. A generated default-deny NetworkPolicy admits nothing from outside the namespace. Never contacts a cluster or registry. See Deliver to a cluster you never access.

  • A safety gate for foreign clusters. piceli bundle refuses (bundle-unsafe-<rule>, with every violation) containers that may run as root, write their root filesystem, escalate privileges or use the host, lack cpu/memory requests and limits, NetworkPolicies admitting ingress from outside the namespace, RBAC beyond least privilege, and node ports. app.safety_exception(item, rule, reason=...) waives one rule for one object; the reason is an annotation in the client’s cluster and is listed in the bundle.

  • The cluster’s identity, read from the cluster: app.cluster_identity(image=...) declares a ServiceAccount allowed only to get the kube-system namespace and returns a ClusterIdentity: an init container writing its UID to /run/cluster-identity/uid, the volume, the account and the egress rule to the API server. No per-cluster constant in the model.

  • piceli support-bundle --kubeconfig F --context C --namespace NS --out FILE: a read-only (GET only, any other method refused before it is sent), redacted .tar.gz of a namespace: versions, pod status, workloads, declared health, events, Services, ConfigMap keys, log tails, with a manifest. Secrets are never requested; env and ConfigMap values are never collected.

  • Machines in typed Python, provisioned with OpenTofu. Server, PrimaryIp, Firewall/Rule, DnsRecord, Hook, Ssh and Infrastructure (in piceli.infra) declare servers, fixed IPs, firewalls and DNS record sets; Hetzner(...) renders them for the hcloud OpenTofu provider, pinned (1.69.0) with every platform’s lock-file hashes, behind a small provider contract (piceli.infra.Provider). piceli infra plan prints the changes, the monthly estimate (Hetzner’s prices) and a plan hash; piceli infra apply|destroy --approve HASH re-plans and applies only that plan (infra-plan-changed), and never changes or deletes a resource Piceli did not create (ownership ledger and labels, infra-foreign-resource). Piceli owns the state: a 0700 directory outside Git, one command at a time, encrypted by OpenTofu’s state encryption with a passphrase from piceli secrets state-key; optional HttpState remote backend (ciphertext only). Provider tokens come from piceli secrets provider NAME --prompt and reach OpenTofu in its environment only, redacted from its output. piceli infra install runs the server’s OS install hook after approval of its rendered command; piceli infra register pins the server’s SSH host keys, reads its k3s kubeconfig (or --kubeconfig FILE), waits for a Ready node and makes it the server’s Cluster profile. piceli infra status and a read-only Machines page (piceli ui serve --infra MODULE:ATTR) show servers, addresses, installs, clusters and cost. piceli.testing.infra.FakeProvider runs all of it with a real OpenTofu and nothing created. Error area infra. See Machines with OpenTofu.

Version 0.14.7

  • Stop a named environment. Environment(..., stopped=True) in a composition, or piceli env stop ENV --cluster infra.py:CLUSTER (a request; piceli env start ENV ends it, also --state-dir for a local controller): the controller scales its workloads to zero (namespace, volumes and objects kept) and neither plans nor deploys it while stopped (state: stopped, reason declared or requested, stop in the status). The declaration wins: env start of a declared stop is refused (gitops-env-stop-declared). Start scales back and deploys the revision when it moved (with its usual approval). The UI has Stop and Start.

  • Status keeps the checks of every deploy. A composition environment’s record has checks (passed N/N, each check’s name and code, when, the trigger, the run) after a rollout too, not only after a checks-only verification; gitops status prints it and the UI’s environment shows a Last checks card.

  • piceli access ENV --cluster infra.py:CLUSTER forwards an environment’s declared forwards (a pipeline environment’s app.access.forward, on their declared ports) besides its other Services; --ui also forwards the in-cluster UI and prints its launch URL.

  • No kubectl outlives piceli access. A watchdog process stops every forward when piceli access or piceli access ui is killed (SIGKILL, a crash), on Linux and macOS; Ctrl-C, SIGTERM and SIGHUP still stop them directly.

  • piceli access ui keeps trying through an API outage: its forward restarts with a backoff capped at 30 seconds until stopped (RestartPolicy(forever=True)) instead of giving up.

  • Fixes in the composition controller’s records: a branch environment’s run names its branch’s push as trigger and policy as its approver when the owner’s policy applied it; an approval stands across an unrelated push that keeps the plan hash; a component’s commit is the commit of the source that triggered its build (sources lists every source’s commit); the log says rolled nothing unless an image digest or a workload changed; a failed attempt’s log tail is kept (failed_attempts) in the status and in the history of the run that succeeds after it.

  • UI: one Logs workspace (/logs, Operations → Logs): container logs of every application, environment and profile scope the session may read, merged by time, with URL-backed filters (scope, workload, pod, container, previous instance, time range, level detected from the line, text search, lines per container) and a live tail you can pause. A local piceli ui serve can add read-only namespaces of other saved profiles, each read with its own kubeconfig and context. Every application, environment, component, workload and pod links into it with its filters set; the per-pod Logs tab stays and links there too. New read APIs: GET /api/v1/logs/sources, GET /api/v1/logs/lines (at most 12 containers and 5,000 lines per read, the same logs grant as before), POST|DELETE /api/v1/profiles/scopes.

  • UI: one Port forwards workspace (/forwards): every forward or connection ticket of the session across scopes, with its state, local address and expiry; start one (target and ports, preselected by each workload’s Forward link) and stop it through the existing per-application paths. Stale forwards (a removed scope, a forward reconnecting, or one left running by a previous UI process, from the same registry piceli ui serve reaps at start) are shown and can be stopped without touching anything else. APIs: GET /api/v1/forwards, POST /api/v1/forwards/stale/stop.

  • UI: the in-cluster composition UI issues connection tickets. Forwards from the UI that piceli access ui opens run on your machine through piceli ui connect --server http://127.0.0.1:8790 … (pending → ready → stopped, listed in the Forwards workspace). The UI only reads the selected object; it needs no new RBAC. piceli ui connect accepts plain http only for a loopback server; any other server still needs https.

  • piceli access ENV --cluster infra.py:CLUSTER: forwards every Service port of a composition environment on free local ports, with the cluster’s credentials profile (named environments; refusals env-not-found, access-target-invalid).

  • UI: Overview without nested scroll. The system schematic is sized to its content and fits the width (pan and zoom only after you zoom in, or in the expanded explorer); smaller cards, a tighter header, a compact environment strip that wraps instead of scrolling, and the inspector beside the canvas.

  • UI: navigation with alert counts (approvals waiting, degraded environments, failed builds, stale forwards, registry warnings, from GET /api/v1/navigation) and collapsible, keyboard-accessible sub-menus (each environment, history and approvals, cluster nodes and registry) whose open state is remembered in the browser.

  • Fix: pod logs read by the UI were one line holding a Python bytes literal (b'…\n…'); they are decoded (UTF-8, invalid bytes replaced) and split into lines.

  • Fix: log lines the UI and API return are redacted with the shared redaction (password=, token:, bearer tokens, URL credentials, JSON Web Tokens, private keys become [REDACTED]).

  • Fix: the GitOps controllers delete what an app no longer declares. Every environment deploy (single-repository and composition controllers, named, main and branch environments, piceli env up) plans the deletion of the objects an earlier release created and the current render no longer declares (a removed workload, its Service and NetworkPolicy, a Deployment renamed to a StatefulSet) as delete actions of the same plan and hash. They run after the new objects are ready and before the checks, a workload Foreground (its pods first), so a leftover can no longer join the new pods or fail the checks. Only objects with this release’s piceli.io/owner are deleted. Pipeline(prune=None|True|False) is new (default: environments prune, plain piceli deploy does not).

  • Approval: an auto_approve policy covers a prune (new class prune, marked "prune": true on delete changes) unless it denies prune or delete; any other delete, replace or adopt still needs the hash. Without a covering policy the environment asks, with the deletes in the plan it shows.

  • Data: claims, Secrets, retained objects, the claims a removed StatefulSet created from its templates, and a StatefulSet whose retention policy would delete its claims are never deleted: plans, status (envs.<env>.kept_orphaned), run summaries and the deployment history list them with why and the kubectl command that deletes each. Status and history runs also have deleted (additive JSON).

  • Fix: an automatic rollback after failed checks restores only what the failed release changed (objects both releases declare): it no longer re-creates objects the failed release removed (by its prune or by hand). The controllers no longer retry a revision whose checks failed and whose release was rolled back: the environment is failed with reason checks-failed-rolled-back until a new revision or piceli gitops sync.

  • Testing: the fake API (piceli.testing) accepts Foreground deletes.

  • Tests: the local executor’s delayed-mutation test, the heavy-lock tests and the saved-forward conflict test no longer depend on timing: the test sets “in flight”, “applied” and “lock released” itself instead of waiting for wall-clock windows. piceli.testing.FakeAPI.inject takes hold and applied events for that (hold_timeout bounds a held request). The access-history test checks the bound at a small limit (130 real starts passed the 30 s timeout under load), and deploy acceptance tests check their event schema once instead of on every line (about 3x faster).

Version 0.14.6

  • Fix: an environment does not ask twice for the plan it already runs. When a plan’s hash is exactly the owner-approved plan hash of the release running now (a reverted change plans it again), the GitOps controllers (single repository and composition) apply it with that hash instead of waiting in approval-required. Only the running release’s plan counts: a hash the owner never approved, an older approved plan once another plan runs, or any plan after a failed step, a degraded verification or an idle stop still waits for approval. The status shows the hash as deployed_plan_hash (null when the policy applied the release).

  • Fix: a stale piceli access ui is recognised. The port check of piceli access ui now tells Piceli’s own UI forward from other processes (it reported the kubectl of an earlier piceli access ui as “not piceli”), also when Piceli runs as its console script (python …/bin/piceli …, as uv run piceli shows in ps; this applies to piceli access TARGET too), and prints the command that frees the port: piceli access stop --stale --cluster MODULE:ATTR (or --profile NAME), new, which stops only that forward. piceli access ui records its forwards in the private registry piceli ui serve uses, so a stale forward is recognised by its record and the forwards of a crashed piceli access ui are stopped at the next start. Another process is never signalled.

  • Docs: several images from one source: two contexts of the same source with different include lists give each image a change key over its own paths (Compositions in Python).

  • Fix: the in-cluster UI shows each environment’s deployment history. The composition controller now publishes its runs in the ConfigMap piceli-gitops-history (piceli.gitops-history.v1, the newest 20 runs per environment, bounded to fit one ConfigMap), built from its record of every deploy step and the run journals on its volume, including runs recorded before this version. Delivery → Deployment history and each environment’s page list them newest first: trigger, sources and commits, plan hash and changed objects, approver, components with digests (built, rolled or unchanged), checks with outcome and duration, failure code, failing checks and build log tail, stage durations. New read-only endpoints GET /api/v1/composition/history and /api/v1/composition/environments/{env}/history, capability composition_history. The UI’s service account gets get on that one ConfigMap; nothing mounts the controller’s volume.

  • Fix: Approve shows what the pending plan changes. The controller publishes envs.<env>.pending_plan (plan hash, deploy plan hash, object counts and changed objects by kind and name) while it waits; the Approve review lists it and a changed plan needs a new acknowledgement.

  • Fix: the approver is recorded. An approve request carries via (cli from piceli gitops approve, ui from the web UI); the controller keeps it with the time (envs.<env>.approval while it applies) and in the run’s history (approved_by, or policy for the owner’s approval policy).

  • Fix: the Cluster page in the cluster shows the registry claim’s use. The composition controller measures du of the registry storage in its pod at most every ten minutes (it is granted pods/exec in its own namespace) and publishes it as controller.registry_usage; the UI, which has neither pods/exec nor nodes/proxy, shows it as measured by the controller.

  • Additive status fields: envs.<env>.pending_plan, envs.<env>.approval, controller.registry_usage; EnvOutcome gains run_id, combined_hash and plan.

Version 0.14.5

  • Fix: one upgrade command: gitops enable of a composition also updates the stored Cluster declaration (piceli-cluster), so a later cluster init plans nothing; without --poll the controller uses Controller(poll=).

  • Fix: a changed, added or removed check runs. A deploy whose release did not change (nothing to apply) used to skip its checks as “release already verified” even when the check set changed. Each checks outcome now records the digest of the check set (checks_hash); when it differs the checks run against the running release as a verification: nothing is applied, backed up or rolled out, and the result carries verification (trigger: checks-changed). A failing verification never rolls back the running release, whatever rollback_on_failed_checks says. The GitOps controllers (single repository and composition) report it as last_action: verified with verification (state, trigger, checks_hash, rolled: [], failed); failing checks keep the environment deployed with health: degraded and reason: pipeline-checks-failed, without retries, until a passing verification clears it. Unchanged checks are still not re-run.

  • Fix: the controller forgets torn-down environments. Teardown removes the environment’s pipeline state, build receipts and trigger memory (also when its namespace was already gone), and on start the controller removes the state left by earlier teardowns, only for namespaces that no longer exist; a live environment’s state is never deleted.

  • Fix: gitops enable infra.py upgrades the in-cluster UI too. When the composition’s Cluster declares a Ui, the UI’s objects (rendered as by cluster init, image Ui(image=), else Controller(image=), else --image) are in the same plan and approval as the controller; the result says ui (included, not-declared, unavailable, other-namespace).

  • Fix: retention of the in-cluster registry works out what to keep on its own. piceli artifacts retention --cluster infra.py:CLUSTER --delete derives the registry, the port-forward to its Service and the cluster read (every namespace) from the declared Cluster, and lists every manifest the registry stores with a read-only find in the registry pod (pods/exec), so digest-only images nothing names any more (old builders) are found without receipts. It keeps what runs, what Piceli uses (the controller and UI Deployments, the builder in piceli-gitops-config) and every workload’s rollback target, and collects the rest, tagged or not; the approval command is printed in full. --to and the other flags work as before.

  • Fix: a Deployment’s newest scaled-down ReplicaSet and a StatefulSet’s previous ControllerRevision are kept as the rollback target (reason rollback; older history stays collectable, and Piceli’s own controller, UI and registry have none), with or without --cluster. The delete refuses a plan that names one. ControllerRevisions are read (the cluster read needs list on controllerrevisions).

  • Fix: piceli registry status|install|uninstall|forward accept a declared Cluster (infra.py:CLUSTER) or the composition module (infra.py) and reach the cluster through its credential profile; infra.py:CLUSTER was refused with cluster-registry-invalid.

  • Fix: piceli registry status reports the registry claim’s use: the kubelet’s volume stats only when they are the claim’s own filesystem, else du in the registry pod; the node filesystem a local-path claim shares is shown as such (storage.used_source, storage.filesystem), never as the registry’s use. The UI’s cluster view no longer shows the node’s filesystem as the registry’s use.

  • New error code registry-storage-unreadable (reported in the retention report’s storage_listing, not a refusal).

  • History discovery: a first-level Deployment history destination and an application Plans tab expose paginated saved plans, including expired plans and plans with no recorded run. Exact plan/run identities connect reviews, revision comparison and direct captured-log links; existing authorization and approval checks remain in place.

  • Denser navigation: Sources presents refs, polling and environment/component connections in compact searchable rows. Cluster returns to the Workspace group, and a simplified vector mushroom/network mark fits the sidebar and browser icon.

  • Deployment evidence: ordered resource steps and dependencies from the engine plan, recorded execution transitions with visual and raw evidence, and read-only comparison of desired configurations across recorded revisions. Source revisions, exact plan identities and run outcomes stay connected; missing historical snapshots and redacted fields are reported explicitly.

  • Infrastructure explorer: composition sessions now open on the graph. An environment switchboard, expanded canvas and compact application headers bring infrastructure into the first viewport. Inspectors connect exact versions across environments and navigate observed resource owners/children; runtime pages link back to their published composition identity.

  • Connected workspace: original Piceli branding with warm orange accents; a source/component/environment canvas with node inspection, zoom and keyboard navigation; exact environment version comparison and contextual GitHub links; separate views for reported problems, decisions and lifecycle states.

  • Navigation and evidence: on-demand Ctrl/⌘ K workspace search, URL-backed application state filters, resource ownership lanes and neighborhood focus, searchable per-resource before/after changes, and recorded-operation timelines.

  • Review continuity: history readers can open an exact recorded plan without source-evaluation permission; preparing or executing a new review still needs its existing capability. Named-environment confirmation binds to the exact environment, action and reviewed identity, including refreshed plan hashes.

  • Web UI: Harbor workspace layout with grouped capability-aware navigation, application cards/table, compact environments, a composition overview and selected component evidence. Resource relationships use observed owner UIDs; source associations use reported source identity. Existing routes, inspection, logs, access, sync and reviewed actions remain available.

  • Review: separate plan evidence and exact approval context, real Pipeline stage progression and cluster-build placement. Changing the plan identity or digest clears acknowledgement; open expired Pipeline/build plans stop being approvable without waiting for a page refresh.

  • Appearance: responsive layouts and a remembered Light/Dark/System choice, using bundled assets without external fonts or diagram dependencies.

  • Contributors: make ui-serve PICELI_UI_ARGS='...' builds and starts the current UI for an explicit target; make test-browser-harbor covers the new workspace journeys at desktop, tablet and phone sizes.

  • One-command preview: make ui prepares the frontend, starts disposable sample state and opens the current UI at http://127.0.0.1:4178. Plain bookmarks and fresh browsers work without copying a token; only the disposable fixture bootstraps its session automatically. Real-target authentication is unchanged. No cluster setup is needed.

Version 0.14.4

  • Fix: Checks.http and Checks.metric pass in an isolated branch environment. They reach a ready pod of the target through a port forward of the API (from Python, no kubectl): the connection starts inside the pod, so the environment’s isolation policy, which refuses the API server’s proxy when the API server runs on another node (k3s), is neither in the way nor widened. The API proxy stays as a fallback.

  • Fix: a failed build of a composition shows the failing command’s output (redacted) in the build Job’s log and in gitops status (failure.log_tail).

  • Fix: branch teardown removes the failed build Job kept for that branch.

  • Retention removes images nothing uses: artifacts retention --keep 0 is allowed (with --kubeconfig and --context) and keeps only live and pinned digests. Liveness is what runs or is referenced now: finished pods and Jobs and a Deployment’s scaled-down rollout history no longer keep an image, while environment records, pushed branch images and the GitOps controller status do. Digests the cluster still names are looked up in the registry, so a manifest pushed by digest without a receipt is found and collected. Each deletion now lists bytes, why and seen_in; the guide shows how to garbage-collect Registry.in_cluster afterwards.

Version 0.14.3

  • Branch environments may reach the API server: EnvConfig(allow_api=True) / Environment.per_branch(..., allow_api=True) adds the API server’s endpoints (read from the EndpointSlice default/kubernetes at env up) to the isolation policy, instead of node IPs in allow_egress.

  • Teardown removes the release’s cluster-wide objects: the ClusterRoles and ClusterRoleBindings a branch’s release created (labelled piceli.io/env-namespace, or named <namespace>:<app>:<name>, and marked as Piceli’s) are deleted with the branch.

  • Deleting volumes is an opt-in: the controller reads PersistentVolumes; gitops enable --delete-volumes / Controller(delete_volumes=True) lets teardown delete those bound to the branch’s claims. Without it teardown completes and reports them (volumes_left); cluster init keeps the rule.

  • Images: the release can also copy the controller and builder images to Docker Hub (docker.io/pynenc/piceli-*) when its credentials are set. A private GHCR package is a warning with the settings link, no longer a failed release (everything is published by then).

Version 0.14.2

  • Images: ghcr.io/pynenc/piceli-controller and piceli-builder are linked to the repository and public (anonymous pull); the release checks an anonymous pull before it finishes. The builder adds make, cmake, g++, pkg-config, curl and xz for crates with C builds (jemalloc-sys, aws-lc-sys).

  • Fix: a failed cluster build is diagnosable. The build Job’s log ends with the failing command’s last 200 lines of output (at most 16 KiB, redacted like pre-rollout logs: known secret values, password=…-style pairs, token-like strings); the failed Job and its pod are kept until the next build of the same branch (or, for a composition, of the same cache) replaces them; the controller status shows failure.log_tail (scrubbed, at most 4000 characters) and failure.kept_job.

  • Fix: the deployer ClusterRole piceli-gitops-deployer reads metrics.k8s.io pods and nodes (get, list, watch), so a release can create a Role that grants them without an escalation refusal, and updates the scale subresource of Deployments and StatefulSets (get, update, patch) for restore points.

  • Fix: after a partial apply the controller (single repository and composition) no longer retries the stale approval until it fails (env-plan-changed): it plans again, applies when the auto-approve policy covers the new plan, and otherwise waits in approval-required with the new hash.

  • Fix: piceli gitops enable with changed settings (a new --builder-image) restarts the controller: its pod template carries the configuration’s hash (piceli.io/config-hash). piceli cluster init keeps the --cluster-rbac rule gitops enable added to ClusterRole piceli-gitops instead of removing it.

  • Fix: deleting a branch removes its environment again: the controller’s ClusterRole piceli-gitops may get, list and delete PersistentVolumes (a teardown removes the volumes bound to the environment’s claims; listing them was refused with HTTP 403 and the teardown looped on env-cluster-unavailable). A refused Kubernetes request now names its verb, resource and namespace in the message, the log and the status (failure.denied), never the server’s answer.

  • Fix: pre-rollout checks of a first install no longer always fail prerollout-failed. A Secret or ConfigMap the release itself creates did not exist yet and was mounted optional; the check now reads a labelled copy with the release’s real values (piceli.io/pre-rollout: staged), created just before its Job and deleted with it (or by the next run after an interrupt), listed under staged in the stage output. The release’s own objects are still created only by the approved apply; when the values cannot be read the reference stays optional and unverified.

  • Fix: Checks.http and Checks.metric reach their target through the API server proxy (services/NAME:PORT/proxy, or a ready pod’s pods/NAME:PORT/proxy for a Deployment) instead of kubectl port-forward, so they work in the controller image, which has no kubectl (check-forward-unavailable, FileNotFoundError). The identity needs get on services/proxy and pods/proxy; when the API refuses the proxy and kubectl is installed, the check falls back to the port forward. CheckContext.forward still uses kubectl; CheckContext.proxy_get is new. The fake API serves the proxy (FakeAPI.proxy, forbid_proxy).

  • Fix: an environment with a Stack runs only the pipeline checks of the workloads it deploys: a check whose Service or workload target the stack leaves out is skipped and listed as {"check", "target", "why": "not-in-stack"} under skipped in the plan’s and the run’s checks stage. Checks without such a target (python, pod/NAME) still run.

Version 0.14.1

  • Fix: the GitOps controller’s copy of third-party images and the cluster build Job’s push reach Registry.in_cluster(...) by its Service name (piceli-registry.piceli-system.svc:5000) over plain HTTP. Plain HTTP was refused (plain-http-refused) everywhere but loopback; it is now allowed to loopback and to the in-cluster Service the endpoint names, never to another host (also not through a redirect).

  • Fix: the GitOps controller no longer exits on a failed poll (an API timeout made its pod crash-loop): it logs the error type and retries after 5 s, doubling to at most 5 minutes; a successful poll restores the cadence.

  • Images: each release publishes ghcr.io/pynenc/piceli-controller and ghcr.io/pynenc/piceli-builder (linux/amd64 and linux/arm64), built from the released wheel with images/Dockerfile; the release notes list their digests for gitops enable --image/--builder-image.

Version 0.14.0

  • Web UI: a Cluster status page presents nodes, registry pods and storage, mirror restart state, controller and UI health. Named environment headers review the exact approval hash, published promotion ref and idle-stop Wake request. Local piceli ui serve --profile NAME shows and switches saved profiles through a fresh session; no credential material reaches the browser.

  • Credential profiles: piceli login NAME --kubeconfig FILE [--context C] stores a profile (the kubeconfig path and context, never its contents or a token; $PICELI_PROFILES_DIR, default ~/.config/piceli/profiles, mode 0600); piceli profiles [--json] and piceli logout NAME list and forget it. Target.profile("NAME", namespace=…) and credentials = "NAME" in [target] resolve it when the target is used, so no machine path is in Git (the plan hash covers the name; Target.kubeconfig hashes are unchanged); inside a cluster the name resolves to the service account. --profile NAME replaces --kubeconfig/--context on every command that takes them and the declared credentials on deploy, release, status, access, env and logs. New codes profile-not-found, profile-invalid, profile-conflict.

  • Named environments: EnvConfig(environments=[Environment(name, namespace, follow=Branch("main") | Tag("v*-rc*") | Promote(), stack=…, on_nodes=…, quota=…, auto_approve=False)]) (from piceli.envs import Environment; Branch, Tag, Promote, Stack are also exported by piceli) declares long-lived environments with their own trigger: the GitOps controller evaluates each one independently (every push to a followed branch, the latest new matching tag, piceli promote ENV BRANCH@SHA), so one branch can feed two environments. gitops enable reads them from the working tree (--root) into the controller config (covered by the install hash). piceli env up NAME deploys one (creating its namespace when absent); env commands never delete, stop or seed it; piceli envs lists it ("fixed": true). A 0.13 main_namespace stays the implicit main environment (tags and promotions); an environment named like main_branch replaces it. New codes gitops-promote-not-allowed, env-stack-unknown, env-stack-incomplete, env-nodes-conflict.

  • Stacks and placement: Stack(name, workloads=[...]) renders only a subset of the app’s workloads (Environment(stack=…), EnvConfig(branch_stack=…)); on_nodes=[...] (or a {label: value} selector; EnvConfig(branch_nodes=…) for branches) places every workload of the environment.

  • Branch claims: in a branch environment an ExistingClaim with a size in claim_sizes becomes a claim the environment owns (empty or seeded with seed_from, deleted with the environment); main and named environments keep ExistingClaim semantics.

  • Idle stop: EnvConfig(idle_stop="24h") makes the GitOps controller scale a branch environment without a push for that long to zero (status stopped, reason idle-stop); the next push starts it again. piceli.envs.env_stop does it by hand with a planned env_hash.

  • Plan hashes, EnvConfig.describe() and the controller config of 0.13 declarations are unchanged when the new fields are unused (tested).

  • Compositions (preview): a module (infra.py) with environments = [...], piceli.infra.Source(url, name=) repositories, Component(name, source=) whose contract is [component.<name>] in the source’s piceli.toml at the environment’s commit (build rust, python, files or dockerfile; image base pinned by digest, user, dirs; ports; health ready/check; upgrade_check; volumes retained or scratch; needs with ?, secret:, component:; settings; emits; see docs/components.md), Component.image(ref, pin=) for third-party images (mirrored into the in-cluster registry, never pulled from a hosted registry at run time) and Stack(name, [components]). Environment(follow={source: "main" | Tag(...) | Promote()}, cluster=, secrets=, settings=) follows several sources; Environment.per_branch(Branches("wp-*"), namespace="app-{branch}", ...) declares the branch environments. New codes composition-invalid, component-contract-invalid, component-contract-missing, component-need-unmet, component-build-unsupported, component-build-failed, composition-ref-unresolved.

  • Python compositions: Environment(pipeline=PIPELINE) and Environment.per_branch(..., pipeline=PIPELINE) deploy a Pipeline’s app (its workload Stack, checks, rollback and approval policy) instead of contract components; mixing it with Components, settings= or secrets= is refused (env-config-invalid). The composition repository is a source too: piceli gitops enable infra.py records it (--repo, default the origin remote of --root; branch --main-branch, default main) when an environment deploys a pipeline, and the controller imports the module at the followed commit; a change there re-renders every environment. See docs/compositions.md; piceli.toml stays the optional path for simple components.

  • Host build contexts from sources, change-aware per image: in a pipeline environment, [context.X] source = "X" reads the composition’s Source X at the environment’s revision, fetched by one build Job with the one Git Secret (piceli build job-run --sources --spec SOURCE/PATH --image JSON). [[output.image]] contexts = [...] (new, optional, default every context; absent from the spec digest when not declared) lists what an image reads; its change key is its output table, the [build] table and the Git blob ids of the files its contexts include. No changed key, no build; otherwise only the changed images take the new image, the others keep their digest and apply as no-op. Third-party images of Registry.in_cluster(mirror=[...]) (and the pipeline’s own mirror=) are copied into the in-cluster registry at sync. Status: envs.<env>.components.<image> (with an additive sources) and controller.composition_repo.

  • Many sources, change-aware builds: piceli gitops enable infra.py installs the controller for a composition (its plain-data form is in the config, so the plan hash covers every rule). It polls every source with one Git Secret, resolves each environment to one commit per source (its revision), builds per component in one build Job that fetches every needed source (piceli build job-run --sources --component), cached by the component’s source digest (its build recipe and the Git trees of the paths it reads): unchanged components keep their image and apply as no-op, only changed ones rebuild and roll. piceli gitops run --local-build builds on the machine running it instead. The status adds sources, envs.<env>.revision and envs.<env>.components.<name> (additive).

  • piceli gitops sync [ENV] [--component NAME]: a sync request (ConfigMap piceli-gitops-requests, kind sync): deploy now at the current revision; --component rebuilds that component (a composition controller). gitops enable takes --repo only for a pipeline.

  • In-cluster registry (preview): Registry.in_cluster(on="NODE", storage="20Gi", port=5000) is a delivery target every node pulls from by one stable name, piceli-registry.piceli-system.svc:5000/<app>/<image>@sha256:…. piceli registry install plans (exit 3) and with --approve HASH installs a registry Deployment pinned to the node (retained claim), a Service and a node agent DaemonSet that writes the containerd mirror certs.d/<host>/hosts.toml on every node (pointing at the Service’s ClusterIP, plain HTTP for that host only); piceli registry status shows the pod, each node’s mirror and the storage use; piceli registry uninstall keeps the namespace and, without --delete-storage, the data; piceli registry forward keeps a push port-forward open. piceli deploy pushes through a port-forward to the Service, cluster builds and the GitOps controller push by cluster DNS, env push records the stable pull reference; the plan shows the registry and refuses with cluster-registry-not-installed/cluster-registry-not-ready until it serves. Plain HTTP is now also allowed to name.namespace.svc registry hosts (never resolvable outside a cluster). 0.13 plan hashes are unchanged. New codes cluster-registry-invalid, cluster-registry-target-required, cluster-registry-cluster-failed, cluster-registry-plan-changed, cluster-registry-not-installed, cluster-registry-not-ready. See In-cluster registry.

  • Cluster init: piceli.infra.Cluster(name, api=, credentials=, nodes=[Node(name, arch=, roles=[…])], storage_class=, registry=Registry.in_cluster(on=), controller=Controller(on=, poll=), ui=Ui(access="forward")) declares a cluster (values checked at import, cluster-invalid). piceli cluster init MODULE:ATTR plans (exit 3) and, with --approve HASH, labels the nodes (piceli.io/role-<role>=true, piceli.io/builder=true for builder, piceli.io/runtime from the node’s runtime; only labels it set are ever removed), installs the in-cluster registry with its node mirrors, the GitOps controller’s namespace, identity, RBAC and state claim (gitops enable adds the Deployment; InstallSettings(node=) pins it), the UI (after the controller’s objects), and the ConfigMap piceli-cluster with the declaration. It reaches the cluster with the credential profile and refuses one whose server is not api (cluster-api-mismatch). Idempotent. piceli cluster status MODULE:ATTR [--json] reports nodes (roles, ready, mirror {kind, state}), registry, controller (health, last_poll), UI (health) and the Git Secret. New codes cluster-invalid, cluster-not-found, cluster-load-failed, cluster-api-mismatch, cluster-api-failed, cluster-node-missing, cluster-node-arch-mismatch, cluster-plan-changed, cluster-not-initialized. See Cluster init.

  • Git token: piceli secrets git --cluster MODULE:ATTR --prompt [--username U] reads the token from stdin (no echo), refuses one given as an argument or in PICELI_GIT_TOKEN without echoing it, writes the Secret piceli-system/piceli-build-git (username, password) the controller and build Jobs use, and prints names only. New codes secrets-token-refused, secrets-prompt-required, secrets-token-empty, secrets-invalid.

  • k3s node mirrors: Registry.in_cluster(node_mirror="auto"|"k3s"|"containerd") (default "auto"; mirror= stays the list of images to copy). On k3s nodes a second agent (piceli-registry-mirror-k3s) merges the mirror into /etc/rancher/k3s/registries.yaml between marker comments (other entries and the file’s mode kept; a flow-style or JSON file is left alone, unmergeable) and writes k3s’s certs.d, so it works without a restart and survives one; it never restarts k3s and reports restart: needed on a k3s whose containerd does not read certs.d. "auto" picks per node (piceli.io/runtime, else node.kubernetes.io/instance-type=k3s). piceli registry install --node-mirror; registry status shows each agent’s runtime and restart need. Verified on a three-node k3s (k3d).

  • UI in the cluster: Cluster(ui=Ui(access="forward")) makes piceli cluster init install the Piceli UI in piceli-system (piceli.infra.ui_install.render_ui(cluster)): one Deployment running piceli ui forward-serve from the digest-pinned Ui.image (else the controller’s image) on Ui.on (else the controller’s node), a ClusterIP Service only (no NodePort, Ingress or OIDC) and a service account that reads the controller status, the environments’ workloads, pods and logs (never their Secrets or ConfigMaps) and writes only the GitOps request inbox and its own launch Secret. piceli access ui --cluster MODULE:ATTR (or --profile NAME) forwards 127.0.0.1:8790 to it and prints the one launch URL. Views: Environments (revision per source, health, state, last sync), an environment’s components (source, commit, digest, synced/building/rolling/failed/unchanged, health) with a link to its workloads and logs, Sources (URL without credentials, refs, last poll) and a Sync button per environment and per component (the piceli gitops sync request). New API routes GET /api/v1/composition, GET /api/v1/composition/environments/{env}, POST /api/v1/composition/sync (additive). New codes ui-controller-absent, ui-sync-target-unknown, ui-sync-unavailable, ui-install-image-unpinned, ui-install-node-unknown, ui-install-access-unsupported, access-ui-target-required, access-ui-cluster-invalid, access-ui-not-declared, access-ui-not-installed, access-ui-not-ready, access-ui-forbidden, access-ui-unreachable. See Piceli web application.

Version 0.13.0

  • Piceli as the GitOps controller (experimental): piceli gitops enable deploy/app.py:pipeline --repo URL --branches 'main,wp-*' --image REPO@sha256:… plans (exit 3) and, with --approve HASH, installs a one-replica controller in piceli-system: a ServiceAccount with a namespaced Role, a ClusterRole limited to reading nodes, managing namespaces and binding only the piceli-gitops-deployer role in each environment’s namespace, a state claim (Git mirror, last-seen commits, receipts) and a Deployment running piceli gitops run from a digest-pinned image. It polls the repository (--poll, no webhook) and keeps one environment per matching branch at its head: builds in the cluster (--builder-image) or uses the digest piceli env push recorded for that commit, then deploys when the plan is inside the pipeline’s auto_approve policy, else waits with the plan hash for piceli gitops approve ENV HASH. Main deploys only on a new v* tag or piceli promote BRANCH@SHA, always with a hash approval unless the owner passed --main-auto-approve; an untagged push to main does nothing. A deleted branch tears its environment down (never main’s). One step at a time, bounded retries with backoff, a failing branch never stops the others. Git credentials come only from a mounted Secret (--credentials-secret) and are never printed. piceli gitops status [--json] (health, last poll, per-branch commit, state and pending hash; also published in the ConfigMap piceli-gitops-status for piceli envs) and piceli gitops disable (never removes an environment). piceli.gitops becomes a package (the handoff API is unchanged). New error codes gitops-*. See Piceli’s own GitOps controller.

  • Per-branch environments (experimental): Pipeline(envs=EnvConfig(prefix= "shop-", branches=["main", "wp-*"], max_envs=3, quota=…, claim_sizes=…, seed_from=…, auto_approve=…)) runs one namespace per Git branch (<prefix><slug>, at most 63 characters with a hash suffix; main maps to its own namespace, never created, stopped or deleted). piceli env up BRANCH plans (exit 3, env_hash) then deploys the branch with the digests given (--digest, --receipt, or those piceli env push recorded), isolated at render time: Services by relative name, no NodePort, hostPort or hostPath, namespace-qualified cluster objects, its own state and generated Secrets, a default-deny NetworkPolicy across namespaces and a ResourceQuota (env-isolation-* codes otherwise). Branch claims use claim_sizes and start empty; piceli env seed (or --seed-from main) restores main’s latest restore point into them. At most max_envs branches run: one more stops the least recently pushed (scaled to zero), or --wait refuses (env-budget-full). piceli env down deletes the branch’s claims, namespace and volumes (never main’s). piceli envs [--json] lists branch, namespace, commit, build and deploy state, health, age and last push (with the GitOps controller’s view), piceli logs ENV WORKLOAD [-f] and piceli access ENV --pipeline … (free local ports). Python API piceli.envs (env_up, env_down, seed_env, list_envs, namespace_for); the GitOps controller deploys and tears down through it. plan_restore(..., source_namespace=) restores a point into another namespace. Plans of pipelines without envs keep their hashes.

  • Builds in the cluster (experimental): piceli build job MODULE:ATTR --commit SHA --image BUILDER@sha256:… --repo URL (and piceli.artifacts.cluster_build.run_build_job) runs the pipeline’s host builds as a Job on a labelled amd64 builder node: Git credentials from a Secret (never printed), arm64 cross-built, the cache on a claim per branch and page size, images pushed by digest to the node registry, the receipt of a local host build plus delivered and job. Plan first (exit 3, plan hash), then --approve HASH; new errors cluster-build-invalid and cluster-build-failed. piceli env push BRANCH MODULE:ATTR --receipt FILE (or --digest IMAGE=sha256:…) records a laptop-built digest in the ConfigMap piceli-env-<branch> of the branch’s namespace (env-push-invalid).

  • Fixed, B25: an env var named like a token or secret whose value is a file path (an app pointing at a mounted token file) is a plain value: it is no longer redacted into a refused apply (unresolved private or redacted manifest). Inline secret values are still redacted.

  • Fixed, B22: a host build no longer needs the cluster API for node facts: the last successful read is cached per node in the state directory and used (and reported, with its age) when the API is unreachable, and Build.spec(..., node_facts={...}) declares them. The plan hash covers the facts used.

  • Fixed, B28: the shared host-build target directory is per architecture and page size (<cache>/target/arm64-16384), so builds for 4 KiB and 16 KiB pages no longer rebuild jemalloc and everything above it; the first build after upgrading compiles once more.

  • Registry retention from the CLI (experimental): piceli artifacts retention --to oci://host[:port]/prefix --receipts … reports which manifests a registry keeps (the last --keep N releases, per image, of the publish and delivery receipts (<state_dir>/deliveries/), --pin digests, the digests running pods use, the children and referrers of those, tagged manifests no receipt mentions) and which are collectable, with the deduplicated bytes they free. --budget 10GiB keeps more releases newest first while the kept bytes stay within it, never fewer than --keep. --delete prints the plan and its hash (exit 3); --delete --approve HASH deletes exactly that list by digest through the registry API, refuses (retention-not-approved) when the plan changed, never deletes a digest a workload uses (running pods and the pod templates of Deployments, StatefulSets, DaemonSets, ReplicaSets, Jobs and CronJobs, so scaled-to-zero workloads and CronJobs between runs are safe; the output says which kind keeps each digest), and needs a live source (--kubeconfig/--context or --live-file, else retention-live-unknown). A registry that refuses deletes is registry-delete-disabled. Blob space is freed by the registry’s own garbage collection (without --delete-untagged). The registry client gains list_repositories, list_tags and delete_manifest. New error codes retention-* and registry-delete-disabled. See Registry retention.

  • Machine-wide lock for heavy work (piceli heavy): piceli heavy run [--name N] [--wait SECONDS] -- COMMAND... runs a command under an OS-level lock (flock in a per-user state directory, released by the OS when the holder dies) so heavy runs of several agents serialize, prints who holds the lock while it waits, forwards SIGINT/SIGTERM/SIGHUP, exits with the command’s code and writes a receipt (redacted command, cwd, git commit, times, duration, exit code, peak memory; newest 100 kept). piceli heavy status [--json] shows the holder and recent receipts. With PICELI_HEAVY_LOCK=1, host builds and Docker Build.spec runs take the same lock. New error codes heavy-lock-timeout, heavy-command-empty, heavy-command-missing (A machine-wide lock for heavy work).

  • Web UI: the optional piceli[ui] extra adds a bundled web application. See Piceli web application for local and installed setup, environment controls and the security model.

    • piceli ui serve runs a loopback UI for explicit inventory scopes and existing release definitions: isolated source evaluation, exact source and plan approvals before a durable release run, Activity replay, Resources with observations, owner relationships, current and previous container logs and supervised local port forwards. A one-time launch token grants the session; cookies are named per origin; forwards left by a crashed UI are stopped at the next start (--state-dir).

    • Apps that declare app.pre_rollout(...) include those checks in the reviewed release plan and run them before apply. A configured Pipeline can also run checks and restore points from the browser, using a second exact approval after image delivery when needed.

    • Branch Environments and GitOps pages reuse Piceli’s environment and controller APIs for status, exact-hash changes, pending approvals and promotion requests. Local branch scopes open Resources, logs and access. piceli ui backup and restore handle stopped private UI control state.

    • piceli ui cluster-observe offers authenticated namespace inspection and logs behind an HTTPS gateway with OIDC subject grants and a rotating projected service-account token. Configured cluster-serve grants permit exact-plan manual delivery and credential-free build Jobs. The UI Pod holds no registry or cluster-admin credential; the builder Job has its own ServiceAccount, Git Secret and cache PVC.

    • piceli ui connect takes an authorized one-time ticket from pending to a ready local forward, passes traffic and releases it on stop. An installed UI can recover operation records from its private PVC after a Pod restart, and its stopped state can be backed up and restored.

    • The installed OIDC journey, exact-plan deployment with pre-rollout check, build Job, restart recovery, backup/restore, revoked grants and renderer egress denial run in one disposable kind acceptance cluster. The former PICELI_UI_EXPERIMENTAL gate is no longer required.

    • make ui-fake-serve starts a disposable fake-API demo; make test-ui-fake runs the service and browser journeys.

    • Pipeline recovery propagates a stale or expired plan refusal instead of planning and applying another digest; piceli access recognizes macOS framework Python executables when stopping its own stale server; a kubeconfig tokenFile credential is re-read before each API request.

Version 0.12.0

  • Grow or move a retained claim (preview): with Pipeline(restore_points=...), a release that asks for a larger claim (a larger ClaimTemplate size, or the new ExistingClaim(expand_to=...)) grows it in the deploy’s backup stage, after the restore point and with the writers stopped: the claim’s size is patched when its StorageClass allows volume expansion, and Piceli waits until the volume has grown. Otherwise the plan is refused with claim-migration-required and the declaration that moves the data: ClaimTemplate("data-2", size=..., migrate_from="data") or ExistingClaim("new", size=..., migrate_from="old"). A move creates the new claim (labelled piceli.io/migration=target, annotated piceli.io/migrated-from), extracts the restore point’s archive of the old claim into it, checks the content digest in the cluster and runs the workload’s restore_verify command on it read-only; the apply then switches the workload. On any failure before the switch the writers start again on the old claim. The old claim is kept (annotated piceli.io/migrated-to), never deleted. A smaller size is refused (claim-shrink-refused). The backup stage’s plan gains claim_changes (and the hash covers them only when present), the run summary’s restore_point gains claim_changes, and the fake API serves StorageClasses. New error codes claim-*. See Restore points of retained data.

  • Typed egress and namespace selectors in network policies: app.network_policy(…) takes egress=[…] (workloads of the app or NetworkRules with NetworkPeer.pods|workload|namespace|cidr peers, CIDR except, ports, protocols and end_port ranges), ingress=[…] with the same typed rules (namespace selectors for ingress too), allow_dns=True (NetworkRule.dns(): kube-dns in kube-system, port 53 UDP and TCP; a default-deny egress otherwise breaks name resolution) and an explicit policy_types, derived when omitted (egress alone renders Egress only). Policies without the new arguments render byte-identically. Invalid CIDRs, ports, empty selectors and unknown workloads are refused at build time (render-target-invalid, whose message names the problem). Proven on kind: a client reaches an allowed workload and not a denied one, and a replica pair is cut and healed. See Describe an app in typed Python.

Version 0.11.0

  • Prove a restore point without touching live data (preview): piceli restore MODULE:ATTR --point ID --to-new-claim (or --all for every verified restore point) restores into scratch claims instead of the live ones. The plan (exit 3, verify_hash) names one Piceli-owned scratch claim per restored claim, shaped like its source (storage class, size, access modes; pinned to the node of a node-local volume); with --approve HASH Piceli creates them, extracts each archive and checks its content digest in the cluster, then runs the command declared with app.restore_verify(workload, RestoreVerify([...])) in a Job with the workload’s current image and pod settings, the scratch copies mounted read-only at the workload’s paths. A receipt under <restore point>/verifies/ records PASS or FAIL per claim (exit 1 on any FAIL); the scratch claims are deleted in every case unless --keep. Writers are never stopped and the command’s output is never printed. Scratch claims carry app.kubernetes.io/managed-by=piceli, piceli.io/scratch=true and piceli.io/restore-verify=<id>, and Piceli deletes only claims with that label. New error codes restore-verify-* and restore-options-invalid. See Restore points of retained data.

  • Deploy events to OTLP (experimental): piceli deploy and piceli release apply|rollback can send one trace per run (a root span with a child span per stage) and one result log record (the dashboard marker) to an OTLP/HTTP endpoint, with app, namespace, run, release, plan hash, commit and ref, image digests, outcome and duration. Off unless --otlp-endpoint or OTEL_EXPORTER_OTLP_ENDPOINT is set; also reads OTEL_EXPORTER_OTLP_HEADERS, _TIMEOUT, OTEL_SERVICE_NAME, OTEL_SDK_DISABLED. Never fails a deploy: one bounded export at the end, a problem is one warning line (new codes deploy-events-export-failed, deploy-events-config-invalid). No secrets are exported and no OpenTelemetry package is needed. See Deploy events to OpenTelemetry.

  • piceli release orphans: report and prune leftover objects: lists the objects Piceli wrote (piceli.io/owner) that the selected release no longer declares (a removed component) or that belong to another environment of the same app (same ownership labels, another owner), with kind, name, matched label, reason and age. --prune deletes them only after approval of a plan hash over the exact set (UIDs and resourceVersions); a changed set is refused. PersistentVolumeClaims, Secrets, another owner’s objects and cluster-scoped objects are kept unless --include-claims, --include-secrets, --include-other-owners or --include-cluster-scoped. A prune waits (at most readiness_seconds) until each deleted object is gone; one still terminating (a claim a stopping pod still mounts) is reported deleting with its finalizers, not deleted. New error codes orphans-*. See Releases from a spec (piceli release).

Version 0.10.1

  • piceli status lists the StatefulSets of an app that pins a workload to a node: App.render treated the “any node” placeholder used for listing as an empty mapping, so the listing fell back to Deployments only.

  • Checks.python(callable) works in a Pipeline: the plan describes a callable by its entry (module:function), as public_dict does, so it plans and its hash is stable. A lambda, a local function or another callable without a module-level name is refused at declaration with the new error code pipeline-check-not-referenceable.

  • The text deploy plan shows the prerollout stage: one line per pre-rollout check (workload, command, upgrade claims, the Secrets and ConfigMaps it uses), as the JSON plan already did, so a reviewer approving the hash sees which checks will run.

Version 0.10.0

  • Helm chart and manifests for other people’s clusters (preview): piceli chart render|package|manifests|publish renders the same App (or Pipeline) as a Helm chart whose templates, with the default values, render the objects piceli render prints (plus the helm.sh/chart and app.kubernetes.io/managed-by labels), a byte-identical chart archive, an OCI chart in the helm push layout (approval by digest), or plain manifests with a values file applied and validated by Piceli. Values cover images (repository, tag, digest), imagePullSecrets, replicas, resources, node selectors, storage classes and sizes, existing claims, Ingress and HTTPRoute hosts, ConfigMap keys and Secret names; values.schema.json documents and validates them. Secrets are never rendered: the chart references existing Secrets by name. An unbuilt pipeline image is a required value. New error codes chart-*. See Publish for other people’s clusters: a Helm chart and manifests.

  • piceli release refuses an App with pre-rollout checks: only piceli deploy runs App.pre_rollout checks, so piceli release plan now refuses a composition that returns such an App (release-prerollout-unsupported) at plan time, before anything is written, instead of skipping the checks silently.

  • Multi-platform images from one spec (experimental): a host-build.toml declares build.platforms = ["linux/amd64", "linux/arm64"] (or piceli artifacts build-spec run --platform …, which now also runs host builds): one layer set, SBOM and provenance per platform, built with the platform’s facts, and one canonical OCI image index per image; one approval covers every platform. A single-platform build keeps its plan hash. New code build-platforms-invalid. See Publish images for other people’s clusters.

  • piceli artifacts publish (experimental): pushes a build’s images to a hosted registry for other people’s clusters: per-platform manifests by digest (only missing blobs; a second publish sends nothing), one image index, the SBOM and provenance as OCI 1.1 referrers (fallback tag on registries without the referrers API), optional cosign signatures (--sign-key, no transparency log) and the version tag last; a tag that names another image is refused (publish-tag-exists) unless --move-tag. Plan first (exit 3), --approve <digest> to push. Credentials from --credentials FILE or --docker-config (credential helpers). --values-out writes the images.<key>.{repository, tag, digest} values of the piceli chart Helm chart. New codes publish-*, sign-*, cosign-tool-required, invalid-docker-config, credential-helper-failed.

Version 0.9.0

  • Builds without a VM (experimental): Build.spec("host-build.toml", builder="host") builds with the host toolchain (for Rust cargo or cargo zigbuild for linux/arm64 from macOS), so Docker Desktop can stay closed. The stage is synchronised between builds (unchanged files keep their mtime), every host build of a cache shares one CARGO_TARGET_DIR, declared tools are pinned by sha256 and are the only programs a command may start, bases are pulled by digest, and each image file mapping is one deterministic layer, so a one-line change pushes one layer (plus the config) by digest. Each image gets an SPDX SBOM and an in-toto/SLSA provenance statement. The Docker builder stays the default. See Builds without a VM.

  • Target node facts: a host build’s plan reads its node’s architecture, kernel version and page size (label piceli.io/page-size, else the kernel release, else the architecture), shows them in piceli deploy --plan (stages.build.builds.<name>.node_facts) and covers them with the plan hash; {page_size_log2}, {rust_arch} and friends substitute into the build’s commands and env (for example JEMALLOC_SYS_WITH_LG_PAGE).

  • Pre-rollout and upgrade checks (experimental): App.pre_rollout(workload, command, upgrade=UpgradeCheck(...)) declares a check that piceli deploy runs before a workload changes: a Job with the new image and the workload’s real Secrets, ConfigMap and Secret mounts, environment, security context and service account (claims replaced by empty directories). The release proceeds only if it exits 0, so a bad Secret mount or an incompatible store fails the run with the pods unchanged. UpgradeCheck additionally opens the workload’s retained claims (one Job per StatefulSet ordinal) read-only, pinned to the node of the running pod for ReadWriteOnce claims. New prerollout deploy stage (only for apps that declare a check, after deliver; --until prerollout), shown in the plan with the Secrets and ConfigMaps the pod reads; planning refuses a missing Secret or key. Check Jobs are always removed (also on interrupt; a TTL covers a killed deployer); the run summary keeps the exit code and a scrubbed, bounded log tail. Declaring a check renders no object, so plan hashes of existing apps do not change, and the stage lists of apps without a check keep their six stages. piceli.testing.FakeAPI.job_result(...) decides how check Jobs end in tests. See Pre-rollout checks.

  • Restore points of retained data: Pipeline(restore_points=RestorePoints()) adds a backup stage before the release plan. When a release changes the image or storage settings of a workload that writes a retained claim, the plan lists every such claim (one per StatefulSet replica, existing claims) with the reason and the writers to stop; the run runs the quiesce hooks declared with app.quiesce(workload, Quiesce.exec(...) | Quiesce.http(...)), scales the writers to zero, waits until no pod (terminating ones included) mounts the claims writably, streams a gzip tarball of each claim from a read-only helper Job to a private local directory and verifies it (SHA-256, listing, content digest computed in the cluster). The result and the run summary gain restore_point. piceli restore-points lists and verifies them offline; piceli restore --point ID plans and, with --approve <restore_hash>, puts one back. Pipelines without restore_points are unchanged (no backup stage, same hashes); the deploy, watch and summary schemas add the backup stage name (additive). New codes restore-point-*, restore-plan-changed. Restore point archives never enter a state snapshot. See Restore points of retained data.

  • Stage order: a run’s stages are inputs, build, deliver, prerollout, backup, plan, apply, checks, each optional stage present only when declared. A new image passes its pre-rollout checks (including the read-only upgrade check next to the running writer) before any writer is stopped for a restore point, and the restore point is taken before the release plan. Pipelines that declare neither keep their six stages and their plan hashes.

  • New error codes: prerollout-mount-missing, prerollout-claim-exclusive, prerollout-failed, prerollout-timeout, prerollout-not-startable, prerollout-unavailable.

  • New error codes: node-facts-unavailable, node-page-size-invalid, node-platform-mismatch, host-tool-missing, host-output-missing, host-build-invalid, base-image-invalid, base-image-unavailable, base-platform-unavailable, base-layer-unsupported, build-builder-mismatch. The deploy plan’s docker builds gain an additive builder_kind: "docker" field; hashes of existing plans do not change.

Version 0.8.1

  • Fix (builds): staged build-context files now get a modification time derived from their content hash instead of source_date_epoch, so a same-size edit is no longer hidden from mtime-based tools (Cargo on a cached target/) and the manual source_date_epoch bump is not needed. source_date_epoch still fixes the image metadata. Plan hash and receipts are unchanged.

  • piceli watch: follow a deploy run from its journal, read-only and offline. --json prints JSON lines (piceli.watch-event.v1, see docs/schemas/piceli-watch-event-v1.schema.json): a snapshot, then stage, progress and run events, then the result (state, failure reason, resumable, summary paths). Exit 0 ready or stopped, 1 failed, interrupted, rolled back or --timeout, 2 no run. New codes watch-no-run, watch-timeout. The run journal gains progress (the newest 200 progress lines); existing outputs are unchanged.

  • Fix: piceli deploy --resume reports the resumed run’s own outcome: the run record, summary.json and piceli runs drop the reason and message of the earlier failure or interruption once the stage succeeds.

  • Fix: piceli access follows the live owner of a forward during a rollout: it connects to the newest Ready, non-terminating pod of the Service or Deployment and reconnects (without a restart or a failure) when that pod is replaced. Each status event adds pod (additive; null when unknown).

Version 0.8.0

  • Build.spec(path, platform=...): build a spec for another platform than its platforms (for example linux/amd64 for a published arm64 example), as part of the plan hash; the post-build spec re-check applies the same override. The kind tests use it to build for the node’s platform, so they pass on amd64 CI runners as well as arm64 machines.

  • Fix: piceli deploy MODULE:ATTR --plan refused for adoption or replacement now suggests what piceli deploy can act on: each blocking[].suggest entry names the Pipeline declaration (Pipeline(adopt=["Deployment/web"]), Pipeline(replace=["Deployment/web"])) instead of the --adopt/--replace flags of piceli release, which deploy does not take; the refusal’s sentence says the same. blocking[].code and message are unchanged, and piceli release keeps suggesting its flags. Consumers that matched the old --adopt … strings for a deploy must match the new ones.

  • Fix: piceli deploy rejections and failures carry the contract’s message (the sentence stderr shows first) next to reason; the piceli.deploy-event.v1 schema documents it.

  • Fix: a model module that raises no longer breaks the output contract with a traceback. piceli render rejects with render-target-invalid (exit 2, one JSON object whatever --format says) when the target, or the spec’s composition, raises while importing or evaluating (a duplicate name, a wrong keyword, any exception); the message is importing|evaluating TARGET failed: Type: text. release … --spec release.toml rejects the same case with invalid-composition (a composition module that raised ValueError while importing was release-refused). deploy and release --spec MODULE:ATTR (pipeline-load-failed), status and access (access-target-invalid), and the new publish, render --out (render-target-invalid), runs, cache and doctor (pipeline-load-failed) put the exception’s type and text in message too. PICELI_DEBUG=1 prints the traceback on stderr.

  • Fix: another process’s command line is no longer printed in port conflicts (access-port-conflict, the dashboard port, observe/dashboard forward conflicts): its pid only, as piceli status already did (owner.command and owner.parent are null for it).

  • Fail fast with causes: while an apply waits for a workload, Piceli watches the pods of the revision being rolled out. CrashLoopBackOff (Init:CrashLoopBackOff), ImagePullBackOff, ErrImagePull, InvalidImageName, CreateContainerConfigError, CreateContainerError, RunContainerError, [execution] crash_restarts restarts (default 3), a failed Job or Pod fail the apply at once with apply-crashloop (pipeline-apply-crashloop from piceli deploy) instead of at readiness_seconds. The result adds diagnosis (piceli.diagnosis.v1: per workload, each container’s reason, exit code, restarts, last 20 log lines and latest events, redacted against the release’s secret store and secret-looking text) and stderr prints one line per cause; an apply that times out reports what its pods show too. execution.causes (compact, no logs) is added to results and release status. [execution] fail_fast = false restores waiting for the deadline. Not rolled back automatically, as for any apply that does not become ready.

  • piceli release status --spec … --run ID (and piceli explain --run ID --spec …) shows one past execution, by execution id, unique prefix or piceli deploy run id, with the causes recorded in the journal (unknown-execution otherwise).

  • Own stale processes: piceli access recognises a port held by Piceli’s own process for the same app (its kubectl port-forward, supervised or orphaned, or piceli access / observe serve / operator serve for the same target), says so and suggests the new piceli access stop --stale TARGET [--port N], which stops only those processes. Conflicts add holder (piceli-forward, piceli-server, other, unknown).

  • piceli.testing: FakeAPI.fail_pods(...), pod logs and events, and ReplicaSets in the default TYPES.

  • Temporary files are always removed: every temporary directory Piceli creates (generated TLS keys, OCI layouts, build staging, --ref worktrees, local image imports, state archives, SQLite snapshot copies) is named piceli-<purpose>-*, owner-only, and removed on success, error, Ctrl-C and now also on SIGTERM/SIGHUP (the piceli entry point removes live ones before the signal’s default action; an atexit hook catches threads). A failed write of the release catalog, a delivery receipt or a build output no longer leaves a partial file. The SQLite snapshot copy was named .snapshot-*; it is piceli-snapshot-* now. The test suite fails when any test leaves a temporary file behind.

  • piceli cache status [--json] and piceli cache prune [--keep-last N] [--budget 20GiB] [--dry-run] (preview): disk used per state directory (each environment’s too) and category (builds, toolchains, blobs, receipts, runs, release, other, temp) and by stale temporary directories; a prune that never removes the release state, the secret store, approved plans, build or mirror receipts, the latest or a resumable run, or the runs of the last N applied releases, under the state directory’s run lock. With shared state only machine-local files are pruned. Pipeline(cache_budget="20GiB") prunes after every run; the deploy result adds cache. New codes cache-budget-invalid, cache-over-budget, cache-arguments-conflict. See docs/maintenance.md.

  • piceli doctor [--json] (preview): free disk and memory against what the next build needs (from the last build receipts) and the tools the pipeline uses (docker, docker buildx, kubectl); exit 1 with runner-disk-low, runner-memory-low or runner-tool-missing.

  • Run summaries (preview): every deploy run writes <state_dir>/runs/<id>/summary.json (piceli.run-summary.v1, docs/schemas/piceli-run-summary-v1.schema.json) and summary.md when it ends, whatever the outcome: commits and refs, image digests, sizes and reused blobs, plan action classes and counts, changed objects with their changed field paths, checks, the failure’s code and message (with the compact causes of a workload that cannot start), approved_by: "policy" when the owner’s approval policy approved the run, stage timings; never secret values or log lines. The deploy result adds summary, and the journaled plan stage output adds diff (changed field paths). piceli runs [--json] lists the runs. The CI recipe posts summary.md as the job summary of apply and resume and keeps summary.json in the artifact (docs/ci.md also shows a pull request comment).

  • Build receipts record each image’s engine size (size_bytes).

  • Owner-declared approval policy: Pipeline(..., auto_approve=ApprovalPolicy(allow=…, deny=…, max_objects=…)) and [release] auto_approve = {...} declare which plans may run without the owner approving the hash; piceli deploy --approve-if-policy and piceli release apply --approve-if-policy run a plan only when every action is inside it, and otherwise exit 3 with approval-policy-exceeded, the violations and the usual approval command. delete, replace and adopt are never inside a policy; cluster-scoped objects and drift need an explicit allow. The policy is part of the combined hash and of the release plan hash (plans without one keep their hashes); there is no flag that sets or widens it. A deploy approved by the policy re-checks the release plan made after delivery and records "approved_by": "policy". New codes approval-policy-invalid, approval-policy-missing, approval-policy-exceeded, approve-if-policy-flags-conflict; the deploy event schema adds policy and approved_by, and release plan changes gain cluster_scoped in stages.plan.changes.

  • Agent skill: skills/piceli (SKILL.md, an example App and Pipeline, and scripts to check the install, plan and ask the owner, deploy with the approved hash or the owner’s policy, check status, diagnose with piceli explain, resume and roll back). CI copies the skill alone and runs its walkthrough against the built wheel and the fake API (make skill-check); tests/integration/test_skill_kind.py runs it against examples/shop on a disposable kind cluster.

  • GitOps handoff (preview): piceli publish MODULE:ATTR [--env E] --to oci://registry/repo[:tag] packages the rendered manifests as an OCI artifact in the flux push artifact layout (config application/vnd.cncf.flux.config.v1+json, one application/vnd.cncf.flux.content.v1.tar+gzip layer), with a deterministic digest; it prints the digest and exits 3, and pushes by digest (then the tag) only with --approve <digest>. piceli render --out DIR writes the same files for a Git directory. A Secret is refused unless --secrets external leaves Secrets out; redacted values and placeholder images are always refused. New codes gitops-* and render-out-refused. Flux and Argo CD examples in docs/gitops.md; a kind test has Flux reconcile a published artifact.

  • Docs: when to use Piceli, and comparisons: docs/when_to_use.md (use it when / don’t) and docs/comparisons.md: one app written with Piceli, Helm, Kustomize, cdk8s and Pulumi (examples/comparisons/<tool>, pinned versions), with files, lines, steps and safety features compared and where the others are better. A new CI job (comparisons) renders every version for dev, staging and prod and checks that it equals piceli render.

  • The README quick start is examples/readme/app.py and examples/readme/commands.sh, included verbatim (scripts/readme_examples.py check, also a pre-commit hook) and run against the fake API in tests/acceptance/test_readme_quickstart.py; the getting-started page includes the same file.

  • Public documentation links (README, llms.txt, package metadata) point at /en/stable/; pages not yet in the stable release keep /en/latest/.

  • piceli.testing.FakeAPI(namespace=...) serves another namespace than TARGET.namespace, so an app that names its own namespace runs against the fake API unchanged. fail_pods creates its pods, logs and events in that namespace.

  • Cross-model eval (experimental, contributor tooling): evals/ measures how language models install, implement, operate and recommend Piceli: fixed tasks (install; a web app with a Deployment, Service, HPA and PostgreSQL StatefulSet; a staging environment; a piceli.testing test; deploy with the owner’s approval, diagnose a refused plan, roll back) and four discovery prompts that do not name Piceli. Answers run in a sandbox (empty HOME and KUBECONFIG, no inherited credentials, loopback-only network) against piceli render and the fake Kubernetes API, and are scored for task success, wrong Python API and CLI use (against a snapshot of the public API and piceli help-json), safety violations (default kubeconfig or context, --auto-approve, --allow-exec, printed or hardcoded secrets: a hard fail), interventions and recommendation rate. Anthropic, OpenAI and Gemini models via environment keys (skipped without them, never printed); mock models validate the harness (make evals-check, run in CI), and the committed 0.7.0 and 0.8.0 baselines are harness validations, not model measurements. --approve-if-policy is not scored as approving on the owner’s behalf (the owner’s reviewed policy decides); a captured piceli publish digest is. See docs/contributing/evals.md.

Version 0.7.0

  • Reference app: examples/reference/app.py deploys a realistic app to dev, staging and prod from one typed module (StatefulSet with claim templates, Job and CronJob, HPA and PDB, HTTPRoute, a cert-manager Certificate typed by piceli codegen crd, a release-wide NetworkPolicy, RBAC, restricted pods, a SOPS-encrypted password and checks), with render, fake-API and kind tests; walkthrough in docs/reference_app.md.

  • Environments: autoscalers={name: Scaling(min_replicas=…, max_replicas=…, cpu=…, memory=…)} changes an autoscaler per environment (the replicas= refusal pointed at a fix no override could express), and a resources= override that drops a request an autoscaler’s utilization target needs is refused (environment-invalid).

  • --diff-env no longer reports the namespace inside RBAC objects (binding subjects, <namespace>:<app>:<name> ClusterRole names) as a difference.

  • Checks.exec(...) with a StatefulSet or DaemonSet handle targets statefulset/<name> or daemonset/<name> instead of deployment/<name>; a Job or CronJob handle is refused.

  • An environment’s replicas= on a workload an autoscaler targets is refused (environment-invalid) instead of being ignored.

  • External secret sources (preview): three new [secrets.*] types, and Sops, Vault and AwsSecret for piceli.pipeline.Secrets: sops (one value of a SOPS-encrypted file, or the whole file, decrypted by the sops binary with an explicit argv, a minimal environment plus pass_env, a timeout and an optional sops_sha256 pin), vault (one key of a HashiCorp Vault KV v2 secret over verified TLS, token from token_file or token_env, namespace, version, ca_file) and aws-secrets-manager (a secret or one JSON key, through botocore; new extra piceli[aws]). They are read at every plan and diff; each value is reduced to an HMAC-SHA256 under a private key (state_dir/secret-sources.key) that is part of the release fingerprint, so an unchanged value re-plans the same release and a changed one creates a new release with a new private version (new plan origin fetched; the others are carried:<release>). A refused plan stores nothing, and values never reach plans, journals, receipts, logs or errors. --rotate refuses an external source (rotate it at the source). New codes secret-source-auth-failed, secret-source-not-found, secret-source-tool-missing, secret-source-timeout and secret-source-failed. Specs without external sources keep their release names; secret show --json adds source for them.

  • Custom resources and any other kind (preview): app.resource(api_version, kind, name, spec, *, fields=, scope=, public=, labels=, annotations=, component=) declares one object of any kind with a typed spec (a pydantic model, validated at declaration) or a JSON mapping; it renders by alias with only the fields that were set, joins components, depends and override like other declarations. Cluster-scoped resources follow the per-namespace ownership rules of ClusterRoles (no namespace, piceli.io/namespace annotation, never another namespace’s objects); a release now manages any such annotated cluster-scoped kind except Namespace, CustomResourceDefinition and PersistentVolume. A declared scope that the server’s discovery contradicts is refused at plan time (resource-scope-mismatch). See docs/crds.md.

  • piceli codegen crd (preview): generates a deterministic module of frozen pydantic models (<Kind>Spec with API_VERSION, KIND, SCOPE) from a CRD’s structural OpenAPI v3 schema, from a file or with --from-cluster --kubeconfig F --context C --crd NAME; --out replaces only files it generated. A small in-house generator (no new dependency; it understands x-kubernetes-int-or-string and preserve-unknown-fields). New codes: crd-invalid, crd-not-found, codegen-flags-conflict, codegen-output-refused, codegen-cluster-read-failed. Pinned cert-manager Certificate and Prometheus-operator ServiceMonitor CRDs are vendored in tests/fixtures/crds/ with their source and licence.

  • Environments (preview): app.environment(name, ...) declares typed overrides (replicas, images, container resources, config values, hosts, node selectors, resource specs, enabled components) checked against the declared objects; app.for_environment(name) returns the derived App. piceli render --env NAME renders one environment and --diff-env OTHER prints their typed difference (text, or JSON with --format json). Pipeline(app, {"dev": Target…, "prod": Target…}) deploys each environment to its own target with its own state (state_dir/environments/NAME); piceli deploy --env and piceli release … --spec MODULE:ATTR --env select one, and the combined hash covers the environment’s name and resolved values. JSON adds environment (render, deploy result) only with --env. New codes: environment-unknown, environment-required, environment-invalid, environment-unsupported. See docs/environments.md.

  • Plans show Secret references in any kind (secretName, *File/*Path strings, {name, key} selectors, secretTemplate) instead of redacting them, so custom resources that reference Secrets can be applied; the piceli.io/public-fields annotation (app.resource(..., public=[...])) declares other sensitive-looking fields public. Values stay redacted.

  • A file target (piceli render path/app.py:app, a pipeline, a release composition file) can import the modules next to it (such as generated CRD models); its directory is appended to sys.path.

  • piceli and piceli.app export Environment and Resource.

  • Typed App kinds (preview): app.stateful_set(...) (per-pod ClaimTemplate volumes, a governing headless Service by default, pod_management, update_strategy), app.daemon_set(...), app.job(...), app.cron_job(...), app.autoscaler(workload, ...) (HPA autoscaling/v2), app.disruption_budget(workload, ...) (PDB policy/v1), app.ingress(...) and Gateway API app.http_route(...) with typed Route and GatewayRef. Every pod kind shares the Deployment’s pod model (piceli.app.Workload): pod_defaults, service_account=, node= pins, images, secrets, config dependencies and override work the same. Workload names are now unique across kinds. Service(headless=True) renders clusterIP: None.

  • Autoscaled replicas, one rule: a workload targeted by app.autoscaler refuses replicas= and renders the autoscaler’s min_replicas as its initial spec.replicas; the plan’s autoscaled-replicas rule of 0.6.0 (initial, held, yielded) decides what is written for typed apps and plain manifests alike, and a plan never removes /spec/replicas from a workload an autoscaler targets, whether the autoscaler is in the release or only live. See Compatibility and shared ownership.

  • Claims are never pruned: StatefulSets render persistentVolumeClaimRetentionPolicy Retain/Retain, and prune and replace delete them with Orphan propagation; the claims their templates create are never part of a plan.

  • Immutable fields: a plan that would change a managed Job’s pod template or completions, or a StatefulSet’s serviceName, podManagementPolicy, selector or claim templates, is refused with the new code immutable-field-changed (blocking[].suggest names the flag). --replace Kind/name now also accepts a managed Job or StatefulSet and recreates it (Jobs with Background, StatefulSets with Orphan propagation); every other managed object is still refused.

  • Readiness, one rule: HorizontalPodAutoscalers, PodDisruptionBudgets, Ingresses and HTTPRoutes are ready once they exist (they need metrics or another controller; in 0.6.0 they followed the status conventions); every other kind without a specific rule, custom or built in, follows the status conventions of 0.6.0 (observedGeneration, Ready, Reconciling, Stalled; ready once applied when it reports none). See When an object is ready. HTTPRoutes are applied with Ingresses, after Services.

  • Portable plan files (deploy --plan --out) record --env, and --apply deploys that environment (deploy-plan-file-mismatch for another --env).

  • piceli.testing: the fake API serves StatefulSets, DaemonSets, Jobs, CronJobs, HorizontalPodAutoscalers, PodDisruptionBudgets, Ingresses and HTTPRoutes (added to TYPES), reports their readiness, and refuses updates to immutable Job and StatefulSet fields with 422.

Version 0.6.0

  • Fix: reads the API server throttles with 429 (for example while the watch cache of a just-installed CRD initializes) are retried after Retry-After (bounded, within the deadline); writes are never retried.

  • Shared deployment state (preview): Pipeline(state="cluster") and [release] state = "cluster" keep the run journal, receipts, release catalog, execution journal and secret store in the release namespace (gzip snapshot in piceli.io/state Secrets, chunked, never in ConfigMaps), and state_dir becomes a working copy. Every command holds a release-scoped lock, a Lease piceli-lock-<release> renewed by the holder, taken over when its holder stopped renewing (state_lease_seconds, default 60), and fenced: each state write proves the holder and leaseTransitions first. State is written at every journaled stage change and after every execution journal commit, before the change it records, so a deploy interrupted or killed on one runner resumes on another. The first state="cluster" run moves an existing local state to the cluster. The default stays local. See Share deployment state between runners.

  • Portable approved plans: piceli deploy … --plan --out FILE writes a piceli.deploy-plan-file.v1 document (combined hash, stages, --ref commits, pipeline and observed target identity, build/delivery/mirror receipts); piceli deploy --apply FILE --approve HASH applies it on any runner: it refuses another hash, pipeline or cluster, plans again against live state and runs only when the combined hash is unchanged. A build whose images are already delivered by digest is not rebuilt, so no build cache is needed; a resumed run whose build happened on another runner rebuilds before delivering.

  • piceli state show|pull|export|import: where a release’s state lives, who holds its lock, refresh the working copy, export it to one file (secret material excluded, or AES-256-GCM encrypted with --include-secrets --key-file; new extra piceli[crypto]) and import it back after approving the import digest (exit 3 without --approve).

  • pipeline-locked now covers the release lock and adds lock (holder, expires_in) to the rejection; the deploy result adds plan_file. New codes: release-locked, state-lock-lost, state-unavailable, state-access-denied, state-corrupt, state-layout-mismatch, state-too-large, state-export-invalid, state-key-required, state-crypto-unavailable, state-import-partial, state-import-changed, state-output-exists, deploy-plan-file-invalid, deploy-plan-file-mismatch, deploy-plan-target-mismatch.

  • piceli release plan|check --spec MODULE:ATTR now hold the pipeline’s run lock like apply (refused with pipeline-locked while a deploy runs); release status|diff|secret show and piceli status refresh a shared state’s working copy first (reads only).

  • Discovery lists with the label selector !piceli.io/state, so plans, pruning and piceli import live never see the state objects. piceli.testing serves Leases and equality/existence label selectors.

  • The CI recipe (examples/ci/github-actions-deploy.yml, Deploy from CI with an approval step) runs plan, apply and resume on any runner: no persistent state directory, the plan file travels as the deploy-plan artifact.

  • Supported Kubernetes versions: the four most recent minors, 1.34 to 1.37, each tested on kind with node images pinned by digest (.github/kind-nodes.json, kind v0.33.0). Pull requests run the integration suite on the newest; a nightly job runs it on all four and the unit and acceptance tests with the lowest allowed kubernetes client (>=29.0.0). CI now passes the cluster to the integration tests explicitly, so they run instead of being skipped. See Compatibility and shared ownership.

  • Autoscalers own spec.replicas: for a workload a HorizontalPodAutoscaler targets (declared in the release, or live and discovered), plans no longer declare spec.replicas once the autoscaler owns it, and declare the live value while Piceli still does. Before, a re-plan showed a perpetual replicas diff and drift, and applying it reset the count and failed with applied-resource-drift. release plan --json and release diff (JSON on stdout) add autoscaled (mode initial, held or yielded per workload).

  • Controllers writing status during a plan or an apply (found by the kind matrix, most often on 1.37): a status update between discovery and a server dry run made the dry run conflict, and an unchanged release planned apply from a literal comparison; plan, diff and rollback now capture discovery and the dry runs again (up to three times) when a dry run conflicts. A status update between the executor’s read and its merge patch failed the apply with conflict; the patch is now sent again at the new resourceVersion when only the status or bookkeeping changed (content and field ownership unchanged). An autoscaler scaling a workload through the scale subresource while Piceli waits for readiness is no longer applied-resource-drift.

  • Readiness of other kinds: HorizontalPodAutoscalers, custom resources, PodDisruptionBudgets and other kinds without a dedicated rule follow the common status conventions (observedGeneration, Ready, Reconciling, Stalled) and are ready once written when they have none. Before, a release containing any of them failed with readiness-unsupported, which now only means a malformed status.

  • Interrupted executions: release resume after a kill before a write reached the cluster (a create whose object is absent, a write or delete whose object still has the recorded version) sends the write again, once the new [execution] write_settle_seconds (default 60) have passed since it was sent, instead of stopping with ambiguous-write-blocked, ambiguous-content-blocked or ambiguous-delete-blocked for good. Kill tests stop release apply and release rollback at every write (before it, after the server applied it, at the next request) and on kind mid-rollout; How plans decide what changes documents the recovery and the rollback boundary (what a rollback restores, and that it cannot restore data, external side effects or what others own).

  • Ownership tests on kind: an autoscaler owning replicas, an operator-like writer sharing a custom resource, a mutating admission webhook, and adoption and pruning with a third field manager.

  • piceli.testing.FakeAPI adds scale() (an autoscaler’s scale subresource write) and intercept (stop a client at an exact request phase).

Version 0.5.1

  • Fix: stopping a finished build step no longer fails intermittently on macOS with PermissionError when only the exited process-group leader is left.

  • Every command follows the output contract: render, release diff and release check are now conforms (none is partial). piceli render prints its rejection object on stdout for every --format (it did only with --format json), and a missing --spec file is a render-target-invalid rejection instead of a usage error. release check adds "state": "succeeded", or "state": "failed" with "reason": "check-failed" when it exits 1. release diff --exit-code adds "reason": "release-changes-pending" (new code) when it exits 1. Existing fields are unchanged.

  • Retry-safe releases: the release workflow asks PyPI whether the version is released instead of trusting the git tag, uploads only what is missing (retrying transient index failures), verifies every file on PyPI and only then pushes the tag, which is never moved. An interrupted release finishes on re-run. TestPyPI pre-releases from pull requests are retried and verified the same way.

  • Provenance: wheels and sdists are published with PEP 740 attestations (Sigstore, trusted publishing); see SECURITY.md.

Version 0.5.0

  • Mirror third-party images (preview): NodeLoopbackRegistry(mirror=[…]) and Registry(url, mirror=[…]) copy digest-pinned images the app does not build (docker.io/library/redis@sha256:…) into the delivery registry in the deliver stage, over the OCI distribution API on the machine running Piceli (anonymous, or mirror_credentials={"registry": "file.json"}). The app’s references are rewritten to the copy with the same digest, and workloads using it are pinned to the registry node. For a multi-arch index the index keeps its digest and the node registry holds only the node’s platform (NodeLocalRegistry(index_platforms=…)); Registry copies every platform. Copies are verified by digest, skipped when present, recorded in state_dir/mirrors/ (piceli.mirror-delivery.v1) and part of the combined plan hash. New codes: pipeline-mirror-not-pinned, pipeline-mirror-failed, mirror-digest-mismatch, mirror-manifest-invalid, mirror-platform-unavailable, blob-not-found, invalid-blob-redirect, too-many-redirects. piceli release plan|diff|apply --spec refuse with pipeline-not-delivered until the mirrors are copied.

  • Take over a live node-loopback registry (preview): NodeLoopbackRegistry(adopt="NAME") adopts a registry Deployment that already runs on the node (and its ConfigMap and claim) by ownership transfer, keeping its selector and its data, after checking that it is compatible (host network, port, node, storage), else pipeline-registry-incompatible. replace="NAME" backs it up, deletes and recreates it; storage is never deleted, and the plan says whether the data carries over. A registry that holds the port without either flag is refused at plan time with pipeline-registry-takeover-required instead of failing later with pipeline-registry-not-ready. New options host_path=, existing_claim= and inherited_owners= on NodeLoopbackRegistry, and existing_claim=, selector= on NodeLocalRegistry; new code pipeline-registry-unreadable.

  • StreamedOciRegistryClient gains open_blob() (streamed blob downloads that follow a redirect to another origin without credentials) and actions="pull" for pull-only token scopes. piceli.testing.FakeAPI serves Nodes (add_node).

  • The deploy plan’s deliver stage adds mirrors and registry.existing / registry.index_platforms only when used, so earlier pipelines keep their combined hashes.

  • Deploy a commit, not the working tree (preview): piceli deploy TARGET --ref [SOURCE=]REV (repeatable; a bare REV when every source is one repository) resolves each revision to its commit SHA, checks it out in a temporary git worktree and runs the inputs and build stages from there; the worktrees are removed on success, failure, Ctrl-C and SIGTERM. The combined hash covers the SHAs, so an approval of commit X never applies commit Y, and the printed approval command pins them. The pipeline module still runs from the working tree and must match the commit (deploy-ref-model-differs). --resume reuses the run’s commits. New error codes deploy-ref-invalid, deploy-ref-source-unknown, deploy-ref-ambiguous, deploy-ref-unknown, deploy-ref-checkout-failed and deploy-ref-model-differs. Additive output: refs in the deploy result, stages.inputs.refs/model, the run journal and the build receipt; a release created by a deploy records provenance.sources (commit, dirty, ref), shown by piceli release status.

  • CI recipe (preview): Deploy from CI with an approval step and examples/ci/github-actions-deploy.yml: plan the pushed commit, publish the plan and its combined hash, approve through a protected GitHub environment, apply with the same --ref and hash, resume by hand. Piceli’s tests run the workflow’s commands against the fake API.

  • App-level pod defaults (preview): App(..., pod_defaults=PodDefaults(...)) applies typed settings to every Deployment of the app: security=Security(...) (pod securityContext: run_as_non_root, run_as_user, run_as_group, fs_group, seccomp; container securityContext on every container: allow_privilege_escalation, read_only_root_filesystem, drop_capabilities, add_capabilities; Security.restricted(...) for the restricted Pod Security Standard), an extra node_selector merged with node= pins, termination_grace_seconds and automount_token. Workloads take the same typed arguments, which win (security field by field, node_selector key by key); app.override still patches last. A kubernetes.io/hostname selector together with node= is refused. Rendering is unchanged when none of this is used.

  • Typed RBAC (preview): app.service_account(name, rules=[Rule(...)], cluster_rules=[Rule(...)]) renders a ServiceAccount, a Role and RoleBinding, and a ClusterRole and ClusterRoleBinding named <namespace>:<app>:<name>; bind it with app.deployment(..., service_account=sa). Rule refuses empty lists, malformed verbs, resources and groups, resource_names with create/deletecollection, and "*" unless allow_wildcard=True. The ServiceAccount renders automountServiceAccountToken: false and only pods bound to it get true.

  • Cluster-scoped RBAC in releases: a release may now manage ClusterRole and ClusterRoleBinding objects (other cluster-scoped kinds are still refused with invalid-composition). They carry piceli.io/namespace, and a provider treats a cluster-scoped object as managed only when it names the release’s namespace as well as its owner, so one owner’s releases in two namespaces never change, adopt or prune each other’s. Plans flag them with "cluster_scoped": true (additive) and [cluster-scoped]; prune and rollback create and delete them like namespaced objects.

  • Label-selected network policies: app.network_policy(selector=..., allow_from_selector=..., name=...) and app.release_selector (the labels every pod of the app carries) express “only this app’s pods may connect”.

  • --adopt/--replace and [release] adopt/replace accept RBAC names with : (ClusterRole/staging:shop:watcher).

  • Fix: a pruning delete no longer fails with deleted-resource-reappeared on a real cluster. An Orphan delete keeps the object (with a deletionTimestamp) until the garbage collector removes its finalizer; the executor now waits for the same object to disappear, and still refuses an object recreated with another UID.

  • piceli.testing: the fake API also serves ServiceAccount, Role, RoleBinding, ClusterRole and ClusterRoleBinding, decodes percent-encoded names, and FakeAPI.terminating_reads keeps an Orphan-deleted object terminating for a few reads, like a real API server.

  • Release preview before the images exist (piceli deploy --plan, preview): while build images are not built or delivered, --plan now computes the release plan with placeholder images (pending-build.piceli.invalid/<image>@sha256:000… or pending-delivery…) instead of printing only “after delivery”. It shows what the release would create, adopt, replace, apply or delete, and refuses with the release engine’s blocking list and suggested flags (before any build or registry write) when existing objects need adoption or replacement. The preview is never approvable or persisted, generates or reads no secret, and objects carrying a placeholder are never sent to the cluster, not even as a server dry run (dry-run-placeholder-image). JSON adds stages.plan.preview, and a refused preview adds stage and preview; existing fields keep their meaning. The combined hash of a pending plan now covers the preview’s adopt/replace/delete set: after delivery the real release plan may not go beyond it (pipeline-preview-changed, nothing applied; plan again). --approve <preview_hash> is refused with pipeline-preview-not-approvable. An image that is neither a build handle nor pinned by digest is now refused at --plan time.

  • piceli render MODULE:pipeline: a Pipeline target renders offline with its target’s namespace and declared nodes (node="alias" pins resolve), build images as placeholders, pinned images as they are, the delivery node’s pin, and secret placeholders. It reads no kubeconfig, build spec or pipeline state. piceli render MODULE:app is unchanged.

  • Build smoke checks match output and take an environment (experimental): a smoke table (build.toml, and the new Smoke for Build.dockerfile(..., smoke={...})) adds env (plain, non-secret values), entrypoint (overrides the image’s entrypoint) and expect_stdout/expect_stderr (regular expressions searched in the first 256 KiB of each stream). A pattern that is not found fails the build with smoke-output-mismatch (exit 1); the step lists the streams under unmatched, and stderr and the build log show a short escaped excerpt. Smoke env values that look like secret references are refused (smoke-env-secret). The smoke table is part of the plan hash and is recorded in the receipt under smoke. Existing smoke checks keep their argv, isolation flags and spec digest.

Version 0.4.1

  • Fix (safety): Piceli signals a child’s process group only when the id is a real child group: never 1, 0 or its own group. A test double’s pid (which converts to 1) made the forward supervisor send SIGTERM to process group 1, which on Linux CI stopped the job itself.

  • Release commands for pipeline releases: every piceli release subcommand (plan, preview, diff, apply, rollback, resume, stop, check, status, secret show) now takes --spec MODULE:ATTR naming a Pipeline, as piceli status and piceli access do, and operates the release piceli deploy manages: same state directory, release name, target and composition. Nothing is built: a rollback re-applies the recorded image digests (oci-set), and plan/diff/apply use the images delivered from the current sources or refuse with the new code pipeline-not-delivered. Commands that change the cluster hold the pipeline’s run lock (pipeline-locked).

  • Exec credential plugins for pipelines: Target.kubeconfig(...) takes allow_exec, exec_sha256, exec_pass_env and exec_timeout_seconds with the semantics of [target] in release.toml. They apply to piceli deploy, piceli status, piceli access and the release commands. piceli status and piceli access now also honour [target] allow_exec of a release.toml, and refuse an exec user without it (exec-auth-not-allowed); post-deploy checks use the target’s policy.

  • Fix: checks declared on a Pipeline (Checks.http, exec, metric, python) now run with a piceli.checks.CheckContext built from the target; in 0.4.0 the default runner got the pipeline’s context and every check failed with check-raised.

  • Fix: piceli deploy --resume of a run that failed at its checks stage with rollback_on_failed_checks no longer fails with pipeline-stage-error; it rolls back to the previous release.

  • Fix: piceli deploy prints the build log as a path relative to the working directory or <state_dir>/…, never an absolute local path.

  • Fix: piceli status and piceli access --dashboard with a pipeline target now read the pipeline’s release state: status shows the release line and the dashboard its catalog (active release, managed workloads). The human status workload columns line up.

  • Fix (output contract): a pipeline’s automatic rollback reports {"state": "rejected", "reason": "<code>", "message": …} or {"state": "unavailable", "reason": "checks-rollback-unavailable", "message": …} instead of "state": "refused" or a free-text reason. A release execution refused by the executor is recorded in the history as "state": "rejected" with "reason": "execution-refused" (was "refused").

  • piceli --version prints piceli <version>; the top-level help has a real description.

  • Saved forwards never start implicitly (safety): piceli operator serve and piceli observe serve no longer start a user’s saved port forwards at launch. --restore-forwards starts them, and only those saved for the same cluster (a digest of the context’s API server URL), context and namespace. Forwards saved without a scope (older files, or forward-save without the new --kubeconfig/--context) are never restored. Forwards added from the dashboard are saved with their scope, and GET /v1/preferences lists only the current user’s forwards for this cluster, context and namespace.

  • piceli status only reports forwards Piceli owns: a forward is up only when the listener is Piceli’s kubectl port-forward for that declaration. Any other process on the port is occupied (status-port-occupied) with its pid only; its command line is never printed. The dashboard’s supervisor also refuses to call a forward healthy when another process answers on its port (conflict).

  • operator serve --access starts the model’s forwards at launch, like piceli access --dashboard, refusing with access-port-conflict when a required port is taken. --no-start-access leaves them stopped.

  • Operator dashboard: Pods and ReplicaSets owned (through ownerReferences) by a managed workload are listed as managed with derived_from instead of unmanaged. Image references are shortened with the full reference in a tooltip, and the tables keep their columns inside the card.

  • Readable plans and progress: release plan shortens long values in the middle (keeping the digest tail and the closing quote) and puts long changes on their own lines; piceli deploy --plan wraps long change lists and prints the approve command on its own line. release apply and the deploy apply stage print progress on stderr while applying and waiting for readiness (applying 3/7: Deployment/web, waiting for Deployment/web to be ready (12s)); stdout is unchanged.

  • Human output shortens delivered image digests (@sha256:<12 hex>…) and drops microseconds from the piceli status release time; JSON output keeps the full values.

Version 0.4.0

  • Removed: the legacy delete-and-recreate engine and its CLI (piceli model …, piceli deploy plan/detail/run). There is one engine: piceli release, driven by typed apps or a release.toml. piceli deploy is now the pipeline command below.

  • piceli deploy (preview): a piceli.pipeline.Pipeline declares the app, its image builds, how the images reach the cluster (registry, node-loopback registry or node import) and the target. piceli deploy module.py:pipeline builds, delivers by digest, plans, applies and checks in one journaled run. Unchanged stages are skipped, an interrupted run resumes, approval covers the combined hash of every stage, and --json streams one event per stage. A multi-image release records its source as an oci-set image map.

  • Post-deploy checks and automatic rollback (preview): [[checks]] in release.toml (or piceli.checks in Python) declares http, exec, metric and python checks. A release is ready only when they pass; with rollback_on_failed_checks = true a failed check re-applies the previous ready release. New piceli release check and --skip-checks. A failed check ends apply with reason: check-failed and exit 3.

  • Field-level diffs and true no-op plans: release plan compares the desired object with a server-side dry run of it instead of with the raw live object, so API-server defaults no longer show up as changes. Unchanged objects plan no-op, and every apply shows the fields it changes. New piceli release diff.

  • Secret no-op plans and three-way removal: an unchanged Secret (or other secret-bound object) now plans no-op; its resolved values are compared in-process with keyed digests and are never shown or stored. An apply now removes labels, annotations and map keys (such as ConfigMap keys) that an earlier release declared and the composition dropped, unless another field manager owns them (removes in the plan, remove changes in the diff).

  • Access and status from the model (preview): app.access.forward(…) declares how each service is reached from your laptop (it renders no Kubernetes object). piceli access TARGET runs supervised loopback port forwards, and piceli status TARGET [--json] (piceli.status.v1) says whether the app is up and lists its URLs.

  • Import existing apps (preview): piceli import live (a namespace) and piceli import yaml (manifest files) generate a typed app module that adopts the existing objects on its first release. App.override(obj, patch) sets fields the typed model does not cover.

  • piceli.testing (public): the in-process fake Kubernetes API used by Piceli’s own acceptance suite, with a fake_cluster() context manager and a pytest fixture, for testing your deployment code without a cluster.

  • Managed clusters (preview): kubeconfigs that authenticate through an exec credential plugin (GKE, EKS, AKS, OIDC) are refused (exec-auth-not-allowed) unless [target] allow_exec = true. The plugin is resolved to an absolute path, hashed before every run (optional exec_sha256 pin) and run with a minimal environment (exec_pass_env) and a timeout; Piceli refreshes the credential itself.

  • Changed (machine output): every preview command now follows the output contract: a refusal is {"state": "rejected", "reason": "<code>", "message": "<sentence>"} on stdout, and exit codes are unchanged. See the contract changes for each command. Release refusals keep code as an alias of reason for 0.4.x only; it will be removed in 0.5.0. Results of release apply/rollback/resume/stop add state (succeeded, or failed with reason).

  • Changed (safety): observe and operator commands need an explicit --context, build their clients through the same checks as release (a refused target is target-refused) and keep static client certificates in memory instead of temporary files.

  • Fixed: the rust-hello build example could ship a stale binary after a source edit: staged sources carry the fixed source_date_epoch mtime, so Cargo treated the cached target/ artifact as fresh. The example now runs cargo clean --release --package rust-hello before cargo build, keeping dependencies cached and builds reproducible. Containerized builds documents the pitfall.

  • Fixed: operator status, observe and release plan observation no longer fail on RBAC objects whose names contain : (such as system:controller:* in kube-system). RBAC names are validated as Kubernetes path segments, and live objects Piceli cannot model are skipped with a scan warning instead of crashing.

  • Fixed: exec checks failed TLS verification (check-exec-unavailable) with clients built from an explicit kubeconfig; they now use the client’s own verified TLS context and credentials.

  • Checks is exported from the top-level package (from piceli import Checks, Pipeline).

  • Help text shows [[…]] TOML names literally instead of dropping them as terminal markup.

  • Two flaky tests fixed (git identity under redirected GIT_DIR, process limit timing).

Version 0.3.0

  • Safety fix: the dry-run admission check before a delete really deleted the object, because the API server ignores a dryRun query parameter when a DeleteOptions body is sent. dryRun is now sent in the body. This affected opt-in pruning in 0.1.0 and 0.2.0: objects that were about to be deleted anyway lost the check-before-write guarantee.

  • Ownership transitions (preview):

    • piceli release --replace KIND/NAME / [release] replace deletes and recreates an unmanaged, non-retained object after writing a restorable backup (kubectl create -f). It always needs a per-object flag.

    • --adopt-all-desired adopts every unmanaged object the composition declares.

    • Plan refusals list every blocking object with suggested flags and codes. The human text of each blocking entry is in its message field.

    • Retained objects, including those with inherited owners, whose only difference is labels or annotations get a metadata-only write.

  • Immutable image references (preview):

    • A build receipt without a registry digest is refused with image-not-immutable instead of falling back to its movable tag.

    • [images.<name>] receipt and images_from accept piceli.node-delivery.v1 receipts, which need a content tag repo:sha256-<12hex>.

    • images_from takes a list of build and delivery receipts, merged by config digest.

    • New examples/two-images, with an opt-in kind acceptance test.

  • Typed apps (preview): from piceli import App, ExistingClaim, … describes Deployments (sidecars, init containers, probes, resources, memory/config/secret volumes, node pinning), Services, ConfigMaps, Secrets and NetworkPolicies as typed Python that renders to release intents.

    • ExistingClaim mounts a claim that the release never creates, changes or deletes.

    • Selectors derive only from the Deployment name.

    • piceli render prints the manifests without a cluster.

    • examples/release is now typed and renders identically.

  • Secrets (preview): new tls-ca, template, import (file, env, or a live Secret; rotatable with --rotate) and static generators, and piceli release secret show NAME [--key] --reveal. A refused release plan no longer generates, imports or stores any secret version.

  • Builds:

    • Drift is checked over the staged files and the spec. Whole-source identity is kept as provenance (sources_changed_during_build), so edits to unrelated files no longer reject a build.

    • --log streams during the build, and --progress steps|plain|quiet shows step progress.

    • tag = "{image_id:N}" content tags.

    • Optional per-image smoke checks run in an isolated container.

    • piceli inputs record|verify --only NAME.

  • Agent and contract foundations (preview):

    • a registry of error codes with piceli explain <code> [--json];

    • piceli help-json / --help-json (the CLI tree with side effects, approval and retry metadata);

    • generated reference/errors and reference/cli pages;

    • AGENTS.md, llms.txt and docs/agents.md;

    • maturity labels on every feature page;

    • a clear error for a misplaced images_from.

Version 0.2.0

  • release.toml images can point at a registry delivery receipt: web = { receipt = "web.delivery.json" } releases the receipt’s digest-pinned pull_ref. This chains build → delivery → release without copying digests by hand.

  • Adopt existing objects by ownership transfer. piceli release --adopt Kind/name (or [release] adopt = [...], or PlanAuthorization.adopt_resources) adopts objects in one of two ways:

    • retained objects (PVC, Secret, Namespace, PV) with an owner-annotation-only write; their spec and data are never touched;

    • other objects with an explicitly authorized takeover. Field ownership of every client manager (for example kubectl-create, kubectl-set) is transferred to Piceli and the manifest is applied without force, so fields the release does not declare are removed. Subresource and control-plane managers are kept, and force=true is only used for the admission dry run.

    Plans show the adoption mode and the displaced managers, and report field drift. Inherited owners are now part of the execution grant.

  • Receipts only compare declared fields, which fixes the false drift on the first apply of a WaitForFirstConsumer PVC.

  • Boolean *Token fields such as automountServiceAccountToken are no longer redacted as secrets.

  • templates.NodeLocalRegistry is a digest-pinned OCI registry bound to the node loopback, so the node pulls from it without any registry configuration and it is not exposed on the network. It has:

    • retained storage, delete support and loopback probes;

    • a garbage-collection Job that is safe to run in stopped or read-only mode;

    • a pull_reference() helper, and a component() for piceli release compositions.

    See Node-local registry.

  • piceli artifacts deliver --to oci://host[:port]/repo[:tag] is now the default delivery mode:

    • it pushes an image approved by config digest and uploads only the missing blobs, chunked where needed;

    • it is idempotent, and it re-verifies the pushed manifest;

    • its receipt (piceli.registry-delivery.v1) records the manifest digest and a node-side pull_ref;

    • --via-forward pushes through a supervised loopback port-forward.

    Plain HTTP is only allowed for loopback registries, and credentials come from a private file. Node import over ssh:// / docker:// remains as the fallback.

Version 0.1.0

  • piceli release {plan,preview,apply,rollback,resume,stop,status} --spec release.toml is the first CLI on the recoverable engine. The typed release spec takes an explicit kubeconfig file and context, optional cluster/namespace/node UID pins, and images by digest or from a piceli.build-receipt.v1 receipt. A module:function composition builds the resources, and random and tls-self-signed secret generators are available. Plans need a one-shot approval by plan hash, and rollback re-applies the earlier release. piceli.k8s.ops.provider_factory builds an identity-checked KubernetesProvider from an explicit kubeconfig. See Releases from a spec (piceli release).

  • Declarative containerized builds: piceli artifacts build-spec preview|run and piceli.artifacts.build_spec. Builder images are pinned by digest, build contexts are staged minimally with byte budgets, and BuildKit cache mounts are used. Outputs can be files or images. A piceli.build-receipt.v1 receipt binds the source identities, builder digest and output digests. Image IDs are reproducible across cold builds. Includes a rust-hello linux/arm64 example. See Containerized builds.

  • piceli artifacts deliver streams an image (docker save, or a Docker/OCI archive) straight into a node’s containerd over ssh:// (k3s or plain containerd) or docker:// (e.g. kind nodes), with no registry and no temporary archive. The approved config digest is re-verified from the stream before the image index is released, and again on the node. The command is idempotent and writes a JSON receipt and journal. See Image delivery.

  • Access profiles with connection health. Shortcuts in the --ui-config TOML can declare a TCP or HTTP health probe and a bounded restart policy. The port-forward supervisor restarts a forward after consecutive probe failures, with exponential backoff. It reports health, last_error and last_probe_at in /v1/forwards, /v1/shortcuts and the dashboard. New commands: piceli observe forwards apply|status, with a port-conflict preflight, and observe serve --start-shortcuts.

  • Added piceli inputs record|verify and the source-identity API in piceli.artifacts (SourceIdentity, InputsLock, pinned_sources). Build sources are identified by git commit, dirty flag and a working-tree digest, not by unversioned local receipt files. A checkout that changes during a build fails. See Source identity.

  • Tooling: migrated from Poetry to uv with PEP 621 metadata and the hatchling build backend. Python 3.12+ is required. ruff replaces black and isort. CI runs on Python 3.12–3.14 including the acceptance suite, runs integration tests on kind, and builds the docs strictly. Releases use PyPI trusted publishing.

  • Packaging: the Google Cloud dependencies moved to the gcp extra (pip install "piceli[gcp]") and OpenTelemetry to the telemetry extra. PyYAML is now a declared dependency. The unused textual dependency was removed. typer ≥ 0.12 is required.

  • Safety: resource ownership is now an exact match on the owner annotation. Previously, any owner id sharing the prefix before the first - was treated as the same owner, so pruning could remove another owner’s objects. To take over objects from an earlier owner id, pass KubernetesProvider(..., inherited_owner_ids=("old-id",)) or adopt them explicitly.

  • Fixed: Deployment templates are now found by the loader, and --module-path / PICELI__MODULE_PATH now executes the module (before, it always loaded nothing). StatefulSet, HorizontalPodAutoscaler and VerticalPodAutoscaler manifests now carry apiVersion/kind. Service, PersistentVolume and PersistentVolumeClaim return lists like every other template. Workloads without template_labels default to {"app": <name>}. The ineffective 15-character name limit was replaced by the real Kubernetes rules.

  • Fixed: the CLI engine no longer silently skips kinds it doesn’t know. They are deployed last, with a warning.

  • Security: GKE service-account credentials are built in memory. No sa.json file is written and GOOGLE_APPLICATION_CREDENTIALS is left untouched.

  • Security (local web UI):

    • loopback Host and same-origin checks;

    • a token is required on every /v1/* request, GET included;

    • the viewer role is read-only;

    • Content-Security-Policy with a nonce, and no inline event handlers;

    • a 1 MiB request limit;

    • error bodies contain fixed error codes only.

  • Changed: the dashboard ships no application-specific shortcuts or topology. Configure them with --ui-config / PICELI__UI_CONFIG (TOML). observe serve gains --namespace.

  • Fixed: piceli operator serve no longer crashes on start, and handles an occupied port and signals like observe serve.

  • Reworked the documentation: new landing page, overview and architecture guide (mental model, the two execution engines, glossary), public roadmap, a real FAQ, an open contributing guide, full CLI reference for observe, operator and artifacts, and a warning-free Sphinx build. Examples no longer reference a specific environment.

  • Added the read-only local operations lens: Python inventory API, JSON CLI, loopback REST endpoints, and owner-only non-secret port-forward preferences. It reconciles an explicit deployment-session archive with an explicit kubeconfig and distinguishes declared, missing, unknown, and undeclared objects without acquiring deployment authority.

  • Added DeploymentSession, a Python-first provider-free boundary for one-time private input materialization, canonical opaque-reference interchange, exact preview/apply/resume, explicit rotation and owner-scoped stop.

  • Added canonical DeploymentRevision and ExecutionBundle interchange for exact, secret-safe resume. Retained owned resources reconcile without a new SSA operation annotation; PVC first-consumer execution defers only readiness, never treats Pending claims as ready.

  • Added public, deterministic build/OCI APIs and a thin piceli artifacts CLI with source/tool pins, bounded process groups, cancellation, secret-safe receipts and explicit local Docker import without tags or push.

  • Added bounded OTLP deployment-operation spans/logs with exact journal states and signal-level drop/rejection/unknown-delivery accounting. Joined local acceptance covers the real recoverable executor, fault API and telemetry consumer restart.

  • Replaced discovery authority v1 with validated v2 coverage, scope, timestamps, provenance and capture-time byte/deadline limits; retained historical v1 files.

  • Added an explicit-client Kubernetes provider and scoped executor with private versioned secret bindings, durable intent/receipts, readiness, cancellation, resume and ownership-limited compensation. Qualified the provider against a fault-injecting local API, including process death and ambiguous replies.

  • Added make local-test-env and make test-local-executor, hash-locked test dependencies, retained acceptance evidence and an executable composition example. Removed the unavailable exact Python interpreter pin from pre-commit bootstrap.

  • Added immutable deployment components and target-bound observed snapshots, deterministic offline create/adopt/apply/no-op/delete plans, UID/version and absence preconditions, secret-safe hashes, retained-resource protection and child-first pruning.

  • Switched piceli deploy plan to the pure planner and added tests proving that import and planning neither create Kubernetes clients nor mutate input intent.

  • Required explicit cluster binding and resource adoption, and reject stale snapshots, wrong namespaces and unsafe unmanaged descendants.

  • Published bounded portable discovery schema v1 and a pure provider protocol covering continuation, API scope, coverage failures, SSA conflicts and readiness.

  • Bound snapshots to discovery/defaulting identity, preserved explicit desired defaults, blocked absence/pruning under incomplete coverage, and made built-in Namespace/PV/PVC/Secret retention non-overridable.

Version 0.0.4

  • First version of the docs

Version 0.0.3

  • CLI

  • Integration tests

  • Github pipelines

Version 0.0.2

  • MVP

  • automatic deployment

  • deploymnet graph and automatic dependencies

  • automatic rollback

  • comparison functionalities, adding ignoring/default paths

Version 0.0.1

  • Refactor legacy libs

  • Adding support for kubernetes official python library

  • Adding support for yaml and json

  • Unit tests for piceli templates