monoscope/scripts
Anthony Alaribe 7a13fc0887 chore(scripts): share the lost-work sweep instead of keeping it on one laptop
Written after `git add -A` + `reset --hard` destroyed another session's
uncommitted work on 2026-09-02 and every ref-based check came back clean —
`git log --all`, branch diffs and prod-vs-master HTML can only see work that
reached a ref, and a dangling commit has not.

- `dangling-work.sh` lists commits no ref can reach, and (PRESERVE=1)
  snapshot-tags every dirty worktree via `git stash create`, which builds the
  commit object WITHOUT touching the index or working tree — safe against a
  checkout another session is editing. Its first run tagged 11 dirty checkouts,
  several 8+ days stale, none of them recoverable if anyone had reset them.
- `dangling-triage.sh` answers "is this orphan actually lost?" by the identifiers
  a commit introduced rather than its lines. Line comparison is useless here:
  fourmolu and the deep-clean sweeps reword everything, so landed work scores
  100% missing. Identifiers survive refactors and scored 14 of 18 correctly.

Out of scripts/local/ (gitignored) because neither reads a secret or touches a
database — they are pure git, and the whole point is that someone else can run
them. The repo list is now derived from this checkout and its siblings rather
than hardcoded to one machine's home directory.
History 2026-09-03 09:52:39 +02:00
..
ci Put the e2e suite in CI, and fix make ci resolving its root to / 2026-08-20 01:40:34 +02:00
local/dlq-redrive chore(dlq-redrive): log fetch progress, add KGO_DEBUG franz-go logger 2026-07-29 21:32:34 +02:00
archive-noisy-log-pattern-issues.sh Collapse log-pattern clusters in Inbox and auto-archive stale issues (#361) 2026-04-24 12:30:22 +02:00
check-cli-linkage.sh Slim the CLI binary and rebuild its release pipeline around it 2026-08-06 01:49:06 +02:00
dangling-triage.sh chore(scripts): share the lost-work sweep instead of keeping it on one laptop 2026-09-03 09:52:39 +02:00
dangling-work.sh chore(scripts): share the lost-work sweep instead of keeping it on one laptop 2026-09-03 09:52:39 +02:00
e2e.sh Put the e2e suite in CI, and fix make ci resolving its root to / 2026-08-20 01:40:34 +02:00
fa-add.py fa-add: fetch FontAwesome Pro API first, free CDN fallback 2026-07-04 09:57:07 -07:00
function-index.sh consolidation 2026-03-17 15:24:33 +01:00
install.sh refactor: CLI agent-mode hardening + cross-cutting LOC reduction (#365) 2026-05-02 23:38:22 +02:00
stream-demo-telemetry.sh fix(charts): don't advance query-cache watermark on failed delta fetch (#456) 2026-07-02 09:53:51 -07:00