gunk-dev/the-valley
the-valley:oc-5e321e0outcomeopen

klaus's carried-over backlog is reviewed and re-homed

State
free to start
Created
2026-11-18 by contributor
Progress
1 of 28 done
Children

Body

klaus is the client that launches and follows agent runs; its source is this repository's flow/ module. Its orchestration is expected to move into the valley's own architecture over time, so this knot is a holding place, not a roadmap: it collects the bugs, outcomes and ideas carried over from klaus's earlier tracker so they can be reviewed, and each is re-homed under the part of the plan it serves, merged or dropped as that review reaches it.

Done when no child remains here.

Comments

  1. contributor2026-11-18 23:23 UTC
    Issues from the earlier tracker that were not carried over, with the reason for each:
    
    - _pre-review fails on a diff containing a non-UTF-8 file: Fixed: flow/internal/git/text.go (TextDiff) replaces non-UTF-8 files in a diff before review, and review.go applies it.
    - CI skips the real-valley e2e tests: no valley binary is installed: Fixed by the move: the flow-e2e check runs the suite with a valley binary in its inputs, and KLAUS_TEST_TOOLS=required turns a missing tool into a failure. Whether the check sets that variable was not confirmed.
    - A --pr run that stops at the session limit loses its uncommitted work: GitHub-only: salvage on --pr runs; valley --change runs already salvage.
    - Executor abstraction: pluggable (harness, model, auth) bundles per launch: Largely done: flow/internal/backend selects claude, codex or agy per launch with --backend, --model and --effort. The remaining thought (auth locality constraining placement) belongs to the server-side runner design, not a klaus knot.
    - _finalize scrapes any PR URL from the transcript and can misattribute the run to a foreign PR: GitHub-only: PR URL scraping from transcripts.
    - Event delivery: poll_fallback naming/semantics are misleading; add an explicit delivery mode: GitHub-only: webhook versus polling configuration for the PR pipeline.
    - Auto-verify/configure webhook when adding a project (repo or org level); regression of #168: GitHub-only: repository webhook setup.
    - Pipeline over-dispatches fix agents for review comments; concurrent worktrees clobber each other: GitHub-only: review-comment fix dispatch in the PR pipeline.
    - Pipeline rebase dispatch silently fails when resumed session ID is stale: GitHub-only: the PR pipeline's rebase dispatch.
    - TestGenIDUniqueness flakes during nix build, blocks dev shell setup: Fixed: run IDs carry 8 hex digits of randomness (flow/internal/run/run.go).
    - Pipeline misses review comments after PR transitions to merge-ready: GitHub-only: review bot comments after merge-ready.
    - Consider: narrow Klaus scope to PR lifecycle automation only: Obsolete: proposes narrowing klaus to PR lifecycle automation, the part now being left behind.
    - Pipeline kills agent panes during startup (race condition): Obsolete: defaultCleanIdlePanes no longer exists in flow/. Whether its replacement has the same startup race was not tested.
    - CI should verify vendorHash matches Go dependencies: Fixed by the move: the flow-build check builds klaus with nix, so a stale vendorHash fails a required check.
    - I have some reservations about picking frameworks for new project flow: Obsolete and too vague to act on: framework selection in a new-project flow.
    - klaus should have an interactive introductory conversation to tailor itself to the users preferred workflow.: Obsolete: per-project workflow is declared in project policy rather than learned in an introductory conversation.
    - Session summary: running log of actions, costs, and outcomes: Largely covered: events.jsonl records session events and `klaus report` reports where time goes (oc-d7df986). A cost and count summary was not confirmed in the report.
    - High-level launch commands: fix-reviews, fix-ci, amend: GitHub-only for fix-reviews and fix-ci; amend is covered by `klaus launch --change` and `--resume-from`.
    - Explore JJ (Jujutsu) as the orchestration backend for agent worktrees: Obsolete: the valley supplies change IDs and restacks server-side, which covers what Jujutsu was to provide.