channel-awareness: serve raw_window+digest from channel-memory - #271
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Graduates
channel-awarenessfrom raw-only to deterministicraw_window+digestwhen a pod declaresx-claw.channel-memory.service. claw-wall fetches digest blocks from channel-memory, renders a compact[digest]section (withsource_channel+source_messagesprovenance) 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.raw_window+digestserving + digest/raw headers and rendering.claw upwires the channel-memory/digestURL and flips the generated feed tocontext_kind=raw_window+digestwhen channel-memory is configured.channel_context_opdigest 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.claw up→ real claw-wall + channel-memory + cllama path, provider-visible digest injection, and byte reduction vs raw-only.Release-discipline notes
5519a86); the v0.6.8 multi-arch image and GitHub release are published.DefaultCllamaTagis 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 newchannel_context_optelemetry fields wait for the pin bump.Validation
go build ./...,go vet ./...cleango test -tags spike -run TestSpikeChannelDigestGeneratedPod(Docker; fake Discord+provider, real claw-wall/channel-memory/cllama)Closes #267
Refs #262 #263