You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clear the gates this branch was failing on its own
Four gates were red on wave6 independently of the main merge.
TYPECHECK — 5 findings in signalwire/search/, present on this branch before the
merge (verified against pristine origin/wave6). Two shapes, both real:
* `if not SentenceTransformer:` / `if not Presentation:` — the optional-dep
shim leaves the name as the class or None, and a class object is always
truthy, so the guard never fired the way it reads. Now `is None` /
`is not None`.
* `model.model_name = model_name` — torch's Module.__setattr__ is typed
Tensor|Module, so stashing the name for cache identification is a
third-party stub gap. Narrow `# type: ignore[assignment]` with the reason.
mypy is now clean over all 365 files.
REPO-LINT — the wave's new gate lints tests/ too: an unused `Awaitable,
Callable` import and a PERF401 append-loop, both in test_gateway.py. The loop is
now an async comprehension.
DOC-SURFACE — the floor is 100% here and coverage was 99.5%. Documented the
remaining 8: AgentServer's add_security_headers / health_check /
readiness_check, and ChatGateway's close / check_key / preflight / proxy /
stream. Real docstrings — check_key notes the compare_digest timing property,
stream notes that awaiting the body would swallow the keepalive padding the
service sends to survive intermediaries. Now 100.0% (1108/1108).
DOC-AUDIT — `get_stats` is a real SearchEngine method in signalwire/search/,
which is excluded from the oracle by design; added to DOC_AUDIT_IGNORE.md under
the Search-subsystem section that already names local_search_agent.py.
Verified with the paired porting-sdk wave6 branch: the full run-ci is green
except ROUTE-COLLISION, which fails only locally — python_route_registry.py
resolves the SDK through _sibling_root and lands on a relative path when the
registry runs with cwd=--repo. Handed an explicitly-built registry it reports
route-split=0, crud-dup=0, orphan-dto=0. CI's layout resolves it and has never
reported that gate.
build_index: real IndexBuilder.build_index (signalwire/search/index_builder.py) — Python-only search skill, absent from the cross-port surface
99
99
build_index_from_sources: real IndexBuilder.build_index_from_sources (signalwire/search/index_builder.py) — Python-only search skill, absent from the cross-port surface
100
100
migrate_sqlite_to_pgvector: real migration helper (signalwire/search/migration.py) — Python-only search skill, absent from the cross-port surface
101
+
get_stats: real SearchEngine.get_stats (signalwire/search/search_engine.py) — Python-only search skill, absent from the cross-port surface
101
102
argsort: numpy.argsort — DIY search example in docs/search_overview.md
0 commit comments