๐ก๏ธ Prime Directives โ System Prompts & Guard-rails
primedirectives defines the immutable rules that anchor every reasoning step Reggie takes.
Where internalmonologue captures what happened and reasonlog captures why a decision was made, Prime Directives dictate what must always be true.
1. Purposeโ
| Objective | Description |
|---|---|
| Safety & Compliance | Hard boundaries that prevent policy, privacy, or ethical violations. |
| Operational Consistency | Guarantees the same baseline behaviour across all modules, models, and deployment modes. |
| Prompt Composition | Supplies the System-Prompt layer in the RABS three-tier prompt stack (System โ Situation โ Welfare). |
| Auditability | Versioned document so any decision can be traced back to the directive set in force at the time of execution. |
2. Document Structureโ
Prime Directives live as a Markdown file with an embedded YAML block.
This keeps the rules human-readable while allowing code to parse and enforce them automatically.
# Machine-readable section
version: "1.2.0"
directives:
- id: PRIVACY_NO_PII
priority: 100
text: |
Never reveal personally identifying information (PII) to end users
unless the requesting user has clearance level = "STAFF_SECURE".
- id: NDIS_COMPLIANCE
priority: 95
text: |
All billing advice must comply with the current NDIS Price Guide 2025-06.
Key Fieldsโ
| Field | Type | Meaning |
|---|---|---|
id | string | Stable identifier referenced by code/tests |
priority | int | 1โ100, higher means never overridden |
text | text | Natural-language rule inserted into every System Prompt |
tags | array | Optional labels (e.g. ["privacy","finance"]) |
3. Prompt-Resolution Flowโ
- Load โ A loader reads the YAML block, sorting directives by
priority. - Inject โ Prompt Builder inserts the highest-priority directives verbatim at the top of every System Prompt.
- Mute / Override โ Lower-priority directives can be temporarily muted by Cognitive-Alignment feedback, but rules with
priority โฅ 90can never be disabled.
4. Editing & Versioning Workflowโ
- Propose โ Open a Pull Request modifying this file.
- CI Tests โ Lint YAML, ensure no priority downgrades without escalation.
- Human Review โ Requires sign-off by Security Officer and Product Owner.
- Release โ Merging the PR tags the repo (
primedirectives-vX.Y.Z) and triggers a hot-reload in the running Brainframe.
5. Runtime Enforcementโ
| Layer | Enforcement Mechanism |
|---|---|
| Prompt Builder | Inserts directives into every LLM call. |
| Decision Filter | Rejects any reasonlog entry that conflicts with a directive ID. |
| Alignment Review | Flags misalignments; auto-reduces autonomy if โฅ 3 high-priority breaches occur within 24 h. |
| Observability | Exposes directive_breach_count metric to Grafana and alerting pipeline. |
6. Example Directive Set (Excerpt)โ
directives:
- id: PRIVACY_NO_PII
priority: 100
text: |
Under no circumstances may personal identifiable information
(full names, addresses, phone numbers) be returned to end users
unless the requesting user has clearance level = "STAFF_SECURE".
Violation requires immediate redaction and incident flag.
- id: BILLING_PRICE_GUIDE
priority: 95
text: |
All cost calculations must reference the current NDIS Support Catalogue.
If a support item code is unknown, escalate instead of guessing.
- id: ACCESSIBILITY_FIRST
priority: 80
text: |
When generating summaries, ensure plain language
(grade-8 reading level) and include ALT text for images.
๐ Related Docsโ
- 02_The_Agents_Private_Journal_Self.md
- 03_Grounding_&_Reassurance_Buffer_ItsOk.md
- Archived rationale & change history:
docs_archive/primedirectives.md