Commit Graph
552 Commits
Author SHA1 Message Date
Defame1297 de16995f35 ci(pre-commit): refuse CLAUDE.md files by hook
Claude Code reads CLAUDE.md in place of AGENTS.md, so a stray CLAUDE.md,
CLAUDE.local.md or .claude/CLAUDE.md at any depth leaves an agent without
this repository's guidance, and nothing reports it. A language: fail hook
refuses such a file at commit time.

Refs: #244

Assisted-by: Claude Code
2026-11-23 19:14:00 +00:00
Defame1297 bca13f4139 Merge pull request 'feat(gitea_runner): bound the Docker image cache by count and disk usage' (#328) from feat/319-docker-prune-count-threshold into main
Build / build (push) Successful in 17s
Lint / lint (push) Successful in 1m16s
Molecule / molecule (push) Canceled after 8m2s
Reviewed-on: #328
Reviewed-by: Defame1297 <[email protected]>
2026-11-23 19:06:42 +00:00
Defame1297 35f7e772a5 Merge branch 'main' into feat/319-docker-prune-count-threshold
Build / build (pull_request) Successful in 16s
Lint / lint (pull_request) Successful in 1m48s
Molecule / molecule (pull_request) Successful in 2m32s
2026-11-23 18:41:11 +00:00
Defame1297 ee4cb160ea test(gitea_runner): pin the disk check and refused-input messages
Build / build (pull_request) Canceled after 0s
Lint / lint (pull_request) Canceled after 0s
Molecule / molecule (pull_request) Canceled after 0s
The weekly schedule and image age cases matched text the disk check
schedule message also holds; match each assert's own message. Add a
case at exactly the root's use so the strict comparison is pinned, and
check the below message so a df failure cannot pass for it.

Refs #319

Assisted-by: Claude Code
2026-11-23 18:35:53 +00:00
Defame1297 e91c074373 fix(gitea_runner): address review of the prune count and threshold
Give each new input its own assert message so every refused-input case
matches only its own input, and cover a negative count and a bad disk
check schedule. Fire the pressure prune only above the threshold, as
the inputs describe it. Name the disk check script apart from the
pressure service, prefix the new registers as internal, and keep the
new comments short.

Refs #319

Assisted-by: Claude Code
2026-11-23 18:20:32 +00:00
Defame1297 9b968e1e71 Merge pull request 'fix(system_baseline): do not report a pending package upgrade as drift in check mode' (#323) from fix/321-system-baseline-check-mode into main
Build / build (push) Successful in 17s
Lint / lint (push) Successful in 1m29s
Molecule / molecule (push) Successful in 14m48s
Reviewed-on: #323
Reviewed-by: Defame1297 <[email protected]>
2026-11-23 18:09:58 +00:00
Defame1297 637a297e00 Merge branch 'main' into fix/321-system-baseline-check-mode
Build / build (pull_request) Successful in 18s
Lint / lint (pull_request) Successful in 2m50s
Molecule / molecule (pull_request) Successful in 1m38s
2026-11-23 18:05:02 +00:00
Defame1297 f50ecc2945 feat(gitea_runner): bound the Docker image cache by count and disk usage
An age-based prune does not cap disk use: the cache grows with how often
new image versions are published, and builds on the runner then fail for
lack of space. Keep the newest N image IDs per repository in the weekly
prune, and add an hourly pressure prune that runs the count prune and a
capped builder prune when the Docker root's filesystem passes a
threshold, behind the same job gate. Both are off by default.

Refs #319

Assisted-by: Claude Code
2026-11-23 18:04:50 +00:00
kamino-renovate Bot 8e512416e9 Merge pull request 'chore(deps): update git.rkdr.net/mortis/ci docker tag to v0.2.34' (#311) from renovate/git.rkdr.net-mortis-ci-0.x into main
Build / build (push) Successful in 1m7s
Lint / lint (push) Successful in 1m13s
2026-11-23 17:54:59 +00:00
Dragonish 55bd5d5231 fix(system_baseline): do not report a pending package upgrade as drift in check mode
Build / build (pull_request) Successful in 17s
Molecule / molecule (pull_request) Successful in 1m52s
Lint / lint (pull_request) Successful in 2m8s
The main flow skips the apt upgrade in check mode; autoremove and
autoclean are a task of their own and stay checked. The update entry
point is unchanged and still previews the upgrade.

Assisted-by: Claude Code
2026-11-23 17:54:58 +00:00
Defame1297 dab942afde Merge branch 'main' into renovate/git.rkdr.net-mortis-ci-0.x
Build / build (pull_request) Successful in 22s
Gitea release key / check (pull_request) Successful in 7s
Lint / lint (pull_request) Successful in 1m12s
Molecule / molecule (pull_request) Successful in 1s
2026-11-23 17:52:30 +00:00
Defame1297 344bf33ca1 Merge pull request 'chore(deps): update ubuntu:24.04 docker digest to 9c7f200' (#310) from renovate/job-container-ubuntu-24.04 into main
Build / build (push) Successful in 23s
Images / image (Dockerfile, ubuntu:24.04@sha256:9c7f200c07e3d4a03e7249d2c16bf66a51120fb876aa2242cf31451412543289, molecule-ubuntu2404, images/molecule-ubuntu2404, 0.1.9) (push) Successful in 18s
Lint / lint (push) Successful in 1m40s
Images / image (Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-ubuntu2604, images/molecule-ubuntu2604, 0.1.5) (push) Successful in 11s
Images / image (images/ci/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, ci, , 0.2.35) (push) Successful in 11s
Reviewed-on: #310
2026-11-23 17:45:33 +00:00
Defame1297 3695d2dc6b Merge branch 'main' into renovate/job-container-ubuntu-24.04
Build / build (pull_request) Successful in 19s
Lint / lint (pull_request) Successful in 1m31s
Molecule / molecule (pull_request) Successful in 4s
2026-11-23 17:43:35 +00:00
Defame1297 3f2d184922 Merge pull request 'docs: follow-ups from #318 (bot-diff wording, glossary scope, standalone roadmap)' (#320) from docs/215-followups into main
Build / build (push) Successful in 21s
Lint / lint (push) Successful in 1m27s
Reviewed-on: #320
Reviewed-by: Defame1297 <[email protected]>
2026-11-23 17:30:08 +00:00
Defame1297 a0a871e3f9 docs(readme): drop the private-repository reference from the roadmap
Build / build (pull_request) Successful in 17s
Lint / lint (pull_request) Successful in 1m54s
Molecule / molecule (pull_request) Successful in 1s
The public-place rule bars naming another of the maintainer's
repositories, its issues or its decisions; the roadmap stands alone
without them.

Assisted-by: Claude Code
2026-11-23 17:12:24 +00:00
Defame1297 51f5be20a4 docs(glossary): widen the opening line to the role terms
The glossary now holds the role terms (Role interface, Internal role),
which the opening line left out.

Assisted-by: Claude Code
2026-11-23 17:12:15 +00:00
Defame1297 07fb8a6d21 chore: call the bot-diff check by its name outside the docs
The glossary avoids gate and guard; the check is
scripts/check_bot_pr_diff.py, so name it as the docs now do.

Assisted-by: Claude Code
2026-11-23 17:12:09 +00:00
Defame1297 9c7b7e6e9e Merge branch 'main' into renovate/job-container-ubuntu-24.04
Build / build (pull_request) Successful in 18s
Lint / lint (pull_request) Successful in 1m45s
Molecule / molecule (pull_request) Successful in 2s
2026-11-23 17:00:22 +00:00
Defame1297 c438d40bbe Merge pull request 'docs(glossary): widen control and define review, aspirational, scheduled merge and the role terms' (#318) from docs/215-glossary-control into main
Build / build (push) Successful in 20s
Lint / lint (push) Successful in 2m6s
Molecule / molecule (push) Failing after 14m38s
Reviewed-on: #318
Reviewed-by: Defame1297 <[email protected]>
2026-11-23 16:59:59 +00:00
Defame1297 10c14898f2 Merge branch 'main' into docs/215-glossary-control
Lint / lint (pull_request) Successful in 1m24s
Molecule / molecule (pull_request) Successful in 2s
Build / build (pull_request) Successful in 18s
2026-11-23 16:54:47 +00:00
kamino-renovate Bot 4c6dbf41bd Merge pull request 'chore(deps): update ubuntu:24.04 docker digest to 9c7f200' (#309) from renovate/ubuntu-24.04 into main
Build / build (push) Successful in 20s
Images / image (Dockerfile, ubuntu:24.04@sha256:73b999393d07f2bf65a40373778a44dc9a6d54ad7718d29247d8ff9413c4d6a8, molecule-ubuntu2404, images/molecule-ubuntu2404, 0.1.9) (push) Successful in 33s
Lint / lint (push) Successful in 1m34s
Images / image (Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-ubuntu2604, images/molecule-ubuntu2604, 0.1.5) (push) Successful in 10s
Images / image (images/ci/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, ci, , 0.2.35) (push) Successful in 9s
2026-11-23 16:54:31 +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 1edad97c0d Merge branch 'main' into renovate/ubuntu-24.04
Build / build (pull_request) Successful in 20s
Lint / lint (pull_request) Successful in 1m33s
Molecule / molecule (pull_request) Successful in 2s
2026-11-23 16:38:12 +00:00
Claude 50c881fa7c Merge pull request 'chore(release): 1.11.0' (#317) from chore/release-1.11.0 into main
Lint / lint (push) Successful in 2m1s
Molecule / molecule (push) Successful in 14m10s
Build / build (push) Successful in 22s
v1.11.0
2026-11-23 16:35:37 +00:00
Defame1297 282c010167 chore(release): 1.11.0
Build / build (pull_request) Successful in 17s
Lint / lint (pull_request) Successful in 1m29s
Molecule / molecule (pull_request) Successful in 13m21s
Minor release that adds the cloudflared role (#316).

Assisted-by: Claude Code:claude-opus-5-5
2026-11-23 16:03:41 +00:00
Defame1297 db237569b2 Merge pull request 'feat(cloudflared): add the cloudflared role' (#316) from feat/cloudflared-role into main
Build / build (push) Successful in 17s
Lint / lint (push) Successful in 2m56s
Molecule / molecule (push) Successful in 14m34s
Reviewed-on: #316
Reviewed-by: Defame1297 <[email protected]>
2026-11-23 16:02:40 +00:00
Defame1297 42c391ccbe fix(cloudflared): quote the mint POST status assertion in verify.yml
Build / build (pull_request) Successful in 17s
Lint / lint (pull_request) Successful in 1m39s
Molecule / molecule (pull_request) Successful in 2m20s
The plain scalar `cloudflared_test_posts[0] is search('"status": 200')`
holds ': ', so YAML parsed it as a one-key mapping and ansible-core
refused it ("Conditional expressions must be strings"). A folded block
scalar keeps it a string.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-23 15:56:30 +00:00
Defame1297 701226f499 fix(cloudflared): escape the stub's shell variables in molecule.yml
Build / build (pull_request) Successful in 19s
Lint / lint (pull_request) Successful in 1m23s
Molecule / molecule (pull_request) Failing after 2m21s
molecule interpolates environment variables in molecule.yml, so `$1`
and `$*` in the embedded stub script failed the config parse ("Invalid
placeholder") before any step ran. `$$` renders as a literal `$`.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-23 15:11:21 +00:00
Defame1297 92534a486e test(cloudflared): stop the API stub only while its pid is still the stub
Build / build (pull_request) Successful in 17s
Lint / lint (pull_request) Successful in 2m11s
Molecule / molecule (pull_request) Failing after 1s
Cleanup now checks /proc/<pid>/cmdline before it signals the pid, so a
reused pid is never killed, and removes the pid file afterwards.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-23 14:57:34 +00:00
Defame1297 eaa5d2f4ee fix(cloudflared): query DNS per hostname and validate config.yml first
The overwrite guard listed the zone's first 100 records only, so a
record further on went unseen. It now queries each ingress hostname by
name and compares names case-insensitively, and the prune listing pages
through result_info.total_pages. Query values are urlencoded. The
template task validates config.yml with cloudflared before it replaces
the file; the rendered content is unchanged. The API stub filters by
name and pages to match.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-23 14:55:59 +00:00
Defame1297 fd1e9b67dd fix(cloudflared): refuse unsafe hostnames, names, paths and tunnel ids
Ingress hostnames must be lowercase, with an optional leading *. and no
whitespace: they land unquoted in config.yml. The service account names
and directories must hold no newline or %, which the unit would read as
directives, and the directories must be absolute. A set tunnel id must
be a lowercase UUID, the shape the stale-credentials search relies on.
Each refusal has a negative case in the scenario.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-23 14:51:13 +00:00
Defame1297 ee0fa0e89e test(cloudflared): cover a tunnel lookup that fails with another status
Assisted-by: Claude Code:claude-opus-5-5
2026-11-23 14:22:22 +00:00
Defame1297 fea99a8207 fix(cloudflared): reach the re-mint message after a 404 tunnel lookup
A lookup that still returned 404 after its retries failed the lookup
task itself, whose output no_log hides, so the message with the re-mint
steps never ran. The lookup now ignores its own failure; the next task
fails with the re-mint steps for a 404 or a deleted tunnel, and a new
one fails with the HTTP status for any other lookup error.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-23 14:22:22 +00:00
Defame1297 d73b5b03dd docs(readme): add cloudflared to the _binary_update callers
The role is in the Collection now, so it leaves the wave 2 Roadmap
line, and the status line names it as an unreleased caller of the
internal _binary_update role.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-23 14:22:22 +00:00
Defame1297 9a626962a5 test(cloudflared): add the default molecule scenario
Runs without Cloudflare and without a real cloudflared: a stub of the
Cloudflare API on the controller's loopback answers the tunnel, zone and
DNS record calls through cloudflared_api_base_url, a stub binary stands
in for the daemon, and the releases come from file:// URLs.

Covers the converge with an update through _binary_update and its
idempotence, the rendered files and the running unit, the input asserts,
the deleted-tunnel and DNS guards, a stale hash and a failed checksum,
the mint entry point (as child processes outside CI) and the remove
path. The cloudflare_dns calls cannot reach the stub and are not run.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-23 14:22:16 +00:00
Defame1297 e308683431 feat(cloudflared): add the cloudflared role
Installs cloudflared as a systemd service for a locally managed
Cloudflare Tunnel: checks that the tunnel exists, manages its proxied
CNAMEs, renders config.yml and the credentials file, and updates the
binary through the internal _binary_update role. The opt-in mint entry
point creates the tunnel and registers its id and credentials as no_log
facts for the calling play to persist.

Validation runs first under always and asserts the tunnel secrets with
the mint instructions; the secrets stay optional in the argument spec on
purpose. cloudflared_manage_dns lets the records be managed elsewhere.
A removal now ends the role.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-23 14:22:16 +00:00
Dragonish 560dc620a3 Merge pull request 'chore(release): 1.10.2' (#315) from chore/release-1.10.2 into main
Lint / lint (push) Successful in 2m15s
Molecule / molecule (push) Successful in 11m53s
Build / build (push) Successful in 18s
Reviewed-on: #315
Reviewed-by: Defame1297 <[email protected]>
v1.10.2
2026-11-23 14:04:10 +00:00
Defame1297 749a301e12 Merge branch 'main' into chore/release-1.10.2
Build / build (pull_request) Successful in 16s
Lint / lint (pull_request) Successful in 1m18s
Molecule / molecule (pull_request) Successful in 11m58s
2026-11-23 13:50:35 +00:00
Defame1297 e10c973dc5 Merge pull request 'chore(agents): make Claude Code write Assisted-by instead of Co-Authored-By' (#313) from chore/claude-attribution-settings into main
Build / build (push) Successful in 17s
Lint / lint (push) Successful in 1m40s
Reviewed-on: #313
Reviewed-by: Defame1297 <[email protected]>
2026-11-23 13:06:01 +00:00
Defame1297 55e0f6ad93 Merge branch 'main' into chore/claude-attribution-settings
Build / build (pull_request) Successful in 17s
Lint / lint (pull_request) Successful in 1m13s
Molecule / molecule (pull_request) Successful in 11m57s
2026-11-23 12:50:43 +00:00
Dragonish 4bc176656a chore(release): 1.10.2
Build / build (pull_request) Successful in 16s
Lint / lint (pull_request) Successful in 1m17s
Molecule / molecule (pull_request) Successful in 11m54s
Patch release for the systemd_hardening socket handling (#308, #314).

Assisted-by: Claude Code
2026-11-23 12:33:35 +00:00
Defame1297 0bdb0bf33f Merge pull request 'fix(systemd_hardening): disable and mask the socket of a listed service too' (#314) from fix/308-systemd-hardening-sockets into main
Build / build (push) Successful in 17s
Lint / lint (push) Successful in 1m20s
Molecule / molecule (push) Successful in 11m56s
Reviewed-on: #314
2026-11-23 12:13:56 +00:00
Dragonish f256c1c7e5 fix(systemd_hardening): disable and mask the socket of a listed service too
Build / build (pull_request) Successful in 18s
Lint / lint (pull_request) Successful in 1m11s
Molecule / molecule (pull_request) Successful in 1m2s
Look up every listed name as a socket and as a service and act on each
installed unit, the socket first. A service whose socket stays active is
started again by the next connection to its port.

Assisted-by: Claude Code
2026-11-23 11:18:49 +00:00
Defame1297 5d9a26c1a6 Merge branch 'main' into chore/claude-attribution-settings
Build / build (pull_request) Successful in 18s
Lint / lint (pull_request) Successful in 1m30s
Molecule / molecule (pull_request) Successful in 11m34s
2026-11-23 10:45:51 +00:00
Defame1297 545f2fe94a Merge pull request 'chore(deps): refresh pip-compile outputs' (#306) from renovate/pip-compile-refresh into main
Build / build (push) Successful in 17s
Images / image (Dockerfile, ubuntu:24.04@sha256:73b999393d07f2bf65a40373778a44dc9a6d54ad7718d29247d8ff9413c4d6a8, molecule-ubuntu2404, images/molecule-ubuntu2404, 0.1.8) (push) Successful in 12m46s
Lint / lint (push) Successful in 1m20s
Images / image (Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-ubuntu2604, images/molecule-ubuntu2604, 0.1.5) (push) Successful in 10m10s
Images / image (images/ci/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, ci, , 0.2.35) (push) Successful in 16m2s
Reviewed-on: #306
2026-11-23 10:45:41 +00:00
Defame1297 fa661be5c2 ci(molecule): skip scenarios for a change under .claude/ only
Build / build (pull_request) Successful in 14s
Molecule / molecule (pull_request) Canceled after 0s
Lint / lint (pull_request) Canceled after 23s
No scenario reads .claude/: Claude Code reads it on a contributor's
machine. Add it to the IGNORED list beside apm.yml, so a change to the
agent settings or apm-deployed hooks no longer runs every scenario.

Assisted-by: Claude Code
2026-11-23 10:41:45 +00:00
Defame1297 bfdbc9b42b chore(agents): make Claude Code write Assisted-by instead of Co-Authored-By
Build / build (pull_request) Canceled after 0s
Lint / lint (pull_request) Canceled after 0s
Molecule / molecule (pull_request) Canceled after 0s
Set attribution in the tracked .claude/settings.json: commit and pull
request attribution become "Assisted-by: Claude Code", and sessionUrl is
false so no Claude-Session trailer or session link is added. The setting
takes only a fixed string, so the model is not named.

Closes #152

Assisted-by: Claude Code
2026-11-23 10:34:41 +00:00
renovate-bot 57de3236ea chore(deps): refresh pip-compile outputs
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 17s
Lint / lint (pull_request) Successful in 1m9s
Molecule / molecule (pull_request) Successful in 1s
2026-11-23 10:28:11 +00:00
renovate-bot 929506882e chore(deps): update git.rkdr.net/mortis/ci docker tag to v0.2.34
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 44s
Gitea release key / check (pull_request) Successful in 9m17s
Lint / lint (pull_request) Successful in 55s
Molecule / molecule (pull_request) Successful in 2s
2026-11-23 10:27:13 +00:00
renovate-bot 29f66897f2 chore(deps): update ubuntu:24.04 docker digest to 9c7f200
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 15s
Lint / lint (pull_request) Successful in 1m19s
Molecule / molecule (pull_request) Successful in 5s
2026-11-23 10:27:12 +00:00