Invariants, non-goals and givens
7. Global invariants
- I1. headwater never changes a repository, and never acts on a release (5, 36).
- I2. The pin alone decides what is new (9).
- I3. Upstream’s words reach the asker as upstream wrote them, with no model between (11, 19, 62, 72).
- I4. A release has one identity for ever, everywhere (10).
- I5. Asking what headwater holds reaches no lookup and writes nothing (17).
- I6. Nothing headwater keeps but acknowledgements is needed to answer again (29).
8. Non-goals
- Moving a pin, building, testing or landing a change. A fixer does that, and the repository’s own gate decides whether it lands.
- What a dependency depends on in turn. headwater reports what the repository’s authors chose; scanning the whole graph for advisories belongs to a vulnerability scanner.
- Judging what a release means for the repository, or summarising its notes.
- Recording releases as anyone’s own records. A recorder does that, from what a surface hands it.
- Deciding what a release’s facts call for. A recorder’s own rules decide that, and nothing headwater answers depends on what they decided (34, 36).
- Telling anyone by itself. A surface tells, when its asker asks.
- Hiding the asker from a lookup. A lookup reached with the asker’s credentials knows who asked.
- Licences and software bills of materials.
9. Environment givens
Constraints already fixed:
- Repositories are git repositories.
- An identity is a Package URL (ECMA-427).
- The askers include coding agents working in many checkouts of one repository at once.
- Lookups are reached over the network or run on the asker’s host, with the asker’s own credentials where a lookup needs any.
- headwater is free and open source.
The rest of the stack, which a model builds on unless it says why not:
- One static binary, written in Rust, as sluice is.
- Every answer as JSON on request, the form of (35).
- Four surfaces answer from one core, each a plugin kept outside the
core as sluice keeps its plugins:
- A command line.
- A Claude Code plugin, which notes new releases at a session’s start and hands a release’s brief to flume.
- A herdr plugin with a sidebar row, a popup and a key that hands a release’s brief to flume. flume starts an agent in a worktree of its own to make the change, and submits it.
- A Boomdrive plugin holding the adapter millpond runs, built with the family’s shared crates. On each run the adapter prints, in the capture contract, one capture for each release newer than its pin, and millpond lands each one once.
- The capture the adapter prints for a release:
- its key is
release/<label>/<version>for a dependency a watch list labels, the key swancloud’s release records use, andrelease/<type>/<namespace>/<name>/<version>from its Package URL for every other; - its source is
release, and its event time the release’s date; - its raw material holds the notes whole, and what the lookups answered;
- its facts, which a recorder’s rules match, travel in the offer (weir 2, 25): the release’s facts (71), the move where the ecosystem spells one (66), and, apart under upstream’s name, the facts upstream states (72); a rule reads the release’s age from the event time (weir 5);
- it is its own excerpt: the notes, asserted by the upstream, of kind
ask, saying that the release is out and what the repository pins, and arguing with the declarations a move changes.
- its key is
- The profiles of Part C: the watch list, npm, Python, each ecosystem’s
package manager, GitHub releases, deps.dev, OSV,
.config/headwater.tomland the git directory first.