Remove Phase-1 hard completion audit gate (preserve tool-call recovery & shell guardrails) - #277
Merged
mmprotest merged 1 commit intoApr 9, 2026
Conversation
mmprotest
merged commit Apr 9, 2026
506dce6
into
mmprotest/implement-phase-1-runner-hardening
2 checks passed
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.
Motivation
Description
villani_code/completion_audit.pymodule which implemented claim-to-path extraction, structural checks,CompletionAuditResult, repair-brief generation, and completion-blocking logic.run_completion_audit(...)import and all calls torun_completion_audit(...)in both finalization paths insideRunner.runinvillani_code/state.py, and removed emission ofcompletion_audit_blockedevents and repair-brief message injection that looped the agent back into repair mode.tool_schema_recovery_triggered) invillani_code/state.pyso repeated malformed tool calls still trigger schema-focused recovery.villani_code/shells.pyand the relatedcommand_rejecteddebug/event visibility instate.py(Windows-incompatible bash forms remain rejected).tests/test_runner_phase1_hardening.pywith a test asserting completion is not blocked after a text-only assistant turn, while keeping tests that verify malformed tool-call recovery and shell guardrails.Testing
pytest -q tests/test_runner_phase1_hardening.pyand the suite passed (3 passed).Codex Task