Repository navigation
Fix/bindings credential broker - #223
Merged
Merged
Conversation
The broker was built from CLI flags only, so a host driving runs through Python or Node could pin a wasm32-areev-io tool and still have every areev::fetch fail. The parser moves into areev-run as EgressSpec — the one behind --credential/--allow-host/--tool-egress/--credential-ttl/ --resolver-env — and every surface calls it: the same-named parameters on run_start/run_resume/trigger_run/trigger_deliver in both bindings, and /_ALLOW_HOST/_TOOL_EGRESS/_CREDENTIAL_TTL/ _RESOLVER_ENV for areev serve (and as CLI fallbacks, like the rest of the family). serve_blobs is wired from the memory path on every surface. A parity test drives one capability tool from Node, Python, the CLI (flags and variables) and the MCP server with one declaration and one set of grants, asserting the same admitted call, the same four refusals, and the same journaled Observations.
sathish-mg
approved these changes
Sep 9, 2026
neoneye
pushed a commit
to agent-memory-atlas-archive/AreevAI--areev
that referenced
this pull request
Sep 13, 2026
AreevAI#223 made `McpServer::runner` fallible — it now parses the egress spec, which can fail — and updated every call site it could see. AreevAI#224 added one it could not: the `areev_run_input` arm, written against the old signature on a branch that predated the change. Both were green on their own branches and git merged them without a conflict, because they touch different lines of the same file. main did not compile from the moment the second one landed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A
wasm32-areev-iotool'sareev::fetchis answered by the credentialbroker, and the broker was CLI-only:
build_egress(flags)in the CLI,no
$AREEV_RUN_*spelling, no parameter in either binding. A servicedriving runs through a binding could persist and pin a capability tool
and have nothing answer it.
areev_run::EgressSpecholds the five settings as theCLI's spec strings and builds the broker; the CLI's
build_egressandthe trigger path's connector credentials are thin calls onto it, so
the surfaces cannot reach different verdicts.
credentials,allow_hosts,tool_egress,credential_ttl_secs,resolver_env(camelCase in Node) onrun_start,run_resume,trigger_run,trigger_deliver— appendedafter the existing parameters, so positional callers are unaffected.
On the trigger surface
credentialsfeeds the connector-poll brokertoo, as one
--credentialflag does.index.d.tsregenerated.areev serve.$AREEV_RUN_CREDENTIAL,_ALLOW_HOST,_TOOL_EGRESS,_CREDENTIAL_TTL,_RESOLVER_ENVat server start,server-bound like
$AREEV_RUN_TOOL_CMD. The CLI reads them asfallbacks too (flag wins), and the secret-registration choke point
reads the variable spelling as well.
serve_blobsis wired from the memory path on everysurface (subject to areev::blob_get returns 501 on the Postgres tier, so an attachment-parsing capability tool cannot exist there #202 on Postgres).
driven from Node, Python, the CLI with flags, the CLI with variables,
and the MCP server: same admitted call with the credential attached
upstream and never visible to the module, same 403 +
RUN-E022forwrong host, wrong method, undeclared credential and an unpaired
credential/host block, and the same four
egress_refusalObservationsin
agent:harness. The CI node job now builds the binary so the CLIleg runs there.
docs/run.md(surface table + the binding spelling of "Runningone"),
docs/triggers.md,docs/mcp-reference.md,docs/cookbook.md,docs/security-model.md, the CLI help, and the changelog.Verified: cargo test --workspace 2,680 passed; clippy clean; Node 73/73
(the parity test on both legs); Python 126 passed.
Closes #201.