<feed xmlns='http://www.w3.org/2005/Atom'>
<title>aur-build/src/watch/scheduler.rs, branch ai/main</title>
<subtitle>Unnamed repository
</subtitle>
<link rel='alternate' type='text/html' href='http://git.jnsn.dev/cgit/aur-build/'/>
<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>time: a wait seam the control loops call through</title>
<updated>2026-11-19T19:50:24+00:00</updated>
<author>
<name>aur-build</name>
<email>aur-build@localhost</email>
</author>
<published>2026-11-19T19:50:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.jnsn.dev/cgit/aur-build/commit/?id=768da4fd62b390014fcaf55e23dbb45ca61ad79b'/>
<id>768da4fd62b390014fcaf55e23dbb45ca61ad79b</id>
<content type='text'>
The dispatcher tick, watcher tick, SSE poll, agent watchdog and remote
keepalive each slept on the wall clock in their own slice loop, so every test
that wanted a tick waited for real time. They call crate::time::wait/sleep now,
which is the same real sleep in a production build and a virtual clock advance
under test-support: a test that takes the clock owns it, and threads it spawns
inherit it. production_surface checks the virtual path is compiled out and that
no control loop went back to std::thread::sleep.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The dispatcher tick, watcher tick, SSE poll, agent watchdog and remote
keepalive each slept on the wall clock in their own slice loop, so every test
that wanted a tick waited for real time. They call crate::time::wait/sleep now,
which is the same real sleep in a production build and a virtual clock advance
under test-support: a test that takes the clock owns it, and threads it spawns
inherit it. production_surface checks the virtual path is compiled out and that
no control loop went back to std::thread::sleep.
</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>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>
</feed>
