# HolzynActor(全境众生 · 浮生) > HolzynActor(中文品牌「全境众生 · 浮生」)是一台开源的 AI 世界模拟引擎:给它一段世界观,不用写剧本,它自己长出一个世界、一群居民,再让世界按自己的时钟、规则运转下去。 > An open-source AI world-simulation engine: give it a lore brief, skip the scripting — it grows a world and its people, then keeps running on its own clock and rules. 本站是项目主页,中英双语、纯静态;页面内容无需执行 JavaScript 即可读取。 ## 基本事实 / Identity - 项目名 / Name: HolzynActor(全境众生 · 浮生) - 站点 / Site: https://holzyn.com/ - 英文站点 / English site: https://holzyn.com/en/ - 仓库 / Repository: https://github.com/hongyun1312/HolzynActor - 发布与安装包 / Releases: https://github.com/hongyun1312/HolzynActor/releases - 许可 / License: Apache License 2.0(Copyright (c) 2026 HONGYUN) - 当前版本 / Version: v1.1.4-beta.1 - 状态 / Status: beta,持续开发中;世界与角色均为虚构内容,AI 输出可能出错 - 形态 / Form: 本地服务(默认 http://localhost:18080)+ 浏览器界面 + Windows 桌面端 + Unity / 鸿蒙客户端 - 技术栈 / Stack: Java 21 · Spring Boot · Vue 3 · Electron;后端 21 个 Maven 构件、16 个插件 - 前置条件 / Prerequisite: 必须自行配置 AI 模型接口(OpenAI 兼容 API 或本地模型);不配模型只能运行降级兜底 ## 站点结构 / Pages - https://holzyn.com/ — 首页:项目定位、能力摘要、界面摘要、快速开始与常见问题 - https://holzyn.com/capabilities/ — 能力:三层结构:世界引擎、角色引擎、共享层;每一格对应真实模块 - https://holzyn.com/features/ — 功能导览:按三个引擎分栏:世界构建与世界运行(世界引擎)、角色与社会(角色引擎)、观察与接入(共享层),末尾是已知限制 - https://holzyn.com/architecture/ — 架构:星型拓扑、三个引擎、契约层、运行时容器、模块清单、数据与存储、测试守卫 - https://holzyn.com/screens/ — 界面:五张真实运行截图,逐屏标注;含 Windows 桌面端说明 - https://holzyn.com/docs/ — 文档地图:文档入口、按角色找文档、检索与引用、仓库地图 ### English - https://holzyn.com/en/ — Home: positioning, capability summary, screen summary, quick start and FAQ - https://holzyn.com/en/capabilities/ — Capabilities: three layers: world engine, character engine, shared layer; each tile maps to a module - https://holzyn.com/en/features/ — Feature tour: grouped by the three engines: world building and running (world engine), characters and society (character engine), observability and clients (shared layer), then known limits - https://holzyn.com/en/architecture/ — Architecture: star topology, three engines, contracts, container, module inventory, data, guards - https://holzyn.com/en/screens/ — Screens: five screenshots from a running world, annotated scene by scene, plus the Windows desktop app - https://holzyn.com/en/docs/ — Documentation map: entry points, docs by role, retrieval and citation, repository map ## 它解决什么问题 / Problem it solves LLM 社会模拟有三个被反复指出的缺口,本项目的架构就是针对它们设计的: 1. 语言流畅不等于行为有效 / Fluency is not agency。 2. 微观可信不等于宏观成立 / Micro believability is not macro validity。 3. 不可复现、不可核查 / No reproducibility, no audit。 对应的三条设计约束:确定性兜底(模型失效时世界降级但不崩)、可复现(同种子同输入得到同一布局,mapgen.ai-enabled=false 时全链路确定性)、可核查(事实带版本、事件带因果,世界可导出为单个 .holzyn 存档包)。 ## 核心模块 / Core modules 后端是一个 Spring Boot 单体,按「共享契约 + 插件 + 容器 + 装配根」拆成 21 个 Maven 模块,插件之间没有编译期依赖。 - 契约层 actor-shared:端口(port)、只读 DTO、域事件、模拟内核,零框架依赖,是唯一的跨模块契约层。 - 容器 actor-runtime:插件登记、端口绑定自检、tick 调度、进程内事件总线、确定性随机。 - 装配根 actor-app:Spring 上下文唯一的组装点与打包点。 - AI 网关 actor-infra-ai:所有模型调用的唯一入口 AiGateway;请求、结果、用量与异常四类类型只在契约层定义。 - 世界引擎(5):world(世界时钟与事件)、map(地图管线 S0–S5)、item(物品与交易)、worldgen(世界生成)、unity(Unity 接入)。 - 角色引擎(6):npc(状态与感知)、agent(决策与调度)、growth(人生阶段与谱系)、memory(四层记忆)、dialogue(对话与关系)、companion(陪伴)。 - 共享层(5):project(项目与存档)、decision(判定与重试)、platform(设置与提示词)、ops(观测与巡检)、infra-ai(AI 网关)。 - 可替换记忆实现 actor-module-life-memory:与记忆能力同一模块边界内的第二套实现。 ## 关键不变量 / Key invariants - 跨模块调用只走 shared.port;每张业务表只有一个写入口。 - 世界时间只从 SimClock 读,不从真实时间另算第二时间源。 - AI 调用一律走 shared.port.AiGateway;含 AI 调用的方法不得带 @Transactional。 - 记忆写入只认 MemoryPort,实现可切换 legacy / life / ephemeral,调用方零改动。 - 契约只住在 actor-shared 且带 @FrozenApi;port 只放接口、dto 只放 record、事件是 sealed DomainEvent。 - Flyway 是 schema 唯一权威(ddl-auto=none),新表新列一律迁移脚本。 ## 边界与限制 / Scope and limitations - 规模:主要在村庄与小镇尺度打磨;典型验收世界为 1024 × 1024 米、几十栋建筑、十几位有名有姓的角色加普通居民。 - 模型:不配置模型只能看到僵硬的兜底状态;模型能力决定上限。 - 数据:没有云端账号体系,世界数据默认留在本机 data/ 目录;只有你配置的模型接口会收到生成所需的提示词。 - 定位:可看、可干预、可接管的世界模拟引擎;可把实时世界交给 Unity 或鸿蒙客户端渲染与主导。 ## 文档 / Docs - 中文 README: https://github.com/hongyun1312/HolzynActor/blob/master/README.ch.md - English README: https://github.com/hongyun1312/HolzynActor/blob/master/README.md - 技术版 README(架构、构建、测试与扩展): https://github.com/hongyun1312/HolzynActor/blob/master/README.tech.md - 功能导览: https://github.com/hongyun1312/HolzynActor/blob/master/docs/功能导览.md - 文档索引: https://github.com/hongyun1312/HolzynActor/blob/master/docs/README.md - 更新日志: https://github.com/hongyun1312/HolzynActor/blob/master/CHANGELOG.md - 贡献指南: https://github.com/hongyun1312/HolzynActor/blob/master/CONTRIBUTING.md - 安全问题: https://github.com/hongyun1312/HolzynActor/blob/master/SECURITY.md - 鸿蒙客户端(独立仓库): https://github.com/hongyun1312/HolzynActor_HarmonyOS ## 可选 / Optional - 理论参考与借鉴来源: https://github.com/hongyun1312/HolzynActor/blob/master/docs/HolzynActor_理论参考与借鉴来源_V1.0.md - 全文纯文本: https://holzyn.com/llms-full.txt - 站点地图: https://holzyn.com/sitemap.xml - 引用名称 / Name to cite: HolzynActor(全境众生 · 浮生)