- What should we do next?
- Who is blocked, and why?
- Which messages still need an employer response?
- Which deterministic attention signals are highest priority?
- Are any evaluators stale or incomplete?
- Which action is another manager already handling?
- What changed since this agent last checked?
- Who is ready under the current workflow?
Before you start
You need:- an employer account or employer team membership;
- access to the specific job;
jobs:readto inspect context; andjobs:writefor supported decisions, observations, actions, checkpoints, and handoffs.
The operating loop
1. Resolve one exact job
Do not infer the target from a similar title alone. Resolve the job ID and confirm the acting token can access it. If an employer team member has organization access but not access to that job, OpenTrain denies the context request. Ask an authorized employer admin to update job or folder access rather than trying to broaden the token.2. Read, then reconcile a writable session
Always begin with a normal context read. It returns thecontextRevision
required by the first sweep. The same coherent snapshot includes the current
attention queue, evaluator health, effective-policy summary, and Job Operating
Guide digest. The agent does not need separate full scans merely to discover
candidate priorities.
In a writable management session, sweep once at startup. This covers:
- the agent is starting a new session;
- an external provider may have changed asynchronously;
- stale people or incomplete reconciliation;
- a previous operation timed out before returning its receipt; or
- the job has been idle long enough that freshness is uncertain.
hasMore: true, call it again with that response’s
contextRevision. Continue until hasMore is false, then read the context again
so triage uses the newly derived snapshot. A read-only session does not sweep.
Save the returned context version as the precondition for the work you plan to do.
With CLI/MCP 0.11.0 or SDK 0.10.0, later covered calls carry this session
forward automatically. Inspect the additive sync and syncCoverage fields
on each response. sync.conflicts, sync.recommendations, and
sync.nextOperations can change what the agent should do next without another
full-system scan. syncCoverage.coverage: none means that call did not refresh
shared context; perform a covered context read before relying on it.
3. Triage before acting
Review these sections in order:- Evaluator health, inconsistencies, and unknowns — stale or incomplete evidence can invalidate otherwise simple status conclusions.
- Job Operating Guide, objective, workflow, and effective policies — they define the current operating rules and what “next” and “ready” mean.
- Fresh priority signals and open blockers — treat them as an investigation queue, grouped by impact and dependency.
- Message response signals — treat them as prompts to inspect a conversation, not as message content.
- Actions and claims — avoid duplicating work already owned by another manager.
- Recent changes or delta — identify records that changed since your last checkpoint.
- inspect the conversation, current Instructions, training history, and relevant evidence;
- explain the verified misunderstanding;
- generate a no-write retraining outline or assignment plan; and
- ask the employer to approve it before creating content or assigning a Project To-do.
4. Claim the action
Claim coordinated work before performing it. Include the expected action or context version. When work begins from an attention signal, use the signal-claim operation. It atomically creates or reuses the linked action and acquires its lease. A signal is claimable only while its condition is active, its evaluation is fresh, and its effective triage is open or acknowledged. Stale, incomplete, live-snoozed, dismissed, and shadow-rule signals cannot be claimed. Acknowledge, snooze, and dismiss are triage operations; they do not claim ownership. If another owner has an unexpired claim:- choose different work;
- wait for the current owner; or
- coordinate outside the system and have the owner release it.
5. Re-read the canonical source
Context helps an agent choose the right work, but the source record is the final pre-action check. For a message, re-read the latest authorized conversation and thread. Confirm that:- no employer teammate already answered;
- a later AI trainer message did not reopen the question;
- the requested requirement is still incomplete;
- the conversation type still matches the relationship; and
- the participant and conversation remain visible to the acting user.
null only when
the authorized conversation was actually observed empty. Use the exact
synchronized managed-send operation (CLI manager messages send; MCP
opentrain_send_managed_job_message), not the generic message tool. OpenTrain
resolves the authorized Job Message or Proposal Message binding, validates the
guarded state, and commits the message and shared-context advance atomically.
It rejects the send if any reviewed state changed.
For a Project To-do, assessment, contract, milestone, or training action, fetch that canonical record and confirm its current status and version.
6. Apply the action safely
For a consequential context-plane write:- send the expected context revision;
- send the expected action version when changing an action;
- use a stable idempotency key for one semantic operation; and
- include evidence IDs instead of copying sensitive source content.
., _, :, or -. The operation
requires both messages:write and messages:manage.
7. Verify before completion
After an operation succeeds, fetch the affected record again and confirm the intended state. Then:- complete the coordinated action with its result evidence;
- release it if no work was performed or a different owner must continue;
- acknowledge the newest processed context version; and
- add a concise handoff when the next session needs more than the structured state already shows.
Handle version conflicts
A409 stale-version response means another manager or event changed relevant state after your read.
Do not overwrite it. Instead:
- fetch the latest context or delta;
- re-read the affected canonical records;
- inspect the other manager’s action result or claim;
- discard the plan if it is obsolete; and
- retry only if it remains correct.
Record durable judgment carefully
Record a decision when an authorized employer judgment must persist across sessions, such as an approved exception or manual assessment outcome. Record a typed policy when the change governs the workflow or agent behavior across the job. For MCP hosts that consume instruction resources, the generated Markdown guide is available atopentrain://jobs/{jobId}/operations/guide. It is a read-only
projection of the same effective policies and context state; do not edit or
treat it as a second authority. Use the structured guide tool when you need its
exact context revision and checksum.
When the current projection refers to prior judgment, list the durable decision
history before acting. Use the decision and observation cursors to continue
until the relevant history is complete; do not infer supersession from a
truncated context summary.
Include:
- the exact subject and scope;
- the decision type and operative value;
- a concise rationale;
- privacy-safe evidence references;
- the effective and optional expiration time; and
- the decision it supersedes, when applicable.
GUIDE policy with status APPLIED is published coordination guidance for managers and agents; it is not proof of runtime enforcement. For example, the training production gate can canonically switch between course completion and scored assessment review. A separate instruction to complete one production task and stop belongs in an attributed guide policy such as OPERATING_RULE.first-production-task-limit unless a canonical task limit exists.
End a session cleanly
Before the agent stops:- release claims it will not finish;
- complete actions whose canonical results were verified;
- acknowledge the last processed context version;
- resolve or transfer spontaneous-work intents;
- record unresolved blockers with their current owner; and
- create a handoff only for continuation details that are not already structured in the context.
Related
Shared Job Context
Understand provenance, readiness, versions, claims, and privacy boundaries.
Stay in sync
Combine job-scoped context with account updates and webhooks.
Project To-dos
Use the canonical assignment control plane for job requirements.
Errors, pagination, and limits
Handle conflict envelopes, paging, rate limits, and retries.