Back to skills
SKILL.md
Continuity Kernel
ASecurityOpenClaw continuity kernel for fail-open llm_input injection, deterministic runtime contracts, and shadow-mode eval receipts.
- 21 stars
- 0 votes
- 0 copies
- 0 views
- Added November 10, 2026
Security analysis
100/100Pro scans all 18 files and shows the line behind each finding
npx -y skills add modbender/skill-library-mcp --skill continuity-kernel --agent claude-codeAre you the author of Continuity Kernel?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/modbender-continuity-kernel)---
name: continuity-kernel
version: 0.2.0
description: OpenClaw continuity kernel for fail-open llm_input injection, deterministic runtime contracts, and shadow-mode eval receipts.
author: CacheForge
license: MIT
homepage: https://github.com/cacheforge-ai/cacheforge-skills
user-invocable: true
tags:
- cacheforge
- openclaw
- continuity
- memory
- hooks
- fail-open
- reliability
- evals
metadata: {"openclaw":{"emoji":"๐ง ","homepage":"https://github.com/cacheforge-ai/cacheforge-skills","requires":{"bins":["python3"]}}}
---
## When to use this skill
Use this skill when the user wants to:
- Inject bounded continuity context into `llm_input` without manual configuration
- Persist Soul Card + Mission Ticket state with deterministic runtime contracts (durable default SQLite path, zero-config)
- Keep agent behavior fail-open if continuity logic or storage has an error
- Generate reproducible runtime proof receipts for audits and reviews
- Run shadow-mode evals and append chunk-level quality snapshots
## Commands
```bash
# Run full test suite
python3 -m unittest discover -s tests/continuity-kernel -p 'test_*.py'
# Generate deterministic runtime contract proof artifact
python3 skills/continuity-kernel/generate_runtime_contract_proof.py
# SC-02 core-shadow gate (trace optional, synthetic allowed for this suite)
python3 skills/continuity-kernel/run_shadow_eval.py --layer 'Soul Card' --chunk 'SC-02' --suite core-shadow --runs 100 --append artifacts/continuity-kernel/p0-evals.json
# SC-02 perturb robustness gate (trace-backed, deterministic selector + size_only)
python3 skills/continuity-kernel/run_shadow_eval.py --layer 'Soul Card' --chunk 'SC-02' --suite memoryarena-mini-perturb --perturb-profile deletion --selector-mode deterministic --compaction-policy size_only --runs 100 --trace-jsonl tests/continuity-kernel/fixtures/shadow_eval_trace_memoryarena_mini_perturb.jsonl --append artifacts/continuity-kernel/p0-evals.json
# SC-02 perturb robustness gate (trace-backed, dual-route + attention-preserving)
python3 skills/continuity-kernel/run_shadow_eval.py --layer 'Soul Card' --chunk 'SC-02' --suite memoryarena-mini-perturb --perturb-profile deletion --selector-mode dual_route_experimental --compaction-policy attention_preserving_experimental --runs 100 --trace-jsonl tests/continuity-kernel/fixtures/shadow_eval_trace_memoryarena_mini_perturb.jsonl --append artifacts/continuity-kernel/p0-evals.json
```
## Options
`run_shadow_eval.py` options:
- `--layer TEXT` โ Active P0 layer name
- `--chunk TEXT` โ Active chunk id/name
- `--suite core-shadow|memoryarena-mini|memoryarena-mini-perturb` โ Task suite for eval scoring
- `--perturb-profile none|deletion|noise_injection|reorder` โ Deterministic perturb profile for `memoryarena-mini-perturb`
- `--selector-mode deterministic|dual_route_experimental` โ Selector mode tag for A/B eval receipts
- `--compaction-policy size_only|attention_preserving_experimental` โ Compaction policy label for dropped-field A/B eval comparison
- `--runs N` โ Number of evaluated shadow runs (default: 100)
- `--trace-jsonl PATH` โ JSONL file containing observed shadow outcomes (repeatable)
- `--trace-dir PATH` โ Directory scanned for `*.jsonl` observed shadow outcomes (repeatable)
- `--append PATH` โ JSON file path to append snapshot results
- `--allow-synthetic` โ Permit synthetic fallback for non-core suites when traces are unavailable (forced `pass=false`)
- `--artifacts-root PATH` โ Directory for summary receipts (default: `~/.cache/continuity-kernel/p0-evals`)
Runtime persistence defaults:
- `ContinuityHookAdapter()` uses `~/.local/state/continuity-kernel/continuity.db`
- Override default path with `CONTINUITY_KERNEL_DB_PATH`
- Use `:memory:` only as explicit opt-in test mode
Files in this skill
- CHANGELOG.md
- README.md
- SKILL.md
- benchmark.py
- contracts.py
- diagnostics.py
- drift.py
- drift_scoring.py
- generate_baseline_delta.py
- generate_runtime_contract_proof.py
- injector.py
- policy.py
- run_shadow_eval.py
- runtime_contract.py
- runtime_hooks.py
- service.py
- shadow_eval.py
- store.py
Attribution
Related skills
View all in tools โComments
Loading commentsโฆ
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.