fix(hermes): state the enforced timeoutSec default (1800) in local adapter docs (#15936)

## Thinking Path

> - Paperclip is a control plane for AI-agent companies.
> - The Hermes local adapter has a `timeoutSec` run limit.
> - The code sets the default in `DEFAULT_TIMEOUT_SEC`. The value is
1800.
> - The UI config builder also floors `timeoutSec` at that default. A
user cannot build a lower value in the UI.
> - Two doc tables still state the default as 300. The README example
config also uses 300.
> - A user who copies the documented value gets runs killed at a wall
the docs implied was normal.
> - This pull request makes the three doc spots state 1800. It changes
no code behavior.

## Linked Issues

Fixes #15903

## What Changed

- `packages/adapters/hermes/README.md`: the Core Configuration table now
states the `timeoutSec` default as `1800`. The example agent config now
uses `"timeoutSec": 1800`, so the example no longer shows a value the UI
builder cannot produce.
- `packages/adapters/hermes/src/index.ts`: the local variant doc table
now states the `timeoutSec` default as 1800.
- The gateway variant docs are not touched. They state 600, and the
gateway code default is 600, so they agree.

## Verification

- Text check: all three local-variant spots now read 1800, and
`DEFAULT_TIMEOUT_SEC` in
`packages/adapters/hermes/src/shared/constants.ts` is 1800.
- The Hermes entrypoint test suite passes: 8 tests, including a new
guard that fails if the doc table and `DEFAULT_TIMEOUT_SEC` drift apart
again.
- Docs-only change; no runtime code was modified.

## Risks

- None for runtime behavior. The only risk is doc drift in the other
direction if the code default changes later; the constant stays the
single source of truth in code.

## Model Used

- **Model:** Meta Muse Spark 1.3

## Checklist

- [x] I have included a thinking path that traces from project context
to this change
- [x] I have specified the model used (with version and capability
details)
- [ ] I have checked ROADMAP.md and confirmed this PR does not duplicate
planned core work
- [x] I have searched GitHub for duplicate or related PRs and linked
them above
- [x] I have either (a) linked existing issues with `Fixes: #` / `Closes
#` / `Refs #` OR (b) described the issue in-PR following the relevant
issue template
- [x] I have not referenced internal/instance-local Paperclip issues or
links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip`
URLs)
- [x] My branch name describes the change (e.g. `docs/...`, `fix/...`)
and contains no internal Paperclip ticket id or instance-derived details
- [x] I have run tests locally and they pass
- [x] I have added or updated tests where applicable
- [x] I have updated relevant documentation to reflect my changes
- [x] I have considered and documented any risks above
- [ ] All Paperclip CI gates are green
- [ ] Greptile is 5/5 with no open P2s, recommendations, or follow-ups
- [x] I will address all Greptile and reviewer comments before
requesting merge

---------

Signed-off-by: Josh Cox <joshuacox@users.noreply.github.com>
Co-authored-by: Review <review@local>
This commit is contained in:
Josh CoxandReview authored and GitHub committed 2026-12-04 21:40:29 -08:00
1 parent 1dcab931a6
commit 4b5000fae0
3 files changed
+15 -3

No files matched your search

+2 -2
View File
@@ -97,7 +97,7 @@ In the Paperclip UI or via API, create an agent with adapter type `hermes_local`
"adapterConfig": {
"model": "anthropic/claude-sonnet-4",
"maxIterations": 50,
"timeoutSec": 300,
"timeoutSec": 1800,
"persistSession": true,
"enabledToolsets": ["terminal", "file", "web"]
}
@@ -222,7 +222,7 @@ Create issues in Paperclip and assign them to your Hermes agent. On each heartbe
|-------|------|---------|-------------|
| `model` | string | `anthropic/claude-sonnet-4` | Model in `provider/model` format |
| `provider` | string | *(auto-detected)* | API provider: `auto`, `openrouter`, `nous`, `openai-codex`, `zai`, `kimi-coding`, `minimax`, `minimax-cn` |
| `timeoutSec` | number | `300` | Execution timeout in seconds |
| `timeoutSec` | number | `1800` | Execution timeout in seconds |
| `graceSec` | number | `10` | Grace period before SIGKILL |
### Tools
@@ -10,6 +10,18 @@ import {
hermesGatewayType,
} from "./index.js";
import { createServerAdapter as createGatewayServerAdapterFromSubpath } from "./gateway/index.js";
import { agentConfigurationDoc } from "./index.js";
import { DEFAULT_TIMEOUT_SEC } from "./shared/constants.js";
test("agent configuration doc states the enforced timeoutSec default", () => {
// The doc table once stated 300 while the code enforced an 1800 floor, and
// runs configured from the doc died at the wall. Keep them in lockstep.
const row = agentConfigurationDoc
.split("\n")
.find((line) => line.includes("timeoutSec") && line.includes("Execution timeout"));
expect(row).toBeDefined();
expect(row).toContain(`| ${DEFAULT_TIMEOUT_SEC} |`);
});
test("root package export exposes Paperclip external adapter entrypoint", () => {
const adapter = createServerAdapter();
+1 -1
View File
@@ -86,7 +86,7 @@ tools, persistent memory, session persistence, skills, and MCP support.
|-------|------|---------|-------------|
| model | string | (Hermes configured default) | Optional explicit model in provider/model format. Leave blank to use Hermes's configured default model. |
| provider | string | (auto) | API provider: auto, openrouter, nous, openai-codex, zai, kimi-coding, minimax, minimax-cn. Usually not needed — Hermes auto-detects from model name. |
| timeoutSec | number | 300 | Execution timeout in seconds |
| timeoutSec | number | 1800 | Execution timeout in seconds |
| graceSec | number | 10 | Grace period after SIGTERM before SIGKILL |
## Tool Configuration