ワンクリックで
error-troubleshooting
Kailash errors: Nexus hangs, connection errors, runtime errors, cycles, missing .build(), validation, template syntax.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Kailash errors: Nexus hangs, connection errors, runtime errors, cycles, missing .build(), validation, template syntax.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Kailash DataFlow - zero-config data operations framework with automatic model-to-node generation and Data Fabric Engine. Use when asking about 'database operations', 'DataFlow', 'database models', 'CRUD operations', 'bulk operations', 'database queries', 'database migrations', 'multi-tenancy', 'multi-instance', 'database transactions', 'PostgreSQL', 'MySQL', 'SQLite', 'MongoDB', 'pgvector', 'vector search', 'document database', 'RAG', 'semantic search', 'existing database', 'database performance', 'database deployment', 'database testing', 'TDD with databases', 'external data sources', 'data products', 'db.source', 'db.product', 'db.start', 'fabric engine', 'source adapters', 'REST source', 'webhooks', or 'data fabric'. DataFlow is NOT an ORM - it generates 11 workflow nodes per SQL model, 8 nodes for MongoDB, and 3 nodes for vector operations.
Kailash Nexus - zero-config multi-channel platform for deploying workflows as API + CLI + MCP simultaneously. Use when asking about 'Nexus', 'multi-channel', 'platform deployment', 'API deployment', 'CLI deployment', 'MCP deployment', 'unified sessions', 'workflow deployment', 'production deployment', 'API gateway', 'session management', 'health monitoring', 'enterprise platform', 'plugins', 'event system', or 'workflow registration'. Also covers K8s integration: 'K8s probes', 'healthz', 'readyz', 'startup probe', 'ProbeManager', 'ProbeState', 'OpenAPI', 'openapi.json', 'OpenApiGenerator', 'security headers', 'CSRF middleware', 'CSRFMiddleware', 'SecurityHeadersMiddleware', 'middleware presets', 'Preset', or 'HSTS'.
Kailash Kaizen - production-ready AI agent framework with signature-based programming, multi-agent coordination, and enterprise features. Use when asking about 'AI agents', 'agent framework', 'BaseAgent', 'multi-agent systems', 'agent coordination', 'signatures', 'agent signatures', 'RAG agents', 'vision agents', 'audio agents', 'multimodal agents', 'agent prompts', 'prompt optimization', 'chain of thought', 'ReAct pattern', 'Planning agent', 'PEV agent', 'Tree-of-Thoughts', 'pipeline patterns', 'supervisor-worker', 'router pattern', 'ensemble pattern', 'blackboard pattern', 'parallel execution', 'agent-to-agent communication', 'A2A protocol', 'streaming agents', 'agent testing', 'agent memory', 'agentic workflows', 'AgentRegistry', 'OrchestrationRuntime', 'distributed agents', 'agent registry', '100+ agents', 'capability discovery', 'fault tolerance', 'health monitoring', 'trust protocol', 'EATP', 'TrustedAgent', 'trust chains', 'secure messaging', 'enterprise trust', 'credential rotation', 'trust verificati
Kailash cheatsheets: patterns, nodes, workflows, cycles, performance, security, multi-tenancy, saga, custom nodes.
Kailash dev guides: custom nodes, MCP, async, testing, deployment, RAG, security, monitoring, SDK internals.
Workflow templates: finance, healthcare, logistics, manufacturing, retail, ETL, RAG, document processing, API.
| name | error-troubleshooting |
| description | Kailash errors: Nexus hangs, connection errors, runtime errors, cycles, missing .build(), validation, template syntax. |
Common error patterns and solutions for Kailash SDK.
Use when encountering errors, debugging issues, or asking about error, troubleshooting, debugging, not working, hangs, timeout, validation error, connection error, runtime error, cycle not converging, missing build, or template syntax. Covers Nexus blocking issues, connection parameter errors, runtime execution errors, cycle convergence problems, missing .build() calls, parameter validation errors, and DataFlow template syntax errors.
.build()
TypeError: execute() expects Workflow, got WorkflowBuilder | Fix: runtime.execute(workflow.build())external_pool parameter, set max_pool_size = DB max / worker count(source_id, source_param, target_id, target_param)ValidationError: Missing required parameter | Fix: Check node docs for required paramscycle_complete convergence checkSyntaxError in template strings | Fix: Use {{variable}} syntaxjson_prompt_suffix() or set response_formatapi_version in response_formatprovider_config | Migrate to response_format fieldAZURE_ENDPOINT, AZURE_API_KEY)| Symptom | Error Type | Quick Fix |
|---|---|---|
| API hangs forever | Nexus blocking | Use AsyncLocalRuntime |
TypeError: expects Workflow | Missing .build() | Add .build() call |
| Node gets wrong data | Connection params | Check 4-parameter format |
ValidationError | Parameter validation | Check required params |
| Infinite loop | Cycle convergence | Add convergence condition |
Template SyntaxError | DataFlow template | Use {{variable}} syntax |
| Runtime fails | Runtime execution | Check logs, validate inputs |
| "too many connections" | Connection exhaustion | Use external_pool injection |
| Azure 400 "messages must contain 'json'" | Kaizen provider | Use json_prompt_suffix() or response_format |
| "Missing required parameter: response_format.type" | Kaizen provider | Don't put api_version in response_format |
DeprecationWarning about provider_config | Kaizen provider | Migrate to response_format field |
.build() on WorkflowBuilder?AsyncLocalRuntime for Docker/FastAPI?{{variable}} syntax?external_pool in multi-worker deployments?response_format (not provider_config)?AZURE_ENDPOINT, AZURE_API_KEY)?structured_output_mode="explicit" for new agents?__getattr__ Lazy LoadingSymptom: CodeQL reports "Explicit export is not defined" (py/undefined-export)
for names in __all__ resolved by a module-level __getattr__ function.
Fix: Add a TYPE_CHECKING-guarded import for the reported name:
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from mypackage.submodule import LazyName as LazyName # explicit re-export
def __getattr__(name: str):
if name == "LazyName":
from mypackage.submodule import LazyName
return LazyName
raise AttributeError(...)
__all__ = ["LazyName"] # CodeQL now sees the TYPE_CHECKING import
The as LazyName re-export syntax prevents "unused import" warnings from other linters.
Fix: Add a comment explaining intent. CodeQL accepts except: pass with an inline comment:
except ValueError:
pass # Callback already unregistered; silently ignore duplicate removal
except asyncio.CancelledError:
pass # Expected: we just cancelled this task above
__del__Fix: Use the _warnings=warnings default parameter pattern and minimize branching:
def __del__(self, _warnings=warnings) -> None:
if not getattr(self, "_closed", True):
_warnings.warn("Resource was not closed.", ResourceWarning, stacklevel=1)
Avoids conditional import warnings inside __del__ that CodeQL flags as complex.
The default parameter captures the module at definition time, surviving interpreter shutdown.
Symptom: git commit fails with "stash pop" errors or silently
drops staged changes, even though running pre-commit run --all-files
directly passes every hook.
Root cause: Pre-commit's auto-stash feature stashes unstaged changes before running hooks, then pops after. When a hook modifies the working tree (e.g., a formatter), the pop conflicts with the hook's changes, causing the commit to abort or lose staged hunks.
Workaround: Bypass the hooks directory for this commit only:
git -c core.hooksPath=/dev/null commit -m "fix(scope): description"
Mandatory follow-up: Document the bypass in the commit body AND
file a todo against the pre-commit configuration. See
rules/git.md "Pre-Commit Hook Workarounds" for the full rule.
Silent --no-verify retries are BLOCKED.
Frequency: Recurring across sessions in kailash-py; the stash interaction is non-deterministic and depends on which files have unstaged changes at commit time.
.build() was calledpattern-expert - Pattern validationgold-standards-validator - Check compliancetesting-specialist - Test debugging