Repository navigation
harness: enforce hard rules with git guard, hooks, invariant registry; slot keeper and flow gates - #63
Merged
Conversation
PR #356 (secret-bundle-private-files) merged into main as d3c68686. Bean 0532 stays in-progress with the remaining scope and two follow-ups; bean 0153 notes the two docstrings PR #356 added to agent_runner.py.
… PR #351 merge PR #351 (flow single-runner-per-checkpoint, merged at 2f29d8c) delivered the per-slug run lock and the child reaping on halt (beans 0390 target side and 0472). Bean 0390 stays in-progress for its harness-side items. Bean 0518 closed: shared repo identity keys are gone. Bean 0153 notes the PR's docstring and comment lines. Triage matrix refreshed.
…16..0018, flow notes
…ult-350 on lazy_exports.py
…d budget changes (beans 0569, 0570)
…tree checks (beans 0566, 0567, 0568)
…lock and commit time (beans 0561, 0571)
…pproved and calibrated
…k, hook installer (beans 0573, 0575)
…mit (CF-0021 path)
…ni-4-neon, re-cut PR #450
…ge readiness gates
…) across 19 beans
…7 after PRs #86-#94
…, new bean 0639, CF-0083 quota row
…CF-0084 Ruff check and ruff format --check, both enforced by test-hygiene.yml, failed on the branch PR #63 opened from: pr_readiness.py author ternary, calibration path filter, cal_files_note and the head-SHA report row, plus the ready-line call in test_pr_readiness.py. Bot findings 4726411239, 4726411254, 4726411265 (implicit string concatenation in a list) are rejected as false positives: the bean_progress.py pair is one --json argv token and gh exits 1 on the split; splitting the two test_intent_coverage.py items fails 9 tests because each is one acceptance criterion. Action-Origin: pr_review Review-Severity: nit Review-Iteration: 1 Review-Finding-Ids: 4726411239,4726411254,4726411265
…ed out tests/test_invariant_registry.py asserted that every path in .agents/invariants.yml exists, but 41 of those checks live in apps/holon-agentic-coder/main and apps/holon-coherence/main, which .gitignore excludes and CI never has, so test_every_referenced_check_exists and test_the_script_exits_zero_on_the_real_registry could only pass on a machine with both targets checked out and failed hygiene in CI. invariant_registry now resolves apps/ references only when apps/ is present, still rejects a target reference that is not under a main worktree, and prints the count of checks it could not verify; the suite covers all three paths. Action-Origin: pr_review Review-Severity: important Review-Iteration: 1 Review-Finding-Ids: ci-hygiene-pytest
Contributor
Author
|
Review pass 1 resolved at dfe7751; Applied
Rejected (all three bot comments, threads resolved)
Not merged — merging a |
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
Harness control-plane work for the Holon flow: turns the hard rules in
.agents/into enforced gates (git hooks,validators, invariant registry), adds the coordinator tooling that keeps up to 8 flows running, and backfills the bean
/ triage / failure-ledger bookkeeping through HAC #456 and Coherence #94.
Squash-merge on merge (201 commits, harness bookkeeping throughout).
Changes
Enforcement tooling (14 new scripts + git hooks)
git_guard.py+.agents/bin/git: blocks forbidden git operations (stash,--no-verify,add -A/add .) andedits/builds in a
mainworktree, including inside a REPL shell.harness_commit.py+harness_lock.py: single-writer path for the shared harness branch (lock, empty index,prettier, staged-blob validation, commit, push).
staged_validation.py,check_commit_trailers.py,check_main_worktrees.py: commit-msg and pre-commit hooksinstalled by
install_git_hooks.py(idempotent).stamp.py+timestamps.py: UTC timestamps are generated, never typed;check_beans.pyandcheck_failure_ledger.pyreject future, malformed, misordered or post-commit values.new_bean.py: sequential 4-digit bean ids enforced at creation.invariant_registry.py+.agents/invariants.yml: every hard rule must have a named automatic check;test_invariant_registry.pyfails on a missing or partial entry.slot_keeper.py: flow-slot accounting with event triggers and reasons; defaults toantigravity-agent/gemini-4-neon.pr_readiness.py: per-head readiness gate for merge/post-merge.skills/holon_flow/scripts/flow_gates.pyandintent_coverage.py: Stage gates and bean-acceptance coverage beforean intent is launched.
Tests
11 new suites (
git_guard,harness_commit,stamp,slot_keeper,pr_readiness,invariant_registry,intent_coverage,flow_gates,check_beans,check_commit_trailers,check_main_worktrees) and 3 updated; 454tests pass locally.
.github/workflows/test-hygiene.ymlextends CI coverage.Docs and bookkeeping
AGENTS.mdand.agents/{rules,workflows,worktrees-and-git,pr-merging,coordination,subagents,submodules,self-improvement-audit}.md:hard-rule wording updated to point at the checks that now enforce them.
.beans/bean-triage-prioritisation.md,docs/ecosystem-audit-report-2026-11.md,and the
.agents/ledger/coordinator-failures.jsonlrows through CF-0083.Verification
uv run pytest -q→ 454 passednpx prettier --check "**/*.md"→ clean