server-and-stores
Work on ZenML FastAPI server routers, auth/RBAC, domain models, stores, SQLModel schemas, Alembic migrations, triggers, resource pools, and server deployment troubleshooting.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- server-and-stores
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Work on ZenML FastAPI server routers, auth/RBAC, domain models, stores, SQLModel schemas, Alembic migrations, triggers, resource pools, and server deployment troubleshooting.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/models-stores-migrations.md7.8 KB
- 参考文档references/server-api.md5.6 KB
- 参考文档references/troubleshooting.md6.1 KB
- 脚本scripts/check_migration_branches.py2.3 KB
03 SKILL.md 正文
Server and Stores
Use this sub-skill when the task mentions ZenML FastAPI, REST endpoints, routers, zen_server, authentication, RBAC, HTTP errors, Zen stores, SQLModel schemas, Alembic migrations, triggers, schedules, resource pools, resource requests, server deployment, database upgrades, or server optional extras.
When To Read
- Read Server API before adding or debugging FastAPI routers, endpoint wrappers, auth/RBAC checks, HTTP exceptions, feature gates, server optional dependencies, or import-boundary failures.
- Read Models, Stores, and Migrations before changing Pydantic domain models, filters, REST/SQL store methods, SQLModel schemas, migrations, triggers, resource pools, or rolling-compatible data shapes.
- Read Troubleshooting when server extras are missing, FastAPI returns the wrong status, RBAC blocks a request, schema/model fields drift, migrations diverge, trigger/resource-pool updates miss a layer, or upgrades break rolling deployments.
- Run check_migration_branches.py after adding or rebasing Alembic revisions to detect diverging migration heads without mutating any database.
Scope
This sub-skill owns ZenML server internals: FastAPI app and routers, zen_server-local utilities, auth/RBAC endpoint patterns, REST server behavior, Zen store interfaces and implementations, SQLModel schemas, Alembic migrations, trigger/resource-pool internals, and server deployment troubleshooting. Keep runtime behavior synchronous at route boundaries unless the existing async wrapper pattern requires otherwise.
Route Elsewhere
- Use CLI and Client for Click commands,
Client()usage, login/connect flows, user-facing list filters, and CLI/client signature coupling. - Use Pipeline Authoring for
@pipeline,@step, schedules as authoring APIs, materializers, hooks, cache/retry behavior, and local pipeline runs. - Use Stacks and Integrations for stack component flavors, service connectors, orchestrators, step operators, integration extras, and optional SDK import boundaries.
- Use Maintenance for targeted test selection, formatting, linting, spelling, CI-equivalent checks, and broad docs maintenance.
Safe Defaults
Do not import zenml.zen_server from client, CLI, integration, or shared model code. Do not import SQL schemas or SqlZenStore from outside the store/server layer; use shared models or Client().zen_store when lower-level access is unavoidable. Prefer read-only probes, --help, targeted unit tests, and branch checks before any migration upgrade. Treat tokens, API keys, database URLs, secret values, server URLs, and backup credentials as sensitive.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).