Iron Proxy: per-host auto-approval rule so tool skills can call an allowed host without a card per request
Problem
On the Iron Proxy gateway, core's approval coordinator auto-approves only two things: the active agent provider's declared model domains (all methods), and GET/HEAD requests to hosts listed in NANOCLAW_GATEWAY_READ_ONLY_HOSTS. Every other request the front proxy forwards raises a human approval card (trigger: default, 120 s timeout). An Iron Control policy scopes which credential is injected; it does not remove the card.
A tool skill whose API is POST-only therefore cannot run unattended on Iron. /add-typesafe-tool (#3848) is the first case: one judgment is one POST api.typesafe.ai/v1/systemone, so a triage loop over 50 items is 50 cards. The skill ships OneCLI-only until this exists.
Proposal
A core approval rule, shared by all gateways like the read-only rule, that an /add-*-tool skill can register at install time:
- Config:
NANOCLAW_GATEWAY_AUTO_APPROVE_HOSTS(exact hostnames, optional method list), or a small JSON list in.env/data/, written by the skill'snc:wire step and removed by its REMOVE.md. - Semantics: a request to a listed host whose method is listed is approved without a card; still subject to the gateway's own egress allowlist and credential grant (Iron
--allow-host,control.ts grant static). Read-only hosts remain a separate, narrower rule. - Spend: the per-host rule does not cap volume. Pair it with a gateway-side rate limit where the gateway has one (OneCLI rules; Iron has none today), and document that.
- Audit: approvals granted by the rule are logged like the read-only rule's, with the rule name.
Acceptance
src/gateway-approval-coordinator.test.ts: a POST to a listed host withtrigger: defaultresolves without a pending approval; an unlisted host, a listed host with an unlisted method, andtrigger: policystill raise a card.docs/gateway-seam.md: rule documented next toNANOCLAW_GATEWAY_READ_ONLY_HOSTS./add-typesafe-tool's Iron path (dropped in #3848) can be restored: static secret + grant +--allow-host+ this rule, and a fresh-VM e2e on Iron runs one judgment with no card.
References
- #3848 review notes:
~/dev/agent-system/state/orchestrator/reviews/pr-3848/review.md, judgment call 1. docs/gateway-seam.md"Requests to those HTTPS domains … receive automatic approval" and theNANOCLAW_GATEWAY_READ_ONLY_HOSTSsection..claude/skills/add-iron-proxy/payload/src/gateway-providers/iron-proxy-approval.ts(card construction, GET/HEAD summary wording).
Source: nanocoai/nanoclaw