skill: cross-module types priced, and the price was zero - #3352
Merged
Conversation
Contributor
|
📓 NotebookLM Notebook linked to this PR
This notebook contains session context, decisions, and artifacts for this work. |
Contributor
gHashTag
enabled auto-merge (squash)
September 6, 2026 04:32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3351
The Rust emitter drops every
useline, so a type declared in a sibling spec is undefined in the generated file. Twelve specs fail that way, six of them onTrit. It is worth nothing, and three measurements say so in increasing order of finality.1. Of the twelve, eleven carry between 9 and 84 other errors. Only
ternary/bigint.t27fails on missing types alone.2. Of 55 types imported by name across 46 specs: 18 declared exactly once, 8 declared in 2–4 places, 29 declared nowhere at all.
Trithas four declarations, and a module index does not save it — two files declaremodule tritypeand both declareTrit. They agree by luck.3, the one that settles it. Pasting the real definition into the single unblocked spec's generated Rust by hand:
A resolver — new file I/O, a module index, recursion guards, ~100 lines — moves the corpus by zero.
The method is the lesson: satisfy the dependency by hand before building the machinery that would satisfy it. One command priced a hundred-line feature at nothing.
Includes a correction to my own earlier note, which said
Tritis declared in exactly one spec — that came from greppingtype Tritonly; with the full matcher it is four.