Repository navigation
fix: address the issues from the 0.1.0 end-to-end test - #20
Merged
Merged
Conversation
Verification - --verify checks are required and never count as pre-existing; a check that can't run (exit 126/127) is "unavailable", never a fix round, and fails the run when required. Result.verified says whether every check ran and passed (#12). - Each fix round gets --max-fix-steps model calls (default 15); then zenith checks again and counts the attempt, so exit 30 is reachable (#10). - Runs that stop early are checked anyway, get a generated summary, and their commit says UNVERIFIED (#11). - pytest runs as python3 when available; the image adds `python` and fails to build if a detectable check command is missing (#15). Safety - zenith marks itself non-dumpable on Linux, so commands can't read its environment from /proc/<pid>/environ (#13). - Commits leave out common artefacts, PYTHONDONTWRITEBYTECODE is set, and added lines are scanned for credentials; publish refuses findings without --allow-secrets (#16). - Events, results and PR text redact known secret formats and secret assignments, including later uses of a value already seen; --no-redact and --events-level summary (#17). Coverage and cost - The agent is told which language toolchains exist, exit 127 gets a hint, and changed files no toolchain covers are listed in uncovered_files (#14). - When the provider reports no prompt caching, old tool output is trimmed on every call and summaries start at half the window (#18). Rough edges (#19) - Summary paths that don't exist are flagged; warnings are copied into the result; usage errors still write a result (status usage_error); the checkout is switched back after a run and an empty branch is deleted; steps vs usage.model_calls is documented. Closes #10, closes #11, closes #12, closes #13, closes #14, closes #15, closes #16, closes #17, closes #18, closes #19. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Fixes all ten issues from the 0.1.0 end-to-end test (#10–#19) in one PR.
--max-fix-stepsmodel calls (default 15). After that, zenith checks again and counts the attempt, so--max-fix-attemptsis reached and the run endsfailed/ exit 30.UNVERIFIED.--verifyis ignored as pre-existing--verifychecks are required: they never count as pre-existing. A check that can't run (exit 126/127) isunavailable: it never triggers a fix round, and a required one fails the run at once. The newverifiedfield in the result is true only when every check ran and passed. Progress printsdone (not verified …), publish opens unverified runs as drafts, and the PR says "Not verified".prctl(PR_SET_DUMPABLE, 0)on Linux, so/proc/<pid>/environbecomes root-only. Checked in the built image: zenith's/proc/1/environis-r-------- root, so the same uid can't read it, while a control container without this leaks the variable.uncovered_files, with a warning and a note in the PR.python, the image haspython3python3when it exists. The image addspython-is-python3, and its build now fails if any command check detection can pick is missing.__pycache__,*.pyc,.pytest_cache,node_modulesand similar are left out of the commit, andPYTHONDONTWRITEBYTECODE=1is set. Added lines are scanned for credentials (code-review-bot's rules plus secret assignments) and listed insecret_findings, andpublishrefuses them without--allow-secrets. Files changed by commands rather than file tools are listed infiles_by_commands.read_fileoutput) is also redacted later in thesedthat moves it. Options:--no-redact, and--events-level summaryto drop tool and check output. SECURITY.md now says output files may still contain secrets.stepsandusage.model_callsis documented in the protocol and README. (3) Usage errors still write--result, withstatus: usage_error(exit 2). (4) Without--worktree, the checkout is switched back to its branch after the run, and a branch or worktree with no commit is deleted. (5) The planner is told which toolchains exist. Every warning event is also copied into the result'swarnings.Contract changes
New result fields (all optional):
verified,warnings,uncovered_files,files_by_commands,secret_findings,limits.max_fix_steps. Checks have newrequiredandunavailablefields, and there's a new statususage_error. Behaviour changes:--verifyfailures now fail the run;Tested
internal/harness/issues_test.go, plus tests inverify,secrets,toolchain,policy(a/procread from a child process),publishand the CLI. Existing tests now read the branch instead ofHEAD.go test -race ./...and golangci-lint (0 issues) pass. It also cross-builds for darwin and windows.python -m pytestworks, and the/proc/1/environcheck above was run against it.🤖 Generated with Claude Code