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
There was a problem hiding this comment.
Yes. This stays a draft until ag-ui-strands ships with the upstream PR; then the floor goes in here and CI reruns.
| @@ -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
There was a problem hiding this comment.
I tried it: with the image in .github/published-images.json, scripts/model-compat.test.ts ("every published harness is one the matrix can run") then asks for a row in shared/harnesses.json, which is registering the harness as an engine: the harness enum in the API and the generated clients, the desktop app's list and the model lock. That is more than an image entry, so I left it out of this push. It needs doing before this can merge either way; I'd do the registration as the next step here once the dependency is released, unless you'd rather the Dockerfile moved to that change.
| 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
There was a problem hiding this comment.
Done in 6212c7f. The harness's own tools are off with no switch: STRANDS_HARNESS_TOOLS and STRANDS_HARNESS_INTERVENTIONS are gone, and a test sets both and checks nothing is offered. Every call the Bot makes is now one OpenBot grants and the server checks; the description's boundary box is ticked on that basis. Turning them on can be its own change with a code owner's approval.
…nce its time is over, and tracked as a turn - A wait OpenBot holds beside the Bot's is released on the agent before the answer is sent, as before any message: with both replayed, Allow sent nothing. - A wait whose time is over can only be let go. The card says so and offers that, and a click checks again. - The answer runs as a turn like any other, so what the Bot goes on to say reaches the roster and a failed run is said under the transcript; one that never left the browser is said on the card.
They act in the Bot's container, past the server's grant checks, action policy and audit log. Whether a Bot may act there is a boundary for OpenBot to decide, so STRANDS_HARNESS_TOOLS and STRANDS_HARNESS_INTERVENTIONS are gone: with no tool of the harness's own there is nothing for its gate to ask.
What this changes
The AWS Strands harness as a Bot (
agent-strands-harness/), built onStrandsHarnessAgentfrom ag-ui-protocol/ag-ui#3489.shell,read,write,edit, web and subagent tools) are off, with no switch. They would act in the Bot's container, past the gateway, and whether a Bot may do that is a boundary for OpenBot to decide. With none of them on, the harness's own approval gate has nothing to ask about and is off too.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
Boundary and audit
The harness's own acting tools are off and cannot be switched on from the environment, so every call the Bot makes is one OpenBot grants and the server checks. Turning them on is a separate decision about the deployment boundary.
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: