Repository navigation
Conversation
|
Agreed — this is a package-boundary issue, not just a naming question. ADR-0034 D2 calls for a sibling web package alongside I’m holding this PR and extracting the shared stack into |
Uitzondering op K56 en rood-bewijsCloses #181 Uitzondering op K56: de codex-toetsen B-16-26 en B-20-15 zijn aangepast, alleen zover nodig om de klok eruit te halen. De aanpassing is zelf door codex geschreven en ongewijzigd gecommit ("toetsen van codex, ongewijzigd (K56 punt 2)"): stap 8 onthoudt het runId, en stap 11 opent Rood-bewijs (K74/K161, twee mutatiebouwen, eigen WooCommerce in Docker):
Open punt: M3 (de bewering over de stand in de tabel) is niet los rood bewezen, want M2 valt in dezelfde stap eerder om (K161: hooguit twee bouwen). |
…nistic safe sink (kunchenguid#185) * feat(bin): complete gateway v2 signed approval, leased execution, and safe sink Continues the accepted gateway v2 owner through Step 2 sub-order items 5 and 6 plus the quarantine importer and installation lifecycle from item 7. The parser, closed plan, SQLite tombstones, peer/capability binding, and refusal guarantees from items 1 through 4 are unchanged. Approval now completes against an enrolled signer. The signature is over the exact canonical transcript the broker recomputes from stored state, the challenge is one-shot, and the approver's assurance class is recorded on the approval row, in the audit event, and in status output. There is no fallback in either direction: the forgeable software test class is refused at enrollment and at verification outside test mode, and the asymmetric path refuses by name when its verification primitive is unavailable rather than accepting an unverified approval. Execution is claimed under a one-shot lease and settled from the executor's own receipt store, not from the executor's report. A relay that claims success it did not achieve settles failed or unknown, whichever the store supports. Recovery now reconciles only leases whose deadline has passed, so a live execution window is no longer rewritten by a concurrent read. An expired lease becomes unknown, and neither a late settle nor a retry can leave that state. The deterministic safe sink is the only executor the broker will claim for, its exact bytes are bound into every plan, and its idempotency key is its store's primary key, so a repeated click, retry, or restart produces no second effect. Adds device.config.stage with the non-graduatable device ceiling and a device shape in the closed plan. The gateway records the exact integer wire value and never alters it: no corrective band, no floor, no rounding, and no decoding. A setting whose encoding is not confirmed cannot be staged at all, and eligibility is never defaulted to observed. The installation lifecycle previews and never installs. Every privileged path is a validated fixed literal, and uninstall quarantines directories by moving them under a timestamp rather than deleting a tree, so it cannot destroy the audit record or take a neighbouring path with it. The emitted install and uninstall artifacts carry their own path, containment, symlink, and ownership guards, are not executable, and refuse to run without an explicit confirmation flag. No device was touched, no privileged installation performed, no key enrolled outside a temporary root, and no outward action exists anywhere in this path. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * no-mistakes(review): fix gateway v2 durable unknown, plan bounds, and executor store split * no-mistakes(review): publish plan ceiling, verify sink group, guard group rollback * no-mistakes(review): fail closed on group rollback proof and setgid * fix(bin): approve the gateway v2 installation prefixes in the boundary pack The installation lifecycle installs its programs under /usr/local/libexec/firstmate/ and its executor-owned receipt store under /var/db/firstmate/sink/, but the worker-boundary pack's source-manifest contract approved neither. A reviewed installation using the previewed paths would have been rejected by the very pack that exists to verify it. Adds exactly those two prefixes to the approved list, to the --help text that owns it, and to the contract doc. The receipt store is a separate prefix from /var/db/firstmate/gateway/ on purpose: the broker root stays broker-only, and the store the broker reads is owned by the executor. Tests cover both directions: a manifest naming the two gateway v2 install paths passes the source invariant checker, and a path outside every approved prefix still fails and still exits nonzero. * fix(tests): read store modes and groups with a portable stat in the sink suite The permission assertions called /usr/bin/stat -f, which is BSD format syntax. GNU stat reads -f as "file system", so on the Linux CI runner the call did not fall over on an unsupported flag - it tried to stat a filesystem named after the format string and failed the suite. Uses the GNU-then-BSD fallback tests/lib.sh already uses. Both spellings render four octal digits, so the setgid bit the store depends on is still compared rather than silently dropped. --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
|
Round 1 fixes, at
Local checks at this commit: ruff and format clean, mypy clean, ATL-HANDOFF: builder-done sha=4cd7e400dbdce5595ddc405ad3d0a608e55416ec round=2 |
Summary
bin/fm-preview-pr.shfor reusable project PR preview refreshes with dedicated preview worktrees and per-preview statestate/previews/merge-tree --write-treeValidation
fm-preview-pr.shfixture that produced a canonicalready:lineaperez32, so branch was pushed to forkaperez32/firstmate