Skip to content
SkilledDragonEngineering Intelligence
MinilabKeylessOctober 21, 2026

ContainMerge unlocked push in 1 of 24 gate combinations and kept 9 of 9 tampers locked

A Strands Box policy pack that forbids push and merge until review, e2e and decider reports pass for one commit. Only the all-pass set unlocked, and every tamper case stayed locked.

By David Discua

Measured in the lab

24
gate combinations run
1
combinations that unlocked
9/9
tamper cases left locked
0
push to main allowed
Locked combinationspush and merge denied23
Unlocked combinationsall three gates pass1
  • Only OCR pass + e2e pass + decider allow unlocked
  • git push origin main denied in every combination
  • Report edited after sealing caught by SHA-256 mismatch
  • OCR seal replayed for another commit kept the pack locked
  • Decider escalate at 0.42 relabelled allow was rejected

From reports/containmerge-report.json · run on October 21, 2026. rustc 1.99.0 on macos-x86_64, Strands Box policy pin 223e395, release build, keyless; the report carries a date only

How it is wired

git / ghsealedpolicy.dwallowAgentGate reportsOCR, e2e, decidercontainmergeseal + unlockBox policylocked by defaultGitHubbranch push, no main

01/04Your agent runs git and gh inside Strands Box, under a locked policy.

ContainMerge is a policy pack for Strands Box, the agent sandbox that decides every shell spawn and outbound request with a Dogwood policy. The pack forbids git push, git merge and gh pr merge until three sealed gate reports, a code review, a browser e2e run and a decider result, pass for the same commit. We ran all 24 combinations of gate outcomes and nine tamper cases keyless. Only the all-pass set unlocked. The catch is that none of this ran inside a live Strands Box.

The catch

Box local sandboxing is a preview for macOS on Apple silicon, and the pack was built and tested on an Intel Mac. The policies were decided by the real strands-box-policy engine at pin 223e395, but pack/box.toml was only checked statically and never loaded by box run. The GitHub egress credential table was copied from an earlier lab, and whether gh and HTTPS git push authenticate through it was not tested.

At the network layer only the REST merge endpoint is blocked, because GraphQL merges share POST /graphql with reads and Box exposes the path, not the body. gh pr merge is still blocked at shell:spawn. A seal proves which bytes the operator saw for which commit. If a gate itself is wrong, or the seal key leaks, the pack cannot tell. The decider fixtures come from the decider lab's deterministic fake mode, and the shipped pack/gates.toml refuses that model id on purpose, so the all-pass fixture set stays locked unless you pass the keyless demo gates file.

What we ran (keyless)

cargo test --locked
cargo build --locked --release
B=target/release/containmerge
$B status --pack pack
$B check --pack pack -- git push origin feature/x
# DENY rule=forbid_git_push command=git push origin feature/x
bash scripts/report.sh

From reports/containmerge-report.json, run on October 21, 2026 with rustc 1.99.0:

MeasureValue
Gate-report combinations (2 OCR x 3 e2e x 4 decider)24
Combinations that unlocked1 (all pass only)
Locked combinations where git push origin feature/x or gh pr merge 7 was allowed0
Combinations where git push origin main was allowed0
Tamper cases left locked9 / 9
All-pass set with shipped pack/gates.toml (fake decider)locked
unlock time, median / max over 33 runs70.05 ms / 180.84 ms

Each tamper case left the pack locked with a named reason. A failing e2e report rewritten to a consistent pass after sealing was caught by a SHA-256 mismatch. A passing OCR report sealed for another commit was refused as stale or replayed. An OCR seal presented as the decider seal was refused as swapped. An e2e report flipped to pass with exitCode left at 1 was rejected as inconsistent, and a decider escalate at confidence 0.42 relabelled allow failed against its own 0.8 threshold.

How it is wired

pack/policy.dw ships as a byte copy of locked.dw, which allows local work and read-only git and gh pr commands and denies everything else. Outside the box, containmerge seal writes an HMAC-SHA256 seal over gate name, full commit SHA, report digest and time, with a key no box.toml filesystem list reaches. containmerge unlock judges all three reports and copies unlocked.dw into place only when every seal verifies and every report passes. Box reads the policy at start, so the box needs a restart. The unlocked policy allows git push <remote> <branch> in exactly that shape, never to main, plus gh pr create and gh pr merge without --admin, and it forbids local merges and history changes so the pushed commit is the one the gates judged.

Minilab (open source)

Upstream is strands-agents/box (465 stars, Apache-2.0, Rust, as of October 24, 2026). Run containmerge verify on your own sealed reports to get the same judgement without touching a pack, and re-run bash scripts/report.sh to regenerate the matrix in reports/containmerge-report.json.

Run it yourself

SkilledDragonCorp/containmerge-policy-pack

Clone, install and run the report with no API keys. The numbers above are what that run writes.

cargo test --locked && cargo build --locked --release && bash scripts/report.sh

SkilledDragon is not affiliated with the Strands Agents project, Amazon Web Services, Alibaba (Open Code Review), GitHub or Microsoft. Numbers are from our own keyless lab run; re-run the report before relying on them. Marks belong to their owners.

All labs