ai-assisted-todolist

Build, release and dependencies#

Jib with a pinned Java 25 base image#

Superseded · 2026-09-25 · #14 · by #559

Since #559 there is no Jib build. The Quarkus backend went, and with it the image this chose a base for; the Go backend is built into Lambda zips (serverless/build.sh). The tag pre-serverless keeps the build. What follows is why the image was built that way.

Decision. The backend image is built by Jib onto a pinned Java 25 base image — since #66 our own jre-runtime, Temurin's JRE on UBI micro (containers-and-local-stack.md), before that eclipse-temurin:25.0.4.1_1-jre-ubi10-minimal, which the history below is about. All four Dockerfiles Quarkus generated under backend/src/main/docker/ have been deleted, along with backend/.dockerignore; the directory no longer exists.

Why. Jib needs no Dockerfile and no daemon-side build. The pin is not optional: Jib's default base ships JDK 21 and the container exited silently on class file version 69.

A broken base image download is retried, by the workflow. Quay ended the base image's download early twice on 11 October 2026 (6 MB of 63, 23 MB of 62), failing a build that had nothing wrong with it, and Jib has no setting to retry. So every workflow step that builds the image with Jib runs through .github/scripts/retry-on-broken-download.sh, which runs the build up to three times. It retries only when the output shows a download that broke off; a failing test or compile stops at the first run, with its own exit status. Re-running is harmless where the step pushes, since Jib's image comes out the same. If Quay keeps breaking off, the base image moves to GitHub's Container Registry rather than gaining more retries.

Why the Dockerfiles were deleted rather than left alone. The two JVM ones were ubi9/openjdk-17 based, so building from either would have failed on class file version 69 in exactly the way the pin exists to prevent — a trap for anyone who found them before finding this page. The two native ones were no better: equally unbuilt, and none of the four was ever exercised by a test or by CI, so nothing would have caught them rotting. Which is what happened — they sat at JDK 17 while the project moved to 25. They also cost review time: Renovate raised pull requests to advance the openjdk-17 and ubi-minimal tags on files nothing built. Verified before deleting: the only references to any of them were inside their own comment headers, every docker build in the repository targets the frontend image, the native profile also builds through Jib, and ./mvnw package -Dquarkus.container-image.build=true still produces the image afterwards on the same base image digest.

Temurin, on a Red Hat base — which is both things at once. This entry twice said something narrower. It first preferred UBI minimal with a JDK installed on top; then, when that was settled, it said a plain Temurin image and not UBI. -ubi10-minimal is the resolution rather than a reversal: the JRE is the same Temurin build the project compiles and tests with, so there is still one Java version to track, and the base underneath it is Red Hat's, which is what the preference for UBI was ever about. Installing a JDK by hand was the part worth dropping, not the base.

Why the tag is pinned to an exact build. 25-jre-ubi10-minimal moves, so two builds of the same commit could sit on different bases and only one of them fail. 25.0.4.1_1-jre-ubi10-minimal does not move.

