Skip to content

fix(demo): make the live walkthrough actually drive goals, and record its output#174

Merged
ion-alpha-dev merged 1 commit into
mainfrom
fix/demo-live-flags
Jun 29, 2026
Merged

fix(demo): make the live walkthrough actually drive goals, and record its output#174
ion-alpha-dev merged 1 commit into
mainfrom
fix/demo-live-flags

Conversation

@ion-alpha-dev

Copy link
Copy Markdown
Collaborator

What

Fixes the live walkthrough (demo/proof-live.sh) so it actually drives goals, and records its real output in the README. The flags were placed after the goal subcommand, but Flynn's flags are global and must come before it, so --verify/--model/--data-dir were being absorbed into the objective string. Three further fixes the first real run surfaced: use an absolute path to the built binary (the goals run in a temporary working directory), choose the verification check to match the platform shell (sh on Unix, cmd on Windows, since the check runs in the sandbox shell), and capture each run id from its own output. proof.sh gets the same absolute-path fix.

Why

A demo that does not run is worse than no demo. The corrected script now shows the point end to end: a goal whose success is backed by a passing check verifies as grounded, and a goal that reports a success its independent check disagrees with verifies as not grounded, even though both records are signed and governed. The README now carries the actual captured run rather than a placeholder.

How to verify

bash -n demo/proof.sh demo/proof-live.sh parses clean. ./demo/proof.sh runs the verifier against the published vectors with no model (the five verdicts in the README). ./demo/proof-live.sh drives two real goals and verifies them; it needs a model (a stored key or a local model). The README records a real run of it.

… its output

The live script never worked: its flags were placed after the `goal` subcommand, but the flags are global and must precede the subcommand, so they were swallowed into the objective. Fix the ordering, and three more things the first real run surfaced:

- use an absolute path to the built binary, because the goals run inside a temporary working directory;
- pick the verification check to match the platform shell (`sh` on Unix, `cmd` on Windows), since the check runs in the sandbox's shell;
- capture each run id from its own output rather than parsing the run list.

Record the actual run in the README: one goal whose success is backed by a passing check verifies as grounded, and one that reports a success its independent check disagrees with verifies as not grounded. Also use the absolute binary path in `proof.sh` for the same reason.
@ion-alpha-dev ion-alpha-dev merged commit b61c3bd into main Jun 29, 2026
12 checks passed
@ion-alpha-dev ion-alpha-dev deleted the fix/demo-live-flags branch June 29, 2026 18:11
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant