Skip to content

Skill: callgraph-language-onboarding (add a compiler reference for a new language) #3779

Closed

Description

@squid-protocol

Part of #3772. Depends on the adapter contract.

What

A .claude/skills/callgraph-language-onboarding/SKILL.md checklist. It records every step and trap from the TypeScript onboarding (#3761), so the next language doesn't rediscover them.

  1. Pick a corpus repo the reference can resolve. Not language-crucible, whose samples are flattened so no import resolves. Prefer a repo already pinned in tests/import_graph_corpus.json. Note whether its dependencies must be installed, and the network that needs.
  2. Write the adapter to the contract. Name units the way the engine does: constructors, accessors, arrows bound to a name or assigned to a member, quoted keys.
  3. Pin the tool version, and fail when the tool is missing or its API is absent. TypeScript 7 ships no JS compiler API, which broke CI on Call resolution Level 2: measure TypeScript against the compiler's type checker #3761. Normalise paths to forward slashes, because Windows uses backslashes.
  4. Add the CI install step and a gate step to graph-accuracy-audit.yml, and the new files to its paths:.
  5. Establish a baseline, then run callgraph_triage.py and file each bucket as an issue in milestone "Compiler call-graph comparison".
  6. Document it: a row in docs/graph_accuracy.md, and the limits in docs/function_call_graph.md.

Every number must be labelled "vs " and never called ground truth (CLAUDE.md, "Comparative-correctness claims").

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions