Repository navigation
Harden against rogue agents (safe git + jail cleanup + more verifier checks) - #15
Merged
Merged
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
Verification bypasses and incomplete proxy cleanup remain unresolved.
3 open issues
What changed in this PR
This PR hardens trial isolation and verification against agent interference, while improving multistep result handling and support for non-root Docker images.
Changes:
- Move trial Git state outside the application directory and disable global/system Git configuration.
- Add jail parent-death cleanup and strengthen Minitest tampering and failure checks.
- Clear stale Miniswen results and execute Docker commands as root.
| File | Description |
|---|---|
test/miniswen/jail_test.rb |
Test holder termination after parent death. |
test/lemans/trial/verifier_test.rb |
Test recorded failures overriding a clean exit. |
test/lemans/trial/snapshot_test.rb |
Check isolated Git paths and configuration. |
test/lemans/trial_test.rb |
Update Git isolation and patch replay assertions. |
test/lemans/test_eport_lemans.rb |
Test detection of a redefined Minitest runner. |
test/lemans/environments/test_docker.rb |
Assert root execution and upload setup. |
test/lemans/agents/test_miniswen_installed.rb |
Assert stale result removal before execution. |
lib/miniswen/jail.rb |
Add a parent-death signal to the jail holder. |
lib/lemans/trial/verifier/assets/lemans_minitest_reporter.rb |
Check core runner source locations for tampering. |
lib/lemans/trial/verifier.rb |
Score recorded failures as zero when using exit-based rewards. |
lib/lemans/trial/snapshot.rb |
Store baseline state in the isolated Git directory. |
lib/lemans/trial/patch.rb |
Isolate patch Git state and adjust restoration. |
lib/lemans/environments/docker.rb |
Run commands and upload directory creation as root. |
lib/lemans/agents/miniswen_installed.rb |
Remove previous results before each run. |
CHANGELOG.md |
Document the hardening and compatibility changes. |
Review effort: Balanced
ardecvz
force-pushed
the
audit/security
branch
2 times, most recently
from
October 22, 2026 01:09
35476fe to
bdb48e3
Compare
ardecvz
force-pushed
the
audit/security
branch
from
October 27, 2026 22:17
bdb48e3 to
eee67dd
Compare
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.


Plus, some nice to have future-proofing: