Governing authority for the qyl platform — a compile-time OS for agent workflows. Encodes the Loom compiler architecture, 7 bounded subsystems, MAF execution model, AIFunctionFactoryOptions bridge, and architectural invariants. Any AI agent working on qyl must follow this skill.
From qylnpx claudepluginhub ancplua/ancplua-claude-plugins --plugin qylThis skill uses the workspace's default tool permissions.
agents/openai.ymlevals/evals.jsonloom.mdmcp.mdrules/architecture.mdrules/frontend.mdrules/invariants.mdrules/maf.mdEnables AI agents to execute x402 payments with per-task budgets, spending controls, and non-custodial wallets via MCP tools. Use when agents pay for APIs, services, or other agents.
Designs and optimizes AI agent action spaces, tool definitions, observation formats, error recovery, and context for higher task completion rates.
Compares coding agents like Claude Code and Aider on custom YAML-defined codebase tasks using git worktrees, measuring pass rate, cost, time, and consistency.
qyl compiles the system. MAF executes the system. AG-UI renders and drives the system. Ledger, policy, and telemetry govern the system.
IIncrementalGenerator) extracts declarations and emits static descriptors, manifests, and registriesAIFunction via AIFunctionFactoryOptionsThe system shape is known at compile time. There is no runtime reflection control plane.
| Plane | Mission | Owns | Must Not Depend On |
|---|---|---|---|
| Data | Ingest, normalize, persist telemetry | OTLP receivers, DuckDB storage, ingestion pipeline | MAF, AG-UI, LLM providers, workflow orchestration |
| Serving | Expose stable platform state to operators, MCP clients, internal services | REST/gRPC endpoints, query engine, MCP server surface | Free-form agent reasoning, UI component decisions |
| Intelligence | Convert telemetry into structured diagnostic facts and evidence | Diagnostic patterns, evidence packs, anomaly detection | AG-UI, workflow hosting, prose-first agent behavior |
| Agent/Control | Run bounded investigations and repair workflows over structured evidence | Agent orchestration, Loom workflows, tool execution | Raw storage internals, implicit shared memory, unbounded autonomy |
| Ledger/Governance | Store truth about what the system decided, did, and was allowed to do | Audit log, run records, approval chains, policy enforcement | Agent session state as truth, workflow checkpoint state as audit truth |
| UI/Protocol | Project platform state and workflows to humans and external clients | AG-UI surface, SSE streaming, approval/rejection UX | Hidden domain logic in components, direct storage coupling |
| Compiler | Make platform structure explicit at compile time | Loom generators, static descriptors, telemetry manifests | Runtime reflection as primary discovery, ad hoc startup registration |
AI may reason over telemetry.
AI may propose actions from telemetry.
AI must NOT be in the hot path of telemetry ingestion or core query serving.
Telemetry systems and agent systems fail differently. Fusing them makes both worse.
Developers annotate C# code with four attribute types:
| Attribute | Target | Meaning |
|---|---|---|
[LoomTool] | Methods | Deterministic function exposed as an AI tool |
[LoomContract] | Types | Typed I/O shape for tool parameters and returns |
[LoomStep] | Classes | Workflow step executor with explicit inputs/outputs |
[LoomWorkflow] | Classes | Workflow definition with step ordering and approval ports |
The generator emits: static descriptors per tool/contract, a LoomGeneratedRegistry aggregating all declarations, and a telemetry manifest mapping tools to semantic conventions.
At runtime, descriptors are bridged into AIFunction instances via AIFunctionFactoryOptions -- no reflection, no hand-wired registration.
See loom.md for the full pipeline.
| Work Type | Use | Why |
|---|---|---|
| Deterministic computation | function via [LoomTool] | Pure, testable, no LLM overhead |
| Open-ended planning | agent (bounded reasoning) | LLM needed, constrained by [LoomBudget] |
| Multi-step lifecycle | workflow via [LoomWorkflow] | Explicit ordering, checkpointing, approval ports |
AIFunctionFactoryOptions, not manual AddTool calls.See rules/invariants.md for enforcement details and rationale.
Each plane has one non-negotiable success condition: