Docs Personal Workplace

Personal Workplace

The Personal Workplace is your own view of one workspace: what happened today, which goals you own, which knowledge you are allowed to read, your own assistant preferences — and a personal-connection family that lets the assistant work with your own mail strictly inside a grant you verified. Everything below is scoped to the person you are signed in as: another user’s rows, goals, preferences and mail never appear, and a request that names a different workspace answers the same absence as an unknown one.

Where it is in the interface

  • Autonomous Missions page — the workplace console with the Today feed, your goals, the Knowledge and experience panel and the Triggers and schedules panel. My preferences opens your preference dialog.
  • Knowledge editor — Personal preferences opens the same preference dialog.
  • Settings → My channels — your notification channels (the workplace console links here as My connections).

Today, knowledge and goals

The overview distinguishes work waiting for your approval, paused work and interrupted work. The success percentage covers completed missions; the model-usage chart has its own stated period. Missing usage data is shown as unavailable, not as zero. Knowledge removed from the current view is grouped by the reported reason, such as expired or withdrawn; undisclosed reasons remain unnamed.

A knowledge card recorded by Mockarty itself — for example a mission step or a recorded failure — is titled with a translated summary in your interface language, not with the internal sentence the recorder stored. The exact recorded sentence, identifiers, digest and source reference remain under Technical details and attribution, where an operator can still read them. A statement written by a person is shown as written.

If every Today item is omitted by the view budget, the overview explains that work was left out. It does not offer a first-goal action or claim that there is no work. Ending the signed-in session clears this personal view; responses from the ended session do not refill it.

When a teammate @-mentions you in a discussion, the unread mention appears in Today as a private row: only you see it, and it leaves your overview once you read the thread. A message that names several people gives each of them their own row. The bell notification previews the message. Select Open to read the discussion in its workspace.

The paths in the table are relative to /api/v1/namespaces/{namespace}/workplace. The Today and Knowledge lists show only records you can access. Their dropped field gives reasons for omissions that the response can disclose.

Method Path Purpose
GET /today One page of today’s activity (?limit=, ?cursor= for the next page; default page size 50, maximum 200)
GET /knowledge One page of knowledge cards you may read (?limit=)
GET /knowledge/{factId} Exactly one knowledge card, or a typed absence body when you may not read it
GET /goals The goals you own, plus the node’s current trigger availability (manual, event, schedule)
POST /goals/admit Admit one durable goal occurrence — see below
GET /preferences Your effective typed preferences
PUT /preferences/{prefType} Save one of your typed preferences

Request a test plan

On the Autonomous Missions page, choose Create a test plan. Enter the goal, optional acceptance criteria (one per line, up to 64), a positive whole token limit and a future deadline in your local time. The goal supports up to 4096 UTF-8 bytes and each criterion up to 128 bytes. The token limit covers model input and output together; model use consumes your available budget.

Choose Propose a plan. After acceptance, Open planning run opens the exact mission for that request. An accepted request is not yet a completed plan. The form is available only when the current workspace reports that manual planning can run.

If submission has an unknown outcome, the form blocks another submission, including after reloading the same tab while its session storage is retained. Choose Check request status. If the exact saved request is found under your current access, Open planning run opens it and clears only that request’s lock. An unknown or unavailable result keeps the lock; checking never submits another request. Closing a tab or clearing browser storage does not prove that the original request was rejected. If storage fails before submission, restore it and reopen the form; a previously unknown request stays locked.

First read GET /goals and check its availability. This is the current node’s effective availability: a missing or failed response does not mean that an action is available. With manual: true and producer: "native/testing.plan", you can request one textual test plan. This profile uses the goal and acceptance criteria you provide; it does not run tests, read connected services or knowledge, delegate work, or execute the proposed plan. Event starts are unavailable on this profile. Scheduled starts use the separate schedule controls below when the server reports them available.

POST /goals/admit requires your current workspace access and both connection:write and mission:write. The request contains goal, trigger, source and occurrenceId:

  • Set trigger to manual. In goal, set triggers to ["manual"] and allowedCapabilities to ["testing.plan"].
  • Supply contractVersion: "mockarty.workplace-goal-policy/v1", a stable goal id, a positive revision, the desired outcome, and optionally acceptanceCriteria.
  • Set a future deadline in RFC 3339 format and a positive integer budget.tokensTotal. Leave budget.tokensPerDay and budget.usdCap omitted or zero; this profile does not support those limits. Leave delegation and scope omitted or empty.
  • No connection grant is needed for this text-only profile; grants may be empty. If you include grants, they must still pass the current ownership, revision and expiry checks. Including a grant does not enable access to the connected service.
  • You may omit goal.owner and goal.namespace: the server fills them from the authenticated caller and workspace. Explicit values must match; a foreign owner or workspace receives 404 not_found.
  • Choose a stable source label and occurrenceId for this request. Keep the same identity when checking an uncertain delivery; a new identity is a new request. Optional triggerText is used only for correlation, never as instructions or permission.

A successful response includes missionId and status; follow that mission to read the plan or its failure. Admission is not a completed plan. Current access, supplied grants, deadline and token budget remain constraints during planning. Re-delivering an admitted occurrence returns 409 duplicate_admission without creating a second mission. A conflicting admission returns 409 admission_conflict; review current state before deciding what to submit next.

If the request times out or returns 500 or 503, its delivery outcome may be unknown. Do not automatically create a new occurrence or resubmit with new identifiers: first check the goals and missions for the original request. workplace_unavailable also covers an unavailable runtime or an unsupported execution profile; a listed goal does not by itself prove that it can run.

GET /goals/plan-receipt?goalId=<UUID>&occurrenceId=<UUID> checks only requests from this form: revision 1, trigger manual, source native/workplace-plan-form. It returns state: "accepted" with missionId, goalId, occurrenceId, namespace and owner, or state: "unknown". It requires the original authenticated owner, current workspace access and connection/mission read permissions. An expired execution deadline does not hide an existing receipt; current supplied grants must still be valid. Unknown is not proof of rejection.

Scheduled test plans

When the remaining total budget cannot cover another run, the schedule is disabled and its revision advances. A form opened before that change cannot re-enable it with an old revision: reopen the current settings, review the budget and explicitly save your decision.

Invalid fields are highlighted and the first one receives focus. Saving unchanged settings keeps the existing revision and next run. When you edit other settings, the original deadline keeps its exact time; choosing a new deadline uses the minute entered in the form. Schedule controls require an authenticated workspace.

In Triggers and schedules, create a recurring test-plan request with a goal, acceptance criteria, cron expression, time zone and deadline, or a one-shot request with an absolute runAt instant instead of a cron expression. A one-shot fires exactly once at that instant and has no next run afterwards; a past instant is refused rather than fired immediately. Set a positive Tokens per run limit and a Total token budget at least as large. Scheduling is available only when the server reports schedule: true and producer: "native/testing.plan"; an unavailable server response does not enable it. This lane produces textual test plans. It does not send messages or execute the tests in a plan.

The list shows the next occurrence, the reason a run could not start, allocated tokens and observed usage separately. Allocation limits the total tokens assigned to occurrences; it is not a bill or a measurement of completed model use. Editing a schedule does not reset its allocation. An unfinished occurrence prevents another overlapping run.

Pause a schedule to stop future starts, or edit it using its current revision. Use Enable schedule to enable a disabled definition. If another edit or a budget change causes a conflict, compare the saved settings with your retained draft and explicitly confirm a new save; the editor does not retry automatically. Removing a schedule prevents future admission; cancel any already running mission through that mission’s controls. If a save or removal has an unknown outcome, use Check request status. The form checks the original goal, revision and saved settings; a missing row alone does not confirm removal. It keeps the request locked while the result is uncertain.

The following paths are relative to /api/v1/namespaces/{namespace}/workplace. Reads require current connection and mission read access; writes require current connection and mission write access. Only your own schedules are returned.

Method Path Purpose
GET /schedules List owned schedules and current availability
GET /schedules/{id} Read one current schedule
POST /schedules Create a schedule with a fresh goalId and revision: 0
PUT /schedules/{id} Replace editable settings using the current revision
DELETE /schedules/{id}?revision=N Remove a schedule at its current revision
GET /schedules/by-goal?goalId=<UUID> Reconcile the original request without submitting it again

