Buffaly Logo Buffaly
Operate

Troubleshooting

A practical diagnostic runbook for finding the failing Buffaly layer, collecting direct evidence, making the smallest safe recovery step, and proving the fix.

How to use this runbook

Start with the symptom the user can see, not the subsystem you suspect. Identify the failing target, inspect direct evidence, and distinguish diagnosis from recovery. This is the symptom-based entry point; use diagnostic tools and evidence for log and tool procedures, and interrupted-operation recovery for Stop, Kill Worker, and unknown outcomes.

Good first request

"Diagnose this Buffaly failure. Name the route, session, file, provider, or tool that is failing; inspect logs, session timeline, task files, artifacts, git diff, settings, and service diagnostics as needed; then propose the smallest safe recovery step and the verification check."

Fast triage map

If the user sees First evidence to gather Next step within the assignment
A route returns 404 or 500Route, host/port, build output, web logs, page/partial sourceConfirm the correct app and failing code path; apply a narrow fix only when repair is authorized
A model/provider failsProvider, transport, model, credential path, provider response, settings statusValidate the exact credential route without exposing secrets
Search or action discovery is poorConfigured embedding route, index status, candidate output, entity bindingRefine the query; establish the actual missing layer before proposing configuration or reindex work
Long-running work did not appearAdmission receipt, turn summary, queue, task and artifactReconcile what was admitted and completed; resume the existing work without a duplicate assignment
A committed edit is not visibleCommit, deployed build, exact host, render and release logEstablish the mismatch; deploy or restart only if that operation and target are authorized
Approval is denied or a call has no clear resultPolicy decision, invocation identity, receipt and actual target stateRespect denial; for an unknown result, reconcile external effects before retrying
Browser lost its tab or login continuityManaged-browser selection receipt, registration and fresh page stateUse configured managed recovery; never switch profiles or replay a possibly completed submission blindly

Docs route returns 404 or 500

What the user sees: A docs URL such as /docs/troubleshooting returns not found, an application error, a blank page, or a stale browser result.

What to ask Buffaly: "Verify the exact docs route on the running site, confirm the Razor @page route, inspect shared navigation, build the web project, and check the web logs for the failing request."

Evidence to gather: The failing route and host/port, HTTP status, Razor page path, shared partials such as _DocsNav, dotnet build output, web logs, and any exception stack. In the Buffaly.Web source repository, docs route owners are under Buffaly.Web/Pages/Site/Docs; an installed app may have a different layout.

Smallest safe recovery: Identify the single failing route, page model, partial, or link. If build passes but render fails, inspect the specific Razor expression or shared partial. Apply a fix only within an authorized repair; a diagnosis-only assignment reports the concrete correction and proposed checks.

Verify: Rebuild, open the exact route, confirm the page returns HTTP 200, and rerun the docs route/link check for the touched page or full docs set.

Running site is stale or pointed at the wrong project or port

What the user sees: Source has changed, but the browser still shows old text; one localhost port works while another returns stale 404s; a public page does not match the latest commit.

What to ask Buffaly: "Confirm which process serves this URL, which project it was launched from, which port is reliable, and whether the rendered page matches the source file and commit."

Evidence to gather: The exact URL, configured binding or launch profile, owning process command line when available, listening port, commit, deployed build identity, and request logs. A port recorded in an earlier handoff is historical evidence, not an installation default or proof of the current listener.

Smallest safe recovery: Correct a mistaken URL when evidence establishes it. Do not edit content to compensate for a stale process. Starting, stopping, repointing, or deploying a host is a separate operation: preserve its original state, existing authority, and protected-process rules.

Verify: The rendered route contains a phrase from the current source, the process path points at the expected project, and the route status is 200 on the intended port.

Provider authentication fails

What the user sees: Model calls fail with unauthorized, missing key, token expired, model unavailable, or provider not configured errors.

What to ask Buffaly: "Identify the selected provider, transport, model, reasoning level, and authentication route. Check settings status and provider diagnostics without printing secrets."

Evidence to gather: Provider catalog and current selection, non-secret settings status, bounded provider error, logs, and service diagnostics. Keep API-key, profile-backed transport, and provider-module credentials separate. Do not dump complete settings rows or unredacted provider responses.

Smallest safe recovery: Establish the credential path actually used by the selected transport. If correction is authorized, use its configured settings or secret-entry workflow. Do not paste keys into prompts, source, task files, screenshots, or docs. Rotation follows the environment's policy and authority, not an automatic troubleshooting rule.

Verify: When authorized, run one small provider request and report the provider, transport, model, credential route used, and success/failure evidence without revealing the credential value.

One authentication route works but another does not

What the user sees: A model conversation works while embeddings fail, or an API-key-backed request works while the selected profile-backed conversation transport fails.

What to ask Buffaly: "Separate the OpenAI API-key route from Codex backend/profile authentication. Test the failing route only, then compare the settings and logs for both routes."

Evidence to gather: OpenAI API key status, Codex Auth Feature status, Codex Backend Feature settings, selected provider transport such as responses_api or codex_backend, provider response, and backend logs. A working ChatGPT/Codex login does not prove embeddings are configured, and a valid OpenAI API key does not prove Codex backend profile auth is valid.

Smallest safe recovery: Identify the failing route and change only its configuration when authorized: OpenAI API key for OpenAI API requests and embeddings configured to use OpenAI; Codex auth/profile/backend settings for Codex-backed model execution. Other embedding providers use their own configuration.

Verify: If authorized, test the failing configured route with a small request and use a separate embedding check only when it is part of the failure. The identifier codex_backend names a current transport; it does not require a Codex editing workflow. Follow provider authentication and the selected provider's setup guide.

Embeddings or semantic search give poor results

What the user sees: Semantic search returns no results, irrelevant old sessions, broad matches, or exact search works while meaning-based search does not.

What to ask Buffaly: "Identify which search failed: action/entity discovery, session history, or artifact retrieval. Check its configured embedding provider/model, index status, query wording, and the exact evidence behind the top result."

Evidence to gather: Non-secret embedding configuration, bounded index status and logs, query, result identity, and a direct read of the returned session or artifact. Session semantic indexing has an OpenAI/text-embedding-3-small default but also configurable provider/model settings; a default is not proof of this installation's active route. Action/entity indexing is a separate owner.

Smallest safe recovery: Refine an overly broad query first. Establish a credential or index fault before proposing changes. Configuration and reindex operations can write data or make provider calls; use the owning workflow within existing authority, not a blanket reindex. See embedding setup and session semantic search.

Verify: Run one controlled semantic search for a known recent topic, open the returned session or artifact, and confirm the cited evidence actually supports the result.

Buffaly cannot discover or load a skill, action, or tool

What the user sees: Buffaly says no matching tool exists, a tool is not callable, a prototype is not found, or a loaded action does not appear in the current session.

What to ask Buffaly: "Search candidate actions with two distinct single-intent phrases, resolve the target entity separately, then inspect the selected action's description and full signature. If needed, list skills and the likely skill's actions. Follow this session's execution route, not an assumed load-first workflow."

Evidence to gather: Candidate action results, candidate entity results, skill listing, action listing, loaded tool inventory, prototype details, compile diagnostics for ProtoScript changes, and service diagnostics when the action is backed by a service.

Smallest safe recovery: A discovered action can be available through ToRunAction without being added to the tool catalog. Follow its returned loadState and session instructions; inspect missing invocation guidance before execution. A relevant foreign candidate must be imported through the supported session-reuse route, not recreated or declared missing. Inspect include mode, package receipt, startup/reference diagnostics, and the authoritative owner before any reload. ToResetProtoScriptEnvironment rebuilds and rehydrates the full runtime; it is not a routine tool-list refresh. Do not hand-edit installed ProtoScript or copy DLLs blindly.

Verify: List loaded action tools or rerun the candidate search, then execute one harmless call or inspect the action details to prove the capability is available.

Child session, watcher, or automaton did not publish expected work

What the user sees: A long-running task says it started, but no artifact, callback, commit, or completion report appears where expected.

What to ask Buffaly: "Inspect the parent session, child session, watcher callback/digest, session timeline, durable task file, artifact path, and git diff. Report the last verified step and the missing publication boundary."

Evidence to gather: Parent and child session keys, watcher subscription or callback digest, timeline rows, Plan/Scratch, durable task file, artifact file path, commit status, and any final-answer or handoff message. Automaton-managed work should leave append-only state in a task or handoff artifact.

Smallest safe recovery: Use ToGetMostRecentSessionTurn, a bounded turn page/detail, ToGetSessionStatus, and ToGetQueuedSessionMessages as appropriate. Reconcile the admission receipt before resending. Immediate send and deferred queue are different contracts; idle is not a reason to substitute a queue. Resume the existing durable work instead of launching a duplicate or creating another child.

Verify: The expected artifact exists and the assignment's required recipient has an accepted substantive report. Admission is not completion. Coordinated children report once to their assigning parent; ordinary Task Dispatcher routing is send-and-disconnect and does not invent a callback. Preserve the actual reporting contract. See sessions and long-running work.

A call is blocked or its result is unknown

Retain the exact action, arguments, target, time window, and approval or delivery receipt. A denial before execution and a missing result after execution may have started require different responses. Respect a denial or expired approval; do not change tools, policy, or account to bypass it. An existing approval for the same operation and scope remains relevant unless a governing rule requires a new one.

For a timeout, cancellation, formatting error, or lost browser connection, inspect the owning system's actual state before repeating a write, send, submission, or deployment. Classify completed, not applied, partial, or unknown effects. Preserve original stopped states and unrelated work. Follow the reconciliation procedure; a Stop or Kill Worker receipt is not a rollback receipt.

Session compaction or resume lost context

What the user sees: Buffaly seems to forget prior constraints, misses an artifact, repeats completed discovery, or resumes from an incomplete summary.

What to ask Buffaly: "Compare the current session summary with Plan, Scratch, durable task files, session timeline, compaction archives, and recent tool output. Reconstruct the current route before acting."

Evidence to gather: Current session key, timeline around the compaction boundary, current and previous compaction epoch metadata when available, Plan/Scratch files, task artifact, handoff file, and final reports from child sessions.

Smallest safe recovery: Rehydrate from durable artifacts and direct evidence, then update the plan with the current route. Avoid relying on memory of the transcript when a task file or artifact has authoritative state.

Verify: Buffaly can state the active target, constraints, completed evidence, next step, and acceptance criteria using current artifacts rather than guesses.

Build passes but the rendered route fails

What the user sees: dotnet build succeeds, but the browser route returns 500, wrong styling, missing navigation, malformed HTML, or broken links.

What to ask Buffaly: "Render the exact route locally, inspect the response and logs, validate shared navigation and internal docs links, and compare rendered output with the Razor source."

Evidence to gather: Build output, route HTTP response, server logs, browser console if relevant, generated HTML snippet, shared layout/partial paths, route/link audit output, and git diff.

Smallest safe recovery: Establish the render cause: malformed Razor, an invalid partial, a route mismatch, bad link, missing static asset, or stale host. For an authorized repair, keep the change scoped to the failing page or genuinely involved shared component. A stale host requires its own authorized hosting operation, not a speculative content edit.

Verify: Build again, request the rendered route, run the docs link/nav audit, and confirm no literal markers or internal placeholder text are visible.

Edit was committed but is not visible on the public site

What the user sees: Git shows a commit, but the public website still shows old content or a different route state.

What to ask Buffaly: "Verify the commit contains the intended file, identify the deployed branch/build artifact, inspect deployment logs or service status, and fetch the public route to compare content."

Evidence to gather: Commit hash, git show for the changed file, branch, deployment artifact, service restart or release log, public route response, CDN/cache layer if one exists, and the current process path for self-hosted deployments.

Smallest safe recovery: Establish the deployed artifact and hosting mismatch before changing anything. Deployment, restart, binding changes, and cache invalidation require authority for that target; a commit alone does not grant it. Use the owning release workflow with its validated build identity, rollback plan, and original service state. Do not manufacture another content edit or stop a protected host.

Verify: The public route contains a phrase from the committed source, the deployment log references the commit or artifact, and a fresh request returns the expected content.

What a good troubleshooting report includes

  • The symptom and exact target: route, session key, file, provider, tool, artifact, or commit.
  • Evidence inspected: logs, settings status, provider response, session timeline, task file, artifact, service diagnostics, build output, route response, or git diff.
  • The smallest recovery step taken and why broader changes were avoided.
  • The verification result: command, route, status code, artifact path, or commit hash that proves the fix.
  • Any remaining open question or risk, especially if credentials, deployment, or external provider status could not be directly verified.