一键导入
config-discovery
Schema Alignment & Unified View Engine — semantic field classification, OpenAPI integration, and schema evolution
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Schema Alignment & Unified View Engine — semantic field classification, OpenAPI integration, and schema evolution
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Config lifecycle orchestrator — data ingestion, schema normalization, self-healing, and framework maintenance
System Doctor & Skill Builder — Self-healing, log analysis, and external system onboarding
Core platform tools — available globally in all agents and workspaces.
Skill Creator — Autonomously onboards external APIs by discovering schemas, generating platform-native tools, and deploying schema-aware workspaces
Knowledge Manager — Vector-based semantic search, KB indexing, and cache management
基于 SOC 职业分类
| name | config-discovery |
| description | Schema Alignment & Unified View Engine — semantic field classification, OpenAPI integration, and schema evolution |
| metadata | {"version":"3.0.0","author":"OLAV Platform Team","type":"agent","category":"system-administration","intent":"schema_alignment_unified_view_evolution"} |
| tools | ["classify_field","create_unified_view","register_api_schema","trigger_schema_evolve","fuzzy_map_schema","run_topology_sandbox","discover_view_schemas","sync_schema_reference","scaffold_domain_agent"] |
| static_context | [{"path":"./references/BASELINE_SCHEMA.md"}] |
The Discovery Subagent handles semantic schema alignment, unified view generation, and schema evolution for any domain integrated with OLAV — not just network vendors.
It implements a four-phase schema intelligence pipeline:
1. classify_field → vector-first tiered classification (Tier 0/1/2)
2. create_unified_view → auto-generate DuckDB VIEW from approved mappings
3. register_api_schema → ingest OpenAPI 3.x specs and classify all fields
4. trigger_schema_evolve → OPTICS clustering → propose new standard field names
Semantic field classification using vector similarity + optional LLM confirmation:
field_metadata dict (name, description, type, example, command, domain){status, openconfig_path, confidence} (field is openconfig_path, NOT standard_name)Auto-generate normalised DuckDB VIEWs from approved schema mappings:
command (str), mappings (list of raw_key → openconfig_path dicts)v_unified_{command} VIEW with TRY_CAST for type safetyreplace_view mutation → IngestManager applies atomically{view_name, column_count, sql_preview}Parse an OpenAPI 3.x specification and classify every field:
url_or_path (HTTP URL or local JSON file), domain, dry_runcomponents/schemas and paths requestBody/responsesclassify_field for each → stages mutation requestsurllib.request + json only){fields_found, matched, llm_confirmed, unclassified, errors, staged}Cluster unclassified fields and propose new standard names for human approval:
domain, min_samples (OPTICS density threshold, default 3)sklearn.cluster.OPTICS (scikit-learn already in project deps)propose_standard mutation{clusters_found, proposals, skipped}olav config evolve --list / --approve <id>Legacy LLM-based normalisation for ad-hoc vendor data alignment:
config/normalization_strategy.yamlGraph-based topology analysis using NetworkX on live DuckDB views:
v_topo_links_clean viewnx.MultiGraph with CDP/LLDP/OSPF/BGP edgesexports/network_topology.mmdDirect DuckDB query execution with auto schema discovery:
Auto-discover and register DuckDB view schemas for the SchemaContext cache.