Beagle SCM
CODE tickets: code-redundancy cleanup
A 2026-06-11 per-directory redundancy review (12 reviewers, each reading ABC.md first) found 63 redundancies — code reimplementing abc primitives, intra-dir copy-paste, and dead duplicates. They group into 15 dir-themed tickets below, each a behavior-preserving refactor cleared via the Issues fix-and-land loop in a store-backed worktree. Run one worktree per dir, ~6 at once; abc and load-bearing spawn paths gate the diff before landing.
- the first 15 tickets resulted in bullshit quality "improvements", but some got merged; todo: improve the process
Active tickets
- CODE-020 — be/ JS duplication: extract shared primitives (fs probes, wtblob, tok32/hunkbuild, tree-walk, uriarg, path) + reconcile divergent resolveHashlet/isMeta; 2026-07-03 8-agent review.
- CODE-021 — be/ JS dedup net ≥1000 LoC reduction target + accounting (7-agent scan quantified CODE-020 at ~900–1050 removable); adds verb-entry factory + beCtx shim + spot/bro/store/argline twins.
2026-07-24 6-agent be/ review (unification objective). The dedup half folds into
CODE-020/CODE-021; these six track the net-new ground, in dependency order:
- CODE-022 — put.js hashlet resolver: dead-ternary bug (absent sha accepted) + fold to resolveHexAny. Deps: none; the sanctioned CODE-020 resolver spin-off.
- CODE-023 — get.js swallows unmount/unlink/durable-
con errors; store.locate silent miss. Deps: none.
- CODE-024 — io.mmap per-file readers leak mappings (classify.js rule) → pooled fd. Deps: none.
- CODE-025 — status/quad ahead-behind should read the graf.idx count cache (exists today). Deps: none.
- CODE-026 — index-accelerate history + search consumers. Deps: GRAF-002 + SPOT-003 must land in be/ (BLOCKED).
- CODE-027 — decompose oversized post.postOne + get.inRepoSeed/leaf. Deps: soft after CODE-022/CODE-023.
CODE-019 (relocate sha1hex from dog/WHIFF.h to dog/git/SHA1.h beside sha1,
finishing CODE-016; pure byte-identical move, zero consumer edits) LANDED addd5a9c.
CODE-018 LANDED a5d133f8 (51 non-abc ok64→PRO.h conversions); its abc/ remainder closed as-is (marginal, review-only — ROCKGet free-leak hazard left manual).
CODE-017 LANDED 5104a855 (the solid research-sweep findings; abc/js-FFI/marginal ones skipped or deferred); CODE-016 LANDED 0a43dec5; CODE-001..015 abandoned (bullshit quality, see above).
2026-08-21 bee bug sweep
A 4-reviewer bug sweep of ///bee (rev 184fddf) filed 17 repro-first tickets, CODE-031..047; the dedup and comment-policy findings stayed with the review report.
- HIGH: CODE-031 resolve.js rides the known range/prefix trap; CODE-032 stage.js feed() pipe deadlock.
- MED: CODE-033 prototype verb lookup, CODE-034 commit-memo leak, CODE-036 stalled-POST socket, CODE-037 empty-file mmap miss, CODE-038 diff toks aliasing, CODE-039 ANSI escape injection, CODE-042 swallowed worktree repair, CODE-044 stale SUBS memo.
- LOW: CODE-035 cross-connection flash, CODE-040 weave mask + null guard, CODE-041 foldSubs cycle, CODE-043 render theme split-brain, CODE-045 16-parent CPAR cap, CODE-046 unreachable kv refusal, CODE-047 quadratic fs listing.
2026-09-18 index review
A 4-reviewer review of index/ at ///bee#8cb69a0 (core walk, blob scan, kv/worktree, dag/perma), profiled on /src/git and /src/linux, filed CODE-048..080; CODE-031, CODE-045 and CODE-046 got the re-confirming evidence instead of duplicates.
- HIGH: CODE-048 torn rev mints a duplicate + hole; CODE-049 PARS via newest blob; CODE-050 identical-blob JOIN doubles text; CODE-051 tri mark outlives its lane; CODE-053 mint rewrites URLs; CODE-068 floorRev never finishes on MAINTAINERS; CODE-069 weave fold 188 s per path.
- MED: CODE-052
~ memtable orphans, CODE-054 kv no-block skip, CODE-055 Due: throws, CODE-056 repsOf cap, CODE-057 concurrent fork runs, CODE-058 fsw arm failure, CODE-059 deleted-file permalink, CODE-070 subRevs tax, CODE-071 walk memory, CODE-072 TRI seen Set, CODE-073 MARK accumulation, CODE-074 TRI-only round lexes, CODE-075 kv find rewalk, CODE-077 blobHistory off the ODB, CODE-078 grep at linux scale.
- LOW: CODE-060 rev overflow silent, CODE-061 perma timestamp order, CODE-062 foreign failure tty-only, CODE-063 dead-worktree kv blocks, CODE-064 path_hl collisions, CODE-065 kv lexer edges, CODE-066 seg3 / self-ref, CODE-067 subs.js swallow, CODE-076 mounts token memo, CODE-079 indexSubs opts, CODE-080 commitTs unused.