gunk-dev/the-valley
the-valley:oc-e7c3cfcoutcomeopen

A change carries a title and description that review shows

State
free to start
Created
2026-10-26 by contributor
Source
2026-10-26, the operator
Blocked by
Blocks

Body

The operator, 2026-10-26: when reviewing a change, its commit messages alone often don't say enough about what it does.

A change record holds, per version, only a title, taken from the head commit's subject (`change/record.go`, `valley-change-record/v1`). Nothing describes the change as a whole. A change of several commits is titled after whichever commit is last, which may be a small follow-up or an empty commit that records a decision.

Proposal:
- Each version carries an optional description (Markdown, strict UTF-8, size-capped) and may set its own title rather than take the head commit's subject. Both are per version, because a later version can change what the change does; a version that sets neither keeps the previous version's.
- `valley ready` takes them (for example `--title` and `--description-file`, or `--description -` for stdin).
- `valley review` shows the active version's title and description above the log and diff, beside the knots the change does. `valley changes --json` and `valley pending --json` carry them, and the web UI renders the description escaped.
- The host hook checks them within the record limits.
- Design points: whether they live in `record.json` or in a file beside it in the record commit, and how the strict record format admits new fields (a format version, or a rollout in which the hook accepts the fields before any client writes them).
- A description becomes public with its project, like the rest of the record.

Done when an author can give a version a title and a description when readying it, review shows them, and the JSON listings carry them.

Source: 2026-10-26, the operator.

Comments

  1. contributor2026-11-09 19:32 UTC
    Deferred, decided 2026-11-09. The description stays on the change, as the counterpart of a pull request's description, not in a commit message. Two things wait first:
    
    - **Review runs in Go (oc-d7fde7b).** The display work touches review, `valley ready`, the JSON listings and the web view. Building it before review moves out of Bash would write the review part twice.
    - **Where the text is stored is decided with a content-addressed blob store,** if the design work after M8 adopts one (oc-d1eff79 holds the blob-store sketch; qn-94c8817 opens that design work).
      - **Inline:** an inline field in the change record is still the fallback. It is capped by the record's 64 KiB, shared across up to 1,000 versions. Because readers refuse unknown fields, it needs a rollout in which readers accept the field before any writer writes it.
      - **Moving later:** a later move from inline text to a digest is mechanical, because every version rewrites the record.
    
    Until then, review shows each commit's full message instead of its subject line alone, so the head commit's message, which is what lands, stands in for a description.