[ harness optimizer governance gates]#524
Merged
Merged
Conversation
…gates Comment-only pass over the newest agentic/harness_optimizer submodule (merged via PR #515) via the /add-comment skill. No logic changes.
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.
2 phase next
What
Comment-only pass (via the
/add-commentskill) overagentic/harness_optimizer/, the newest agentic submodule (merged in the last few days via PR #515, "Deep Agents harness phases 6-9"). Three WHY-comments added:agentic/harness_optimizer/core.py—RunReport.has_critical_governance_finding: flags that this property's"critical:"string match is coupled by convention (not by type) toGovernanceFinding.as_gate_string()'s serialization format ingovernance.py.agentic/harness_optimizer/runners/github_coding_runner.py—FixtureCase.__post_init__: explains the discarded-return-value call to_safe_child(...), which runs purely for its path-escape-validation side effect.agentic/harness_optimizer/runners/github_coding_runner.py—GitHubCodingRunner._overlay_candidate: explains why thecurrent.rglob("*")rescan exists as defense-in-depth against a file landing incurrent/outside the tool-mediated write path.No other lines in
agentic/needed comments — the rest ofdeepagent_github/andharness_optimizer/(and the surroundingagentic/package) already carries dense WHY-comments at CLAUDE.md's documented density; this pass avoided padding already-explained code.Why
Readability for newcomers to the newest, most architecturally dense part of the agentic layer (governance gates for the harness-optimizer's candidate-acceptance pipeline). CyClaw is in feature freeze (
CLAUDE.md§1); comment-only changes are explicitly in scope as polish.Risk to monitor
None expected — this is a zero-behavior-change diff (verified below). Watch for: none: comments do not affect runtime, and the two touched functions' surrounding logic is unchanged.
Verification performed:
git diff --stat: insertions only, no deletions, no non-comment lines touchedast.parse()on both files: syntax validruff check --select E,F,I,B,C4,UP,S: cleanpython3 .claude/skills/invariant-guard/check_invariants.py: 27/27 passed (all six invariants + supporting guards hold)pytestsuite not run — this sandbox has no Python deps installed (a fresh clone has none perCLAUDE.md§4) and installing the full stack (torch, chromadb, etc.) was out of scope for a comment-only, timeboxed pass. Given the diff touches only comment lines with zero behavioral change, this is low risk, but a reviewer with a full env may want to runGROK_API_KEY=dummy pytest tests/test_agentic_harness_optimizer.py tests/test_agentic_harness_phase345.py tests/test_agentic_harness_phase679.py -qto confirm.