gunk-dev/the-valley
the-valley:oc-26551e1outcomedone

valley checks and pending derive in Go

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

Body

The `valley checks` verb is Bash (`cmd_checks`, `bin/valley`), and `valley pending` counts checks by running it through `VALLEY_COMMAND` (`status/pending.go`). `valley-go checks` runs the Go deriver, but only on explicit layer directories, and prints the JSON documented in `docs/architecture.md`.

Outcome: `valley checks` hands off to `valley-go checks`, which is the whole verb:
- the same flags, defaults and layer resolution as today, with named layers read as given and nothing fetched for them;
- the same report and `--names` output;
- `--json` printing the existing document, unchanged.

The usage, tests and docs for `valley-go checks` are updated to match. pending derives in-process against the tip it read, reuses one model across the heads it shows, and still shows `requires ?` when the policy does not derive. `VALLEY_COMMAND` goes if nothing else reads it.

`derive/rig_test.go` calls `cmd_checks` to dump the Bash derivation globals. It is retargeted to `derive_required`, so the differential tests keep comparing the two derivers while approve uses the Bash one.

The Go answer is adopted on the three edges `TestKnownDivergences` records. Refusals still refuse, though their wording may change. Bash's `diff_paths` coverage stays while approve uses it.

Done when `cmd_checks` hands off, pending runs no `valley checks` process, and the `valley checks` CLI tests pass without changing what they assert, apart from the recorded divergences.

Comments

  1. contributor2026-11-09 19:57 UTC
    Change valley:the-valley/wnutoquwxxquootltkpmvkzoopuwxoyz landed: v2 as b9df3fe59e29661da3848fcf694121d401caa5f6.
    
    Every change the knot links has landed and it has no active children, so klaus set it done.