gunk-dev/the-valley
the-valley:oc-1fb4a99outcomedone

approve runs in Go

State
done
Created
2026-11-09 by contributor
Blocked by
Blocks
Changes
  • valley:the-valley/yrwosnnysvmvkpxunywqowrnmoylnvpn

Body

`valley approve` and review's `[a]pprove` run in `bin/valley` as Bash, about 1,300 lines. That covers binding the head, reading the policy at main, finding origin's evidence for each required check, building missing `nix` checks with `--build-here` through `attest run`, pushing the integration request, the verdict line, and telemetry. Approve is the last caller of the Bash policy deriver.

Outcome: `valley approve` and `[a]pprove` call one Go implementation in the `valley-go` helper. It derives with the `derive` package and keeps every behaviour the CLI shows today: its output, exit statuses, refusals, prompts and telemetry records. The Bash deriver is deleted, which closes bd-11e0e4d.

Done when `cmd_approve`, the approve section and the policy-deriver sections are gone from `bin/valley`, `bin/valley` passes `approve` to the Go helper, and the existing approve and review CLI tests pass without changing what they assert.

Comments

  1. contributor2026-11-09 21:04 UTC
    Change valley:the-valley/yrwosnnysvmvkpxunywqowrnmoylnvpn landed: v2 as d2a8f94f1870f5853410e31a125963009f6576ce.
    
    Every change the knot links has landed and it has no active children, so klaus set it done.