# `H.Submission`
[🔗](https://github.com/parlant/harness/blob/v0.3.0/lib/h/submission.ex#L1)

Idempotent command receipt keyed by `request_id` with deterministic payload
fingerprinting and status transitions (`queued`, `placed`, `done`, `unanswered`, `withdrawn`).

# `status`

```elixir
@type status() :: String.t()
```

# `fingerprint`

```elixir
@spec fingerprint(String.t(), pos_integer(), map()) :: String.t()
```

Computes a deterministic SHA-256 fingerprint over a command payload
(excluding `request_id`).

# `from_storage`

```elixir
@spec from_storage(map()) :: map()
```

Normalizes a stored submission map (atom or string keys after file reload).

# `mark_done`

```elixir
@spec mark_done(map(), pos_integer(), integer()) :: map()
```

Transitions a submission to `done` with its answer entry ID.

# `mark_placed`

```elixir
@spec mark_placed(map(), pos_integer(), integer()) :: map()
```

Transitions a submission to `placed` with its concrete entry ID.

# `mark_unanswered`

```elixir
@spec mark_unanswered(map(), String.t(), integer()) :: map()
```

Transitions a submission to `unanswered` with a failure reason.

# `mark_withdrawn`

```elixir
@spec mark_withdrawn(map(), integer()) :: map()
```

Transitions a queued submission to `withdrawn`.

# `new`

```elixir
@spec new(map()) :: map()
```

Constructs a new submission map for durable storage.

# `to_receipt`

```elixir
@spec to_receipt(map(), non_neg_integer()) :: map()
```

Formats a submission into a wire command receipt.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
