Repository navigation
test(evals): prove an admitted signed-in desktop turn runs its next bash tool while Den returns 503 - #4808
Conversation
…ash tool while Den returns 503 Daytona-only testkit journey for the #4725 rollback: a signed-in member's admitted turn holds its first real bash tool at a fixture gate, the fault proxy then returns 503 for every /api/den request, a separate new admission is rejected with policy_unavailable, and the next real bash tool still completes and writes its file while Den stays unreachable. Runtime config is checked before and during the outage for the absence of any managed-policy plugin registration.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Passed · 12/12 tests · 18/18 assertions · 8 images Commit |
Warden review summary — ClearNative findings: 0. Blocking policy matches before consolidation: 0. Full finding text remains in Warden's native checks and review threads. This comment retains only native IDs, severity, skill attribution, and safe locations. Analysis run Reported trigger coverage (not proof of complete repository or context coverage): diff-security-review (24457 ms), confidentiality-review (10836 ms), spec-provenance-review (87421 ms). Blockers
Advisories
Needs recheck
Observed review-thread metrics
Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority. |
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (716553e5b7e656ed04158550b2f36ded04fe42f1). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
Pick up #4888 so ci-tests.yml's packaged Fast module step finds its test file. Signed-off-by: Guillaume Loret <[email protected]>
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (cfb0a9d07cf594d3d483444a1ee7bb9ef2f942ca). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
What
One Daytona-only
@openwork/testkitE2E spec,evals/specs/desktop-policy-unreachable.e2e.test.ts, that proves the behaviour #4725 (desktop policy-engine rollback) was meant to guarantee:No product code changes.
Why
The v0.18.45 stability soak never combined a signed-in desktop's real agent tool execution with an unreachable Den/policy service at the tool boundary — its tool journeys always had healthy Den transport and the restart fixture was signed out. So prior green runs could not tell whether the removed per-tool managed-policy hooks could still block tools. This spec closes that gap.
How the journey works
mcpMockagent workload) reachable independently of the Den path./api/runtime-configis rewritten to advertise the proxy API origin so the desktop cannot route around the fault (run 2 found this bypass).bashtool writes a baseline marker and waits on a fixture gate file./api/denrequest. Calibration on the real desktop-server→Den path: a separate new session admission is rejected403 policy_unavailable(fail-closed admission is preserved, as fix(desktop): unregister managed policy engine plugins #4725 documents).bashtool completes and writes its result file while Den still returns 503; an unrelated file and the signed-in identity are unchanged; the native session inventory is unchanged; the final reply is visible in the desktop.managed-policy/managed-policy-nextregistration.Proof (Daytona lane, OpenCode v1)
OPENWORK_EVAL_REF=e4c5c3e3d49a75287c020111de989a93dbf30281 gtimeout -k 60 2400 pnpm evals:e2e desktop-policy-unreachable --daytona --engine v1evals/results/test-runs/2026-09-10T16-05-21-402Z-…; both sandboxes deleted by cleanuppnpm --dir evals run check:browserpnpm --dir evals exec tsc -p . --noEmit(filtered to this spec)apps/app/eeVerdict: Passed for the claim in the test title.
Evidence SHA note (deliberate, disclosed)
The green run's receipt is bound to
e4c5c3e3(fetchedorigin/devat run time) because the spec was still untracked when it ran. The PR head716553e5bdiffers frome4c5c3e3only by adding this spec file, whose content was byte-identical during the run (git diff --stat e4c5c3e3 716553e5b→ 1 file, the spec). The sticky comment is therefore published with--forceand carries the publisher's stale-SHA annotation. Reviewers who want a head-bound receipt can re-run the command above on this branch (≈5 min).Red runs on the way (all fixture-side; product behaved as documented)
/api/runtime-config.source dependency install gatetook 1018 s (vs 26–29 s on the neighbouring runs of the same commit) and the launching session's outer budget ended the run. Classified as an environment slowness, not a harness defect. Its two leaked sandboxes were deleted manually.errorfield; the desktop server formatsApiErroras{ code, message, details }. Fixed and tightened totoBe("policy_unavailable").Not included
test()spec importing@openwork/behaviors/@openwork/hostslike nine existing sibling E2E specs; it adds twospecs-use-testkit-onlyentries tolint:layersoutput (the sandbox file witness needsdefaultDaytonaExec, which testkit does not re-export). Happy to migrate tospec.world()in a follow-up if preferred.