/** * The `/api/v1/governance/wiki/*` surface (wiki-mgmt) — the management wire for the graph-backed * architecture wiki, so the wiki is VISIBLE (not just queryable): a scoreboard that tells a * populated wiki from an ingested-once-and-decaying one, and a meta probe cheap enough for the * UI to call on mount so an empty store shows an honest "nothing seeded — here's the runbook" * instead of a blank table. * * Thin by design, like `campaigns/routes.ts`: the scoreboard is computed by wicked-core's * governance layer (`wicked-governance::scoreboard`, read-only `open_store_ro` — safe beside the * live single-writer daemon); the daemon keeps no shadow wiki state. Error posture mirrors the * campaign surface: a build whose engine addon lacks the `governanceScoreboard` binding answers * 501 (`GovernanceScoreboardUnsupportedError` — "upgrade the engine"), never 400 ("fix your * request"). * * Rule/ruleset BROWSE and RETIRE deliberately live elsewhere — this module adds no second door: * `GET /governance/rules` (facet-filterable, retired rows flagged) is the browse surface and * `DELETE /governance/rules/:id` (retire-not-delete, FINDING-038) is the kill switch, both in * `api/routes.ts`. */ import type { FastifyInstance } from 'fastify'; import { type CoreAdapter } from '../core/adapter.js'; /** * The authoring guide the honest empty state points at: the AW-13 seed runbook — frontmatter * conventions, the `seed_wiki.py` driver, and the `wicked-core rules` ingest/fanout/relink CLIs. */ export declare const WIKI_AUTHORING_DOC = "https://github.com/mikeparcewski/wicked-core/blob/main/crates/wicked-governance/seed/README.md"; export declare function registerGovernanceWikiRoutes(app: FastifyInstance, adapter: CoreAdapter): void; //# sourceMappingURL=governance-wiki.d.ts.map