Skip to content

Skill: callgraph-miss-sweep, plus a Haiku callgraph-triage-scout agent #3780

Closed

Description

@squid-protocol

Part of #3772. Depends on callgraph_triage.py, callgraph_check.py and the resolver explain tool.

What

.claude/skills/callgraph-miss-sweep/SKILL.md: the fix loop

  1. Run callgraph_triage.py <lang> and pick the top bucket by recall or precision at stake.
  2. Recognise known patterns first:
  3. Root-cause it with explain_call.py and the --debug worker trace, not by reading the resolver cold.
  4. Verify a sample against source, then file the issue in the milestone.
  5. Fix it, run callgraph_check.py, then open the PR with before/after numbers.
  6. Net-change rule: a fix must be scored on the whole corpus, both fixed and newly broken links. Call resolver: several block-scoped definitions of one name in a file (const Node = … per test) all resolve to one of them, not the enclosing scope's #3759's first attempt fixed 3 links and broke 3, so it netted zero. Note: callgraph_triage.py does not produce this yet; its JSON only exposes a total broken count and no set of (caller, callee) links, so the before/after comparison needs a scorer change first.

.claude/agents/callgraph-triage-scout.md (Haiku)

  • Runs triage and returns buckets with evidence.
  • Drafts issues but doesn't file ambiguous ones: those go back to the main session.
  • Never fixes or pushes.
  • Mechanical and read-heavy, which matches the repo's model-tiering rule.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions