Repository navigation
Hosted demo: a live Nemotron on the recorded incident - #40
Merged
Merged
Conversation
demo/ is a small Starlette app. A visitor picks one of four Nemotron models; the server runs agent investigate --replay against the disk-full incident and streams its events to the page. Approving the fix plays back the approval recorded on a real host; approving the wipe is refused. Limits per visitor, per run and per day. The example's logrotate fix is idempotent now, so its verify run changes nothing and the recorded approval verifies. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01APTdZZw8Jw9PQF4TD55wMv
The page now shows what actually came back: the command the server ran, each turn's reasoning, tool calls as the model wrote them, response and Nebius request ids, time and tokens, the full Ansible output the model saw, which recorded run answered each call (file, time, sha256), the raw approval logs, and a download of the CLI's exact stream. CLI lines pass through untouched; the demo's own lines carry _demo. Reads treaty rc38's stream; pinned to the trace commit (#45). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01APTdZZw8Jw9PQF4TD55wMv
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01APTdZZw8Jw9PQF4TD55wMv
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01APTdZZw8Jw9PQF4TD55wMv
romamo
marked this pull request as ready for review
October 9, 2026 19:20
filecmp.dircmp is shallow by default: two files of the same size and mtime count as equal without being read, so a same-length edit to the copy could pass the drift test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The budget counted only the stream's last event. A visitor who closes the page mid-run kills the CLI before that event, so the turns the model had already answered never counted and abandoned runs were free. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Review: merge after two small fixes, pushed as 930d891 on top of 9d3d9d0. The root checks and the Demo step pass locally (root pytest 517, demo pytest 9). Fixed, each with a test that fails on the old code:
Checked and clean: the model comes from a fixed list; the API key comes from the environment and never reaches argv, a Left as follow-ups, none blocking a demo with a daily token cap:
|
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.
Pinned to main (9e51dc5) now that #39 (stream) and #45 (raw trace) are merged; rebased on main. Deployed to h5 as https://demo.cloudfall.dev from an earlier commit of this branch (romamo/myfleet#7); redeploy from main once this lands.
What
demo/: Starlette app for demo.cloudfall.dev. A visitor picks one of four Nemotron models;/api/runsrunscloudfall agent investigate --replayon the disk-full incident and forwards the CLI's stream line by line, untouched, adding only_demolines (the exact command, and which recorded run answered each call: file, time, sha256);/api/approveplays back the recorded approval of the fix with its raw execution and verify logs, refuses the destructive wipe, and says when no approval was recordedreasoning_content, the tool calls as the model wrote them, response and Nebiusx-request-id, time and tokens; the full Ansible output the model saw; the record; a download of the exact NDJSON streamdemo/incident/copiesexamples/disk-full-incident(the demo deploys from its own directory); a test fails when it driftsexamples/disk-full-incident/recordings/disk-full-approved: a real approved and verified fix from a fresh cx23, no addressesshop-logrotateis idempotent now (the first recorded approval came backNOT_VERIFIED, correctly)demo/Checks
demo: 7 passed, mypy strict clean; ruff clean🤖 Generated with Claude Code
https://claude.ai/code/session_01APTdZZw8Jw9PQF4TD55wMv