REQ-DDB-WIKI-033: The hub is live — refresh-driven rebuilds, agent focus, and an API over the query engine¶
What it requires
- While the hub runs it is attached to the server: after the refresh loop refreshes targets, every one whose wiki is already built is rebuilt (an unopened wiki is not), and each finished build is announced as a
rebuiltevent on/events(server-sent events, a keepalive comment every 15 s, every stream ended when the hub stops). - A found function's dossier reply gains
wiki_url— its symbol section on the hub, carrying no token — and afocusevent; with the hub off no key is added and a failing link never costs the answer. - Pages the hub serves carry an injected
/live.jsthat offers a reload onrebuiltand a link onfocus; the static site carries no live code. /api/<slug>/dossierand/api/<slug>/searchanswer throughclew.query.export; a missing argument or a refused call is a 400 with its reason, an unbuilt index a 404.
- tier
- PASS
- declared
- implemented
- priority
- P1
How it is met
Implemented by
attachclew/mcp_server/wikihub.py:908linkclew/mcp_server/wikihub.py:164publishclew/mcp_server/wikihub.py:113refreshedclew/mcp_server/wikihub.py:143
Tests (17)
Linked directly
17 tests: 17 passed