Skip to content
Back to skills

Ascendc Evolution World Model

ASecurity

World model decision tree tools and reference documentation for evidence-driven AscendC kernel evolution, providing CLI operations (select, validate, summary, deep-profiling) and schema/operations reference. 当进行证据驱动的 AscendC 内核进化优化,需要初始化、选择、验证、更新世界模型决策树或查询其 schema/操作规范时使用。

  • 21 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added November 7, 2026
businesspythonbashreactnodeperformancedocumentation

Works with

  • cli

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned November 7, 2026

npx -y skills add hicann/cannbot-skills --skill ascendc-evolution-world-model --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ascendc Evolution World Model?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ascendc Evolution World Model
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hicann-ascendc-evolution-world-model/badge)](https://www.skillsdirectory.com/skills/hicann-ascendc-evolution-world-model)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ascendc-evolution-world-model
description: World model decision tree tools and reference documentation for evidence-driven AscendC kernel evolution, providing CLI operations (select, validate, summary, deep-profiling) and schema/operations reference. 当进行证据驱动的 AscendC 内核进化优化,需要初始化、选择、验证、更新世界模型决策树或查询其 schema/操作规范时使用。
---

# Evolution World Model

世界模型决策树工具和参考文档,用于证据驱动的 AscendC 内核进化优化。提供 CLI 工具管理持久化 JSON 决策树,支持节点选择、验证、摘要生成和深度 profiling 分析。

## 文件布局

```
references/
  schema.md                  # world_model.json 完整 JSON Schema 定义
  operations.md              # 四大操作:Init / Select / Refine / Analyze
  state_schema.md            # state.json 状态机定义
  evaluation_contract.md     # 评测格式、测量质量与接受评分的契约

scripts/
  wm_ops.py                  # CLI 工具(选择/验证/摘要/深度分析)
  state_ops.py               # 运行时状态机管理
  profiling_evidence.py      # 瓶颈分析 → 策略映射
  session_anchor.py          # Session 身份锚定
  check_round_artifacts.py   # 产物完整性检查
  evaluation_contract.py     # refine、产物检查与 ledger 共用的评测解析
  solution_db.py             # JSONL 谱系追踪
  transcript_audit.py        # 子 Agent 审计
```

## CLI 工具 (wm_ops.py)

### 子命令

```bash
# 节点选择:按 utility 评分排序,返回 top-N 节点
python3 community/ops/ascendc-evolution-world-model/scripts/wm_ops.py select \
    --path {world_model.json} --n {parallel_num}

# 不变量验证:检查 parent 引用、状态合法性、延续性等
python3 community/ops/ascendc-evolution-world-model/scripts/wm_ops.py validate \
    --path {world_model.json}

# 诊断校验:检查标签、置信度、诊断文本及下一轮提示
python3 community/ops/ascendc-evolution-world-model/scripts/wm_ops.py validate-diagnosis \
    --wm-path {world_model.json} --strict

# 摘要生成:生成精简文本摘要用于 prompt 注入
python3 community/ops/ascendc-evolution-world-model/scripts/wm_ops.py summary \
    --path {world_model.json} [--max-chars 1200]

# 深度 profiling:运行指令级分析,写入 profiling_evidence 到节点
python3 community/ops/ascendc-evolution-world-model/scripts/wm_ops.py deep-profiling \
    --wm-path {world_model.json} --node-id {id} --work-dir {dir} --op-name {name} \
    [--merge-children]

# Refine:轮次结束后更新世界模型
python3 community/ops/ascendc-evolution-world-model/scripts/wm_ops.py refine \
    --wm-path {world_model.json} --round {r} --results-dir {dir} \
    --parallel-map '{map}' --task-type {type}

# Diagnose:失败节点诊断
python3 community/ops/ascendc-evolution-world-model/scripts/wm_ops.py diagnose \
    --wm-path {world_model.json} --node-id {id} \
    --failure-type {impl_error|strategy_infeasible} --failure-reason "..."

# Session 锚定
python3 community/ops/ascendc-evolution-world-model/scripts/wm_ops.py session \
    --wm-path {world_model.json} --session-id {id} --evo-dir {dir} --op-name {name}

# Baseline evidence 挂载
python3 community/ops/ascendc-evolution-world-model/scripts/wm_ops.py attach-baseline-evidence \
    --wm-path {world_model.json} --baseline-eval {baseline_evaluation.json}
```

### Utility 评分公式

```
utility = 3.0 * parent_score
        + 2.5 * (5 - difficulty)
        + 0.75 * depth
        + w_root_explore    # +2.0 if parent is root
        + w_evidence         # +1.5 if parent has profiling_evidence
```

### Profiling 诊断契约

Stage 1 `extract_facts()` 提供 `cube_ratio`、`fixpipe_ratio`、`mte1_ratio`;Stage 2 分别使用 `cube_bound`、`fixp_bound`、`mte1_stall`。这些标签同时用于诊断校验、策略检索和预期收益估算。字段单位、缺失值规则及完整词表见 [Profiling Reference](../ascendc-evolution-knowledge/references/a3/profiling_reference/INDEX.md)。

## 参考文档

### Evaluation Contract (references/evaluation_contract.md)

接入评测器或排查结果与世界模型不一致时,读取 [评测证据契约](references/evaluation_contract.md)。flat、comparison 和 multi-shape 结果共用解析规则;缺失或无效测量质量保留为 `unknown`,使用保守搜索阈值。ledger 区分报告的 speedup 与世界模型接受的 score。

### Schema (references/schema.md)

定义 `world_model.json` 的完整结构:
- 顶层字段:kernel_summary, baseline_performance, decision_tree, open_questions, stagnation_count, best_score, hw_params, discovered_strategies
- 节点字段:id, parent_id, strategy_combination, mode, status, score, difficulty, solution_ref, profiling_insight, profiling_evidence, children

### Operations (references/operations.md)

四大操作的推理框架:
1. **Init**: 分析算子特征 → 形成瓶颈假设 → 设计初始优化方向
2. **Select**: utility 排序 → 保证 optimization_type 多样性 → 槽位分配
3. **Refine**: 评估结果写入 → 子节点生成/封印 → 停滞检测
4. **Analyze**: 回顾本轮 + 历史 → 更新 open_questions (5 条假设)

### State Schema (references/state_schema.md)

定义 `state.json` 状态机:
- 阶段:init → shared_prep → wm_init → round_select → round_generate → round_refine → round_react → round_checkpoint → finalize → report → done
- 漂移检测:stagnation_count ≥ 2 → drift_status=replan_required
- Hook 规则:11 条不变量检查

## 模块依赖

- `wm_ops.py` → imports `profiling_evidence.py`(merge_strategies_with_evidence)
- `state_ops.py` 独立运行,管理运行时状态
- `session_anchor.py` 独立运行,管理 session 身份锚定
- 所有脚本在同一 scripts/ 目录下,通过 sibling import 引用

Files in this skill

  • SKILL.md5.8 KB
  • references/INDEX.json1.6 KB
  • references/SOURCE_KEY.md551 B
  • references/evaluation_contract.md4.5 KB
  • references/operations.md15.4 KB
  • references/schema.md20.9 KB
  • references/state_schema.md11.8 KB
  • scripts/bottleneck_to_sources.py5.7 KB
  • scripts/check_round_artifacts.py11.3 KB
  • scripts/check_target_feasibility.py6.7 KB
  • scripts/discover_strategies.py16.4 KB
  • scripts/evaluation_contract.py8.4 KB
  • scripts/generate_baseline_eval.py5.2 KB
  • scripts/prepare_strategy_resources.py27.5 KB
  • scripts/profiling_evidence.py38.6 KB
  • scripts/session_anchor.py9.6 KB
  • scripts/solution_db.py6.4 KB
  • scripts/state_ops.py39.9 KB
  • scripts/transcript_audit.py16.2 KB
  • scripts/wm_audit.py20.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in business →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.