How Clanker Cloud WorksHow Clanker Cloud WorksStage 1 of 8 · 8 stages · ~6 min
CLANKER · VERIFIED REQUEST PATH

One cloud question becomes bounded evidence

Follow a real Clanker CLI path from transcript cleanup through routing, credentials, parallel probes, and partial-failure aggregation.

8 stages~6 min
  1. CLEAN + ROUTE
  2. BACKEND + AUTH
  3. PROBE + MERGE
Read mode · answer first

Clanker Cloud Explained: How Prompts Become Cloud Evidence

See how Clanker Cloud cleans a request, chooses a provider, resolves credentials, runs parallel probes and keeps usable evidence when one probe fails.

Cheat sheet · 6 essential ideas

The whole story in 6 lines

Clanker cleans the question, selects a route and identity, gathers bounded evidence, and preserves failures beside usable results.

  1. Routing uses the newest explicit user turn instead of stale transcript or appended context.
  2. Keywords choose clear provider routes while an LLM resolves ambiguity and falls back safely on failure.
  3. Backend API keys and URLs follow explicit precedence rules before any remote request begins.
  4. Provider credentials create a client at one boundary, with a documented local fallback when remote hydration misses.
  5. Decision rules map a question to registered operations and schedule only dependency-ready workers.
  6. Parallel results keep original order, merge successful evidence, and report failures as metadata.
Which transcript text drives routing?
The newest explicit user turn drives routing. Appended context and earlier turns do not replace it.
When does Clanker call an LLM for routing?
It calls an LLM when keyword signals are ambiguous or require special verification. Keyword inference remains the fallback.
What is the API-key precedence order?
An explicit flag wins, then configuration, then the CLANKER_BACKEND_API_KEY environment variable.
What happens when backend credentials are unavailable?
The verified provider paths fall back to local profiles or provider configuration, then create the client there.
Why are some agents delayed until later groups?
The scheduler groups workers by execution order and starts them only when their required data is present.
How does aggregation represent a failed worker?
Failed workers are omitted from successful payloads, while completed and failed counts remain in metadata.
Download PDF cheat sheet
Stage 1 of 8

The confident answer with the wrong account

The confident answer with the wrong account

A cloud assistant gives a polished diagnosis, but it inspected the wrong provider and account. Fluent wording cannot repair evidence gathered from the wrong place.

Four ideas keep this path honest. A route selects the service, a backend stores account data, a credential proves identity, and a probe gathers one fact.

We will follow one checkout error question through six boundaries. The verified path comes from the local Clanker repository, while unavailable hosted internals stay outside our claims.

Each boundary produces one inspectable artifact for the next stage. Now let us start with the text that routing is actually allowed to read.

Stage 2 of 8

Keep only the request that should route

Keep only the request that should route

The verified CLI can receive a whole chat transcript from Clanker Cloud. Earlier questions, assistant replies, and cached context all arrive in one text block. That bundle is useful for conversation, but it is noisy for routing.

The cleanup function searches backward for the last explicit You marker. That choice prevents an older request from steering a new provider decision. It also keeps the extraction rule deterministic and easy to test.

The newest question is followed by a Current AWS context section. Cached details may describe yesterday rather than the user's present goal. Which text should cross into the routing function?

Pause and predict
What should the router receive?

The transcript collapses into one clean question. The next stage receives the checkout error request without the earlier deploy conversation or cached context. This output is smaller, but more importantly, it matches the latest intent.

Prompt cleanup narrows the routing input, but it does not rewrite the user intent. The original question still remains available for later evidence and synthesis. Next, we will see how that focused question selects a provider path.

Stage 3 of 8

Use cheap signals before an LLM tiebreaker

Use cheap signals before an LLM tiebreaker

Now that the question is clean, routing begins with deterministic keyword families. Provider names and distinctive services light only the relevant flags in a ServiceContext. This cheap pass does not need a model call.

A clear AWS phrase can stay on the cheap path. If nothing matches, the current implementation defaults to AWS and GitHub context instead of inventing a new provider. That fallback is explicit in the code.

Some phrases trigger more than one service flag, which makes the cheap result ambiguous. A wrong winner could send later calls toward the wrong account system. Should the first keyword simply win?

Pause and predict
How should ambiguous provider signals be resolved?

The LLM classifier returns one named service when ambiguity needs a tiebreaker. Its response is cleaned and parsed as JSON before changing the route. If either step fails, Clanker keeps the earlier keyword result.

Routing is a guarded decision rather than an unlimited model guess. Our checkout question resolves to AWS, so unrelated provider clients remain unopened. Next, that route needs a backend target and API key.

Stage 4 of 8

Resolve the backend before sending secrets

Resolve the backend before sending secrets

The AWS route first checks whether a Clanker backend is configured. API keys follow a strict order: explicit flag, configuration value, then environment variable. An empty value falls through without becoming a fake credential.

The backend address has its own precedence ladder. A configured URL wins, then an environment URL, then a named environment, and finally the testing default. Unknown names also fall back to testing.

URL selection and API-key selection are separate decisions. Keeping them separate makes it possible to inspect exactly which endpoint receives which account token. That separation also makes precedence bugs easier to isolate.

Only after both values resolve does the client form an authenticated request. The API key travels in the X-API-Key header toward one explicit backend endpoint. The HTTP client also enforces a thirty second timeout.

Backend resolution creates a precise remote boundary before provider secrets are requested. The endpoint and authentication source can both appear in debug evidence without printing the secret. Next, we will follow the credential response into an AWS client.

Stage 5 of 8

Turn one credential source into one client

Turn one credential source into one client

With the backend boundary fixed, Clanker requests only the credential type required by the route. The AWS path calls the provider-specific credentials endpoint. Other providers use their own typed endpoints and clients.

The response contains credential fields that are passed into the AWS client constructor. The explainer represents them as a sealed token because their values should never become narration. Only their source and destination matter here.

The backend can be missing, unauthorized, unavailable, or lack that credential. Those failures are different, but none creates a usable remote client. Does the entire investigation stop at this boundary?

Pause and predict
What does the verified AWS path do after a backend miss?

A backend hit or a local profile creates exactly one AWS client for the next phase. That client carries the chosen account identity into every evidence call. Client creation errors still stop the branch rather than hiding a broken identity.

Credential hydration ends at the provider client boundary, not inside the final answer. Later stages consume capabilities from that client without displaying secret fields. Next, Clanker will decide which bounded probes that client may execute.

Stage 6 of 8

Map intent to dependency-aware probes

Map intent to dependency-aware probes

The provider client is ready, so the agent analyzes the question and traverses a decision tree. Matching nodes name registered worker types instead of arbitrary commands. Higher priority matches replace lower priority duplicates for the same worker.

Each worker type maps to a fixed operation generator. Logs, metrics, infrastructure, security, and cost agents receive only the operations defined for their role. Unknown worker names receive no improvised operation list.

A security worker needs logs and service configuration, but neither result exists yet. Starting early would make its conclusions depend on missing inputs. Should it launch beside the first probes?

Pause and predict
When may a dependent worker start?

The scheduler forms ordered groups. Independent log and metrics work can share the first wave, while later workers wait for their promised inputs. Every group completes before the coordinator advances to the next order.

Planning converts a broad question into a bounded, dependency-aware execution plan. The plan carries worker names, mapped operations, and dependency order. Next, those ready probes will run together and return evidence with explicit failures.

Stage 7 of 8

Keep partial evidence and name every failure

★ If you remember one thing · A failed probe stays explicit while successful evidence remains usable.
Keep partial evidence and name every failure

The plan now fans ready workers out within each order group. A separate AWS helper can also run mapped operations concurrently while preserving their original result order.

Each probe returns a result shard tagged with its operation and original index. Successful shards carry facts, while failed shards carry an error instead of invented data.

The metrics probe fails while logs and infrastructure complete. Will aggregation discard the two successful findings?

Pause and predict
What should aggregation preserve?

Two successful shards enter the aggregated result, while the failed shard remains outside the evidence payload. Metadata records the total, completed, and failed counts.

Switch the Probe health control through both choices. Compare the complete evidence set with the partial result that keeps facts and names the missing probe.

The verified code proceeds with available data after some timeouts and nonfatal failures. Final synthesis can explain uncertainty, but the hosted app implementation is not present here. Now let us step back and see the whole picture together.

Stage 8 of 8

One traceable chain from question to evidence

One traceable chain from question to evidence

We started by isolating the newest explicit user turn. That protects routing from stale conversation and appended context.

Then we used keyword signals for clear routes and an LLM only as a guarded tiebreaker. Keyword inference remains available when classification fails.

Next, separate precedence rules selected the backend address and API key. That made the remote authentication boundary inspectable before provider credentials moved.

Credential hydration created one provider client from a backend response or documented local fallback. The chosen identity then followed every evidence call.

The decision tree and operation catalog bounded the investigation. Dependency groups prevented later workers from running before their required facts existed.

Parallel execution shortened independent work, while aggregation kept successful facts and counted failures. This is the key reliability boundary for partial evidence.

Together, these boundaries turn an open cloud question into a traceable evidence packet. The worked branch order comes from the local Clanker source, while hosted internals remain unclaimed.

Cheat sheet · 6 essential ideas

The whole story in 6 lines

Clanker cleans the question, selects a route and identity, gathers bounded evidence, and preserves failures beside usable results.

  1. Routing uses the newest explicit user turn instead of stale transcript or appended context.
  2. Keywords choose clear provider routes while an LLM resolves ambiguity and falls back safely on failure.
  3. Backend API keys and URLs follow explicit precedence rules before any remote request begins.
  4. Provider credentials create a client at one boundary, with a documented local fallback when remote hydration misses.
  5. Decision rules map a question to registered operations and schedule only dependency-ready workers.
  6. Parallel results keep original order, merge successful evidence, and report failures as metadata.
Which transcript text drives routing?
The newest explicit user turn drives routing. Appended context and earlier turns do not replace it.
When does Clanker call an LLM for routing?
It calls an LLM when keyword signals are ambiguous or require special verification. Keyword inference remains the fallback.
What is the API-key precedence order?
An explicit flag wins, then configuration, then the CLANKER_BACKEND_API_KEY environment variable.
What happens when backend credentials are unavailable?
The verified provider paths fall back to local profiles or provider configuration, then create the client there.
Why are some agents delayed until later groups?
The scheduler groups workers by execution order and starts them only when their required data is present.
How does aggregation represent a failed worker?
Failed workers are omitted from successful payloads, while completed and failed counts remain in metadata.