Create and update accept goalId, goal, acceptanceCriteria, cron or runAt (exactly one: cron for a recurring schedule, runAt as an RFC 3339 instant for a one-shot), timeZone, deadline (RFC 3339), perRunTokens, totalTokens, enabled, paused and revision. runAt is stored and compared in UTC. For a one-shot, nextDue equals runAt until it fires; afterwards it is the zero time, meaning there is no next occurrence. timeZone must be an IANA name such as Europe/Moscow or UTC; it is validated even for a one-shot, whose instant is absolute. The server supplies the owner and workspace. Unknown, duplicate or ambiguously cased fields are rejected. Successful writes return the new revision; stale revisions return 409 schedule_conflict. A capacity refusal returns 429 schedule_capacity. A rejected definition returns 400 with a typed code: one_shot_in_past, schedule_mode_invalid (both modes or neither), or timezone_invalid; nothing is stored for a refused definition.

Status reconciliation returns state: "accepted" with the current schedule, state: "deleted" with the exact identity and deletion revision, or state: "unknown". Compare the returned identity, revision and settings with the original request; a later edit is not proof that your write succeeded. An unknown result does not authorize an automatic retry.

Your typed preferences

Workplace preferences are separate from the assistant chat preferences: they describe how you work, not how the assistant answers. The saved types are a closed set — role, working_hours, notifications, models, personal_facts — and the payload for each is strict typed JSON of at most 8 KiB; a document with unknown fields is refused rather than silently stored. Values never widen your access or change mission limits.

  • GET /preferences returns the effective set: your personal values override workspace defaults per type, with the deciding scope, the deciding revision, anything dropped (with the reason) and a digest of the effective document.
  • PUT /preferences/{prefType} creates or updates your own personal row. The body carries payload and, for updates, expectedRevision: a positive revision that no longer matches the stored one answers 409 (revision_conflict) — re-read and decide whether to retry. A scope other than your own personal scope is refused with 403.

Personal connections, inbox and replies

A personal connection is a grant that lets the assistant work with one of your own mail accounts — reading a mailbox and sending replies — strictly under a verified grant with an expiry and a limited operation list. This mirrors the connection authority used for workspace connections, but scoped to you personally: the acting principal is always the signed-in user, never a service account.

Provider surfaces and certification. The live mailbox surface documented
on this page is IMAP/SMTP. The delegated Microsoft Graph adapter exists in the
source tree (internal/workplace/mail) and is covered by source tests:
/me resource fence, delta/nextLink/deltaLink handling, bounded resync,
Authorization: Bearer construction, the sendMail payload and typed error
mapping. It is not live-certified against an owned Microsoft 365 tenant,
so reading or sending through Graph is not claimed as a working live path.
Graph live use needs an Entra app registration with delegated Mail.Read and
Mail.Send consent for the signed-in user. Until that evidence exists, use an
IMAP/SMTP mailbox connection for live mail.

Method Path Purpose
GET /connections Your own admitted connections
GET /connections/diagnostics?limit= Read-only per-operation readiness of your own grants (ready, needs_setup, reauth_required, unsupported, unknown); no provider is probed and no credential or endpoint is returned
POST /connections/mailbox Create a standalone mailbox connection, grant and binding in one step. Body names connectionId, grantId, provider (imap or smtp — the primary surface), account, endpoint, an exact-version secretRef ({storeId,key,version}), the wire surfaces (imap and/or submission, each {host,port,mode}), targetPolicy and expiresAt; the primary surface defaults from the endpoint, and one connection may declare both the IMAP read and SMTP submission surfaces for the same account
GET /connections/{grantId}?revision= One connection (a positive grant revision is required)
POST /connections/{grantId}/revoke Revoke your grant; body {"revision":N}
GET /inbox?grantId=&grantRevision=&provider=&account=&mailbox=&limit=&afterSeq= One gated page of mailbox metadata
POST /inbox/sync Bounded IMAP sync into the inbox projection; body needs grantId, grantRevision, provider:"imap", account, mailbox (default INBOX) and a positive envelopeIncarnation; optional pageLimit and maxPages; returns epoch, outcome, pages, applied, replayed, skipped and the cursor
GET /inbox/search?…&q= Bounded metadata search inside the same gate (local projection)
POST /inbox/search Search the mailbox on the provider (IMAP SEARCH: from, subject, body, since, before, unseen)
GET /inbox/messages/body?…&remoteEventId= Complete text, untrusted HTML and attachment metadata for one message; pass the exact remoteEventId from the inbox. Reading does not mark Seen
POST /attachments?grantId=&grantRevision=&provider=imap&account=&mailbox= Upload a reply file using multipart field file or JSON {filename,contentType,contentBase64}. Returns a reference for the draft’s attachments array; sends nothing
GET /inbox/folders?… The provider’s folders/labels
POST /inbox/messages/flags Mark messages read/unread ({"uids":[…],"seen":true})
POST /inbox/messages/move Archive ({"archive":true}) or move ({"destination":"…"}) messages
POST /inbox/labels Apply a label (additive copy) to messages
GET /inbox/messages/attachment?…&uid=&part= Download one attachment (raw bytes, at most 8 MiB)
GET /inbox/messages/attachment.json?…&uid=&part= The JSON twin for transports that cannot stream binary (the assistant’s MCP tools): the same bounded bytes base64-encoded with their part, filename, type and size
POST /drafts Assemble an unapproved reply draft under your grant; returns draftId and revision
POST /drafts/{draftId}/approve Approve that exact draft revision; body {"revision":N,"grantId":"…","grantRevision":N}
POST /replies Send an approved revision; body {"draftId":"…","draftRevision":N,"grantId":"…","grantRevision":N}
GET /replies/{effectId}?grantId=&grantRevision= Read the durable send receipt of one dispatch. A receipt records that the message was dispatched, not that it was delivered; a receipt whose sender your grant does not cover is the uniform 404

