Skip to content

Agent demo: open questions with a plan to approve, recordings per question, Stop - #155

Merged
amrit110 merged 7 commits into
mainfrom
demo-open-questions
Nov 22, 2026
Merged

amrit110 merged 7 commits into
mainfrom
demo-open-questions

Conversation

@amrit110

@amrit110 amrit110 commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

The demo no longer runs one fixed brief. The audience asks any question about the two exports, approves a short plan, and the agent answers.

What changed

  • Open questions (scenarios/insurance/CONTEXT.md, ui/planner.py): the scenario's fixed setting (the analyst, the files, the team's conventions, and a line asking for uncertainty on threshold and no-effect claims) plus the asker's question. A quick model call (Sonnet 5.5, about 2 s) drafts 3 to 6 plain steps; the asker edits or removes steps and approves. The run gets context + question + approved plan; the brief's sections follow the plan. Four question cards to start from.
  • Recordings per card (make_showcase.py --question): Opus 5.5 runs of the four cards, replayed from the card in the box.
  • Stop ends a live run (its process group) or a replay and frees the slot at once; a stopped run is discarded so the recorded one comes back.
  • Brief fixes: the ranking uses the predict on the due rows, not a held-back slice of the history (it read 1,500 rows); "likely to leave"; at most six what-ifs per row; in presenter mode the question and plan get the whole stage before a run.
  • Claude model order: Opus 5.5, then Fable 5.2, then Opus 5.
  • make_showcase.py masks Claude Code's temp folders (they name the user id and home folder).

How it was checked

  • 4 more fixed-brief runs: AUC 0.776 to 0.783, same trajectory each time.
  • 6 open questions x 4 models (Fable 5.2, Sonnet 5.5, Opus 5.5, GPT-6.1 Sol via Codex), graded against the generator's true effects and the withheld outcomes. Opus 5.5 graded best (A on retention, reviews and premium at risk). All models stumbled on "how big an increase before they walk" (inventing a threshold) and on brokers vs direct (the planted effect is too weak to detect in the history); neither is a card.
  • The four card recordings against reality: 50-call list 16 left (said about 15; 12% base rate); premium at risk $21.5M (90% range $19M to $33M) vs $19.6M lost; review list only unreviewed plans, 22% left.
  • Gemini CLI no longer works for individual accounts (Google points to Antigravity).
  • In Chrome: drafting, editing and removing plan steps, a live run, Stop, replays of a run and of a card, presenter mode.
  • 113 demo unit tests (new: planning, plan validation, prompts, ask storage, per-question replays, Stop, model order, masking).

🤖 Generated with Claude Code

amrit110 and others added 6 commits November 22, 2026 16:14
The insurance scenario now takes any question about its two files. Its
CONTEXT.md holds the fixed setting (the analyst, the files, the team's
conventions); the asker brings a question, a quick model call drafts a
plan of a few plain steps (planner.py), and the asker edits and approves
it before the agent starts. The brief's sections follow the approved
plan. A run keeps its question and plan, so replays show them too.

Stop ends a live run (its whole process group) or a replay, and frees
the slot so a new run can start at once. The brief now ranks the predict
on the due rows (not a held-back slice of the history), says "likely to
leave", and shows at most six what-ifs per row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… over Opus 5

make_showcase.py --question <id> --from <run> keeps a recording per
suggested question (showcase/<scenario>/questions/<id>/<agent>), and
the page replays the one for the card in the box. In testing on open
questions, Opus 5.5 answered best, then Fable 5.2, so a key without
Opus 5.5 gets Fable 5.2 before Opus 5.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each went through the new flow: a drafted plan, then the run. Checked
against what happened: the 50-call list had 16 leavers (model said about
15, base rate 12%); premium at risk $21.5M (90% range $19-33M) against
$19.6M; the review list held only unreviewed plans, 22% of which left.
make_showcase.py also masks Claude Code's temp folders, which name the
user id and home folder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ore a run

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A visitor now writes the question and plan, so the agent can be told
  to leave a process running. When a run ends, every process of its uid
  is killed before the uid can go to another visitor's run, and a run
  counts as live (holding its uid and folder) until that cleanup is done.
- Stop no longer deletes the folder itself: the run's watcher does, in
  order (kill leftovers, delete, take ownership back), so it can't race
  the hand-back or delete a run started after it. _own skips files that
  vanish mid-walk.
- A run's question and plan come from what it was started with, not a
  file its agent can write; a showcase run's from inside it.
- The brief takes a cleaned copy of the current rows (80-105% of them)
  as the ranking, puts a predict it rejects back to idle, keeps the
  what-ifs that move a row most either way, and ignores Enter once a
  plan is up. Watch again shows after stopping a card's replay.
- make_showcase.py --from takes the ask.json inside that run only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@amrit110
amrit110 force-pushed the demo-open-questions branch from 1efdd9a to b267c96 Compare November 22, 2026 21:15
…core

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.74%. Comparing base (0280896) to head (5c96d49).

❌ Your changes status has failed because you have indirect coverage changes. Learn more about Unexpected Coverage Changes and reasons for indirect coverage changes.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #155      +/-   ##
==========================================
- Coverage   87.78%   87.74%   -0.05%     
==========================================
  Files          67       67              
  Lines        6723     6723              
==========================================
- Hits         5902     5899       -3     
- Misses        821      824       +3     
Flag Coverage Δ
integration 32.20% <ø> (ø)
unit 87.57% <ø> (-0.05%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 2 files with indirect coverage changes

Impacted file tree graph

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@amrit110
amrit110 merged commit 9b4b3ab into main Nov 22, 2026
5 checks passed
@amrit110
amrit110 deleted the demo-open-questions branch November 22, 2026 21:57
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.

2 participants