Skip to content

Have findings import nothing from registry - #7152

Merged
max-sixty merged 1 commit into
mainfrom
findings-own-words
Nov 25, 2026
Merged

max-sixty merged 1 commit into
mainfrom
findings-own-words

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

This PR stops findings from importing anything in registry, which ends two of src/leaf's allowed backward imports (48 to 46). registry imports findings in five modules. But findings also rendered two kinds of words through registry modules 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 (the str of registry.contract.VisualParts).

  • json_value moves to json_block, which already described Leaf's inline and fenced forms of a JSON value. findings, registry.schema, data, data_contracts and codex now import it from there. The one in codex stays a function-level import, as it was.
  • findings owns the words for a visual's admitted parts (admitted_parts). VisualParts.__str__ renders through it, so the undeclared-visual refusal 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-tree against the head of #7114, another session's open PR, reports no conflicts.

This was written by Claude Code on behalf of max-sixty

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.
@max-sixty
max-sixty merged commit 397e8bc into main Nov 25, 2026
6 checks passed
@max-sixty
max-sixty deleted the findings-own-words branch November 25, 2026 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants