Skip to content

See what an agent may reach when it works for you, step by step

An agent works as itself, on a role the office sets, and adds your access only when your role allows it; every piece of its work names both the agent and the person behind it, so nothing an agent does is anonymous.

5 steps·5 min read·Agents

An agent works as itself, on a role the office sets, and adds your access only when your role allows it; every piece of its work names both the agent and the person behind it, so nothing an agent does is anonymous.

What it is

  • Each agent holds roles of its own in Builder → Roles (Agent role - Coin and the others, and for some Global Reader): table by table, what it may read and change, and which operations it may run. An agent's roles can reach records the person it works for cannot.
  • Add to Agent Access is an extra right on a person's role. Held, an agent working for that person reaches what either of them reaches; not held, the agent works with its own role only. A Global Administrator always lends it.
  • Per table, Coin can be switched off on Builder → Agents → Coin → Tables: nothing of that table reaches a model.
  • The Impersonation Logs and the audit keep both names on agent work: the person who started it and the agent that did it. A Run As Rule with Applies To Agents forbids agent-started work from running as a chosen user.

Good to know

  • The access is decided by the database on every read and write, against the live roles, so a role changed now counts at the next call.
  • Some operations are never offered to an agent whatever the roles say, and no agent ever reads a secret setting's value.
  • When an agent working on its own wants to change a value a person set, the change waits as a review for a person to keep or undo, and a person's yes is applied with that person's own access.
  • Nothing was changed for this guide: the roles, the switches and the rule form were only opened.

Before you start

  • An agent in Codossier Office is never an unnamed machine. Each one (Coin, Matte, Tenor, Nash, Sci, Kuztom) is a user account of its own, with roles of its own, and every piece of its work also names the person or schedule that started it.
  • When you ask an agent for something (a chat, a skill, a build), it works as itself, on its own roles, for you. Your own access is added to the agent's only if your role holds the extra right Add to Agent Access; a Global Administrator always lends it. Without it, the agent works with its own roles alone. So what an agent may reach is the office's to set, in two places: the agent's roles and your role. Either way, the agent may reach records you cannot, when its own roles reach them.
  • This guide shows where each of those lives, the switch that keeps a table away from Coin, and how to check afterwards who started what and as whom. Nothing in it is changed or saved.

1Each agent works on roles of its own: Builder → Roles

Open Builder → Roles. Codossier Office's agents hold roles like any user. Most have one made for them, Agent role - Coin, Agent role - Matte, Agent role - Nash, Agent role - Tenor, Agent role - Kuztom, and some also hold a broad role: in this office Matte and Nash also hold Global Reader, and Sci holds Global Reader alone. An agent role reads like any person's: Global access (here None (granular)), then Access by table, the tier on each table (Blanket for every record, Assignee for the records assigned to it), then the API messages it may run.

Here Coin is a Contributor on accounts and activities, may only read its context tables, and on the Agent Relay reaches only the items assigned to it. So an agent's roles can reach records the person it works for cannot: what the agents hold is a decision for the office. An administrator changes an agent's role like any other, and Save applies it. This picture was only looked at; nothing was saved.

What an agent may reach when it works for you, step 1: Each agent works on roles of its own: Builder → Roles (Nothing by default; Its tier, table by table; Every record of the table)
1Nothing by default2Its tier, table by table3Every record of the table

2Your access is added only if your role says so: Add to Agent Access

On the same page, switch to Messages × roles, pick All and search for Agent Access. Add to Agent Access is an extra right on a person's role: an agent I start works with my access added to its own. Tick it on a role and, while an agent works for someone holding that role, the agent reaches whatever either of them reaches. Leave it off and the agent works with its own roles only: it may then reach less than you, and never more than its roles.

Here Global Contributor and Global Reader hold it and Directory Member, the role every new person gets, does not. Global Administrator holds every message by rule, this one included. Add other roles as columns with + role; nothing changes until you press Save.

What an agent may reach when it works for you, step 2: Your access is added only if your role says so: Add to Agent Access (The extra right; Not given: the agent's own role only; Administrators always lend it)
1The extra right2Not given: the agent's own role only3Administrators always lend it

3Keep a table away from Coin: Builder → Agents → Coin → Tables

Roles say what an agent may reach. A second switch says what Coin may send to a model at all. On Builder → Agents → Coin, under Tables, each table Coin is set up for has a Coin switch. Off, nothing of that table reaches a model (its contract and settings are kept), and an AI call that would carry its records is refused, whoever asks.

The same row says when Coin refreshes the table's records (On create, On edit), how many it has read, and what that cost this month.

What an agent may reach when it works for you, step 3: Keep a table away from Coin: Builder → Agents → Coin → Tables (Coin on or off, per table; When it refreshes)
1Coin on or off, per table2When it refreshes

4Check who started it and whose rights it used: Impersonation Logs

Every time an agent is dispatched (started by a save, a workflow, a button or a job) or anything runs as a configured Run As user, Codossier Office writes an Impersonation Log row. Open the Impersonation Logs table (type its name in Search tables on the left panel) and search agent dispatch: the Initiating User is the person who started it (blurred here), the Run As User is the agent that did the work (here Matte and Coin), and Source says how it was started.

The audit keeps both names on every write too: the identity the write ran as and the person who started the work, so "who changed this?" always has two answers.

What an agent may reach when it works for you, step 4: Check who started it and whose rights it used: Impersonation Logs (The person who started it; The agent that did it; How it was started)
1The person who started it2The agent that did it3How it was started

5Forbid an agent from running as someone: a Run As Rule

Automated work (a workflow, a job, a script, a button) can be set to run as a chosen user. A Run As Rule forbids running as a given user: pick the Run As User, switch on Applies To People, Applies To Agents or both, and, to narrow it, name one table in Table Name. With Applies To Agents on, work an agent started can never borrow that user's rights.

Open the Run As Rules table and press New. This form was opened and left empty; nothing was saved.

What an agent may reach when it works for you, step 5: Forbid an agent from running as someone: a Run As Rule (When an agent started it; The user it may not run as; Optional: one table only)
1When an agent started it2The user it may not run as3Optional: one table only

What next