Expand description
Symbol extraction for the goal-presence sensor (PSP-8).
The SDK’s perspt_sdk::goal sensor compares names: the symbols a node is
required to produce against the symbols actually defined in the workspace.
Turning a coding task contract into expected names, and source files into
defined names, is domain knowledge — it lives here, not in the kernel.
The extractors are deliberately lightweight, language-shared scanners over Rust, Python, and TypeScript declaration keywords plus backtick-quoted identifiers in a goal description. They are intentionally conservative: they only ever name top-level declarable identifiers, so the goal-presence sensor never invents an obligation the planner did not express.
Functions§
- defined_
symbols - Names declared in
sourcevia aDECL_KEYWORDSkeyword. - expected_
symbols - Names the goal requires to exist, drawn from a declared interface signature and the natural-language goal text.