Repository navigation
Conversation
# Conflicts: # CHANGELOG.md # agent-strands/Dockerfile # agent-strands/src/main.py
# Conflicts: # CHANGELOG.md
contextablemark
left a comment
There was a problem hiding this comment.
I’d keep this in draft. The new Bot can’t start with the published dependency, the Dockerfile trips the merge-queue image check, and we need a decision on whether the harness can run its own tools outside OpenBot’s gateway.
| # StrandsHarnessAgent is in the release after ag-ui-strands 1.0.4. Until that is published this | ||
| # line resolves to a release without it and the Bot fails at import; set the floor to the release | ||
| # that carries it when it lands. | ||
| ag-ui-strands |
There was a problem hiding this comment.
CI installs ag-ui-strands 1.1.0, which still lacks StrandsHarnessAgent. I reproduced the import failure locally, and the harness tests passed with the upstream PR build. Once that ships, can we set the minimum version here and rerun CI? Failing job · Upstream PR
| @@ -0,0 +1,19 @@ | |||
| # The AWS Strands harness, as a Bot. The Strands Bot's image with strands-harness added and a | |||
| # different agent mounted; what the two share is copied from shared/. | |||
| FROM python:3.12-slim | |||
There was a problem hiding this comment.
I ran the merge-queue image check locally. It picks up this Dockerfile and fails because the image is missing from the published list. If we’re holding off on publishing, can we land the Dockerfile with the image entry? Component-list check
| return { | ||
| "model": (os.environ.get("STRANDS_HARNESS_MODEL") or "").strip() | ||
| or WordsAsSaid(model_id=_model_id()), | ||
| "builtin_tools": _listed("STRANDS_HARNESS_TOOLS"), |
There was a problem hiding this comment.
Turning these tools on lets the harness run commands and modify files in its own container without OpenBot’s grant checks, action policy, or audit log. The harness’s approval prompt leaves those checks outside OpenBot. I’d keep the acting tools disabled in this PR unless a code owner explicitly approves that deployment boundary. OpenBot action boundary
What this changes
The AWS Strands harness as a Bot (
agent-strands-harness/), built onStrandsHarnessAgentfrom ag-ui-protocol/ag-ui#3489.shell,read, ...) are off unlessSTRANDS_HARNESS_TOOLSnames them, andSTRANDS_HARNESS_INTERVENTIONSgates only those. What OpenBot grants stays OpenBot's to ask about: the integration keeps the harness's gate off the tools a client runs.The approval card and the deployment 403 fix that were in this PR are now #2618. Their commits still show here until that merges.
Order of things
ag-ui-strandsis released withStrandsHarnessAgent.agent-strands-harness/requirements.txtgets that release as its floor. Until thenpython harness (agent-strands-harness)fails at import, which is why this is a draft.Where it runs
UNKNOWN_INTERRUPT_ID). This is the adapter's in-memory design, and one reason the Bot is not registered yet.Boundary and audit
The unticked box needs a reviewer's call. With
STRANDS_HARNESS_TOOLSset, the harness runs its own tools inside the Bot's container, past the gateway: no grant, no policy, no audit row. They are off by default.API and database
api/, no app's requests, no database change and norelease-policy.json.Changelog
none
Proof
After merging
main(the Strands Bot had gained Gemini signatures,WordsAsSaidand the progress reminder, which moved into the shared module where both Bots use the model):agent-strands: 31 passed.agent-strands-harness: 32 passed. Both against a local build of the ag-ui branch, withstrands-harness0.6.0 andstrands-agents1.68.0.bun test scripts/ci-budgets.test.ts scripts/ci-changes.test.ts: 64 pass (the new job has its time budget).bun run typecheckinapp: clean.Earlier, on an older base, this Bot ran in a single-container OpenBot connected by address: context, history replay after a restart of the Bot, shared state, and both kinds of approval were checked through the browser. That deployment was built from local branches on one machine and is not reproducible from this PR alone.
Not done: