Expand description
CELLSTATE PCP - Persistent Context Protocol
Provides validation, checkpointing, and harm reduction for AI agent memory. Implements the PCP protocol for context integrity, contradiction detection, and recovery mechanisms.
Structs§
- Anti
Sprawl Config - Configuration for anti-sprawl measures.
- Checkpoint
State - State captured in a checkpoint.
- Context
DagConfig - Configuration for context DAG management.
- Contradiction
- Detected contradiction between artifacts.
- Decision
Recall - Recall of a decision from past interactions.
- Dosage
Config - Configuration for dosage limits (harm reduction).
- Dosage
Result - Result of applying dosage limits.
- Grounding
Config - Configuration for grounding and fact-checking.
- Lint
Issue - A lint issue found during artifact linting.
- Lint
Result - Result of artifact linting.
- Linting
Config - Configuration for artifact linting.
- Markdown
Semantic Issue - Semantic lint issue for markdown/text content.
- Memory
Commit - Memory commit - versioned record of an interaction. Enables: “Last time we decided X because Y” Every interaction creates a versioned commit for recall, rollback, audit, and rehydration.
- Memory
Stats - Memory statistics for analytics.
- PCPCheckpoint
- A PCP checkpoint for recovery.
- PCPConfig
- Master PCP configuration.
- PCPRuntime
- PCP Runtime - the main validation and checkpoint engine.
- Recall
Service - Service for recalling past interactions and decisions. Provides query methods for memory commits.
- Recovery
Config - Configuration for recovery and checkpointing.
- Recovery
Result - Result of recovery operation.
- Scope
History - History of a scope’s interactions.
- Staleness
Config - Configuration for staleness detection.
- Validation
Issue - A validation issue found during context validation.
- Validation
Result - Result of context validation.
Enums§
- Issue
Type - Type of validation issue.
- Lint
Issue Type - Type of lint issue for artifacts.
- Prune
Strategy - Strategy for pruning context DAG.
- Recovery
Frequency - Frequency for recovery checkpoints.
- Severity
- Severity of a validation issue.
Constants§
- DECISION_
KEYWORDS 🔒 - Decision keywords to look for in responses.
Functions§
- contains_
decision_ 🔒keywords - Check if a response contains decision keywords.
- extract_
decision - Extract decision summary from response. Looks for recommendation patterns.
- extract_
first_ 🔒sentence - Extract the first sentence from text (Unicode-safe).
- is_
markdown_ 🔒separator_ row - lint_
markdown_ semantics - Lint markdown/text for semantic hazards that commonly break context tooling.
- markdown_
table_ 🔒column_ count - markdown_
table_ 🔒separator_ regex - reserved_
at_ 🔒regex