Skip to content

The analyzer corpus drives namespace.inventory with one fill value - #173

Merged
zlareb1 merged 2 commits into
mainfrom
fix/inventory-corpus-axis
Nov 1, 2026
Merged

zlareb1 merged 2 commits into
mainfrom
fix/inventory-corpus-axis

Conversation

@zlareb1

@zlareb1 zlareb1 commented Nov 1, 2026

Copy link
Copy Markdown
Member

Related: #160

Changelog category (leave one):

  • Not for changelog

Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):

None: a test-corpus fix.

Why

tests/analyzer/test_corpus.py::test_every_axis_moves_a_shape fails on main: handlers.namespace_inventory has a filled axis that renders the same statements for both values. The inventory handler's optional input fields (read_scope, user_id, session_id, population_limit) reach no statement text: the read scope is bound from the request at admission, and the population limit is a bound parameter. So the filled input renders exactly the empty one's shapes, as for the other modules in _FILL_INERT.

Scope and risk

  • Test-only: namespace_inventory joins _FILL_INERT in tests/analyzer/cases/planes.py, with the reason beside it. shapes.txt is unchanged (the shapes were already the same for both values).

Compatibility, rollout and rollback

  • None; no runtime code changes.

Tests

  • tests/analyzer against a private ClickHouse: 12 passed (it failed test_every_axis_moves_a_shape before).

AI assistance in the code (leave one; writing this description with AI is fine):

  • AI-generated (an agent wrote most of the diff): Claude Code. Checked against the failing CI log and a local analyzer run.

  • I can explain every line of this diff and how it interacts with the rest of Loom.

Checklist

  • make format-check, make lint, make typecheck and make test-unit pass; the integration suite passes if server behaviour changed. (Test-only change; the analyzer suite passes.)
  • Generated files are regenerated in this PR, not by hand. (shapes.txt regenerated, unchanged.)
  • A new migration is additive and numbered after the latest on main; no merged migration is edited. (No migration.)
  • A behaviour change to any file a plugin ships bumps both plugin manifests' version. (No plugin file.)
  • The frontend builds (npm --prefix frontend run build) and its tests pass, if frontend/ changed. (No frontend change.)
  • Docs under docs/ describe the system as it now is, and this description names any operator steps and wire changes. (No docs change.)
  • Repository text has no dates, people, host names, internal namespaces, ticket or decision numbers.
  • Commits are signed off (git commit -s), as CONTRIBUTING.md asks.

🤖 Generated with Claude Code

zlareb1 and others added 2 commits November 1, 2026 18:44
@zlareb1
zlareb1 merged commit c913d5e into main Nov 1, 2026
18 checks passed
@zlareb1
zlareb1 deleted the fix/inventory-corpus-axis branch November 1, 2026 18:52
@pufit pufit mentioned this pull request Nov 2, 2026
9 tasks done
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.

1 participant