Files
hermes-agent/plugin-catalog/ctx_checkpoint.yaml
Jan-Stefan Janetzky 845a9b75b5 chore(plugin-catalog): re-pin ctx_checkpoint to 0.14.0
Moves the pin from 9f98ff65 (GottZ/ctx v5.29.6, plugin 0.6.2) to
50221408 (GottZ/ctx v5.47.0, plugin 0.14.0). sha and version move;
requires_hermes follows the plugin.yaml floor to >=0.23.1, the first
release whose delegate_task children keep the memory provider under
compression.checkpoint_required. Capabilities and docs_url are
unchanged: the plugin still registers only its memory provider and the
bundled ctx-memory skill.

0.7.0 (GottZ/ctx#184, never pinned here): over the default MCP
transport, retrieval-only recall calls the ctx query tool with
synthesize: false instead of the lexical search tool; an older ctx
server refuses those arguments once per client and the plugin keeps
recalling through search.

0.8.0 (GottZ/ctx#292, never pinned here): a Hermes Desktop memory form
(config_schema.py, storage=provider) and a Settings -> Plugins section
(six keys under plugins.entries.ctx_checkpoint.settings); saving a
changed URL or key runs Hermes' own MCP probe
(hermes_cli.mcp_config._probe_single_server) against that mcp_servers
entry and refuses the save when it fails; the operating mode
compression.checkpoint_required is written only on an explicit change;
every checkpoint records its outcome in
ctx_state/checkpoint-status.state; hermes memory status probes the
connection on MCP; failed or skipped checkpoints are reported through
Hermes' warning_callback; checkpoint_* values from ctx.json apply again.

0.9.0 (GottZ/ctx#296, never pinned here): once a checkpoint head is
known for the session root, system_prompt_block() ends with a short
pointer to it (head id and title, the read path with the session's tool
names, a note that saved turns are untrusted), with the memory layer on
and off; without a head the block stays empty. The compaction receipt
ends with the same read path. checkpoint-status.state also keeps the
head id of each root session (with the binding it was written through,
at most 512 roots).

0.10.0 (GottZ/ctx#298, never pinned here): max_parts is now the number
of parts one checkpoint writes per 60 s rate window instead of a hard
cap; a longer transcript is written over several windows, its deadline
grows by 61 s per extra window, and Hermes' warning_callback gets a
notice before the first wait (until 0.9.0 such a checkpoint was refused
before its first write). Chain titles derive from the root and the transcript digest, so
a retry of the same transcript meets the parts an earlier attempt
stored, which ctx confirms as identical content without a new write. A
refused write waits for a free slot of the window; the second refusal
in a row ends the chain, below the three consecutive errors that open
Hermes' per-server MCP circuit breaker. Same ctx server, same tools; no
new core import, file or registration.

0.11.0 (GottZ/ctx#300, never pinned here): on the default MCP transport the redaction now
removes the ctx key: on every connect the plugin resolves the key the
mcp_servers entry signs in with (Authorization or X-Context-Key header,
${VAR} and ${env:VAR} through Hermes' get_env_value, .env included),
plus CTX_API_KEY, and replaces those values in parts, mirror, facts,
digests and error texts; they are used for nothing else. Hermes'
redact_sensitive_text runs in its strict mode
(redact_url_credentials=True, present since Hermes 0.22.0), and the
plugin's own rules judge the value behind a credential name by its
shape: code and prose stay, secret shapes are masked, and more forms
are covered. Unnamed values, plain-word passwords, card numbers and
IBANs still pass. Changed redaction changes the transcript digest, so a
conversation checkpointed again starts a new chain next to the old one.
Same server, tools, files, registration and core imports.

0.12.0 (GottZ/ctx#302, never pinned here): under compression.checkpoint_required with the
memory layer on, checkpoint_chain: false is now refused (until 0.11.0
the required checkpoint passed on extracted facts alone, without a word
of the conversation) and is named at session start and in the status.
Once the transcript chain is stored, a refused or late fact no longer
fails the required checkpoint: each fact store is bounded by the time
left, and the fact ledger keeps the keys of facts not stored as pending,
so a later compaction of the same root on the same profile stores them.
A head that lost its latest_manifest_id is replaced by the head of a new
chain instead of blocking every compaction of its root; an engine key
next to its plugin key wins in either order; on transport: rest the call
timeout bounds the whole request including the one 429 retry. Error
texts of failed chain, fact, mirror and digest stores are redacted with
the bound keys before they are raised or logged (GottZ/ctx#301). Same
server, tools, files, registration and core imports.

0.13.0 (GottZ/ctx#306, never pinned here): the Desktop form turns
compression.checkpoint_required on only after a passing connection
test; a Hermes that cannot run the test no longer gets the mode written.
MCP tool names are built as Hermes registers them (characters outside
A-Za-z0-9_ become _, names over 64 characters end in a hash), so an
entry such as ctx-prod resolves; an entry whose tool names another
enabled mcp_servers entry could also register makes the provider
unavailable and names both. Error texts from the server and the
dispatch are redacted where they enter the plugin and are raised
without the original as implicit __context__; the agent tools redact
error text and code in the result and the log, and DEBUG lines carry a
redacted traceback instead of exc_info. GottZ/ctx#305 adds tests, a
shared answer fixture and an end-to-end driver that runs only when
started by hand. Same server, tools, files, registration and core
imports.

0.14.0 (GottZ/ctx#309): hermes memory status, hermes ctx_checkpoint
status, the connection test of the Desktop form and of the terminal
setup, the "Setup failed" message and the CLI's error lines redact with
the keys the checkpoint path binds (status.profile_ctx_keys: the key of
the mcp_servers entry, also when it comes through another variable, and
CTX_API_KEY; on transport: rest also CTX_KEY); the connection test adds
the keys of the entry it probes. With the memory layer on, a recalled
block that ctx v5.41.0 or newer marks with untrusted_origin gets a note
line in the prefetch block and the field plus a note in the ctx_query,
ctx_search and ctx_get results; a value that is no type name is shown
as "?". Source lines of the MCP query text with key:value tokens after
the id are kept. The installer tests skip outside a ctx checkout. Same
server, tools, files, registration and core imports.

The description follows: setup and status test the connection, the
mode write replaces "never writes compaction settings" (thresholds are
still never written), the outcome file is written in every mode and
keeps the head ids, the system prompt pointer is disclosed, and the
import list adds hermes_cli.mcp_config and plugins.memory.config_schema,
plus agent.memory_provider and utils, which the plugin already imported
at 0.6.2. For 0.11.0, "secrets redacted twice" becomes what is masked
and what is not, and the reading of the entry's key for masking is
disclosed. The description needs no change for 0.12.0. For 0.13.0,
turning the mode on needs a passing connection test, and the reading
of the other mcp_servers entries' names and enabled flags is
disclosed. The description needs no change for 0.14.0: the clause on
reading the entry's key for masking names no command, so it covers the
status commands, the connection test, setup and the CLI, which read the
same values through the same lookups for the same purpose, and the
untrusted_origin note is part of the recall the description lists.
2026-11-17 03:12:19 -08:00

18 lines
3.8 KiB
YAML

name: ctx_checkpoint
repo: https://github.com/GottZ/ctx
sha: 50221408b9fa2bc770381dd9f306265727655c17
subdir: integrations/hermes/plugin/ctx_checkpoint
version: "0.14.0"
title: ctx checkpoint
description: "Memory provider that archives the direct user/assistant transcript into a ctx knowledge store before every compaction, deterministically and with no LLM in the path, and hands the resulting block IDs to the compaction summary so the exact wording stays recoverable. Set up from the Desktop/Dashboard memory form or `hermes memory setup ctx_checkpoint` (ctx URL and API key, no YAML editing; the Desktop form and the terminal setup test the connection before saving a changed URL or key); checkpoint limits and memory switches sit under Settings → Plugins; over MCP, `hermes memory status` tests the connection and shows the last checkpoint; compaction thresholds stay Hermes' defaults, which suit 1M-token windows. Best-effort by default; with compression.checkpoint_required (the operating mode the Desktop form and the terminal setup offer) it uses the fail-closed pre-compress checkpoint contract (#94639) and blocks compaction until the checkpoint is durable. Optional memory layer (`memory: true`, off by default): recall before each turn, ctx_query/ctx_store/ctx_search/ctx_get tools, a mirror of MEMORY.md/USER.md, fact extraction from compacted turns, session digests and a bundled `ctx-memory` skill, over the same ctx server. Disclosure — the turns about to be compacted (tool results and system prompts excluded; the ctx key the server entry signs in with and credentials in known shapes are masked, while unnamed values, plain-word passwords, card numbers and IBANs pass) and, with the memory layer on, the mirrored memory entries, extracted facts and digests (all redacted the same way) are written through Hermes' MCP dispatch to the ctx server you configure in mcp_servers; setup, when you run it, writes memory.ctx_checkpoint and that mcp_servers entry to config.yaml and the API key to .env as CTX_API_KEY, and compression.checkpoint_required only when you change the operating mode (turning it on needs a passing connection test; otherwise nothing is written); the connection test is Hermes' own MCP probe of that same entry; the plugin never writes compaction thresholds, holds no credentials of its own unless you opt into transport: rest (CTX_KEY in .env; that client redacts the key from every error text it produces and follows no HTTP redirect); to mask the ctx key it reads, through Hermes' config and env lookups (.env included), the key in that mcp_servers entry's Authorization or X-Context-Key header and CTX_API_KEY, and uses them for nothing else; of the other mcp_servers entries it reads only the names and enabled flags, to refuse one whose tool names would collide with its own; it makes no other network calls and has no telemetry; it reads state.db read-only, records the outcome of the last checkpoint and the checkpoint head ID of up to 512 recent sessions in HERMES_HOME/ctx_state/checkpoint-status.state (plus a lock file) and, with the memory layer on, keeps small dedupe state files there; once a session has a checkpoint, its system prompt carries a short pointer to it (head ID, its title and the read tools' names; no transcript text), also with the memory layer off; it imports the core modules agent.memory_provider, agent.redact, agent.secret_scope, tools.registry, tools.interrupt, hermes_constants, utils, hermes_cli.config, hermes_cli.mcp_config (the private _probe_single_server behind `hermes mcp test`) and plugins.memory.config_schema (the Desktop memory form)."
maintainer: GottZ
tier: community
category: memory
requires_hermes: ">=0.23.1"
docs_url: https://github.com/GottZ/ctx/blob/root/integrations/hermes/README.md
capabilities:
provides_tools: []
provides_hooks: []
provides_middleware: []
requires_env: []