gunk-dev/the-valley
the-valley:oc-6ea0f4boutcomein-progress

klaus's source lives in this repository as flow/

State
in progress
Created
2026-11-17 by contributor
Progress
1 of 1 done
Children
Changes
  • valley:the-valley/ktzzuoupnzwzyyskrvlursvokoxtrnlv

Body

klaus, the client that launches and follows agent runs, moves into this repository so its changes go through the same review and checks as the rest.

Shape, agreed with the operator:

- A `klaus/` directory holding one Go module, imported as a snapshot of the source's main; the earlier history stays where it was.
- The flake exports the klaus package; `valley self-update`-style installs and consumers take it from here.
- klaus's tests are checks in policy/project, owed by changes that touch `klaus/`: build, unit, vet, and the tmux end-to-end suite run inside the build sandbox.
- Dependencies: `klaus/` is the one module that may import third-party modules (a terminal UI library, a command-line library, a file watcher). The house rules state the exception and its bound: nothing a host runs with authority imports from `klaus/`. Removing each dependency is a knot of its own. Any wider relaxation of the standard-library rule is a separate, deliberate decision.
- klaus's markdown comes under the repository's prose rules and the prose-format check.
- Open issues from the earlier tracker become knots after a pass that removes host and person names, since this repository's knots are readable by anyone.

Before the import: the source's tests run hermetically in a nix build.

Comments

  1. contributor2026-11-17 01:32 UTC
    Naming, from the operator: the module is `flow`, and the long-term form is a subcommand of the client, as in `valley flow new`.
    
    - The import lands as `flow/` with module path `the-valley/flow`, not `klaus/`. The module path changes at import in any case, so the lasting name costs nothing extra then. Read `flow/` wherever the body says `klaus/`.
    - The `klaus` binary and its on-disk and wire names (state directory, config file, environment variables, commit trailers, data ref) keep their names at import. Renaming them is a migration of live state and a knot of its own.
    - `valley flow` and the dependency exception: the `valley` binary is standard-library only and signs approvals, so it does not link `flow/` while that module has third-party dependencies. The first form is dispatch to a separate executable (`valley flow …` runs `valley-flow`, as git runs `git-foo`). Linking it in waits until the dependencies are gone or the rule is deliberately relaxed for the client.