fix(scripts): close the BUGS-FOUND script items, fail closed on bad reads

profile-state.jq sanitizes printed values and shape-checks plugin ids (no forged plugin: line); the digest prints open: none or unknown instead of nothing; push-guard deny_lost checks every pipe stage, T63 split into ask and deny lists; prune-memory mktemp guarded.
This commit is contained in:
bchanot committed 2026-11-13 22:59:50 +01:00
1 parent 4900ca54a3
commit 9045a60f11
8 files changed
+70 -23

No files matched your search

+2 -2
View File
@@ -31,8 +31,8 @@ Operates on `.claude/memory/` in the current project (CWD). Curates the
- **Git is the backup.** Skill writes in-place. PRECHECK refuses to run
if working tree dirty on registry files.
- **Append-only friendly.** Marks entries with a `superseded by <ID>` or
`deprecated` status written by `memory.sh status` instead of deleting. Body of old entry stays
for history.
`deprecated` status written by `memory.sh status` instead of deleting.
Body of old entry stays for history.
- **IDs stable.** Never renumber. Merges create a new ID; sources keep
their ID with superseded status.
- **Caveman style enforced.** Per CLAUDE.md memory rule, all writes are
@@ -11,7 +11,8 @@ set -uo pipefail
HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
SKILL="${SKILL:-$HERE/../SKILL.md}"
SANDBOX="$(mktemp -d "${TMPDIR:-/tmp}/prune-red.XXXXXX")"
SANDBOX="$(mktemp -d "${TMPDIR:-/tmp}/prune-red.XXXXXX")" || exit 1
[ -n "$SANDBOX" ] || exit 1
trap 'rm -rf "$SANDBOX"' EXIT
fail=0