{
  "file": ".worktrees/311-ceremony-result-token/crates/spt/tests/seal_shortform_e2e.rs",
  "test": "shortform_ceremony_returns_a_bound_token_once_after_the_hook_returns",
  "setup": "Private staged real spt binary; real daemon/brain; Closed subnet with actual seed and anchored alice perch; real PTY spawned over public IPC; controller subscribed with seal_ceremony=true. Actual api state submits closed marker; controller withholds real TOTP until hook exits.",
  "assertions": [
    "Historical tokenless JSON row renders and is consumed before new results, without referring to the new Rust field.",
    "Anchored direct mint refuses with SEAL_NO_CEREMONY_SURFACE; shortform preserves existing refused outcome vocabulary.",
    "Broker opens ceremony over exact Unicode/multiline passage; no result exists before consent.",
    "Actual broker TOTP admission yields SealMinted; token is obtained only from now-signal DISPATCH_RESULTS seal=<token>.",
    "Actual api seal verify receives exact content via stdin and requires SEAL_BOUND/exit 0; Approved→Rejected requires SEAL_NOT_BOUND/nonzero.",
    "Subsequent same-session poll is empty."
  ],
  "cleanup": "RAII teardown on success/panic: bounded daemon stop, common::reap authenticated daemon and observed PTY kills, private-image population sweep covering brain and detached hook-orphaned mint, bounded IPC-worker retirement. All process calls and outer socket phase waits bounded. No helper/dependency/production changes.",
  "verification": "Not run: assignment forbids validation, Cargo/native, tests, formatters and linters. Source-grounded against public protocol and existing broker ceremony patterns; Main must perform admitted red/green execution. Intended pre-fix failure is missing seal= after confirmed real admission, not observed yet.",
  "uncertainties": [
    "Native compilation/runtime behavior remains unverified under the explicit no-validation instruction."
  ]
}