<feed xmlns='http://www.w3.org/2005/Atom'>
<title>aur-build/docs, branch ai/main</title>
<subtitle>Unnamed repository
</subtitle>
<link rel='alternate' type='text/html' href='http://git.jnsn.dev/cgit/aur-build/'/>
<entry>
<title>docs: remove the design and architecture docs</title>
<updated>2026-11-19T18:02:25+00:00</updated>
<author>
<name>aur-build</name>
<email>aur-build@localhost</email>
</author>
<published>2026-11-19T18:02:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.jnsn.dev/cgit/aur-build/commit/?id=7841c4afe8759c39cf4556953122aea5a6de71b4'/>
<id>7841c4afe8759c39cf4556953122aea5a6de71b4</id>
<content type='text'>
DESIGN.md, ARCH_REVIEW.md, docs/DECISIONS.md and docs/INVARIANTS.md are gone,
along with the references that pointed at them: the README links and layout
entry, the §/I-n citations README carried from the design doc, the Cargo.toml
shim comment, and the DESIGN.md citation in the first migration's SQL.

Nothing read these files at build or test time; 267 tests pass unchanged.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
DESIGN.md, ARCH_REVIEW.md, docs/DECISIONS.md and docs/INVARIANTS.md are gone,
along with the references that pointed at them: the README links and layout
entry, the §/I-n citations README carried from the design doc, the Cargo.toml
shim comment, and the DESIGN.md citation in the first migration's SQL.

Nothing read these files at build or test time; 267 tests pass unchanged.
</pre>
</div>
</content>
</entry>
<entry>
<title>sandbox: the kata lease path publishes a real package, and the config says what it means</title>
<updated>2026-11-19T15:57:39+00:00</updated>
<author>
<name>aur-build</name>
<email>aur-build@localhost</email>
</author>
<published>2026-11-19T15:57:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.jnsn.dev/cgit/aur-build/commit/?id=94c318f13264bb3c00a9f3057ba2e1aafb57c9e4'/>
<id>94c318f13264bb3c00a9f3057ba2e1aafb57c9e4</id>
<content type='text'>
The end-to-end claim of the seam, tested as one thing: `plain-make` detected,
approved, built and published through `KataBackend` + `LocalAgentProvisioner` —
a real `sandbox-agent` process, a real nonce-matched rendezvous, real frames —
with a VM being the only thing this host cannot provide. The index ends up
serving the package, the agent's output reaches the same log the SSE tail reads,
and the shim saw exactly one `makepkg`.

Documented where the project records such things: the enum and the refusal of an
unwired kind, the shared listener and the shared Kata backend, and the
`shared_workspace` assertion as a guard rather than a fix — the workspace sync is
still the unimplemented thing it was, and the config now says so at startup
instead of letting `makepkg` discover it.

Also reaped two unreaped `sandbox-agent` children in the remote tests, which was
the last clippy warning in the tree; `--all-targets` is now silent.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The end-to-end claim of the seam, tested as one thing: `plain-make` detected,
approved, built and published through `KataBackend` + `LocalAgentProvisioner` —
a real `sandbox-agent` process, a real nonce-matched rendezvous, real frames —
with a VM being the only thing this host cannot provide. The index ends up
serving the package, the agent's output reaches the same log the SSE tail reads,
and the shim saw exactly one `makepkg`.

Documented where the project records such things: the enum and the refusal of an
unwired kind, the shared listener and the shared Kata backend, and the
`shared_workspace` assertion as a guard rather than a fix — the workspace sync is
still the unimplemented thing it was, and the config now says so at startup
instead of letting `makepkg` discover it.

Also reaped two unreaped `sandbox-agent` children in the remote tests, which was
the last clippy warning in the tree; `--all-targets` is now silent.
</pre>
</div>
</content>
</entry>
<entry>
<title>config: the root is the directory config.json lives in</title>
<updated>2026-11-19T14:15:28+00:00</updated>
<author>
<name>aur-build</name>
<email>aur-build@localhost</email>
</author>
<published>2026-11-19T14:15:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.jnsn.dev/cgit/aur-build/commit/?id=8096fde8d98cdde4e110865ebb15ad034b92ff27'/>
<id>8096fde8d98cdde4e110865ebb15ad034b92ff27</id>
<content type='text'>
`--root` names a directory and `init` writes config.json inside it, so the root
was already named by where the config lived. The `root` field in the file was
treated as a second source of truth instead: a relative one was re-joined onto
the config's own directory, and `init` saved whatever it had been handed. So
`--root runtime` wrote `"root": "runtime"`, and every command after `init`
resolved it to `runtime/runtime/` — a second tree with its own empty database,
while `init` had created and migrated the first one. The user-visible half was a
path like `runtime/runtime/repo/aur-build/os/x86_64/…` in an error message.

