Skip to content

CNS-first plugin pack: memory provider, context engine, async delivery - #1

Closed
ifyi wants to merge 1 commit into
fable-spikefrom
fable/cns-plugin-pack
Closed

CNS-first plugin pack: memory provider, context engine, async delivery#1
ifyi wants to merge 1 commit into
fable-spikefrom
fable/cns-plugin-pack

Conversation

@ifyi

@ifyi ifyi commented Jul 7, 2026

Copy link
Copy Markdown

The Hermes-side half of the CNS-first integration (CNS issues NousResearch#59, NousResearch#60, NousResearch#62, NousResearch#63, NousResearch#65 — fable label; status comments on each). Additive only: no core Hermes files are modified, keeping this fork at zero effective divergence from upstream.

Contents

  • plugins/memory/cns/ — CNS as durable memory: compact orientation rollup instead of MEMORY.md/USER.md, on-demand recall, transcript sync, per-turn CNS notice deltas via the prefetch channel (system prompt never rebuilt), graceful degradation.
  • plugins/context_engine/cns/ — delegates compression to the builtin compressor; banks thread_state_update into CNS before every compaction and at session end.
  • plugins/memory/cns/notice_pump.py — cron no_agent + deliver: origin script: zero-token delivery of results/failures to the originating room, self-acknowledging.
  • docs/cns/ — assessment, architecture, phased plan, CNS-first config example (platform_toolsets diet, mcp_servers.cns → companion :8012, governed skills pointer), and the Phase 7 evidence memo (extraction not triggered).

Verification

  • 34 plugin tests pass with a mocked CNS transport (uv run --no-project --with pytest --with pyyaml python -m pytest tests/plugins/memory/cns tests/plugins/context_engine/cns).
  • Live end-to-end (persona image, room delivery, token metrics) needs the configured runtime — checklist in docs/cns/phase-5-async-work.md.

Companion piece: InformaticsFYI/cns#66 (CNS-side profiles, skill registry, notice tools).

🤖 Generated with Claude Code

…y, docs

Additive-only integration (zero core Hermes files modified), per the
guardrails in the CNS repo (docs/cns-hermes-integration/guardrails.md).

- plugins/memory/cns: CNS as the durable memory substrate — compact
  context_packet rollup replaces MEMORY.md/USER.md injection, on-demand
  recall, transcript_add turn sync, builtin-write mirroring, and per-turn
  CNS notice deltas through the prefetch channel (failures marked [FAILED]).
  Degrades to logged no-ops when CNS is unreachable.
- plugins/context_engine/cns: wraps the builtin ContextCompressor (lazy
  construction on update_model) and banks thread_state_update into CNS
  before every compression and at session end — compaction stops being
  lossy. Deepcopy-safe for per-agent cloning.
- plugins/memory/cns/notice_pump.py: cron no_agent script delivering CNS
  results/failures to the originating room with zero LLM tokens; acks what
  it prints.
- docs/cns/: assessment, architecture, phased plan, CNS-first config
  example, toolset-diet + async-work guides, and the Phase 7 evidence memo
  (extraction NOT triggered).

34 plugin tests (mocked CNS transport) pass.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@ifyi

ifyi commented Jul 7, 2026

Copy link
Copy Markdown
Author

Superseded by design decision: the plugin pack now lives in the CNS project under integrations/hermes/ (see InformaticsFYI/cns#66) and installs into a Hermes checkout/home via agent hermes install. This fork returns to a pristine upstream mirror — the fable-spike and work branches here are being removed.

@ifyi ifyi closed this Jul 7, 2026
@ifyi
ifyi deleted the fable/cns-plugin-pack branch July 7, 2026 02:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant