decouple: remove /api/wiki-rewrite (migrated to navi-places)

PR-B of decouple #4-REWRITE — the LAST recon→navi decoupling step. navi-places
now owns the Kiwix link-rewrite logic in-process (navi-backend PR-A 7103c27,
deployed + verified: Twin Falls live route returns wiki_rewrites local/public
from navi's own wiki_cache.db; zero outbound calls to recon /api/wiki-rewrite).

- DELETE lib/wiki_rewrite.py (the Kiwix rewrite logic — ported to navi-places).
- DELETE lib/wiki_rewrite_api.py (the /api/wiki-rewrite blueprint).
- DELETE lib/wiki_rewrite_api_test.py (tests the deleted endpoint).
- api.py: drop the wiki_rewrite_bp import + register_blueprint + section comment.

Verified zero recon consumers: nothing in recon imports wiki_rewrite — it was
purely an HTTP endpoint for navi-places. After this, recon services make and
receive zero navi-ecosystem runtime calls; recon is a fully separate product.

Out-of-band (post-deploy): DROP TABLE wiki_cache from /opt/recon/data/place_cache.db
(table only — place_cache + google_api_calls stay).

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
malice 2026-05-23 21:21:22 -06:00 committed by GitHub
commit 6365fe6756
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 0 additions and 436 deletions

View file

@ -62,11 +62,6 @@ app.request_class = _LargeZimRequest
from .netsyms_api import netsyms_bp
app.register_blueprint(netsyms_bp)
# ── Wiki-rewrite Blueprint (extraction #5 prep — HTTP wrapper over rewrite_wiki_link) ──
from .wiki_rewrite_api import wiki_rewrite_bp
app.register_blueprint(wiki_rewrite_bp)
# ── Navigation Constants ──