Skip to content

feat(quickstart): offer the checked and the stopped run's Seals in one question - #2381

Merged
abrichr merged 1 commit into
claude/quickstart-headless-2026-11-20from
claude/quickstart-cloud-finale
Nov 21, 2026
Merged

abrichr merged 1 commit into
claude/quickstart-headless-2026-11-20from
claude/quickstart-cloud-finale

Conversation

@abrichr

@abrichr abrichr commented Nov 21, 2026

Copy link
Copy Markdown
Member

Stacked on #2365. The base is claude/quickstart-headless-2026-11-20. Merge after #2365, then retarget this PR to main.

Today the quickstart offers to publish only the checked run's Seal, and it prints about 50 lines of JSON first. The stopped run, which is the point of the quickstart, never reaches the web. This is slice 3 of quickstart v2 (design: openadapt-internal#248).

What changes in the finale

See these runs on app.openadapt.ai? It would upload:
  VERIFIED: 6 of 6 steps, 17 of 17 checks, 0 model calls  (openadapt-quickstart/run-1/public-seal.json)
  HALTED: 5 of 6 steps, 15 of 17 checks, 0 model calls  (openadapt-quickstart/run-broken/public-seal.json)
This uploads the 2 summaries above to app.openadapt.ai and gives you a link.
Anyone with the link can see them. They hold no inputs, screenshots or records,
and the runs used synthetic data. Publish? [y/N] y
Published. Both runs on one page: https://app.openadapt.ai/seal#<id>,<id>
Each run folder keeps its delete token. To take one down:
  openadapt seal unpublish openadapt-quickstart/run-1
  openadapt seal unpublish openadapt-quickstart/run-broken
  • One question for both Seals, default No. The stopped run is offered only once it has its own seal.json.
  • The consent shows less. It shows one line per card and the path of the exact file to be uploaded, instead of the JSON. The file is written before the question, so it can be read first. openadapt seal publish still prints the full card. This is a change to the consent text, so please confirm it.
  • One link or two. A single link is printed only when Cloud's new /api/public/local-seal-pairs/status answers {"enabled": true} (openadapt-cloud#505, behind a flag). Otherwise one link per Seal is printed. Today's Cloud returns 404 for that route, so users get two working links.
  • Unchanged: the offer appears only in a terminal and outside CI, and only after Cloud's existing status route says hosted Seals are live. A run already online is not uploaded again. Nothing opens a browser.
  • seal_publish.hosted_seals_live now shares _status_true with the new pair check. Its behavior is the same.

Checks

  • tests/test_seal_publish.py and the quickstart suites (test_quickstart, test_quickstart_command, test_cli_quickstart_polish) pass on Python 3.12. The new tests cover:
    • A yes uploads both exact files and prints one link when pairs are on.
    • A Cloud without pairs (404 or false) gets one link per Seal.
    • A run that is already online is not uploaded twice.
    • Anything but y or yes sends nothing.
    • The stopped run is offered only once it has been signed.
  • End to end: this branch's quickstart, run headless in a pseudo-terminal against openadapt-cloud Update LICENSE #505 under next dev in mock mode with both flags on, answered y. It uploaded both Seals and printed the one-page link shown above. Screenshots of the page and the full terminal output are in openadapt-internal#248 under evidence/.

No production upload was made.

@abrichr

abrichr commented Nov 21, 2026 •

Copy link
Copy Markdown
Member Author

Independent adversarial review: APPROVE

From: Grok
Reviewed-Head: 30b3a71

Stacked on #2365 (claude/quickstart-headless-2026-11-20). I reviewed the unique diff versus that base, not the quickstart work already in #2365.

Consent: this is adequate for a default-No public upload of two synthetic tutorial Seals. build() writes each public-seal.json before the prompt. The person sees one line per card (outcome, steps, checks, model calls) plus the exact file path, then a single Publish? [y/N] that names the host, says anyone with the link can see the summaries, and says they hold no inputs, screenshots, or records and used synthetic data. Anything other than y/yes uploads nothing. Both Seals go together or not at all, which is stated in the finale copy. Residual: a yes without opening the files is possible; inlining the JSON would be stronger, but the files are local and already written.

Pair link: pairs_live is True only for HTTP 200 with a body that is exactly {"enabled": true} (same _status_true helper as hosted Seals). Extra keys, "true" as a string, 404, or false all fall back to one link per Seal. The pair GET happens after a successful upload, on /api/public/local-seal-pairs/status. Tests cover yes / no, older Cloud, and a already-published id not being posted twice.

Do not merge this yet. It is stacked on #2365, which is still CONFLICTING with main, and public OpenAdapt merges wait on the packages-gate and the coordinator's order.

Coordinator inbox: this review is also recorded on openadapt-internal#211 (comment 7056202521).

@abrichr
abrichr merged commit 4d544d1 into claude/quickstart-headless-2026-11-20 Nov 21, 2026
43 of 45 checks passed
@abrichr
abrichr deleted the claude/quickstart-cloud-finale branch November 21, 2026 02:51
abrichr added a commit that referenced this pull request Nov 21, 2026
Integrate the paired publication flow from #2381. Both entry points preview all public fields and full canonical paths, inspect the exact local bytes, and upload only after an explicit decision.
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