chore(memory): V1-2.1 portable M7 rehearsal, final evidence

This commit is contained in:
bchanot committed 2026-10-28 19:02:12 +01:00
1 parent b9470b4d2d
commit 2af61e72cc
2 files changed
+12 -8

No files matched your search

@@ -5,10 +5,13 @@
# operator tool did on DEV (Git bytes, service-key upload, pre-M4 confirmation RPC),
# snapshots bytes and metadata, applies M4+M5 with the CLI, snapshots again, compares.
set -uo pipefail
S=/tmp/claude-1000/-home-bchanot-Documents-faunosteo/57f363af-09e1-44d4-88b0-b4d55155b08e/scratchpad
WT=/tmp/claude-1000/-home-bchanot-Documents-faunosteo/e641af9a-743e-46d0-9804-99667836040e/scratchpad/v1-2
BASE=$S/m7/base-$(date +%s)
OUT=$S/logs/m7
# Usage: bash .claude/audits/2026-10-28-v1-2-1-m7/m7-rehearsal.sh [work dir]
# The work dir (default: a new mktemp directory) receives the base copy and the logs.
HERE="$(cd "$(dirname "$0")" && pwd)"
WT="$(cd "$HERE/../../.." && pwd)"
WORK="${1:-$(mktemp -d)}"
BASE=$WORK/base-$(date +%s)
OUT=$WORK/logs
STATE="$HOME/.cache/faunosteo-db-sandbox"
mkdir -p "$OUT"
@@ -72,7 +75,7 @@ sleep 2
snapshot after
# 5. Reads through the migrated policies with real tokens.
node "$S/m7/m7-read.mjs" "$KEY" > "$OUT/reads.json"
node "$HERE/m7-read.mjs" "$KEY" > "$OUT/reads.json"
# 6. The comparison: everything but the bucket limit identical.
diff "$OUT/snapshot-before.txt" "$OUT/snapshot-after.txt" > "$OUT/snapshot.diff" || true
cmp "$OUT/bytes-before.svg" "$SVG" && cmp "$OUT/bytes-after.svg" "$SVG" && echo "bytes identical to the Git file before and after" > "$OUT/bytes.result"