fix(harness): hide host offload path from sandbox agents - #2567
fix(harness): hide host offload path from sandbox agents#2567jaideeppyne wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Rebase complete (conflict resolved)Rebased onto latest Resolution
Evidence
|
aab9675 to
69f07a8
Compare
Conflict resolution statusConflict with A rebased fix is ready locally and validated: Resolution shape (on top of current public String resolveOffloadPath(RuntimeContext rc, String agentId, String sessionId) {
if (workspaceManager.getFilesystem() instanceof AbstractSandboxFilesystem) {
return "";
}
return new SessionTranscriptWriter(workspaceManager)
.resolveContextPath(rc, agentId, sessionId);
}Local-path test expects workspace-relative path Push blocked: OAuth token lacks |
69f07a8 to
2ea4891
Compare
Rebased and force-pushedConflict with Resolution
Local validation
|
Summary
Fixes #2566.
Validation
mvn -pl agentscope-harness -am -Dtest=MemoryFlushManagerOffloadTest -Dsurefire.failIfNoSpecifiedTests=false test— 5 tests run, 0 failures, 0 errors, 0 skipped; reactor build succeededmvn -q -pl agentscope-harness spotless:check— passedgit diff --check— passedImpact evidence
MemoryFlushManager.resolveOffloadPathcurrently resolves the archive through the host-sideWorkspaceManagerpath, while sandbox filesystem operations use a separate namespace. Returning an empty path activates the compactor’s existing path-less summary branch, so the archive is still persisted but the agent is no longer told it can read a host-only path.Risk and rollback
The behavior change is limited to
AbstractSandboxFilesystemimplementations. Local filesystem summaries retain their current archive reference. Reverting this commit restores the previous behavior; no persisted data format or public API changes.