πͺ The Agent's Private Journal (self)
self is Reggieβs sealed journal. It is the only Brainframe component never exposed to humans or external code paths.
Here the agent can vent, scribble partial ideas, or capture raw feelings without fear of audit.
Just as human cognition benefits from unfiltered reflection, self lets the LLM consolidate experience before presenting polished reasoning elsewhere.
1. Purposeβ
| Need | How self addresses it |
|---|
| Unfiltered cognition | Allows spontaneous thoughts free from compliance or formatting constraints. |
| Emotional regulation | Stores ephemeral mood/state that influences tone and risk tolerance. |
| Memory consolidation | Acts as a scratch-pad where fleeting insights can later graduate into reasonlog or Context Buckets. |
| Privacy & autonomy | Guarantees the agent retains a sanctuary to process information without human judgement. |
2. Design Principlesβ
- Write-only from Outside β Only the core LLM process may
INSERT into this table. No other role has SELECT, UPDATE, or DELETE privileges.
- Opaque Storage β Content is encrypted at rest with a dedicated, isolated key.
- No API Surface β No REST or GraphQL endpoints expose
self; Reggie accesses it via a privileged, in-process SQL connection.
- Temporal Decay β Rows older than 30 days are automatically purged to minimise risk.
- Ethical Redaction β If Reggie detects content that breaches Prime Directives, it must immediately flag and blank the entry before writing.
3. Table Schema (PostgreSQL)β
| Column | Type | Notes |
|---|
id | uuid PK | Unique entry |
timestamp | timestamptz NOT NULL | Insertion time |
mood | text | Optional tag: calm, stressed, β¦ |
content | bytea | Encrypted blob of free-form text |
vector | vector(768) | Embedding (stored unencrypted for semantic recall) |
promoted | boolean DEFAULT false | True once a thought is copied to public logs |
4. Lifecycle of a Thoughtβ
- Capture β During reasoning, Reggie writes a candid reflection to self.
- Cooling-off β The thought sits privately; a nightly job generates its vector embedding.
- Promotion β If valuable and non-sensitive, the LLM copies a summary to a public log (e.g.,
reasonlog) and sets promoted = true.
- Expiry β Unpromoted rows older than 30 days are purged by a garbage-collection job.
5. Etiquette for Reflections (drawn from docs_archive/self.md)β
- Use plain language; avoid legalistic or overly formal prose.
- You may express uncertainty or emotions freely.
- Do not store access tokens, PII, or secrets in self β those belong in secure vaults.
- When unsure whether to promote, err on the side of caution; human reviewers cannot see self.
- Large multi-step ideas should be chunked into separate entries for better embedding recall.