What the API guarantees:

  • A sync page that contains a message larger than the discussion envelope bound is skipped, not truncated: the response names the skipped message ids in skipped, the cursor still advances past them, and the rest of the page is projected. This keeps one oversized newsletter from blocking the whole mailbox.

  • Every read re-verifies the grant. A revoked, expired or re-issued grant fences reads, totals and search alike: a denied reader loses the counts together with the content, not just the messages. Revoking a grant also retires the mailbox binding it published, so reconnecting the same account leaves one live identity instead of two ambiguous ones.
    Open a message in the mail tab to load its complete text. The formatting button displays HTML in an isolated preview without scripts or external images. Download attachments separately. Replies retain the original message correlation. Add your own files, save the draft, review recipients, text and selected files, then separately approve and send that exact revision. Editing the reply requires saving and approving a new revision. The limit is 8 MiB per file and 16 MiB of selected files per reply. Only explicitly selected files are sent; incoming attachments are never forwarded automatically.

  • Inbox rows are metadata only — sender, subject, a short snippet, an envelope digest, the received time, counts and the provider’s read flags. Message bodies are never returned by the inbox read; the provider search returns a snippet and attachment metadata (part, name, type, size), never attachment bytes, except through the explicit download route.

  • Two searches, two purposes. GET /inbox/search filters the already-synced projection; POST /inbox/search asks the mail server itself, so it also finds messages the projection has not synced yet. Both require the same fresh grant. The provider search is read-only and never marks a message read.

  • Management acts on the provider first. Mark read/unread, archive/move and label operations run against the mailbox under the same grant (mail.target_write for mutations, mail.target_read for reads). After a successful mark the projection row is refreshed, so the inbox list shows the new state; after a successful move the moved messages are tombstoned in the projection and leave the source mailbox listing. Labels are folders on IMAP providers: applying one copies the message into that folder (additive), and removing a label is refused because IMAP has no non-destructive primitive for it.

  • The acting identity is server-resolved. Drafts and replies carry the mail coordinates, but the sender, the workspace and the grant are taken from your session and the fresh verification; the draft’s source account must be the account your grant names.

  • A draft from POST /drafts is inert: it is assembled and held server-side but NOT approved and NOT sent. Approval is a separate act (POST /drafts/{draftId}/approve) over that exact revision, bound to you and to the grant revision it was created under. Replaying the same approval is idempotent; a stale revision, a different grant or a different principal is refused. An approved draft is stored durably, so it remains sendable after an admin restart.

  • When a reply sender is configured, its connected mailbox, connection revision and grant must match the approved revision. A different current grant cannot substitute for the one you approved; a mismatch returns 409 before sending. POST /replies never sends a client-supplied envelope: it dispatches the server-held approved revision, so content cannot be swapped after review.

  • If a configured reply sender returns 503 after submission, delivery may be unknown: a missing confirmation does not prove that the message was not sent. Resolve the original delivery outcome before sending again; do not automatically resubmit the draft with new identifiers.

If access is restricted to selected senders, other senders’ messages and attachments are not exposed. totalLiveExact: false or matchedExact: false means the count describes only admitted rows in the current bounded result; the full mailbox count is not disclosed.

Rollout status

