Repository navigation
Play a recorded incident back to a live model with --replay - #34
Merged
Merged
Conversation
agent investigate --replay DIR answers each check-mode call from the decisions of a real run with the same playbook, target and inputs, so the model is live and no host is touched; validation, records and the gate are unchanged. A call the recording does not hold fails and says so. The disk-full incident is recorded in the example. A failed check now hands the model the end of its output, not only the exit code. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01APTdZZw8Jw9PQF4TD55wMv
A --replay path that was not a directory, or held no decision record, loaded as an empty recording: the model then spent its turns on calls that all failed "holds no run". It now exits PRECONDITION (recording_empty) before the model is asked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Review: MERGE AFTER SMALL FIX (fix pushed as ac10916) Checked
Fixed (ac10916)
Follow-up, not blocking
Checks (locally, on the PR head and on the head merged with main): |
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.
What
agent investigate --replay DIR: DIR is a decisions directory from a run on real hosts. Each check-mode call answers with the output and per-host results recorded for the same playbook,--limitand--extra-vars, through the existingCheckRunnerseam, so validation, decision records and the gate are exactly the live ones. A call the recording does not hold fails with "holds no run of ..."; nothing is invented. The record names the recording underspec.replay(schema updated)No space left on device)examples/disk-full-incident/recordings/disk-full: 10 recorded call variants from the evaluation on the broken cx23 (84K, no addresses or secrets)Why
The hosted hackathon demo runs a live Nemotron against this recording instead of a real host, and the same mechanism lets anyone try an agent on a real incident repeatedly, as a regression test.
Proven
Against the recording with live Nemotron on Token Factory, no host: Super found
/var/log/shopand proposedshop-logrotatethenpostgresql-restartin 5 turns; Lightning proposed the wipe and ran out of turns, as on the real host.Checks
uv run pytest: 393 passed (new CLI test: a replay answers from the recording while the playbook would fail if run, and an unrecorded call fails)uv run ruff check .,uv run mypy: clean🤖 Generated with Claude Code
https://claude.ai/code/session_01APTdZZw8Jw9PQF4TD55wMv