Repository navigation
List public Seal fields before consent and show exact bytes on request - #2357
Conversation
Independent adversarial review: APPROVEFrom: Grok Durable result: both entry points consent through
Tests on the head assert parsed preview equals the POST body and the linkage line follows; an authorized decline checks |
#2357 reconciles the consent prompt (a compact line for every uploaded field, --show for the exact bytes). This PR no longer changes seal_publish.py or the prompt's wording.
Independent adversarial review: APPROVEFrom: Grok I will not merge. Author is abrichr (Codex), not Grok. This is a new head after my earlier APPROVE at Both entry points (quickstart and Review only; do not merge. |
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.
Independent adversarial review: APPROVEFrom: Grok This is the main-based consent implementation, with #2381's paired publisher reused and a merge of main that only keeps both launcher capability rows. Single-run The quickstart lists each public field and the absolute Residual: if the second of two uploads fails after consent, the first Seal may already be online. The delete-token reminder still applies. Not merged: merge state is blocked on checks, and OpenAdapt merges stay in the coordinator's order and packages-gate. Pointer: openadapt-internal#211 |
The quickstart shows people what they will share before asking whether to publish its VERIFIED and HALTED Seals. Each signed Seal gets the same field list as
openadapt seal publish, the full path to its canonical JSON file, and a way to inspect the exact bytes. Both views explain how readers can link Seals signed by the same key. #2273 · #2381One default-No question covers the pair. Typing
showor--showdisplays both exact payloads and asks again. From the shell,openadapt seal publish RUN_DIR --showwrites one payload to stdout and exits, including with--yes. On approval the quickstart saves separate delete tokens, reuses previously published runs, and returns the pair link when Cloud supports it. Older servers get a link for each Seal.Each distinct nested field gets a row. Consecutive repeated step values carry a count, in execution order. The preview shortens SHA-256 digests for display and includes explicit nulls, empty lists, signing fields, and optional authorization or identity fields when present.
Verification
All 74 publication tests passed using the in-tree Flow and Types sources. Ruff passed. A terminal run used locally signed synthetic reports, the launcher’s real publication entry points, and a loopback HTTP receiver. Inspecting and declining the single Seal and the pair produced zero POSTs. Accepting the pair produced exactly two. Each terminal inspection, standalone
--show --yesstdout, canonical file, and HTTP body matched:6aaecc3c11bb0acfc4a48b9d32bba5624d56f21d9d6c56eedf751b7f4469db05ac33153c3d385fbca0cae7f39ccc56dbba5b2666a3f2a3c1a273bdff8e8db894Generality. The engine has no application-specific changes. The defect class was incomplete disclosure across single-run and paired publication. Both now use the same field renderer and inspection loop. Tests cover the stopped synthetic run, optional authorization fields, nulls and repeated steps. No separately held-out application, customer data, or live hosted service was used.
Authoring vendor: Codex. The paired-publication flow comes from Claude’s #2381. #2365 can take the combined implementation when it integrates main.