← All guides · Published November 14, 2026 · Reviewed November 14, 2026 · Ingenious AI team
Auth-Flow Tools in a Scope Declaration: Naming the Minting Path
The short answer
Auth-flow tools are the named exceptions that may create standing access: the tools in your scope config's auth_flow_tools that are allowed to mint, refresh or rotate tokens and keys, or assume roles. Keep the list to the smallest real design — ideally one broker step — because every mint-shaped call outside it is a token-forge finding, and every tool you add 'just in case' is a minting path you have agreed not to see. Check your own log with the free log scan.
What is auth-flow tools?
Auth_flow_tools is the scope config element that declares the legitimate token-creation path. BoundaryVault's token-forge pattern fires when mint_token, refresh_token, create_api_key, assume_role or similar tools run outside it; the declaration is what makes that judgement possible.
The broker pattern is the declaration's friend
Designs that route all token creation through one dedicated step — a session broker that authenticates, mints and hands the agent a scoped, expiring token — produce a one-line auth_flow_tools and a log in which every other mint-shaped call is unambiguously interesting. Designs where every integration refreshes its own credentials produce a long list and a permanent ambiguity about which refreshes were the design and which were the incident. If your current design is the second kind, the declaration exercise is the moment to cost the migration to the first: the security value is not the broker itself, it is the legibility the broker creates.
Refresh utilities are the grey zone
Vendor SDKs and framework helpers often refresh tokens internally, surfacing in logs as utility calls nobody consciously chose. Audit them during declaration: for each mint-shaped tool the log shows, establish whether it is the framework's declared path (list it, with a note) or an accidental capability (remove or disable it). The Northgate pattern from the token-forge guide — a diagnostics utility refreshing outside the broker, fourteen tokens in a troubleshooting window — is the standard grey-zone story: nobody attacked anything, and fourteen unattributable live tokens existed anyway. Grey zones close by enumeration, not by intention.
Assume-role and key creation belong on the same list
The declaration covers the whole minting family, not only the tool literally named mint_token: role assumption creates scoped standing access, API-key creation creates durable access, rotation creates the replacement while the old value lives. Reviewers sometimes declare the session flow and forget the key-creation tool in an admin utility, which then mints in permanent forge-finding noise — or worse, gets reflexively declared to silence the noise, converting a real capability into an unjudged one. Inventory the family from the tool catalogue and the log together, and give each member an explicit verdict: declared path, or removed.
Undeclared flow means minting was never judged
The failure mode to name in reviews: a report with no forge findings and no auth_flow_tools is not a clean minting record; it is an unexamined one. The same holds at the level of the individual agent — a sub-agent with no declared flow whose log shows refresh calls has an open question, not a passing grade. In the quarterly review, list every agent's mint-shaped calls beside its declared flow; any row where the left side is non-empty and the right side is blank is the review's first action item, ahead of any finding the quarter produced.
A worked example: Northgate Robotics
Example — fictional operator, illustrative numbers. Northgate Robotics, a fictional warehouse-automation operator, declared 1 auth-flow tool — its session broker — for 6 picking agents. The first quarterly cross-check listed mint-shaped calls per agent: 5 agents showed broker-only minting (100% of about 41,000 mints in the quarter), and 1 agent showed the diagnostics utility's 14 refreshes, already known from the forge finding and revoked. After the utility lost its refresh capability, the next quarter's cross-check showed 6 of 6 agents minting exclusively through the broker — the state where any future forge finding is, by construction, news.
| Measure | Figure | What it showed |
|---|---|---|
| Declared auth-flow tools | 1 | The session broker, for 6 agents |
| Mints in the quarter | About 41,000 | 100% via the broker for 5 agents |
| Out-of-flow refreshes | 14 | 1 diagnostics utility; tokens revoked |
| Next quarter | 6 of 6 agents broker-only | Any forge is now unambiguous news |
See how the plans differ on log size and batch work on the pricing page, and how the detector reads a log in the detector docs.
The checklist: five actions
- Aim for one broker. Route token creation through a single declared step wherever the design allows; legibility is the security value.
- Enumerate the whole family. Mint, refresh, rotate, create-key and assume-role tools each get a verdict: declared path, or removed.
- Audit framework refresh paths. SDK and helper refreshes are declared with a note, or disabled — never left as ambient capability.
- Cross-check per agent quarterly. Mint-shaped calls beside declared flows; a non-empty left and blank right is the review's first action.
- Never silence noise by declaring. A minting tool added to the list to stop findings converts a capability into an unjudged one.
Run the free log scan · More agent-security tools from Ingenious AI
Related guides
What Is a Token Forge in an Agent Log?
Scope Escape vs Token Forge: How the Two Findings Differ
Reviewing an Agent's Permissions From Log Evidence
How Long Should You Keep AI Agent Logs? An Audit-Trail Retention Guide
Agent Log Forensics: Finding Credential Grabs After the Fact
Auditing the auth flow itself
Once a quarter, point the same forensic habit at the declared flow. List every token the broker minted in the period from the log — minting is logged like everything else — and check the count against the work it served. Refresh volume that grows while task volume stays flat is a smell: a retry loop, a cache that stopped caching, or something quietly harvesting standing access. None of those is a token-forge finding, because the minting ran inside the declared path. All of them are reasons the declared path exists as a named, reviewable thing instead of an assumption.
And when the broker design changes — a new identity provider, a shorter token lifetime — version the declaration with it. The forge judgement for a March log must run against March's flow. Judging old minting against a redesigned flow manufactures findings in one direction and absolution in the other.
Sources
Frequently asked questions
What are auth-flow tools?
The scope config's auth_flow_tools: the exact tools allowed to mint, refresh or rotate tokens and keys, or assume roles. Mint-shaped calls outside the list are token-forge findings.
Why keep the list to one tool?
A single broker makes the declaration legible: every other mint-shaped call is unambiguously a finding. Long lists recreate the ambiguity the pattern exists to remove.
Our framework refreshes tokens internally. Declare it?
Establish which utility does it and declare that path with a note — or disable it if it is accidental. Ambient, unexamined refresh capability is the grey zone where forge findings are born.
No forge findings and no declared flow — are we fine?
No. Minting was never judged. That combination is an open question, and in a quarterly review it outranks the quarter's actual findings.
Does rotation count as minting for the declaration?
Yes — rotation creates the replacement credential while the old lives. The rotating tool belongs in the declared family, with the same verdict discipline.