<feed xmlns='http://www.w3.org/2005/Atom'>
<title>aur-build/README.md, branch ai/main</title>
<subtitle>Unnamed repository
</subtitle>
<link rel='alternate' type='text/html' href='http://git.jnsn.dev/cgit/aur-build/'/>
<entry>
<title>release build,readme: the gate that only the release build can see</title>
<updated>2026-11-23T14:14:42+00:00</updated>
<author>
<name>aur-build</name>
<email>aur-build@localhost</email>
</author>
<published>2026-11-23T14:14:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.jnsn.dev/cgit/aur-build/commit/?id=f67249b1705e0075b11b50dac50fd71ae5e163d9'/>
<id>f67249b1705e0075b11b50dac50fd71ae5e163d9</id>
<content type='text'>
`--all-targets` pulls `test-support` in through the dev-dependency, so
every check so far compiled `ReleaseState`, `Writer` and `json_or` as
`pub`. Without that feature they are crate-internal, and the tree was
not clean there: a wildcard import had been expanded into names the
release build never compiles, and `ReleaseState::as_str` took a
reference to a one-byte Copy value that clippy only complains about
once the type is not exported.

Both imports are gated with the code that needs them, and the README
now lists the three commands that hold the shape — including the
release-mode clippy run that found this.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`--all-targets` pulls `test-support` in through the dev-dependency, so
every check so far compiled `ReleaseState`, `Writer` and `json_or` as
`pub`. Without that feature they are crate-internal, and the tree was
not clean there: a wildcard import had been expanded into names the
release build never compiles, and `ReleaseState::as_str` took a
reference to a one-byte Copy value that clippy only complains about
once the type is not exported.

Both imports are gated with the code that needs them, and the README
now lists the three commands that hold the shape — including the
release-mode clippy run that found this.
</pre>
</div>
</content>
</entry>
<entry>
<title>readme: say that pub(crate) is not automatically the narrow state</title>
<updated>2026-11-21T19:33:47+00:00</updated>
<author>
<name>dev</name>
<email>dev@example.com</email>
</author>
<published>2026-11-21T19:33:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.jnsn.dev/cgit/aur-build/commit/?id=9dc9087d89891c6e5ef7e5dc084dd13c8611843e'/>
<id>9dc9087d89891c6e5ef7e5dc084dd13c8611843e</id>
<content type='text'>
The constraints section already told the truth about `pub` — an item with no
outside reader is a hole, allowed only by name and only with a reason — and
said nothing about the step below it, which is the one this pass just walked.
Added beside it: what over-wide means, that it is budgeted the same way, the
three compiler facts that actually force a `pub(crate)` to stay (a field cannot
out-reach its type, privacy does not reach up to a parent or across to a
sibling, and `pub(super)` is not a form this crate admits), and the warning
that the count is a grep while the verdict is the compiler's, asked under both
profiles.

The ratchet was checked rather than assumed. Re-widening `ops::sweep_staging`
from private back to `pub(crate)` — a change that compiles clean under both
profiles and breaks nothing at all — makes `arch-census --budget` exit 1 with
`ops.overwide: 1 &gt; 0 accepted` and `ops.sweep_staging is over-wide and
unargued`, and makes `cargo test --test architecture` fail 3 tests including
`interfaces_stay_within_budget` and `the_over_visibility_budget_matches_the_code`.
Reverting it returns the suite to green. A ratchet that only fails on paper is
not a ratchet.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The constraints section already told the truth about `pub` — an item with no
outside reader is a hole, allowed only by name and only with a reason — and
said nothing about the step below it, which is the one this pass just walked.
Added beside it: what over-wide means, that it is budgeted the same way, the
three compiler facts that actually force a `pub(crate)` to stay (a field cannot
out-reach its type, privacy does not reach up to a parent or across to a
sibling, and `pub(super)` is not a form this crate admits), and the warning
that the count is a grep while the verdict is the compiler's, asked under both
profiles.

The ratchet was checked rather than assumed. Re-widening `ops::sweep_staging`
from private back to `pub(crate)` — a change that compiles clean under both
profiles and breaks nothing at all — makes `arch-census --budget` exit 1 with
`ops.overwide: 1 &gt; 0 accepted` and `ops.sweep_staging is over-wide and
unargued`, and makes `cargo test --test architecture` fail 3 tests including
`interfaces_stay_within_budget` and `the_over_visibility_budget_matches_the_code`.
Reverting it returns the suite to green. A ratchet that only fails on paper is
not a ratchet.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests,tools: hold the dead-code zero in the ratchet, and prove the checks bite</title>
<updated>2026-11-21T14:21:43+00:00</updated>
<author>
<name>aur-build</name>
<email>aur-build@localhost</email>
</author>
<published>2026-11-21T14:21:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.jnsn.dev/cgit/aur-build/commit/?id=92742f0e5d336547d8d72464e2df0ff1c4f2d337'/>
<id>92742f0e5d336547d8d72464e2df0ff1c4f2d337</id>
<content type='text'>
`dead_code.deadonly` is 0 for all 28 modules and the allowlist names the 18
items that stay `pub` by decision, so the remaining question is whether the
ratchet can be broken quietly. Three tests close that.

`the_dead_code_budget_matches_the_code` refuses a budget that contradicts itself:
`modules.&lt;m&gt;.deadonly` is what `interfaces_stay_within_budget` reads and
`dead_code.deadonly.&lt;m&gt;` is what `tools/arch-census.py --budget` reads, and both
must equal the census — an edit to one alone is how a widening enters unnoticed.
`the_dead_code_allowlist_names_real_items` refuses an entry whose item the module
no longer declares, which is the permission that lets a deleted item return.
`the_budget_writers_preserve_each_other` runs both writers against a copy of the
file and fails if either erases the section it does not own, or rewrites the
hand-written allowlist — the failure mode two tools sharing one file were always
going to have.

Each was checked by breaking it on purpose: a raised budget, a stale allowlist
key, and a writer that drops the allowlist all fail loudly and pass again when
reverted. README now says `--list-dead` exists and that a kept item is allowed by
name in the budget file, because a ratchet nobody can inspect is not a ratchet.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`dead_code.deadonly` is 0 for all 28 modules and the allowlist names the 18
items that stay `pub` by decision, so the remaining question is whether the
ratchet can be broken quietly. Three tests close that.

`the_dead_code_budget_matches_the_code` refuses a budget that contradicts itself:
`modules.&lt;m&gt;.deadonly` is what `interfaces_stay_within_budget` reads and
`dead_code.deadonly.&lt;m&gt;` is what `tools/arch-census.py --budget` reads, and both
must equal the census — an edit to one alone is how a widening enters unnoticed.
`the_dead_code_allowlist_names_real_items` refuses an entry whose item the module
no longer declares, which is the permission that lets a deleted item return.
`the_budget_writers_preserve_each_other` runs both writers against a copy of the
file and fails if either erases the section it does not own, or rewrites the
hand-written allowlist — the failure mode two tools sharing one file were always
going to have.

Each was checked by breaking it on purpose: a raised budget, a stale allowlist
key, and a writer that drops the allowlist all fail loudly and pass again when
reverted. README now says `--list-dead` exists and that a kept item is allowed by
name in the budget file, because a ratchet nobody can inspect is not a ratchet.
</pre>
</div>
</content>
</entry>
<entry>
<title>docs: record the test-surface movement in the census report and README</title>
<updated>2026-11-20T21:22:56+00:00</updated>
<author>
<name>aur-build</name>
<email>aur-build@localhost</email>
</author>
<published>2026-11-20T21:22:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.jnsn.dev/cgit/aur-build/commit/?id=2ed254f5487613e00dae4ee15dc63500c4edcce2'/>
<id>2ed254f5487613e00dae4ee15dc63500c4edcce2</id>
<content type='text'>
The census report gets a second movement next to the first. The numbers:
pub 505 -&gt; 484, dead 105 -&gt; 84, test-only 72 -&gt; 48, pub(crate) 109 -&gt; 119,
globs still zero.

Two budget increases are recorded rather than smoothed over, because both
are consequences of narrowing and a reader is entitled to know which
numbers moved the wrong way and why:

- sandbox.deadonly 0 -&gt; 2. `Provisioner` and `ProvisionRequest` are named
  by nobody outside sandbox but cannot be narrowed: LocalAgentProvisioner
  is pub because two fixture tests construct it, and Rust forbids a public
  type implementing a private trait or taking a private parameter.
- db.deadonly 8 -&gt; 9. Five state enums each have a `can_transition`. Three
  went private with their tests; ReleaseState's and SubscriptionState's
  are consulted by nothing at all, so the name slid from test-only to
  dead-only instead of disappearing. Both carry a NOTE already.

`largest` went 603 -&gt; 673 because eleven config tests moved into
src/config.rs. It is reported and not budgeted: a line ceiling that counts
a module and its tests together would penalise the exact act this goal was
for.

README's Testing section was stale in a way only a test move exposes — it
named `versions::vercmp_matches_the_system_oracle`, a test that does not
exist under that name in either location — and said nothing about where a
test belongs. Both fixed, with the reason stated: a test outside a module
can only reach what the module exports, so a fixture-free test in tests/
is a door held open by a test.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The census report gets a second movement next to the first. The numbers:
pub 505 -&gt; 484, dead 105 -&gt; 84, test-only 72 -&gt; 48, pub(crate) 109 -&gt; 119,
globs still zero.

