feat(mcp): add odd_stack_reset tool - #8
Merged
Conversation
Wipes all stored telemetry by destroying the volumeless container and starting a fresh one - the contract the observe agent needs to start a run on a clean slate instead of window arithmetic. Integration test proves the wipe end to end: OTLP-injected log visible in Loki, odd_stack_reset, log gone, stack ready. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Post-reset canary log proves the OTLP->Loki pipeline is live before asserting emptiness (non-overlapping markers so the substring filter cannot count the canary); exclusive-end off-by-one fixed; docker rm gains --volumes so wipe semantics survive future image VOLUME declarations; down documented as destructive. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Merged
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.
Adds a fourth MCP tool:
odd_stack_reset— wipe all stored telemetry (traces, metrics, logs, profiles) and return a fresh, ready stack.Why: lets the
observe-local-runagent start a driven run on a clean slate — everything the stack then contains IS the run, replacing fragile window arithmetic. The wipe is guaranteed by construction: the stack runs without volumes, so destroying the container erases every signal; a new container starts from the image (no re-pull, ~20-40 s).Proof: new integration test
test-stack-reset.sh(100% MCP client + OTLP): inject a log via OTLP HTTP → visible in Loki through the Grafana proxy →odd_stack_reset→ log gone → stack ready. Validated locally before push.Also: README tool table, drive-mode guidance in the observe agent (with the all-services wipe warning).
🤖 Generated with Claude Code