This file is an organisation-level default. A repository that publishes its own CONTRIBUTING.md
overrides it.
Workflows live once in krateo-platformops/.github/.github/workflows/ and every repository
calls them through a small shim in its own .github/workflows/. All three organisations —
krateo-platformops, krateo-agentiko, krateo-blueprints — call the same copies. Change the
behaviour there, not in a repository.
Current shared workflows: security.yml, release-notes.yaml, release-oci.yaml,
lint-docs.yaml, preflight-refs.yaml, component-image-build.yaml, chart-images.yaml,
component-go-checks.yaml, chart-version-guard.yaml.
Two things about that repository are load-bearing:
-
It must stay public. That is the only reason repositories in the other two organisations can call it. Making it private breaks CI in two organisations at once.
-
A shim calls a shared workflow at a pinned commit. A change here is still a change to the whole estate, but it reaches a caller only when that caller moves its pin; a caller that floats receives every merge on its next run, with no staging. The accepted forms are the ones
krateo-blueprints/chartspinned-uses checks, and there are three:-
@<40-hex commit> # X.Y.Z— the tag that commit carries. This is the default and the preferred form: Dependabot can advance it. Resolve an annotated tag with^{}when pinning:refs/tags/X.Y.Zis the tag object, not the commit. -
@<40-hex commit> # main YYYY-MM-DD— the commit's own date. It exists for a publisher with no tags and is transitional for this repository, which has been tagged since 1.0.0 (2026-11-18): it still passes, with a notice, and# X.Y.Zis preferred. -
@main # floating: YYYY-MM-DD <reason>— a recorded float, the exception. It needs a real date and a reason, and it is accepted only for org-owned workflows. It is refused for the publisher (krateo-blueprints/chartspublish-chart.yaml, which receives an org-wide write token) and inside any file withon: workflow_call, because a float there moves under every caller that pinned the reusable.The date is the day the float was recorded in that file, not the day the ref began to float and not the day the decision was taken. A recorded float exists so a deliberate decision stays auditable and can be re-reviewed ("decided then, is it still true?"), and the recording date is what that review counts from. The ref's technical start is recoverable from git history; the recording date is not. The checker's notice,
floats since <date>, refers to this record, not to the ref's history, so the two do not conflict.
The starter workflow
workflow-templates/release-notes.ymlis a recorded float of the third kind: a SHA pinned into a template is stale the moment it is committed and nobody bumps a template, so a repository scaffolded from it starts with a recorded float and moves to a pin when it adopts one.The cost of pinning is real. A pinned caller does not receive a shared fix by itself, so a fix that matters to every repository needs a pin bump in each. The owner of a release announces it; the bump is the caller's. Why the default is a pin, and what to prove before announcing a release safe to pin, is under "Changing a shared workflow".
History. Until 2026-11-30 this bullet said "Shims pin
@main", and the section below said to pin a commit. Both were published, and a caller could follow either. On 2026-11-22 a float turned out to be costly (see below). The float itself was never banned, and the decision that org-owned workflows may float where a repository chooses (2026-11-07, reaffirmed 2026-11-18) stands. What the incident showed is the cost of a float that nothing records. -
secrets: inherit does not cross an organisation boundary. A shim in krateo-agentiko or
krateo-blueprints calling a krateo-platformops workflow must name each secret explicitly:
secrets:
CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
RELEASE_FEED_TOKEN: ${{ secrets.RELEASE_FEED_TOKEN }}This failure is silent: the job skips every step and still reports success. If a workflow produces nothing while reporting green, check whether its credentials arrived empty before looking anywhere else.
Releases are tag-driven. Push a tag and CI builds and publishes; there is no release button.
Tags carry no v prefix — 1.6.55, not v1.6.55.
Before tagging, confirm the merge actually landed. A gh pr merge that reports a network error may
not have merged, and tagging what you assume is main produces a version that is byte-identical to
its predecessor and silently missing the change. Verify with git rev-list -n1 <tag> or by grepping
the tag's tree, and check the tag on the remote — a stale local tag will lie to git log.
This repository's reusable workflows are called by every repository in the organisation, and two things about that are invisible from here:
- A caller on a branch ref (
@main) receives every merge tomainimmediately. A major version protects only callers pinned by commit SHA. Before merging a breaking change (a new required input, a removed one), search every organisation for callers of the workflow by branch ref, with a control that the search reads real files, and get them pinned to the current release first. On 2026-11-22 release-oci 2.0.0 reached main with a required input and broke the release of every@maincaller at startup (9 repositories; two releases published nothing). - This repository's CI never runs a workflow the way a caller does. A step action from another
repository is staged in the CALLER's job: the runner downloads and unpacks that repository's whole
archive before any step runs. A change that adds or moves an action, or the repository an action
comes from, can be green here and fail every caller at "Prepare all required actions"; the same
release-oci 2.0.0 did, on a dangling symlink in krateo-blueprints/charts. Before announcing such a
change as safe to pin, prove it with a caller run: a
dry_rundispatch from a branch of a real caller pinned to the candidate commit (alert-provider run 45083740900 is the template).
A caller pins @<commit> # X.Y.Z; the forms pinned-uses accepts, including the dated form and the
recorded float, are listed under "CI is shared, not copied". Put the tag on the commit callers tested,
so what callers tested is what is released.
release-notes.yaml is a top-level job of the caller, never nested inside release-oci: a called
workflow's permissions are capped at its caller's, and release-oci is contents: read. Copy this
into the caller's tag workflow (.github/workflows/release-tag.yaml) and keep the pins on one
release of this repository.
This snippet is not exercised by CI: a change to this file triggers no workflow (the checks are
path-filtered to .github/**), and no test parses snippets. It was validated only by parsing it and
checking its with: keys against the pinned workflows' declared inputs.
name: release-tag
on:
push:
tags: ["[0-9]+.[0-9]+.[0-9]+"]
jobs:
release-oci:
uses: krateo-platformops/.github/.github/workflows/release-oci.yaml@31035dde1b693ee7aaa8a49a3e79627775b5656e # 3.0.0
permissions:
contents: read
packages: write
with:
index_channel: none # required: blueprints, pages, operators, or none
# dry_run: auto (default): a tag push publishes, any other event rehearses; pass 'false' only if this workflow decides releases outside a tag push. Never an empty value.
# for any channel but none, also pass the publish token by name:
# secrets:
# charts_publish_token: ${{ secrets.CHARTS_PUBLISH_TOKEN }}
release-notes:
needs: [release-oci] # notes describe a release whose artifacts exist
# Do not create the GitHub release body anywhere else in this workflow: release-notes owns it.
uses: krateo-platformops/.github/.github/workflows/release-notes.yaml@31035dde1b693ee7aaa8a49a3e79627775b5656e # 3.0.0
permissions:
contents: write # the release body
id-token: write # claude-code-action's App auth; the reusable cannot grant itself this
with:
tag: ${{ github.ref_name }}
# `secrets: inherit` ONLY for callers inside krateo-platformops. In any other org it passes nothing
# across and the job skips with a green tick: name the secrets instead, e.g.
# secrets:
# CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
secrets: inherit- Outside
krateo-platformops, replacesecrets: inheritwith the named form in "Passing secrets" above. Inherit passes nothing across an organisation, and the job then skips with a green tick. - Let
release-notescreate the GitHub release. Whichever workflow creates the release first wins: a release that exists without the<!-- krateo-release-notes -->marker is left untouched and no notes are generated, and a concurrent create fails with "tag_name already exists" (#48, #56). So the caller's own steps must not create the release body; a step that attaches assets runs afterrelease-notes(add it to itsneeds:) and uploads to the existing release, or treats "already exists" as success. - With no
ANTHROPIC_API_KEYorCLAUDE_CODE_OAUTH_TOKENreaching the workflow, the job warns and skips; its message cannot tell "not set in the org" from "not passed by the caller" (#57). workflow_dispatch(inputtag) can be added to regenerate notes by hand; seeworkflow-templates/release-notes.ymlfor a notes-only caller.- Pins follow the rule above:
@<commit> # X.Y.Z. Take the commit of the release you adopt; the example uses 3.0.0.
krateo-platformops and krateo-agentiko repositories follow the Krateo Documentation
Standard (DOCS-STANDARD.md in krateo-platformops/.github): an identical core file set in every
repository, enforced by lint-docs. What varies is content, never shape.
The shared security workflow runs gitleaks with a shared config passed via --config, which
overrides auto-discovery of a repo-local .gitleaks.toml. A .gitleaks.toml in a repository is
therefore ignored in CI even though it looks like configuration. Per-repository accepted findings go
in a .gitleaksignore as fingerprints, with a comment saying why each is not a credential.
A component documents the paths a healthy rollout cannot exercise, and names what verifies them instead. This is a convention, not a gate: nothing enforces it and there is no template to fill in.
The problem it exists for. A quiet roll gets read as evidence. A component that rolls with no errors, no restarts and no alerts has demonstrated that its happy path works, and nothing else — but the report says "clean", and the next person treats that as coverage. A series of "never caught" results is not evidence. It is the expected output of a check whose trigger did not occur, and it is indistinguishable from the output of a check that cannot fire at all.
Each entry carries four fields:
- The path a clean rollout cannot reach.
- Why it cannot reach it. "No healthy rollout produces this state" is the claim being made: name the state and say why no healthy rollout reaches it, so the claim is falsifiable rather than asserted.
- The named instrument that does verify it — a specific test, gate or procedure, not "unit tests".
- What a green result from that instrument does not cover.
Field 4 is the one that earns the convention. Without it, the instrument's scope gets inferred by whoever reads its green tick next, and inferred scope is always wider than real scope. A gate that proves "if the lookup finds the Secret, the key is reused" is read as "the key is safe"; a suite that runs against envtest is read as "proven in a cluster".
Entries live in the component's own docs/, beside the code they describe. Not in a central
list here: a list in this repository goes stale the moment a component changes its tests, and nobody
owns its accuracy.
Worked example: provider-runtime, docs/usage.md, section "Verifying the rollup during a
provider rollout", pinned to the commit so the quote cannot drift from its source:
It has all four fields: the NotObserved rollup path, why a healthy rollout never produces it, the
envtest suite and its removal control as the instrument, and what a green run does not cover
(envtest has no kubelet, scheduler or helm).
A check satisfied by prose about itself. A gate that greps a file for a flag's name is satisfied
by the comment above the flag, so deleting the guard and keeping the comment passes. One that
asserts a script "references statvfs" is satisfied by a single comment naming it. Substring
searches cannot distinguish a mention from a use, and documentation is made of mentions — the
vocabulary of the check and of the comment come from the same sitting. Parse instead: an AST, or a
real render, does not see comments at all.
A check satisfied by a true statement about the wrong subject. This one is worse, because
nothing looks anomalous. A convergence loop in the installer reported CONVERGED and exited 0 on a
roll that had applied 7 of 37 releases and doubled the failure count. Its predicate was "release
count unchanged AND every CompositionDefinition Ready", and both halves were true — but
neither has the releases as its subject. CompositionDefinition readiness is a property of the
per-version controllers, not of whether any composition's release advanced.
The detail that makes it a pattern rather than a slip: that was the second fix to the same
predicate. The first replaced "count unchanged for three passes" because it conflated "nothing
moved" with "done". Both "count unchanged" and "CDs Ready" describe the neighbourhood of the
releases rather than the releases, so the repair inherited the defect while looking like its
cure. The corrected predicate names the releases themselves: every release at the target chart
version, none in a non-deployed state.
A sample taken outside the window the claim is about. A control dates the instrument;
nothing dates the sample unless you say so. A chart's emission gate was suspected of pruning live
objects at the instant of a version bump; the check offered against it was that the apiserver
returned the same object at both the old and the new served version — a true measurement, with a
working control, taken seventeen minutes after the bump had created the new version. The claim
was about the bump instant and the sample was from a world where the thing in question had already
happened. So: name the window the claim covers, and show the measurement's timestamp falls inside
it. The same error has a premature form — a fetch taken while the release that publishes the
artifact is still running, reported as 0 of 5 beside a 5 of 5 control, which reads as a finding
because the control is sound.
An explanation generated before the instrument was checked. The narrowest of the four and the
easiest to commit. While wrapping this section, a long-line check using awk length reported two
overlong lines; awk counts bytes and the text contains em-dashes, so the report was annotated
"awk counts bytes, em-dashes are three bytes each" — and then measurement in characters showed the
line was genuinely too long. The account of the instrument's error was written before the
instrument was shown to have erred, and it was wrong. A plausible mechanism offered for a reading
you have not yet checked is a claim, not a caveat.
A prose-satisfied check can be caught by a differential. A wrong-subject check can only be caught by asking what the predicate's subject is. A mis-timed sample can only be caught by dating it against the window the claim covers. A pre-written explanation can only be caught by measuring the thing it explains.