Repository navigation
fix(tier3): preserve local verifier uploads and shared step files - #239
Conversation
rng1995
left a comment
There was a problem hiding this comment.
Automated review: 1 findings (0 P1, 1 P2, 0 P3); 1 posted inline.
Reviewed at f561143. The merge semantics fix the multi-step overlay, and the new tests catch it: with main's upload_dir, 15 of 19 unit tests and both multi-step integration tests fail. The comment below is about single-step trials in local mode.
rng1995
left a comment
There was a problem hiding this comment.
Reviewed the full diff and prior review discussion at 78cd1b5. The agent-written verifier-file issue is addressed, transactional failures preserve the previous tree, and shared/per-step inputs remain available. Merged main without dropping either changelog entry. Validation: 368 focused tests passed; four sandbox-restricted socket tests passed on OS-enabled rerun, together with all upload regressions and four real Harbor/Seatbelt integration variants (30 passed). Ruff and sdist/wheel builds passed. GitHub checks on this exact head are still queued/running; DCO and classification passed. No remaining code-review blocker found. This approval does not merge the PR.
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
78cd1b5 to
dc9e512
Compare
Signed-off-by: Christopher Kevin <[email protected]>
* fix(tier3): avoid empty verifier directory merges in local mode * fix(tier3): preserve verifier inputs across failed uploads and steps * fix(tier3): replace agent-written verifier files after commands Signed-off-by: Christopher Kevin <[email protected]>
Summary
Local evaluations could fail before grading while snapshotting a newly created empty tests directory. Failed uploads could also discard the previous verifier, and per-step uploads removed shared test files that Harbor had just uploaded.
Prepare and rewrite incoming files privately, remove only an empty destination placeholder, and publish a validated overlay with the existing secure-copy rollback support. Invalid or missing sources now fail; copy and rewrite failures preserve the previous files. Step files override matching shared files while unrelated shared helpers remain available.
Add regression coverage to the macOS lane and run real Harbor verifier integration tests there. Pin the historical HTML-parser Python matrix to Ubuntu 24.04: the pinned interpreter builds are unavailable for the current Ubuntu 26.04 default runner, so those checks previously failed during setup. The interpreter versions are unchanged.
Verification
I am familiar with the Contributing Guidelines
Added or updated focused tests
Updated documentation for user-visible changes
Ran
make lintRan the complete default
make testsuite locallyRan
make buildDid not add credentials, private datasets, or proprietary benchmark content
233 focused tests passed, covering local uploads, secure copying, local environments, isolation, and workflow configuration; 7 skipped and 8 deselected.
4 real Harbor/OS integration cases passed: single-step and two-step tasks, each with normal and strict reads. All six verifier invocations produced a fresh reward of 1.0 inside macOS Seatbelt, without mocks or model services.
Reproduced missing-source, destructive-copy and partial-rewrite failures before fixing them. The real multi-step integration was 2 failed / 2 passed before the overlay fix and 4 passed afterward.
A fresh model/judge smoke on identical production code completed 2/2 scored trials in 247.8 seconds, with a successful target SKILL.md read in the native trace and no target document in the baseline. SkillEvaluator remains 0.6.0; the demo uses isolated Codex 0.161.0 and a 600-second agent budget. A packaged-wheel model run was not performed.
Lint, formatting, whitespace, wheel and source builds pass. The wheel contains the reviewed upload implementation.
Private preparation and transactional merging add I/O and temporary disk usage. A five-iteration cached 462 KB verifier fixture measured a 0.43-second median upload versus 0.05 seconds before this review hardening; this is not a large-fixture or concurrency capacity claim. Existing destination trees remain subject to the shared staging policy for links and special files.
The earlier full local pytest attempt was incomplete after ten minutes (1112 passed, 4 skipped, one existing CLI-snapshot failure). An exact-stderr timeout assertion also reproduces with the original upload method. Full local-suite success is not claimed. A separate pre-existing activation-attribution false positive for skill names in parent results paths remains outside this PR, so the smoke does not establish a validated lift result.
Release Impact
CHANGELOG.md