Repository navigation
Route census builds its declared authentication surface - #881
Merged
Merged
Conversation
Assemble the real app in an isolated interpreter with explicit route settings. Keep every existing route classification and tenancy assertion. Signed-off-by: zlareb1 <[email protected]>
5 of 7 tasks
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.
Related: #878
Changelog category (leave one):
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):
The route tenancy census builds the authenticated application surface it classifies.
Why
The census expects the sign-in routes, but route attachment depends on settings when the application is imported. A cached application built with authentication disabled omits those routes even after settings change. CI reported all fourteen routes missing. The exact first-import configuration that caused that failure remains unproven.
Scope and risk
The existing census assertions run in an isolated interpreter after explicitly enabling authentication and disabling optional OAuth-connect routes. This gives the census a fresh application with its declared route surface. The interpreter imports the real application without starting its lifespan or an HTTP listener.
Every route classification, middleware comparison and named-handler tenancy assertion is unchanged. The child uses the same Python interpreter, has a finite timeout and reports its output on failure. Production application assembly and authentication behavior are unchanged.
Compatibility, rollout and rollback
Tests
pytest -q -n0 tests/unit/test_cell_tenancy.py::test_every_route_is_tenancy_checked_or_org_free.AI assistance in the code (leave one; writing this description with AI is fine):
AI-generated: An agent wrote the change. The assertion-preservation proof and focused result were checked directly; independent review and full CI passed.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist