Skip to content
Development documentation: these guides follow main and may describe changes not yet in a published release.

Troubleshoot an installation

Operator guide · Health and diagnostics

Read the omnigrex:needs-human explanation and identify the failed prerequisite or uncertain mutation first. Omnigrex has no supported administrative command for editing Workflow records, requeueing internal jobs, or taking direct Session control. Do not manually edit PostgreSQL or retained Session files.

  1. Correct App permissions/access, credentials, exact images, storage, network, provider availability, or repository configuration.
  2. Recreate the orchestrator if image, environment, or mounted configuration changed.
  3. Run repository doctor until every check passes.
  4. Confirm that the Issue is open.
  5. Ask the user to add omnigrex:run for a fresh Workflow Attempt.

Budgets reset without erasing history. Retained Sessions are reused when their exact image and state remain available. If coordinated data restoration is necessary, stop automation and use restore rather than retry against mismatched state.

Use the installation’s selected Compose files:

Terminal window
docker compose ps
docker compose logs --since 15m orchestrator
docker ps --filter label=io.omnigrex.runtime-process=true \
--format '{{.ID}} {{.Names}} {{.Status}}'

For Microsandbox also use the native inventory constraints in backup and backends. Only exact managed identities authorize adoption or cleanup; do not add labels to unrelated containers to make them look managed.

SymptomNext check
No Developer webhook deliveriesApp event subscriptions, Recent deliveries, DNS/TLS, proxy logs, firewall, exact path
Delivery HTTP 401Exact match between local and GitHub webhook secrets
Missing labelsProvisioning delivery and repository jobs
Readiness failsPostgreSQL, backend access, protected images/state, compatibility results, healthcheck time budget
Missing Runtime Profile imageProvision the exact digest in the selected backend; do not substitute a mutable tag
Pi startup timeoutTurn/Session startup observations, working-revision tool installation, startup budget, and overall Turn timeout
Configuration Human HandoffRepository owner’s configuration checks and operator instruction validation
subscription_auth or subscription_quotaInspect and restore subscription access, then explicitly resume Work Items
subscription_configurationSelected model/account entitlement, supported direct Responses capabilities, and matching qualified orchestrator/Pi images

INFO-level Pi startup readiness started and Pi startup readiness completed include Turn/Session identity, budget, duration, and safe outcome after RPC and durable Session preparation. They do not identify a particular tool download or prove an uncertain execution stopped. Doctor’s successful shorter probe does not prove real working-revision bootstrap will complete.

For SDK failures, first inspect SDK diagnostics for the operation and original cause. Before normal or recovery removal, Omnigrex attempts to copy complete available runtime.log, kernel.log, exec.log, and their positive-integer numeric rotations into:

<OMNIGREX_RUNTIME_STATE_ROOT>/assignment-<participant-id>/runtime-logs/
<agent-turn-id>-<execution-epoch>/<sha256-of-native-resource-id>/

The directory is beside the guest-mounted runtime-state, never mounted into the guest. archive.json identifies the execution key, native resource, capture time, and copied/retained/missing/failed file inventory. Directories are private (0700); archived files are private (0600) under the orchestrator’s UID/GID. runtime.log contains host runtime diagnostics, kernel.log the guest kernel console, and exec.log raw primary-execution output, not every guest command or the full Session history. All three are retained without severity filtering or redaction; treat them as sensitive private content.

With your installation’s selected Compose files, locate and copy an archive without changing it:

Terminal window
docker compose exec -T orchestrator find /var/lib/omnigrex/runtime-state -type f -name archive.json
docker compose cp 'orchestrator:/var/lib/omnigrex/runtime-state/assignment-<participant-id>/runtime-logs/<agent-turn-id>-<epoch>/<resource-id-sha256>' ./private-native-logs

Replace the angle-bracket placeholders and protect the local destination before sharing any content. Archives survive environment removal and orchestrator recreation through the existing runtime-state volume and share Participant retention. Only ordinary Agent Turn resources with valid identity receive Participant archives; diagnostic-only and malformed resources do not.

Copying starts after confirmed stop, before native removal, with a five-second per-resource budget capped at half the remaining cleanup deadline to reserve time for removal. Microsandbox native log archive incomplete warns when preservation fails, but archival failure does not block safe cleanup. Already completed file copies survive retries; partial files are never published as complete logs. Archive writers serialize per native resource and reclaim abandoned temporary files on retry after an orchestrator crash, without removing another active writer’s staging files. The opened source directory is pinned and revalidated against the exact native identity before copying, rather than trusting a potentially replaced sandbox name. The copy budget is cooperative: context checks bound lock waits and work between filesystem calls, but cannot interrupt an operating-system write or Sync that stalls. Missing source files are recorded rather than synthesized, and native rotation may already have discarded earlier entries. There is no live follower: logs internally deleted by failed-create rollback or emitted during native removal may be unavailable. An absent archive is not a readiness failure, and log contents do not establish stop, flush, or OOM receipts.

MCP mutation failed supplies a safe failure_code, operation/mutation identifiers, and allowlisted GitHub status/request ID or expected/observed commit IDs. Definite failures place safe details in tool_invocations.last_error; unknown outcomes remain under reconciliation.

For resolve_clarification, an ordinary tool result with recorded: false and application: not_applied is a definite validation rejection of the entire batch, not a recorded interpretation. The canonical reason and one-based resolution/response positions identify the internal request mistake without exposing human text. The agent should correct its evidence selection under a fresh operation identity, using the current explicit answer for revised questions rather than indiscriminately citing older answers to replaced questions. It need not ask the human to repeat a sufficient answer or request Human Handoff solely for this rejection. Identical-operation replay returns the same rejection; changed arguments do not repair the old invocation. A committed operation-specific rejection receipt also permits recovery after a lost acknowledgment; absent receipts or frozen history do not prove non-application. Unknown outcomes still require exact-operation reconciliation, not a new-ID retry.

A definite pre-reservation handoff rejection, including pending human input, has no mutation row or backend effect and does not itself require recovery. The agent can yield with empty questions so the Orchestrator delivers that input at the next safe Turn boundary without resetting the Workflow Attempt. Unclassified reservation/database failures still require controlled recovery; a later successful tool does not clear earlier ambiguity.

Mutation-recovery diagnostics distinguish unresolved_mutation_count (actual UNKNOWN/RECONCILING rows), successful_verification_count (selected SUCCEEDED effects requiring verification), and verification_candidate_count (their sum). These counts appear in recovery operation attributes and the exhausted reconciliation job result; Human Handoff diagnostics describe the same categories. Terminal corroboration may delegate publication and terminal-effect verification to its later verifier, so selected candidates can be fewer than all successful ledger rows. An all-success ledger can still require Human Handoff when fresh external-effect verification is unavailable, but does not imply unknown writes. A successful, correctly scoped local default-branch refresh can complete its historical barrier from its recorded receipt, without refetching or claiming new freshness. An interrupted refresh remains conservative even if partial refs or packs exist; do not mark it successful or repair its files manually. This behavior does not automatically reactivate a previously blocked Workflow or authorize production ledger repair.

For publish_plan_checkpoint, historical_decisions_unresolved with publication: not_applied is durable definite pre-publication rejection, not a created pair. The result identifies outstanding historical question/round references and original/correction input references without human bodies. Its compact-JSON inline result is capped at 16 KiB, reserving room for JSONB replay whitespace and outer JSON escaping to preserve pinned Pi Session continuation; decision_count includes prerequisites not in the inline prefix. When retrieval is present, use get_collaboration_record with collection: planning_rejection, its exact rejection_id, and the returned index/offset, following all next_offset chunks and next_index records. These lossless immutable receipt reads are scoped to the Workflow and Participant and available immediately, independently of frozen planning_history bounds. They do not change the operation outcome or reconcile the listed interpretations. A correction can stale several interpretations, even unchanged decisions absent from the current round. The agent must explicitly reconcile each affected interpretation using existing evidence before a new complete-pair attempt; assessments and current-round resolutions alone do not suffice. Do not remove correction links, rewrite history, ask humans to repeat settled answers, or treat an empty frozen history index as proof of non-publication. Identical-operation replay remains rejected after reconciliation; a fresh attempt needs a new identity, while unknown outcomes stay on exact-operation recovery.

For resolve_clarification, recovery matches the reservation’s mutation ID to each interpretation’s orchestrator-owned origin_operation_id, not just its text or response IDs. Cancellation before the interpretation commits must leave that operation unresolved even if an identical older interpretation exists. Historical entries without an origin remain preserved but cannot prove an uncertain operation’s effect; normal reconciliation retries or explicit Human Handoff handle missing proof. Do not assign origins or mark mutations successful by matching historical content.

For reads, look for MCP read failed with agent_turn_id and tool_name. failure_stage, failure_reason, and optional validation_field narrow the failure beyond failure_code. Detailed validation initially covers issue lookup and review-thread reads; other failures can remain unclassified. For example, github_invalid_response, review_threads_validation, missing_field, and review_thread.originalLine indicate a missing field without exposing content. Cancellation/deadline classification precedes credential or GitHub sanitization.

github_http_status belongs to the response exposing the failure; HTTP 200 does not imply GraphQL or tool success. Missing status means unavailable metadata, not status zero or proof of no request. A missing request ID can mean it was absent or failed strict validation. Continuation failures use the failing response, while aggregate mismatches use the last contributing response. A backend scoped-issue identity mismatch can have precise validation diagnostics without response metadata because that interface does not carry it.

Authenticated gateway rejections emit MCP request rejected for envelope, initialization, argument, authorization, and fence failures. Pre-dispatch failures can lack a tool name, and arbitrary submitted names are never logged. Join repeated calls by Turn and diagnostic_call_id. One rejection emits one entry; a failed read emits one execution entry and, if recording fails too, a read_recording entry sharing the ID. The generic tool error adds no duplicate rejection entry. duration_ms measures from authentication to each event, so the later entry can be larger.

Agent-facing read errors and tool_invocations.last_error remain generic for reads. Diagnostics exclude arguments, response bodies, review text, and raw dependency errors. Runtime-local calls and gateway diagnostic IDs have no guaranteed mapping. Calls never reaching the gateway and authentication failures without trusted registration scope remain blind spots. Stale-authority logs cover post-authentication checks, not every expired registration. Mutation planning/reservation/replay/detached execution retain their separate diagnostics.

Developer PR and CI reads use the latest durably published head in the same Turn, not necessarily the starting SHA in its envelope. Compare the returned head metadata to the publication result; get_check_runs includes head_sha even when check_runs is empty. After another publication advances the target, restart pagination rather than reusing a prior-head continuation. An external push does not become authorized: PR metadata and collaboration reads reject a mismatched head, while CI reads remain at the published SHA. If a publication is still unknown or being reconciled, it grants no new read access until successful durable evidence exists. Do not substitute starting-commit checks for current-head verification or bypass MCP with direct GitHub credentials. For persistent scope rejection, retain Turn/epoch and mutation identifiers and inspect the publication ledger/recovery outcome before retrying; a compatible orchestrator upgrade is required for deployments that still freeze all reads at the starting head.

A later Developer Turn can reuse prior published work only after matching durable mutations and fresh GitHub state for the same Participant. It starts at the verified head and must explicitly request review; publication alone does not schedule the Reviewer. An unproven branch, changed head, foreign Participant, or unmatchable commit/legacy marker causes a publication-conflict Human Handoff. Unreachable Git/GitHub follows bounded infrastructure retry instead of claiming a conflict. Publication rejects uncommitted work and excludes ignored build artifacts. An interrupted push that cannot be corroborated is not reconstructed from a later workspace.

If a unique terminal intent succeeded before a lost response or eligible deadline, Omnigrex may accept the Turn after corroboration, retaining the prompt failure in diagnostics. Explicit cancellation and ineligible terminal endings do not qualify. Fresh-read failure can defer verification under the durable window without repeating the prompt or mutation. Recovery proves runtime stop and reconciles mutations before pending verification. See user handoff behavior. For earlier crashes without a durable runtime ending, a successor receives prior-intent guidance and may use confirm_prior_terminal_intent; a review before known explicit cancellation cannot be confirmed or resubmitted in the retry.

runtime_oom_killed means Docker confirmed OOM before container removal. The normal single infrastructure retry still applies; a repeated confirmed OOM appears in Human Handoff diagnostics. Inspect the original Turn and retry separately, including bindings, tool calls, and available logs. EOF or exit 137 alone does not establish OOM, and removal before inspection can leave the cause unknown. Do not mutate an immutable Runtime Profile to change memory allocation; use the supported memory setting.

With unchanged configuration and images:

Terminal window
docker compose restart orchestrator

Startup fences stale processes and resumes durable work under retry policy. Use docker compose up -d --force-recreate orchestrator when configuration or images changed. Inspect logs for private content and identifiers before sharing them; application redaction does not cover every operator-added proxy/platform log.

Inspect required_policy.availability, required_policy.failures, required_policy.unresolved, each target’s observation failures, and target_mapping.state before interpreting results. A successful empty collection on a continuation is not an empty complete policy. For insufficient_permissions, confirm the exact App and installation permissions and rerun preflight after installation approval. Retry rate-limited or transient observations after the provider recovers; do not treat them as no requirements. A protected branch returning inaccessible classic protection remains incomplete even if effective rules were readable. Unknown required workflow/rule mappings remain unresolved and require direct human interpretation of GitHub policy. A stale head/base/merge mapping grants no new test-merge diagnostic access; it does not retarget the Reviewer or require rebasing the Change Proposal. Restart a stale continuation from the first page to observe a coherent current result set. See the CI read contract for states, bounds and target semantics.

If an agent reports unavailable current-base verification, consult the snapshot result and recovery contract. Do not inject credentials into an active checkout or replace a live Session to bypass acquisition failures. A stale result needs a new operation identity and local verification of the newly returned pair; ambiguous local installation is not evidence that acquisition succeeded. Use the existing execution/storage recovery procedures on this page for infrastructure failures, preserving affected workspace evidence before replacement.

qualify configured Runtime Profile now includes the inspected/bound image, platform, and SHA-256 of the expected canonical resource inventory, not a hash of guest output or an image digest comparison. Fresh/default admission also identifies the selected production Pi bundle image and source. Setting OMNIGREX_PI_IMAGE chooses an image to inspect; it does not adopt a published candidate or change agent/pi/selected-bundle.json. A derived image with a different digest is compatible if its actual approved resources match exactly.

A guest-reported failed check identifies an allowlisted check reached before an observed nonzero exit: required executable, bootstrap identity, Node version, mise checksum, owned directory/file/checksum, or locked package integrity. An owned checksum runner.mjs failure, for example, means the bound runner check failed; it is not permission to install a replacement at startup. Package integrity failures identify the locked-package check, not an unverified package name or digest copied from arbitrary output. unknown stage (diagnostic unavailable or untrusted) means no trustworthy complete bounded label was captured, or execution did not establish a nonzero exit; it must not be interpreted as a specific hash mismatch. Native/cleanup failures, image availability errors, cancellation, deadlines, and unknown execution effects remain separate underlying errors; a diagnostic label does not prove cleanup succeeded or an uncertain command stopped. Qualification does not forward arbitrary stdout/stderr; excessive, malformed, conflicting, or truncated diagnostic capture loses check detail rather than exposing raw output. For native SDK failures use the existing restricted SDK diagnostics; review sensitive logs privately before sharing.

For fresh Participants, build and qualify a self-contained image against the selected bundle, then provision the exact qualified digest in the configured backend and coordinate repository image pins using Runtime Profile upgrades. No network installation or automatic Pi defaults repair an incompatible image. For a retained Participant, the error’s bound image and inventory are its original expectation, even if production selection has changed. Restore availability of that exact historical image and canonical ledger contract using the restore procedure; do not delete state, reconstruct a missing inventory from current defaults, or rebind/replace a protected Participant to silence qualification.

Implementation authority is recorded in the Work Item collaboration aggregate, not inferred from Issue labels or comments. implement receipt, Planner validation/queued development and first Developer admission are separate milestones. The independent collaboration-status outbox publishes concise milestone receipts with bounded infrastructure retries; it does not repeat the documents or post per-retry comments. A lost response retains the exact reserved artifact and only reconciles it; absence after an uncertain POST is not permission to repost. Investigate PUBLISH_COLLABORATION_STATUS failures and the safe collaboration milestone publication not confirmed diagnostic through existing logs and operator diagnostics. Do not edit ledger state, manufacture another event, or manually retry an uncertain POST to force visible convergence. Missing status comments or a label failure do not grant, revoke, reopen or repeat implementation. Use the existing Human Handoff recovery procedure for actual Workflow failures; recovering a completed plan’s projection does not itself reopen discussion or allocate development. A separately requested human revision uses explicit steering/amendment and exact-pair authorization as described in the planning guide.

Clarification request rejected without publication

Section titled “Clarification request rejected without publication”

A successful MCP transport with status: rejected and publication: not_applied means that request did not publish a new question round and is not terminal waiting intent. The durable operation-specific receipt contains a canonical reason and bounded structural position, not human source bodies. For correct_arguments_new_operation, the agent should repair its arguments using the existing conversation, preserving exact question bodies or using explicit replacement identities. Do not request another sufficient human answer, approve a technical retry, or repair the database for this condition. Identical-operation replay returns the same rejection, not a corrected publication attempt.

earlier_publication_unsettled with reconcile_prior_operation is different: only the new request is proven not applied; the earlier operation still needs exact-operation/artifact reconciliation. An absent comment or omitted history does not settle it, and a fresh request cannot bypass the fence. Use the existing Human Handoff recovery procedure when normal recovery cannot establish the earlier outcome. Unexpected tool errors and ambiguous commits are not rejection receipts and retain conservative recovery behavior. These contracts do not authorize production state edits or automatic reactivation of historical Work Items.