Skip to main content

Approve its first action

Governed calls pause until a person decides. The decision happens in Approvals, in the app. What you do first depends on your path.

My own agent​

Your agent gets its tools and policy from a setup proposal. You approve it in Approvals, a different screen from the agent, so the agent never approves itself. Then you decide its first held action.

With the starter agent​

noblecloak starter opens two requests, one after the other. The command waits on each.

RequestTool referenceWhat approving does
Setuptool:noblecloak:propose-policy-setBinds the agent to your service principal, grants it the sandbox tool tool:sandbox:create-note, and gives that tool an ask policy.
Writetool:sandbox:create-noteLets the agent make one call to that tool, with the exact arguments shown.
  1. Open Approvals. On production that is https://app.noblecloak.com/approvals. The command prints the address, and the name the request appears under, while it waits.
  2. Open the setup request and approve it. What an approval covers lists what you agree to.
  3. Open the write request. Approve it, or deny it.

An approval admits one call. The starter sends it once and never repeats it. Requests are decided by a person with the Approvals module, never by the token that opened them.

If setup is already open or already approved​

Where the setup proposal comes from depends on how the credential was made.

  • Created in the browser (a credential downloaded from the app). The deployment opens the setup proposal when the credential is created, so it is already waiting in Approvals. The starter reuses it and says "Setup already open" instead of opening a second one. This holds when you are the administrator who created the credential. For another administrator a second proposal opens, and the one approved second fails as already set up.
  • Created with noblecloak sp create. No proposal is opened for it. The starter declares a new agent named "NobleCloak starter" and opens one.
  • Setup already approved, in the wizard for example. The starter exits with code 13 and opens nothing. Run it again with --skip-setup to make the write.
  • A second setup proposal is open for the same agent. Reject it. The wizard says the same.
  • An administrator rejected the setup proposal. The deployment will not open the same one again, and the starter exits with code 13, naming the rejected approval. It does not declare another agent to get around the rejection. Create new credentials for the agent on Connect; that opens a new setup proposal. Approve it in Approvals, then point the agent at the new credentials file and revoke the old ones on Connect.

If you wait too long​

The command waits 10 minutes for each request by default (--wait <seconds>). Ctrl-C stops the command and leaves the request open in Approvals. After you approve a setup that the command stopped waiting for, run it again with --skip-setup to make the write.

My team's AI apps​

Once a tool is connected and an app is authorized, setup moves through the steps below. The app shows where you are as "Step N of M".

  1. Review your starter policy. A tool with no policy runs under its default, so seeing each default first means nothing runs by surprise. Read each tool's default, then accept the defaults or set policy in Studio.
  2. Invite your approvers. The people who approve held actions need their own sign-in. Invite each approver by email, or skip it if you approve alone.
  3. Make your first governed call. In your AI app, use one of the connected tools. The setup page updates when the call arrives.

A call that policy holds waits in Approvals until a person decides it. How the Approvals screen works is the same on both paths.

Next​

See it in Audit