mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-11 13:27:47 +01:00
These accumulate roughly one per commit and were the largest single driver of tracked-file growth: 695 artifacts, 487 of them from 2026-08 alone. Kept the 20 most recent of each plus both templates. A count cap rather than a time window, because the growth is bursty - a 7-day window would still have kept 393 files and bounded nothing. Selection is by git commit date, not by filename: the corpus mixes -2026-05, -20260604 and undated slugs, so a filename filter would have mis-sorted ~48 files. Safe to delete: nothing reads the historical corpus. Every reference in meta/scripts is either template.json or validation of files staged in the current commit, and the three hooks still pass. sessions/ is append-only and untouched. Tracked files 1993 -> 1340. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PJrqKERAo5QUeEHWS5Asgp
45 lines
3.0 KiB
JSON
45 lines
3.0 KiB
JSON
{
|
|
"intent": "Prune the accumulated per-commit evidence and contract artifacts, which were the largest single driver of tracked-file growth in the repo.",
|
|
"scope": [
|
|
"docs/superpowers/evidence - 455 tracked files down to 21",
|
|
"docs/superpowers/contracts - 241 tracked files down to 21",
|
|
"Non-goal: docs/superpowers/sessions, which is append-only and enforced by check_append_only_sessions.sh. Untouched.",
|
|
"Non-goal: .hippo/, reported on separately rather than pruned in the same pass."
|
|
],
|
|
"changes": [
|
|
"Kept the 20 most recently committed artifacts in each of evidence/ and contracts/, plus both template.json files, and removed the other 655.",
|
|
"Selected by real git commit date (git log -1 --format=%cs per file) rather than by parsing filenames: the corpus mixes -2026-05, -20260604 and undated slugs, so a filename date filter would have silently mis-sorted ~48 files.",
|
|
"Used a count cap rather than a time window because growth is bursty: 487 of the 695 artifacts were committed in 2026-08 alone, so even a 7-day window would have kept 393 files and bounded nothing going forward."
|
|
],
|
|
"verification": [
|
|
{
|
|
"command": "grep -c template prune_final.txt",
|
|
"result": "pass",
|
|
"evidence": "0 - neither template.json was in the prune list. Confirmed present on disk after the removal; the hooks tell users to copy them, so deleting one would have broken the documented workflow."
|
|
},
|
|
{
|
|
"command": "git ls-files docs/superpowers/{evidence,contracts,sessions} | wc -l",
|
|
"result": "pass",
|
|
"evidence": "evidence 21, contracts 21 (20 kept + template each), sessions 3 unchanged. Arithmetic closes: 695 = 40 kept + 655 pruned."
|
|
},
|
|
{
|
|
"command": "./meta/scripts/check_ai_evidence.sh; ./meta/scripts/check_agent_contract.sh; ./meta/scripts/check_append_only_sessions.sh",
|
|
"result": "pass",
|
|
"evidence": "All three exit 0 after the prune. Verified beforehand by grep that no tooling reads the historical corpus - every reference is either template.json or validation of files staged in the current commit."
|
|
},
|
|
{
|
|
"command": "git ls-files | wc -l",
|
|
"result": "pass",
|
|
"evidence": "1993 -> 1340 tracked files. check_repo_size still reports ~1050 source files, correctly unchanged: docs/superpowers/ is excluded from that count by design."
|
|
}
|
|
],
|
|
"risks": [
|
|
"Historical artifacts are now reachable only through git history (git log --diff-filter=D -- docs/superpowers/). Accepted: nothing reads them programmatically and their review value decays within days.",
|
|
"The 20-file cap is enforced by nothing - it is a one-off prune, so the directories will grow again at roughly one artifact per commit. A recurring prune or a hard cap would be the durable fix if this recurs."
|
|
],
|
|
"rollback": [
|
|
"git revert the commit restores all 655 files, since this is a pure deletion with no accompanying logic change.",
|
|
"After rollback, confirm the three superpowers hooks still exit 0 and that both template.json files are present."
|
|
]
|
|
}
|