Skip to content

channel-awareness: serve raw_window+digest from channel-memory - #271

Merged
mostlydev merged 1 commit into
masterfrom
codex/issue-267-raw-window-digest-serving
May 22, 2026
Merged

channel-awareness: serve raw_window+digest from channel-memory#271
mostlydev merged 1 commit into
masterfrom
codex/issue-267-raw-window-digest-serving

Conversation

@mostlydev

Copy link
Copy Markdown
Owner

Summary

Graduates channel-awareness from raw-only to deterministic raw_window+digest when a pod declares x-claw.channel-memory.service. claw-wall fetches digest blocks from channel-memory, renders a compact [digest] section (with source_channel + source_messages provenance) ahead of a bounded [raw recent] tail, and surfaces digest status/coverage/byte telemetry. The hot path is LLM-free and fail-open — on digest error the feed degrades to the full raw window.

  • claw-wall: digest client (status normalization, fail-open fetch), raw_window+digest serving + digest/raw headers and rendering.
  • compose: claw up wires the channel-memory /digest URL and flips the generated feed to context_kind=raw_window+digest when channel-memory is configured.
  • cllama (v0.6.8): channel_context_op digest telemetry (raw-only/digest/stale/unavailable/coverage-gap) + raw-vs-digest feed-budget byte split. Header parsing stays first-line-only, so the [digest] body is never mis-parsed.
  • Generated-pod spike proves the full claw up → real claw-wall + channel-memory + cllama path, provider-visible digest injection, and byte reduction vs raw-only.

Release-discipline notes

  • Submodule moves to the released cllama v0.6.8 commit (5519a86); the v0.6.8 multi-arch image and GitHub release are published.
  • DefaultCllamaTag is intentionally left at v0.6.7 — it bumps with the next clawdapus release, at which point the new telemetry goes live at runtime. Digest injection already works on v0.6.7, so user-visible behavior lands on merge; only the new channel_context_op telemetry fields wait for the pin bump.
  • No changelog Latest badge / nav version changes.

Validation

  • go build ./..., go vet ./... clean
  • root unit suite (claw-wall / audit / pod) + cllama proxy/logging tests pass
  • go test -tags spike -run TestSpikeChannelDigestGeneratedPod (Docker; fake Discord+provider, real claw-wall/channel-memory/cllama)

Closes #267
Refs #262 #263

When a pod declares x-claw.channel-memory.service, claw up flips the
generated channel-awareness feed to context_kind=raw_window+digest.
claw-wall fetches deterministic digest blocks from channel-memory,
renders a compact [digest] section with source_channel + source_messages
provenance ahead of a bounded [raw recent] tail, and emits digest status,
raw/digest bytes, digest block count, coverage gaps, and deterministic_only
in the feed header. Digest lookup is LLM-free and fail-open: on digest
error the feed degrades to the full raw window.

cllama parses the new header tokens into channel_context_op telemetry
(raw-only/digest/stale/unavailable/coverage-gap states) and splits raw vs
digest bytes in feed-budget accounting; header parsing stays first-line
only so the [digest] body is never mis-parsed. Submodule moves to the
released cllama v0.6.8 commit. DefaultCllamaTag stays v0.6.7 and bumps
with the next clawdapus release, at which point the telemetry goes live;
digest injection itself already works on v0.6.7.

Closes #267
Refs #262 #263
@mostlydev
mostlydev merged commit 621a5fd into master May 22, 2026
1 check passed
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-awareness: serve raw_window+digest from channel-memory

1 participant