The personal-connection family is mounted when the node has the personal-grant authority and the inbox projection. POST /connections/mailbox is how you connect a standalone mailbox: it creates the connection, grant and binding together from an exact-version secret reference, so no credential is typed into the request. One connection may carry both the IMAP read and the SMTP submission surface for the same account.

Lanes are independently wired: when one is not configured on this node, only its routes answer 503 with the typed code below (inbox_sync_unavailable, mail_ops_unavailable, workplace_unavailable) while the rest of the family keeps working. A missing lane is never reported as ready.

Refusals you can meet

Response Code Meaning
400 invalid_request Malformed body, unknown preference type, or a payload that is not a valid typed document (the Today, knowledge, goals and preferences lanes)
400 invalid Malformed grant or inbox request
400 invalid_draft A draft that cannot be assembled: header injection or a bound that is exceeded
400 invalid_reply A reply envelope that fails validation (header injection or a bound)
400 invalid_revision A positive grant revision is required
400 model_unavailable A model named in your preferences is not available to you
401 unauthenticated No authenticated session
403 scope_refused A preference scope other than your own personal scope
403 access_denied Your current access does not cover the preference surface
403 permission_denied Goal admission no longer has the required current access or grant
404 not_found Uniform absence: unknown id, an id that is not yours, or a request naming a different workspace — all three are indistinguishable on purpose
404 fact_not_confirmable A personal-fact reference cannot be confirmed: absent, foreign or terminal
409 duplicate_admission The same goal occurrence was already admitted; no second run is started
409 admission_conflict Mission admission or its settings changed; review the current state
409 revision_conflict A personal preference revision moved; re-read before retrying
409 conflict A grant or send revision moved; re-read before retrying
409 stale_authority The workspace context changed under you; re-read before retrying
409 digest_mismatch A personal fact changed since you confirmed it; confirm the current revision
409 identity_required No personal mail identity is connected for you
409 inbox_credential_unavailable The lane is connected but its exact-version credential cannot be read (for example after the secret entry was re-saved). Re-issue the mailbox connection so the stored reference is current
409 destination_unknown The named move/label folder does not exist on the provider
409 label_unsupported Removing a label was requested; IMAP providers cannot do that non-destructively
404 attachment_unavailable The requested part is not an attachment, does not exist, or exceeds the download bound
409 draft_not_approved The reply revision was not approved; nothing was sent
409 draft_revision_conflict The presented draft revision is stale; re-read the draft
409 draft_grant_stale The grant revision differs from the one the draft was created under; create and approve a new draft
409 draft_already_approved That revision is already approved under a different authority
500 internal_error An unexpected failure; a write may have an unknown outcome, so check current state before retrying
503 inbox_sync_unavailable The IMAP sync lane is not configured on this node
503 mail_ops_unavailable The search/management lane is not configured on this node
503 workplace_unavailable The lane is not configured on this node — the rest of the surface is unaffected

Assistant access

The assistant reaches the same personal surface through its MCP tools, under your session and permissions: workplace_today, workplace_knowledge_list, workplace_knowledge_get, workplace_goals_list, workplace_goal_admit, workplace_preferences_get, workplace_preference_set, workplace_connections_list, workplace_connection_get, workplace_connection_revoke, workplace_inbox_list, workplace_inbox_search, workplace_inbox_search_remote, workplace_mail_folders, workplace_mail_mark_read, workplace_mail_move, workplace_mail_label, workplace_mail_read, workplace_mail_attachment, workplace_mail_upload, workplace_draft_create, workplace_draft_approve, workplace_reply_send. Reaching the surface grants the assistant no standing authority: every tool call re-checks your current access and your current grant. A draft an assistant composes is inert until a person approves that exact revision; nothing is ever sent automatically.

Scheduled planning uses workplace_schedules_list, workplace_schedule_get, workplace_schedule_create, workplace_schedule_update, workplace_schedule_delete and workplace_schedule_reconcile. Creation generates revision zero at the transport boundary; updates require the current revision and the complete editable definition. Reconciliation only reads the original goalId. An uncertain tool response must not trigger a new request automatically.

SDK and CLI

The personal workplace endpoints are available through the REST API and through the assistant’s MCP tools listed above. They are intentionally not published as SDK or CLI operations: the surface is personal and session-bound, so an automation client has no meaningful workflow there beyond what the MCP tools already provide. See the API reference for the generated specification.