Skip to content

feat(mcp): add odd_stack_reset tool - #8

Merged
using-system merged 3 commits into
mainfrom
features/stack-reset
Aug 22, 2026
Merged

feat(mcp): add odd_stack_reset tool#8
using-system merged 3 commits into
mainfrom
features/stack-reset

Conversation

@using-system

Copy link
Copy Markdown
Owner

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-run agent 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

using-system and others added 3 commits August 22, 2026 13:48
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>
@using-system
using-system merged commit cfdf9ec into main Aug 22, 2026
3 checks passed
@using-system
using-system deleted the features/stack-reset branch August 22, 2026 12:00
@github-actions github-actions Bot mentioned this pull request Aug 22, 2026
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.

1 participant