| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 -> at most one pending_review per pkgbase
I3 UNIQUE(pkgbase_id, identity_hash) -> 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).
|
|
|
Provisions rustup + devtools from the distro package set and lays down the
crate skeleton: library, CLI binary, and one binary per external tool the
pipeline shells out to (mkarchroot, makechrootpkg, makepkg, repo-add, gpg,
pacman) so the §16a PATH shims are real executables that cargo builds and
tests can locate via CARGO_BIN_EXE_*.
Part of P0 (DESIGN.md §17).
|