F035.4: Context Visibility — What the Model Actually Sees#249
Merged
Conversation
New observability sub-spec for full LLM context window transparency: - ContextLogEntry with token breakdown by system prompt section - Full payload ring buffer (optional, bounded) - REST endpoints: /context/log, /context/diff - Telegram /context command - Dashboard Context Inspector panel - Hooks into _build_api_payload() single choke point Updated F035 umbrella spec: - Added Layer 4 description - Added F035.4 to sub-specs table - Updated sequencing rationale (F035.4 is independent, parallelizable) - Added success criterion #6 for context visibility
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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.
F035.4 — Context Visibility
Fourth layer in the F035 Observability stack. While F035.1-3 trace what the system did, F035.4 traces what the model was told.
What is in the spec
/context/log,/context/log/:id,/context/log/:id/payload,/context/diff/contextcommand + compact line in/statusArchitecture hook
Single insertion point:
_build_api_payload()inrunner.py(Issue #168 unified all LLM calls through AnthropicClient). Async DB write — zero latency impact on API calls.Key design decisions
len(text)/4for fast token estimation, API usage response for ground truthThe question it answers