---
title: "Semaprax 架构：语义程序图"
canonical: https://wavect.io/zh/semaprax/architecture/
language: zh
description: "Semaprax 0.8.0 架构：稳定 ID、经过检查的语义图、源码定律、修改重放、类型化运行时智能体，以及连接编译器的开发工具提供方。"
image: "https://wavect.io/img/general/bak/open_graph_preview.jpg"
---

架构 · 源码、语义与权限

# 让智能体直接查询程序模型，无需从文本重新推断语义。

先稳定身份，再修改源代码。

语义程序图让声明、类型、副作用、契约、所有权与调用关系都能通过稳定身份查询。0.8.0 将这一模型扩展到源码定律、受保护的实现修复、更丰富的 Rust 边界，以及开发工具。

semaprax://architecture v0.8.0

```
entity     Semaprax
status     Beta 测试版
snapshot   615e501
authority  github.com/wavect/semaprax
```

// STATUS

## 审计快照中的仓库状态

| 仓库快照 | [`615e501`](https://github.com/wavect/semaprax/commit/615e501612895a52b3fdd72a03baf875a8f0df1b) · 2026-10-06. v0.8.0 标签指向固定的源码提交。该标签的确切 CI 已成功完成，但不构成全面的生产可用性或安全保证。 |
| --- | --- |
| 完整产品状态 | 55 部分 · 0 已实现 · 0 缺失 |
| 语义图与项目契约 | 规范源码、稳定 ID 和经过检查的编译器表示，将定律、语义查询、修改与执行连接起来。按功能选择的图模式和 Project 模式，各自保留独立的准入、兼容性和宿主权限契约。 |
| 已发布的 Beta 版本 | [`v0.8.0`](https://github.com/wavect/semaprax/releases/tag/v0.8.0) · 发布于 2026 年 10 月 6 日 07:37 UTC。确切标签的 82 个作业全部成功。已发布三个工具链包、SHA256SUMS、各包的构建证明和签名汇总来源证明。发布作业在发布前独立验证了签名文件集。工具链包未经过公证，也不声称构建可复现；离线验证不能确认当前的撤销状态。 [确切标签 CI](https://github.com/wavect/semaprax/actions/runs/37403651320). |
| 包与 API 预览 | 此版本包含可用的语言、定律、开发工具和宿主集成配置。生成的 Rust/npm 包、公共泛型 ABI 及更广泛的平台支持，仍须分别决定其发布与支持范围。 |

## Semaprax 如何工作？

Semaprax 检查可读的.spx 源码，并将其解析为 HIR，即带有类型信息的编译器表示。源码身份与语义身份将查询、定律义务、候选修改和执行绑定到被检查的程序。编码智能体可以使用这一核心周围的开发工具；运行时智能体则在显式提供的宿主能力下，分别解码提案、授权副作用并归约状态。

// 01

## 先稳定身份，再修改源代码。

### 规范源码与稳定身份

可读的.spx 仍是 Git 中的规范表示。显式 @id 让声明在受支持的显示名称变更后保留身份。编译器生成的修订绑定源码与选定前导库；图编码展示这些事实，并不替代源码。

### 受限上下文与紧凑投影

选择声明、方向、深度、节点数与字节上限。任务上下文以及文本、二进制或模型文本投影，都保留对选定事实的确切重放。原生语义上下文代理可以借助 Graft 或 Graphify 导航仓库，但不会将外部索引当作编译器事实。

### 源码定律与受保护的实现修复

原生 law 声明为契约要求与关系要求提供持久身份。单独选定的 LawSet 固定完整定律清单和严格策略。已安装的 Lean/Z3 适配器可证明已获准的标量、模运算、结构化和列表定律；过期、不受支持、未知和已被反证的结果保持区分。候选修复必须满足受到保护的需求。

### 带修订检查的语义修改

检查上下文、生成候选修改、预览影响与审阅结果、重放检查，然后授权应用。范围明确的表达式替换、结构化编辑和指定组合，各自保留操作与修订限制。源码定律编辑和实现修复遵循不同的保护规则。

### 受管理的发布与嵌入

受管理的工作区代次、候选证据和 Project 修订存储，将发布绑定到经过检查的候选版本。Rust 嵌入 API 提供范围明确的输入与不透明会话。仅通过多文件验证，并不会修改任意文件、Git 引用或编辑器缓冲区。

### 日常语言功能与集合

已获准的配置包括记录、变体、类、继承、带限定参数推断的泛型、Option/Result、循环、迭代器、函数值、字符串和字节。不可变 `List<i64>` 增加持久化 nil/cons/uncons 操作。一般约束与任意功能组合仍需各自的准入规则。

### 所有权与回调生命周期

拥有所有权的值、借用视图、清理计划及选定的资源组合均可执行。限定的闭包配置包括拥有所有权的 Bytes 捕获、复制的标量快照、事务式可变标量状态，以及同步借用文本捕获。每种配置分别检查逃逸、移动、回滚和清理规则；更广泛的生命周期关系仍待扩展。

### 受显式边界契约约束的 Rust API

预先准备的 Rust API 索引选择受支持的导入和确切 Cargo 输入。生成的所有权、借用视图与回调适配器，将经过检查的源码连接到真实的 Regex/Url 和 Serde/迭代器使用方。同线程 Future 桥接使用调用方拥有的执行器。外部假设保持显式；生成的连接代码并不能证明 crate 内部实现。

### 类型化运行时智能体

初始化、观察、提案、解码、授权、执行与归约。每轮重新授权，归约器选择 Continue、Complete、Suspend 或 Fail。默认在线路径使用解释器；显式启用的库路径接受调用方持有的原生 C11 或 Core Wasm 阶段宿主，其本地一致性证据有明确范围。

### 预算、持久化恢复与模型调用

显式适配器提供传输、凭据与存储。持久化配置在分发前确认意图，并将未解决的尝试保留为不确定状态。限制与回执区分调用、工作量、字节、token 和成本。通用宿主重试/故障切换与绑定的源码模型路径具有不同契约；后者不会自动切换提供方，也不会重试结果不确定的工作。

### 可恢复源码与拥有所有权的续体

解释器支持范围明确的顺序及依赖控制流的 yield、选定的拥有所有权的 Bytes 传递，以及经过认证的持久化源码配置。公共拥有所有权的智能体子集具有两轮生命周期和选定的进程重启验证。普通原生/Wasm 生成器仍拒绝包含 yield 的函数；通用调度器和统一续体 ABI 尚未完成。

### 连接编译器的开发工具

完整工具链的 harness 协调显式任务、编译器反馈、提供方描述、按项目锁定与信任、模型路由、技能和桥接。官方 Ponytail/Caveman 技能包、Graft/Graphify 适配器与 RTK 模型视图服务于选定工作流。具有权威性的命令结果与供模型阅读的紧凑输出保持分离。

### 经检查的开发重载

持续保留的解释器会话检查候选修改、规划兼容性，并在调用之间激活修改。轮询监视声明的 Project 输入；无效修改不会影响当前修订的可用性。VS Code 控件展示当前、待激活和未提交状态。源码智能体日志迁移属于完整工具链中的独立路径。

### 应用与经济智能体配置

参考服务将经过检查的会话、任务与作业决策，同快照宿主、显式 HTTP/TLS 以及选定的 JSON 事件或 OTLP 遥测组合起来。已通过的 Linux/Podman 流程仍有明确范围；SQL 适配器会被拒绝。经济智能体保留由宿主负责的钱包、批准、签名和对账边界。

### 生成的包与本地注册表信任

拥有所有权数据的 Project 配置，以及一个由编译器生成的私有泛型 Wasm 端点，都具备生成使用方的验证证据。公共泛型接口仍不受支持，也未发布。本地签名注册表元数据、持有的代次与锁定读取，本身不提供托管包注册表或网络获取权限。

### 证明与发布来源

确切标签的 Lean 作业检查其范围明确的形式化内核与证明义务导出。发布作业另行证明三个压缩包的构建，并签名、验证汇总来源证明。这是不同的证据链；二者都不证明整门语言的正确性、公证状态或跨宿主构建可复现性。

// 02

## 源代码投影保持可读

```
module examples.meaning;

@id("math.add")
fn add(left: i64, right: i64) -> i64
    requires left >= 0
    requires right >= 0
    ensures result == left + right
{
    left + right
}

@id("app.main")
fn main() -> i64
    ensures result == 42
{
    add(19, 23)
}
```

本页依据 v0.8.0 标签及其固定源码提交审阅。版本化规范定义准入范围与权限；矩阵和路线图中的旧发布标题属于历史记录。 [GitHub 仓库](https://github.com/wavect/semaprax).

// DOCS

## 阅读 Semaprax 手册

在线手册是从 main 发布的英文指南，可能包含 0.8.0 之后的变更。复现本次发布时，请使用固定提交的手册快照。

### [在线手册](https://wavect.github.io/semaprax/)

从 main 发布的当前英文学习指南。

### [0.8.0 手册快照](https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/handbook/README.md)

确切审阅提交对应的手册文件。

### [创建第一个项目](https://wavect.github.io/semaprax/getting-started/first-project.html)

当前英文指南：计算器项目清单、检查、测试与构建。

### [学习语言基础](https://wavect.github.io/semaprax/language/essentials.html)

当前英文入门：值、函数与源码结构。

### [与编码智能体协作](https://wavect.github.io/semaprax/practices/agents.html)

当前英文指南：语义上下文与安全修改工作流。

### [0.8.0 CLI 参考](https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/docs/CLI-GUIDE.md)

固定版本的命令形式，以及独立 CLI 与完整工具链的边界。

### [VS Code 扩展](https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/editors/vscode/README.md)

固定版本的安装、语义导航、审阅与开发控件说明。

### [可运行示例](https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/examples/README.md)

固定版本的语言、项目、定律、智能体和宿主集成示例。

// REF

## 本页一手来源

本页依据 v0.8.0 标签及其固定源码提交审阅。版本化规范定义准入范围与权限；矩阵和路线图中的旧发布标题属于历史记录。

1. [编译器架构与信任边界](https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/docs/ARCHITECTURE.md)
2. [语义图实现](https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/src/graph.rs)
3. [原生源码定律](https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/docs/NATIVE-LAW-DECLARATIONS-V1.md)
4. [严格的选定定律保证](https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/docs/STRICT-LAW-ASSURANCE-V1.md)
5. [已安装的 Lean 与 Z3 配置](https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/docs/INSTALLED-PROOF-TOOLS-V1.md)
6. [开发工具、提供方、模型回执与提示词渲染](https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/docs/HARNESS-PROVIDER-V1.md)
7. [运行时执行与当前完成边界](https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/docs/COMPLETION-MATRIX.md)
8. [可恢复的源码续体](https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/docs/RESUMABLE-EFFECTS-CONTINUATION-V1.md)
9. [源码拥有的智能体公共入口](https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/docs/SOURCE-AGENT-OWNED-WAIT-PUBLIC-V1.md)
10. [经检查的热重载会话](https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/docs/HOT-RELOAD-SESSION-V1.md)
11. [参考服务宿主](https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/docs/REFERENCE-SERVICE-HOST-V1.md)

// FAQ

## 常见问题与实用解答

### 语义图是知识图谱或 RAG 系统吗？

核心图由编译器从经过检查的源码生成，包含稳定声明、类型、契约和关联。开发工具还可以使用 Graft 或 Graphify 导航仓库。这些外部索引补充编译器的语义事实，并不替代修订与验证规则。

### 智能体能通过语义补丁编辑任意程序吗？

工具链提供特定的、绑定修订的编辑操作、候选修改审阅与重放检查。受保护的定律清单将需求与可编辑的实现体分开。智能体必须使用已获准操作和已授权应用路径；上下文查询或成功证明，并不意味着有权覆盖任意文件。

Wavect 研究项目: [Wavect GmbH](/zh/). 由 Wavect 创建的开源系统研究项目。

## Structured Data

```json
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@id": "https://wavect.io/#organization",
      "@type": [
        "Organization",
        "ProfessionalService",
        "LocalBusiness"
      ],
      "employee": [
        {
          "@id": "https://wavect.io/team/kevin-riedl/#person",
          "@type": "Person",
          "jobTitle": "Managing Director",
          "name": "Kevin Riedl",
          "url": "https://wavect.io/team/kevin-riedl/",
          "worksFor": {
            "@id": "https://wavect.io/#organization",
            "@type": [
              "Organization",
              "ProfessionalService",
              "LocalBusiness"
            ]
          }
        },
        {
          "@id": "https://wavect.io/team/christof-jori/#person",
          "@type": "Person",
          "jobTitle": "Managing Director",
          "name": "Christof Jori",
          "url": "https://wavect.io/team/christof-jori/",
          "worksFor": {
            "@id": "https://wavect.io/#organization",
            "@type": [
              "Organization",
              "ProfessionalService",
              "LocalBusiness"
            ]
          }
        }
      ],
      "founder": [
        {
          "@id": "https://wavect.io/team/kevin-riedl/#person",
          "@type": "Person",
          "jobTitle": "Managing Director",
          "name": "Kevin Riedl",
          "url": "https://wavect.io/team/kevin-riedl/",
          "worksFor": {
            "@id": "https://wavect.io/#organization",
            "@type": [
              "Organization",
              "ProfessionalService",
              "LocalBusiness"
            ]
          }
        },
        {
          "@id": "https://wavect.io/team/christof-jori/#person",
          "@type": "Person",
          "jobTitle": "Managing Director",
          "name": "Christof Jori",
          "url": "https://wavect.io/team/christof-jori/",
          "worksFor": {
            "@id": "https://wavect.io/#organization",
            "@type": [
              "Organization",
              "ProfessionalService",
              "LocalBusiness"
            ]
          }
        }
      ],
      "legalRepresentative": [
        {
          "@id": "https://wavect.io/team/kevin-riedl/#person",
          "@type": "Person",
          "jobTitle": "Managing Director",
          "name": "Kevin Riedl",
          "url": "https://wavect.io/team/kevin-riedl/",
          "worksFor": {
            "@id": "https://wavect.io/#organization",
            "@type": [
              "Organization",
              "ProfessionalService",
              "LocalBusiness"
            ]
          }
        },
        {
          "@id": "https://wavect.io/team/christof-jori/#person",
          "@type": "Person",
          "jobTitle": "Managing Director",
          "name": "Christof Jori",
          "url": "https://wavect.io/team/christof-jori/",
          "worksFor": {
            "@id": "https://wavect.io/#organization",
            "@type": [
              "Organization",
              "ProfessionalService",
              "LocalBusiness"
            ]
          }
        }
      ],
      "name": "Wavect GmbH",
      "subjectOf": {
        "@id": "https://wavect.io/verified-claims.json#dataset",
        "@type": "Dataset",
        "creator": {
          "@id": "https://wavect.io/#organization",
          "@type": [
            "Organization",
            "ProfessionalService",
            "LocalBusiness"
          ]
        },
        "description": "A machine-readable registry of quantitative and qualitative claims published by Wavect, with review dates, localized page appearances and public third-party citations where available.",
        "inLanguage": "en",
        "isAccessibleForFree": true,
        "license": "https://creativecommons.org/licenses/by/4.0/",
        "name": "Wavect verified publication claims",
        "url": "https://wavect.io/verified-claims.json"
      },
      "url": "https://wavect.io/"
    },
    {
      "@id": "https://wavect.io/team/kevin-riedl/#person",
      "@type": "Person",
      "jobTitle": "Managing Director",
      "name": "Kevin Riedl",
      "sameAs": [
        "https://www.wikidata.org/wiki/Q139796365",
        "https://www.linkedin.com/in/wsdt",
        "https://github.com/wsdt"
      ],
      "url": "https://wavect.io/team/kevin-riedl/",
      "worksFor": {
        "@id": "https://wavect.io/#organization",
        "@type": [
          "Organization",
          "ProfessionalService",
          "LocalBusiness"
        ]
      }
    },
    {
      "@id": "https://wavect.io/team/christof-jori/#person",
      "@type": "Person",
      "jobTitle": "Managing Director",
      "name": "Christof Jori",
      "sameAs": [
        "https://www.wikidata.org/wiki/Q139796367",
        "https://www.linkedin.com/in/jocr77/",
        "https://github.com/jo-chris"
      ],
      "url": "https://wavect.io/team/christof-jori/",
      "worksFor": {
        "@id": "https://wavect.io/#organization",
        "@type": [
          "Organization",
          "ProfessionalService",
          "LocalBusiness"
        ]
      }
    },
    {
      "@id": "https://wavect.io/#website",
      "@type": "WebSite",
      "inLanguage": [
        "en",
        "de",
        "es",
        "zh"
      ],
      "name": "Wavect",
      "potentialAction": {
        "@type": "SearchAction",
        "query-input": "required name=search_term_string",
        "target": {
          "@type": "EntryPoint",
          "urlTemplate": "https://wavect.io/search/?q={search_term_string}"
        }
      },
      "publisher": {
        "@id": "https://wavect.io/#organization",
        "@type": [
          "Organization",
          "ProfessionalService",
          "LocalBusiness"
        ]
      },
      "url": "https://wavect.io/"
    },
    {
      "@id": "https://wavect.io/verified-claims.json#semaprax-v02-semantic-graph-patches",
      "@type": "Claim",
      "appearance": {
        "@id": "https://wavect.io/zh/semaprax/architecture/#webpage",
        "@type": "WebPage",
        "inLanguage": "zh",
        "url": "https://wavect.io/zh/semaprax/architecture/"
      },
      "author": {
        "@id": "https://wavect.io/#organization",
        "@type": [
          "Organization",
          "ProfessionalService",
          "LocalBusiness"
        ]
      },
      "citation": {
        "@type": "WebPage",
        "url": "https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/docs/ARCHITECTURE.md"
      },
      "dateModified": "2026-10-06",
      "identifier": "semaprax-v02-semantic-graph-patches",
      "inLanguage": "en",
      "text": "Semaprax v0.8.0 retains canonical .spx source and validated semantic identities, bounded context queries and revision-bound semantic changes. The exact-tag workflow succeeded; admitted edit families and public support remain separately scoped."
    },
    {
      "@id": "https://wavect.io/verified-claims.json#semaprax-v02-bounded-project-agent-surfaces",
      "@type": "Claim",
      "appearance": {
        "@id": "https://wavect.io/zh/semaprax/architecture/#webpage",
        "@type": "WebPage",
        "inLanguage": "zh",
        "url": "https://wavect.io/zh/semaprax/architecture/"
      },
      "author": {
        "@id": "https://wavect.io/#organization",
        "@type": [
          "Organization",
          "ProfessionalService",
          "LocalBusiness"
        ]
      },
      "citation": {
        "@type": "WebPage",
        "url": "https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/docs/COMPLETION-MATRIX.md"
      },
      "dateModified": "2026-10-06",
      "identifier": "semaprax-v02-bounded-project-agent-surfaces",
      "inLanguage": "en",
      "text": "Semaprax v0.8.0 includes multi-module Projects, typed iterative source Agents, explicit host-model integration, durable recovery and a compiler-assisted development harness. Generated Project v8-v11 packages and public ABI support require separate promotion and publication decisions."
    },
    {
      "@id": "https://wavect.io/verified-claims.json#semaprax-v02-managed-workspace-operations",
      "@type": "Claim",
      "appearance": {
        "@id": "https://wavect.io/zh/semaprax/architecture/#webpage",
        "@type": "WebPage",
        "inLanguage": "zh",
        "url": "https://wavect.io/zh/semaprax/architecture/"
      },
      "author": {
        "@id": "https://wavect.io/#organization",
        "@type": [
          "Organization",
          "ProfessionalService",
          "LocalBusiness"
        ]
      },
      "citation": {
        "@type": "WebPage",
        "url": "https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/docs/ARCHITECTURE.md"
      },
      "dateModified": "2026-10-06",
      "identifier": "semaprax-v02-managed-workspace-operations",
      "inLanguage": "en",
      "text": "Semaprax v0.8.0 includes bounded semantic changes, managed workspace/revision workflows and evidence-based review. Read-only tools and receipts do not authorize arbitrary filesystem, Git or publication operations."
    },
    {
      "@id": "https://wavect.io/verified-claims.json#semaprax-v060-resumable-effects-boundary",
      "@type": "Claim",
      "appearance": {
        "@id": "https://wavect.io/zh/semaprax/architecture/#webpage",
        "@type": "WebPage",
        "inLanguage": "zh",
        "url": "https://wavect.io/zh/semaprax/architecture/"
      },
      "author": {
        "@id": "https://wavect.io/#organization",
        "@type": [
          "Organization",
          "ProfessionalService",
          "LocalBusiness"
        ]
      },
      "citation": {
        "@type": "WebPage",
        "url": "https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/docs/RESUMABLE-EFFECTS-V1.md"
      },
      "dateModified": "2026-10-06",
      "identifier": "semaprax-v060-resumable-effects-boundary",
      "inLanguage": "en",
      "text": "Semaprax v0.8.0 implements bounded source yield and resume profiles, including separately admitted control-dependent and owned-frame routes. Ordinary native and Wasm emitters, durable execution and Rust Future integration retain distinct admission and execution boundaries."
    },
    {
      "@id": "https://wavect.io/verified-claims.json#semaprax-v060-local-registry-trust",
      "@type": "Claim",
      "appearance": {
        "@id": "https://wavect.io/zh/semaprax/architecture/#webpage",
        "@type": "WebPage",
        "inLanguage": "zh",
        "url": "https://wavect.io/zh/semaprax/architecture/"
      },
      "author": {
        "@id": "https://wavect.io/#organization",
        "@type": [
          "Organization",
          "ProfessionalService",
          "LocalBusiness"
        ]
      },
      "citation": {
        "@type": "WebPage",
        "url": "https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/docs/PACKAGE-REGISTRY-TRUST-V2.md"
      },
      "dateModified": "2026-10-06",
      "identifier": "semaprax-v060-local-registry-trust",
      "inLanguage": "en",
      "text": "Semaprax v0.8.0 implements signed Registry-v3 snapshots, held generations and lock-bound local reads; this is not a hosted public registry service."
    },
    {
      "@id": "https://wavect.io/verified-claims.json#semaprax-v060-hosted-lean-proof-gate",
      "@type": "Claim",
      "appearance": {
        "@id": "https://wavect.io/zh/semaprax/architecture/#webpage",
        "@type": "WebPage",
        "inLanguage": "zh",
        "url": "https://wavect.io/zh/semaprax/architecture/"
      },
      "author": {
        "@id": "https://wavect.io/#organization",
        "@type": [
          "Organization",
          "ProfessionalService",
          "LocalBusiness"
        ]
      },
      "citation": {
        "@type": "WebPage",
        "url": "https://github.com/wavect/semaprax/actions/runs/37403651320"
      },
      "dateModified": "2026-10-06",
      "identifier": "semaprax-v060-hosted-lean-proof-gate",
      "inLanguage": "en",
      "text": "The Semaprax v0.8.0 exact-tag CI includes a successful hosted Lean proof job for the pinned obligation kernel; it does not prove the entire language safe."
    }
  ]
}
```

```json
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@id": "https://wavect.io/zh/semaprax/architecture/#webpage",
      "@type": "WebPage",
      "citation": [
        {
          "@type": "CreativeWork",
          "name": "编译器架构与信任边界",
          "url": "https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/docs/ARCHITECTURE.md"
        },
        {
          "@type": "CreativeWork",
          "name": "语义图实现",
          "url": "https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/src/graph.rs"
        },
        {
          "@type": "CreativeWork",
          "name": "原生源码定律",
          "url": "https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/docs/NATIVE-LAW-DECLARATIONS-V1.md"
        },
        {
          "@type": "CreativeWork",
          "name": "严格的选定定律保证",
          "url": "https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/docs/STRICT-LAW-ASSURANCE-V1.md"
        },
        {
          "@type": "CreativeWork",
          "name": "已安装的 Lean 与 Z3 配置",
          "url": "https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/docs/INSTALLED-PROOF-TOOLS-V1.md"
        },
        {
          "@type": "CreativeWork",
          "name": "开发工具、提供方、模型回执与提示词渲染",
          "url": "https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/docs/HARNESS-PROVIDER-V1.md"
        },
        {
          "@type": "CreativeWork",
          "name": "运行时执行与当前完成边界",
          "url": "https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/docs/COMPLETION-MATRIX.md"
        },
        {
          "@type": "CreativeWork",
          "name": "可恢复的源码续体",
          "url": "https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/docs/RESUMABLE-EFFECTS-CONTINUATION-V1.md"
        },
        {
          "@type": "CreativeWork",
          "name": "源码拥有的智能体公共入口",
          "url": "https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/docs/SOURCE-AGENT-OWNED-WAIT-PUBLIC-V1.md"
        },
        {
          "@type": "CreativeWork",
          "name": "经检查的热重载会话",
          "url": "https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/docs/HOT-RELOAD-SESSION-V1.md"
        },
        {
          "@type": "CreativeWork",
          "name": "参考服务宿主",
          "url": "https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/docs/REFERENCE-SERVICE-HOST-V1.md"
        }
      ],
      "creator": {
        "@id": "https://wavect.io/#organization",
        "@type": [
          "Organization",
          "ProfessionalService",
          "LocalBusiness"
        ]
      },
      "dateModified": "2026-10-06",
      "description": "Semaprax 0.8.0 架构：稳定 ID、经过检查的语义图、源码定律、修改重放、类型化运行时智能体，以及连接编译器的开发工具提供方。",
      "inLanguage": "zh",
      "mainEntity": {
        "@id": "https://wavect.io/zh/semaprax/architecture/#article",
        "@type": "TechArticle"
      },
      "name": "Semaprax 架构：语义程序图 | Wavect",
      "url": "https://wavect.io/zh/semaprax/architecture/"
    },
    {
      "@id": "https://wavect.io/zh/semaprax/architecture/#article",
      "@type": "TechArticle",
      "about": {
        "@id": "https://wavect.io/semaprax/#software",
        "@type": "SoftwareSourceCode"
      },
      "author": {
        "@id": "https://wavect.io/#organization",
        "@type": [
          "Organization",
          "ProfessionalService",
          "LocalBusiness"
        ]
      },
      "citation": [
        {
          "@type": "CreativeWork",
          "name": "编译器架构与信任边界",
          "url": "https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/docs/ARCHITECTURE.md"
        },
        {
          "@type": "CreativeWork",
          "name": "语义图实现",
          "url": "https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/src/graph.rs"
        },
        {
          "@type": "CreativeWork",
          "name": "原生源码定律",
          "url": "https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/docs/NATIVE-LAW-DECLARATIONS-V1.md"
        },
        {
          "@type": "CreativeWork",
          "name": "严格的选定定律保证",
          "url": "https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/docs/STRICT-LAW-ASSURANCE-V1.md"
        },
        {
          "@type": "CreativeWork",
          "name": "已安装的 Lean 与 Z3 配置",
          "url": "https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/docs/INSTALLED-PROOF-TOOLS-V1.md"
        },
        {
          "@type": "CreativeWork",
          "name": "开发工具、提供方、模型回执与提示词渲染",
          "url": "https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/docs/HARNESS-PROVIDER-V1.md"
        },
        {
          "@type": "CreativeWork",
          "name": "运行时执行与当前完成边界",
          "url": "https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/docs/COMPLETION-MATRIX.md"
        },
        {
          "@type": "CreativeWork",
          "name": "可恢复的源码续体",
          "url": "https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/docs/RESUMABLE-EFFECTS-CONTINUATION-V1.md"
        },
        {
          "@type": "CreativeWork",
          "name": "源码拥有的智能体公共入口",
          "url": "https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/docs/SOURCE-AGENT-OWNED-WAIT-PUBLIC-V1.md"
        },
        {
          "@type": "CreativeWork",
          "name": "经检查的热重载会话",
          "url": "https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/docs/HOT-RELOAD-SESSION-V1.md"
        },
        {
          "@type": "CreativeWork",
          "name": "参考服务宿主",
          "url": "https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/docs/REFERENCE-SERVICE-HOST-V1.md"
        }
      ],
      "dateModified": "2026-10-06",
      "datePublished": "2026-08-11",
      "description": "Semaprax 0.8.0 架构：稳定 ID、经过检查的语义图、源码定律、修改重放、类型化运行时智能体，以及连接编译器的开发工具提供方。",
      "headline": "让智能体直接查询程序模型，无需从文本重新推断语义。",
      "inLanguage": "zh",
      "isPartOf": {
        "@id": "https://wavect.io/semaprax/#webpage",
        "@type": "WebPage"
      },
      "mainEntityOfPage": {
        "@id": "https://wavect.io/zh/semaprax/architecture/#webpage"
      },
      "publisher": {
        "@id": "https://wavect.io/#organization",
        "@type": [
          "Organization",
          "ProfessionalService",
          "LocalBusiness"
        ]
      },
      "url": "https://wavect.io/zh/semaprax/architecture/"
    },
    {
      "@id": "https://wavect.io/semaprax/#software",
      "@type": "SoftwareSourceCode"
    },
    {
      "@id": "https://wavect.io/zh/semaprax/architecture/#faq",
      "@type": "FAQPage",
      "inLanguage": "zh",
      "mainEntity": [
        {
          "@type": "Question",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "核心图由编译器从经过检查的源码生成，包含稳定声明、类型、契约和关联。开发工具还可以使用 Graft 或 Graphify 导航仓库。这些外部索引补充编译器的语义事实，并不替代修订与验证规则。"
          },
          "name": "语义图是知识图谱或 RAG 系统吗？"
        },
        {
          "@type": "Question",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "工具链提供特定的、绑定修订的编辑操作、候选修改审阅与重放检查。受保护的定律清单将需求与可编辑的实现体分开。智能体必须使用已获准操作和已授权应用路径；上下文查询或成功证明，并不意味着有权覆盖任意文件。"
          },
          "name": "智能体能通过语义补丁编辑任意程序吗？"
        }
      ],
      "url": "https://wavect.io/zh/semaprax/architecture/"
    },
    {
      "@id": "https://wavect.io/verified-claims.json#semaprax-v02-semantic-graph-patches",
      "@type": "Claim",
      "appearance": {
        "@id": "https://wavect.io/zh/semaprax/architecture/#webpage",
        "@type": "WebPage",
        "inLanguage": "zh",
        "url": "https://wavect.io/zh/semaprax/architecture/"
      },
      "author": {
        "@id": "https://wavect.io/#organization",
        "@type": [
          "Organization",
          "ProfessionalService",
          "LocalBusiness"
        ]
      },
      "citation": {
        "@type": "WebPage",
        "url": "https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/docs/ARCHITECTURE.md"
      },
      "dateModified": "2026-10-06",
      "identifier": "semaprax-v02-semantic-graph-patches",
      "inLanguage": "en",
      "text": "Semaprax v0.8.0 retains canonical .spx source and validated semantic identities, bounded context queries and revision-bound semantic changes. The exact-tag workflow succeeded; admitted edit families and public support remain separately scoped."
    },
    {
      "@id": "https://wavect.io/verified-claims.json#semaprax-v02-bounded-project-agent-surfaces",
      "@type": "Claim",
      "appearance": {
        "@id": "https://wavect.io/zh/semaprax/architecture/#webpage",
        "@type": "WebPage",
        "inLanguage": "zh",
        "url": "https://wavect.io/zh/semaprax/architecture/"
      },
      "author": {
        "@id": "https://wavect.io/#organization",
        "@type": [
          "Organization",
          "ProfessionalService",
          "LocalBusiness"
        ]
      },
      "citation": {
        "@type": "WebPage",
        "url": "https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/docs/COMPLETION-MATRIX.md"
      },
      "dateModified": "2026-10-06",
      "identifier": "semaprax-v02-bounded-project-agent-surfaces",
      "inLanguage": "en",
      "text": "Semaprax v0.8.0 includes multi-module Projects, typed iterative source Agents, explicit host-model integration, durable recovery and a compiler-assisted development harness. Generated Project v8-v11 packages and public ABI support require separate promotion and publication decisions."
    },
    {
      "@id": "https://wavect.io/verified-claims.json#semaprax-v02-managed-workspace-operations",
      "@type": "Claim",
      "appearance": {
        "@id": "https://wavect.io/zh/semaprax/architecture/#webpage",
        "@type": "WebPage",
        "inLanguage": "zh",
        "url": "https://wavect.io/zh/semaprax/architecture/"
      },
      "author": {
        "@id": "https://wavect.io/#organization",
        "@type": [
          "Organization",
          "ProfessionalService",
          "LocalBusiness"
        ]
      },
      "citation": {
        "@type": "WebPage",
        "url": "https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/docs/ARCHITECTURE.md"
      },
      "dateModified": "2026-10-06",
      "identifier": "semaprax-v02-managed-workspace-operations",
      "inLanguage": "en",
      "text": "Semaprax v0.8.0 includes bounded semantic changes, managed workspace/revision workflows and evidence-based review. Read-only tools and receipts do not authorize arbitrary filesystem, Git or publication operations."
    },
    {
      "@id": "https://wavect.io/verified-claims.json#semaprax-v060-resumable-effects-boundary",
      "@type": "Claim",
      "appearance": {
        "@id": "https://wavect.io/zh/semaprax/architecture/#webpage",
        "@type": "WebPage",
        "inLanguage": "zh",
        "url": "https://wavect.io/zh/semaprax/architecture/"
      },
      "author": {
        "@id": "https://wavect.io/#organization",
        "@type": [
          "Organization",
          "ProfessionalService",
          "LocalBusiness"
        ]
      },
      "citation": {
        "@type": "WebPage",
        "url": "https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/docs/RESUMABLE-EFFECTS-V1.md"
      },
      "dateModified": "2026-10-06",
      "identifier": "semaprax-v060-resumable-effects-boundary",
      "inLanguage": "en",
      "text": "Semaprax v0.8.0 implements bounded source yield and resume profiles, including separately admitted control-dependent and owned-frame routes. Ordinary native and Wasm emitters, durable execution and Rust Future integration retain distinct admission and execution boundaries."
    },
    {
      "@id": "https://wavect.io/verified-claims.json#semaprax-v060-local-registry-trust",
      "@type": "Claim",
      "appearance": {
        "@id": "https://wavect.io/zh/semaprax/architecture/#webpage",
        "@type": "WebPage",
        "inLanguage": "zh",
        "url": "https://wavect.io/zh/semaprax/architecture/"
      },
      "author": {
        "@id": "https://wavect.io/#organization",
        "@type": [
          "Organization",
          "ProfessionalService",
          "LocalBusiness"
        ]
      },
      "citation": {
        "@type": "WebPage",
        "url": "https://github.com/wavect/semaprax/blob/615e501612895a52b3fdd72a03baf875a8f0df1b/docs/PACKAGE-REGISTRY-TRUST-V2.md"
      },
      "dateModified": "2026-10-06",
      "identifier": "semaprax-v060-local-registry-trust",
      "inLanguage": "en",
      "text": "Semaprax v0.8.0 implements signed Registry-v3 snapshots, held generations and lock-bound local reads; this is not a hosted public registry service."
    },
    {
      "@id": "https://wavect.io/verified-claims.json#semaprax-v060-hosted-lean-proof-gate",
      "@type": "Claim",
      "appearance": {
        "@id": "https://wavect.io/zh/semaprax/architecture/#webpage",
        "@type": "WebPage",
        "inLanguage": "zh",
        "url": "https://wavect.io/zh/semaprax/architecture/"
      },
      "author": {
        "@id": "https://wavect.io/#organization",
        "@type": [
          "Organization",
          "ProfessionalService",
          "LocalBusiness"
        ]
      },
      "citation": {
        "@type": "WebPage",
        "url": "https://github.com/wavect/semaprax/actions/runs/37403651320"
      },
      "dateModified": "2026-10-06",
      "identifier": "semaprax-v060-hosted-lean-proof-gate",
      "inLanguage": "en",
      "text": "The Semaprax v0.8.0 exact-tag CI includes a successful hosted Lean proof job for the pinned obligation kernel; it does not prove the entire language safe."
    }
  ]
}
```

```json
{
  "@context": "https://schema.org",
  "@type": "BreadcrumbList",
  "itemListElement": [
    {
      "@type": "ListItem",
      "item": "https://wavect.io/zh/",
      "name": "首页",
      "position": 1
    },
    {
      "@type": "ListItem",
      "item": "https://wavect.io/zh/semaprax/",
      "name": "Semaprax",
      "position": 2
    },
    {
      "@type": "ListItem",
      "item": "https://wavect.io/zh/semaprax/architecture/",
      "name": "让智能体直接查询程序模型，无需从文本重新推断语义。",
      "position": 3
    }
  ]
}
```
