Knowledge Runtime

knowledge_runtime_planKNOWLEDGE_RUNTIME_FOUNDATION_READY
Generated at
2026-05-29T10:07:47Z
Snapshot version
1
Redaction
APPLIED
Source paths
  • config/knowledge_runtime/knowledge_brain_runtime_plan.yaml
  • config/knowledge_runtime/knowledge_item_extraction_rules.yaml
  • config/knowledge_runtime/knowledge_chunking_rules.yaml
  • config/knowledge_runtime/knowledge_indexing_plan.yaml
  • config/knowledge_runtime/retrieval_policy.yaml
  • config/knowledge_runtime/knowledge_review_rules.yaml
  • config/knowledge_runtime/knowledge_access_runtime_rules.yaml

Protected Prompt Boundary (PPB-01..PPB-10)

Prompt body text is not stored in this repository, not present in the database schema, and never serialized into API responses or UI snapshots. The UI shows [REDACTED-PPB-PROTECTED] in place of any field that matches the forbidden set.

PPB-PROTECTED

Defense in depth — six layers

  1. 1. Configconfig/prompts/prompt_registry.yaml stores metadata only. Prompt body text never lives in YAML.
  2. 2. Schemadb/migrations/001_initial_schema.sql defines rfa.prompt_records WITHOUT body/template_body/full_prompt columns.
  3. 3. APIapps/api/src/lib/prompt-redactor.ts walks responses and replaces forbidden keys with the redaction marker.
  4. 4. Snapshotscripts/ui/generate_static_registry_snapshots.py redacts again at snapshot-emit time.
  5. 5. UIapps/web/src/lib/redaction.ts runs a third pass before any payload reaches a component.
  6. 6. Validatorscripts/validation/validate_protected_prompt_ui_boundary.py refuses to PASS if any forbidden field is un-redacted.

Top-level metrics

FieldValue
runtime_statuses.length7
hard_rules.length5
ppb_protectedtrue