<feed xmlns='http://www.w3.org/2005/Atom'>
<title>aur-build/src/pkgver, branch ai/main</title>
<subtitle>Unnamed repository
</subtitle>
<link rel='alternate' type='text/html' href='http://git.jnsn.dev/cgit/aur-build/'/>
<entry>
<title>src,tests: say each thing once, in the code or not at all</title>
<updated>2026-11-22T10:44:04+00:00</updated>
<author>
<name>aur-build</name>
<email>aur-build@localhost</email>
</author>
<published>2026-11-22T10:44:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.jnsn.dev/cgit/aur-build/commit/?id=1e1e12e7220a3fd288782ae40f0823db32acf6cb'/>
<id>1e1e12e7220a3fd288782ae40f0823db32acf6cb</id>
<content type='text'>
The repeated explanations go: sixteen copies of why a `pub` under
`test-support` has two declarations, six notes about where a test moved
from, forty-three banner comments naming the section they sit above.

The prose that stays is the prose the code cannot say — a hand-written
Debug that keeps a token out of a log line, a git pipe that would
deadlock if the write came first, an end-of-string check that has to
precede the separator skip. Enum docs in error.rs collapse to the line
that names what the type is; the argument for why it is shaped that way
is in the variants.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The repeated explanations go: sixteen copies of why a `pub` under
`test-support` has two declarations, six notes about where a test moved
from, forty-three banner comments naming the section they sit above.

The prose that stays is the prose the code cannot say — a hand-written
Debug that keeps a token out of a log line, a git pipe that would
deadlock if the write came first, an end-of-string check that has to
precede the separator skip. Enum docs in error.rs collapse to the line
that names what the type is; the argument for why it is shaped that way
is in the variants.
</pre>
</div>
</content>
</entry>
<entry>
<title>rustfmt,lints: pin the formatting, adopt the idiom lints, pay them off</title>
<updated>2026-11-22T10:36:24+00:00</updated>
<author>
<name>aur-build</name>
<email>aur-build@localhost</email>
</author>
<published>2026-11-22T10:36:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.jnsn.dev/cgit/aur-build/commit/?id=3dc71b2f5160ef9bd46143eed0edb5d2557b58e6'/>
<id>3dc71b2f5160ef9bd46143eed0edb5d2557b58e6</id>
<content type='text'>
rustfmt.toml fixes the shape the tree is written in (120 columns, small
items kept on one line) and one canonical pass makes it the truth.

[lints.clippy] names the idiom lints worth enforcing and leaves out the
two that would add doc-comment boilerplate rather than remove it. The
tree pays them off here: write!/writeln! instead of push_str(&amp;format!()),
let-else instead of match-on-Option, borrows where a thread entry point
only reads what it owns, no `&amp;self` on a Copy state and no `self` nobody
reads.

ops::to_prometheus gains one gauge helper: a metric's HELP, TYPE and
value are now emitted by the same call instead of three.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
rustfmt.toml fixes the shape the tree is written in (120 columns, small
items kept on one line) and one canonical pass makes it the truth.

[lints.clippy] names the idiom lints worth enforcing and leaves out the
two that would add doc-comment boilerplate rather than remove it. The
tree pays them off here: write!/writeln! instead of push_str(&amp;format!()),
let-else instead of match-on-Option, borrows where a thread entry point
only reads what it owns, no `&amp;self` on a Copy state and no `self` nobody
reads.

ops::to_prometheus gains one gauge helper: a metric's HELP, TYPE and
value are now emitted by the same call instead of three.
</pre>
</div>
</content>
</entry>
<entry>
<title>src: close the items the stricter detector surfaced</title>
<updated>2026-11-21T09:38:21+00:00</updated>
<author>
<name>aur-build</name>
<email>aur-build@localhost</email>
</author>
<published>2026-11-21T09:38:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.jnsn.dev/cgit/aur-build/commit/?id=ae492c87ff66b9f2c8fec25a5ca917c438bf5858'/>
<id>ae492c87ff66b9f2c8fec25a5ca917c438bf5858</id>
<content type='text'>
The auditor's two counterexamples were real, and fixing the detector exposed
seventeen more items it had never listed. Each was checked individually rather
than dispositioned in bulk, and the check changed what the right answer was:

- `review::approve::withdraw` — gated. The CLI and the web UI both go through
  `usecase::withdraw_package`; nothing invokes this. tests/pipeline.rs pins its
  invariants, so it is gated rather than deleted: the test is the cover for an
  operation production has not grown yet.
- `pipeline::dispatch::Pool::shutdown` — gated. Production runs the pool until
  the process exits; a test needs the join to assert on effects after the
  threads stop. Its two fields now carry a matching `cfg_attr(allow(dead_code))`
  because in a release build they are stored and never read.
- `shims::{mkarchroot,makechrootpkg,makepkg,gpg,pacman,record}` — plain
  `pub(crate)`. `run` dispatches to them by tool name; no module outside `shims`
  names them and no test calls them. The tool names appear in test *strings*,
  which is not a caller.
- `db::Writer::start`, `fetch::open`, `http::Req::form`, `http::Page::new`,
  `http::Panel::new`, `http::render::BuildRow` — plain `pub(crate)`, same
  reason: used only from inside their own module.
- `db::AuditEntry::system` — deleted. `audit_system` builds the row through the
  free `audit()`; nothing ever called the constructor, production or otherwise.
- `pkgver::Version::display` — deleted, a wrapper around `to_string` with no
  callers.
- `http::Server`, `watch::Stale`, `pkgver::Version` — private inner module with a
  gated alias. `Server` is what `spawn` hands back and `main` holds without
  naming; `Stale` is what `stale_rows` returns to `http` and `ops`; `Version` is
  what `parse` returns. All three must stay nameable to those callers in shape
  but not in name, which is exactly what the inner-module alias gives.

Measured on the release build's public surface: 466 reachable public names at the
start of this goal, 402 now, newly-public set empty.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The auditor's two counterexamples were real, and fixing the detector exposed
seventeen more items it had never listed. Each was checked individually rather
than dispositioned in bulk, and the check changed what the right answer was:

- `review::approve::withdraw` — gated. The CLI and the web UI both go through
  `usecase::withdraw_package`; nothing invokes this. tests/pipeline.rs pins its
  invariants, so it is gated rather than deleted: the test is the cover for an
  operation production has not grown yet.
- `pipeline::dispatch::Pool::shutdown` — gated. Production runs the pool until
  the process exits; a test needs the join to assert on effects after the
  threads stop. Its two fields now carry a matching `cfg_attr(allow(dead_code))`
  because in a release build they are stored and never read.
- `shims::{mkarchroot,makechrootpkg,makepkg,gpg,pacman,record}` — plain
  `pub(crate)`. `run` dispatches to them by tool name; no module outside `shims`
  names them and no test calls them. The tool names appear in test *strings*,
  which is not a caller.
- `db::Writer::start`, `fetch::open`, `http::Req::form`, `http::Page::new`,
  `http::Panel::new`, `http::render::BuildRow` — plain `pub(crate)`, same
  reason: used only from inside their own module.
- `db::AuditEntry::system` — deleted. `audit_system` builds the row through the
  free `audit()`; nothing ever called the constructor, production or otherwise.
- `pkgver::Version::display` — deleted, a wrapper around `to_string` with no
  callers.
- `http::Server`, `watch::Stale`, `pkgver::Version` — private inner module with a
  gated alias. `Server` is what `spawn` hands back and `main` holds without
  naming; `Stale` is what `stale_rows` returns to `http` and `ops`; `Version` is
  what `parse` returns. All three must stay nameable to those callers in shape
  but not in name, which is exactly what the inner-module alias gives.

Measured on the release build's public surface: 466 reachable public names at the
start of this goal, 402 now, newly-public set empty.
</pre>
</div>
</content>
</entry>
<entry>
<title>pkgver: move the pure version and dependency tests into the module</title>
<updated>2026-11-20T20:14:27+00:00</updated>
<author>
<name>aur-build</name>
<email>aur-build@localhost</email>
</author>
<published>2026-11-20T20:14:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.jnsn.dev/cgit/aur-build/commit/?id=68ec6971b872d8be561e8c2c2748c6c143bfef7d'/>
<id>68ec6971b872d8be561e8c2c2748c6c143bfef7d</id>
<content type='text'>
Ten tests in tests/versions.rs were unit tests of pkgver wearing an
integration test's clothing: the comparison vectors, the chunk rule, the
epoch rules, the dependency grammar, the constraint checks, the recorded
oracle. None of them touched a database or a fixture. They were written
against the crate's public API because that was the only way to reach
them from outside, and that single fact — that a test had to import a
name to exercise it — is what had been keeping five items public:

    vercmp_string, Dep, DepOp, Dep::satisfied_by, split_full_version

All five are private now. `vercmp_string` is called by `vercmp` and by
nothing else; `Dep` and `DepOp` are the internals of `dep_names`, which
*is* used in production; `satisfied_by` and `Dep::name` are used only by
this module's tests, so they are gated rather than merely private, and
`cargo check --release` without the test-support feature compiles clean,
which is the proof that nothing production needs them was left behind.

The oracle test now resolves testcorpus/ through CARGO_MANIFEST_DIR
rather than the harness helper, so it no longer depends on the working
directory. The live pacman differential came with it and stays gated on
AUR_LIVE_VERCMP, recording its absence the same way.

What remains in tests/versions.rs is two tests that genuinely need the
harness: they build a package, publish it, and move its upstream.

pkgver: 14 pub / 5 test-only -&gt; 8 pub / 0 test-only.
Suite: 281 passed, 0 failed.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Ten tests in tests/versions.rs were unit tests of pkgver wearing an
integration test's clothing: the comparison vectors, the chunk rule, the
epoch rules, the dependency grammar, the constraint checks, the recorded
oracle. None of them touched a database or a fixture. They were written
against the crate's public API because that was the only way to reach
them from outside, and that single fact — that a test had to import a
name to exercise it — is what had been keeping five items public:

    vercmp_string, Dep, DepOp, Dep::satisfied_by, split_full_version

All five are private now. `vercmp_string` is called by `vercmp` and by
nothing else; `Dep` and `DepOp` are the internals of `dep_names`, which
*is* used in production; `satisfied_by` and `Dep::name` are used only by
this module's tests, so they are gated rather than merely private, and
`cargo check --release` without the test-support feature compiles clean,
which is the proof that nothing production needs them was left behind.

The oracle test now resolves testcorpus/ through CARGO_MANIFEST_DIR
rather than the harness helper, so it no longer depends on the working
directory. The live pacman differential came with it and stays gated on
AUR_LIVE_VERCMP, recording its absence the same way.

What remains in tests/versions.rs is two tests that genuinely need the
harness: they build a package, publish it, and move its upstream.

pkgver: 14 pub / 5 test-only -&gt; 8 pub / 0 test-only.
Suite: 281 passed, 0 failed.
</pre>
</div>
</content>
</entry>
<entry>
<title>foundation, http: export what is used above you, and nothing else</title>
<updated>2026-11-20T18:49:22+00:00</updated>
<author>
<name>dev</name>
<email>dev@localhost</email>
</author>
<published>2026-11-20T18:49:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.jnsn.dev/cgit/aur-build/commit/?id=6c4b4394bd8ddf28d130e87e0100349f13f6e912'/>
<id>6c4b4394bd8ddf28d130e87e0100349f13f6e912</id>
<content type='text'>
The leaf modules were the widest liars. `git` exported 19 names of which 5 were
named by nobody; `hash` exported a constant `EMPTY` that no code had ever
referenced; `time` exported a virtual clock, an `advance` and a `wrap` whose
only caller was a test that turned out not to exist. A leaf's interface is the
whole contract the rest of the crate can rely on, and these interfaces were
mostly decoration.

Nine items were genuinely dead and are gone: `hash::EMPTY`,
`git::{clone_source, count_commits, log_oneline, ls_remote_heads}`,
`recipe::is_diffable`, `pkginfo::values_of`, `time::virtual_now`, and a free
`time::advance` that had been shadowed by the `VirtualClock` method tests
actually call. Eighteen more were used only inside their own module and are now
private — `fetch`'s `Body` aside, which is the return type of a public parser
and so is part of the interface whether or not anyone writes its name.

http went 68 exported names to 27, and its last two glob re-exports
(`pub(crate) use mutations::*; use pages::*;`) are explicit lists now. That
makes the crate's glob count zero, so the allowlist in the architecture test is
empty and can stay that way.

Narrowing surfaced dead code that `pub` had been hiding, because a public item
is presumed used and never questioned: `Req::query` and `Req::body` were parsed
and stored and never read, `Res::found` had no callers, and `sse::FileBody` was
a reader nobody constructed. All four are deleted rather than re-published to
keep the warning quiet.

git 19→14, hash 8→7, recipe 11→7, urlutil 2→1, config 35→31, pkgver 18→14,
time 16→14, pkginfo 7→6, http 68→27. Crate totals: 585→516 pub, 219→115 dead,
4→0 globs.

281 passed / 0 failed, clippy -D warnings clean, release build clean,
architecture 8/8.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The leaf modules were the widest liars. `git` exported 19 names of which 5 were
named by nobody; `hash` exported a constant `EMPTY` that no code had ever
referenced; `time` exported a virtual clock, an `advance` and a `wrap` whose
only caller was a test that turned out not to exist. A leaf's interface is the
whole contract the rest of the crate can rely on, and these interfaces were
mostly decoration.

Nine items were genuinely dead and are gone: `hash::EMPTY`,
`git::{clone_source, count_commits, log_oneline, ls_remote_heads}`,
`recipe::is_diffable`, `pkginfo::values_of`, `time::virtual_now`, and a free
`time::advance` that had been shadowed by the `VirtualClock` method tests
actually call. Eighteen more were used only inside their own module and are now
private — `fetch`'s `Body` aside, which is the return type of a public parser
and so is part of the interface whether or not anyone writes its name.

http went 68 exported names to 27, and its last two glob re-exports
(`pub(crate) use mutations::*; use pages::*;`) are explicit lists now. That
makes the crate's glob count zero, so the allowlist in the architecture test is
empty and can stay that way.

Narrowing surfaced dead code that `pub` had been hiding, because a public item
is presumed used and never questioned: `Req::query` and `Req::body` were parsed
and stored and never read, `Res::found` had no callers, and `sse::FileBody` was
a reader nobody constructed. All four are deleted rather than re-published to
keep the warning quiet.

git 19→14, hash 8→7, recipe 11→7, urlutil 2→1, config 35→31, pkgver 18→14,
time 16→14, pkginfo 7→6, http 68→27. Crate totals: 585→516 pub, 219→115 dead,
4→0 globs.

281 passed / 0 failed, clippy -D warnings clean, release build clean,
architecture 8/8.
</pre>
</div>
</content>
</entry>
<entry>
<title>comments: keep only what the code cannot show</title>
<updated>2026-11-19T17:33:17+00:00</updated>
<author>
<name>aur-build</name>
<email>aur-build@localhost</email>
</author>
<published>2026-11-19T17:33:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.jnsn.dev/cgit/aur-build/commit/?id=4304b0f336ddba7b4ec6780795059ff2066d105b'/>
<id>4304b0f336ddba7b4ec6780795059ff2066d105b</id>
<content type='text'>
Stripped every comment that described what an item does, documented its
arguments or fields, or cited the design docs (§n, I-n, m-n, decision n).
2247 comments down to 83.

What survives: the section dividers that segment the large modules, the
secret-handling warnings, the agent wire-frame directions, and the few notes
without which the code they attach to reads as redundant, reorderable, or
unsound.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Stripped every comment that described what an item does, documented its
arguments or fields, or cited the design docs (§n, I-n, m-n, decision n).
2247 comments down to 83.

What survives: the section dividers that segment the large modules, the
secret-handling warnings, the agent wire-frame directions, and the few notes
without which the code they attach to reads as redundant, reorderable, or
unsound.
</pre>
</div>
</content>
</entry>
<entry>
<title>comments: say why, not what</title>
<updated>2026-11-19T17:09:59+00:00</updated>
<author>
<name>aur-build</name>
<email>aur-build@localhost</email>
</author>
<published>2026-11-19T17:09:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.jnsn.dev/cgit/aur-build/commit/?id=e757979f1a2afdbe7146066345bb9acd19d3b151'/>
<id>e757979f1a2afdbe7146066345bb9acd19d3b151</id>
<content type='text'>
Every module-level `//!` header is gone, and the comments that remained
either re-explained the line below them or had grown into paragraphs.

Density went from one comment line per 6.7 lines of code to one per 10.
827 insertions against 2194 deletions across 86 files.

What survived: the invariants (I1-I12), the design cross-references into
DESIGN.md, and the notes recording a bug that was found and fixed — those
are the comments that carry weight, because they answer a question the
code cannot answer about itself. What did not: restating a function
signature in prose, and narration of the statement underneath.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Every module-level `//!` header is gone, and the comments that remained
either re-explained the line below them or had grown into paragraphs.

Density went from one comment line per 6.7 lines of code to one per 10.
827 insertions against 2194 deletions across 86 files.

What survived: the invariants (I1-I12), the design cross-references into
DESIGN.md, and the notes recording a bug that was found and fixed — those
are the comments that carry weight, because they answer a question the
code cannot answer about itself. What did not: restating a function
signature in prose, and narration of the statement underneath.
</pre>
</div>
</content>
</entry>
<entry>
<title>vercmp: three real bugs, found by comparing against pacman's own binary</title>
<updated>2026-11-18T09:44:37+00:00</updated>
<author>
<name>aur-build</name>
<email>aur-build@localhost</email>
</author>
<published>2026-11-18T09:44:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.jnsn.dev/cgit/aur-build/commit/?id=5809493be2f6e47e3bbfc8a645ea0d82d5aedd82'/>
<id>5809493be2f6e47e3bbfc8a645ea0d82d5aedd82</id>
<content type='text'>
tests/versions.rs started as a hand-typed table of ALPM ordering vectors and
turned into something better: a differential test that runs the hand-written
comparator against pacman's `vercmp` over a 34-fragment cross-product (1156
pairs) of shapes that appear in real recipes. It found three bugs, all of which
would have shipped.

1. **Numeric vs alphabetic chunks were inverted.** The code had 'a numeric chunk
   is always older than an alphabetic one'. It is the opposite: 1.0.1 &gt; 1.0.a.
   The unit test asserted the wrong direction with the comment 'alpha sorts
   after numeric', so the suite was protecting the bug.

2. **Separators were ignored entirely.** They are not merely skipped. ALPM
   distinguishes an alphabetic chunk glued to the previous chunk from one after
   a separator, and the separated one is newer regardless of the letters:
   1.0 &gt; 1.0a, but 1.0 &lt; 1.0.a, and 1.0z &lt; 1.0.a. Two versions differing only in
   where the dot sits were being called equal.

3. **The end-of-string rule looked at the wrong thing.** When one side runs out,
   the decision comes from the other side's *next raw character* before any
   separator skipping: a letter there makes the exhausted string newer (the
   1.0rc1 &lt; 1.0 rule), anything else makes it older.

The rewrite is character-wise rather than a chunk pre-pass, because the
glued-or-separated distinction cannot be made after the separators have been
thrown away. Rule 3 is the kind of thing nobody can be confident about from the
spec alone, which is exactly what the oracle is for; it is skipped with a note
when pacman is not installed, and the curated table — every pair of which was
also checked against the binary — always runs.

