# L3 — 解释层 SLM/XAI

## 设计

* **ExplanationRegistry**：存 (decisionId, explanationHash, modelVersion, timestamp)
* **baby-explanation Rust crate**：当前为 deterministic stub explainer（PoC）；主网前 swap 真 SLM 微调 + XAI feature attribution

## 链上事实

* ExplanationRegistry 已部署 chain 391
* baby-explanation crate 集成 PoBRegistry / PoDRegistry

## 主网前必备

1. 真 SLM 微调（4-8 周 roadmap）
2. XAI 算法选型 (LIME / SHAP / IG)
3. SLM 推理 D2 TEE attestation 集成

详见：[L3 W1-W4 devlog](https://github.com/leeleeEcho/babyDriver_Layer2/blob/main/docs/devlog/2026-Q2/README.md) (4 周开发历程)。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://yellowpaper.axblade.io/protocol-mechanics/explanation-layer.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
