summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md21
1 files changed, 7 insertions, 14 deletions
diff --git a/README.md b/README.md
index 4d75386..b020ebe 100644
--- a/README.md
+++ b/README.md
@@ -4,14 +4,9 @@ A build server for AUR packages: it watches recipes, shows a human what changed,
and publishes a signed pacman repository containing **only what a human
approved**. One process, no async runtime, no external services.
-The design is in [`DESIGN.md`](DESIGN.md). The invariants it must never violate
-are in [`docs/INVARIANTS.md`](docs/INVARIANTS.md), each mapped to a named test.
-Judgement calls where the design left an opening are in
-[`docs/DECISIONS.md`](docs/DECISIONS.md).
-
## The rule everything else follows
-Nothing reaches a consumer without an `approval` row behind it (I1). Every other
+Nothing reaches a consumer without an `approval` row behind it. Every other
behaviour is downstream of that: the review page freezes the exact bytes a human
looked at and hashes them, the approve request must echo both hashes, the build
re-checks the recipe pin and the resolved version before it runs, and publish
@@ -98,13 +93,12 @@ src/
testcorpus/ the fixture packages the tests build for real
templates/ askama templates, server-rendered
static/ app.css and one vendored htmx
-docs/ DECISIONS.md, INVARIANTS.md
```
## Testing without root, network, or a real chroot
`cargo test` runs the whole thing on an ordinary user account. Two mechanisms
-make that possible (§16a):
+make that possible:
* **PATH shims.** `src/bin/` contains `makepkg`, `pacman`, `repo-add` and
`gpg` — the tools the pipeline actually shells out to now that builds run
@@ -132,7 +126,7 @@ process mid-step, and a separate test spawns the compiled binary and kills *it*,
then asserts a fresh process resumes from the step checkpoints with no duplicate
work and the old index still byte-identical.
-The sandbox seam (§8a of the design) is tested the same way — the interface is
+The sandbox seam is tested the same way — the interface is
executed, not mocked: `tests/remote_agent.rs` drives a **full build over the
real agent protocol** (frames, rendezvous, log streaming, blob round-trip,
bad-token refusal) against the shims on a loopback socket, and
@@ -154,8 +148,7 @@ than failing:
and compares the hand-written comparator against it over ~1100 pairs.
* The live kata tier needs `/dev/kvm` and a cluster (`AUR_KATA_API`); the kata
rendezvous and TTL logic itself runs everywhere via a real `sandbox-agent`
- process with no VM. The old real-chroot tier retired with devtools; what it
- caught is recorded in `docs/DECISIONS.md` rather than silently absent.
+ process with no VM. The old real-chroot tier retired with devtools.
## Operations
@@ -194,12 +187,12 @@ at all; a test greps the rendered page for `<script` to keep it that way.
Approve is a POST carrying `identity_hash` and `diff_digest`. If either no
longer matches what the candidate became while the reviewer was reading, the
server answers **409** and re-renders the current state, so a reviewer can never
-approve bytes they did not see (§7.1a). Every POST requires a CSRF token bound
+approve bytes they did not see. Every POST requires a CSRF token bound
to the session; the whole site is gated behind a password by default.
## Constraints this codebase keeps
-From §14, and they are not suggestions:
+These are not suggestions:
* No `async`/`await`, no tokio. Threads and crossbeam channels; blocking HTTP
with `tiny_http`, outbound HTTP with `ureq`.
@@ -212,4 +205,4 @@ From §14, and they are not suggestions:
* Fail closed. A pin that does not match, a recipe hash that drifted, a package
with no signature, a symlink in the srcdir: the build stops and says why. A
change that is real but not publishable becomes a `notice` — never a candidate,
- never silently dropped (I11).
+ never silently dropped.