How a pin that nobody edits stays current. Renovate, through a custom regex manager in .github/renovate.json. No built-in manager reads the value: it lives in a Quarkus properties file, and moving it into pom.xml would not have helped, because the Maven manager updates dependency versions rather than container references. Since the move to jre-runtime (#66) the manager captures the tag and the digest, and orders the <temurin>-<date> tags with a regex versioning that ignores the undated moving tags; it was checked against the real file — it resolves quay.io/ghilling/jre-runtime, the tag and the digest, with the docker datasource.

sun_checks with documented relaxations#

Superseded · 2026-09-25 · #14 · by #559

Since #559 there is no Checkstyle. It checked the Quarkus backend's Java, which went; the Go code has gofmt and go vet (Serverless CI). What follows is the Java style it enforced.

Decision. Checkstyle's sun_checks.xml as the style baseline, with a short list of relaxations recorded in the header of backend/checkstyle.xml, and type-level Javadoc required via MissingJavadocType.

Why. A standard ruleset beats a bespoke one, and the relaxations that remain each have a stated reason rather than being silently dropped. Per-member Javadoc stays optional because it fights JAX-RS and CDI code; type-level Javadoc is required because "what is this type for?" is the question that code cannot answer for itself.

Apache License 2.0, as a LICENSE file only#

Accepted · 2026-09-26 · #20

What. The full Apache-2.0 text as LICENSE, verbatim from apache.org, plus a copyright line in the README. No per-file license headers, and no enforcement of them.

Why. A permissive licence that grants patent rights and is well understood suits a project whose point is to be read. The file is unmodified, including the appendix that carries the header boilerplate template — Apache asks that the text not be altered, so the actual copyright statement lives in the README instead of being substituted into the appendix.

Rejected. Adding the boilerplate header to every .java and .ts file and failing the build on a file without one. Every other quality convention here is enforced in CI, so this is a genuine exception: it would touch every source file in the repository to restate something one file already says, and this is a single-author demo project rather than a codebase whose files get copied out individually. Also rejected, for now: a NOTICE file, which matters when redistributing someone else's Apache-licensed work and there is none here.

A release is a git tag, and the version lives nowhere else#

Accepted · 2026-09-26 · #20

Revised in part on 2026-11-15 (#559): there is no pom.xml and no ${revision} any more, and a release publishes no container images; the tag's version goes to the Go functions' TASKFEST_VERSION and the frontend build instead (releasing.md). The tag as the only place the version is written stands.

What. Pushing v1.2.3 runs release.yml, which builds at that version and publishes container images tagged 1.2.3. backend/pom.xml declares <version>${revision}</version> and the release build passes -Drevision=1.2.3. No file in the repository records a release version, before or after.

Why. The alternative flows all require editing a version and committing it — either by hand before tagging, or by a workflow that rewrites pom.xml and package.json and pushes back to main. The second needs a way around the main-branch ruleset that rejects direct pushes, and it means a release mutates the branch it is releasing. Deriving the version from the tag removes the bookkeeping entirely: main is permanently 1.0.0-SNAPSHOT and nobody has to remember to open the next development version.

Why no Maven artifact. Nothing outside this repository consumes the backend's POM, so there is no reason to publish to a Maven repository, and the one real caveat of ${revision} — that an installed POM keeps the literal property unless flatten-maven-plugin rewrites it — does not bite. It would have to be added if that ever changes.

Cost. latest still means the tip of main, because publish-images.yml already pushed it there on every merge and a release moving it would have the two workflows fighting over one tag. That is the opposite of the usual container convention and is the single most likely thing to surprise someone. doc/releasing.md says so and says where the change would go.

A release tag is annotated#

Accepted · 2026-10-30 · #333

What. release.yml's gate refuses a lightweight tag: it lists the tag on origin, where only an annotated one comes with the commit it names, which must be the one the run builds. cut-release.yml creates annotated tags, with whoever started it as the tagger and the reason for the version's step as the message, and doc/releasing.md tags by hand with git tag -a.

Why. An annotated tag says who tagged, when and why; a lightweight one is only a name for a commit, which is all git tag v1.0.0 made and all cut-release.yml made up to v1.2.0. GitHub cannot require annotated tags, so the gate does: a lightweight tag can still be pushed, but nothing is released from it.

Not yet. Who may push a v* tag at all would take a tag ruleset, which is Gunnar's to set up. A pre-push hook was left out, since nothing could enforce it.

SNAPSHOT dependencies fail every build, not just releases#

Accepted · 2026-09-26 · #20

Revised in part on 2026-11-15 (#559): the Maven half, requireReleaseDeps and requireReleaseVersion, went with the Quarkus backend. The npm check stands: gate runs it for the frontend, and Mobile CI for the app on every pull request.

What. requireReleaseDeps runs at validate on every backend build. requireReleaseVersion is release-only, in the release profile. The frontend's counterpart, scripts/check-no-prerelease-deps.mjs, fails on a semver pre-release anywhere in package-lock.json.

Why. The request was for a check that a release has no SNAPSHOT dependencies, and the narrow reading would put it only in the release path. But a SNAPSHOT dependency is wrong the moment it is added — it makes the build unreproducible immediately, and finding out at release time means finding out when the cost of fixing it is highest. The check is cheap enough to run always. requireReleaseVersion genuinely is release-only: on main the version is always a SNAPSHOT, so it would fail every build.

Why the lockfile, not package.json. A caret range in package.json says nothing about what a transitive dependency resolved to, and a pre-release that arrives transitively is exactly the case worth catching.

Renovate merges the small updates and asks about the large ones#

Accepted · 2026-09-26 · #20

Revised in part: the policy shared with hilling-it-website (config:recommended, the schedule, automerge with platformAutomerge: false, majors waiting, labels, timezone, prConcurrentLimit) is the preset default.json in conventions (opens in a new tab), pinned by tag. .github/renovate.json extends it and keeps only this repository's managers and rules, one of which makes a new version of the preset wait for a human (#456).

What. The preset, extended by .github/renovate.json. Patch, minor, digest and pin updates carry automerge: true; major updates open a pull request and wait. Quarkus artifacts, React and its type definitions, and the frontend test tooling are each grouped into one pull request.

Why grouped. React and @types/react moving separately produces a pull request that cannot pass tsc on its own, and the Quarkus BOM and its extensions have to move together by construction.

Why platformAutomerge: false. This is the subtle one. GitHub's own auto-merge, which platformAutomerge: true delegates to, merges as soon as the required status checks pass — and the main-branch ruleset requires none. It would therefore merge immediately, before any test had run, which is the exact opposite of the intent. With it off, Renovate merges through the API only once it has seen every check on the branch succeed. The alternative fix is to make the checks required in the ruleset, which is a repository-settings change; until that happens this flag is load-bearing and must not be flipped.

Cost. An automerged minor Quarkus upgrade goes to main without anyone looking at it. That is the stated intent, and it rests on the suites actually being a gate — which they are: coverage, Checkstyle and the end-to-end run all fail the build. It also rests on Renovate being installed as a GitHub App on the repository; the config file alone does nothing.

The schedule restricts branch creation only, and stays. "before 6am on monday" limits when Renovate opens pull requests, so updates arrive as one weekly batch rather than trickling in. It does not gate merging: Renovate reports Automerge: At any time (no schedule defined) in every pull request body, and an already-open pull request merges as soon as its checks go green regardless of the day.

The base-image chain is the exception and comes at any time. ubi-micro, Temurin and the backend's jre-runtime pin have a packageRule with "schedule": ["at any time"]. A fixed vulnerability in the backend image travels that chain in three steps — a new ubi-micro or Temurin, a jre-runtime build from it, the backend's pin moving to that build — and in #315 a fix that existed on a Friday would have waited for Monday's batch before the last step. Everything else stays weekly: a few days do not matter for an npm patch, and every Renovate pull request runs the full CI, macOS builds included.

A Renovate run outside that window is not a broken schedule. The first 25 pull requests appeared on a Saturday, which looked like the setting being ignored. It was not: Renovate can be told to run directly from the Mend dashboard, and that is what happened. Two cheaper explanations were checked and ruled out first — the schedule string is valid (it passes renovate-config-validator as repository config on Renovate 44; validating the file by path alone checks it as global config, which silently skips schedule and packageRules), and the schedule was not suppressing automerge. So do not read off-schedule activity as a misconfiguration, and do not remove this setting as leftover debris from the setup — it is deliberate. The Mend job log, which is the only place that says why a given run happened, is behind the account rather than the repository API.

CodeQL scanning, unfiltered by path#

Accepted · 2026-09-26 · #20

Revised in part on 2026-11-15 (#559): java-kotlin and its manual Maven build went with the Quarkus backend; codeql.yml analyses javascript-typescript and go. Unfiltered by path, it stands.

What. codeql.yml analyses java-kotlin and javascript-typescript on every push to main, every pull request, and weekly. The Java build mode is manual, compiling with -DskipTests -Dcheckstyle.skip -Dquarkus.build.skip.

Why unfiltered. backend-ci.yml and frontend-ci.yml are path-filtered, which is right for them and wrong here: the README carries a CodeQL badge, and a path-filtered workflow makes its badge report whichever run last touched a matching directory, possibly many commits ago. The weekly run exists because the queries improve on GitHub's side, so a scheduled scan finds things that were not findable when the code landed.

Why a manual build. The extractor needs compiled classes and nothing more. Skipping Quarkus's augmentation step and Checkstyle keeps a red CodeQL badge meaning a CodeQL finding rather than a failure already reported by another workflow.

Why -Dmaven.test.skip and not -DskipTests. skipTests only skips running the tests; testCompile still runs, so backend/src/test was compiled into the CodeQL database and scanned. That is close to pure noise — a test's hard-coded Keycloak password is the point of the test, not a finding — and paths-ignore cannot fix it, because that setting applies only to interpreted languages. For a compiled language the scope is whatever the build compiles, so not compiling the tests is the only lever.

The query suite is security-extended, not security-and-quality. The quality half of that suite is maintainability and style analysis, which SonarCloud already performs on both languages here. Running it in CodeQL as well would bury the security findings under a second opinion on style. security-extended keeps CodeQL doing the one job nothing else in this repository does.

Note on what configFileFound: false means. Every CodeQL run logs "configFileFound": false against /home/runner/.config/codeql/config. That is the CodeQL CLI's own per-user config file on the runner, which never exists on a hosted runner and is not something a repository supplies. It is not a sign of a missing .github/codeql/codeql-config.yml, and it still says false now that one exists.

The images are published for amd64 and arm64#

Superseded · 2026-10-09 · #251 · by #559

Since #559 no image is published. The Quarkus backend's image went with it, and the frontend's, which only the local container stack pulled, with that stack; both images of the end-to-end stack are built where it runs. Released images stay on Quay. What follows is why they were multi-platform.

Decision. taskfest-backend and taskfest-frontend are each one image index with an amd64 and an arm64 image, for latest and for every release (#249). An Apple-silicon Mac without Rosetta cannot run an amd64 image, and the local stacks run the published ones.

How, without emulating a build. Jib assembles both from the multi-architecture base (jre-runtime, already published for both) without running anything, so -Dquarkus.jib.platforms=linux/amd64,linux/arm64 is all the backend needs. The frontend's Node stage runs on the build machine (FROM --platform=$BUILDPLATFORM), once, and its output is the same static files for both; the final stage only copies, so buildx builds the arm64 image with no QEMU. Each workflow names the platforms once (PLATFORMS), builds both images with it and, after pushing, checks with it that the tag's index lists every one (.github/scripts/check-image-platforms.py). A classic, non-BuildKit docker build does not fill in $BUILDPLATFORM; Docker has defaulted to BuildKit since 23, and Podman's buildah fills it in too.

Local builds are for the machine they are built on. The backend's arm64-image Maven profile activates on an aarch64 JVM and sets the Jib platform to linux/arm64, so a Mac builds arm64 with the usual command; docker build and podman build build for the host anyway. Not when pushing: a hand-pushed latest from a Mac would otherwise replace the two-architecture index with an arm64-only image.

The proof is the e2e suite on arm64. e2e.yml runs on GitHub's free ubuntu-24.04-arm runner as well as on ubuntu-26.04 -- two jobs sharing their steps through a YAML anchor, not a matrix, because Renovate reads runner labels only from a literal runs-on: -- it builds both images natively there, checks they are for that architecture, and runs the whole stack and every scenario on them. Rejected: QEMU for the e2e run, which would prove less (emulated) and take far longer.

AWS barely changes. deploy-backend.py pins the release's digest as before, which is now the index's, and Fargate pulls the image of its own architecture from it: arm64, since #250 moved both environments to Graviton. What does change is image scanning: the cache stores that image untagged inside the tagged index, so the findings workflow maps it to the index's tag (image scanning).

The runner is pinned, so an image migration is a decision#

Accepted · 2026-09-29 · #75

Decision. Every runs-on in .github/workflows/ names ubuntu-24.04 rather than ubuntu-latest — 13 entries across 10 files.

Why. ubuntu-latest began annotating every run with notice that the label migrates to Ubuntu 26 on 19 October 2026. Riding that would have changed the image under every job on a date nobody here chose, and a build that breaks because its runner moved is a confusing failure: the commit that reveals it is unrelated to the cause.

It does not become a manual chore, which was the obvious objection. Renovate's github-actions manager — already the one updating actions/* here — extracts a runner label as a github-runner dependency. So ubuntu-26.04 arrives as a pull request, and because 24 → 26 is a major update, the Renovate policy makes it wait for a human rather than automerging. The pin turns the migration from something that happens into something that is approved.

Rejected: pinning only the workflow that raised the notice. The notice was on all 13 entries, not on one. Pinning one would have left the other nine files riding a label whose meaning changes, and made the pinned one look like an exception with a forgotten reason.

Pages deploys only from main#

Accepted · 2026-09-29 · #75

Decision. pages.yml's deploy job is guarded with if: github.ref == 'refs/heads/main', and the workflow does not subscribe to release: published. release.yml asks it to run instead, with gh workflow run pages.yml --ref main, once the release exists.

Why. The github-pages environment carries a deployment branch policy permitting the single branch main, so a deployment from any other ref is refused before its first step. Two things follow, and the second was a real bug.

A workflow_dispatch on a branch — the only way to exercise this workflow, since none of its triggers is pull_request — used to fail on the deploy job. Now it builds the site and skips the deployment, so a change to the workflow can be checked without leaving a red run behind.

A tag is not main. A release: published event runs with github.ref set to refs/tags/v1.2.3, so the release-triggered deployment would have been refused too — the published /api/v1.2.3/ would never have appeared, and nothing would have found that out until the first release. Dispatching on main keeps every deployment coming from main, and by then the tag is in history, so build-api-site.py sees the new version anyway.

Why guard the job as well, when the environment already refuses it. So the refusal is a deliberate skip with a reason in the file, rather than a red run whose cause is a setting in the repository's web UI.

Misconfiguration scanning is static, in CI, with Trivy — not AWS Config#

Accepted · 2026-10-01 · #106

Most of what a best-practice rule set checks — public buckets, open ingress, unencrypted storage, wildcard IAM — is readable from the .tf files, so Trivy fails the pull request before the change exists. It fails at every severity, and an exception is a #trivy:ignore:<ID> comment beside the resource with the reason, so the list of exceptions is the code rather than a dashboard. Rejected for now: AWS Config, which adds what a static scan cannot see — changes made outside OpenTofu, and the history of a resource's configuration — at about $2–5 a month for recording and a handful of managed rules, and $10–20 with a full conformance pack, because this project's up/down cycles and deploys churn configuration items. With one human applying infrastructure that is a small risk for a fixed cost; it is worth revisiting when this stops being a demo. Not chosen: Checkov, which would have done the same job equally well; Trivy is simply the one chosen.

SonarCloud runs on main only, and a failed quality gate becomes an issue#

Accepted · 2026-10-03 · #127

On pull requests it re-ran the entire backend suite for its coverage report, and with no path filter it was the check every pull request waited for — including the infrastructure and documentation changes that make up most of them. It now runs after the merge. Until then it also never failed on findings: the scan uploaded an analysis without waiting for the quality gate. It now waits (sonar.qualitygate.wait), and sonar-gate-issue.py turns a failure into one open issue, labelled sonarcloud-gate: commented on while the gate stays red, closed when it is green again. Rejected: keeping it on pull requests without waiting for it, because Renovate merges only when every check is green and cannot leave one out. Not done: reusing backend CI's coverage report instead of re-running the tests, which would need artifacts handed between workflows for a saving that no longer blocks anything. The cost is that a finding is seen after the merge, not before — accepted, because it then becomes an issue like any other piece of work.

A SonarCloud false positive is silenced in the code, at its line#

Accepted · 2026-11-13 · #561 Revised in part · 2026-11-22 · #654: a second file has a taint finding excluded, the open redirect (tssecurity:S6105) in App.tsx, where an account deletion goes to Apple's sign-in once deleteAccount has checked it, and otherwise to the website's own sign-out, which is fixed when the website is built (An account deletion sends the browser only to Apple's sign-in). A file-wide exclusion is still the exception, taken only where the code checks first and the analysis cannot see it.

Decision. A finding that is wrong about this code is not marked a false positive in SonarCloud. It is answered in the code where the code can answer it, and otherwise silenced at its line with NOSONAR and the reason. Taint-analysis findings, for which NOSONAR is not documented to work, are excluded in sonar-project.properties instead, for their rule in one file. The first ones, which held the gate red from 2026-11-10: - a click without a key handler and without a role, on the task's section in TaskRow.tsx and on the preview's backdrop in FilePreview.tsx (typescript:S1082, S6847, S6848): a pointer's shortcut by design, with the keyboard's own way beside it, the row's menu and Escape. NOSONAR, next to the same reason oxlint is given; - go run from PATH in serverless/tools/ (go:S4036), which only go generate runs: NOSONAR; - a generated file made readable by all with chmod (go:S2612): answered in the code, which now writes the file with that mode, as zonesgen already did; - client- and server-side request forgery at the download in FilePreview.tsx (tssecurity:S8476, S5144): excluded for that file. The link has passed storageUrl first, as decided in A storage link is checked before a file goes to it, and the taint analysis does not recognise that check.

Why. A false-positive mark lives in SonarCloud only, on the finding's key, and a key changes when the code around it moves: the storage link's mark of 8 October came back under new keys twice. A comment at the line moves with it and is reviewed with the code.

Cost. The file-wide exclusion also silences a real request forgery anywhere else in FilePreview.tsx, which is why it is the exception. SonarCloud analyses main only, so whether it applies to taint findings shows after the merge; if not, the gate stays red and #561 open.

Java stays on its long-term support releases#

Superseded · 2026-11-14 · #545 · by #559

Since #559 no Java runtime is shipped. The rule chose the JRE of the Quarkus backend's image, which went, and Renovate's rule with it. Maestro's JDK in Mobile CI was never covered by it.

Decision. The JRE under the backend image, Temurin and the jre-runtime image built from it, moves only between Java's long-term support releases: 25 now, 29 from September 2027. Renovate's allowedVersions says so, and the list gets 29 when it is due. Gunnar's decision on Claude's recommendation; #545, Renovate's update to Temurin 27, is closed unmerged.

Why. A release between two LTS ones gets updates only until the next, six months later, so following them is a major update every half year, each a new JVM to check, for nothing the backend needs. Less is at stake than it was: qa runs the Go backend, and only prod still runs the Quarkus one, until #559 retires it.

The conventions shared with other repositories come from one public repository#

Accepted · 2026-10-31 · #400, #455, #456, #457

hilling-it-website adopted this project's conventions by copying files, and the copies drifted within weeks: its doc-reference check had a better regex than this one, and nothing carried a fix from one to the other. What is generic now comes from guhilling/conventions (opens in a new tab), and each repository keeps only what is its own. The investigation is on #400.

Part Shared? How
check-doc-references Yes (#455) A composite action, pinned by SHA with the tag in a comment; Renovate's github-actions manager bumps it
The Renovate policy Yes (#456) The repository's default preset, github>guhilling/conventions#vX.Y.Z; the renovate-config manager bumps it
The story and epic forms Yes (#457) Account defaults from the public guhilling/.github (opens in a new tab), unversioned
The generic CLAUDE.md rules and hilling-it-website's guard hooks Planned (#458) A Claude Code plugin from the same repository, its rules injected at session start
check-decisions.py Later Once hilling-it-website writes status lines under its decisions
build-site.py, doc/images/generate.py No One consumer each; hilling-it-website has no docs site and no diagrams
REVIEW.md No CodeRabbit reads the repository's own files

Gunnar's answers. The repository is public: a private repository's actions can be used only by private callers, and this one is public. There is one repository for the action, the preset and the plugin, not one each. The rules are always on, injected by a SessionStart hook, because a skill is loaded only when a session decides to. A release is a lightweight vX.Y.Z tag, with no GitHub Release, unlike this repository's annotated release tags: nothing is published from it but the tag. No GitHub Pro for hilling-it-website, so it keeps its local push guard instead of a ruleset.

Cost. Every shared change becomes a tag in conventions plus a Renovate pull request in each repository, merged by itself when it is a patch or minor. For two repositories that is worth it where copies drift, the checks, and the forms come free. Rejected: copying with a note to keep the copies in step, which is what failed. Rejected: a repository per piece, more tags and settings for no gain at this size.