byggsteg-49bae30c-e233

job failed

→ running command: cd "/etc/byggsteg/job-clone//byggsteg/trunk" && git reset --hard && git pull
HEAD is now at 6833add feat: Make illegal state self-healing
From https://codeberg.org/jjba23/byggsteg
   6833add..0cf1fb5  trunk      -> origin/trunk
Updating 6833add..0cf1fb5
Fast-forward
 README.org                          |    4 +-
 app/api/v1.scm                      |   42 +-
 app/api/v2.scm                      | 1046 +++++++++++++++++
 app/controllers/jobs.scm            |   43 +-
 app/controllers/me.scm              |   51 +-
 conf/artanis.conf                   |   10 +-
 conf/production.conf                |   10 +-
 lib/byggsteg/api.scm                | 1014 +++++++++++++++++
 lib/byggsteg/auth.scm               |   34 +-
 lib/byggsteg/job/pipeline.scm       |   28 +-
 lib/byggsteg/job/queue.scm          |   64 +-
 lib/byggsteg/password-reset.scm     |   97 ++
 {docs => pub}/byggsteg-showcase.gif |  Bin
 pub/openapi.yaml                    | 2127 +++++++++++++++++++++++++++++++++++
 test/veritas/unit/api-v2-spec.scm   |  861 ++++++++++++++
 15 files changed, 5315 insertions(+), 116 deletions(-)
 create mode 100644 app/api/v2.scm
 create mode 100644 lib/byggsteg/api.scm
 create mode 100644 lib/byggsteg/password-reset.scm
 rename {docs => pub}/byggsteg-showcase.gif (100%)
 create mode 100644 pub/openapi.yaml
 create mode 100644 test/veritas/unit/api-v2-spec.scm

→ running command: cd /etc/byggsteg/job-clone/byggsteg/trunk && uname -a
Linux wolk-jjba 7.1.5-gnu #1 SMP PREEMPT_DYNAMIC 1 x86_64 GNU/Linux

→ running command: cd /etc/byggsteg/job-clone/byggsteg/trunk && git log --name-status HEAD^..HEAD
commit 0cf1fb5a4565a36eac6375d211f85d310ff81eaf
Author: Josep Bigorra <jjbigorra@gmail.com>
Date:   Thu Oct 15 21:47:05 2026 +0200

    feat: Add REST API /v2

M       README.org
M       app/api/v2.scm
M       lib/byggsteg/api.scm
M       pub/openapi.yaml
M       test/veritas/unit/api-v2-spec.scm

→ running command: cd /etc/byggsteg/job-clone/byggsteg/trunk && maak test

scanning directories for unit tests...
scanning present working directory for unit tests...

shuffled the files with seed 560614840 (replay with VERITAS_SEED=560614840)

found unit tests: (api-v2-spec.scm retry-spec.scm terminal-glass-spec.scm heatmap-spec.scm job-pipelines-spec.scm about-page-spec.scm error-pages-spec.scm form-width-spec.scm log-streaming-spec.scm artifact-spec.scm logs-page-spec.scm console-resources-spec.scm job-search-spec.scm password-strength-spec.scm deployment-identity-spec.scm ansi-spec.scm retention-spec.scm password-reset-spec.scm user-bootstrap-spec.scm job-pipeline-spec.scm)


running unit tests from file: api-v2-spec.scm, entrypoint: spec


ℹ️ info - shuffled with seed 560614840 (replay with VERITAS_SEED=560614840)
+----------------------------------------------+
[📑 suite] the JSON API under /api/v2
  [🧪 test] every route the API registers is a call this deployment can answer
    [⚙️ assert] every route of the API goes through `api-route', which is what answers its failures in its own shape
    ✅ got: ((POST . /api/v2/login) (POST . /api/v2/logout) (GET . /api/v2/me) (GET . /api/v2/permissions) (GET . /api/v2/deployment) (GET . /api/v2/tasks) (GET . /api/v2/jobs) (POST . /api/v2/jobs) (GET . /api/v2/jobs/{id}) (DELETE . /api/v2/jobs/{id}) (POST . /api/v2/jobs/{id}/retry) (GET . /api/v2/logs) (GET . /api/v2/logs/{id}) (GET . /api/v2/artifacts) (GET . /api/v2/artifacts/{id}) (GET . /api/v2/artifacts/{id}/download) (GET . /api/v2/profiles) (POST . /api/v2/profiles) (GET . /api/v2/profiles/{id}) (DELETE . /api/v2/profiles/{id}) (GET . /api/v2/users) (POST . /api/v2/users) (GET . /api/v2/users/{id}) (PATCH . /api/v2/users/{id}) (DELETE . /api/v2/users/{id}) (POST . /api/v2/password/resets) (GET . /api/v2/password/resets/{token}) (POST . /api/v2/password/resets/{token}) (POST . /api/v2/password/strength) (GET . /api/v2/search) (GET . /api/v2/activity) (POST . /api/v2/maintenance/sweep-artifacts) (POST . /api/v2/maintenance/prune-runs) (POST . /api/v2/maintenance/sweep-logs) (POST . /api/v2/preferences/locale))
    [⚙️ assert] every method a route is registered in is one `server.allowedmethods' names
    ✅ got: ()
    [⚙️ assert] the API answers the two verbs the console does not, so a removal and a change can be asked for
    ✅ got: (DELETE PATCH)
  [🧪 test] a run is read as the page that draws it reads it
    [⚙️ assert] the three flags a row carries are the four statuses a client is told
    ✅ got: ((finished-well succeeded) (failed failed) (still-going running) (taken-and-not-started queued))
    [⚙️ assert] a run is its id, its title, its status, its two instants and the log it wrote
    ✅ got: ((id . spec-run) (title . spec run & its output) (status . succeeded) (created-at . 1791922811) (updated-at . 1791922999) (log-id . spec-log))
    [⚙️ assert] a run whose log row is gone says so with a null rather than by leaving the field out
    ✅ got: ((id . spec-run) (title . spec run & its output) (status . succeeded) (created-at . 1791922811) (updated-at . 1791922999) (log-id . null))
  [🧪 test] a log is read with the run behind it, or as a log of a run that is gone
    [⚙️ assert] a log is its id, its title, the run it belongs to, its two instants and the size of its output
    ✅ got: ((id . spec-log) (title . spec run & its output) (run-id . spec-run) (created-at . 1791922811) (updated-at . null) (length . 61))
    [⚙️ assert] the length of a log is the size of the output a pane polls with
    ✅ got: (61 0)
    [⚙️ assert] the log of a run is found by the row that names it, and a run no log names has none
    ✅ got: (spec-log #f)
    [⚙️ assert] a list of logs carries the run behind each of them
    ✅ got: (((log (id . spec-log) (title . spec run & its output) (run-id . spec-run) (created-at . 1791922811) (updated-at . null) (length . 61)) (run (id . spec-run) (title . spec run) (status . queued) (created-at . null) (updated-at . null) (log-id . spec-log))))
    [⚙️ assert] a log whose run is gone is answered with a null for the run rather than dropped
    ✅ got: (null)
  [🧪 test] the output of a run is read the two ways the console's two tabs read it
    [⚙️ assert] the rendered reading is the output a terminal would have left, and the raw one is what the command wrote
    ✅ got: (green a needle in the output
second line ^[[32mgreen^[[0m a needle in the output
second line)
  [🧪 test] a tarball and a saved profile are read as the pages that list them read them
    [⚙️ assert] a tarball names the run it belongs to, its title, its size and a path on this deployment to fetch it
    ✅ got: ((id . spec-artifact) (run-id . spec-run) (title . spec run.tar.gz) (size . 224) (created-at . 1791922811) (download-url . /api/v2/artifacts/spec-artifact/download))
    [⚙️ assert] a profile is its id, its title, the Lisp it holds and its two instants
    ✅ got: ((id . spec-profile) (title . spec profile) (data . (lambda () (list (cons (quote task) "needle")))) (created-at . 1791922811) (updated-at . null))
  [🧪 test] an account is read without the two columns that make it sign-in-able
    [⚙️ assert] an account is its id, its name, its address and the permissions the ACL knows
    ✅ got: ((id . spec-account) (username . spec) (email . spec@example.org) (permissions . #(byggsteg:job-create)))
    [⚙️ assert] no answer of this API carries the hash of a password or the salt it was taken with
    ✅ got: (email id permissions username)
    [⚙️ assert] the session says what the token was minted with, and when it stops being read
    ✅ got: ((permissions . #(byggsteg:job-create byggsteg:job-delete)) (expires-at . 1792692817))
    [⚙️ assert] a token that carries no permissions is read as a token that holds none
    ✅ got: ((permissions . #()) (expires-at . null))
  [🧪 test] a request's fields are read the same way whatever sent them
    [⚙️ assert] a string, a number and a boolean are read as the text they carry, a field written twice as the first of them, and a field that is not there as nothing
    ✅ got: ((a-string a@b.c) (a-number 1) (yes true) (no #f) (written-twice first) (not-there #f))
  [🧪 test] a list field is read as a list, and a field that said nothing as nothing
    [⚙️ assert] an array, one value, a field written twice, and the difference between an empty list and a request that said nothing
    ✅ got: ((an-array (a b)) (one-value (a)) (written-twice (a b)) (empty-array ()) (not-there #f))
  [🧪 test] a page is bounded rather than refused
    [⚙️ assert] nothing, a limit of none, an ordinary page, the most a page may be, more than that, and a limit that is not a number
    ✅ got: ((nothing-at-all 24) (a-limit-of-none 1) (an-ordinary-page 5) (the-most-a-page-may-be 200) (more-than-that 200) (a-number-that-is-not-one 7))
  [🧪 test] the guard asks what a token is missing, and is told it in the order it asked
    [⚙️ assert] an endpoint that takes nothing, a token that holds it all, one that holds none, and one that holds half
    ✅ got: ((an-endpoint-that-takes-nothing ()) (a-token-that-holds-it-all ()) (a-token-that-holds-none (byggsteg:job-create byggsteg:job-delete)) (a-token-that-holds-one-of-two (byggsteg:job-create)))
  [🧪 test] a deployment says what it is, what it speaks and what it may be asked for
    [⚙️ assert] the names and addresses of a deployment are the ones this source ships, and the address it named is the one it is read by
    ✅ got: ((name . byggsteg) (description . byggsteg is a hackable and extensible CI/CD orchestrator written in Guile Scheme: a pipeline is Lisp code, a running job's log is read while it is written, and the runner, the logs, the artifacts and the users are all yours to host.) (logo-url . /img/byggsteg-logo.png) (source-url . https://codeberg.org/jjba23/byggsteg) (manual-url . https://codeberg.org/jjba23/byggsteg/src/branch/trunk/README.org) (documentation-url . https://jointhefreeworld.org/manuals/byggsteg/) (public-url . https://byggsteg.example.org) (asset-base-url . ))
    [⚙️ assert] the shape of its API is the version, the address and the document that describes it
    ✅ got: ((version . 2) (base . /api/v2) (spec . /openapi.yaml) (documentation . https://codeberg.org/jjba23/byggsteg/src/branch/trunk/README.org))
    [⚙️ assert] every reading this API has is named in the capabilities it answers with
    ✅ got: (activity artifacts deployment jobs logs maintenance password-resets permissions preferences profiles search tasks users)
    [⚙️ assert] the four languages the console speaks are the four the chooser offers
    ✅ got: ((en_US . English (US)) (nl_NL . Nederlands) (es_ES . Español) (ja_JP . 日本語))
    [⚙️ assert] a language is spoken when it is one of those, and unknown when it is not
    ✅ got: ((#t #t #t #t) (#f #f #f #f))
    [⚙️ assert] the settings a deployment runs with are the ones it answers with
    ✅ got: ((days . 7) (interval-seconds . 3600) (batch . 300) (concurrency . 3) (result-limit . 11))
  [🧪 test] the tasks a job may name are the ones the worker dispatches
    [⚙️ assert] every task a client may write is answered with the name it is dispatched by
    ✅ got: (maak-test make-test pull-and-restart pull-and-deploy maak-deploy maak-build make-build byggsteg-version trivial)
    [⚙️ assert] every one of them is described, since a client has to be told what it may ask for
    ✅ got: #t
  [🧪 test] one question is read over the three tables it is asked of
    [⚙️ assert] the word, the groups it was found in, and what a window of each reading was read from
    ✅ got: ((the-word needle) (runs-that-carried-it 0) (logs-that-carried-it (spec-log)) (profiles-that-carried-it (spec-profile)) (what-the-log-excerpt-is output) (the-excerpt-itself green a needle in the output second line) (the-profile-excerpt-is-read-from data))
    [⚙️ assert] a query of nothing is three empty groups rather than the whole deployment
    ✅ got: ((jobs ()) (logs ()) (profiles ()))
  [🧪 test] a year of runs is read as the grid that draws it
    [⚙️ assert] the weeks, the months, the total, the busiest day, the columns of seven days, and a day that has not happened
    ✅ got: ((weeks 50) (months 12) (total 1) (busiest 1) (columns 50) (days 350) (the-run-is-drawn 1) (a-day-with-no-runs-is-a-day #t) (a-day-that-has-not-happened #t))
ℹ️ info - ran 1 tasks in: 0 seconds, 3163 microseconds

running unit tests from file: retry-spec.scm, entrypoint: spec


ℹ️ info - shuffled with seed 560614840 (replay with VERITAS_SEED=560614840)
+----------------------------------------------+
[📑 suite] where a retry is offered
  [🧪 test] a list offers a retry only for a job that failed
    [⚙️ assert] a green or a running row has nothing to retry; the red one does
    ✅ got: ((failed . #t) (succeeded . #f) (running . #f) (queued . #f))
    [⚙️ assert] and the row the rule answers for is the row that carries the button
    ✅ got: ((failed . #t) (succeeded . #f) (running . #f) (queued . #f))
  [🧪 test] a job's own page offers a retry whatever its status
    [⚙️ assert] every job but one still running can be run again from its page
    ✅ got: ((failed . #t) (succeeded . #t) (running . #f) (queued . #t))
  [🧪 test] a reader who may not submit a retry is offered none
    [⚙️ assert] with no permission at all, neither a row nor a job's own page offers a retry
    ✅ got: ((failed . #f) (succeeded . #f) (running . #f) (queued . #f))
    [⚙️ assert] and the page is no more generous than the list: a form a reader cannot send is not drawn
    ✅ got: ((failed . #f) (succeeded . #f) (running . #f) (queued . #f))
    [⚙️ assert] holding byggsteg:job-create, the rules read exactly as they do for a super user
    ✅ got: ((failed . #t) (succeeded . #f) (running . #f) (queued . #f))
    [⚙️ assert] and the row that rule answers for is the row that carries the form, for a reader who may send it
    ✅ got: ((failed . #t) (succeeded . #f) (running . #f) (queued . #f))
    [⚙️ assert] while a reader who may not send one is drawn no form, however red the row
    ✅ got: ((failed . #f) (succeeded . #f) (running . #f) (queued . #f))
ℹ️ info - ran 1 tasks in: 0 seconds, 20407 microseconds

running unit tests from file: terminal-glass-spec.scm, entrypoint: spec


ℹ️ info - shuffled with seed 560614840 (replay with VERITAS_SEED=560614840)
+----------------------------------------------+
[📑 suite] terminal glass
  [🧪 test] a pane closes its decorations and keeps its content outside them
    [⚙️ assert] no element of a pane is closed on itself
    ✅ got: />
    [⚙️ assert] the content sits two elements deep: the pane and its layer
    ✅ got: 2
ℹ️ info - ran 1 tasks in: 0 seconds, 2040 microseconds

running unit tests from file: heatmap-spec.scm, entrypoint: spec


ℹ️ info - shuffled with seed 560614840 (replay with VERITAS_SEED=560614840)
+----------------------------------------------+
[📑 suite] activity heatmap
  [🧪 test] the calendar between a day number and a date is the reader's own
    [⚙️ assert] every date is read back as the day number it is known by
    ✅ got: ()
    [⚙️ assert] the epoch is day zero, and the day before it is minus one
    ✅ got: (0 -1)
    [⚙️ assert] a leap day is a day of its own
    ✅ got: 11016
    [⚙️ assert] the week starts on Sunday, and the epoch was a Thursday
    ✅ got: (4 2 3)
  [🧪 test] jobs are counted by the day they were queued on
    [⚙️ assert] a day is counted once per job, and what is not a date is left out
    ✅ got: ((20739 . 3) (20730 . 2) (20737 . 1))
  [🧪 test] the grid ends with the week today is in
    [⚙️ assert] two columns of seven days, from the Sunday before to today
    ✅ got: ((columns 2) (cells-per-column 7) (first-day 20730) (last-day 20743) (today-is-in-the-last-column 3) (a-day-not-happened-yet #f))
  [🧪 test] a square is as dark as its day is busy
    [⚙️ assert] the busiest day is darkest, and a day with no jobs is not drawn dark
    ✅ got: ((20739 . 4) (20730 . 3) (20737 . 2) (20738 . 0))
    [⚙️ assert] the four steps between are read off the busiest day
    ✅ got: ((against-a-busiest-day-of-ten (0 . 0) (2 . 1) (3 . 2) (5 . 2) (6 . 3) (9 . 3) (10 . 4)) (no-busiest-day 1) (a-day-that-has-not-happened #f))
  [🧪 test] the months are named along the top of the grid
    [⚙️ assert] a year of weeks is labelled, from its first column on
    ✅ got: ((labels 13) (first-label-name Oct) (first-label-column 0) (two-days-of-one-month-are-named-alike #t) (two-months-are-named-differently #t))
  [🧪 test] a deployment with no jobs draws a grid rather than nothing
    [⚙️ assert] an empty heatmap has a total, a busiest day and a full year of squares
    ✅ got: ((total 0) (max 0) (columns 50) (cells 350))
ℹ️ info - ran 1 tasks in: 0 seconds, 3599 microseconds

running unit tests from file: job-pipelines-spec.scm, entrypoint: spec


ℹ️ info - shuffled with seed 560614840 (replay with VERITAS_SEED=560614840)
+----------------------------------------------+
[📑 suite] job pipelines
  [🧪 test] the jobs a request asks for are read from its data
    [⚙️ assert] a list of jobs and a single job are read alike
    ✅ got: ((a-list-of-two 2) (a-list-of-one 1) (the-first-project-names-the-job byggsteg) (a-pipeline-of-unnamed-jobs pipeline) (a-pipeline-of-bare-commands trivial))
  [🧪 test] every job of a pipeline is run, in the order it is written
succeeded?: #t

    [⚙️ assert] both stages ran, the first before the second
    ✅ got: ((the-first-job-ran #t) (the-second-job-ran #t) (in-the-order-they-are-written #t) (outcome (1 0 0)))
  [🧪 test] a job that fails stops the pipeline
succeeded?: #f

    [⚙️ assert] the job after the failure did not run, and the pipeline failed
    ✅ got: ((the-later-job-ran #f) (outcome (0 0 1)))
  [🧪 test] a task that fails stops the tasks behind it in the same job
succeeded?: #f

    [⚙️ assert] the task behind the failure did not run, and the job failed
    ✅ got: ((the-failing-task-ran #t) (the-task-behind-it-ran #f) (outcome (0 0 1)))
  [🧪 test] a command's output outside ASCII reaches the log it wrote
succeeded?: #t

    [⚙️ assert] the accented word, the block and the Japanese word are all there
    ✅ got: ((the-line-is-what-the-command-printed #t) (a-replacement-character #f) (outcome (1 0 0)))
  [🧪 test] a job's commands read text in a locale of their own
succeeded?: #t

succeeded?: #t

    [⚙️ assert] a command with no locale counts characters, and one a job named counts bytes
    ✅ got: ((the-characters-of-a-word #t) (the-bytes-of-it #f) (a-locale-the-job-names-itself #t) (outcome (1 0 0)))
    [⚙️ assert] a locale a deployment names, or an empty naming, is read as it is
    ✅ got: ((a-deployment-that-names-none #t) (a-deployment-that-names-its-own LANG=de_DE.UTF-8) (an-empty-naming #t) (a-name-both-of-them-set PATH=/usr/bin LC_ALL=C) (the-environment-a-command-is-handed PATH=/usr/bin LC_ALL=C.UTF-8))
  [🧪 test] every task of a job is run, and each is a step of its own
succeeded?: #t

    [⚙️ assert] a job that asks for two tasks ran two, and the job passed
    ✅ got: ((how-many-tasks-ran 2) (outcome (1 0 0)))
  [🧪 test] a pipeline of one job is a job
succeeded?: #t

    [⚙️ assert] a single job's commands ran and its row says so
    ✅ got: ((the-job-ran #t) (outcome (1 0 0)))
  [🧪 test] a stage that names several bundles collects a tarball for each
succeeded?: #t

    [⚙️ assert] the bare path's tarball keeps the title, and each bundle its name
    ✅ got: ((how-many 3) (named-as-asked (spec-spec-collecting.tar.gz binaries-2.tar.gz docs-3.tar.gz)) (the-tarballs-are-there (#t #t #t)) (outcome (1 0 0)))
ℹ️ info - ran 1 tasks in: 0 seconds, 290673 microseconds

running unit tests from file: about-page-spec.scm, entrypoint: spec


ℹ️ info - shuffled with seed 560614840 (replay with VERITAS_SEED=560614840)
+----------------------------------------------+
[📑 suite] about page
  [🧪 test] the page can be read on a phone
    [⚙️ assert] no panel of it forces a width wider than the screen
    ✅ got: ()
    [⚙️ assert] the panels are told they may shrink
    ✅ got: min-w-0
  [🧪 test] the account is on the page, and it is this deployment's
    [⚙️ assert] the story names the people, the framework and the three doors
    ✅ got: ()
    [⚙️ assert] and it holds nothing the page was never meant to say
    ✅ got: ()
    [⚙️ assert] the page opens under the console's own prompt
    ✅ got: $ byggsteg --origin
  [🧪 test] the page a crawler is handed says what it is
    [⚙️ assert] it declares itself a document of this deployment
    ✅ got: <!DOCTYPE html>
    [⚙️ assert] it is dressed in the same sheet as every other page
    ✅ got: /css/byggsteg.olive.min.css
    [⚙️ assert] its canonical address is the page's own
    ✅ got: /about
    [⚙️ assert] its title names the deployment and the page
    ✅ got: <title>byggsteg - about</title>
  [🧪 test] the page is built by the components rather than describing them
    [⚙️ assert] no component call was left un-made in the markup
    ✅ got: ()
    [⚙️ assert] every element of the page is an element a browser knows
    ✅ got: ()
    [⚙️ assert] no element of the page is closed on itself
    ✅ got: ()
ℹ️ info - ran 1 tasks in: 0 seconds, 2792 microseconds

running unit tests from file: error-pages-spec.scm, entrypoint: spec


ℹ️ info - shuffled with seed 560614840 (replay with VERITAS_SEED=560614840)
+----------------------------------------------+
[📑 suite] error pages
  [🧪 test] each status answers with a page of this deployment's console
    [⚙️ assert] the 400 page carries the chrome, the code and its words
    ✅ got: ()
    [⚙️ assert] the 401 page carries the chrome, the code and its words
    ✅ got: ()
    [⚙️ assert] the 404 page carries the chrome, the code and its words
    ✅ got: ()
    [⚙️ assert] the 500 page carries the chrome, the code and its words
    ✅ got: ()
  [🧪 test] a page is built by the components rather than describing them
    [⚙️ assert] no page carries a component call instead of its element
    ✅ got: ()
    [⚙️ assert] the 404 page heads with the code and traces it in a pre
    ✅ got: ()
  [🧪 test] Artanis is handed a page for each status
    [⚙️ assert] every status has a handler that answers with a string
    ✅ got: ()
    [⚙️ assert] a status the table does not name still gets a page
    ✅ got: #t
    [⚙️ assert] and it names the status it was asked for
    ✅ got: 418 unexpected status
  [🧪 test] a page a reader can act on
    [⚙️ assert] a missing credential is answered with the way to sign in
    ✅ got: /login
    [⚙️ assert] a path that answers nothing still leads to the job queue
    ✅ got: /logs
    [⚙️ assert] a server-side failure wears the red hairline
    ✅ got: border-redwood-700
    [⚙️ assert] a client error keeps the phosphor hairline
    ✅ got: border-redwood-700
  [🧪 test] no page closes an element on itself
    [⚙️ assert] no element of a status page swallows what follows it
    ✅ got: ()
ℹ️ info - ran 1 tasks in: 0 seconds, 24138 microseconds

running unit tests from file: form-width-spec.scm, entrypoint: spec


ℹ️ info - shuffled with seed 560614840 (replay with VERITAS_SEED=560614840)
+----------------------------------------------+
[📑 suite] the width of a field
  [🧪 test] every field is dressed in the console's own faces
    [⚙️ assert] the job field is a field of this console
    ✅ got: ()
    [⚙️ assert] so is the profile field
    ✅ got: ()
    [⚙️ assert] so is the search field
    ✅ got: ()
    [⚙️ assert] so is the locale chooser
    ✅ got: ()
  [🧪 test] no page of the console forces a width
    [⚙️ assert] the run-job form holds no minimum width
    ✅ got: ()
    [⚙️ assert] the profile form holds no minimum width
    ✅ got: ()
    [⚙️ assert] the search form holds no minimum width
    ✅ got: ()
    [⚙️ assert] the locale chooser holds no minimum width
    ✅ got: ()
  [🧪 test] the field a job is written in is the console's own, not a copy
    [⚙️ assert] the job field carries the face's own height
    ✅ got: #t
    [⚙️ assert] and is as wide as the room it is given
    ✅ got: #t
    [⚙️ assert] and no wider than a reading line
    ✅ got: #t
    [⚙️ assert] with no width of its own written at the call site
    ✅ got: max-w-196
    [⚙️ assert] the address the form leads to is held by a box that may break it
    ✅ got: #t
  [🧪 test] every field is allowed to be as narrow as the screen
    [⚙️ assert] every control of the run-job form may shrink
    ✅ got: ()
    [⚙️ assert] every control of the profile form may shrink
    ✅ got: ()
    [⚙️ assert] every control of the search form may shrink
    ✅ got: ()
    [⚙️ assert] every control of the locale chooser may shrink
    ✅ got: ()
ℹ️ info - ran 1 tasks in: 0 seconds, 2149 microseconds

running unit tests from file: log-streaming-spec.scm, entrypoint: spec


ℹ️ info - shuffled with seed 560614840 (replay with VERITAS_SEED=560614840)
+----------------------------------------------+
[📑 suite] job log streaming
  [🧪 test] output reaches the log a batch at a time, whole
    [⚙️ assert] the line that completes the batch is the one that writes
    ✅ got: ((calls-before-the-batch-completes 0) (text-held one
two
) (written-by-the-batch (one
two
three
)) (written-at-the-end (one
two
three
)) (calls-at-the-end 1))
  [🧪 test] a buffer writes only when it has something new to say
    [⚙️ assert] nothing gathered, and nothing gathered again, are not writes
    ✅ got: ((calls-of-an-empty-buffer 0) (first-flush (one
)) (calls-after-two-flushes 1))
  [🧪 test] a command is announced the way a finished log announces it
    [⚙️ assert] the banner names the command and starts its own line
    ✅ got: ((names-the-command #t) (starts-its-own-line #t))
  [🧪 test] a running job's log row is refreshed while it runs
    [⚙️ assert] two lines are held, and the batch that completes three is written
    ✅ got: ((before-the-batch ) (the-batch-is-in-the-row #t) (the-whole-log-is-in-the-row #t) (the-end-is-in-the-row #t))
  [🧪 test] one job's log is the log that is written
    [⚙️ assert] streaming into a job writes its log and no other
    ✅ got: ((the-job-log-is-written #t) (the-other-log-is-untouched ))
ℹ️ info - ran 1 tasks in: 0 seconds, 18007 microseconds

running unit tests from file: artifact-spec.scm, entrypoint: spec


ℹ️ info - shuffled with seed 560614840 (replay with VERITAS_SEED=560614840)
+----------------------------------------------+
[📑 suite] artifacts
  [🧪 test] the table a collection writes to is the table the migrations make
    [⚙️ assert] the artifact migration adds the artifact table
    ✅ got: (id job_id title artifact_path artifact_size created_at updated_at)
  [🧪 test] a collected tarball is recorded, and the job it was built by finds it
    [⚙️ assert] an artifact is read back by its id
    ✅ got: #t
    [⚙️ assert] the artifact keeps the job that collected it
    ✅ got: spec-artifact-job
    [⚙️ assert] the artifact keeps the size it was written with
    ✅ got: 2048
    [⚙️ assert] both collections of one job are its artifacts
    ✅ got: (((id . spec-artifact-1) (job-id . spec-artifact-job) (title . byggsteg-job.tar.gz) (artifact-path . /tmp/byggsteg-artifact-spec-3342/spec-artifact-job.tar.gz) (artifact-size . 2048) (created-at . 1792093660) (updated-at . #f)) ((id . spec-artifact-2) (job-id . spec-artifact-job) (title . byggsteg-job-2.tar.gz) (artifact-path . /tmp/byggsteg-artifact-spec-3342/spec-artifact-job-2.tar.gz) (artifact-size . 4096) (created-at . 1792093660) (updated-at . #f)))
    [⚙️ assert] a job nothing was collected for draws no artifacts
    ✅ got: ()
  [🧪 test] only a file inside the artifact directory may be downloaded
    [⚙️ assert] no row outside the artifact directory is servable
    ✅ got: ()
    [⚙️ assert] a recorded tarball inside it is servable
    ✅ got: #t
    [⚙️ assert] a row with no path is not servable
    ✅ got: #f
  [🧪 test] a job asks for one tarball of bare paths, or a bundle per name
    [⚙️ assert] a list of paths is one unnamed bundle, in the order written
    ✅ got: ((#f dist/wikimusic-api docs/manual))
    [⚙️ assert] each named bundle keeps its name and its paths
    ✅ got: ((binaries dist bin) (docs docs/manual))
    [⚙️ assert] bare paths and bundles mix, and keep the order they were written in
    ✅ got: ((#f README.org) (binaries dist) (docs docs/manual))
    [⚙️ assert] a bundle written as one list is a name and the paths behind it
    ✅ got: ((binaries dist bin))
    [⚙️ assert] a name written as a symbol is read as the name it spells
    ✅ got: ((binaries dist))
    [⚙️ assert] one path written without its list is still one path
    ✅ got: ((#f dist/app))
    [⚙️ assert] a field of nothing asks for nothing
    ✅ got: ()
    [⚙️ assert] a bundle that names no path is dropped rather than packed empty
    ✅ got: ()
  [🧪 test] forgetting a job's artifacts takes the tarballs and the rows
    [⚙️ assert] both go, and a row naming a file outside the directory leaves it alone
    ✅ got: ((forgotten 3) (rows-left 0) (tarballs-gone (#f #f)) (a-file-outside-the-directory-was-left-alone #t))
  [🧪 test] a sweep removes the tarballs no row points at, and nothing else
    [⚙️ assert] the old orphan goes; the fresh one, the named one, a name byggsteg never writes and a directory stay
    ✅ got: ((removed (/tmp/byggsteg-artifact-spec-3342/orphan-old.tar.gz)) (the-old-orphan-is-gone #f) (the-fresh-one-is-kept #t) (one-a-row-still-names-is-kept #t) (a-name-byggsteg-never-writes-is-left #t) (a-directory-is-left #t))
  [🧪 test] a download is offered under a name a header can carry
    [⚙️ assert] a title becomes a plain file name
    ✅ got: my-build--trunk-..-x.tar.gz
    [⚙️ assert] the second tarball of one job is numbered
    ✅ got: byggsteg-job-2.tar.gz
    [⚙️ assert] a named bundle is offered under its own name
    ✅ got: (binaries.tar.gz binaries-2.tar.gz docs-manual.tar.gz)
    [⚙️ assert] a size is read in the unit a reader can hold in mind
    ✅ got: 2.0 KiB
ℹ️ info - ran 1 tasks in: 0 seconds, 22165 microseconds

running unit tests from file: logs-page-spec.scm, entrypoint: spec


ℹ️ info - shuffled with seed 560614840 (replay with VERITAS_SEED=560614840)
+----------------------------------------------+
[📑 suite] reading a run of a list of runs
  [🧪 test] a row of a list of runs is the run's
    [⚙️ assert] the row leads to the page its output is read on
    ✅ got: /logs/spec-log-id
    [⚙️ assert] and carries the log's own name
    ✅ got: spec run
    [⚙️ assert] and the moment the run was taken, which is the job's
    ✅ got: Thu Jan  1 01:00:00 1970
    [⚙️ assert] and how the run went, which is the job's too
    ✅ got: job succeeded
  [🧪 test] a log whose job is gone is drawn as no row
    [⚙️ assert] there is no moment, no status and no page for it to say, so it says nothing
    ✅ got: 
  [🧪 test] the form that removes a run posts the run it is about
    [⚙️ assert] the run's page offers the form
    ✅ got: #t
    [⚙️ assert] and what it posts is the run's own id, and nothing else
    ✅ got: ((job-id . spec-job-id))
    [⚙️ assert] so the handler reads the run out of the submission
    ✅ got: spec-job-id
ℹ️ info - ran 1 tasks in: 0 seconds, 4112 microseconds

running unit tests from file: console-resources-spec.scm, entrypoint: spec


ℹ️ info - shuffled with seed 560614840 (replay with VERITAS_SEED=560614840)
+----------------------------------------------+
[📑 suite] the console's own appearance, served by the deployment itself
  [🧪 test] the Lucida in front of the stack is the deployment's to serve
    [⚙️ assert] a page asks for the Lucida sheet by default
    ✅ got: /css/lucida.css
    [⚙️ assert] a deployment that may not serve those faces asks for none
    ✅ got: /css/lucida.css
    [⚙️ assert] and one with a sheet of its own is asked for that
    ✅ got: https://example.org/lucida.css
    [⚙️ assert] which is asked for as it stands and not moved to an asset host
    ✅ got: https://assets.example.org/https://example.org
  [🧪 test] no page of the console asks anybody else for it
  [🧪 test] a deployment that keeps its assets elsewhere names that host
    [⚙️ assert] the mark the landing page shows moves with them
    ✅ got: <!DOCTYPE html><html lang="en" data-theme="dark"><head><title>console resources spec</title><script type="text/javascript">
(function () {
  var root = document.documentElement
  var choice = null
  try { choice = localStorage.getItem('data-theme') } catch (error) { choice = null }
  var scheme = function () {
    root.style.colorScheme = root.getAttribute('data-theme') === 'light' ? 'light' : 'dark'
  }
  root.setAttribute('data-theme', choice === 'light' ? 'light' : 'dark')
  scheme()
  if (typeof MutationObserver !== 'undefined') {
    new MutationObserver(scheme).observe(root, {attributes: true, attributeFilter: ['data-theme']})
  }
})()
</script><meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta charset="UTF-8" /><meta name="description" content="byggsteg is a hackable and extensible CI/CD orchestrator written in Guile Scheme: a pipeline is Lisp code, a running job's log is read while it is written, and the runner, the logs, the artifacts and the users are all yours to host." /><meta name="robots" content="index, follow" /><link rel="canonical" href="http://127.0.0.1:3000/" /><meta property="og:type" content="website" /><meta property="og:site_name" content="byggsteg" /><meta property="og:title" content="console resources spec" /><meta property="og:description" content="byggsteg is a hackable and extensible CI/CD orchestrator written in Guile Scheme: a pipeline is Lisp code, a running job's log is read while it is written, and the runner, the logs, the artifacts and the users are all yours to host." /><meta property="og:url" content="http://127.0.0.1:3000/" /><meta property="og:image" content="https://assets.example.org/img/byggsteg-logo.png" /><meta name="twitter:card" content="summary_large_image" /><meta name="twitter:title" content="console resources spec" /><meta name="twitter:description" content="byggsteg is a hackable and extensible CI/CD orchestrator written in Guile Scheme: a pipeline is Lisp code, a running job's log is read while it is written, and the runner, the logs, the artifacts and the users are all yours to host." /><meta name="twitter:image" content="https://assets.example.org/img/byggsteg-logo.png" /><link rel="stylesheet" href="https://assets.example.org/css/fonts.css" /><link rel="stylesheet" href="https://assets.example.org/css/lucida.css" /><link rel="preload" as="style" onload="this.onload=null;this.rel='stylesheet'" href="https://assets.example.org/css/phosphor.css" /><noscript><link rel="stylesheet" href="https://assets.example.org/css/phosphor.css" /></noscript><style type="text/css">/*
  hygguile - cozy and professional user-interfaces for everyone

  Copyright © Josep Bigorra <jjbigorra@gmail.com>

  hygguile is free software: you can redistribute it and/or modify
  it under the terms of the Lesser GNU General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.

  hygguile is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  Lesser GNU General Public License for more details.

  You should have received a copy of the Lesser GNU General Public License
  along with hygguile.  If not, see <https://www.gnu.org/licenses/>.
*/
                                     
/* Flyout menu / dropdown */
.flyout-submenu-button[aria-expanded="true"]::after {
  content: "↑";
  padding-left: 0.8em;
}

.flyout-submenu-button[aria-expanded="false"]::after {
  content: "↓";
  padding-left: 0.8em;
}

.flyout-submenu[hidden] {
  display: none;
}
</style><style type="text/css">/*
  hygguile - cozy and professional user-interfaces for everyone

  Copyright © Josep Bigorra <jjbigorra@gmail.com>

  hygguile is free software: you can redistribute it and/or modify
  it under the terms of the Lesser GNU General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.

  hygguile is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  Lesser GNU General Public License for more details.

  You should have received a copy of the Lesser GNU General Public License
  along with hygguile.  If not, see <https://www.gnu.org/licenses/>.
*/

/*
  Companion stylesheet for hygguile.

  Olive CSS intentionally only ships utility classes. A handful of
  components need a little structural CSS that cannot be expressed with
  single utilities (the styling of native <progress> and <details>, the
  CSS-only tabs, switch, modal and tooltip widgets). Everything here is
  plain, dependency-free CSS and works without JavaScript.

  Wherever Olive already provides the feature we lean on its utilities
  instead of reimplementing it: screen-reader-only text uses `sr-only`,
  loading animations use `animate-spin` and `animate-pulse`, and focus
  rings use the `focus-visible:outline-*` variants.
*/

/* ===== A couple of missing intrinsic-size utilities ===== */

.h-auto {
  height: auto;
}

.w-auto {
  width: auto;
}

/* ===== Spinner =====

   Only the ring visual lives here; the rotation is Olive's
   `animate-spin` utility, applied by the component itself. */

.hg-spinner {
  border-radius: 50%;
  border: 0.25rem solid rgba(120, 113, 108, 0.35);
  border-top-color: #57534e;
}

[data-theme="dark"] .hg-spinner {
  border-color: rgba(214, 211, 209, 0.25);
  border-top-color: #d6d3d1;
}

/* ===== A readable default ink =====

   Components carry their own colour classes, but text a page does not
   decorate must still be readable, and Olive ships no base ink of its own.
   Both rules land before olive.min.css in the document, so a `text-*`
   utility anywhere in the markup still wins over them. */

body {
  color: #1c1917;
}

[data-theme="dark"] body {
  color: #ededee;
}

/* ===== Native progress bar ===== */

.hg-progress {
  width: 100%;
  height: 1rem;
  border: 0;
  border-radius: 81.92rem;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(120, 113, 108, 0.25);
}

.hg-progress::-webkit-progress-bar {
  background: rgba(120, 113, 108, 0.25);
  border-radius: 81.92rem;
}

.hg-progress::-webkit-progress-value {
  background: #57534e;
  border-radius: 81.92rem;
}

.hg-progress::-moz-progress-bar {
  background: #57534e;
  border-radius: 81.92rem;
}

[data-theme="dark"] .hg-progress,
[data-theme="dark"] .hg-progress::-webkit-progress-bar {
  background: rgba(214, 211, 209, 0.2);
}

[data-theme="dark"] .hg-progress::-webkit-progress-value,
[data-theme="dark"] .hg-progress::-moz-progress-bar {
  background: #d6d3d1;
}

/* ===== CSS-only tabs (no JavaScript) ===== */

.hg-tabs {
  display: flex;
  flex-direction: column;
}

.hg-tab-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hg-tab-labels {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.25rem;
  border-bottom: 2px solid rgba(120, 113, 108, 0.35);
}

.hg-tab-label {
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem 0.75rem 0 0;
  font-weight: 500;
  /* 7.4:1 on the panel, not the 4.6:1 of a lighter grey: an unselected
     label is still text and still has to be read */
  color: #57534e;
  transition: color 0.15s ease, background-color 0.15s ease;
}

[data-theme="dark"] .hg-tab-label {
  color: #d6d3d1;
}

.hg-tab-panels {
  padding-top: 1rem;
}

.hg-tab-panel {
  display: none;
}

/* active label highlight */
.hg-tabs:has(> .hg-tab-input:nth-of-type(1):checked) > .hg-tab-labels > .hg-tab-label:nth-child(1),
.hg-tabs:has(> .hg-tab-input:nth-of-type(2):checked) > .hg-tab-labels > .hg-tab-label:nth-child(2),
.hg-tabs:has(> .hg-tab-input:nth-of-type(3):checked) > .hg-tab-labels > .hg-tab-label:nth-child(3),
.hg-tabs:has(> .hg-tab-input:nth-of-type(4):checked) > .hg-tab-labels > .hg-tab-label:nth-child(4),
.hg-tabs:has(> .hg-tab-input:nth-of-type(5):checked) > .hg-tab-labels > .hg-tab-label:nth-child(5),
.hg-tabs:has(> .hg-tab-input:nth-of-type(6):checked) > .hg-tab-labels > .hg-tab-label:nth-child(6),
.hg-tabs:has(> .hg-tab-input:nth-of-type(7):checked) > .hg-tab-labels > .hg-tab-label:nth-child(7),
.hg-tabs:has(> .hg-tab-input:nth-of-type(8):checked) > .hg-tab-labels > .hg-tab-label:nth-child(8) {
  background: rgba(120, 113, 108, 0.25);
  color: #1c1917;
}

[data-theme="dark"] .hg-tabs:has(> .hg-tab-input:nth-of-type(1):checked) > .hg-tab-labels > .hg-tab-label:nth-child(1),
[data-theme="dark"] .hg-tabs:has(> .hg-tab-input:nth-of-type(2):checked) > .hg-tab-labels > .hg-tab-label:nth-child(2),
[data-theme="dark"] .hg-tabs:has(> .hg-tab-input:nth-of-type(3):checked) > .hg-tab-labels > .hg-tab-label:nth-child(3),
[data-theme="dark"] .hg-tabs:has(> .hg-tab-input:nth-of-type(4):checked) > .hg-tab-labels > .hg-tab-label:nth-child(4),
[data-theme="dark"] .hg-tabs:has(> .hg-tab-input:nth-of-type(5):checked) > .hg-tab-labels > .hg-tab-label:nth-child(5),
[data-theme="dark"] .hg-tabs:has(> .hg-tab-input:nth-of-type(6):checked) > .hg-tab-labels > .hg-tab-label:nth-child(6),
[data-theme="dark"] .hg-tabs:has(> .hg-tab-input:nth-of-type(7):checked) > .hg-tab-labels > .hg-tab-label:nth-child(7),
[data-theme="dark"] .hg-tabs:has(> .hg-tab-input:nth-of-type(8):checked) > .hg-tab-labels > .hg-tab-label:nth-child(8) {
  background: rgba(214, 211, 209, 0.2);
  color: #f5f5f4;
}

/* active panel */
.hg-tabs:has(> .hg-tab-input:nth-of-type(1):checked) > .hg-tab-panels > .hg-tab-panel:nth-child(1),
.hg-tabs:has(> .hg-tab-input:nth-of-type(2):checked) > .hg-tab-panels > .hg-tab-panel:nth-child(2),
.hg-tabs:has(> .hg-tab-input:nth-of-type(3):checked) > .hg-tab-panels > .hg-tab-panel:nth-child(3),
.hg-tabs:has(> .hg-tab-input:nth-of-type(4):checked) > .hg-tab-panels > .hg-tab-panel:nth-child(4),
.hg-tabs:has(> .hg-tab-input:nth-of-type(5):checked) > .hg-tab-panels > .hg-tab-panel:nth-child(5),
.hg-tabs:has(> .hg-tab-input:nth-of-type(6):checked) > .hg-tab-panels > .hg-tab-panel:nth-child(6),
.hg-tabs:has(> .hg-tab-input:nth-of-type(7):checked) > .hg-tab-panels > .hg-tab-panel:nth-child(7),
.hg-tabs:has(> .hg-tab-input:nth-of-type(8):checked) > .hg-tab-panels > .hg-tab-panel:nth-child(8) {
  display: block;
}

/* keyboard focus */
.hg-tabs:has(> .hg-tab-input:nth-of-type(1):focus-visible) > .hg-tab-labels > .hg-tab-label:nth-child(1),
.hg-tabs:has(> .hg-tab-input:nth-of-type(2):focus-visible) > .hg-tab-labels > .hg-tab-label:nth-child(2),
.hg-tabs:has(> .hg-tab-input:nth-of-type(3):focus-visible) > .hg-tab-labels > .hg-tab-label:nth-child(3),
.hg-tabs:has(> .hg-tab-input:nth-of-type(4):focus-visible) > .hg-tab-labels > .hg-tab-label:nth-child(4),
.hg-tabs:has(> .hg-tab-input:nth-of-type(5):focus-visible) > .hg-tab-labels > .hg-tab-label:nth-child(5),
.hg-tabs:has(> .hg-tab-input:nth-of-type(6):focus-visible) > .hg-tab-labels > .hg-tab-label:nth-child(6),
.hg-tabs:has(> .hg-tab-input:nth-of-type(7):focus-visible) > .hg-tab-labels > .hg-tab-label:nth-child(7),
.hg-tabs:has(> .hg-tab-input:nth-of-type(8):focus-visible) > .hg-tab-labels > .hg-tab-label:nth-child(8) {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* ===== Switch backed by a native checkbox ===== */

.hg-switch-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hg-switch {
  position: relative;
  display: inline-block;
  flex: none;
  width: 2.75rem;
  height: 1.5rem;
  border-radius: 81.92rem;
  background: #a8a29e;
  cursor: pointer;
  transition: background 0.2s ease;
}

.hg-switch::after {
  content: "";
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 81.92rem;
  background: #ffffff;
  transition: transform 0.2s ease;
}

.hg-switch-input:checked ~ .hg-switch {
  background: #57534e;
}

[data-theme="dark"] .hg-switch-input:checked ~ .hg-switch {
  background: #d6d3d1;
}

.hg-switch-input:checked ~ .hg-switch::after {
  transform: translateX(1.25rem);
}

.hg-switch-input:focus-visible ~ .hg-switch {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* ===== CSS-only modal via :target ===== */

.hg-modal {
  display: none;
}

.hg-modal:target {
  display: grid;
  place-items: center;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 64;
}

.hg-modal-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(12, 10, 9, 0.6);
}

.hg-modal-content {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 34rem;
  margin: 1rem;
  padding: 1.25rem;
  border-radius: 1rem;
  box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.35);
  background: #f5f5f4;
  color: #1c1917;
}

[data-theme="dark"] .hg-modal-content {
  background: #262626;
  color: #f5f5f4;
}

.hg-modal-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.hg-modal-close {
  text-decoration: none;
  font-size: 1.5rem;
  line-height: 1;
  color: inherit;
}

.hg-modal-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hg-modal-footer {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* ===== CSS-only tooltips ===== */

.hg-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.hg-tooltip::after {
  content: attr(data-hg-tooltip);
  /* Hidden really means hidden: an absolutely positioned bubble still
     occupies layout space, so a tooltip near the right edge would widen
     the page and leave a phone layout that can be panned sideways.
     `display: none` removes the box entirely, which is how the modal and
     the fly-out menu already hide themselves. */
  display: none;
  position: absolute;
  z-index: 64;
  width: max-content;
  max-width: 16rem;
  padding: 0.35rem 0.6rem;
  border-radius: 0.6rem;
  background: #1c1917;
  color: #f5f5f4;
  font-size: 0.8rem;
  line-height: 1.25;
  pointer-events: none;
}

.hg-tooltip:hover::after,
.hg-tooltip:focus-visible::after {
  display: block;
  /* display cannot be transitioned, so the fade-in is an animation */
  animation: hg-tooltip-in 0.15s ease;
}

@keyframes hg-tooltip-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hg-tooltip-top::after {
  bottom: 100%;
  left: 50%;
  transform: translate(-50%, -0.4rem);
}

.hg-tooltip-bottom::after {
  top: 100%;
  left: 50%;
  transform: translate(-50%, 0.4rem);
}

.hg-tooltip-left::after {
  right: 100%;
  top: 50%;
  transform: translate(-0.4rem, -50%);
}

.hg-tooltip-right::after {
  left: 100%;
  top: 50%;
  transform: translate(0.4rem, -50%);
}

/* On a narrow viewport a wide bubble cannot always be centred on its
   trigger without leaving the screen, so the vertical variants are
   capped in width and aligned to the trigger's end edge instead. In
   left-to-right writing, overflow to the left never makes a page pan
   sideways, while overflow to the right does. */

@media (max-width: 40rem) {
  .hg-tooltip-top::after,
  .hg-tooltip-bottom::after {
    left: auto;
    right: 0;
    max-width: calc(100vw - 3rem);
  }

  .hg-tooltip-top::after {
    transform: translate(0, -0.4rem);
  }

  .hg-tooltip-bottom::after {
    transform: translate(0, 0.4rem);
  }
}

/* ===== Drifting colour washes =====

   The wallpaper trick: a few oversized, heavily blurred discs of colour
   behind a frosted panel. `.hg-blob` only adds the slow drift, so the
   size, position, colour and blur stay in the markup where Olive already
   expresses them (`blur-3xl`, `w-96`, `bg-naples-yellow-500/50`, ...).
   Stagger the discs with an inline `animation-delay` so they never move
   in lockstep.

   How fast a disc drifts and how far it travels are the page's business,
   not this sheet's: `glass-wash` writes `--hg-blob-duration`, `--hg-blob-x`
   and `--hg-blob-y` as inline custom properties -- and an inline
   `animation-delay` to stagger the discs -- so the values below are only
   the defaults for a wash that says nothing. A keyframe resolves its
   `var()`s per element, so one panel can breathe for a minute while the
   next crosses its own corner in a couple of rems. */

.hg-blob {
  animation: hg-blob-drift var(--hg-blob-duration, 26s) ease-in-out infinite alternate;
}

@keyframes hg-blob-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(var(--hg-blob-x, 1.5rem),
                           var(--hg-blob-y, -1.25rem),
                           0)
               scale(var(--hg-blob-scale, 1.08));
  }
}

/* ===== The layer the discs are painted in =====

   A pane rounds the layer holding its washes and clips it, and neither the
   rounding nor the clip stops a disc: a child with a `filter` is painted
   with the blur that filter asks for, and the browser draws that blur into
   the square box it reaches -- past the layer's rounded edge, into the
   corner the radius curves away from. What is left on the page is a faint
   square of wash beside each corner, a percent or two of ink: measured
   against a mid-grey page, a corner square that should have held the
   page's own 128 read 130. `overflow: clip`, `contain: paint`,
   `isolation: isolate` and promoting the layer to one of its own all leave
   it in place (each measured on its own); an explicit `clip-path` is what
   clips it. And a clip has to name a radius -- it cannot inherit one the
   way `border-radius: inherit` can.

   So this class names it -- and names it off the very rounding the markup
   gave the layer, since the layer wears the pane's own rounding classes.
   The radius has to be restated as a length, so these rules restate
   Olive's named ladder; they are the one place here that has to agree with
   another sheet, and a spec pins the tokens the framework rounds its own
   glass with to a rule apiece, so a rounding cannot lose its clip without
   a test going red.
   A radius given outright in `--hg-glass-clip' still wins, on the layer or
   on any ancestor, which is what a caller rounding with one of Olive's
   numeric steps (`rounded-24', say) reaches for, as does a pane whose
   radius is not one of the named ones at all.

   The default in each rule is `rounded-3xl', the rounding a pane wears
   when a caller leaves `#:rounding' alone: a layer wearing something the
   table below does not name still keeps its washes in. */

.hg-glass-layer {
  clip-path: inset(0 round var(--hg-glass-clip, 1.28rem));
}

.hg-glass-layer[class~="rounded-none"] {
  clip-path: inset(0 round var(--hg-glass-clip, 0));
}

.hg-glass-layer[class~="rounded-2xs"] {
  clip-path: inset(0 round var(--hg-glass-clip, 0.16rem));
}

.hg-glass-layer[class~="rounded-xs"] {
  clip-path: inset(0 round var(--hg-glass-clip, 0.32rem));
}

.hg-glass-layer[class~="rounded-sm"] {
  clip-path: inset(0 round var(--hg-glass-clip, 0.48rem));
}

.hg-glass-layer[class~="rounded-md"] {
  clip-path: inset(0 round var(--hg-glass-clip, 0.64rem));
}

.hg-glass-layer[class~="rounded-lg"] {
  clip-path: inset(0 round var(--hg-glass-clip, 0.80rem));
}

.hg-glass-layer[class~="rounded-xl"] {
  clip-path: inset(0 round var(--hg-glass-clip, 0.96rem));
}

.hg-glass-layer[class~="rounded-2xl"] {
  clip-path: inset(0 round var(--hg-glass-clip, 1.12rem));
}

.hg-glass-layer[class~="rounded-3xl"] {
  clip-path: inset(0 round var(--hg-glass-clip, 1.28rem));
}

.hg-glass-layer[class~="rounded-4xl"] {
  clip-path: inset(0 round var(--hg-glass-clip, 1.44rem));
}

.hg-glass-layer[class~="rounded-5xl"] {
  clip-path: inset(0 round var(--hg-glass-clip, 1.60rem));
}

.hg-glass-layer[class~="rounded-full"] {
  clip-path: inset(0 round var(--hg-glass-clip, 9999px));
}

/* ===== Frost that survives a rounded corner =====

   A backdrop-filter asks the browser to blur and colour whatever sits
   behind a pane. Chromium paints that filtered backdrop in the pane's
   square border box and ignores its `border-radius`, so a rounded pane
   leaks a square patch of frost wherever its radius curves away from the
   corner (Chromium issue 41212594, still open). A radius on that element
   does not stop it, and a `clip-path` on it does not either. The one
   thing that does is clipping the frosted box itself: an element that
   carries `overflow: hidden` alongside its radius gets its frost rounded
   off, because the browser then has a shape to clip the filtered backdrop
   to.

   The frost therefore lives one level in, on the pane's own `::before`:
   a layer that rounds itself to the pane's radius with `border-radius:
   inherit` -- so it follows whatever radius the markup or a caller gave
   the pane -- clips itself, and carries the blur. Being a decoration
   rather than a container, it leaves the pane's own children painted
   above it and free to escape, which is what a bar holding a dropdown
   needs.

   How strong the frost is stays a knob: `--hg-frost-blur` is the blur
   radius, 4rem unless something says otherwise (the same value Olive's
   `backdrop-blur-md` utility sets). A custom property cannot be a utility
   class on a pseudo-element, so it is the one setting that is passed as a
   declaration rather than a class: `glass-panel' writes it from Scheme
   for the panes it builds (`#:frost'), markup this sheet frosts by hand
   passes the declaration itself, and a pane with neither reaches for
   `hg-frost-soft' below instead.

   `position: relative` gives the layer something to be absolute against
   even when a pane places itself with layout classes alone. A pane that
   sets a position utility of its own takes over, since olive.min.css is
   inlined after this sheet.

   `z-index: 0' on the pane and `-1' on the layer are what keep the frost
   *under* the pane's content. An absolutely placed layer paints above
   in-flow text and blocks, so a frosted pane whose content was never
   wrapped in a layer of its own -- a dropdown's list is one -- would
   otherwise have its contents blurred away behind the frost. A negative
   stack level puts the layer in the first step of the pane's stacking
   order instead, right after the pane's own background and border, which
   is where the frost belongs. The pane was a stacking context anyway
   while it carried the blur itself, so nothing about the order of what
   is *outside* the pane changes, and the layer's own corner can no
   longer paint over the pane's hairline. */

.hg-frost {
  position: relative;
  z-index: 0;
}

.hg-frost::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  -webkit-backdrop-filter: blur(var(--hg-frost-blur, 4rem));
  backdrop-filter: blur(var(--hg-frost-blur, 4rem));
}

/* A gentler frost, for the small panes the framework frosts with a class
   rather than a declaration: the carousel's arrow discs, a couple of rems
   across, would be all blur at a panel's strength. Olive's blur ladder
   cannot reach a pseudo-element, so this sheet names the one step below
   the default that something actually wears. */

.hg-frost-soft {
  --hg-frost-blur: 3rem;
}

/* The smallest step, for the pills and labels a page frosts by hand: a
   badge two rems tall is all blur at a pane's strength, and the label on a
   colour swatch wants a hint of it and no more. Naming the step is what
   keeps those pills on the same recipe as the panes -- the frost paints in
   a rounded layer of its own, so the square patch of blur Olive's
   `backdrop-blur-*' utilities leave at a rounded corner never appears. */

.hg-frost-pill {
  --hg-frost-blur: 1rem;
}

/* ===== The heading type scale =====

   Heading line-heights are ratios rather than lengths, because a heading is
   sized by a utility the page may move up or down the scale at will: a
   length would have to be re-picked whenever the font-size changed, and a
   ratio follows on its own. The steps loosen as the size shrinks (1.3 for
   the display sizes, 1.35 for a section title, 1.4 for the smaller
   headings), which is the usual shape of a type scale, and every one of
   them is loose enough that a line's glyphs -- descenders, accents, the lot
   -- stay inside the box the line occupies.

   That is a requirement, not a preference. Gradient ink is a background
   clipped to the letters, so it can only paint where the heading's own box
   reaches: a `g` whose descender falls below it is not cropped but drawn
   transparent. The ratios here are measured against the two faces the
   framework ships, of which Plus Jakarta Sans asks for the most room at
   1.24 of the line box at worst; 1.3 is that with margin to spare. Body
   copy sits looser still, at 1.5. */

.hg-leading-display {
  line-height: 1.3;
}

.hg-leading-title {
  line-height: 1.35;
}

.hg-leading-subtitle {
  line-height: 1.4;
}

/* ===== Gradient text =====

   One gradient per theme, since a deep sweep that sings on the light
   background turns to mud on the dark one.

   The compound `h1.`/`h2.` selectors are deliberate: Olive's text-colour
   utilities are single classes, and this sheet is inlined before
   olive.min.css, so a bare `.hg-gradient-text` would lose the cascade
   and the heading would keep its solid colour.

   Nothing here has to widen the box the ink is painted in, and that is the
   heading scale's doing rather than this rule's: every heading it matches
   carries a leaded line-height from `hg-leading-*' above, so the descenders
   of a `g` sit inside the heading's own box and have gradient to paint.
   A page that overrides the leading with a tighter one -- `leading-none' or
   a `leading-*' of its own, which lands after this sheet -- takes the clip
   back into its own hands. */

h1.hg-gradient-text,
h2.hg-gradient-text {
  background-image: linear-gradient(100deg,
                                    oklch(0.7404 0.1399 91.55 / 1),
                                    oklch(0.6183 0.1557 45.26 / 1) 45%,
                                    oklch(0.4929 0.161 279.98 / 1));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

[data-theme="dark"] h1.hg-gradient-text,
[data-theme="dark"] h2.hg-gradient-text {
  background-image: linear-gradient(100deg,
                                    oklch(0.8855 0.1307 92.19 / 1),
                                    oklch(0.7404 0.1656 39.8 / 1) 45%,
                                    oklch(0.7439 0.1301 288.16 / 1));
}

/* ===== Expandable cards =====

   An expandable card is a native <details>, so it opens and hides with no
   script at all. The only structural help it asks for here is to drop the
   browser's own summary marker -- the chevron in the summary is the
   affordance, and it turns as the card opens -- and, because a card is also
   what a section rail links to, to keep a header a link jumped to clear of
   that rail. */

.hg-expandable-summary {
  list-style: none;
  /* deep enough for a card header to clear a sticky section rail above it */
  scroll-margin-top: 7rem;
inspect the job's lambda expression
(lambda()
  `((task . ("maak-test" "byggsteg-version" "maak-deploy"))
    (daemon-name . "byggsteg-daemon")
    (project . "byggsteg")
    (branch-name . "trunk")
    (clone-url . "https://codeberg.org/jjba23/byggsteg.git")))