Skip to content

fix(tier3): preserve local verifier uploads and shared step files - #239

Merged
chrisknvidia merged 4 commits into
mainfrom
feat/christopherk/local-verifier-upload
Oct 29, 2026
Merged

chrisknvidia merged 4 commits into
mainfrom
feat/christopherk/local-verifier-upload

Conversation

@chrisknvidia

@chrisknvidia chrisknvidia commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

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 lint

  • Ran the complete default make test suite locally

  • Ran make build

  • Did 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

  • No user-visible release note needed
  • Updated CHANGELOG.md

@chrisknvidia
chrisknvidia marked this pull request as ready for review October 27, 2026 09:30
@chrisknvidia chrisknvidia changed the title fix(tier3): avoid empty verifier directory merges in local mode fix(tier3): preserve local verifier uploads and shared step files Oct 27, 2026

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 rng1995 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@chrisknvidia
chrisknvidia force-pushed the feat/christopherk/local-verifier-upload branch from 78cd1b5 to dc9e512 Compare October 29, 2026 22:39
@chrisknvidia
chrisknvidia merged commit acf9ab3 into main Oct 29, 2026
20 checks passed
@chrisknvidia
chrisknvidia deleted the feat/christopherk/local-verifier-upload branch October 29, 2026 23:42
@rng1995 rng1995 mentioned this pull request Oct 30, 2026
15 of 20 tasks
chrisknvidia added a commit that referenced this pull request Oct 30, 2026
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants