Buffaly Logo Buffaly

Diagnostic tools, logs, and evidence

Use this reference to choose a read path, collect the evidence behind a failure, and report what was established. Start at troubleshooting by symptom when the failing layer is not yet known. Use interrupted-operation recovery for Stop, Kill Worker, retries, and unknown external effects.

Keep diagnosis read-only without making it shallow

Identify the exact session, route, tool, provider, account, or file and the failing time window. Read the relevant implementation and callers, bounded logs and adjacent events, configuration status, runtime or deployed build identity, and recent changes. For a regression, inspect the introducing and later relevant diffs and companion history; a blame line alone does not establish why the code exists or what activated the failure.

Use typed tools before shell commands when they express the check. Inspect action descriptions before invocation: a name containing “diagnostics” does not mean an operation is local or read-only. Do not start services, load every skill, run forced monitors, submit forms, or mutate data merely to gather evidence. Honor the assignment's source-specific remote research route and access limits.

A diagnosis-only request authorizes a complete investigation and proposed fix, not its implementation. For an authorized repair, carry existing authority for the same operation and target; ask only for a genuinely new consequential choice or protected operation. Follow safety and operating rules, rather than a blanket rule to stop before every externally visible action.

Locate the logs for the affected installation

On the Windows development installations, runtime logs are under C:\logs; C:\logs\Buffaly is the usual starting point for Buffaly app runs. A staging or custom installation can have another configured directory. Where BuffalyMaintenance is installed, ToGetBuffalyLogPath resolves the primary and discovered log directories. ToGetBuffalyVersion reports the resolved install root and installed version. Read their warnings instead of inventing a path.

  1. Match the host, installation, session or request, component, and failure window before selecting a log. The newest file may belong to another worker or contain only a secondary error.
  2. Search for the stable error, invocation or message identity, then read a bounded range including preceding and following events. Use ToSearchTextInFile, ToGetFileBlock, and their returned page cursors. Do not treat truncated output as a complete scan.
  3. Retain the exact path, time window, relevant events and stack symbols, omitted ranges, and deployed/source identity in the working record. Separate observed facts from a hypothesis about the cause.
  4. Exclude secret values and unnecessary personal data from shared output. A secret store or StringRef does not automatically redact a log, screenshot, provider response, or copied settings document.

Maintenance setup requires its skill include and Buffaly.Maintenance.Client dependencies, plus a resolvable installed root. These tools are installation-dependent. Do not repair a missing package by copying a DLL into an installed directory; follow capability inspection and the owning installation workflow.

Choose the smallest diagnostic read

QuestionSupported read pathWhat it establishes
What completed in this session?ToGetMostRecentSessionTurn, ToGetRecentSessionTurns, ToGetSessionTurnPageBounded turn summaries. Select a turn before using ToGetSessionTurnDetail for tool calls, results, and lifecycle evidence.
What is running or waiting?ToGetSessionStatus, ToGetQueuedSessionMessagesCanonical status and deferred queue, including item identities and dispatch state. Reading the queue does not consume it or start queued work.
What was the current task?ToGetSessionPlan, ToGetRecentSessionScratch, ToListActiveLocalTasksCurrent route and durable work. Read the full plan/scratch or exact task when the projection omits necessary history.
Is the capability installed?ToGetInstalledCapabilitiesOverview, ToListInstalledCapabilitySkills, ToListInstalledCapabilityTools, prompt-action/provider/web-module listingsInstallation inventory, not proof of successful execution. Respect result caps; filter by exact skill and inspect include modes, lazy sidecars, and package receipts when coverage is incomplete.
Can this session invoke the action?ToSearchCandidateActions, ToSearchCandidateEntities, ToGetPrototypeDetails, ToListSkillActionsCanonical binding, description, signature, and load state. Installed, indexed, loaded, and callable are different states. Follow the returned ToRunAction or loading route.
Which model route is selected?ToGetCurrentBuffalyRuntimeContext and the session's provider/model catalogProvider, transport, model, and reasoning selection. A working conversation does not prove embeddings or another authentication route works.
Was execution blocked?The exact invocation's policy/approval result; ToShowToolExecutionPolicy when its loader effects are authorizedAllow, approval-required, or deny decision and its scope. The current policy loader can persist legacy migrations; use retained evidence for a strict zero-write investigation. Viewing policy never authorizes weakening it, bypassing denial, or rerunning an uncertain call.
Did a DLL or service bind correctly?Runtime reference diagnostics for the target loaded session; ToListServices and ToGetServiceHierarchyResolved references and service declarations. Service discovery is not a health check. The host's GetRuntimeReferenceDiagnostics can return “runtime is not loaded”; do not initialize a cold session just to fill an inventory.
Why is a module page missing?Installed web-module inventory, module manifest/catalog and authorized web diagnosticsEnabled state, declared pages, assembly/type, and route. Source presence does not prove installation. Preserve auth and server-owned settings.
Did the browser action work?Browser selection receipt, selector state/text/value, bounded console events and screenshot when appropriateObserved application behavior, not just input dispatch. Use the browser verification procedure.

