Docs

Decide who may act in your Workspace

Updated View as Markdown

These actions decide who may act in your Workspace, and they let you check what was done. Each action links its entry in the Workspace REST and MCP reference, which states every field. Approvals and people are always free.

Three terms come first. A Principal is anyone who acts in your Workspace, such as a person, a Team or an agent. A Mandate is the signed record of what a Principal may do, and where. A Request is a decision that waits for a person.

Answer a Request

A Request reaches you in two cases: an action was refused for lack of authority, or an approval gate held a write for you.

  1. List the Requests that wait for you with request.list. The earliest deadline comes first. Each Request names who needs the authority, the action, where in the Workspace it reaches, and when it passes to the next person.
  2. Read one with request.get. The answer carries its decision history. For a held write, it also carries the held input and the most the call can cost.
  3. Answer it with request.decide: set request to the Request and outcome to approve, approve-with-edits, request-changes or reject. An edit sets a use limit in maximumUses, or a start and an end time in notBefore and notAfter. A request for changes needs a note.

The answer carries the outcome. An approval also carries the Mandate it issued to whoever asked, and that Mandate stays inside what you hold yourself. A reject or a request for changes issues no Mandate. A Request takes one outcome for good: a second decision is refused and changes nothing. A Request for your own authority goes to someone else.

request.raised.list lists the Requests you asked for, and request.decided.list the Requests you decided.

Decide from the email

We can email you a link to a Request. The link opens the approval page for that one Request only.

  • request.link.open opens the page with the decision you clicked already chosen. You can change it there, and opening the link decides nothing.
  • request.link.view reads what is asked, who asked and by when.
  • request.link.decide records your decision under your own Mandate. Once the Request is decided, the link stops working, and you sign in to Harnesty to see the Request.

Hold a write until a person approves it

An approval gate holds a write until a person approves it. Create one with gate.create on a tool, a Connection or your whole Workspace. It can hold every write, or only the operations you name.

Name who decides first and how long they have. Then name the people who decide after them, in order, and how long each one has. Every person you name must be able to grant that write themselves.

When a held write arrives, the person who decides sees a Request with the held input and its cost ceiling. After an approval the call runs, and it settles at that ceiling or under it. gate.list lists every gate in force.

Read, issue and revoke Mandates

A Mandate records who holds it, where in your Workspace it applies, and what it permits. Together, the Mandates of your Workspace form its Trust Graph.

  • mandate.list lists the Mandates of your Trust Graph. Filter by the Principal that holds them, by a place in the Workspace, or both.
  • mandate.get reads one Mandate with its lineage: every Mandate above it, up to the one your Workspace itself starts from. Each Mandate carries every signed member of that chain, so you can verify the chain yourself.
  • mandate.issue issues one Mandate by hand to a Principal, at a place in your Workspace. The new Mandate derives from the Mandate that lets you issue there, so a grant past what you hold is refused.
  • mandate.revoke revokes one Mandate, and every Mandate derived beneath it ends in the same write. To end a role's Mandate, use member.role.revoke. To end a Policy's Mandate, use policy.revoke.

Give a role to a person, a Team or an agent

A role is a template: a name, the actions it grants, and whether it grants read or write.

  1. List the roles with member.role.list. You see the three roles the platform provides, builder, approver and member, and every role your Workspace defined.
  2. If the default roles do not grant the set of actions you need, define a role with member.role.define. A definition alone grants nobody anything.
  3. Give the role to a person, a Team or an agent with member.role.assign. This issues one Mandate with the role's actions, and it never grants more than you hold.

member.role.revoke takes a role away: the role's Mandate ends, and so does every Mandate that came from it. member.role.retire retires a role your Workspace defined, once nobody holds it. The Workspaces guide says how you form a Team.

Let a Policy issue Mandates for you

A Policy is a rule you set once. When its condition holds, the platform issues a Mandate for one action, so that action stops asking a person. The platform issues as itself and inside what you hold yourself, and each issue is on the record with the Policy as its authority.

  • policy.create creates a Policy. Its condition is a number of plain approvals in a row, or a fact that a connected directory supplies. An approval with edits does not count, and one rejection starts the count again.
  • policy.list lists the Policies in force that issue a Mandate or require a purpose. An approval gate is a Policy too, and gate.list lists the gates.
  • policy.revoke revokes a Policy. Every Mandate it issued stops applying at once, and the next action asks a person again.
  • graduation.reject rejects an action that ran without asking you. The approval count starts again, and the next action of that kind waits for a person.

Search and verify your workspace audit log

Your workspace audit log records each act with who made it and under what authority. The log is tamper-evident, so a change to it shows. Each entry carries a digest, a fingerprint of its own content and of the digest of the entry before it. A change to an entry, or the removal of one, therefore invalidates every entry after it. An entry that ages out whole past the retention window breaks nothing.

  • audit.search searches the log by actor, Mandate, action or time window, and you can narrow a search further by outcome. Every answer names the oldest entry the log still holds, so an empty page never reads as proof that nothing happened.
  • audit.verify checks a range of the log and returns an integrity verdict.
  • audit.export exports a range of the log with every digest. A range too large for one verify or one export is refused, so split it into shorter ranges.
  • audit.receipt asks for the decision receipt of one entry: a short signed proof that the entry is in your log. It returns an Operation at once, the record of work that finishes later. The Operation settles once a signed checkpoint covers the entry.

A new entry is sealed by a signed checkpoint within your plan's checkpoint interval. The entries a checkpoint writes about itself are sealed by the next checkpoint, which waits for your next entry. If our central service is down, a seal can wait until the outage ends. After the outage, every entry except a checkpoint's own is sealed at the latest one interval after your first action, and no later than 24 hours plus one interval after the outage ends.

Bar a Principal to stop it at once

A bar stops a Principal at once, whether it is a person or not. It deletes nothing from your workspace audit log: every entry that names the Principal stays.

  1. Find the Principal with principal.list. It lists every Principal in your Workspace with its kind, its status and whether it is barred.
  2. Bar it with principal.bar. Nothing is deleted and no Mandate is revoked.
  3. Lift the bar with principal.unbar. The Principal acts again under the Mandates it still holds, but a Mandate that a Policy issued does not come back.

Your workspace audit log records each bar and each unbar.

Sources

  1. Workspace REST and MCP reference