Object types and gates
An object type is a kind of record a workspace keeps: a deal, a request, a data room. Records are created by agents, connectors and the API (POST /api/v1/objects upserts by external key).
An object type
# objects/deal/type.yaml
slug: deal
label: Deal
code: DL # 2–5 uppercase letters; record ids read DL-123
icon: handshake
schema: # JSON Schema for the record's fields
type: object
properties:
stage: { type: string }
amount: { type: number }
nextStepAt: { type: string, format: date }
sourceRelevance: { hubspot: 1.0, gmail: 0.6 }
classificationPromptFile: ./classify.md
Other keys: description, classificationPrompt, fewShotExamples, rollups, gates. Agents read and write records only for the types in their objectTypes.
Things owed
When each record of a type is something to finish (a follow-up, a to-do, an owed touch), say so with x-owed: true:
# objects/follow-up/type.yaml
slug: follow-up
label: Follow-Up
schema:
type: object
x-owed: true
properties:
owed_action: { type: string, description: The specific touch owed }
channel: { type: string, enum: [email, linkedin, phone] }
Records of that type then carry their verbs wherever they are read:
- The record's page and its preview pane show one bar under the title: Do it, Done and Drop on an open or approved record, Reopen on a finished one. The preview leads with the record's age ("opened on Jul 16, 2026").
- An open record also offers Snooze: tomorrow, next Monday or in two weeks, at 9am. It's put off to that date with Undo, and the bar says "Snoozed until …" with Wake. A snooze is a date on the record, not a state, so once it passes the record is open again. The agent snoozes through
update_objectwithsnoozedUntil(an ISO date, ornullto wake), and readsrecord_state: open, snoozed until <date>, so it leaves the record alone until then. - A proposed record (status
candidate, waiting for a person in Review) shows Approve and Dismiss. They make its Review decision in place. An approved record gets the owed buttons. - A record named in a chat answer has a dotted underline and opens in the preview pane on a click. ⌘-click or Ctrl-click opens its page in a new tab.
- Records listed under a chat answer show a ✓ on hover that marks the record done, with Undo.
Done and Drop move the record's own status (open, active, done, closed, dropped, archived). They go through objects.update_meta, the action an agent uses to close a record (update_object with status), so every click is on the record's history with Undo and follows your trust rules. Do it is the one button that needs the agent: it opens the sidebar chat with the record attached and asks the team to do what the record owes, and anything that goes out to someone waits for your approval.
A type without x-owed shows no verbs. A type that declares its own status field moves it by its own transitions.
Hand-off gates
A gate checks work when it crosses a line — a field changing to a value (becomes) or any write of a field (written: true). Deterministic requirements run first; an optional judge reads the work against the seat's rubric.
gates:
- name: proposal-ready
when: { field: stage, becomes: [proposal] }
producedBy: northwind-lead # where a failure is returned
require:
- field: amount
present: true
missingMessage: a proposal needs an amount
- field: contacts
minItems: 1
judge:
rubric: proposal-rubric # a skill slug
escalateBelow: 0.6 # default
sampleRate: 1 # default: every crossing
Requirement checks: present, minItems, oneOf, maxAgeDays, allItems, anyOf, notMatches, readThisTurn, with if / unless conditions and message, missingMessage, valueMessages for what the seat is told. A failure goes back to producedBy with the reason. When the judge's confidence in its own verdict falls below escalateBelow, it goes to a person as a Gate ask. Workspace-wide judge defaults go in defaults.gates in workspace.yaml.