Skip to content

Add channel-memory SQLite adapter example - #269

Merged
mostlydev merged 1 commit into
masterfrom
codex/issue-265-channel-memory-adapter
May 22, 2026
Merged

Add channel-memory SQLite adapter example#269
mostlydev merged 1 commit into
masterfrom
codex/issue-265-channel-memory-adapter

Conversation

@mostlydev

Copy link
Copy Markdown
Owner

Summary

  • add a standalone examples/channel-memory HTTP service with SQLite-backed source-message retention
  • key source messages by source_kind/channel_id/message_id/content_hash, with explicit observed_seq, observed_at, is_current, and superseded_by edit-version tracking
  • add deterministic no-LLM digest blocks for hard_event, raw_excerpt, telemetry_count, tombstone, plus coverage-gap metadata and exact source-message lookup
  • add descriptor, Dockerfile, README, and tests covering idempotent ingest, edit identity, tombstones, forget suppression, provenance, coverage gaps, and HTTP API behavior

Closes #265
Refs #262 #263

Verification

  • go test -v -timeout 60s ./examples/channel-memory
  • go test ./...
  • go vet ./...
  • git diff --cached --check
  • docker build -f examples/channel-memory/Dockerfile -t clawdapus-channel-memory:test .
  • docker run --rm --name clawdapus-channel-memory-test -d clawdapus-channel-memory:test + docker exec clawdapus-channel-memory-test wget -qO- http://localhost:8080/health

Notes

This intentionally does not wire claw-wall push ingest, serve raw_window+digest from claw-wall, or add async LLM/cost-cap processing. Those remain in #266, #267, and #268.

@mostlydev
mostlydev marked this pull request as ready for review May 22, 2026 00:30
@mostlydev
mostlydev merged commit d6a8d55 into master May 22, 2026
4 checks passed
@mostlydev
mostlydev deleted the codex/issue-265-channel-memory-adapter branch May 22, 2026 00:30
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.

channel-memory: add SQLite source-message adapter

1 participant