Home

mweinbach / agent-coworker

publicmweinbach/agent-coworker
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

test(workflows): cover the sandbox, runner, journal and scheduler

2 months ago

6f4fcc9
Authored
mweinbach7/26/2026, 4:19:59 PM
`sandbox.escape.test.ts` pins the escape surface. Every probe was executed
against a real Bun realm while designing the seal, so the suite is transcription
rather than speculation: its job is to turn a Bun upgrade that reopens the realm
into a CI failure instead of a silent hole — or, for the determinism traps, into
a failure instead of a journal that replays stale results.

Two probes are deliberately shaped around Bun quirks rather than asserting the
obvious: `typeof require` evaluates to "function" via a transpiler artifact, so
the test asserts that calling it throws; and a literal `import()` is rejected at
compile time while only a computed specifier reaches the runtime denial.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kk98XjGKJrKp5ynbiNFMFu

Parenta7b3e51

5 files changed
  • test/workflows/harness.ts+114−0
  • test/workflows/journal.test.ts+171−0
  • test/workflows/runner.test.ts+384−0
  • test/workflows/sandbox.escape.test.ts+205−0
  • test/workflows/scheduler.test.ts+56−0