Skip to content

Add tri-comparison-ledger-sweep skill - #1871

Merged
squid-protocol merged 2 commits into
mainfrom
tri-comparison-ledger-sweep-skill
Aug 19, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
tri-comparison-ledger-sweep-skill

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Summary

New skill (.claude/skills/tri-comparison-ledger-sweep/SKILL.md) for the workflow we've been running by hand this session: dispatching agents to investigate unvalidated docs/self_scan/tri_comparison_ledger.json discrepancy shapes and land reviewed verdicts.

Modeled directly on tree-sitter-accuracy-sweep's proven pool-dispatch structure, but adapted where the task genuinely differs:

  • Deliverable is a verdict, not a code fix -- no worktree, no venv build, no per-worktree agy permission grant. Every dispatch is read-only against the main checkout.
  • Every verdict lands in the same shared ledger file -- the one hard rule with no equivalent in the sweep skill: dispatched agents never write to tri_comparison_ledger.json themselves, they return text and the main session applies it serially.
  • Candidate selection, verdict review (does it cite real file:line, does the "generalizes" claim have support), and issue-filing for confirmed engine defects stay in the main session -- same "root-cause here, delegate only the scoped work" principle.
  • Papertrail is three layers: the ledger entry itself, the regenerated tri_comparison_points_of_interest.md, and a filed GitHub issue for anything needing a real code fix.

Carries forward concrete gotchas already confirmed this session: arduino-ctags shadowing real ctags on Ubuntu (with a working no-root local-build recipe), the --write + partial --languages chart-clobber footgun, and agy's premature-completion / no-self-escalation rules (same failure modes as tree-sitter-accuracy-sweep, confirmed to recur).

Docs/tooling only -- no engine or runtime code touched, no audits required.

Test plan

  • N/A -- markdown skill file only, no code behavior changed.

🤖 Generated with Claude Code

Operational playbook for dispatching Gemini/agy subagents to investigate
unvalidated docs/self_scan/tri_comparison_ledger.json discrepancy shapes
(GitGalaxy vs. tree-sitter vs. ctags, no privileged ground truth) --
modeled on tree-sitter-accuracy-sweep's proven pool-dispatch pattern, but
adapted for a genuinely different shape of work:

- The deliverable is a VERDICT (read the real corpus source, determine
  what's actually true), not a code fix -- no worktree, no venv build,
  no per-worktree agy permission grant needed, since every dispatch is
  read-only against the main checkout directly.
- Every verdict lands in the SAME shared ledger file, so dispatches must
  never write to it themselves -- they return text, the main session
  reviews and applies serially. This is the one hard rule with no
  tree-sitter-accuracy-sweep equivalent, called out explicitly in the
  dispatch-prompt template.
- Candidate selection, verdict review, and issue-filing for any
  confirmed engine defect found along the way stay in the main session,
  same principle as the sweep skill's "root-cause here, only delegate
  the already-scoped work."
- Papertrail is three layers: the ledger entry itself (primary source),
  the regenerated tri_comparison_points_of_interest.md (human-scannable
  log), and a filed GitHub issue for anything that needs an actual code
  fix -- kept distinct from "what did we learn" ledger verdicts.

Carries forward the concrete gotchas already confirmed this session:
arduino-ctags shadowing real ctags on Ubuntu (with a no-root local-build
recipe that worked), the --write-with-partial---languages chart-clobber
footgun, and agy's premature-completion/no-self-escalation rules from
tree-sitter-accuracy-sweep (same failure modes, confirmed to recur
regardless of task shape).

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

First real sweep run (rust, 2026-08-19) confirmed a real gap: a verdict
said "worth a doc note in ctags_reader.py" but the note didn't actually
get written until the user caught it missing in review. Step 4.3 now
spells out all three buckets a verdict can land in explicitly (engine
defect -> GitHub issue, GitGalaxy-correct -> why_gitgalaxy_beats_ast_here.md,
tool-side limitation -> the relevant reader module's own docstring) as a
forced decision per verdict, not an afterthought -- and the papertrail
section's layer list now maps 1:1 onto the same three buckets instead of
just listing "GitHub issues" as if it were the only write-through target.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@squid-protocol
squid-protocol merged commit c544eb5 into main Aug 19, 2026
28 checks passed
@squid-protocol
squid-protocol deleted the tri-comparison-ledger-sweep-skill branch August 19, 2026 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant