Repository navigation
refactor(daemon): generate find route from declaration kernel - #4358
Merged
Merged
Conversation
…logue-3utv.1 # Conflicts: # devtools/render_openapi.py
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Sinity
added a commit
that referenced
this pull request
Aug 28, 2026
## Summary - Register `find`/`query` with the shared `DeclarationSpec` kernel and generate its Starlette route + OpenAPI operation, deleting the hand-matched dispatch branch in `polylogue/daemon/http.py`. ## Problem (evidence) `ROUTE_CONTRACTS` described the route while `daemon/http.py` implemented dispatch independently — two authorities for the same route, with drift tests only detecting the split rather than preventing it. ## Solution `polylogue/daemon/route_contracts.py` builds the actual Starlette route and OpenAPI operation from one declaration; the corresponding hand-dispatch branch in `http.py` is removed. `devtools/render_openapi.py` and `docs/openapi/search.yaml` regenerate from the declaration. ## Verification - `nix develop --accept-flake-config --command devtools verify --quick` — green. - `nix develop --accept-flake-config --command devtools test tests/unit/daemon/test_route_contracts.py` — 121 passed, 1 failed (`test_implemented_daemon_routes_have_contract_metadata`, flagging `/api/demo/augment` as an undeclared route). Confirmed **inherited**: identical failure reproduces on a clean `origin/master` checkout, unrelated to this change. ## Residual risk None beyond the pre-existing inherited `/api/demo/augment` census gap tracked separately.
Sinity
added a commit
that referenced
this pull request
Sep 1, 2026
## Summary - Register `find`/`query` with the shared `DeclarationSpec` kernel and generate its Starlette route + OpenAPI operation, deleting the hand-matched dispatch branch in `polylogue/daemon/http.py`. ## Problem (evidence) `ROUTE_CONTRACTS` described the route while `daemon/http.py` implemented dispatch independently — two authorities for the same route, with drift tests only detecting the split rather than preventing it. ## Solution `polylogue/daemon/route_contracts.py` builds the actual Starlette route and OpenAPI operation from one declaration; the corresponding hand-dispatch branch in `http.py` is removed. `devtools/render_openapi.py` and `docs/openapi/search.yaml` regenerate from the declaration. ## Verification - `nix develop --accept-flake-config --command devtools verify --quick` — green. - `nix develop --accept-flake-config --command devtools test tests/unit/daemon/test_route_contracts.py` — 121 passed, 1 failed (`test_implemented_daemon_routes_have_contract_metadata`, flagging `/api/demo/augment` as an undeclared route). Confirmed **inherited**: identical failure reproduces on a clean `origin/master` checkout, unrelated to this change. ## Residual risk None beyond the pre-existing inherited `/api/demo/augment` census gap tracked separately.
Sinity
added a commit
that referenced
this pull request
Sep 3, 2026
## Summary - Register `find`/`query` with the shared `DeclarationSpec` kernel and generate its Starlette route + OpenAPI operation, deleting the hand-matched dispatch branch in `polylogue/daemon/http.py`. ## Problem (evidence) `ROUTE_CONTRACTS` described the route while `daemon/http.py` implemented dispatch independently — two authorities for the same route, with drift tests only detecting the split rather than preventing it. ## Solution `polylogue/daemon/route_contracts.py` builds the actual Starlette route and OpenAPI operation from one declaration; the corresponding hand-dispatch branch in `http.py` is removed. `devtools/render_openapi.py` and `docs/openapi/search.yaml` regenerate from the declaration. ## Verification - `nix develop --accept-flake-config --command devtools verify --quick` — green. - `nix develop --accept-flake-config --command devtools test tests/unit/daemon/test_route_contracts.py` — 121 passed, 1 failed (`test_implemented_daemon_routes_have_contract_metadata`, flagging `/api/demo/augment` as an undeclared route). Confirmed **inherited**: identical failure reproduces on a clean `origin/master` checkout, unrelated to this change. ## Residual risk None beyond the pre-existing inherited `/api/demo/augment` census gap tracked separately.
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.
Summary
find/querywith the sharedDeclarationSpeckernel and generate its Starlette route + OpenAPI operation, deleting the hand-matched dispatch branch inpolylogue/daemon/http.py.Problem (evidence)
ROUTE_CONTRACTSdescribed the route whiledaemon/http.pyimplemented dispatch independently — two authorities for the same route, with drift tests only detecting the split rather than preventing it.Solution
polylogue/daemon/route_contracts.pybuilds the actual Starlette route and OpenAPI operation from one declaration; the corresponding hand-dispatch branch inhttp.pyis removed.devtools/render_openapi.pyanddocs/openapi/search.yamlregenerate from the declaration.Verification
nix develop --accept-flake-config --command devtools verify --quick— green.nix develop --accept-flake-config --command devtools test tests/unit/daemon/test_route_contracts.py— 121 passed, 1 failed (test_implemented_daemon_routes_have_contract_metadata, flagging/api/demo/augmentas an undeclared route). Confirmed inherited: identical failure reproduces on a cleanorigin/mastercheckout, unrelated to this change.Residual risk
None beyond the pre-existing inherited
/api/demo/augmentcensus gap tracked separately.