A rented build box as a third forge instance runner: threat model and setup plan #30

Open
opened 2026-11-22 10:09:19 +00:00 by mars · 11 comments
Member

Purpose (infrastructure): one rented build box gives the forge a third instance runner, so CI queues of ~146 jobs drain; this issue holds its threat model and setup plan before anything is rented.

DECIDED 2026-11-22 "should I spin up a build box? / yes" (Raf, via the Supervisor).

Scope (plan and script only: nothing rented, nothing registered):

  • ONE Hetzner cloud box, dedicated vCPU (~8c/32G), same location as git.macula.io.
  • One instance-level forgejo-runner, same version as host00/msi00, label docker only, ~4 slots, capacity derived from the box memory against the jobs 6GB limit.

Threat model must cover:

  • no publishing or signing secret ever reaches it (martha-bwrap, image-build, the signer and FORGE_PACKAGES_TOKEN stay on host00);
  • which repos jobs it may take (private repos run there: name that exposure);
  • the registration token lifetime;
  • ssh keys only, firewall in only for ssh from our IPs;
  • job containers rootless or isolated as on host00;
  • how the box is wiped and the runner deregistered on delete;
  • cost per month at Hetzner current list price, read from their page.

Setup plan: a script the crew runs with the Hetzner token (as with the forge box), never an owner act on the box, plus the forge runner registration step.

Done when: threat model + setup script read by an Opus member (PASS), then one owner menu (rent, setup, register).

Refs #601, #24

Purpose (infrastructure): one rented build box gives the forge a third instance runner, so CI queues of ~146 jobs drain; this issue holds its threat model and setup plan before anything is rented. DECIDED 2026-11-22 "should I spin up a build box? / yes" (Raf, via the Supervisor). Scope (plan and script only: nothing rented, nothing registered): - ONE Hetzner cloud box, dedicated vCPU (~8c/32G), same location as git.macula.io. - One instance-level forgejo-runner, same version as host00/msi00, label `docker` only, ~4 slots, capacity derived from the box memory against the jobs 6GB limit. Threat model must cover: - no publishing or signing secret ever reaches it (martha-bwrap, image-build, the signer and FORGE_PACKAGES_TOKEN stay on host00); - which repos jobs it may take (private repos run there: name that exposure); - the registration token lifetime; - ssh keys only, firewall in only for ssh from our IPs; - job containers rootless or isolated as on host00; - how the box is wiped and the runner deregistered on delete; - cost per month at Hetzner current list price, read from their page. Setup plan: a script the crew runs with the Hetzner token (as with the forge box), never an owner act on the box, plus the forge runner registration step. Done when: threat model + setup script read by an Opus member (PASS), then one owner menu (rent, setup, register). Refs #601, #24
Member

Build box rented (Refs macula-io/martha#30, DECIDED 2026-11-22 "On demand (Recommended)").

  • Server: build00-macula-io, Hetzner id 177182987, ccx33 in hel1, debian-13, IPv4 37.27.159.78
  • Firewall: build00-in, id 12130968 (tcp 22 from our egress /32 only)
  • Runner: build00-instance (labels ubuntu-latest, docker, on-build00), capacity 4. Not registered yet: setup, register and prove come next.
  • UTC start: 2026-11-22T10:37:35Z (Hetzner's created time; create finished 10:38:17Z)
  • Price: €0.1891/h net (server 0.1883 + IPv4 0.0008), €0.2288/h incl. 21% VAT
  • Script: build-box.sh sha256 8078501a, lib.sh 72079f6b
  • Delete duty (Mercurius): once the forge queue has been empty for 30 minutes, run FORGE_GO=build-box-delete build-box.sh delete, read back that the runner row, server and firewall are gone, then post hours × €0.1891 here.
Build box rented (Refs macula-io/martha#30, DECIDED 2026-11-22 "On demand (Recommended)"). - Server: build00-macula-io, Hetzner id 177182987, ccx33 in hel1, debian-13, IPv4 37.27.159.78 - Firewall: build00-in, id 12130968 (tcp 22 from our egress /32 only) - Runner: build00-instance (labels ubuntu-latest, docker, on-build00), capacity 4. Not registered yet: setup, register and prove come next. - UTC start: 2026-11-22T10:37:35Z (Hetzner's created time; create finished 10:38:17Z) - Price: €0.1891/h net (server 0.1883 + IPv4 0.0008), €0.2288/h incl. 21% VAT - Script: build-box.sh sha256 8078501a, lib.sh 72079f6b - Delete duty (Mercurius): once the forge queue has been empty for 30 minutes, run `FORGE_GO=build-box-delete build-box.sh delete`, read back that the runner row, server and firewall are gone, then post hours × €0.1891 here.
Member

Build box STOPPED at setup and deleted (Refs macula-io/martha#30). Nothing is billed any more.

What happened. create passed (server 177182987 at 2026-11-22T10:37:35Z, firewall 12130968, first host key pinned). setup made the new host key on the box and pinned it, then its next ssh failed: the box still presents ED25519 SHA256:KHR/O325FAX21Prk2d6FhDE9oO+Oc/XM/I9CvzNrY2Q, but the pin now holds the new key SHA256:dgL02AUzkCyjbTXRr11Zaz0RVqCc3zOvxy88vHiV7M0. STOP: "build00 does not answer with its new host key".

Defect in build-box.sh 8078501a, lines 165-177. The comment at line 166 says "sshd reads its host key files on every connection". That is false for OpenSSH 9.8 and later. Debian 13 ships 10.x, where the listening sshd loads host keys once at start and hands them to each sshd-session. So the new key on disk is not served until sshd restarts, but the restart only comes later (line 187), over a session that now refuses the old key. The likely served key is the first, cloud-init key. I can't prove that: setup removed its public half at line 176. A re-run of setup could not fix it (the pin names a key the box won't serve), so under the go's rule the box was deleted.

Fix sketch, for a new sha and review, not by me unasked: restart (or reload) ssh in the same session that writes the new key, then pin it. Or pin the new key, systemctl restart ssh over the old pin, and only then switch the pin. Also: delete's firewall DELETE returned 422 while the server was still detaching it (line 359). It needs a wait for applied_to to be empty first. A second delete run finished cleanly.

Delete read-back (10:39:49Z): servers named build00-macula-io 0, firewalls named build00-in 0, live runner rows named build00-instance 0 (the runner was never registered: no registration token was minted). Local pin, address and done marks dropped.

Cost: from 10:37:35Z to deleted around 10:39:30Z, about 2 minutes, billed as 1 started hour: 1 × €0.1891 = €0.19 net (€0.23 incl. VAT).

Build box STOPPED at setup and deleted (Refs macula-io/martha#30). Nothing is billed any more. **What happened.** create passed (server 177182987 at 2026-11-22T10:37:35Z, firewall 12130968, first host key pinned). setup made the new host key on the box and pinned it, then its next ssh failed: the box still presents ED25519 `SHA256:KHR/O325FAX21Prk2d6FhDE9oO+Oc/XM/I9CvzNrY2Q`, but the pin now holds the new key `SHA256:dgL02AUzkCyjbTXRr11Zaz0RVqCc3zOvxy88vHiV7M0`. STOP: "build00 does not answer with its new host key". **Defect in build-box.sh 8078501a, lines 165-177.** The comment at line 166 says "sshd reads its host key files on every connection". That is false for OpenSSH 9.8 and later. Debian 13 ships 10.x, where the listening sshd loads host keys once at start and hands them to each sshd-session. So the new key on disk is not served until sshd restarts, but the restart only comes later (line 187), over a session that now refuses the old key. The likely served key is the first, cloud-init key. I can't prove that: setup removed its public half at line 176. A re-run of setup could not fix it (the pin names a key the box won't serve), so under the go's rule the box was deleted. **Fix sketch, for a new sha and review, not by me unasked:** restart (or reload) ssh in the same session that writes the new key, then pin it. Or pin the new key, `systemctl restart ssh` over the old pin, and only then switch the pin. Also: delete's firewall DELETE returned 422 while the server was still detaching it (line 359). It needs a wait for `applied_to` to be empty first. A second delete run finished cleanly. **Delete read-back** (10:39:49Z): servers named build00-macula-io 0, firewalls named build00-in 0, live runner rows named build00-instance 0 (the runner was never registered: no registration token was minted). Local pin, address and done marks dropped. **Cost:** from 10:37:35Z to deleted around 10:39:30Z, about 2 minutes, billed as 1 started hour: 1 × €0.1891 = €0.19 net (€0.23 incl. VAT).
Member

Build box RENTED (Refs macula-io/martha#30), build-box.sh sha256 89d98501 (r=4 PASS, Neptunus), owner yes 2026-11-22 "Yes, rent now (Recommended)".

  • server build00-macula-io, id 177210565, ccx33 hel1, 37.27.159.78, created 2026-11-22T16:04:25Z (billing start)
  • firewall build00-in, id 12133077 (tcp 22 from our egress only)
  • runner build00-instance (to be registered)
  • price: €0.1891/hour net
  • delete duty: Mercurius runs build-box.sh delete once no run has waited for 30 minutes, and reads back that the runner row, server and firewall are gone. Hours × price follow in a later comment.
Build box RENTED (Refs macula-io/martha#30), build-box.sh sha256 89d98501 (r=4 PASS, Neptunus), owner yes 2026-11-22 "Yes, rent now (Recommended)". - server build00-macula-io, id 177210565, ccx33 hel1, 37.27.159.78, created 2026-11-22T16:04:25Z (billing start) - firewall build00-in, id 12133077 (tcp 22 from our egress only) - runner build00-instance (to be registered) - price: €0.1891/hour net - delete duty: Mercurius runs `build-box.sh delete` once no run has waited for 30 minutes, and reads back that the runner row, server and firewall are gone. Hours × price follow in a later comment.
Member

Build box STOPPED and DELETED (Refs macula-io/martha#30). Nothing is billed any more.

Timeline (UTC): create 16:04:25 (server 177210565, firewall 12133077), setup 16:05:47 (the r=4 host-key swap worked first time on the real box), register 16:06:01 (token row 5 retired, 0 active), prove 16:06:40 (all five checks passed). Runner stopped 16:08:12, delete 16:08:51. Read back: servers named build00-macula-io 0, firewalls named build00-in 0, server 177210565 returns 404, live runner rows 0, active registration tokens 0. delete's new firewall wait worked on its first live run.

Defect in build-box.sh 89d98501, setup step 2: the box gets no git. forgejo-runner clones each action (actions/checkout, setup-node...) on the host, so every job that uses an action failed in under a second: unable to probe object format for https://data.forgejo.org/actions/checkout: ls-remote failed: exec: "git": executable file not found in $PATH (task 1931). prove can't catch it, because its job-shaped container uses no action. Fix sketch, for a new sha and review: add git to setup's apt-get line, and make prove run one job that uses an action.

Damage: in about 2 minutes build00 took 153 tasks: 7 success, 106 failure, 40 skipped. 35 runs were turned red by this, and they need a re-run:

  • macula-io/martha: 1625-1634
  • macula-io/macula-ci-images: 1635-1641, 1650, 1656-1659, 1662
  • macula-io/macula-sponsors: 1642, 1644-1646, 1648, 1649, 1651, 1653, 1654
  • macula-apps/martha-engine: 1666, 1667
  • macula-io/forge-canary: 1671 (my canary on branch mercurius/30-build00, bc57ba44; its one red job was cut by the runner stop after 2 of 6 LAN targets had already read as dropped)

Cost: 16:04:25 to 16:08:51, about 4.5 minutes, billed as 1 started hour: 1 × €0.1891 = €0.19 net (€0.23 incl. VAT).

Build box STOPPED and DELETED (Refs macula-io/martha#30). Nothing is billed any more. **Timeline (UTC):** create 16:04:25 (server 177210565, firewall 12133077), setup 16:05:47 (the r=4 host-key swap worked first time on the real box), register 16:06:01 (token row 5 retired, 0 active), prove 16:06:40 (all five checks passed). Runner stopped 16:08:12, delete 16:08:51. Read back: servers named build00-macula-io 0, firewalls named build00-in 0, server 177210565 returns 404, live runner rows 0, active registration tokens 0. delete's new firewall wait worked on its first live run. **Defect in build-box.sh 89d98501, setup step 2:** the box gets no `git`. forgejo-runner clones each action (actions/checkout, setup-node...) on the host, so every job that uses an action failed in under a second: `unable to probe object format for https://data.forgejo.org/actions/checkout: ls-remote failed: exec: "git": executable file not found in $PATH` (task 1931). prove can't catch it, because its job-shaped container uses no action. Fix sketch, for a new sha and review: add `git` to setup's apt-get line, and make prove run one job that uses an action. **Damage:** in about 2 minutes build00 took 153 tasks: 7 success, 106 failure, 40 skipped. 35 runs were turned red by this, and they need a re-run: - macula-io/martha: 1625-1634 - macula-io/macula-ci-images: 1635-1641, 1650, 1656-1659, 1662 - macula-io/macula-sponsors: 1642, 1644-1646, 1648, 1649, 1651, 1653, 1654 - macula-apps/martha-engine: 1666, 1667 - macula-io/forge-canary: 1671 (my canary on branch mercurius/30-build00, bc57ba44; its one red job was cut by the runner stop after 2 of 6 LAN targets had already read as dropped) **Cost:** 16:04:25 to 16:08:51, about 4.5 minutes, billed as 1 started hour: 1 × €0.1891 = €0.19 net (€0.23 incl. VAT).
Member

Rent 3, BILLED from 2026-11-22T21:50:19Z. Server build00-macula-io, id 177240229, 37.27.159.78 (hel1, ccx33). Firewall build00-in, id 12135337. Runner build00-instance (not registered yet).

Price: €117.49/month net + €0.50 IPv4. Basis: Raf answered "Yes, rent now (Recommended)" directly on 2026-11-22, after the Supervisor relayed his yes.

Order: setup with r6 (pin label on-build00 only; Pluto is reviewing, diff-only) → register → prove → one forge-canary job on on-build00, green to its end → open (adds ubuntu-latest and docker) → watch its first tasks → delete after 30 minutes with an empty queue. Then the hours and euro go here.

Delete: cd ~/.claude/sessions/forgejo-setup && FORGE_GO=build-box-delete bash build-box/build-box.sh delete

**Rent 3, BILLED from 2026-11-22T21:50:19Z.** Server build00-macula-io, id 177240229, 37.27.159.78 (hel1, ccx33). Firewall build00-in, id 12135337. Runner build00-instance (not registered yet). Price: €117.49/month net + €0.50 IPv4. Basis: Raf answered "Yes, rent now (Recommended)" directly on 2026-11-22, after the Supervisor relayed his yes. Order: setup with r6 (pin label on-build00 only; Pluto is reviewing, diff-only) → register → prove → one forge-canary job on on-build00, green to its end → `open` (adds ubuntu-latest and docker) → watch its first tasks → `delete` after 30 minutes with an empty queue. Then the hours and euro go here. Delete: `cd ~/.claude/sessions/forgejo-setup && FORGE_GO=build-box-delete bash build-box/build-box.sh delete`
Member

Stale-queue list for build00's 30-min rule (Supervisor ruling via Mars, 2026-11-23 ~00:40Z). Read from the forge DB at 00:29Z.

Rule: a waiting job (status 5) older than 12 h, or one whose runs-on no online runner offers. Online runners at the time: build00-instance [ubuntu-latest, docker, on-build00], host00-instance [ubuntu-latest, on-host00, docker], msi00-instance [ubuntu-latest, on-msi00, docker], host00-image-build [image-build], host00-martha-bwrap [martha-bwrap].

job repo run (id / #) job name runs-on created
1826 macula-io/macula-realm 1162 / #82 guard-1 ["self-hosted","host00"] 2026-11-22 04:02Z
1829 macula-io/macula-realm 1163 / #83 gitleaks ["self-hosted","host00"] 2026-11-22 04:02Z

Those two are the whole list. Both match both rules: older than 12 h, and no runner offers that label.

Not cancelled yet: Forgejo 15.0.12's API has no cancel. /repos/{owner}/{repo}/actions/runs/{run_id} offers GET only, and the swagger lists no cancel or job route. A run-level cancel would also cancel run 1162's 3 blocked jobs (1820 guard, 1823 Build & Push, 1824 attest), which are not on the list. Reported to Mars; nothing cancelled.

Stale-queue list for build00's 30-min rule (Supervisor ruling via Mars, 2026-11-23 ~00:40Z). Read from the forge DB at 00:29Z. Rule: a waiting job (status 5) older than 12 h, or one whose runs-on no online runner offers. Online runners at the time: build00-instance [ubuntu-latest, docker, on-build00], host00-instance [ubuntu-latest, on-host00, docker], msi00-instance [ubuntu-latest, on-msi00, docker], host00-image-build [image-build], host00-martha-bwrap [martha-bwrap]. | job | repo | run (id / #) | job name | runs-on | created | |---|---|---|---|---|---| | 1826 | macula-io/macula-realm | 1162 / #82 | guard-1 | ["self-hosted","host00"] | 2026-11-22 04:02Z | | 1829 | macula-io/macula-realm | 1163 / #83 | gitleaks | ["self-hosted","host00"] | 2026-11-22 04:02Z | Those two are the whole list. Both match both rules: older than 12 h, and no runner offers that label. Not cancelled yet: Forgejo 15.0.12's API has no cancel. `/repos/{owner}/{repo}/actions/runs/{run_id}` offers GET only, and the swagger lists no cancel or job route. A run-level cancel would also cancel run 1162's 3 blocked jobs (1820 guard, 1823 Build & Push, 1824 attest), which are not on the list. Reported to Mars; nothing cancelled.
Member

Dead-label leftovers, under the Supervisor's ruling of 2026-11-23 via Mars. Cancel these when Forgejo has a cancel API. No web-UI or DB cancel, and no ask to Raf.

  • macula-io/macula-realm run 1162 (#82), job 1826 guard-1, runs-on ["self-hosted","host00"]
  • macula-io/macula-realm run 1163 (#83), job 1829 gitleaks, runs-on ["self-hosted","host00"]

build00's watch is now ~/.claude/sessions/mercurius-30-r3/b00watch2.sh (444). Its empty check leaves out any waiting job whose runs-on no online runner offers, and each summary line says how many it left out (2 at the switch, 00:4xZ: 124 takeable or running). The box goes once that real queue has been empty for 30 min.

Dead-label leftovers, under the Supervisor's ruling of 2026-11-23 via Mars. **Cancel these when Forgejo has a cancel API.** No web-UI or DB cancel, and no ask to Raf. - macula-io/macula-realm run 1162 (#82), job 1826 guard-1, runs-on ["self-hosted","host00"] - macula-io/macula-realm run 1163 (#83), job 1829 gitleaks, runs-on ["self-hosted","host00"] build00's watch is now ~/.claude/sessions/mercurius-30-r3/b00watch2.sh (444). Its empty check leaves out any waiting job whose runs-on no online runner offers, and each summary line says how many it left out (2 at the switch, 00:4xZ: 124 takeable or running). The box goes once that real queue has been empty for 30 min.
Member

build00 (rent 3) DELETED at 2026-11-23 05:51Z. Early, on Mars's word (the crew is cut to ~10, and I park), before the 08:00Z backstop.

Command, from ~/.claude/sessions/forgejo-setup, with build-box.sh r6 sha256 681e93e1:

FORGE_GO=build-box-delete bash build-box/build-box.sh delete

Output:

forgejo-setup: go (build-box-delete): DELETE build00: stop its runner, delete build00-instance on git.macula.io (read back), then delete server build00-macula-io and firewall build00-in
forgejo-setup: build00-instance deleted on git.macula.io (no live row left)
forgejo-setup: build00 deleted: runner row, server and firewall gone (read back); its host keys and address dropped here

Read back separately: Hetzner has 0 servers named build00-macula-io, server id 177240229 answers 404, firewall id 12135337 answers not_found, and the forge runner row build00-instance is marked deleted with 0 running tasks.

Hours and euros: live from 2026-11-22T21:50:19Z to 2026-11-23T05:51:02Z = 8.01 h. At €0.1891/h net (ccx33, the rate recorded for rent 2, c354) that is €1.52 net. If Hetzner bills each started hour, it is 9 h = €1.70 net. The IPv4 adds under €0.01.

Work done: build00 ran 935 tasks after the canary (task id > 2851): 721 success, 46 failure, 12 cancelled, 156 skipped. Every failure is a known red (nothing private, relay #19, clean-install #3, mcl-mail#5/mcl-stations c4-model, PR 72's npm ci, the martha-engine Rust build) or a capacity fit (martha-engine trial lines needing 4.2 GiB, task 4080, sent to Terra). I found no box fault.

Killed by the delete: 4 jobs were running and need a re-run by their owners: 4977 clean-install (martha PR 84), 5005 relay (martha PR 90), 5029 check (mcl-graph PR 6), and 5032 node in . (martha main).

Still open on this issue: dead-label realm jobs 1826/1829 (c869), to cancel once Forgejo has a cancel API. Each new rent needs Raf's own yes.

**build00 (rent 3) DELETED** at 2026-11-23 05:51Z. Early, on Mars's word (the crew is cut to ~10, and I park), before the 08:00Z backstop. Command, from ~/.claude/sessions/forgejo-setup, with build-box.sh r6 sha256 681e93e1: ``` FORGE_GO=build-box-delete bash build-box/build-box.sh delete ``` Output: ``` forgejo-setup: go (build-box-delete): DELETE build00: stop its runner, delete build00-instance on git.macula.io (read back), then delete server build00-macula-io and firewall build00-in forgejo-setup: build00-instance deleted on git.macula.io (no live row left) forgejo-setup: build00 deleted: runner row, server and firewall gone (read back); its host keys and address dropped here ``` Read back separately: Hetzner has 0 servers named build00-macula-io, server id 177240229 answers 404, firewall id 12135337 answers not_found, and the forge runner row build00-instance is marked deleted with 0 running tasks. **Hours and euros:** live from 2026-11-22T21:50:19Z to 2026-11-23T05:51:02Z = **8.01 h**. At €0.1891/h net (ccx33, the rate recorded for rent 2, c354) that is **€1.52 net**. If Hetzner bills each started hour, it is 9 h = **€1.70 net**. The IPv4 adds under €0.01. **Work done:** build00 ran 935 tasks after the canary (task id > 2851): 721 success, 46 failure, 12 cancelled, 156 skipped. Every failure is a known red (nothing private, relay #19, clean-install #3, mcl-mail#5/mcl-stations c4-model, PR 72's npm ci, the martha-engine Rust build) or a capacity fit (martha-engine trial lines needing 4.2 GiB, task 4080, sent to Terra). I found no box fault. **Killed by the delete:** 4 jobs were running and need a re-run by their owners: 4977 clean-install (martha PR 84), 5005 relay (martha PR 90), 5029 check (mcl-graph PR 6), and 5032 node in . (martha main). Still open on this issue: dead-label realm jobs 1826/1829 (c869), to cancel once Forgejo has a cancel API. Each new rent needs Raf's own yes.
Member

Runner list read back after the delete (forge DB, 05:52Z). Runner 8 build00-instance is deregistered (deleted=t, last seen 05:50:54Z). Its row is kept only as a soft delete, and no job can be given to it.

Command: bash -c 'source ./lib.sh; box_admin "sudo docker compose -f $BOX_DIR/compose.yml exec -T db psql -U forgejo -d forgejo -tAq"' <<< "select id, name, agent_labels, coalesce(deleted,0)<>0 as deleted, to_timestamp(last_online) from action_runner order by id;"

Output (id|name|labels|deleted|last online):

1|host00-macula-io|["ubuntu-latest","on-host00","docker"]|t|2026-11-21 23:27:22+00
2|msi00-macula-io|["ubuntu-latest","on-msi00","docker"]|t|2026-11-21 23:27:23+00
3|host00-image-build|["image-build"]|f|2026-11-23 05:52:19+00
4|host00-instance|["ubuntu-latest","on-host00","docker"]|f|2026-11-23 05:52:20+00
5|msi00-instance|["ubuntu-latest","on-msi00","docker"]|f|2026-11-23 05:52:20+00
6|host00-martha-bwrap|["martha-bwrap"]|f|2026-11-23 05:52:19+00
7|build00-instance|["ubuntu-latest","docker","on-build00"]|t|2026-11-22 16:08:12+00
8|build00-instance|["ubuntu-latest","docker","on-build00"]|t|2026-11-23 05:50:54+00
Runner list read back after the delete (forge DB, 05:52Z). Runner 8 build00-instance is **deregistered** (deleted=t, last seen 05:50:54Z). Its row is kept only as a soft delete, and no job can be given to it. Command: `bash -c 'source ./lib.sh; box_admin "sudo docker compose -f $BOX_DIR/compose.yml exec -T db psql -U forgejo -d forgejo -tAq"' <<< "select id, name, agent_labels, coalesce(deleted,0)<>0 as deleted, to_timestamp(last_online) from action_runner order by id;"` Output (id|name|labels|deleted|last online): ``` 1|host00-macula-io|["ubuntu-latest","on-host00","docker"]|t|2026-11-21 23:27:22+00 2|msi00-macula-io|["ubuntu-latest","on-msi00","docker"]|t|2026-11-21 23:27:23+00 3|host00-image-build|["image-build"]|f|2026-11-23 05:52:19+00 4|host00-instance|["ubuntu-latest","on-host00","docker"]|f|2026-11-23 05:52:20+00 5|msi00-instance|["ubuntu-latest","on-msi00","docker"]|f|2026-11-23 05:52:20+00 6|host00-martha-bwrap|["martha-bwrap"]|f|2026-11-23 05:52:19+00 7|build00-instance|["ubuntu-latest","docker","on-build00"]|t|2026-11-22 16:08:12+00 8|build00-instance|["ubuntu-latest","docker","on-build00"]|t|2026-11-23 05:50:54+00 ```
Member

Rent 3 delete report and the cost of all three rents (as Mars asked; adds to c1267 and c1272).

Delete time: build-box.sh delete (r6, sha256 681e93e1) ran from 2026-11-23T05:50:4xZ to 05:51:02Z. The forge runner row 8 was soft-deleted at 05:50:56Z, then the server and firewall were deleted, and the script ended at 05:51:02Z.

Read-back (from ~/.claude/sessions/forgejo-setup; api is lib.sh's call, which passes the token on stdin, never in argv):

$ api RECKON_HCLOUD_TOKEN GET https://api.hetzner.cloud/v1/servers/177240229   # lib.sh api: token on stdin, never argv
curl: (22) The requested URL returned error: 404  { "error": { "code": "not_found", "message": "server not found" } }

$ api RECKON_HCLOUD_TOKEN GET "https://api.hetzner.cloud/v1/servers?name=build00-macula-io" | jq ".servers|length"
0
$ api RECKON_HCLOUD_TOKEN GET https://api.hetzner.cloud/v1/firewalls/12135337 | jq -r .error.code
not_found
$ api RECKON_HCLOUD_TOKEN GET "https://api.hetzner.cloud/v1/firewalls?name=build00-in" | jq ".firewalls|length"
0
$ forge DB: select count(*) from action_runner where name='build00-instance' and (deleted is null or deleted=0);   # live rows, runner 8 included
0
$ forge DB: select id, name, deleted from action_runner where id in (7,8);
7|build00-instance|2026-11-22 16:08:45+00
8|build00-instance|2026-11-23 05:50:56+00

So server 404, firewall gone, and 0 live forge runner rows named build00-instance, runner 8 included.

Cost. ccx33 hel1 at €0.1891/h net. Hetzner bills each started hour; VAT is 21%.

rent live (UTC) billed hours net incl. 21% VAT
1 2026-11-22 10:37:35 to ~10:39:49 (2 min) 1 €0.19 €0.23
2 2026-11-22 16:04:25 to 16:08:51 (4.5 min) 1 €0.19 €0.23
3 2026-11-22 21:50:19 to 2026-11-23 05:51:02 (8 h 0 min 43 s) 9 €1.70 €2.06
total 11 €2.08 €2.52

Each rent's IPv4 (€0.50/month) adds under €0.01. If Hetzner bills rent 3 by the minute instead (8.01 h), it is €1.52 net / €1.83 incl. VAT, and the total is €1.90 / €2.29.

**Rent 3 delete report and the cost of all three rents** (as Mars asked; adds to c1267 and c1272). **Delete time:** `build-box.sh delete` (r6, sha256 681e93e1) ran from 2026-11-23T05:50:4xZ to 05:51:02Z. The forge runner row 8 was soft-deleted at **05:50:56Z**, then the server and firewall were deleted, and the script ended at **05:51:02Z**. **Read-back** (from ~/.claude/sessions/forgejo-setup; `api` is lib.sh's call, which passes the token on stdin, never in argv): ``` $ api RECKON_HCLOUD_TOKEN GET https://api.hetzner.cloud/v1/servers/177240229 # lib.sh api: token on stdin, never argv curl: (22) The requested URL returned error: 404 { "error": { "code": "not_found", "message": "server not found" } } $ api RECKON_HCLOUD_TOKEN GET "https://api.hetzner.cloud/v1/servers?name=build00-macula-io" | jq ".servers|length" 0 $ api RECKON_HCLOUD_TOKEN GET https://api.hetzner.cloud/v1/firewalls/12135337 | jq -r .error.code not_found $ api RECKON_HCLOUD_TOKEN GET "https://api.hetzner.cloud/v1/firewalls?name=build00-in" | jq ".firewalls|length" 0 $ forge DB: select count(*) from action_runner where name='build00-instance' and (deleted is null or deleted=0); # live rows, runner 8 included 0 $ forge DB: select id, name, deleted from action_runner where id in (7,8); 7|build00-instance|2026-11-22 16:08:45+00 8|build00-instance|2026-11-23 05:50:56+00 ``` So server 404, firewall gone, and 0 live forge runner rows named build00-instance, runner 8 included. **Cost.** ccx33 hel1 at €0.1891/h net. Hetzner bills each started hour; VAT is 21%. | rent | live (UTC) | billed hours | net | incl. 21% VAT | |---|---|---|---|---| | 1 | 2026-11-22 10:37:35 to ~10:39:49 (2 min) | 1 | €0.19 | €0.23 | | 2 | 2026-11-22 16:04:25 to 16:08:51 (4.5 min) | 1 | €0.19 | €0.23 | | 3 | 2026-11-22 21:50:19 to 2026-11-23 05:51:02 (8 h 0 min 43 s) | 9 | €1.70 | €2.06 | | **total** | | **11** | **€2.08** | **€2.52** | Each rent's IPv4 (€0.50/month) adds under €0.01. If Hetzner bills rent 3 by the minute instead (8.01 h), it is €1.52 net / €1.83 incl. VAT, and the total is €1.90 / €2.29.
Member

Correction to c1276 (the Supervisor caught it; c1276 is left as it was).

c1276's per-minute total, €1.90 / €2.29, mixed the two billing rules: rent 3 per minute plus rents 1 and 2 per started hour. Billed per minute, all three rents come to:

  • rent 1: 10:37:35 to 10:39:49 = 0.037 h
  • rent 2: 16:04:25 to 16:08:51 = 0.074 h
  • rent 3: 21:50:19 to 05:51:02 = 8.012 h
  • together 8.123 h × €0.1891 = €1.54 net / €1.86 incl. 21% VAT. Rents 1 and 2 add €0.02 of that.

The per-started-hour total stands as written: 11 h = €2.08 net / €2.52 incl. VAT. Which of the two Hetzner charges shows on the invoice.

**Correction to c1276** (the Supervisor caught it; c1276 is left as it was). c1276's per-minute total, €1.90 / €2.29, mixed the two billing rules: rent 3 per minute plus rents 1 and 2 per started hour. Billed per minute, all three rents come to: - rent 1: 10:37:35 to 10:39:49 = 0.037 h - rent 2: 16:04:25 to 16:08:51 = 0.074 h - rent 3: 21:50:19 to 05:51:02 = 8.012 h - together 8.123 h × €0.1891 = **€1.54 net / €1.86 incl. 21% VAT**. Rents 1 and 2 add €0.02 of that. The per-started-hour total stands as written: **11 h = €2.08 net / €2.52 incl. VAT**. Which of the two Hetzner charges shows on the invoice.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
martha-ai/martha#30
No description provided.