Accounts and control
Accounts and control is the group of checks beside every way into the platform: sign-in, API keys, your approval of each setup, sharing by link, and the deletion of your account.
Inputs
- A sign-in in the browser. Sign-in is by OpenID Connect at an identity provider. The signature, the audience, the issuer and the expiry of the provider's token are checked on the platform's side.
- An API key, the credential of an AI assistant. You make a key on your account page. A key is a random value of 256 bits with the scopes read, write and simulate. An AI assistant can also connect by OAuth with PKCE: you consent in the browser, and the result is a key with an expiry.
- Your approval or rejection of a proposed setup, on its review page.
- A share of a simulation: a link from the owner, and its acceptance by a reader.
- A request for the deletion of your account.
Outputs
- For every call, an identity: the person, the workspace and the scopes of the key. A failed check has a typed refusal as its answer.
- For a new key, the key itself, shown once. The platform's copy is a SHA-256 digest.
- For an approval, a record of the setup's identifier, the digest of its content, its revision, your account, your browser session and the time. The identifier of the approval is a SHA-256 digest of these fields.
- For a share, a link with a random token, shown once. The platform's copy is a SHA-256 digest. The first other signed-in account at the link within 7 days is its one reader. A reader has the question, the runs, the results with their labels and the setups of the simulation, for reading.
- For a deletion, these steps in order: every key of the account is revoked, every share is ended, every published Perspective is retired, the workspace memberships are removed, and the account record is deleted along with your private datasets and your connections to AI assistants.
Guarantees and their checks
| Guarantee | Mechanism | Check |
|---|---|---|
| A revoked or expired key is refused at the next request. | The first step of each request of an AI assistant is a lookup of the key's digest among the active, unexpired keys. In a long task, the key is looked up again before each effect. | In a test against a real database, a revoked key has no match. In a second test, a task with a revoked key is refused at the next lookup. |
| Each operation has a permission of its own. | An operation is open to a call under these conditions: the key has the operation's scopes, and the call is within the operation's own rule. A refusal has the same answer as an unknown operation. | In a test, a key with the read scope alone has the reading tool and no other. |
| The approval of a setup is yours. | Approval is a request from a signed-in browser, with the session cookie and the anti-forgery token. A request for approval with an API key is refused before authentication, under the code E-ART-ASSISTANT-APPROVAL. | In a test, an approval with an API key is refused under that code, and the approval store has no new record. |
| An approval is for one exact setup. | An approval is bound to the digest and the revision of one version. A changed setup is a new version. | In tests, an approval of an old revision and a run from a setup without a matching approval each have a refusal as their result. |
| A share link is for one reader. | The first other account at the link is its reader. The owner can end a share at any time. | In tests, a second account at a used link, the owner at the owner's own link, and any account at an expired or ended link each have a refusal as their answer. |
| Share records are permanent. | The share records are append-only in the database: a change or a deletion of a record is an error. | In a test, a change and a deletion each have an error as their result. |
| The records of one account are closed to every other. | Each read has the workspace and the person as its filter. For another account's object, the answer is the same as for an unknown reference. | In tests, a read by another workspace and a read by another person each have an empty answer or the answer 404. |
| A deletion is complete after one or more requests. | The account record is the last step. After a failed step, the account is still in place, and every step is repeated at the second request. | In a test, a deletion with one failing step has the account in place, and the second request has the answer 204. |
The approval records have further kinds. A starter example has the platform itself as its approver. A permit is a record you issue in the browser for one exact setup and one of your keys; with it, your AI assistant can start that one setup before the permit's expiry.
The deletion of an account is separate from the deletion of simulations. To delete a simulation, move it to the trash, empty the trash and confirm in the browser.
Place in the path of a question
Accounts and control is beside all three ways in. An AI assistant's call has a key and a permission for its operation. A browser request has a token, a session and the check of the web interface. An application built with the developer kit runs inside its developer's own service, under the identity of that service. Between a proposal and a run, the approval is your step.