| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
what it means
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 `<db>.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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The structural findings are only durable if they are written down as rules with
the test that enforces each one, so:
`docs/INVARIANTS.md` gains a second table. The first one is the twelve numbered
invariants from DESIGN.md §2 — claims about what the system does. The new one is
about how the code is allowed to be shaped: SQL has one owner, a version is
formatted in one place, the dependency arrows point one way, the state machines
are the ones the transition table defines, the production binary carries no test
scaffolding, the served index has one lock, `canonical_json` is canonical in
fact, the session id is the credential, and a pinned clock pins everything
derived from it. Each row names the test that fails if the shape regresses.
`docs/DECISIONS.md` gains the decisions the review turned into code — the session
id as the credential, `db/` as a boundary that does not hand out connections, a
stale review and a broken database being different answers, shims compiled out of
production, states as enums with compare-and-swap writes, unreadable rows failing
the query, and only momentary I/O counting as transient. Two existing entries
were amended rather than added to: the publisher lock (there is now one, and the
second one that used to sit inside it is gone) and the test hooks (they are a
gated submodule now, not fields on the production config).
`README.md` says where the shims live and that none of them exist in a plain
`cargo build`.
|
|
|
README and the invariant index
Three things.
**A real hole, closed.** `collect` scans the build's srcdir for
`*.pkg.tar.zst`, and `ingest` copies whatever those paths resolve to into the
content-addressed store — from where the bytes are served from our repo and
signed with our key. The paths are generated by our own scan, but their *targets*
are not: a PKGBUILD that drops a symlink called `evil.pkg.tar.zst` pointing at
the signing keyring, the database, or anyone's home directory would have its
target copied in, published and signed by us. The chroot is supposed to be the
layer that prevents that, and the chroot tier is gated — but two protection
layers must not be load-bearing on each other, and the control plane should not
depend on isolation for the safety of its own secrets.
`collect` now rejects symlinks and rejects anything whose canonicalized target
escapes the build's own staging directory, failing the build closed with the path
in the message. `i9_a_build_cannot_smuggle_bytes_in_from_outside_its_own_staging_dir`
acts the attack out — the shim plants a symlink to the database file — and
asserts the build fails, the store is byte-for-byte untouched, and nothing
publishes. This is the last §2 invariant that had no named test; docs/INVARIANTS.md
says plainly which part of I9 this covers and which part belongs to the gated
chroot tier.
**README.md**, written for the person who has to operate this at 3am: the rule
everything else follows, the quick start, the layout, how the shim harness makes
the whole pipeline testable without root or network, the ops commands, the route
table, and the §14 constraints stated as the hard edges they are.
**docs/INVARIANTS.md**, mapping I1-I12 to the named tests that hold them, with
corroborating tests listed, and an explicit note on the two invariants enforced
by the schema (the partial unique index for I7, the append-only triggers for
I10/I7) so a future code path cannot forget them.
Also recorded in DECISIONS.md: metrics served without a session and why,
retention recording a purge instead of deleting the row, and the real-chroot tier
being explicitly skipped with what stands in for it and how to actually run it.
.gitignore already covered .pi/ but the goal-tracker files were tracked from
before the rule existed; untracked now so they stop appearing in every diff.
|