# `struo edit sources`

Explicitly publish a source transaction, or validate it without writing.

## Synopsis

```text
struo edit sources [OPTIONS]
```

## Description

Reads a JSON object with an `updates` array, bounded to 512 KiB. Each update declares a workspace-relative `destination`, an `expected` state (`absent` or `sha256` with a hex `digest`), and a `change`: `delete`, or `output` with an output-relative `path` and raw-file BLAKE3 `digest`. All paths must stay inside the workspace. Apply is recoverable, not an atomic multi-file rename. Stop other writers during apply and recovery. After an interrupted apply, recover before retrying; a failed apply does not guarantee unchanged sources.

## Options

| Flag | Value | Default | Description |
| --- | --- | --- | --- |
| `--file` | `<PATH>` |  | Proposal JSON inside the workspace. Reads stdin when omitted. |
| `--outputs` | `<DIR>` |  | Existing output directory inside the workspace, relative to its root. |
| `--check` | (flag) |  | Validate preimages and outputs without journal, lock-file, or source writes. |
