Repository navigation
feat(harness): trusted depth, alignment gate, verifier + skills - #10
Merged
Merged
Conversation
Adds trusted delegation depth, alignment gate, verifier-per-PR scaffolding, context budget helpers, ADR loading/skills, and CI/policy hooks per the 2026-11-09 Drover harness design.
Headless coordinator workers require an accepted checkpoint (or parent-bound approved_spec) before mutating tools.
petehanssens
marked this pull request as ready for review
November 9, 2026 09:35
…ADR 0001
- Add required product/audience to .drover/skills/{grill,verify}/SKILL.md
(skill loader only reads name/description, so this is inert for runtime).
- Replace non-taxonomy topics harness/delegation with agent-jobs and
governance-policy on ADR 0001.
go.mod replaces drover-warden and drover-libs with ../ paths, so test, fuzz and harness-discipline failed at setup on main and on PRs (replacement directory ../drover-warden does not exist). Check out drover-code, drover-warden and drover-libs side by side using the same GH_ORG_READ_PAT pattern as drover-cloud's CI. setup-go pinned 1.22 while go.mod requires 1.26.2 (CI relied on toolchain auto-download); use go-version-file instead. Also set workflow-level contents: read.
- tui: report /pause cancellation as 'Agent paused by user.' on ErrorEvent too (event and run-complete can arrive in either order), and keep tool-only turns in history on DoneEvent instead of dropping drained tools when no text streamed. Pause tests now drive the real ErrorEvent + agentRunCompleteMsg sequence and assert final history. - liveregion: throttle test now runs outside the 2.5s startup window it was accidentally exercising; new test covers startup drain explicitly. - coordinator: TestGitHeadSHA sets a per-command git identity and checks git add/commit errors (runners have no global identity). - cmd/drover-code: tests for parseCSVEnv, governed-job tool intersection, requireEnv/mustGetwd and coordinator REPL quit handling; lifts main.go coverage 21.6% -> 30.5% so the CRAP gate (limit 10000) passes without changing the limit.
Contributor
Author
CI review: why the checks failed and what changedCompared with the latest
Locally, against the warden/libs Remaining blocker: needs an org admin
No tests or harness gates were weakened, and no secrets or settings were changed. |
Fixes govulncheck/npm audit findings where a non-major fix exists, adds least-privilege workflow permissions and pins third-party actions to commit SHAs.
Keep the harness gate and trusted lineage together with plan-mode refusal, session persistence, theme settings, and pause error handling.
go.mod replaces drover-warden and drover-libs with sibling checkouts. The public repo token cannot read those private repos, so CI uses GH_ORG_READ_PAT. Go is 1.26.2, matching go.mod. The throttle test was still inside the startup promotion window, so a pending burst always became visible. Age the turn out of that window before asserting the throttle.
policies.jsonl is the contract with drover-warden. The public module no longer imports the private repo, so CI does not need a token to compile.
The runner has no user.name, so git commit exited 128 and rev-parse HEAD failed. The author is set on the command.
Ubuntu bubblewrap refuses a tmpfs on the /var/run symlink, so cover that path through the /run tmpfs. Wait until a background job drops after its completion notice. Drive the pause tests with agentRunCompleteMsg and look for the finished tool in history.
bwrap hides /tmp, so an outside write fails with "No such file or directory". An unshared network fails with "Network is unreachable". On GitHub Actions, Chrome starts with --no-sandbox and --disable-dev-shm-usage, and a missed debugging port is tried once with stderr kept.
cmd/drover-code/main.go scored 33490 because the quality gate treats the whole file as one complexity number. Headless and the other modes now live in their own files, each under the limit even at zero coverage.
The harness discipline job stays, and it checks out only this repository.
petehanssens
commented
Nov 17, 2026
petehanssens
left a comment
Contributor
Author
There was a problem hiding this comment.
this is awesome
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the 2026-11-09 Drover harness design in drover-code (primary runtime).
Implemented
internal/agent/lineage.go; spawn admission ininternal/coordinator;maxAgentTierssettings (tighten-only, operator ceiling 3)internal/harnessSPEC/CHECKPOINT; wired intoDefaultToolExecutorbefore mutating toolsinternal/verification(read-only verifier, bounded repair loop, evidence artifacts)internal/convo/budget.go(occupancy vs lifetime billed vs root spend)internal/config/adr_loader.go+docs/adr/0001-trusted-delegation-depth.md.drover/skills/{grill,verify}/SKILL.md+internal/commands/skills.goadapterharness-disciplinejob +scripts/harness/check-discipline.shdesign/harness/README.md,AGENTS.mdpointersDeferred / follow-ups
Tests
go testfor lineage, harness, verification, budget, ADR loader, skills — passscripts/harness/check-discipline.sh— passSafety