Repository navigation
fix(quickstart): write receipts for encrypted runs and add --yes / CI non-interactive mode - #2703
Merged
Merged
Conversation
… non-interactive mode
abrichr
enabled auto-merge
November 25, 2026 21:22
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 25, 2026
This was referenced Nov 25, 2026
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.
Summary
Two quickstart fixes discovered while auditing
openadapt quickstart --break-itunder default encryption-at-rest:Write
receipt.jsonfor encrypted runs (openadapt/quickstart/engine.py):write_run_receipts()checked(Path(run_dir) / "report.json").is_file(), which is alwaysFalsewhen encryption-at-rest is enabled (report.jsonis stored asreport.json.enc), causingquickstartto silently skip writingreceipt.json/receipt.private.jsonon encrypted runs._artifact_is_file(Path(run_dir) / "report.json"), matchingreceipt_after_run()and the rest ofengine.py.SealedSetError("holds run-summary.json in plaintext, outside its sealed index") seen on PyPIopenadapt-flow 4.0.0was already fixed onmainin fix(flow): quickstart writes its run summary through the sealed set (fixes #2682) #2683 (4796efa43) and needs a4.0.1release to reach PyPI.Non-interactive quickstart (
openadapt/cli.py,openadapt/quickstart/__init__.py):-y/--yestoopenadapt quickstartto run straight through without pausing forPress Enteror offering the finale publish prompt.in_ci()as non-interactive by default inrun_quickstart()even when a PTY is attached, matching_quickstart_publish_offer().Tests
test_write_run_receipts_writes_receipt_for_sealed_runintests/test_quickstart_lifecycle.py(verified failing before the fix).packages/flow/tests/test_quickstart_encrypted.pyto assertrun-1/receipt.jsonexists on encrypted fresh-machine quickstart runs.test_quickstart_yes_flag_disables_interactive_and_publish_offerandtest_quickstart_defaults_non_interactive_under_ci_even_with_ttyintests/test_quickstart.py.pytestacrosstest_quickstart_lifecycle.py,test_quickstart.py,test_quickstart_command.py,test_run_summary_sealed.py, andtest_quickstart_encrypted.py: 125 passed, 2 skipped.