Also: the recipe parser's epoch is now exercised end to end (an epoch added to a
PKGBUILD must land on the candidate, and 1:0.9-1 must beat 1.0-1 rather than
read as a downgrade), and the downgrade path asserts the index keeps serving the
higher version, since a downgrade is a human decision and not an automatic
rebuild.

161 tests pass, clippy clean.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
tests/versions.rs started as a hand-typed table of ALPM ordering vectors and
turned into something better: a differential test that runs the hand-written
comparator against pacman's `vercmp` over a 34-fragment cross-product (1156
pairs) of shapes that appear in real recipes. It found three bugs, all of which
would have shipped.

1. **Numeric vs alphabetic chunks were inverted.** The code had 'a numeric chunk
   is always older than an alphabetic one'. It is the opposite: 1.0.1 &gt; 1.0.a.
   The unit test asserted the wrong direction with the comment 'alpha sorts
   after numeric', so the suite was protecting the bug.

2. **Separators were ignored entirely.** They are not merely skipped. ALPM
   distinguishes an alphabetic chunk glued to the previous chunk from one after
   a separator, and the separated one is newer regardless of the letters:
   1.0 &gt; 1.0a, but 1.0 &lt; 1.0.a, and 1.0z &lt; 1.0.a. Two versions differing only in
   where the dot sits were being called equal.

3. **The end-of-string rule looked at the wrong thing.** When one side runs out,
   the decision comes from the other side's *next raw character* before any
   separator skipping: a letter there makes the exhausted string newer (the
   1.0rc1 &lt; 1.0 rule), anything else makes it older.

The rewrite is character-wise rather than a chunk pre-pass, because the
glued-or-separated distinction cannot be made after the separators have been
thrown away. Rule 3 is the kind of thing nobody can be confident about from the
spec alone, which is exactly what the oracle is for; it is skipped with a note
when pacman is not installed, and the curated table — every pair of which was
also checked against the binary — always runs.

Also: the recipe parser's epoch is now exercised end to end (an epoch added to a
PKGBUILD must land on the candidate, and 1:0.9-1 must beat 1.0-1 rather than
read as a downgrade), and the downgrade path asserts the index keeps serving the
higher version, since a downgrade is a human decision and not an automatic
rebuild.

161 tests pass, clippy clean.
</pre>
</div>
</content>
</entry>
<entry>
<title>feat: AUR mirror watcher, recipe parsing, candidate creation</title>
<updated>2026-11-17T21:19:35+00:00</updated>
<author>
<name>aur-build</name>
<email>aur-build@localhost</email>
</author>
<published>2026-11-17T21:19:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.jnsn.dev/cgit/aur-build/commit/?id=f586d11f6a1711145ba4804787217a1bab58751d'/>
<id>f586d11f6a1711145ba4804787217a1bab58751d</id>
<content type='text'>
The detection path (§5.1, §5.1a, §5.3, §7.1):

  * git helpers, all subprocess git in one auditable place. Mirrors are
    cloned with --mirror and polled with git ls-remote, fetching only when
    the tip actually moved; --no-prune keeps history we may need forever.
  * .SRCINFO parsing (authoritative) with a PKGBUILD fallback, and
    source=() parsing that keeps VCS kind, #commit/#tag/#branch refs and
    the filename:: form.
  * recipe_hash over the whole snapshot tree, so a shipped patch is part
    of the recipe and cannot change silently.
  * source digest resolution: declared checksums are trusted-as-declared
    (makepkg enforces them, no bandwidth), local files are hashed from the
    mirror, and SKIP sources are downloaded and stream-hashed into the
    content-addressed source cache. Detection always re-fetches SKIP
    sources — answering from our own cache would defeat drift detection.
  * candidate creation with base = current_accepted_release, collapse in
    place while unviewed, supersede only once a human has looked, and a
    previously rejected identity is not re-raised.
  * non-publishable change handling (I11): unchanged version string means
    no review, but never silence — recipe drift and pin drift become
    notices, and a changed digest on a remote source with an unchanged
    version becomes a high-severity integrity_alert.

Also vercmp + dep-string parsing with the ALPM test vectors, and the
approval record with optimistic concurrency (§7.1a) that the CLI and web
layers will both call.

16 detection tests against real file:// git fixtures, incl. I2 across
three unattended detections and I11 for all three drift kinds.

Part of P0 (DESIGN.md §17).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The detection path (§5.1, §5.1a, §5.3, §7.1):

  * git helpers, all subprocess git in one auditable place. Mirrors are
    cloned with --mirror and polled with git ls-remote, fetching only when
    the tip actually moved; --no-prune keeps history we may need forever.
  * .SRCINFO parsing (authoritative) with a PKGBUILD fallback, and
    source=() parsing that keeps VCS kind, #commit/#tag/#branch refs and
    the filename:: form.
  * recipe_hash over the whole snapshot tree, so a shipped patch is part
    of the recipe and cannot change silently.
  * source digest resolution: declared checksums are trusted-as-declared
    (makepkg enforces them, no bandwidth), local files are hashed from the
    mirror, and SKIP sources are downloaded and stream-hashed into the
    content-addressed source cache. Detection always re-fetches SKIP
    sources — answering from our own cache would defeat drift detection.
  * candidate creation with base = current_accepted_release, collapse in
    place while unviewed, supersede only once a human has looked, and a
    previously rejected identity is not re-raised.
  * non-publishable change handling (I11): unchanged version string means
    no review, but never silence — recipe drift and pin drift become
    notices, and a changed digest on a remote source with an unchanged
    version becomes a high-severity integrity_alert.

Also vercmp + dep-string parsing with the ALPM test vectors, and the
approval record with optimistic concurrency (§7.1a) that the CLI and web
layers will both call.

16 detection tests against real file:// git fixtures, incl. I2 across
three unattended detections and I11 for all three drift kinds.

Part of P0 (DESIGN.md §17).
</pre>
</div>
</content>
</entry>
<entry>
<title>feat: SQLite schema, migrations, single writer actor</title>
<updated>2026-11-17T20:59:57+00:00</updated>
<author>
<name>aur-build</name>
<email>aur-build@localhost</email>
</author>
<published>2026-11-17T20:59:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.jnsn.dev/cgit/aur-build/commit/?id=fd3ecf91686b11feea078531baeddb60e6941116'/>
<id>fd3ecf91686b11feea078531baeddb60e6941116</id>
<content type='text'>
The §11 data model as four migrations, plus the §11a concurrency model:
one writer thread owning the write connection (mutations arrive as
closures over a crossbeam channel, so SQLITE_BUSY is not part of the
design) and thread-local read-only connections under WAL.

Invariants that are database guarantees rather than conventions:
  I7  partial unique index -&gt; at most one pending_review per pkgbase
  I3  UNIQUE(pkgbase_id, identity_hash) -&gt; no duplicate candidates
  I10 audit table rejects UPDATE and DELETE by trigger
  §16 current_accepted_release_id moves only by compare-and-swap

Also: vercmp + dependency-string parsing (ALPM algorithm, no libalpm),
hash helpers including recipe_hash over the whole AUR tree, the clock
helper that stamps every write, and the config/root layout.

Part of P0 (DESIGN.md §17).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The §11 data model as four migrations, plus the §11a concurrency model:
one writer thread owning the write connection (mutations arrive as
closures over a crossbeam channel, so SQLITE_BUSY is not part of the
design) and thread-local read-only connections under WAL.

Invariants that are database guarantees rather than conventions:
  I7  partial unique index -&gt; at most one pending_review per pkgbase
  I3  UNIQUE(pkgbase_id, identity_hash) -&gt; no duplicate candidates
  I10 audit table rejects UPDATE and DELETE by trigger
  §16 current_accepted_release_id moves only by compare-and-swap

Also: vercmp + dependency-string parsing (ALPM algorithm, no libalpm),
hash helpers including recipe_hash over the whole AUR tree, the clock
helper that stamps every write, and the config/root layout.

Part of P0 (DESIGN.md §17).
</pre>
</div>
</content>
</entry>
</feed>
