Commit Graph
25 Commits
Author SHA1 Message Date
Defame1297 b12c990b6a ci(images): assign image versions in CI and open the pin PR right after a push
Build / build (pull_request) Canceled after 0s
Lint / lint (pull_request) Canceled after 0s
Molecule / molecule (pull_request) Canceled after 0s
The image.yml matrix holds a hand-edited base (MAJOR.MINOR) per image instead
of a version. On main, scripts/next_image_version.py compares a checksum of the
image's inputs with the inputs-sha256 label of the newest published <base>.N
and the job publishes <base>.N+1 when they differ, or builds nothing when they
match. A published tag is still never moved.

renovate.yml runs live on the successful completion of Images (workflow_run),
so the pin pull request opens minutes after a push instead of on the schedule.

Removed: bump_image_versions.py and its tests, check_image_versions.py bump,
Lint's bump step, Renovate's postUpgradeTasks, and the bot-diff allowance for
matrix version lines.

Closes #165

Assisted-by: Claude Code:claude-opus-5-5
2026-11-23 21:15:16 +00:00
Defame1297 a052713aa1 docs(glossary): widen control and define review, aspirational, scheduled merge and the role terms
Lint / lint (pull_request) Canceled after 0s
Molecule / molecule (pull_request) Canceled after 0s
Build / build (pull_request) Canceled after 21s
The held-by lines in AGENTS.md and the contributor docs hold rules by a control,
by review or aspirationally, and SECURITY.md's Accepted risks count repository
settings such as branch protection and code-owner approval, but the glossary
defined only control and limited it to hooks and CI jobs. Define all three, the
merge and role terms, and replace the avoided gate, guard and enforce wording.

Assisted-by: Claude Code
2026-11-23 16:40:54 +00:00
Defame1297 8df9070cd8 chore(agents): ignore local Claude settings and commit apm-deployed hooks
Build / build (pull_request) Successful in 22s
Lint / lint (pull_request) Successful in 1m14s
Molecule / molecule (pull_request) Successful in 18m40s
Ignore .claude/settings.local.json and stop ignoring .claude/hooks/, so
hooks apm deploys are committed for review. Track .claude/settings.json
with disableSkillShellExecution, so no committed skill runs a shell
command when it loads. State the apm primitive policy in apm.yml and the
hook-ownership rule in the setup doc.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-22 19:33:26 +00:00
Defame1297 7183913c8f docs(agents): replace CLAUDE.md with a root AGENTS.md
Build / build (pull_request) Successful in 15s
Lint / lint (pull_request) Successful in 46s
Molecule / molecule (pull_request) Successful in 17m21s
A root CLAUDE.md stops Claude Code loading the nested AGENTS.md files,
so it goes, with no adapter. The root AGENTS.md holds the seven
principles, the five code-style rules, the working rules, the verify
commands, the repository structure and one triggered pointer per
contributor doc and nested AGENTS.md.

AGENTS.md replaces CLAUDE.md in galaxy.yml build_ignore (the tarball
check allows no AGENTS.md) and on the Molecule selector's IGNORED list
(no scenario reads it). The setup and issue-tracker docs stop naming
CLAUDE.md.

Closes #185

Assisted-by: Claude Code:claude-opus-5-5
2026-11-22 16:35:14 +00:00
Defame1297 fbc9b375a6 docs(agents): write nested AGENTS.md for scripts, workflows, images and ADRs
Build / build (pull_request) Successful in 17s
Lint / lint (pull_request) Successful in 54s
Molecule / molecule (pull_request) Successful in 20m4s
Each file holds its directory's rules in full: the rule, a one-sentence
reason and how it is held (control, review or aspirational). The interim
dependency and image section of making-a-change.md moves into
scripts/AGENTS.md and images/AGENTS.md; the contributor docs point to the
new files.

Closes #182

Assisted-by: Claude Code:claude-opus-5-5
2026-11-22 15:42:51 +00:00
Defame1297 66f8a8e0f2 Merge remote-tracking branch 'origin/main' into docs/189-contributor-doc-split
Build / build (pull_request) Successful in 15s
Lint / lint (pull_request) Successful in 46s
Molecule / molecule (pull_request) Successful in 3s
# Conflicts:
#	CONTRIBUTING.md
2026-11-22 08:45:05 +00:00
Defame1297 95b5bf0c94 docs(contributing): split the contributor docs into CONTRIBUTING.md and docs/contributing/
Build / build (pull_request) Canceled after 0s
Lint / lint (pull_request) Canceled after 0s
Molecule / molecule (pull_request) Canceled after 0s
CONTRIBUTING.md becomes a short entry point: the two positions and an
index. The rules move to one file per trigger in docs/contributing/
(setup, making a change, AI assistance, code style, reviewing), each
written as the rule, its reason and how it is held. GLOSSARY.md gains
Driver, Unattended agent and Agent account. CLAUDE.md's bot-branch note
now points to the new rule against pushing to someone else's branch.

