boundary-bbcr-fallback
Execute automatic BBCR (Collapse-Rebirth Correction) when knowledge boundaries are exceeded or reasoning fails.
Create a checkpoint of the current semantic tree state for recovery, branching, or milestone marking.
$ npx -y skills add qdhenry/Claude-Command-Suite --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/memory-checkpointContext preview
What this command does when you run it.
Create a checkpoint of the current semantic tree state for recovery, branching, or milestone marking.
tools: - read - write - bash - grep arguments: $CHECKPOINT_NAME
Create a checkpoint of the current semantic tree state for recovery, branching, or milestone marking.
Based on the WFGY project: https://github.com/onestardao/WFGY
1. **Prepare Checkpoint**
2. **Capture State Snapshot**
3. **Create Checkpoint Package**
{
"id": "checkpoint_uuid",
"name": "$CHECKPOINT_NAME",
"timestamp": "ISO_8601",
"tree_state": {
"tree_name": "name",
"node_count": N,
"last_node": "node_id",
"nodes": [...]
},
"context_state": {
"current_deltaS": value,
"lambda": "direction",
"e_resonance": value,
"active_module": "BBMC/BBPF/BBCR/BBAM"
},
"metrics": {
"avg_deltaS": value,
"stability": value,
"confidence": percentage
},
"metadata": {
"reason": "manual/auto/pre-risk",
"tags": ["milestone", "stable", "experimental"]
}
}4. **Store Checkpoint**
5. **Verify Checkpoint**
CHECKPOINT CREATED SUCCESSFULLY ═══════════════════════════════════════ Checkpoint Name: $CHECKPOINT_NAME Checkpoint ID: [uuid] Created: [timestamp] State Captured: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Tree: [tree_name] Nodes: [count] Position: Node [id] "[topic]" Current Metrics: • ΔS: [value] • λ: [direction] • E_resonance: [value] • Confidence: [percentage]% Checkpoint Statistics: ┌─────────────────────────────────────┐ │ Metric │ Value │ Status │ ├─────────────────────────────────────┤ │ Completeness │ 100% │ ✓ Full │ │ Size │ [size] │ Normal │ │ Compression │ [ratio]│ Applied │ │ Recovery Time │ ~[sec] │ Fast │ └─────────────────────────────────────┘ Checkpoint Contents: • Semantic nodes: [count] • Relationships: [count] • Context state: Preserved • Configuration: Saved • Boundaries: Mapped Tags Applied: [#manual] [#stable] [#milestone] Recovery Instructions: ──────────────────────────────────────── To restore this checkpoint: /memory:restore "$CHECKPOINT_NAME" To branch from this checkpoint: /semantic:tree-init "new_branch" /memory:restore "$CHECKPOINT_NAME" To compare with current: /memory:diff "$CHECKPOINT_NAME" Checkpoint Location: .wfgy/checkpoints/[tree_name]/$CHECKPOINT_NAME.json Related Checkpoints: • Previous: [previous_checkpoint] ([time_ago]) • Next: None (latest) • Similar: [similar_checkpoint]
User-initiated save point
/memory:checkpoint "before_major_change"
System-triggered saves:
Created before BBCR operations
/memory:checkpoint --type recovery
Major achievement markers
/memory:checkpoint "v1.0_complete" --milestone
/memory:checkpoint --list
/memory:checkpoint --cleanup --keep 10
/memory:checkpoint --export "checkpoint_name"
/memory:checkpoint --compare "checkpoint1" "checkpoint2"
Configure in `.wfgy/config.json`:
{
"auto_checkpoint": {
"enabled": true,
"frequency": 50,
"on_risk": true,
"risk_threshold": 0.7,
"max_checkpoints": 50,
"cleanup_age_days": 30
}
}1. **Logic Failure**: Return to last stable 2. **Exploration**: Branch for experiments 3. **Milestone**: Mark achievements 4. **Backup**: Regular safety saves 5. **Comparison**: Track progress
Checkpoints work with:
A comprehensive development toolkit designed following Anthropic's Claude Code Best Practices for AI-assisted software development.
Repo: qdhenry/Claude-Command-Suite
Execute automatic BBCR (Collapse-Rebirth Correction) when knowledge boundaries are exceeded or reasoning fails.
Analyze semantic position relative to knowledge boundaries to prevent hallucination and identify uncertainty zones.
Generate a visual heatmap of knowledge boundaries showing safe zones, risk areas, and semantic coverage.
Evaluate the current risk level and provide detailed analysis of potential hallucination or reasoning failure.
Find and construct semantic bridges to safely navigate from current position to target concept without crossing dangerous boundaries.
Takes an input prompt and returns ONLY a token-optimized version that preserves meaning while minimizing token count. Based on LLM tokenization principles:…