Install
openclaw skills install @daniel-refahi-ikara/dr-context-pipelineDeterministic memory/context pipeline with semantic retrieval checks, compression/lint, safe fallback, and memory watchdog.
openclaw skills install @daniel-refahi-ikara/dr-context-pipelineUse this skill to standardize how an agent loads memory into its prompt for correctness.
memory/always_on.md and topic files under memory/topics/.dr-memory-foundation or an equivalent memory layout.openclaw memory status --deep --json.These commands work from anywhere because they set WORKSPACE:
export WORKSPACE=${WORKSPACE:-~/.openclaw/workspace}
cd "$WORKSPACE"
clawhub install dr-context-pipeline --version 2.1.1 --dir skills --force
python3 ./skills/dr-context-pipeline/scripts/install_pipeline.py --target "$WORKSPACE/context_pipeline"
ls -1 "$WORKSPACE/context_pipeline"
git -C "$WORKSPACE" diff -U20 AGENTS.md | cat
python3 ./skills/dr-context-pipeline/scripts/validate_pipeline.py --context-root "$WORKSPACE/context_pipeline"
python3 ./skills/dr-context-pipeline/scripts/memory_watchdog.py --freshness-minutes 240 --min-bytes 200 --require-semantic --probe-query "context pipeline embeddings semantic retrieval" --min-search-results 1
git -C "$WORKSPACE" status -sb context_pipeline AGENTS.md
echo "CONTEXT PIPELINE APPLY COMPLETE"
Paste every command's output. If any step fails or the watchdog reports GAP, stop and reply NOT EXECUTED: <reason>.
When the user asks to apply this skill, follow this order:
python3 ./skills/dr-context-pipeline/scripts/install_pipeline.py --target context_pipelinels -1 context_pipelineAGENTS.md with the Context Pipeline instructions, preserving unrelated content.python3 ./skills/dr-context-pipeline/scripts/validate_pipeline.py --context-root context_pipelinepython3 ./skills/dr-context-pipeline/scripts/memory_watchdog.py --freshness-minutes 240 --min-bytes 200 --require-semantic --probe-query "context pipeline embeddings semantic retrieval" --min-search-results 1git status -sb context_pipeline AGENTS.mdecho "CONTEXT PIPELINE APPLY COMPLETE"This flow must be idempotent. If validation or the watchdog fails, stop with NOT EXECUTED and quote the issue.
references/MEMORY_COMMIT.md.memory/now.md, memory/open-loops.md, and the relevant topic files before acting.Every task must follow references/RUNTIME_CHECKLIST.md.
Modes:
normal - compact day-to-day operationdebug - full Retrieval Bundle and Context Pack artifactsaudit - debug artifacts plus Receipt LedgerDefault to normal unless the user explicitly asks for debug, audit, tracing, receipts, or a full evidence dump.
When persistent memory is relevant, semantic or hybrid memory search is the preferred retrieval source.
The agent must record retrieval mode internally as one of:
semantichybridfile_fallbacknot_neededIf semantic memory is unavailable, not attempted, or degraded to file/keyword retrieval:
NOT EXECUTED: memory/embedding gapNormal footer shape:
Context: task type <type>; snippets <ids>; retrieval <semantic|hybrid|file_fallback|not_needed>; compression <succeeded|fallback>.
The watchdog can emit a dry-run notification payload on GAP, but this skill must not enable live delivery by itself.
Live memory/embedding alerts require a separate approval gate covering:
Until approved, the watchdog prints JSON only.
memory/always_on.md.references/router.yml.references/compressor_prompt.txt.debug and audit, persist artifacts described in references/RUNTIME_ARTIFACTS.md.references/router.ymlreferences/compressor_prompt.txtreferences/schemas/retrieval_bundle.schema.jsonreferences/schemas/context_pack.schema.jsonreferences/schemas/receipt_ledger.schema.jsonreferences/RUNTIME_ARTIFACTS.mdreferences/RUNTIME_CHECKLIST.mdreferences/SEMANTIC_MEMORY_ASSURANCE.mdreferences/tests/golden.jsonreferences/tests/harness_cases.jsonreferences/tests/anti_fabrication_cases.jsonscripts/install_pipeline.py, scripts/validate_pipeline.py, scripts/memory_watchdog.pyscripts/run_pipeline_tests.pymemory/always_on.md tiny; put detail behind retrieval.S1, S2, etc.) in Context Pack sources.references/deterministic_ids.md when deterministic snippet IDs matter.scripts/run_pipeline_tests.py after changing routing, retrieval caps, snippet IDs, runtime artifacts, derived queries, daily-log triggers, or transcript evidence.scripts/memory_watchdog.py --require-semantic before claiming semantic memory is healthy.