operations:diagnostician). The installed specialist must declare the webhook trigger, hold an enabled reviewed binding, and use a Ready runner. A coordinator also needs its enabled, reviewed result-only Flow on engine 3.12.0 or newer.
Prepare access and a delivery identity
Use a global personal API token carrying bothagents:trigger and assignments:submit. For company work, your active user account must hold company assignments:read, assignments:submit, and assignments:update grants. Installing a package or selecting a company grants none of those permissions. Project, agent, and librarian tokens cannot act as a personal user on this route.
Pick a stable Idempotency-Key for each independent request: 8 to 128 ASCII letters, digits, dots, underscores, colons, or hyphens. Keep that key when retrying the same delivery. Rotating your personal token preserves delivery identity as long as owner, authenticated user, and addressed professional match. Sending different content under an existing key triggers a conflict; start independent work with a new key.
Submit the assignment
SendPOST /api/agents/{agentId}/event with Authorization: Bearer ..., Content-Type: application/json, X-Maister-Owner-Kind: company, and Idempotency-Key: .... The X-Maister-Owner-Kind: company header selects this contract. The body is a closed version-1 envelope, at most 32 KiB of UTF-8 JSON:
X-Maister-Trigger-Event-Id.
Submit project work
PassX-Maister-Owner-Kind: project with the same global personal token scopes, version-1 envelope, and Idempotency-Key. In the JSON body, replace owner with {"kind":"project","projectId":"project-id"} and specialistBindingId with the project specialist attachment ID. The addressed role must declare webhook and use its current trusted project package pin. Your account needs current project read and launch authority; company grants do not substitute for project access. A project coordinator also requires its enabled, configured result-only Flow.
A project coordinator webhook acts as an automatic request. Its carrier task needs a current accepted ready assessment bound to the original private assignment input. Until that assessment exists, 201 (new) or 200 (replay) returns the queued assignment with an empty Run list. An authorized user records the assessment through the task qualification controls. Qualification events and the scheduler resume the same assignment; preserve the original delivery key. A personal API token grants no one-shot interactive launch authority.
If intake stops mid-way, MAIster keeps the original input. The scheduler recovers unused carrier and source reservations; once a Run receipt or launch intent exists, MAIster blocks reuse of that reservation.
MAIster stores original input before repository and workspace admission. If readiness checks refuse execution, repair the named prerequisite and resend the same body and key to admit that queued input. You can inspect a retained delivery under current permissions even after an administrator disables the provider. Private request text stays in the assignment input; stored native trigger metadata carries delivery identity alone. A new key starts independent queued work.
Company and project assignments expose progress and results through the retained Run under current access checks. The assignment sets the user’s Inbox as its destination, delivering result availability there under current recipient and source access. Assignment acceptance remains a separate decision.
Omitting X-Maister-Owner-Kind selects the older project-token webhook contract and its 202 Run response. Include X-Maister-Owner-Kind: project for a durable specialist assignment.
Inspect the receipt and handle retries
A new delivery returns201 with the assignment, exact owner, origin, and Run IDs. An unchanged replay returns 200 with identical IDs. Capacity limits can leave that Run queued; retrying the delivery wakes existing work. Follow the retained Run to check progress and its structured result. Run success and assignment acceptance are separate decisions, and neither confirms a Brain assertion.
Responses stay private and uncached. Choose the next step from the HTTP status:
If a response is lost, resend the exact request and key. A retained reservation reuses its assignment and Run. Choose a new key for separate work. Revocation applies to later reads and actions even when older input and authority snapshots stay inspectable.
Find a queued coordinator’s qualification task
CallGET /api/specialist-assignments/{assignmentId}/admission with your browser session, or add /v1/ext after /api for a global personal token holding assignments:read. The endpoint accepts no query parameters. You need current assignment and source access; non-human credentials cannot act as a human reader.
For a project coordinator, carrier.taskHref opens the retained task and its qualification controls. The response shows the original input revision and digest, qualification summary, and active launch when present. The current assignment input revision stays separate from that original carrier input. carrier_input_unavailable means MAIster cannot verify the original linkage; investigate that conflict before continuing. A queued project_flow without a carrier waits for intake recovery; keep the original request key.
Company work and standalone project specialists have no carrier task. Reading admission creates no task, assessment, or Run and stays available after an administrator disables a provider if you keep current access. repository_evidence_not_checked means a ready assessment does not guarantee launch: dispatch rechecks repository evidence, permissions, and execution readiness.
When dispatch detects newer repository evidence, MAIster requests a fresh assessment for the same retained work. Reload the task’s qualification controls and review the current evidence while keeping the assignment and request key. A repeated or delayed refusal cannot invalidate a newer accepted assessment.
Inspect result delivery and replay a failed cycle
CallGET /api/specialist-assignments/{assignmentId}/delivery?runId={runId} with your browser session, or add /v1/ext after /api with a global personal assignments:read token. Pick a Run belonging to the assignment. Pass resultRevision to select a specific retained revision, or omit it for the latest retained receipt. Current assignment and source access apply to historical results too.
The response shows the frozen destination, exact input and result witnesses, bounded attempt metadata, stateSha256, and transport state: awaiting_dispatch, pending, delivered, dead, or suppressed. A quiet scheduled stand check can keep a retained suppressed Inbox decision with zero delivery attempts. MAIster excludes result bodies, endpoint credentials, and raw transport responses. Canceling an assignment or writing a newer result revision does not erase delivery history you still have access to read.
To retry delivery, send POST to /api/specialist-assignments/{assignmentId}/delivery/{deliveryId}/replay with Content-Type: application/json and the inspected witness:
/api/v1/ext/... with assignments:recover; project and agent credentials cannot perform this human recovery action. MAIster rechecks your current read and recovery authority, the original recipient’s access, the destination, and the exact current result.
A 200 response queues delivery alone. It preserves delivery identity, Inbox read state, and any existing task reply without repeating specialist work or completing the assignment. A pending cycle or stale witness returns 409: inspect the latest state before deciding to retry. Delivery replay cannot revive canceled or superseded work. If a replay response drops, check the same receipt; repeating an old witness cannot queue another cycle, even after an intervening delivery finishes.
Inspect and update working context
With an active browser session and current assignment read authority, callGET /api/specialist-assignments/{assignmentId}/context. Pass revision to read retained history. Revision 0 means no recorded context exists; objective and constraints come from the current assignment input. Recorded revisions display exact input, original authors, and entry supersession. MAIster verifies access to every inherited source before returning context, including historical reads.
Session users with current update authority can send PATCH to the same URL. Supply expectedRevision, expectedInputRevision, a stable idempotencyKey, and updates containing distinct entries with id, kind, text, state, and references. Supported kinds include question, hypothesis, decision, work, blocker, and finding (finding entries require the structured findings envelope). Set supersedesEntryId to replace an existing entry with a new identity. Keep the JSON body below 32 KiB. A stale revision returns 409: read the latest context and rebase your change. Repeating the exact key and content returns the original accessible revision. Working notes cannot accept work or confirm a Brain assertion.
External API clients and active specialists follow strict scoping rules:
- A global personal token with
assignments:readreads context atGET /api/v1/ext/specialist-assignments/{assignmentId}/context. - A company specialist whose reviewed role allows that scope calls
assignment_context_getthrough its current Run credential to read its own appointed context. MAIster withholds other assignments and unavailable sources. This read scope grants no Brain access and no context editing. - To edit context over the external API, send
PATCHto/api/v1/ext/specialist-assignments/{assignmentId}/contextwith bothassignments:readandassignments:updatetoken scopes and the same revisioned body. A personal client keeps your user identity. - An active specialist calls
assignment_context_update. Company roles also need a reviewed update limit and current professional update authority, and your initiating account must keep its update authority. Project specialists keep their current project appointment and initiating membership. Queued and reviewed Runs cannot write context. The server records the actual Run or node author and carries forward every source the Run consumed, including omitted citations. Read access and working notes never accept work or confirm a Brain assertion.
assignments:read limit. If any source is unavailable, dispatch refuses without supplying a partial summary. Recovering a retained prompt keeps its original context snapshot; call assignment_context_get to inspect the current revision during active work.
Call assignment_get with assignmentId (or GET /api/v1/ext/specialist-assignments/{assignmentId} under the same read scope) to inspect your appointed assignment’s responsibility, expected result, and current revisions. revision tracks the business revision, while inputRevision and contextRevision track separate histories. Pass the exact matching values for each update. Current source access covers the entire assignment and its working context. Sharing another Run’s input does not expose that Run’s assignment or later working notes.
Clarifications in Inbox and via API
Company-only clarifications appear under Company in Inbox when you hold current assignment read and answer grants and can access their sources. Losing either grant removes the card and its count. Project-scoped queues exclude company work. Expanded context and the Run link work without a repository. When a specialist clarification appears in Inbox, answer its form under your current answer authority. Suggested text choices allow you to type your own reply. MAIster saves the accepted answer as a new attributed input revision while keeping the Run’s original input and standing instructions readable. Capacity or server pressure can leave the same Run queued for resume. Repeating an exact answer is safe; a changed reply, late answer, or canceled assignment requires inspection. Submitting an answer does not complete the assignment or confirm Brain knowledge. A specialist requests clarification throughassignment_question_ask. First read assignment_get, then send assignmentId, the exact expectedRevision (business revision), inputRevision, question, a version-1 MAIster schema, and a stable idempotencyKey:
- Use distinct, safe form field names; each object supports up to 64 fields.
- Keep server question, prompt, and session metadata out of the form.
- One Run allows up to 32 native answers; asking another question after 32 requires an authorized continuation while prior work stays retained.
- Keep the full request at or under 32 KiB, and make sure the retained question plus original input leave room inside the 8,000-character input limit.
POST /api/specialist-assignments/{assignmentId}/questions; the bearer equivalent adds /v1/ext after /api. Status codes: 201 for a new active question, 200 for an exact replay, and 202 for pending checkpoint activation. If an HTTP dependency fails and leaves a retained pending question, retry the same key and content and check Inbox; do not start separate work.
A human API client can call assignment_question_respond or POST /api/v1/ext/specialist-assignments/{assignmentId}/questions/{questionId}/respond with a personal assignments:answer token, exact business and input revisions, response, and a stable answer key. 202 queues continuation; 200 confirms an exact authorized replay. Machine credentials cannot answer human work, and the company agent toolset omits this answer tool. The Inbox form fills in these retained selectors for you. The same Flow node resumes under a new execution epoch after capacity and server admission, while its original Run input, finished work, and checkpoint evidence stay readable.