Two budget increases are recorded rather than smoothed over, because both
are consequences of narrowing and a reader is entitled to know which
numbers moved the wrong way and why:

- sandbox.deadonly 0 -&gt; 2. `Provisioner` and `ProvisionRequest` are named
  by nobody outside sandbox but cannot be narrowed: LocalAgentProvisioner
  is pub because two fixture tests construct it, and Rust forbids a public
  type implementing a private trait or taking a private parameter.
- db.deadonly 8 -&gt; 9. Five state enums each have a `can_transition`. Three
  went private with their tests; ReleaseState's and SubscriptionState's
  are consulted by nothing at all, so the name slid from test-only to
  dead-only instead of disappearing. Both carry a NOTE already.

`largest` went 603 -&gt; 673 because eleven config tests moved into
src/config.rs. It is reported and not budgeted: a line ceiling that counts
a module and its tests together would penalise the exact act this goal was
for.

README's Testing section was stale in a way only a test move exposes — it
named `versions::vercmp_matches_the_system_oracle`, a test that does not
exist under that name in either location — and said nothing about where a
test belongs. Both fixed, with the reason stated: a test outside a module
can only reach what the module exports, so a fixture-free test in tests/
is a door held open by a test.
</pre>
</div>
</content>
</entry>
<entry>
<title>docs: record the census, and make the README describe the tree that exists</title>
<updated>2026-11-20T19:03:01+00:00</updated>
<author>
<name>dev</name>
<email>dev@localhost</email>
</author>
<published>2026-11-20T19:03:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.jnsn.dev/cgit/aur-build/commit/?id=e6c3a02229994a9e007d8e6618add778e1ec021c'/>
<id>e6c3a02229994a9e007d8e6618add778e1ec021c</id>
<content type='text'>
The census report gets its after-table, and the README's Layout gets rewritten
— it had drifted into fiction, listing `db/queries.rs`'s successors as "queries"
and omitting `usecase`, `error`, `hash`, `time`, `urlutil`, `git`, `fetch` and
`recipe` entirely. It now states the ranks and says plainly that they are
enforced by `tests/architecture.rs`, not kept in hope, and names the two
commands that keep it true.

This commit also carries the last of the narrowing that fell out of writing the
report, because writing it meant actually reading the numbers:

- `watch::upstream::resolve` looked test-only and was not — the tests contain an
  unrelated local function of the same name, which the census matches as a word.
  It is crate-internal and now says so.
- `read_tree` closed with it. Its two integration tests were testing the module's
  own batching behaviour from outside, so they moved inside as unit tests with a
  throwaway git repo, which is where a test about one `ls-tree` and one
  `cat-file --batch` belongs. They lost nothing: the empty-blob and NUL-byte
  assertions came across verbatim, plus one the old test never made — binary
  blobs are still listed, just not read.
- `Assessment::is_high`, `Tree::get`, `approve::current_accepted` and
  `diff::full_recipe_text` were dead once their callers closed, and are gone.
- `set_risk_for_tests` is gone too. The bulk-refusal test needed a candidate
  marked high-risk, and the honest way to get one was for the fixture to write
  the row — `Env::execute` — rather than the library growing a public setter
  that exists only so a test can pass. That was the last budget above baseline
  apart from `error.pub`.

`error.pub` stays at 21 against a baseline of 15, and the report says why: the
six payload enums are constructed in four modules and matched in `error`, so
they are interface. `error.dead` is 0.

Final: 281 passed / 0 failed across 36 binaries (baseline 273), clippy
-D warnings clean, release clean, census within budget.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The census report gets its after-table, and the README's Layout gets rewritten
— it had drifted into fiction, listing `db/queries.rs`'s successors as "queries"
and omitting `usecase`, `error`, `hash`, `time`, `urlutil`, `git`, `fetch` and
`recipe` entirely. It now states the ranks and says plainly that they are
enforced by `tests/architecture.rs`, not kept in hope, and names the two
commands that keep it true.

This commit also carries the last of the narrowing that fell out of writing the
report, because writing it meant actually reading the numbers:

- `watch::upstream::resolve` looked test-only and was not — the tests contain an
  unrelated local function of the same name, which the census matches as a word.
  It is crate-internal and now says so.
- `read_tree` closed with it. Its two integration tests were testing the module's
  own batching behaviour from outside, so they moved inside as unit tests with a
  throwaway git repo, which is where a test about one `ls-tree` and one
  `cat-file --batch` belongs. They lost nothing: the empty-blob and NUL-byte
  assertions came across verbatim, plus one the old test never made — binary
  blobs are still listed, just not read.
- `Assessment::is_high`, `Tree::get`, `approve::current_accepted` and
  `diff::full_recipe_text` were dead once their callers closed, and are gone.
- `set_risk_for_tests` is gone too. The bulk-refusal test needed a candidate
  marked high-risk, and the honest way to get one was for the fixture to write
  the row — `Env::execute` — rather than the library growing a public setter
  that exists only so a test can pass. That was the last budget above baseline
  apart from `error.pub`.

`error.pub` stays at 21 against a baseline of 15, and the report says why: the
six payload enums are constructed in four modules and matched in `error`, so
they are interface. `error.dead` is 0.

Final: 281 passed / 0 failed across 36 binaries (baseline 273), clippy
-D warnings clean, release clean, census within budget.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: declare the layer map, and ratchet every interface width</title>
<updated>2026-11-20T16:58:27+00:00</updated>
<author>
<name>dev</name>
<email>dev@localhost</email>
</author>
<published>2026-11-20T16:58:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.jnsn.dev/cgit/aur-build/commit/?id=b73bb60403c3f2e7fc55d5038831912e8371e3a6'/>
<id>b73bb60403c3f2e7fc55d5038831912e8371e3a6</id>
<content type='text'>
Four greps in tests/layers.rs were the entire enforcement. They could say
that db had stopped naming http; they could not say what the architecture
is, could not place a new module, and said nothing about the twenty-odd
modules nobody had tripped over yet.

tests/architecture.rs declares the whole map instead. Every module in src/
gets a rank with the reason it sits there, and a module may name only
modules ranked strictly below it — one rule, every module, cycles
impossible by construction rather than by luck. The census says the graph
already satisfies it, so the map is a description of what is true, not an
aspiration the suite immediately fails on.

The same file holds the interface budgets, because a boundary is only as
strong as what it refuses to let you export: per module, how many pub items
it hands out and how many of them nothing outside the module names. Budgets
live in architecture-budget.json and move one way. A number that grows
fails; a number that got smaller without being written back also fails,
which is what stops a won gain from quietly becoming the new ceiling.

Each rule was probed rather than trusted: naming http from db fails with
`db (rank 3) names http (rank 9)`, tightening db.pub to 200 fails with
`db.pub: 226 &gt; 200`, and leaving a stale budget fails with
`db.deadonly: budget 99, actual 36`.

tests/layers.rs is deleted, not weakened. Three of its four rules are rank
consequences now (db, review, recipe all sit below everything they were
forbidden to name); the fourth, watch -&gt; shims, was already covered by
production_surface.rs, which greps every non-shim file for shims:: and
would catch it in any module, not just watch.

The census definition now lives in two languages, so the test checks them
against each other the way the vercmp oracle checks the hand-written
comparator: without python3 the note prints and the suite moves on.

277 passed / 0 failed (273 + 8 new - 4 subsumed), clippy -D warnings clean.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Four greps in tests/layers.rs were the entire enforcement. They could say
that db had stopped naming http; they could not say what the architecture
is, could not place a new module, and said nothing about the twenty-odd
modules nobody had tripped over yet.

tests/architecture.rs declares the whole map instead. Every module in src/
gets a rank with the reason it sits there, and a module may name only
modules ranked strictly below it — one rule, every module, cycles
impossible by construction rather than by luck. The census says the graph
already satisfies it, so the map is a description of what is true, not an
aspiration the suite immediately fails on.

The same file holds the interface budgets, because a boundary is only as
strong as what it refuses to let you export: per module, how many pub items
it hands out and how many of them nothing outside the module names. Budgets
live in architecture-budget.json and move one way. A number that grows
fails; a number that got smaller without being written back also fails,
which is what stops a won gain from quietly becoming the new ceiling.

Each rule was probed rather than trusted: naming http from db fails with
`db (rank 3) names http (rank 9)`, tightening db.pub to 200 fails with
`db.pub: 226 &gt; 200`, and leaving a stale budget fails with
`db.deadonly: budget 99, actual 36`.

tests/layers.rs is deleted, not weakened. Three of its four rules are rank
consequences now (db, review, recipe all sit below everything they were
forbidden to name); the fourth, watch -&gt; shims, was already covered by
production_surface.rs, which greps every non-shim file for shims:: and
would catch it in any module, not just watch.

The census definition now lives in two languages, so the test checks them
against each other the way the vercmp oracle checks the hand-written
comparator: without python3 the note prints and the suite moves on.

277 passed / 0 failed (273 + 8 new - 4 subsumed), clippy -D warnings clean.
</pre>
</div>
</content>
</entry>
<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>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>
</feed>
