File size: 1,418 Bytes
d9ba8d6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
"""a11oy serve.py route-group package (Wave-K Dev4 — refactor-only decomposition).

BACKGROUND
----------
serve.py is a ~11.7k-line monolith. This package is the FIRST bounded slice of a
SAFE, CI-verified decomposition: a small number of cohesive route groups are moved
out of serve.py into focused modules here, each exposing a single

    def register(app) -> dict

entry point. serve.py imports the package and calls each `register(app)` at the
SAME lexical position the routes used to occupy — i.e. BEFORE the SPA
`/{full_path:path}` catch-all — via the established guarded try/except pattern, so:

  * every path is identical,
  * every method is identical,
  * the order relative to the catch-all is identical,
  * a missing/broken group can NEVER take down the SPA (guarded), and
  * the register() functions are IMPORTED + CALLED (register-invocation-guard clean).

This is REFACTOR-ONLY. No endpoint behavior changes. Parity is proven by
tools_serve_split/capture_routes.py (before/after route-table fingerprint) plus the
Wave-J frontier contract suite (tests/test_frontier_endpoints.py) and TestClient.

The package top-level name is `routers` (not szl_*/a11oy_*), so it is intentionally
OUTSIDE the guarded-import-liveness first-party scan — and the files exist anyway.

Signed-off-by: Stephen P. Lutar Jr. <stephenlutar2@gmail.com>
"""

__all__ = ["lambda_bounty", "research_3d", "frontier_reads"]