SessionManagement and the other named skill families must be installed/enabled for their actions to be available. Read the discovered signature and invocation guidance before use. Prefer turn summaries for routine inspection; the SessionHistory summarization actions are slower recap workflows, not a replacement for one selected turn's evidence.

Ask for bounded evidence, not a speculative repair

Diagnose the failure for this exact target and time window. Inspect the relevant turn, logs, implementation and callers, non-secret configuration, deployed build, and recent changes. Separate the failing mechanism from the event that activated it. Report what is established, what competing causes were eliminated, and the concrete fix or missing discriminating evidence. Do not change the system during this diagnosis.

For a missing tool, use two distinct to <verb> <object> searches, then bind the target separately. For a provider failure, inspect the selected transport's credential route without retrieving or echoing the value. For missing output, check admission and completion separately before retrying. See the matching symptom procedure for the next step.

Verify the actual outcome

  • Name expected versus actual behavior and the exact failing path. Identify the component and change that removes the evidenced mechanism; do not present an unknown historical cause as proven.
  • For an implemented fix, rerun the reproduction and the affected integration path, plus the earlier protected behavior the code must preserve. A build alone does not prove runtime behavior.
  • For a proposal, label reproduction and verification checks as unrun. If cause is still unknown, specify one concrete discriminating diagnostic and how each result changes the next action.
  • Report exact relevant artifacts, files or commits, actual checks and results, incomplete criteria, and the smallest external dependency when genuinely blocked. Preserve assigned report formats and destinations.

Keep maintenance effects separate from inspection

ToGetBuffalyLogPath and ToGetBuffalyVersion are inspection paths. ToUploadBuffalyErrorLogs, ToUploadBuffalyErrorAndDebugLogs, and ToUploadCurrentSessionLogs transmit diagnostic data to the configured Herd service and can perform instance/startup diagnostic bookkeeping. They are not local read-only checks. Review the destination, scope, and authority before upload; keep non-secret upload receipts and distinguish no matching logs from a successful upload.

ToPreviewClearBuffalyLogs lists cleanup candidates without deleting them. ToClearBuffalyLogs deletes logs and requires explicit confirmation. Do not use cleanup to diagnose a failure or discard evidence before its owner has retained it. Update, installer launch, restore, queue removal, reindex, and runtime reset are also separate operations, not implicit consequences of “check status.”

Use the interrupted-operation procedure for unknown receipts, partial effects, rollback, and original stopped states. Storage/data lifecycle and backup/restore setup belong in the administrator installation reference, not a second recovery handbook here.

Preserve diagnostic assignment and alarm contracts

Where the optional ErrorLogDispatch module is installed, its manifest declares /web-modules/ErrorLogDispatch/settings and installs the dispatch skill, context guidance, and ErrorDiagnostic profile. ToGetErrorDispatchSession resolves the diagnostic owner; ToDispatchErrorToSession delivers the selected original source and guidance and returns the actual receipt. These are routing operations for the authorized collector/dispatcher workflow, not tools to run during an ordinary read-only check.

The routed investigator owns one stable error class. Preserve the original evidence, source message identity, source-specific remote log instructions, assignment scope, and reporting destination. Do not redispatch the error, create another diagnostic child, weaken a real alarm, alter monitoring, or force a run to produce a passing result.

For the current ErrorLogDispatch package, read ContextPrompts/ErrorDiagnosticResearch.md and ContextPrompts/ErrorDiagnosticReport/CONTRACT.md. The research contract requires incident evidence, underlying logs when relevant, code and callers, configuration/runtime, history and protected behavior, and alternatives and authority. An email excerpt or capped log inventory does not replace needed logs. Retrieve them through the target's existing authorized diagnostic API; a failed alias or empty tail does not establish that all access is unavailable.

Write the complete investigation and the contract's evidence-linked findings.json. Supported final dispositions are FixIdentified, FixVerified, NoChangeNeeded, or Blocked; Researching is not terminal. Every unresolved cause needs a directly verified blocker and checked alternatives. A build or reduced alerting does not establish that the failed operation recovered. Keep proposed and passed verification distinct.

Use the package's Render-ErrorDiagnosticReport.ps1 to validate and render that record, then return its generated response envelope unchanged. This current contract supersedes the older Established/Unknown/Next Diagnostic headings, not the investigation depth or assignment boundaries. Follow a different assigned workflow's own current contract rather than copying these headings into it. Reporting a proposed monitoring signal never authorizes changing monitoring or forcing a run.

Do not turn a failed route into a missing capability

A failed alias, unloaded tool, truncated search, stale DLL, or rejected delivery is evidence about that path. Inspect canonical bindings, supported alternatives, package ownership, and receipts before declaring the task impossible. Do not retry unchanged failures, recreate an existing capability, bypass safety policy, copy installed binaries blindly, or use raw internal HTTP calls where an existing typed owner expresses the operation.