Light Knowledge Operational Boundary Runbook
This runbook operates the post-cutover boundary: Config Server owns Knowledge
control-plane state, while the Light Knowledge database owns operational state.
Portal reads operational state only through the private light-knowledge-admin
API. After physical separation, an incident response must not fall back to a
Config Server operational mirror.
Tenant/environment rollout
- Create an isolated deployment cell containing the exact Portal query,
light-knowledge,light-knowledge-admin, and worker versions being qualified. - Update the ingress or release-routing artifact so only the declared
tenant/environment allowlist reaches that cell. Store its identity in
allowlist.enforcementArtifact; an empty value cannot qualify. - Keep non-allowlisted traffic on a separate previously qualified cell. There
is deliberately no per-request JDBC or legacy-authority branch inside
genai-query. - Expand with another immutable routing/release artifact only after latency, availability, denial, redaction, acknowledgement-lag, and pool checks pass.
- Roll back by routing the allowlist to the prior qualified service cell; do not re-enable the removed Config Server operational reads.
Administration API outage
- Confirm retrieval traffic on
light-knowledgeis healthy independently of the administration listener and pool. - Check
light-knowledge-adminavailability, request latency, circuit-open count, database-pool utilization, and JWT denial outcomes. - Keep Portal desired state, aggregate version, and projection state visible.
Operational fields must report
UNAVAILABLE; do not fabricate empty rows. - Roll back only to a previously qualified, API-compatible service image. Do not enable the removed JDBC path.
- Record start, recovery, affected tenant/environment allowlists, and SLO impact in the Phase 7 daily evidence.
Stale or rejected control snapshot
- Read the active snapshot ID, applied watermark, signature key ID, rejection reason, and acknowledgement lag from each Knowledge deployment.
- Stop rollout expansion. Keep the last-known-good snapshot active; never partially activate a rejected snapshot.
- Compare the rejected publication with the Config Server snapshot manifest, tombstone set, host/environment scope, and monotonic version.
- Correct and republish through Config Server. Do not write replica tables manually. Confirm all replicas acknowledge the replacement snapshot before resuming rollout.
Database restore
- Select a compatible evidence set containing the Config Server snapshot ID, Config Server backup SHA-256, Knowledge checkpoint, Knowledge backup SHA-256, and object-manifest SHA-256.
- Stop Knowledge workers and snapshot application. Restore Config Server and Knowledge into separate databases from their independent artifacts.
- Restore or verify object storage against the recorded manifest before starting workers.
- Start snapshot application, then
light-knowledge-admin, retrieval API, and workers. Confirm snapshot/checkpoint compatibility and promotion receipts. - Run the two-database ownership, authorization, retrieval, and administration smoke tests before reopening the tenant allowlist.
Credential rotation
- Rotate the private snapshot-signing key with an overlap that allows the old and new verification key IDs. Publish and acknowledge a snapshot signed by the new key before retiring the old key.
- Rotate Config Server, Portal, and each Knowledge database login separately. Preserve database-scoped grants and network isolation.
- Restart one replica at a time. Confirm JWT verification, delegated user-token forwarding, pool health, and zero cross-database connectivity.
- Remove the previous secret only after every replica reports the new key or credential version.
Service rollback
- Freeze allowlist expansion and record current service versions, snapshot ID, Knowledge checkpoint, and object-manifest digest.
- Select versions compatible with the active administration API and snapshot schema. Roll back admin, retrieval, and worker replicas independently where possible.
- Verify Portal displays desired state during the rollback and that operational errors are explicit. The rollback must not fall back to a Config Server operational mirror.
- Resume only after denial, redaction, acknowledgement-lag, latency, and pool checks pass.
Retained-table cleanup
- Complete seven consecutive UTC qualification windows with zero authorization scope mismatch and all declared Portal and Knowledge SLOs met.
- Complete one declared rollback and backup cycle, including an independent restore exercise and service rollback without the stale operational mirror.
- Store the completed evidence JSON and backup artifacts outside the source tree. Run the Phase 7 qualification gate and retain its SHA-256 output.
- Set the exact cleanup confirmation and run the guarded cleanup command
against an explicit Config Server URL. It prints the captured relation counts
before dropping only
knowledge_rollback_evidence. - Re-run the Config Server control-only schema gate and archive the operator transcript with the qualification evidence.