Unclaimed files left in the canonical checkout. Inventory: canonical-cleanup-inventory.md (commit-as-evidence groups). detect-secrets scan clean on 2026-11-02: hits are sha256 pins, git object ids, test sentinels already in tracked tests and unit-file lines.
18 lines
1.2 KiB
Bash
Executable File
18 lines
1.2 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Row 169 rehearsal (sage-1014): sets plugins.harness on the scratch business. It first runs the NEW
|
|
# copy's own `mosaic plugins` (packages/cli/src/cli.mjs; scripts/mosaic at d195d171c doesn't dispatch
|
|
# plugins), whose human transport runs that copy's human-cli.mjs against the scratch socket. The bus
|
|
# refuses that human-required, since this agent is in the caller's parents (attempt 3), so the set
|
|
# then goes through hset.mjs, the host's own writer with actor standin.darkwing.
|
|
# usage (inside the scratch env): hcli.sh 'VALUE_JSON'
|
|
set -uo pipefail
|
|
. /home/jwoltje/darkwing-scratch/r169/reh/b/env.sh
|
|
M="$COPIES/$NEW/packages/cli/src/cli.mjs"
|
|
echo "> node $M plugins --business mosaic-stack"
|
|
read_out="$(node "$M" plugins --business mosaic-stack 2>&1)"; rc=$?
|
|
echo "$read_out"; echo "# real read exit $rc"
|
|
if [ "$rc" -eq 0 ]; then echo "hcli: the real read passed; this harness expects a refusal, stopping"; exit 2; fi
|
|
grep -q '^mosaic: human-required$' <<<"$read_out" || { echo "hcli: refused for another reason"; exit 2; }
|
|
echo "> node $B/hset.mjs $COPIES/$NEW '$1' (stand-in: the host's writer, actor standin.darkwing)"
|
|
node "$B/hset.mjs" "$COPIES/$NEW" "$1"
|