Skip to content
Back to skills

Continuity Kernel

ASecurity

OpenClaw 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
toolspythonbashsqlgit

Security analysis

A100/100

Pro scans all 18 files and shows the line behind each finding

Scanned November 10, 2026

npx -y skills add modbender/skill-library-mcp --skill continuity-kernel --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Continuity Kernel?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Continuity Kernel
[![Security: A โ€” Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-continuity-kernel/badge)](https://www.skillsdirectory.com/skills/modbender-continuity-kernel)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.md4.8 KB
  • README.md4.7 KB
  • SKILL.md3.8 KB
  • benchmark.py5.3 KB
  • contracts.py446 B
  • diagnostics.py2.1 KB
  • drift.py7 KB
  • drift_scoring.py7.8 KB
  • generate_baseline_delta.py2.7 KB
  • generate_runtime_contract_proof.py5.1 KB
  • injector.py22.5 KB
  • policy.py2.3 KB
  • run_shadow_eval.py4.4 KB
  • runtime_contract.py5.6 KB
  • runtime_hooks.py3.6 KB
  • service.py8.6 KB
  • shadow_eval.py53.5 KB
  • store.py13.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools โ†’

Comments

Loading commentsโ€ฆ

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.