Skip to main content

Module symbols

Module symbols 

Source
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 source via a DECL_KEYWORDS keyword.
expected_symbols
Names the goal requires to exist, drawn from a declared interface signature and the natural-language goal text.