fix(hermes): forward run-scoped agent credentials - #11102
Closed
spiffaz wants to merge 4 commits into
Closed
Conversation
15 tasks
Author
|
Closing this in favor of #10625, which already implements the Paperclip half with full CI coverage. The companion Hermes runtime contract is NousResearch/hermes-agent#81976 and now accepts #10625’s bounded |
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.
Thinking Path
Linked Issues or Issue Description
What happened?
A
hermes_gatewayheartbeat did not receive the scoped agent bearer that Paperclip can mint for a run. Authenticated agent endpoints returned HTTP 401 from the awakened runtime.Expected behavior
Paperclip must mint a run-scoped agent bearer for this adapter. Hermes tool subprocesses must receive it as runtime state. The model prompt and adapter logs must not contain the bearer.
Steps to reproduce
hermes_gatewayadapter.Paperclip version or commit
19be4cf9278b70bc151063778a94bf38bfd5c903Agent adapter(s) involved
Hermes
Additional context
Companion Hermes runtime contract: NousResearch/hermes-agent#81976
What Changed
supportsLocalAgentJwtforhermes_gateway.ctx.authTokenstrict precedence asPAPERCLIP_API_KEY./v1/runs.runtime_env.PAPERCLIP_RUN_IDforX-Paperclip-Run-Idon mutations.Verification
vitest run --config packages/adapters/hermes/vitest.config.ts packages/adapters/hermes/src/gateway/server/execute.test.ts packages/adapters/hermes/src/index.test.ts --testTimeout=300006639b79662306e1a0d6e0491b782cfe3bfc9d2f1: 2 files passed, 27 tests passed.git diff --checkpassed.Risks
runtime_envcontract. The companion PR provides it.Model Used
OpenAI Codex with model
gpt-5.6-sol. The run used reasoning, repository tools, code execution, and independent source review.Checklist