Compounding it, the CLI fell back to a default config whenever loading failed, so
a typo'd `--root` produced a fresh empty server that answered every command as
though it were the one you meant. `load` now sets the root to the directory it
found the config in, absolutized, and a missing config is an error for every
command except `init` — the only one that runs before one exists.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`--root` names a directory and `init` writes config.json inside it, so the root
was already named by where the config lived. The `root` field in the file was
treated as a second source of truth instead: a relative one was re-joined onto
the config's own directory, and `init` saved whatever it had been handed. So
`--root runtime` wrote `"root": "runtime"`, and every command after `init`
resolved it to `runtime/runtime/` — a second tree with its own empty database,
while `init` had created and migrated the first one. The user-visible half was a
path like `runtime/runtime/repo/aur-build/os/x86_64/…` in an error message.

Compounding it, the CLI fell back to a default config whenever loading failed, so
a typo'd `--root` produced a fresh empty server that answered every command as
though it were the one you meant. `load` now sets the root to the directory it
found the config in, absolutized, and a missing config is an error for every
command except `init` — the only one that runs before one exists.
</pre>
</div>
</content>
</entry>
<entry>
<title>publish: repo-add decides the database filename</title>
<updated>2026-11-19T14:15:16+00:00</updated>
<author>
<name>aur-build</name>
<email>aur-build@localhost</email>
</author>
<published>2026-11-19T14:15:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.jnsn.dev/cgit/aur-build/commit/?id=153e72cc797c1e45a60f4896d00163fb4bdf3056'/>
<id>153e72cc797c1e45a60f4896d00163fb4bdf3056</id>
<content type='text'>
Publishing renders the index before the DB commits and renames it into place
after, so a crash between the two leaves the old index serving (I4). The way
that was written did it at `&lt;db&gt;.tar.gz.tmp` beside the live file — a filename
real repo-add refuses, because its database argument has to be a name pacman
would accept. Every publish test passed; the first real package anyone tried to
publish died at the last step with the release already committed.

`render_db` now renders into a scratch directory under the served directory,
under the name a consumer will download. Same filesystem, so the rename is still
the atomic swap, and the live database is never the file repo-add is writing
into. `publish`, `reconcile` and `withdraw_package` all had the bug and all share
the helper now; `reconcile` sweeps scratch directories a crash left behind.
`run_repo_add` drops `-s` too: repo-add would sign into scratch space that is
about to be deleted, and `publish::sign` already signs the renamed file.

The reason 238 tests missed this is that the shim would write the database
anywhere it was told. It now enforces the accepted set — measured against
`repo-add (pacman) 7.1.0`, not read out of its docs — with the real tool's
wording and exit status, and a gated test re-derives the set against the
installed tool, in the shape of the vercmp oracle. A shim that is more
permissive than its tool is not a test of the tool.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Publishing renders the index before the DB commits and renames it into place
after, so a crash between the two leaves the old index serving (I4). The way
that was written did it at `&lt;db&gt;.tar.gz.tmp` beside the live file — a filename
real repo-add refuses, because its database argument has to be a name pacman
would accept. Every publish test passed; the first real package anyone tried to
publish died at the last step with the release already committed.

`render_db` now renders into a scratch directory under the served directory,
under the name a consumer will download. Same filesystem, so the rename is still
the atomic swap, and the live database is never the file repo-add is writing
into. `publish`, `reconcile` and `withdraw_package` all had the bug and all share
the helper now; `reconcile` sweeps scratch directories a crash left behind.
`run_repo_add` drops `-s` too: repo-add would sign into scratch space that is
about to be deleted, and `publish::sign` already signs the renamed file.

The reason 238 tests missed this is that the shim would write the database
anywhere it was told. It now enforces the accepted set — measured against
`repo-add (pacman) 7.1.0`, not read out of its docs — with the real tool's
wording and exit status, and a gated test re-derives the set against the
installed tool, in the shape of the vercmp oracle. A shim that is more
permissive than its tool is not a test of the tool.
</pre>
</div>
</content>
</entry>
<entry>
<title>docs: the sandbox decisions, recorded where decisions get recorded</title>
<updated>2026-11-19T12:11:32+00:00</updated>
<author>
<name>aur-build</name>
<email>aur-build@localhost</email>
</author>
<published>2026-11-19T12:11:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.jnsn.dev/cgit/aur-build/commit/?id=43a2bfaaac60bc378135ad90c46c9d42777aeb1e'/>
<id>43a2bfaaac60bc378135ad90c46c9d42777aeb1e</id>
<content type='text'>
DECISIONS.md gains the three entries this work turned on: signing moved
hub-side to ingest (the build machine must never hold the key), the
devtools chroot is gone (the sandbox is the isolation boundary, and
I9 gets stronger with it), and dependencies arrive pinned by digest via
pacman -U rather than being resolved at build time. Each states the
pressure, the choice, and the cost — including the costs: the unsigned
window between build and ingest, the makechrootpkg-convention PKGBUILD
tail to hunt in the gated tier, and the official-package pinning that
is honestly still future work.

DESIGN.md's step table and §8.3 now describe what the code does, and a
new §8a documents the sandbox-backend seam: loopback, remote, kata, and
the TTL as the guarantee under every leak. INVARIANTS.md's I9 note moves
from 'enforced by the chroot' to 'enforced by the sandbox' — the
pipeline's own hygiene test still pins what it always pinned. The
README's testing section names the new shim surface and the two new
test tiers, and the gated-tier list reflects the kata live tier in
place of the retired real-chroot one.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
DECISIONS.md gains the three entries this work turned on: signing moved
hub-side to ingest (the build machine must never hold the key), the
devtools chroot is gone (the sandbox is the isolation boundary, and
I9 gets stronger with it), and dependencies arrive pinned by digest via
pacman -U rather than being resolved at build time. Each states the
pressure, the choice, and the cost — including the costs: the unsigned
window between build and ingest, the makechrootpkg-convention PKGBUILD
tail to hunt in the gated tier, and the official-package pinning that
is honestly still future work.

DESIGN.md's step table and §8.3 now describe what the code does, and a
new §8a documents the sandbox-backend seam: loopback, remote, kata, and
the TTL as the guarantee under every leak. INVARIANTS.md's I9 note moves
from 'enforced by the chroot' to 'enforced by the sandbox' — the
pipeline's own hygiene test still pins what it always pinned. The
README's testing section names the new shim surface and the two new
test tiers, and the gated-tier list reflects the kata live tier in
place of the retired real-chroot one.
</pre>
</div>
</content>
</entry>
<entry>
<title>docs: the review's decisions, and the invariants that hold them</title>
<updated>2026-11-18T19:00:25+00:00</updated>
<author>
<name>aur-build</name>
<email>aur-build@localhost</email>
</author>
<published>2026-11-18T19:00:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.jnsn.dev/cgit/aur-build/commit/?id=8835a0a86c82d922a2d674f3543c331dc9adb9e5'/>
<id>8835a0a86c82d922a2d674f3543c331dc9adb9e5</id>
<content type='text'>
The structural findings are only durable if they are written down as rules with
the test that enforces each one, so:

`docs/INVARIANTS.md` gains a second table. The first one is the twelve numbered
invariants from DESIGN.md §2 — claims about what the system does. The new one is
about how the code is allowed to be shaped: SQL has one owner, a version is
formatted in one place, the dependency arrows point one way, the state machines
are the ones the transition table defines, the production binary carries no test
scaffolding, the served index has one lock, `canonical_json` is canonical in
fact, the session id is the credential, and a pinned clock pins everything
derived from it. Each row names the test that fails if the shape regresses.

`docs/DECISIONS.md` gains the decisions the review turned into code — the session
id as the credential, `db/` as a boundary that does not hand out connections, a
stale review and a broken database being different answers, shims compiled out of
production, states as enums with compare-and-swap writes, unreadable rows failing
the query, and only momentary I/O counting as transient. Two existing entries
were amended rather than added to: the publisher lock (there is now one, and the
second one that used to sit inside it is gone) and the test hooks (they are a
gated submodule now, not fields on the production config).

`README.md` says where the shims live and that none of them exist in a plain
`cargo build`.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The structural findings are only durable if they are written down as rules with
the test that enforces each one, so:

`docs/INVARIANTS.md` gains a second table. The first one is the twelve numbered
invariants from DESIGN.md §2 — claims about what the system does. The new one is
about how the code is allowed to be shaped: SQL has one owner, a version is
formatted in one place, the dependency arrows point one way, the state machines
are the ones the transition table defines, the production binary carries no test
scaffolding, the served index has one lock, `canonical_json` is canonical in
fact, the session id is the credential, and a pinned clock pins everything
derived from it. Each row names the test that fails if the shape regresses.

`docs/DECISIONS.md` gains the decisions the review turned into code — the session
id as the credential, `db/` as a boundary that does not hand out connections, a
stale review and a broken database being different answers, shims compiled out of
production, states as enums with compare-and-swap writes, unreadable rows failing
the query, and only momentary I/O counting as transient. Two existing entries
were amended rather than added to: the publisher lock (there is now one, and the
second one that used to sit inside it is gone) and the test hooks (they are a
gated submodule now, not fields on the production config).

`README.md` says where the shims live and that none of them exist in a plain
`cargo build`.
</pre>
</div>
</content>
</entry>
<entry>
<title>the real chroot caught what no shim test could: mkarchroot has no -N flag</title>
<updated>2026-11-18T10:26:15+00:00</updated>
<author>
<name>aur-build</name>
<email>aur-build@localhost</email>
</author>
<published>2026-11-18T10:26:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.jnsn.dev/cgit/aur-build/commit/?id=157c078e52fee6c37ff20093189ae7ad7cd223cb'/>
<id>157c078e52fee6c37ff20093189ae7ad7cd223cb</id>
<content type='text'>
Ran the gated tier as far as this host allows, with real devtools, real root and
real network, and it paid for itself immediately.

`mkarchroot` has no `-N` option. The pipeline was calling `mkarchroot -N &lt;seed&gt;`;
the shim ignored the unknown flag, so every test passed, and the real tool
answered with a usage error. The first real chroot build would have died on its
first step in a code path the shim harness structurally cannot exercise. The
seed's package list is now configuration (`mkarchroot_args`, default `base`) and
the call follows the real usage: `mkarchroot &lt;working-dir&gt; &lt;packages...&gt;`.

What else the attempt verified, with the real binaries rather than the shims: a
generated GPG key detached-signed the artifact the pipeline produced and
`gpg --verify` reported a good signature; real `repo-add -s -k` built and signed
a pacman database over it, and that signature verified too. So "both the packages
and the .db are signed" now rests on real crypto.

Where it stops: `mkarchroot &lt;dir&gt; base` downloaded and installed the base set into
the chroot (437 MB, 14 packages, install scripts ran) and then failed in
devtools' init stage with `Failed to parse --bind(-ro)= argument` from
systemd-nspawn 262 inside an unprivileged container. DECISIONS.md records exactly
what was run, what passed, what failed and why, and what therefore remains
modelled rather than crossed — a silent skip would have hidden all of the above,
including the flag bug.

Also fixes the I9 test's expectation: a refused build is an `Outcome::Failed` at
the `collect` step, not an `Err` from the runner, which is the correct shape (the
build failed closed and said why) and the test now asserts the step name.

171 tests pass, clippy clean.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Ran the gated tier as far as this host allows, with real devtools, real root and
real network, and it paid for itself immediately.

`mkarchroot` has no `-N` option. The pipeline was calling `mkarchroot -N &lt;seed&gt;`;
the shim ignored the unknown flag, so every test passed, and the real tool
answered with a usage error. The first real chroot build would have died on its
first step in a code path the shim harness structurally cannot exercise. The
seed's package list is now configuration (`mkarchroot_args`, default `base`) and
the call follows the real usage: `mkarchroot &lt;working-dir&gt; &lt;packages...&gt;`.

What else the attempt verified, with the real binaries rather than the shims: a
generated GPG key detached-signed the artifact the pipeline produced and
`gpg --verify` reported a good signature; real `repo-add -s -k` built and signed
a pacman database over it, and that signature verified too. So "both the packages
and the .db are signed" now rests on real crypto.

Where it stops: `mkarchroot &lt;dir&gt; base` downloaded and installed the base set into
the chroot (437 MB, 14 packages, install scripts ran) and then failed in
devtools' init stage with `Failed to parse --bind(-ro)= argument` from
systemd-nspawn 262 inside an unprivileged container. DECISIONS.md records exactly
what was run, what passed, what failed and why, and what therefore remains
modelled rather than crossed — a silent skip would have hidden all of the above,
including the flag bug.

Also fixes the I9 test's expectation: a refused build is an `Outcome::Failed` at
the `collect` step, not an `Err` from the runner, which is the correct shape (the
build failed closed and said why) and the test now asserts the step name.

171 tests pass, clippy clean.
</pre>
</div>
</content>
</entry>
<entry>
<title>I9: the pipeline stops trusting paths the build could have placed, plus README and the invariant index</title>
<updated>2026-11-18T10:16:12+00:00</updated>
<author>
<name>aur-build</name>
<email>aur-build@localhost</email>
</author>
<published>2026-11-18T10:16:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.jnsn.dev/cgit/aur-build/commit/?id=12fb09b0ad11c0d9305d606b3b4fced8ba04d385'/>
<id>12fb09b0ad11c0d9305d606b3b4fced8ba04d385</id>
<content type='text'>
Three things.

**A real hole, closed.** `collect` scans the build's srcdir for
`*.pkg.tar.zst`, and `ingest` copies whatever those paths resolve to into the
content-addressed store — from where the bytes are served from our repo and
signed with our key. The paths are generated by our own scan, but their *targets*
are not: a PKGBUILD that drops a symlink called `evil.pkg.tar.zst` pointing at
the signing keyring, the database, or anyone's home directory would have its
target copied in, published and signed by us. The chroot is supposed to be the
layer that prevents that, and the chroot tier is gated — but two protection
layers must not be load-bearing on each other, and the control plane should not
depend on isolation for the safety of its own secrets.

`collect` now rejects symlinks and rejects anything whose canonicalized target
escapes the build's own staging directory, failing the build closed with the path
in the message. `i9_a_build_cannot_smuggle_bytes_in_from_outside_its_own_staging_dir`
acts the attack out — the shim plants a symlink to the database file — and
asserts the build fails, the store is byte-for-byte untouched, and nothing
publishes. This is the last §2 invariant that had no named test; docs/INVARIANTS.md
says plainly which part of I9 this covers and which part belongs to the gated
chroot tier.

**README.md**, written for the person who has to operate this at 3am: the rule
everything else follows, the quick start, the layout, how the shim harness makes
the whole pipeline testable without root or network, the ops commands, the route
table, and the §14 constraints stated as the hard edges they are.

**docs/INVARIANTS.md**, mapping I1-I12 to the named tests that hold them, with
corroborating tests listed, and an explicit note on the two invariants enforced
by the schema (the partial unique index for I7, the append-only triggers for
I10/I7) so a future code path cannot forget them.

Also recorded in DECISIONS.md: metrics served without a session and why,
retention recording a purge instead of deleting the row, and the real-chroot tier
being explicitly skipped with what stands in for it and how to actually run it.

.gitignore already covered .pi/ but the goal-tracker files were tracked from
before the rule existed; untracked now so they stop appearing in every diff.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Three things.

**A real hole, closed.** `collect` scans the build's srcdir for
`*.pkg.tar.zst`, and `ingest` copies whatever those paths resolve to into the
content-addressed store — from where the bytes are served from our repo and
signed with our key. The paths are generated by our own scan, but their *targets*
are not: a PKGBUILD that drops a symlink called `evil.pkg.tar.zst` pointing at
the signing keyring, the database, or anyone's home directory would have its
target copied in, published and signed by us. The chroot is supposed to be the
layer that prevents that, and the chroot tier is gated — but two protection
layers must not be load-bearing on each other, and the control plane should not
depend on isolation for the safety of its own secrets.

`collect` now rejects symlinks and rejects anything whose canonicalized target
escapes the build's own staging directory, failing the build closed with the path
in the message. `i9_a_build_cannot_smuggle_bytes_in_from_outside_its_own_staging_dir`
acts the attack out — the shim plants a symlink to the database file — and
asserts the build fails, the store is byte-for-byte untouched, and nothing
publishes. This is the last §2 invariant that had no named test; docs/INVARIANTS.md
says plainly which part of I9 this covers and which part belongs to the gated
chroot tier.

**README.md**, written for the person who has to operate this at 3am: the rule
everything else follows, the quick start, the layout, how the shim harness makes
the whole pipeline testable without root or network, the ops commands, the route
table, and the §14 constraints stated as the hard edges they are.

**docs/INVARIANTS.md**, mapping I1-I12 to the named tests that hold them, with
corroborating tests listed, and an explicit note on the two invariants enforced
by the schema (the partial unique index for I7, the append-only triggers for
I10/I7) so a future code path cannot forget them.

Also recorded in DECISIONS.md: metrics served without a session and why,
retention recording a purge instead of deleting the row, and the real-chroot tier
being explicitly skipped with what stands in for it and how to actually run it.

.gitignore already covered .pi/ but the goal-tracker files were tracked from
before the rule existed; untracked now so they stop appearing in every diff.
</pre>
</div>
</content>
</entry>
<entry>
<title>http: SSE log tail, htmx-refreshed builds table, vendored JS budget (§13)</title>
<updated>2026-11-18T09:01:17+00:00</updated>
<author>
<name>aur-build</name>
<email>aur-build@localhost</email>
</author>
<published>2026-11-18T09:01:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.jnsn.dev/cgit/aur-build/commit/?id=4cb2f4c7b68dceaed8f7ffbd8f0db3cfbf3f1ddc'/>
<id>4cb2f4c7b68dceaed8f7ffbd8f0db3cfbf3f1ddc</id>
<content type='text'>
GET /builds/:id/log.stream serves the build log as server-sent events from a
blocking std::io::Read polled by the connection's thread — no async runtime,
no timer wheel. The pipeline appends to a plain file and never learns the
reader exists, so a viewer that hangs up, stalls or never shows up cannot slow
a build by a microsecond. The stream ends when the build reaches a terminal
state instead of holding a connection open forever, and there is a 30-minute
lifetime cap so a wedged build cannot wedge a browser tab indefinitely.

The test proves it is actually live rather than buffered: a producer thread
appends while the stream is open, and the reader must see those bytes before
the build finishes, then see the end event.

The builds table refreshes with hx-trigger="every 3s" against a fragment
endpoint, so htmx swaps one &lt;div&gt; rather than a whole document. Without
JavaScript the same HTML already contains the table — the refresh is an
enhancement, never a requirement.

Static assets are served from include_bytes!, precompressed, with the
Content-Length forced so tiny_http does not chunk a file whose size we know.

Vendoring decision, recorded in docs/DECISIONS.md: the design's '~14 KB htmx'
does not exist — released htmx is 48 KB minified. We vendor 1.9.12 unmodified
and serve the 15.6 KB gzip, and the budget is asserted on served bytes with a
bare-socket test, because an HTTP client would transparently decompress and
hide the number. htmx's SSE extension is deliberately NOT vendored: it swaps
with innerHTML and a build log is untrusted text from someone else's PKGBUILD,
so wiring it up would be an XSS hole opened to make a log scroll by itself.
The review surface still ships no JavaScript at all, asserted by grepping the
rendered page for &lt;script.

Also: styles moved out of base.html into static/app.css, and docs/DECISIONS.md
started with the decisions made so far. 138 tests pass, clippy clean.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
GET /builds/:id/log.stream serves the build log as server-sent events from a
blocking std::io::Read polled by the connection's thread — no async runtime,
no timer wheel. The pipeline appends to a plain file and never learns the
reader exists, so a viewer that hangs up, stalls or never shows up cannot slow
a build by a microsecond. The stream ends when the build reaches a terminal
state instead of holding a connection open forever, and there is a 30-minute
lifetime cap so a wedged build cannot wedge a browser tab indefinitely.

The test proves it is actually live rather than buffered: a producer thread
appends while the stream is open, and the reader must see those bytes before
the build finishes, then see the end event.

The builds table refreshes with hx-trigger="every 3s" against a fragment
endpoint, so htmx swaps one &lt;div&gt; rather than a whole document. Without
JavaScript the same HTML already contains the table — the refresh is an
enhancement, never a requirement.

Static assets are served from include_bytes!, precompressed, with the
Content-Length forced so tiny_http does not chunk a file whose size we know.

Vendoring decision, recorded in docs/DECISIONS.md: the design's '~14 KB htmx'
does not exist — released htmx is 48 KB minified. We vendor 1.9.12 unmodified
and serve the 15.6 KB gzip, and the budget is asserted on served bytes with a
bare-socket test, because an HTTP client would transparently decompress and
hide the number. htmx's SSE extension is deliberately NOT vendored: it swaps
with innerHTML and a build log is untrusted text from someone else's PKGBUILD,
so wiring it up would be an XSS hole opened to make a log scroll by itself.
The review surface still ships no JavaScript at all, asserted by grepping the
rendered page for &lt;script.

Also: styles moved out of base.html into static/app.css, and docs/DECISIONS.md
started with the decisions made so far. 138 tests pass, clippy clean.
</pre>
</div>
</content>
</entry>
</feed>
