Skip to content

Ask the record why in the hosted demo - #79

Merged
shipmill-romamo[bot] merged 2 commits into
mainfrom
demo/ask-the-record
Oct 12, 2026
Merged

shipmill-romamo[bot] merged 2 commits into
mainfrom
demo/ask-the-record

Conversation

@romamo

@romamo romamo commented Oct 11, 2026

Copy link
Copy Markdown
Collaborator

Depends on #78. The demo pins Cloudfall at that PR's head (210e0b6) for now. Move the pin to the merge commit on main before merging.

When a run ends, the page shows a new section, "Ask the record why". The server runs cloudfall why --decisions tmp/runs/<run>/decisions --investigations tmp/runs/<run>/investigations and shows each proposal's story as Cloudfall tells it from the files. The page highlights the sentences that name the model's turn and quote its reasoning with the Token Factory ids. Reads are counted in a line and kept in the raw answer.

  • GET /api/why?run=ID: 404 for an unknown or malformed run id
  • The server docstring no longer says the recorded approval comes from "the same host"
  • Tests: the record tells which turn asked for a change; an unknown run is refused. Demo suite: 11 passed, mypy clean

Checked locally with a live Super run: "The agent nvidia/nemotron-3-super-120b-a12b … asked for it in turn 3 of investigation …", followed by its reasoning, quoted.

🤖 Generated with Claude Code

https://claude.ai/code/session_01APTdZZw8Jw9PQF4TD55wMv

When a run ends, the page asks cloudfall why about that run's decisions
and investigation and shows each proposal's story from the record: how
it was checked, the gate it waits at, and the turn of the model that
asked for it, with that turn's reasoning and Token Factory ids.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01APTdZZw8Jw9PQF4TD55wMv
@shipmill-romamo

Copy link
Copy Markdown
Contributor

#78 merged as 6b48078 and shipped in 0.7.0rc1. This PR can move its Cloudfall pin from 210e0b6 to that merge commit. The PR stays a draft and wasn't touched.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01APTdZZw8Jw9PQF4TD55wMv
@romamo
romamo marked this pull request as ready for review October 12, 2026 08:50
@shipmill-romamo
shipmill-romamo Bot merged commit d169999 into main Oct 12, 2026
1 check passed
@shipmill-romamo
shipmill-romamo Bot deleted the demo/ask-the-record branch October 12, 2026 08:55
@shipmill-romamo shipmill-romamo Bot added this to the 0.7.0 milestone Oct 19, 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