Closes #189

Assisted-by: Claude Code:claude-opus-5-5
2026-11-22 08:42:29 +00:00
Defame1297andClaude Opus 5.5 0837cc387f ci(gitea): warn before the Gitea release key stops verifying releases
Build / build (pull_request) Successful in 15s
Gitea release key / check (pull_request) Successful in 9s
Lint / lint (pull_request) Successful in 51s
Molecule / molecule (pull_request) Canceled after 36s
The gitea role accepts a release only when it carries a valid signature by
gitea_gpg_key_id or one of its subkeys, so an expired, revoked or replaced
Gitea release key makes every install and update fail closed, without
warning, on the day it happens.

scripts/check_gitea_release_key.py reads the pins from the role defaults,
fetches the release key into a throwaway keyring and only the .asc of the
pinned release (never the binary), and fails when the primary key or a
signing subkey expires within 60 days, is revoked or expired, or when a
signature in the .asc is not by a valid signing key of the pinned key. Its
docstring says what to do on a failure.

The Gitea release key workflow runs it weekly, by hand, and on pull requests
that change the role defaults or the check, so a gitea_version bump is
checked against the new release's signature. It runs in the ci image at the
pin of lint.yml; that image has gpgv but not gpg, so the job installs gpg and
gpg-agent from the Ubuntu archive per run instead of making the check an
image input. The tests that make keys skip without gpg, so the Lint job's
unittest run (no gpg) still covers the parsing and rendering tests.

The workflow pins the ci image, so it joins the pin consumers of
check_image_versions.py and check_bot_pr_diff.py: Renovate's pin follow-up
edits every workflow, and the bot-diff gate would otherwise refuse that pull
request. The new workflow and script are on the molecule selector's IGNORED
list, since no scenario reads them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-11-22 07:29:31 +00:00
Defame1297andClaude Opus 5.5 8a785b95ae docs(adr): word the secrets rule as at most one workflow
Build / build (pull_request) Successful in 12s
Lint / lint (pull_request) Successful in 40s
Molecule / molecule (pull_request) Successful in 1s
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-21 22:10:59 +00:00
Defame1297andClaude Opus 5.5 3ddbc751b5 docs(adr): state held-by on every layer and tighten the register
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-21 22:10:14 +00:00
Defame1297andClaude Opus 5.5 e36872c255 docs(adr): record the threat model as ADR 0001
ADR 0001 records the stance: actors and how far each is defended, assets,
the trust boundary, least-privilege targets, the layers against a pull
request that removes its own gate, and what is not done. The accepted
risks go to a new register in SECURITY.md, one entry per risk with why it
is accepted, its trigger and its planned reduction.

Closes #143

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-21 22:08:28 +00:00
Defame1297andClaude Opus 5.5 e45b92551a ci: lint workflows with zizmor
Add zizmor (v1.32.0, pinned by SHA) as a pre-commit hook over
.gitea/workflows, offline at its default level; it fails on
pull_request_target and on ${{ }} expanded into run:. The ci image
bakes and smoke-tests the new hook environment, so its version moves
to 0.2.32.

image.yml drops `packages: write` and the job-token probe: Gitea 28
refuses the job token for organisation packages, and the latest build
used the org push token. One probe of that token now fails fast.

Refs #145

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-21 18:52:22 +00:00
Defame1297andClaude Fable 5.2 dfeb423db1 docs: remove the ADR 0004 citations
Build / build (pull_request) Successful in 15s
Lint / lint (pull_request) Successful in 49s
Molecule / molecule (pull_request) Successful in 15m15s
The comments and docstrings that cited a document outside this
repository now state their reason inline or nothing. No pointer to a
future ADR is added, and no behaviour changes.

Closes #128

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-21 06:22:57 +00:00
Defame1297andClaude Fable 5.2 3384ff2836 docs: remove references to anything outside this repository
Build / build (pull_request) Successful in 17s
Lint / lint (pull_request) Successful in 1m3s
Molecule / molecule (pull_request) Successful in 15m33s
This repository is public and stands alone. Comments and prose no longer
describe another repository, its documents, hosts, network or runner
sizing; each one states its own reason or is gone.

- Workflow headers keep the conclusions (disposable runner with no
  outside secret, the if: guard is not a boundary, no fork pull
  requests, the image build's memory cap) and drop the description.
- Isolation lines are worded as a property of this repository.
- The denied image namespace stays in check_image_versions.py, described
  only as a namespace this repository's CI must not use.
- CLAUDE.md and CONTRIBUTING.md gain the standing rule and the search to
  run when bringing content in from another repository.
- ci image 0.2.29 -> 0.2.30: .pre-commit-config.yaml and
  requirements-dev.txt are image inputs.

The ADR 0004 pointers, the README Roadmap, the skills-source mentions
and released changelog entries stay as they are.

Closes #108

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-20 22:57:17 +00:00
Defame1297andClaude Sonnet 5.5 b0607a39e2 ci(python): one Python (3.14) for the lock, a clone and the ci image
Build / build (pull_request) Successful in 14s
Molecule / molecule (pull_request) Canceled after 0s
Lint / lint (pull_request) Canceled after 56s
.python-version (3.14) is the source. dev-setup.sh and lock-requirements.sh
require exactly that minor; the ci image builds /opt/venv from its baked
python-build-standalone of that version (ARG PYTHON_VERSION) instead of the
distribution's python3, and derives the python<MINOR> links for
ansible-test from it; `check_image_versions.py pins` fails when
.python-version, the lock header or an `ARG PYTHON_VERSION` differs.
The lock already carries the 3.14 header (Renovate's -full container runs
pip-compile on its own python 3.14.8); renovate.yml now says that python's
minor version must equal .python-version. ci image 0.2.25 -> 0.2.26.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-16 07:42:45 +00:00
Dragonish 4058978353 ci(deps): pin hook revisions by SHA and install dev tools from a hashed lock
Build / build (pull_request) Successful in 10s
Lint / lint (pull_request) Successful in 1m42s
Molecule / molecule (pull_request) Successful in 5m23s
Refs #113.

- .pre-commit-config.yaml: every hook repo is pinned by commit SHA with the release in a
  `# frozen:` comment, so a moved tag cannot change the code a hook environment is built from.
- requirements-dev.lock: hashed lock of requirements-dev.txt. Installs use
  `pip install --require-hashes -r requirements-dev.lock -r requirements-dev.txt` (dev-setup.sh,
  the ci image, the fallback install of Lint and Build): pip refuses an unhashed package and any
  disagreement between the two files.
- scripts/lock-requirements.sh regenerates the lock (pinned pip and pip-tools, --upgrade mode).
- renovate.json: the pip-compile manager replaces pip_requirements for the lock, plus a weekly,
  never automerged lock-file maintenance PR for transitive packages. Not yet dry-run on Renovate.
- check_bot_pr_diff.py accepts `rev: <sha>  # frozen: <tag>` and lock entries, hashes and plain
  comments, but not a changed pip-compile header command.
- ci image 0.2.18 -> 0.2.19 (image inputs changed).
2026-11-14 16:52:38 +00:00
Defame1297andClaude Sonnet 5.5 cd5c2353fc fix(images): prune the unused Go binaries from the ci image
Build / build (pull_request) Successful in 12s
Lint / lint (pull_request) Successful in 48s
Molecule / molecule (pull_request) Successful in 2s
The push of ci 0.2.16 failed with 413 Payload Too Large from Cloudflare: its /opt/pre-commit layer, 75.5 MB compressed in 0.2.15, grew past the 100 MB limit with the ruff and shellcheck-py environments. About half of that layer was binaries no hook runs: pre-commit installs every main package of a Go hook repository, which leaves gitleaks' config and actionlint's check-checks and generate-* next to the gitleaks and actionlint binaries the hooks call.

Delete everything in each golangenv-*/bin except those two, before the smoke test that runs all six hooks, so a wrongly deleted binary fails the image build. Replicated locally with this repository's hook config: the pre-commit home goes from 89.9 MB to 57.3 MB compressed (gzip -6, about 9% under what the registry stores) and all six hooks still pass. The build now also prints the compressed size of each directory a later COPY turns into a layer, the figure the limit applies to.

ci 0.2.16 was never published (the push failed), so it is skipped: 0.2.16 -> 0.2.17, which the bump check requires because the matrix on main already says 0.2.16.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 15:14:53 +00:00
Defame1297andClaude Sonnet 5.5 8fb7148129 ci(images): bake the pinned collections into the ci image
Add requirements.yml, a Kamino-owned file with exact pins for the collections the
roles call (community.general 14.0.0, ansible.posix 2.2.2), and install it into
/opt/collections of the ci image (#118). Lint sets ANSIBLE_COLLECTIONS_PATH to it,
so ansible-lint --offline resolves the modules and mock_modules is dropped. The file
joins /opt/ci-pins.sha256: a pull request that changes a pin installs the collections
for its own run, as it does for requirements-dev.txt. mock_roles stays (step 5 of #118).

The install scopes ANSIBLE_COLLECTIONS_PATH to its target: ansible-galaxy skips a
collection it finds elsewhere on the path as already installed, so the image would
otherwise miss any that the build host happens to have.

Image input: ci 0.2.15 -> 0.2.16 (one bump for this change and the ruff and
shellcheck hooks of #112, which are also baked into the image). requirements.yml
is added to the image.yml push paths so that a pin change rebuilds the image.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 13:50:57 +00:00
Defame1297andClaude Sonnet 5.5 0a3ff387d7 ci(images): preinstall gnupg in molecule-ubuntu2404
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 21s
Molecule / molecule (pull_request) Successful in 1s
The docker scenario installs gnupg in prepare to sign its stand-in APT
repository, which costs an apt update and an install in every run (about 10 s of
its 12 s prepare); system_baseline installs it among its essential packages. It
is now part of the image, version 0.1.6.

Image input only: the consumers' pins, the docker prepare task and the
image-smoke contract move in the pin follow-up pull request, once the build on
main has printed the new digest.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 12:40:40 +00:00
Defame1297andClaude Fable 5.2 0a4a7c887c docs(agents): claim tickets as the session's driver
Build / build (pull_request) Successful in 12s
Lint / lint (pull_request) Successful in 18s
Molecule / molecule (pull_request) Successful in 4m46s
A claim is assigned to whoever drives the session, so the tracker doc
names a role and works for every contributor.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-11 22:23:21 +00:00
Defame1297andClaude Fable 5.2 427a661109 docs(agents): describe wayfinding on the Gitea tracker
Build / build (pull_request) Successful in 10s
Lint / lint (pull_request) Successful in 17s
Molecule / molecule (pull_request) Successful in 4m48s
Blocking now uses Gitea's native dependencies, and the tracker doc gains
the wayfinding operations (map, tickets, claim, frontier, resolve) that
the map in #87 relies on.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-11 22:08:55 +00:00
Defame1297andClaude Sonnet 5.5 65ec310f98 docs(agents): configure the engineering skills for Gitea
Build / build (pull_request) Successful in 10s
Lint / lint (pull_request) Successful in 21s
Molecule / molecule (pull_request) Successful in 4m47s
Record where the engineering skills find the issue tracker (Gitea Issues on
mortis/kamino), the triage label mapping (the repo's scoped Status/ and
Reviewed/ labels) and the domain-docs layout (single-context), and point to
them from an Agent skills section in CLAUDE.md.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-11 20:06:53 +00:00
Defame1297andClaude Sonnet 5.5 79a78f2921 docs: prepare the repository for publication
Build / build (pull_request) Failing after 4s
Lint / lint (pull_request) Failing after 12s
Molecule / molecule (pull_request) Successful in 1m8s
Rewrite stale gate wording and trim private references so the repository
can be made public.

- molecule.yml header: the runner sits in an isolated network segment, not
  behind the Proxmox firewall; state that a fork PR's workflow started
  without approval in a live test (unproven for outsiders) and that the
  `if:` guard is a convenience, not a boundary. Fork PRs are not claimed
  disabled; the repository should not accept them from untrusted users.
- CONTRIBUTING.md: same fork PR statement.
- SECURITY.md: new, with a TODO(operator) for the reporting contact.
- CLAUDE.md trimmed. Removed: the private environment-repo links and issue
  numbers, the two-sentence extraction history, run numbers, the registry
  push secret names and the Renovate token name and scopes, the Renovate
  dry-run and first-live-run narrative, the runner hostname and the
  cron time. Kept: git -C and commit-with-git rules, runner labels, image
  and Renovate rules.
- ADR 0004 references in workflows and scripts now say it lives in the
  maintainer's environment repository; docs/images/ci.md drops "private".

Comment and doc text only; image pins, the bot e-mail and runner labels
are unchanged.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-11-08 17:38:58 +00:00
Defame1297andClaude Sonnet 5.5 aa1848a995 fix(image): act on the review of the image metadata
Build / build (pull_request) Failing after 10s
Lint / lint (pull_request) Successful in 13s
Molecule / molecule (pull_request) Successful in 58s
Label parser: split the LABEL instruction like a shell (a value may hold NAME=value text), read
the last stage only, require base.name and tie it to the FROM tag, require the documentation
link to be <source>/src/branch/main/docs/images/<name>.md and the page to be non-empty.
Docs: do not name a Python version the base may not ship, show the lint.yml pin check as it
is, say which workflow paths start a build, name the system-language local hooks, add the
apparmor option and the registry path to the molecule usage, and soften unverified Renovate
and host-release statements.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-26 19:32:03 +00:00
Defame1297andClaude Sonnet 5.5 c3c665e799 feat(image): describe every image: labels, a readme page and build metadata
The registry page shows the description as plain text, every label, and links to source,
documentation and licence; it renders no readme. Each Dockerfile now carries one label
block (title, description, source, url, documentation, licenses, authors, base.name and
net.rkdr.mortis.purpose/contents/usage), the build adds version, revision and created, and
docs/images/<name>.md says what the image is for, what it contains and how to use it.
check_image_versions.py pins fails when a label or that page is missing. The labels are
image inputs, so the three images get their PATCH bump.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-26 19:27:15 +00:00