Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aien-architecture-mv/blob/main/scripts/pipeline-proofs/23-hostile-records.sh # aien-architecture-mv Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aien-architecture-mv / scripts / pipeline-proofs / 23-hostile-records.sh` 64 lines ยท 4263 bytes Raw Blame History 1 #!/usr/bin/env bash 2 # 23: hostile coordination-store files get a bounded, named refusal (aien-architecture#234, synapse#58). On a clone: 3 # a FIFO record, a record symlinked to /dev/zero, an oversize record, a directory planted as .lock and a symlinked 4 # directory under dirs/ are each refused (exit 4, REFUSED_RECORD) without hanging, without unbounded reads and 5 # without replacing the planted file; moving the file aside restores normal operation. Every crumb run here is under 6 # a watchdog (background kill after W seconds, default 10) and a 1 GiB address-space limit. Records refusal latency. 7 here="$(cd "$(dirname "$0")" && pwd)"; . "$here/lib.sh" 8 unset CRUMB_EXPECT_STORE_ID CRUMB_STRICT_STORE_ID 9 W=${W:-10} 10 proof_begin 23 "hostile store files are refused, bounded, never replaced" "${1:-}" 11 clone_repo "$TMP/a" 12 L=$(leaf_crumb_dir "$TMP/a") || L=docs 13 STORE=$(git -C "$TMP/a" rev-parse --absolute-git-dir)/crumb/v1 14 num "target=$L"; num "watchdog=${W}s" 15 CR=$(command -v "$CRUMB" || echo "$CRUMB") 16 bounded() { # bounded