GoFin documentation

How GoFin enforces financial limits and approvals

Your agent proposes the actions. GoFin’s protected broker checks the authority and financial boundaries before dispatch.

Continue in your agent
Follow https://gofin.sh/docs/financial-controls/ to explain my GoFin financial limits and approval settings. Help me inspect them without changing settings or moving funds.
      

1. Instructions and enforced boundaries

“Spend no more than $50” in an agent conversation expresses your intent. It becomes an enforced boundary only when it is represented in GoFin’s protected policy or the approved operation, authorization or plan. A strategy description or plan name does not grant financial authority.

With a protected connection, the broker uses credentials and signing keys without returning their values to the agent. The agent can discover operations, inspect permitted account data and prepare requests. The broker independently validates the concrete request before dispatch.

This boundary assumes an agent with ordinary user access. It does not protect against an agent with root access or control of your human Terminal, a compromised operating system, or credentials already exposed in agent-readable files. Protected enrollment cannot revoke earlier disclosures.

2. Understand your financial limits

These instructions assume the latest GoFin release. Start with these inspection commands; they do not change settings or move funds:

gofin policy show
gofin yolo status
  • Movement limit: caps gross movement plus maximum execution costs for a movement.
  • Rolling 24-hour allocation: a shared budget across accounts and commands for gross movement, maximum costs and additional borrowed allocation. Its command-line name is max-run-allocation-usd.
  • Operation and authority bounds: constrain the exact accounts, assets, destinations, quantities, costs, minimum receipts and allowed variations for the selected workflow.

The rolling budget measures turnover, rather than net portfolio value. Moving funds out and back consumes budget again. Unresolved submissions keep their reservation beyond 24 hours until reconciled. Submitted writes remain charged for at least 24 hours after terminal settlement, including proved failures; unsubmitted denials or cancellations release their reservation.

0 means no personal ceiling for that policy field. It does not mean zero spending is allowed, and it does not remove operation bounds or authorization requirements. The policy output shows your reserved or charged allocation usage; an error or missing observation is not zero usage.

Missing trusted prices normally block writes that require USD valuation. A human-enabled unpriced-exchange exception excludes those assets from USD coverage; a $0 estimate is not proof that an asset has no value. Inspect the policy’s warning and coverage before relying on its totals.

3. Choose the scope you approve

  • An exact action: with Yolo off and no applicable existing authority, a standalone financial write requires fresh Touch ID for its concrete scope. A materially changed request or expired approval needs new approval.
  • A bounded authorization: where supported, one approval permits attempts within fixed identities, allowed variations, cumulative limits and an expiry. Completed amounts, partial fills and actual costs consume that authority.
  • A named plan: one approval covers a reviewed sequence and its enforced step permissions, dependencies, aggregate bounds and duration. GoFin still requires an explicit request for each eligible step; authorizing a plan does not start it.

With Yolo off, creating bounded authority or approving a named plan requires fresh Touch ID. Your agent should discover the operation, prepare exact inputs and preview where supported. Review the accounts, destinations, amounts, costs, minimum receipts, permitted variations and duration before authorization. A preview does not reserve funds, authorize, submit or guarantee success.

Bounded authority allows fresh candidates within the approved scope without repeated approval. It cannot widen identities or reset consumed amounts. A plan’s future funding becomes usable only after the predecessor’s settlement and exact destination credit are verified. Quote freshness and authority expiry are separate checks.

Read the operation’s fee treatment: most costs use hard caps, but a supported venue-calculated fee mode can require explicit consent to an uncapped fee. A finite reserve in that mode is budget headroom, not a guaranteed fee maximum. See the cost and authorization details.

4. Change your limits yourself

Run protected policy changes in your own Apple Terminal or a human-controlled macOS system OpenSSH session. GoFin requires fresh sudo and exact protected terminal confirmation. Configuration approval moves no funds and grants no financial authority.

For example, the following sets a $100 movement limit and $500 rolling allocation limit. Choose your own values before running it; both fields are required:

gofin policy set --max-movement-usd 100 --max-run-allocation-usd 500

Inspect gofin policy show afterward. A change does not expand existing approvals or replay financial actions. Reconcile nonterminal operations before changing policy. If GoFin reports POLICY_SAVE_UNCERTAIN, inspect the active values before retrying because the change may already have taken effect.

5. Understand Yolo before enabling it

Yolo is dangerous: it lets agents request financial operations without further per-action human approval. It is off by default. Only you can enable or disable it through a verified Apple Terminal or macOS system OpenSSH session with fresh sudo; enabling requires an explicit danger-warning confirmation.

# Human only: enable after reviewing the warning
gofin yolo on
# Human only: disable
gofin yolo off
# Human or agent: inspect
gofin yolo status

Yolo retains configured limits, exact identities, cumulative caps, expiry, pricing, simulation, fee and receipt checks. It grants no permission to change credentials or protected policy. It does not schedule work, execute a plan automatically or retry an action; each operation or eligible step must still be requested.

Disabling blocks new Yolo submission admission and invalidates unused Yolo-derived authority. A submission already durably admitted may finish dispatch afterward. Re-enabling does not revive old grants or plans. Disabling Yolo does not cancel an order or transaction already sent; human-approved bounded authority retains its own normal rules.

6. See a limit rejection

Synthetic engine example: a local fixture values a proposed transfer at $1 with $0 maximum fees and no additional borrowing. No real exchange or wallet is used. The test keeps synthetic Yolo authority enabled to check that it cannot bypass either policy limit.

CaseMovement ceilingRolling ceilingExpected rejection
Movement cap exceeded$0.999999$1MOVEMENT_LIMIT
Rolling cap exceeded$1$0.999999ALLOCATION_LIMIT

In both cases, the test asserts no approval record, no submission record, zero calls to the synthetic adapter’s submit function and $0 allocation usage. This demonstrates rejection before submission, even with synthetic Yolo enabled.

To reproduce in a GoFin source checkout with its Rust prerequisites:

cargo test -p gofin-engine active_yolo_does_not_bypass_personal_movement_or_rolling_limits

This is a test-only operation, not a production CLI transfer command. It verifies engine logic; it does not establish native Touch ID behavior, credential isolation, live exchange rejection or settlement.

7. Cancel authority and reconcile uncertain work

Missing, expired or out-of-scope authority cannot authorize a new dispatch. Refresh the evidence and review a new scope when necessary. If a request might already have been submitted, reconcile it first.

Use the real identifiers returned by GoFin in place of these placeholders:

# Inspect and reconcile the original work
gofin operations
gofin status OPERATION_ID
gofin authorizations status AUTHORIZATION_ID
gofin plans status PLAN_ID
# Revoke future dispatch under the selected authority
gofin authorizations cancel AUTHORIZATION_ID
gofin plans cancel PLAN_ID

Revocation requires no Touch ID and stops future dispatch under that authority. It does not reverse settled effects or cancel an already submitted venue order or transaction. A venue cancellation, where supported, is its own financial operation with its own authority.

After a timeout, interruption or lost response, preserve the original operation ID and follow its status and next_action. An order ID or transaction hash alone does not prove completion. Uncertain work keeps its reservation; do not create a new identity or switch routes to escape it. Start a new attempt only after GoFin proves the prior candidate was not submitted and directs that recovery.

References and next steps

Use gofin capabilities, then gofin explain NAME and gofin schema NAME for current operation definitions. See the financial limits reference, security design and synthetic engine tests.

Start with the read-only trial, or Connect your accounts and wallets, then make a first read-only request.