Provides various test operations for development and debugging. Supports echo operations, random data generation, error simulation, delay operations, and never-completing tasks. Perfect for testing async behavior, error handling, and orchestration workflows in the Covia platform.
| Name: | test |
| Class: | covia.adapter.TestAdapter |
This adapter provides 38 MCP tool(s) for AI agent integration:
| Tool Name | Description |
|---|---|
| test_random | Generates a specified number of random bytes using a cryptographically secure random number generator |
| test_workspacellm | Test LLM that exercises workspace tools (covia_write, covia_append, covia_read) in sequence within a single agent run. Used for end-to-end testing of agent workspace interaction. |
| test_compactllm | Test LLM that exercises the compact harness tool. First call returns tool calls for test:echo and compact; second call verifies the compacted segment and returns text. |
| test_holdread | Test operation that holds until the test releases the named gate, then returns its result, or fails with its error when one is given. Declared read-only, so a result-oriented call to it runs unrecorded. |
| test_progress | Publishes progress on its Job from its own thread, as a long-running operation does, then completes |
| test_wakeresponse | Test transition that returns a wakeTime from state.wakeTime in the transition result. Used to exercise per-thread scheduler wire-up (B8.8). |
| test_stubbornllm | Test LLM that always replies with plain text and never resolves a task — drives the run loop to its iteration cap. Used to test terminal stuck-task settlement (#215). |
| test_skillllm | Test LLM driving skill adoption during a chat. Fresh: calls skill_load for the 'alpha' skill. After the load result: calls the skill-provided covia_read operation through invoke_tool (proving same-transition append-only activation). After that result: reports SKILL_TOOL_RESULT. On later turns with the loaded skill body and tool-addition event present: reports SKILL_BODY_PRESENT plus tool-state status. |
| test_selfchat | Test LLM that invokes agent:message on itself during its first transition, then handles the FOLLOWUP message on the next cycle. Used to regression-test nested self-chat during the agent run loop. |
| test_error | Always fails, regardless of input |
| test_chat | A multi-turn test operation that echoes messages back. Send messages via POST /api/v1/jobs/{id}. Send {"content": "done"} to complete. |
| test_subgoalechollm | Test LLM driving a subgoal that completes: the root issues a subgoal; the child calls v/test/ops/echo once, then answers; the root answers on the subgoal result. Exercises push → run → pop, so the child's exchange is observable only through the cycle record. |
| test_subgoalllm | Test LLM driving subgoal recursion with an observable window: root issues a subgoal; the child makes a blocking tool call (v/test/ops/hold at the gate a 'hold:<gate>' model names, else v/test/ops/never), then completes; the root completes on the subgoal result. |
| test_askhuman | Test task transition that asks its owner a question through hitl:request and yields, then completes the task with the answer once it arrives in the task's session. |
| test_badargsllm | Test LLM that emits a tool call with malformed (non-JSON) arguments on its first turn, then echoes the tool result content. Used for testing that broken tool arguments produce a visible tool error the LLM can react to, never a silent empty-map invocation. |
| test_nevertoolllm | Test LLM whose first tool call blocks so tests can observe mid-run lattice state: v/test/ops/hold at the gate a 'hold:<gate>' model names, else v/test/ops/never until toolCallTimeoutMs. Returns text once the tool result arrives. |
| orchestrator | Runs a sequence of operations |
| test_failllm | Test LLM that fails the way its model names (setup, unavailable, value, content, bug or integrity), optionally after a test gate (model 'setup:<gate>'), for the agent run loop's failure rules. |
| test_capturectxread | Test-only read-only op: records the RequestContext it ran under (keyed by the user DID whose namespace it ran in), as capturectx does, and echoes the input. Being read-only, a context load may call it. |
| test_step | Test agent transition scripted by the text of the cycle's newest input: hold:<gate>, complete, failtask, fail, cannot, bug or yield; otherwise it replies with the messages it saw and the task's input. It leaves the conversation to the run loop. |
| test_loopllm | Test LLM that ALWAYS requests a tool call and never returns text or completes a task. Drives the agent tool-call loop to its iteration limit, to verify the agent fails the Job on give-up rather than leaving a task STARTED (covia-ai/covia#138). |
| test_never | An operation that never completes, i.e. its status will remain PENDING |
| test_neverfailllm | Test LLM whose first tool call blocks (v/test/ops/hold at the gate a 'hold:<gate>' model names, else v/test/ops/never), then FAILS the L3 call after the tool result — a scripted mid-cycle transition failure for lattice-frames durability tests. |
| test_allowgate | Capability gate that always passes (#216). A grant carrying nb: {gate: 'v/test/ops/allowgate'} behaves like an ungated grant — useful for wiring tests and as the reference example of the gate input shape {operation, input, caller}. |
| test_echo | Returns the input unchanged. Useful for testing or as a generalised identity function. |
| test_textctlllm | Test LLM that emits complete_task as plain assistant text instead of a structural tool call — the small-model behaviour from #215. Used to test the harness's textual control-tool fallback. |
| test_hold | Test operation that holds until the test releases the named gate, then returns its result, or fails with its error when one is given. Lets a test decide exactly when a running call finishes. |
| test_toolllm | Test LLM that requests tool calls. On first call returns a tool call for test:echo; after tool results arrive returns a text summary. Used for testing the agent tool call loop. |
| test_moretoolsllm | Test LLM driving more_tools mid-run adoption. Fresh: calls more_tools to add v/test/ops/echo. After the result: calls the derived test_echo tool (proving same-run palette activation). After that result: reports MORE_TOOLS_RESULT. |
| test_taskllm | Test LLM that completes tasks. Reads task context from user messages, calls complete_task for the first task, then returns a text summary. Used for testing the full agent:request pipeline. |
| test_taskcomplete | Test transition function that auto-completes all tasks. Returns taskResults with each task's input as output. |
| test_amountgate | The canonical argument-conditional capability gate (#216): passes iff the gated invocation's input carries amount <= 2000. Fail-closed on a missing or non-numeric amount. Demonstrates policy limits enforced by the runtime, not the prompt. |
| test_delay | Runs another op after a delay |
| test_pause | A test operation that immediately pauses itself. Send any message to unpause and complete the job with the original input as output. |
| test_holdstart | Test operation that holds inside its own invocation until the test releases the named gate, then returns its result, or fails with its error when one is given. Unlike hold, whoever starts it waits too, so a test can keep a start in progress. |
| test_capturectx | Test-only transition op: records the RequestContext it ran under (keyed by the user DID whose namespace it ran in) and echoes the input. Used to assert agent run-loop identity (#91). |
| test_denygate | Capability gate that always fails (#216). A grant carrying nb: {gate: 'v/test/ops/denygate'} never applies — the invocation is denied with the gate's reason. Useful for verifying deny paths end-to-end. |
| test_llm | Test LLM operation that echoes the last user message. Accepts a messages array and returns an assistant message map. Used for testing the agent loop without a real LLM. |