Repository navigation
Have findings import nothing from registry - #7152
Merged
Merged
Conversation
findings rendered two kinds of words through registry modules ordered above it, each imported inside a function: a JSON value inline in a sentence (registry.schema.json_value) and the part ids a visual admits (registry.contract.VisualParts' str). registry imports findings in five modules, so both closed a cycle that import-linter allowed. json_value moves to json_block, beside json_block, as the one way Leaf writes a JSON value into a sentence; registry.schema, data, data_contracts and codex import it from there. findings owns the words for a visual's admitted parts (admitted_parts), and VisualParts renders through them, so one wording serves the refusal and anchor capture's error. Allowances: 48 to 46.
leaf-agent
approved these changes
Nov 25, 2026
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.
This PR stops
findingsfrom importing anything inregistry, which ends two ofsrc/leaf's allowed backward imports (48 to 46).registryimportsfindingsin five modules. Butfindingsalso rendered two kinds of words throughregistrymodules ordered above it, importing each inside a function: a JSON value written inline in a sentence (registry.schema.json_value), and the part ids a visual admits (thestrofregistry.contract.VisualParts).json_valuemoves tojson_block, which already described Leaf's inline and fenced forms of a JSON value.findings,registry.schema,data,data_contractsandcodexnow import it from there. The one incodexstays a function-level import, as it was.findingsowns the words for a visual's admitted parts (admitted_parts).VisualParts.__str__renders through it, so theundeclared-visualrefusal and anchor capture's error share one wording.Checks: pre-commit passes, import-linter included. The model tests for the interact contract, documents, layers, render gate, Codex adapter and chrome contracts all pass (876).
git merge-treeagainst the head of #7114, another session's open PR, reports no conflicts.