refactor: cut scripts, workflow headers and comments down to the code-style rules #171

Open
opened 2026-11-15 14:29:31 +00:00 by Claude · 3 comments
Owner

Spec: Guiding principles for agents and humans, section 4 (code style outside roles). This was waiting on CI image pipeline: keep, simplify or replace, which decided what of the image machinery survives. It comes after the issues that rewrite those files:

What

Bring existing scripts under scripts/, workflow headers under .gitea/workflows/ and Dockerfile comments under images/ to the five code-style rules:

  1. Existing tool first.
  2. One job per file, readable in one sitting.
  3. A comment gives the reason, in a line or two.
  4. Write for the next reader, not the record: no incident history or change narration.
  5. Change only what the task needs.

Two things stay:

  • The review-held soft numbers apply: comment blocks over 5 lines, and files over 200 lines, are justified or cut.
  • The ci image's measured-saving note stays (the "recorded speed" rule).

Split into one PR per directory if a single PR gets hard to review.

Acceptance

  • Lint and Build are green.
  • No behaviour change: a pull request that changes logic is out of scope here.
Spec: [Guiding principles for agents and humans](https://git.rkdr.net/Mortis/Kamino/issues/91), section 4 (code style outside roles). This was waiting on [CI image pipeline: keep, simplify or replace](https://git.rkdr.net/Mortis/Kamino/issues/96), which decided what of the image machinery survives. It comes after the issues that rewrite those files: - [ci(images): assign image versions in CI and open the pin PR right after a push](https://git.rkdr.net/Mortis/Kamino/issues/165) - [refactor(images): one molecule Dockerfile, image docs next to the images, check_image_versions.py pins only](https://git.rkdr.net/Mortis/Kamino/issues/169) - [ci(molecule): isolate Molecule runs per run and stop running Molecule on push to main](https://git.rkdr.net/Mortis/Kamino/issues/166) - [test(molecule): bake prepare.yml fixtures into the molecule images](https://git.rkdr.net/Mortis/Kamino/issues/170), which rewrites Dockerfile comments and labels - [ci(molecule): open an issue when the nightly full run fails and close it on the next green one](https://git.rkdr.net/Mortis/Kamino/issues/270), which edits the `molecule.yml` header ## What Bring existing scripts under `scripts/`, workflow headers under `.gitea/workflows/` and Dockerfile comments under `images/` to the five code-style rules: 1. Existing tool first. 2. One job per file, readable in one sitting. 3. A comment gives the reason, in a line or two. 4. Write for the next reader, not the record: no incident history or change narration. 5. Change only what the task needs. Two things stay: - The review-held soft numbers apply: comment blocks over 5 lines, and files over 200 lines, are justified or cut. - The `ci` image's measured-saving note stays (the "recorded speed" rule). Split into one PR per directory if a single PR gets hard to review. ## Acceptance - Lint and Build are green. - No behaviour change: a pull request that changes logic is out of scope here.
Claude added the
Status
Ready for Agent
label 2026-11-15 14:29:31 +00:00
Claude added this to the Continuous delivery milestone 2026-11-15 22:21:21 +00:00
Author
Owner

Review of the map (2026-11-15): corrections to this issue.

  • Dockerfile comment edits rebuild the images. The issue edits "Dockerfile comments under images/" and accepts on "No behaviour change". Every file under images/ is an image input (CLAUDE.md "Two-PR loop for an image input"), so a comment-only edit still produces a new image version, a build on the shared runner, and a pin pull request. That holds after ci(images): assign image versions in CI and open the pin PR right after a push too, which publishes a new patch whenever the input checksum changes. Change: say so in the issue, keep all Dockerfile comment edits in one pull request so each image is rebuilt once, and list the expected new image versions in the PR.
Review of the map (2026-11-15): corrections to this issue. - **Dockerfile comment edits rebuild the images.** The issue edits "Dockerfile comments under `images/`" and accepts on "No behaviour change". Every file under `images/` is an image input (`CLAUDE.md` "Two-PR loop for an image input"), so a comment-only edit still produces a new image version, a build on the shared runner, and a pin pull request. That holds after [ci(images): assign image versions in CI and open the pin PR right after a push](https://git.rkdr.net/Mortis/Kamino/issues/165) too, which publishes a new patch whenever the input checksum changes. Change: say so in the issue, keep all Dockerfile comment edits in one pull request so each image is rebuilt once, and list the expected new image versions in the PR.
Claude added a new dependency 2026-11-17 17:08:33 +00:00
Claude removed a dependency 2026-11-20 21:25:58 +00:00
Author
Owner

Body edited on 2026-11-20 (final validation round of the map, #87 (comment)): the link text for #166 now uses that issue's current title instead of its old one.

Body edited on 2026-11-20 (final validation round of the map, https://git.rkdr.net/Mortis/Kamino/issues/87#issuecomment-12281): the link text for #166 now uses that issue's current title instead of its old one.
Author
Owner

Final validation round, second pass (2026-11-20): body edited, dependencies added.

  • Added blocked_by #170 (rewrites Dockerfile comments and labels) and blocked_by #270 (edits the molecule.yml header). Both change files this issue cuts afterwards.
  • Both are added to the body's "comes after" list.
Final validation round, second pass (2026-11-20): body edited, dependencies added. - Added blocked_by [#170](https://git.rkdr.net/Mortis/Kamino/issues/170) (rewrites Dockerfile comments and labels) and blocked_by [#270](https://git.rkdr.net/Mortis/Kamino/issues/270) (edits the `molecule.yml` header). Both change files this issue cuts afterwards. - Both are added to the body's "comes after" list.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: Mortis/Kamino#171