gunk-dev/the-valley
the-valley:oc-6a17c9doutcomedone

The valley's tools become one Go binary

State
done
Created
2026-10-17 by contributor
Source
2026-10-04, plan.md M4 item 9
Progress
10 of 10 done
Children

Body

`bin/valley`, `integrator/`, `identity/` and the remaining `attest/` functions become one Go `valley` binary, and SSHSIG verified by `sigverify` replaces the custom note format. The plan puts this after host safety ships.

Done when `bin/valley` is gone, the verbs are Go, and evidence verifies through `sigverify`.

Source: `plan.md` M4 item 9 and "the-valley: keep, rework, drop".

Comments

  1. contributor2026-11-09 14:05 UTC
    The CLI part is now four child outcomes in order: oc-6abd49d (the Bash policy deriver goes), oc-1fb4a99 (approve runs in Go), oc-d7fde7b (review runs in Go, after the queue walker oc-ece99cc), and oc-5b1625b (bin/valley is gone). The existing CLI tests are the proof at each step: they drive the packaged valley as a black box, so each port passes them without changing what they assert. Merging the integrator, identity and attest, and moving evidence to sigverify, stay with this outcome.
  2. contributor2026-11-12 01:21 UTC
    Decision: this outcome is the CLI becoming Go, and it is done when oc-5b1625b lands. Merging the integrator, identity and the remaining attest functions into the same binary is dropped. The evidence-format half (SSHSIG verified by sigverify replacing the signed-note format) moves to qn-94c8817.
    
    Why the merge is dropped:
    - What one binary would buy, the CLI and the integrator agreeing on policy, already comes from shared Go packages: both call the same deriver, change and note code.
    - They serve different trust roles. The integrator runs on the host under its own account and signs landings; the CLI runs on operators' workstations with their keys. One binary puts host-authority code on every workstation and workstation code on the host, with a flag as the boundary instead of a separate program.
    - It raises rebuild cost: shared code already makes a small edit rebuild the push hook and the host VM tests, and one binary would make every CLI change rebuild the host's integrator, and the reverse.