@archsight/aios 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/CHANGELOG.md +80 -8
  2. package/LICENSE +184 -21
  3. package/README.md +163 -135
  4. package/agents/README.md +2 -1
  5. package/agents/euclid/constraints.md +2 -1
  6. package/agents/euclid/responsibilities.md +1 -1
  7. package/agents/euclid/role.md +1 -1
  8. package/agents/euclid/system-prompt.md +5 -2
  9. package/agents/euclid/workflow.md +3 -3
  10. package/bin/archsight-aios.mjs +436 -1
  11. package/docs/quickstart.md +2 -1
  12. package/governance/README.md +3 -0
  13. package/governance/arbitration-protocol.md +153 -0
  14. package/package.json +68 -68
  15. package/runtime/README.md +7 -0
  16. package/runtime/agent-routing.md +98 -72
  17. package/runtime/archsight-aios.manifest.json +312 -290
  18. package/runtime/capability-adapters.json +27 -0
  19. package/runtime/capability-registry.json +458 -0
  20. package/runtime/capability-registry.schema.json +135 -0
  21. package/runtime/skill-routing.md +61 -55
  22. package/skills/README.md +54 -30
  23. package/skills/aios-arch/SKILL.md +195 -149
  24. package/skills/aios-arch/agents/openai.yaml +3 -3
  25. package/skills/aios-ceo/SKILL.md +180 -89
  26. package/skills/aios-ceo/agents/openai.yaml +4 -4
  27. package/skills/aios-design/SKILL.md +107 -99
  28. package/skills/aios-design/agents/openai.yaml +4 -4
  29. package/skills/aios-exec/SKILL.md +69 -58
  30. package/skills/aios-exec/agents/openai.yaml +3 -3
  31. package/skills/aios-knowledge/SKILL.md +65 -54
  32. package/skills/aios-knowledge/agents/openai.yaml +3 -3
  33. package/skills/aios-plan/SKILL.md +93 -75
  34. package/skills/aios-plan/agents/openai.yaml +3 -3
  35. package/skills/aios-review/SKILL.md +72 -61
  36. package/skills/aios-review/agents/openai.yaml +3 -3
  37. package/skills/aios-runtime/SKILL.md +69 -58
  38. package/skills/aios-runtime/agents/openai.yaml +3 -3
  39. package/skills/aios-structural/SKILL.md +67 -0
  40. package/skills/aios-structural/agents/openai.yaml +4 -0
  41. package/templates/project-ai/.ai/ARCHSIGHT_AIOS_RULES.md +30 -25
  42. package/templates/project-ai/.ai/agent-routing.md +48 -42
  43. package/templates/project-ai/.ai/skills.md +38 -32
  44. package/templates/project-ai/.ai/workflows.md +38 -35
  45. package/templates/project-ai/AGENTS.md +25 -25
  46. package/templates/project-ai/CLAUDE.md +25 -25
  47. package/templates/project-ai/GEMINI.md +25 -25
  48. package/workflows/README.md +2 -0
  49. package/workflows/architecture-review.md +103 -79
  50. package/workflows/bug-fixing.md +63 -62
  51. package/workflows/code-review.md +55 -54
  52. package/workflows/feature-development.md +64 -56
  53. package/workflows/rag-pipeline.md +9 -5
  54. package/workflows/review.md +74 -70
package/CHANGELOG.md CHANGED
@@ -1,17 +1,89 @@
1
1
  # 变更记录
2
2
 
3
- ## 1.0.0
3
+ ## 1.1.0
4
4
 
5
- 首个面向开源准备的版本。
5
+ ### 发布说明
6
+
7
+ 本版本把 AIOS 从“规则 / Skill / Workflow 工具包”扩展到可调用本地确定性工具证据的治理闭环。重点新增 Capability Registry、Capability Adapter 和仲裁协议,并与 `archsight-solver` 的本地 stdio MCP tools 对齐,让 Euclid / `aios-structural` 在结构力学任务中能够要求或调用梁、平面框架、平面桁架求解结果,而不是由 LLM 直接口算工程结论。
8
+
9
+ 本版本同时完成开源许可证和商业边界调整,为后续公开发布、商业使用和二次分发提供更清晰的法律与责任边界。
6
10
 
7
11
  ### 新增
8
12
 
9
- - `archsight-aios` CLI,包含 `install`、`doctor`、`init`、`validate` Hermes 校验命令。
10
- - 项目接入模板,覆盖 `AGENTS.md`、`CLAUDE.md`、`GEMINI.md`、`AI_CODING_RULES.md` `.ai/`。
11
- - 三类项目 profile:BIM / CAD / Revit 平台、施工视觉 AI、RAG / GraphRAG 规范知识库。
12
- - 面向业务专家的参与指南、快速上手、术语表、贡献说明、安全策略、行为准则和 MIT 许可证。
13
+ - 新增 Capability Registry、Capability Registry Schema 和本地 Capability Adapter 配置,定义工具权限、输入 / 输出契约、证据字段和阻断规则。
14
+ - 新增 `governance/arbitration-protocol.md`,按人工硬约束、确定性工具、项目事实、结构化知识和 Agent 判断的证据等级仲裁交付结论。
15
+ - 新增 `aios-structural` Skill Euclid 结构力学路由,用于梁、荷载、边界条件、FEM 输入输出、结构计算工具链和签审风险评审。
16
+ - 新增 `archsight-aios capability:call` 本地调用闭环:校验 Agent / Skill 权限、校验输入 schema、调用 stdio MCP tool、校验输出证据契约并返回仲裁 Decision。
17
+ - 新增对 `archsight-solver` 本地 MCP tools 的 AIOS Capability 对接:
18
+ - `solver.beam_deflection`
19
+ - `solver.beam_deflection_serviceability_check`
20
+ - `solver.frame_displacement`
21
+ - `solver.truss_member_force`
22
+ - 新增 CLI 测试覆盖 Capability 调用、MCP tool 映射、未授权 Agent 拒绝和项目模板校验。
13
23
 
14
24
  ### 调整
15
25
 
16
- - README 改为外部读者优先,先说明用途、适用人群、三步开始、项目生成内容和常用命令。
17
- - `package.json` 补充 repository、keywords、homepage、issue tracker 和 MIT license。
26
+ - 项目许可证从 MIT 升级为 Apache-2.0。
27
+ - README 增加商业边界说明,明确商业使用、二次分发、商标 / 品牌、托管服务、专有素材、支持和交付责任不随开源许可证自动授权。
28
+ - README 增加本地调用 `archsight-solver` 的 Capability 示例,并避免写死个人机器路径。
29
+ - `aios-arch`、`aios-review`、`aios-runtime`、`aios-exec` 等 Skill 增加 Capability / Tool Result / Evidence / Decision 的证据链要求。
30
+ - 架构评审、Feature 开发和 RAG Pipeline workflow 增加 Capability-backed arbitration 要求。
31
+ - 结构力学挠度限值校核使用 `solver.beam_deflection_serviceability_check` 作为正式 Capability 命名,明确它是正常使用挠度校核,不是强度、稳定或规范承载力设计。
32
+
33
+ ### 兼容性说明
34
+
35
+ - `solver.beam_deflection_serviceability_check` 是本版本发布的正式挠度正常使用校核接口。
36
+ - `archsight-solver` 仍是本地可选 Adapter,不是 AIOS 安装的强依赖。没有相邻 solver 仓库或未设置 `ARCHSIGHT_SOLVER_HOME` 时,Capability 调用会报告本地 adapter cwd 不存在。
37
+ - 当前 MCP 对接仅声明本地 stdio 调用,不开放远程 HTTP / SSE / Gateway 鉴权模型。
38
+
39
+ ### 验证
40
+
41
+ - `npm test`
42
+ - `npm run doctor`
43
+ - `npm run smoke:project`
44
+ - `npm pack --dry-run`
45
+ - 真实本地 MCP smoke:`solver.beam_deflection`、`solver.beam_deflection_serviceability_check`、`solver.frame_displacement`、`solver.truss_member_force`
46
+
47
+ ## 1.0.1
48
+
49
+ ### 发布说明
50
+
51
+ 本版本优化 AIOS 的适用性边界:AIOS 明确作为建筑行业增强层,而不是通用任务替代器。安装 AIOS 后,建筑行业相关任务应获得更专业的证据链、工程边界、验证路径和行业判断;普通非建筑任务不再被强制套用 BIM、IFC、规范、审图或工程证据链假设。
52
+
53
+ ### 调整
54
+
55
+ - 为所有 `aios-*` Skill 增加统一的适用性门槛:只有项目 profile、项目上下文或任务事实明确涉及建筑行业语义时,才启用行业增强。
56
+ - 强化 `aios-ceo` 的深度评审能力:默认要求先取证再判断,区分工程进展、生产可信度和商业验证。
57
+ - 更新 Skill、Workflow、Agent 路由和项目模板,避免泛用工程任务被错误路由到 AIOS 行业增强流程。
58
+ - 同步 Codex、Gemini 和 Antigravity 用户级安装资产,使本地工具读取新版边界规则。
59
+
60
+ ### 验证
61
+
62
+ - `npm test`
63
+ - `npm run doctor`
64
+ - `npm run install:user`
65
+
66
+ ## 1.0.0
67
+
68
+ 首个面向开源准备的版本。
69
+
70
+ ### 发布说明
71
+
72
+ 本版本发布 ArchSight AIOS 的首批规则、Skill、Workflow、Runtime 路由和项目接入模板,重点服务 BIM / IFC / Revit / CAD、施工视觉 AI、建筑规范知识库、GraphRAG、智能审图和 AI Coding 治理。它让 Codex、Claude Code、Gemini 和 Antigravity 2.0 等工具在建筑行业 AI 研发项目中读取同一套规则、上下文和验收要求。
73
+
74
+ 本版本同时明确 `aios-design` 的行业边界:它不是通用视觉美化或前端设计技能,而是建筑行业平台界面方案评审技能,用于判断审图工作台、BIM Viewer、规范检索、报告复核、构件问题列表和数据看板是否能支撑审查、定位、复核、追溯和交付。
75
+
76
+ ### 新增
77
+
78
+ - `archsight-aios` CLI,包含 `install`、`doctor`、`init`、`validate` 和 Hermes 校验命令。
79
+ - 项目接入模板,覆盖 `AGENTS.md`、`CLAUDE.md`、`GEMINI.md`、`AI_CODING_RULES.md` 和 `.ai/`。
80
+ - 三类项目 profile:BIM / CAD / Revit 平台、施工视觉 AI、RAG / GraphRAG 规范知识库。
81
+ - 面向业务专家的参与指南、快速上手、术语表、贡献说明、安全策略、行为准则和 MIT 许可证。
82
+ - `aios-design` 和 `design-review` workflow,支持实现前评审建筑行业平台界面方案、证据定位、复核追溯和前端实现交接。
83
+
84
+ ### 调整
85
+
86
+ - README 改为外部读者优先,先说明用途、适用人群、三步开始、项目生成内容和常用命令。
87
+ - `package.json` 补充 repository、keywords、homepage、issue tracker 和 MIT license。
88
+ - `aios-design` 将原先偏通用的视觉细节检查,调整为面向建筑行业工作台的“界面决策清晰度”,强调任务入口、证据定位、复核动作、状态反馈、长任务进度、失败恢复和实现验收。
89
+ - `design-review` workflow 补强图纸定位、模型定位、审查结论、长任务和专家复核检查项,并明确不替代通用 `frontend-design` 或 `frontend-generation`。
package/LICENSE CHANGED
@@ -1,21 +1,184 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 ArchSightLabs
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction, and
10
+ distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright
13
+ owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all other entities
16
+ that control, are controlled by, or are under common control with that entity.
17
+ For the purposes of this definition, "control" means (i) the power, direct or
18
+ indirect, to cause the direction or management of such entity, whether by
19
+ contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the
20
+ outstanding shares, or (iii) beneficial ownership of such entity.
21
+
22
+ "You" (or "Your") shall mean an individual or Legal Entity exercising
23
+ permissions granted by this License.
24
+
25
+ "Source" form shall mean the preferred form for making modifications, including
26
+ but not limited to software source code, documentation source, and configuration
27
+ files.
28
+
29
+ "Object" form shall mean any form resulting from mechanical transformation or
30
+ translation of a Source form, including but not limited to compiled object code,
31
+ generated documentation, and conversions to other media types.
32
+
33
+ "Work" shall mean the work of authorship, whether in Source or Object form,
34
+ made available under the License, as indicated by a copyright notice that is
35
+ included in or attached to the work (an example is provided in the Appendix
36
+ below).
37
+
38
+ "Derivative Works" shall mean any work, whether in Source or Object form, that
39
+ is based on (or derived from) the Work and for which the editorial revisions,
40
+ annotations, elaborations, or other modifications represent, as a whole, an
41
+ original work of authorship. For the purposes of this License, Derivative Works
42
+ shall not include works that remain separable from, or merely link (or bind by
43
+ name) to the interfaces of, the Work and Derivative Works thereof.
44
+
45
+ "Contribution" shall mean any work of authorship, including the original version
46
+ of the Work and any modifications or additions to that Work or Derivative Works
47
+ thereof, that is intentionally submitted to Licensor for inclusion in the Work
48
+ by the copyright owner or by an individual or Legal Entity authorized to submit
49
+ on behalf of the copyright owner. For the purposes of this definition,
50
+ "submitted" means any form of electronic, verbal, or written communication sent
51
+ to the Licensor or its representatives, including but not limited to
52
+ communication on electronic mailing lists, source code control systems, and
53
+ issue tracking systems that are managed by, or on behalf of, the Licensor for
54
+ the purpose of discussing and improving the Work, but excluding communication
55
+ that is conspicuously marked or otherwise designated in writing by the copyright
56
+ owner as "Not a Contribution."
57
+
58
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf
59
+ of whom a Contribution has been received by Licensor and subsequently
60
+ incorporated within the Work.
61
+
62
+ 2. Grant of Copyright License. Subject to the terms and conditions of this
63
+ License, each Contributor hereby grants to You a perpetual, worldwide,
64
+ non-exclusive, no-charge, royalty-free, irrevocable copyright license to
65
+ reproduce, prepare Derivative Works of, publicly display, publicly perform,
66
+ sublicense, and distribute the Work and such Derivative Works in Source or
67
+ Object form.
68
+
69
+ 3. Grant of Patent License. Subject to the terms and conditions of this License,
70
+ each Contributor hereby grants to You a perpetual, worldwide, non-exclusive,
71
+ no-charge, royalty-free, irrevocable (except as stated in this section) patent
72
+ license to make, have made, use, offer to sell, sell, import, and otherwise
73
+ transfer the Work, where such license applies only to those patent claims
74
+ licensable by such Contributor that are necessarily infringed by their
75
+ Contribution(s) alone or by combination of their Contribution(s) with the Work
76
+ to which such Contribution(s) was submitted. If You institute patent litigation
77
+ against any entity (including a cross-claim or counterclaim in a lawsuit)
78
+ alleging that the Work or a Contribution incorporated within the Work
79
+ constitutes direct or contributory patent infringement, then any patent licenses
80
+ granted to You under this License for that Work shall terminate as of the date
81
+ such litigation is filed.
82
+
83
+ 4. Redistribution. You may reproduce and distribute copies of the Work or
84
+ Derivative Works thereof in any medium, with or without modifications, and in
85
+ Source or Object form, provided that You meet the following conditions:
86
+
87
+ (a) You must give any other recipients of the Work or Derivative Works a copy of
88
+ this License; and
89
+
90
+ (b) You must cause any modified files to carry prominent notices stating that
91
+ You changed the files; and
92
+
93
+ (c) You must retain, in the Source form of any Derivative Works that You
94
+ distribute, all copyright, patent, trademark, and attribution notices from the
95
+ Source form of the Work, excluding those notices that do not pertain to any part
96
+ of the Derivative Works; and
97
+
98
+ (d) If the Work includes a "NOTICE" text file as part of its distribution, then
99
+ any Derivative Works that You distribute must include a readable copy of the
100
+ attribution notices contained within such NOTICE file, excluding those notices
101
+ that do not pertain to any part of the Derivative Works, in at least one of the
102
+ following places: within a NOTICE text file distributed as part of the
103
+ Derivative Works; within the Source form or documentation, if provided along
104
+ with the Derivative Works; or, within a display generated by the Derivative
105
+ Works, if and wherever such third-party notices normally appear. The contents
106
+ of the NOTICE file are for informational purposes only and do not modify the
107
+ License. You may add Your own attribution notices within Derivative Works that
108
+ You distribute, alongside or as an addendum to the NOTICE text from the Work,
109
+ provided that such additional attribution notices cannot be construed as
110
+ modifying the License.
111
+
112
+ You may add Your own copyright statement to Your modifications and may provide
113
+ additional or different license terms and conditions for use, reproduction, or
114
+ distribution of Your modifications, or for any such Derivative Works as a whole,
115
+ provided Your use, reproduction, and distribution of the Work otherwise complies
116
+ with the conditions stated in this License.
117
+
118
+ 5. Submission of Contributions. Unless You explicitly state otherwise, any
119
+ Contribution intentionally submitted for inclusion in the Work by You to the
120
+ Licensor shall be under the terms and conditions of this License, without any
121
+ additional terms or conditions. Notwithstanding the above, nothing herein shall
122
+ supersede or modify the terms of any separate license agreement you may have
123
+ executed with Licensor regarding such Contributions.
124
+
125
+ 6. Trademarks. This License does not grant permission to use the trade names,
126
+ trademarks, service marks, or product names of the Licensor, except as required
127
+ for reasonable and customary use in describing the origin of the Work and
128
+ reproducing the content of the NOTICE file.
129
+
130
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in
131
+ writing, Licensor provides the Work (and each Contributor provides its
132
+ Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
133
+ KIND, either express or implied, including, without limitation, any warranties or
134
+ conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
135
+ PARTICULAR PURPOSE. You are solely responsible for determining the
136
+ appropriateness of using or redistributing the Work and assume any risks
137
+ associated with Your exercise of permissions under this License.
138
+
139
+ 8. Limitation of Liability. In no event and under no legal theory, whether in
140
+ tort (including negligence), contract, or otherwise, unless required by
141
+ applicable law (such as deliberate and grossly negligent acts) or agreed to in
142
+ writing, shall any Contributor be liable to You for damages, including any
143
+ direct, indirect, special, incidental, or consequential damages of any character
144
+ arising as a result of this License or out of the use or inability to use the
145
+ Work (including but not limited to damages for loss of goodwill, work stoppage,
146
+ computer failure or malfunction, or any and all other commercial damages or
147
+ losses), even if such Contributor has been advised of the possibility of such
148
+ damages.
149
+
150
+ 9. Accepting Warranty or Additional Liability. While redistributing the Work or
151
+ Derivative Works thereof, You may choose to offer, and charge a fee for,
152
+ acceptance of support, warranty, indemnity, or other liability obligations
153
+ and/or rights consistent with this License. However, in accepting such
154
+ obligations, You may act only on Your own behalf and on Your sole
155
+ responsibility, not on behalf of any other Contributor, and only if You agree to
156
+ indemnify, defend, and hold each Contributor harmless for any liability incurred
157
+ by, or claims asserted against, such Contributor by reason of your accepting any
158
+ such warranty or additional liability.
159
+
160
+ END OF TERMS AND CONDITIONS
161
+
162
+ APPENDIX: How to apply the Apache License to your work.
163
+
164
+ To apply the Apache License to your work, attach the following boilerplate
165
+ notice, with the fields enclosed by brackets "[]" replaced with your own
166
+ identifying information. (Don't include the brackets!) The text should be
167
+ enclosed in the appropriate comment syntax for the file format. We also
168
+ recommend that a file or class name and description of purpose be included on
169
+ the same "printed page" as the copyright notice for easier identification
170
+ within third-party archives.
171
+
172
+ Copyright 2026 ArchSightLabs
173
+
174
+ Licensed under the Apache License, Version 2.0 (the "License");
175
+ you may not use this file except in compliance with the License.
176
+ You may obtain a copy of the License at
177
+
178
+ http://www.apache.org/licenses/LICENSE-2.0
179
+
180
+ Unless required by applicable law or agreed to in writing, software
181
+ distributed under the License is distributed on an "AS IS" BASIS,
182
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
183
+ See the License for the specific language governing permissions and
184
+ limitations under the License.
package/README.md CHANGED
@@ -1,154 +1,182 @@
1
- # ArchSight AIOS
2
-
3
- ArchSight AIOS 是一套面向建筑 AI 研发的规则、Agent、Skill、Workflow 和项目接入工具包。它重点服务 BIM / IFC / Revit / CAD、施工视觉 AI、建筑规范知识库、GraphRAG、智能审图和 AI Coding 治理,让 Codex、Claude Code、Antigravity 2.0 等 AI Coding 工具在同一个项目里读取同一套规则、项目上下文和验收要求。
4
-
5
- AIOS 不是全行业项目模板集合。它保留通用的 AI 编码规则、Agent 路由、Workflow、项目 `.ai/` 上下文和交付验证能力,但真正的差异化能力集中在建筑行业语义、工程证据链、规范知识工程和可复核的 AI 研发流程。
6
-
7
- ## 设计目标
8
-
9
- AIOS 的目标不是替代 Codex、Claude Code 或 Gemini 自带的通用工程能力,而是让它们在建筑行业平台研发中做出更专业的判断。它面向建筑行业架构师、博士 / 研究型团队和后端开发,把通用架构评审补足为面向 BIM / IFC、建筑规范、审图链路、知识库、RAG / GraphRAG、任务编排、审计证据和长期平台演进的工作方法。
10
-
11
- 没有 `.ai/` 目录时,AIOS Skill 仍应可直接使用:优先读取代码、接口、schema、配置、测试和部署入口;只有项目明确启用 profile 或任务本身涉及建筑行业语义时,才加载 BIM、IFC、规范知识或智能审图假设。
12
-
13
- ## 适合谁
14
-
15
- | 角色 | 可以用它做什么 |
16
- | --- | --- |
17
- | 建筑行业架构师 | 评估平台边界、BIM / IFC 数据链路、规范知识工程、审图流程和长期演进风险。 |
18
- | 博士 / 研究型团队 | 把算法、RAG / GraphRAG、评估集、实验假设和工程验收连接到可复核的研发流程。 |
19
- | 后端开发 | 拆清服务边界、任务队列、文件处理、审计日志、索引版本、缓存和多实例运行风险。 |
20
- | 业务专家 | 沉淀规范条文、审查口径、工程术语、样例和人工复核点。 |
21
- | 产品 / 项目 / 设计负责人 | 把业务目标、页面任务、工作台体验、验收标准和 AI 协作流程写进项目规则。 |
22
- | 企业负责人 / 业务一把手 | `aios-ceo` 判断立项价值、产品定位、商业目标、投入产出、阶段路线和停损信号。 |
23
- | AI / 软件工程师 | 给建筑 AI 项目接入统一 AI 编码规则、Skills、Workflows 和行业 profile。 |
24
- | 团队负责人 | 统一多工具、多模型、多 Agent 的工作边界和交付检查方式。 |
25
-
26
- ## 解决什么问题
27
-
28
- - 不同 AI 工具各读各的规则,导致输出风格和边界不一致。
29
- - 项目里缺少明确的 `.ai/` 上下文目录,AI 不知道行业知识、验收标准和人工复核点。
30
- - 建筑行业项目涉及规范、BIM、图纸、模型、施工现场、知识库和 AI 检测,容易把模型推断误当成工程结论;AIOS 通过 profile 叠加这些行业规则,而不是把它们写成所有项目的默认事实。
31
- - AI 生成代码、文档或规则后,缺少统一的 review、验证和发布检查路径。
32
-
33
- ## 三步开始
34
-
35
- ```bash
36
- npx @archsight/aios install --target all --scope user
37
- npx @archsight/aios doctor
38
-
39
- cd /path/to/your-project
40
- npx @archsight/aios init
41
- ```
42
-
43
- 执行后,当前业务项目会获得统一的 AI 入口文件和 `.ai/` 项目治理目录。已有 `AGENTS.md`、`CLAUDE.md`、`GEMINI.md` 或 `AI_CODING_RULES.md` 的项目不会被覆盖;CLI 会补充缺失文件,并在合适的位置追加 ArchSight AIOS 引用。
44
-
45
- 如果你不写代码,只参与业务判断,可以先看 [业务专家指南](docs/business-expert-guide.md)。如果你需要一步一步安装和验证,可以看 [快速上手](docs/quickstart.md)。
46
-
47
- ## 行业能力 Profile
48
-
49
- 可以按建筑 AI 能力方向叠加行业规则:
50
-
51
- ```bash
52
- npx @archsight/aios init --profile bim-platform
53
- npx @archsight/aios init --profile construction-vision
54
- npx @archsight/aios init --profile rag-knowledge
55
- ```
56
-
57
- | Profile | 适用项目 |
58
- | --- | --- |
59
- | `bim-platform` | 工程模型轴:BIM / IFC / Revit / CAD / 建模平台 / 模型质检。 |
60
- | `construction-vision` | 现场感知轴:YOLO、图像分割、Segment Anything、深度估计、焊缝 / 裂缝检测、施工巡检。 |
61
- | `rag-knowledge` | 知识规则轴:建筑规范知识库、RAG、GraphRAG、知识图谱、审图规则。 |
62
-
63
- ## 项目会生成什么
64
-
65
- | 文件 / 目录 | 作用 |
66
- | --- | --- |
1
+ # ArchSight AIOS
2
+
3
+ ArchSight AIOS 是一套面向建筑 AI 研发的规则、Agent、Skill、Workflow 和项目接入工具包。它重点服务 BIM / IFC / Revit / CAD、施工视觉 AI、建筑规范知识库、GraphRAG、智能审图和 AI Coding 治理,让 Codex、Claude Code、Antigravity 2.0 等 AI Coding 工具在同一个项目里读取同一套规则、项目上下文和验收要求。
4
+
5
+ AIOS 不是全行业项目模板集合。它保留通用的 AI 编码规则、Agent 路由、Workflow、项目 `.ai/` 上下文和交付验证能力,但真正的差异化能力集中在建筑行业语义、工程证据链、规范知识工程、Capability 工具证据和可复核的 AI 研发流程。
6
+
7
+ ## 设计目标
8
+
9
+ AIOS 的目标不是替代 Codex、Claude Code 或 Gemini 自带的通用工程能力,而是让它们在建筑行业平台研发中做出更专业的判断。它面向建筑行业架构师、博士 / 研究型团队和后端开发,把通用架构评审补足为面向 BIM / IFC、建筑规范、审图链路、知识库、RAG / GraphRAG、任务编排、审计证据和长期平台演进的工作方法。
10
+
11
+ 没有 `.ai/` 目录时,AIOS Skill 仍应可直接使用:优先读取代码、接口、schema、配置、测试和部署入口;只有项目明确启用 profile 或任务本身涉及建筑行业语义时,才加载 BIM、IFC、规范知识或智能审图假设。
12
+
13
+ AIOS 是建筑行业增强层,不是通用任务替代器。装了 AIOS 后,建筑行业相关任务应得到更专业的证据、边界、验证和行业判断;普通非建筑任务不应被强行套用 BIM、IFC、规范、审图或工程证据链假设,必要时直接使用宿主工具的通用能力。
14
+
15
+ ## 适合谁
16
+
17
+ | 角色 | 可以用它做什么 |
18
+ | --- | --- |
19
+ | 建筑行业架构师 | 评估平台边界、BIM / IFC 数据链路、规范知识工程、审图流程和长期演进风险。 |
20
+ | 博士 / 研究型团队 | 把算法、RAG / GraphRAG、评估集、实验假设和工程验收连接到可复核的研发流程。 |
21
+ | 后端开发 | 拆清服务边界、任务队列、文件处理、审计日志、索引版本、缓存和多实例运行风险。 |
22
+ | 业务专家 | 沉淀规范条文、审查口径、工程术语、样例和人工复核点。 |
23
+ | 产品 / 项目 / 设计负责人 | 把业务目标、页面任务、工作台体验、验收标准和 AI 协作流程写进项目规则。 |
24
+ | 企业负责人 / 业务一把手 | `aios-ceo` 深度评价建筑行业软件 / 系统的产品定位、行业专业性、工程可信度、证据链、商业验证、阶段路线和停损信号。 |
25
+ | AI / 软件工程师 | 给建筑 AI 项目接入统一 AI 编码规则、Skills、Workflows 和行业 profile。 |
26
+ | 团队负责人 | 统一多工具、多模型、多 Agent 的工作边界和交付检查方式。 |
27
+
28
+ ## 解决什么问题
29
+
30
+ - 不同 AI 工具各读各的规则,导致输出风格和边界不一致。
31
+ - 项目里缺少明确的 `.ai/` 上下文目录,AI 不知道行业知识、验收标准和人工复核点。
32
+ - 建筑行业项目涉及规范、BIM、图纸、模型、施工现场、知识库和 AI 检测,容易把模型推断误当成工程结论;AIOS 通过 profile 叠加这些行业规则,而不是把它们写成所有项目的默认事实。
33
+ - AI 生成代码、文档或规则后,缺少统一的 review、验证和发布检查路径。
34
+
35
+ ## 三步开始
36
+
37
+ ```bash
38
+ npx @archsight/aios install --target all --scope user
39
+ npx @archsight/aios doctor
40
+
41
+ cd /path/to/your-project
42
+ npx @archsight/aios init
43
+ ```
44
+
45
+ 执行后,当前业务项目会获得统一的 AI 入口文件和 `.ai/` 项目治理目录。已有 `AGENTS.md`、`CLAUDE.md`、`GEMINI.md` 或 `AI_CODING_RULES.md` 的项目不会被覆盖;CLI 会补充缺失文件,并在合适的位置追加 ArchSight AIOS 引用。
46
+
47
+ 如果你不写代码,只参与业务判断,可以先看 [业务专家指南](docs/business-expert-guide.md)。如果你需要一步一步安装和验证,可以看 [快速上手](docs/quickstart.md)。
48
+
49
+ ## 行业能力 Profile
50
+
51
+ 可以按建筑 AI 能力方向叠加行业规则:
52
+
53
+ ```bash
54
+ npx @archsight/aios init --profile bim-platform
55
+ npx @archsight/aios init --profile construction-vision
56
+ npx @archsight/aios init --profile rag-knowledge
57
+ ```
58
+
59
+ | Profile | 适用项目 |
60
+ | --- | --- |
61
+ | `bim-platform` | 工程模型轴:BIM / IFC / Revit / CAD / 建模平台 / 模型质检。 |
62
+ | `construction-vision` | 现场感知轴:YOLO、图像分割、Segment Anything、深度估计、焊缝 / 裂缝检测、施工巡检。 |
63
+ | `rag-knowledge` | 知识规则轴:建筑规范知识库、RAG、GraphRAG、知识图谱、审图规则。 |
64
+
65
+ ## 项目会生成什么
66
+
67
+ | 文件 / 目录 | 作用 |
68
+ | --- | --- |
67
69
  | `AGENTS.md` | Codex 等 Agent 工具读取的项目入口。 |
68
70
  | `CLAUDE.md` | Claude Code 读取的项目入口。 |
69
71
  | `GEMINI.md` | Gemini 读取的项目入口。 |
70
72
  | `AI_CODING_RULES.md` | 项目通用 AI 编码规则。 |
71
- | `.ai/ARCHSIGHT_AIOS_RULES.md` | ArchSight AIOS 补充规则。 |
72
- | `.ai/project-context.md` | 项目事实、业务背景和边界。 |
73
- | `.ai/agent-routing.md` | 不同任务该交给哪个 Agent / Skill。 |
74
- | `.ai/skills.md` | 当前项目可用的 ArchSight Skills。 |
73
+ | `.ai/ARCHSIGHT_AIOS_RULES.md` | ArchSight AIOS 补充规则。 |
74
+ | `.ai/project-context.md` | 项目事实、业务背景和边界。 |
75
+ | `.ai/agent-routing.md` | 不同任务该交给哪个 Agent / Skill。 |
76
+ | `.ai/skills.md` | 当前项目可用的 ArchSight Skills。 |
75
77
  | `.ai/workflows.md` | 当前项目可用的 Workflow 和验收路径。 |
76
78
 
77
- ## 常用命令
78
-
79
- | 命令 | 用途 |
80
- | --- | --- |
81
- | `help` | 查看 CLI 帮助、可用命令和示例。 |
82
- | `install` | 安装 ArchSight AIOS 用户级资产到 Codex、Antigravity 2.0、Gemini 和共享目录。 |
83
- | `doctor` | 检查仓库资产、manifest、用户级安装、Skill Workflow 是否一致。 |
79
+ ## Capability 与冲突仲裁
80
+
81
+ AIOS 的多 Agent 协作不应停留在 Prompt 角色扮演。Agent 提出架构、交付、规范、结构计算或安全判断时,必须尽量回到项目事实、结构化知识和确定性工具证据。
82
+
83
+ - `governance/arbitration-protocol.md` 定义证据优先级、Claim 契约、阻断规则和人工升级条件。
84
+ - `runtime/capability-registry.json` 定义最小 Capability 接口,例如测试 runner、规范查询、梁挠度、梁挠度限值校核、框架位移和桁架杆力求解器接口。
85
+ - `runtime/capability-adapters.json` 定义本地 stdio MCP Adapter 映射;AIOS 先按 Agent / Skill 权限校验,再调用 `archsight-solver` MCP Tool,并把结构化结果交给仲裁规则。
86
+ - `aios-structural` 提供 Euclid 结构力学评审入口,要求关键数值来自求解器、项目计算书或可复验脚本,而不是 LLM 口算。
87
+
88
+ ## 常用命令
89
+
90
+ | 命令 | 用途 |
91
+ | --- | --- |
92
+ | `help` | 查看 CLI 帮助、可用命令和示例。 |
93
+ | `install` | 安装 ArchSight AIOS 用户级资产到 Codex、Antigravity 2.0、Gemini 和共享目录。 |
94
+ | `doctor` | 检查仓库资产、manifest、用户级安装、Skill 和 Workflow 是否一致。 |
84
95
  | `init` | 给具体业务项目接入 AI 规则、`.ai/` 治理目录和可选行业 profile。 |
85
96
  | `validate` | 验证项目接入模板能否生成并引用当前登记的 Skills / Workflows。 |
97
+ | `capability:call` | 按 Capability Registry 权限边界调用本地 MCP Adapter,并输出 Tool Result 与仲裁 Decision。 |
86
98
 
87
- ## 安装位置
88
-
89
- `install --target all --scope user` 会写入当前用户目录:
90
-
91
- - Codex:`~/.codex/skills/`、`~/.codex/workflows/aios/`
92
- - Gemini:`~/.gemini/GEMINI.md`、`~/.gemini/archsight-aios/`
93
- - Antigravity 2.0:`~/.gemini/config/plugins/archsight-aios/`
94
- - Antigravity 1.x legacy:仅当已存在 `~/.gemini/antigravity/` 时,写入 `~/.gemini/antigravity/skills/`;如果同时检测到 Antigravity 2.0 配置,也会额外写入 2.0 plugin 目录。
95
-
96
- `~/.agents/skills/` 和 `~/.agents/workflows/aios/` 是可选的通用 Agent 共享目录,不是所有 AI Agent 都会自动读取。需要这类兼容目录时,单独执行:
97
-
98
- ```bash
99
- npx @archsight/aios install --target agents --scope user
100
- ```
101
-
102
- ## init 默认行为
103
-
104
- `init` 默认使用 `--mode auto`:
105
-
106
- - 新项目或没有 AI 工具入口文件时,创建 `AGENTS.md`、`AI_CODING_RULES.md`、`CLAUDE.md`、`GEMINI.md` 和 `.ai/` 模板文件。
107
- - 已存在 `AGENTS.md`、`AI_CODING_RULES.md`、`CLAUDE.md` 或 `GEMINI.md` 时,创建缺失的 `.ai/` 文件,并在 `AGENTS.md`、`CLAUDE.md`、`GEMINI.md` 中追加或刷新 ArchSight AIOS 托管引用块。
108
- - 重复执行不会重复追加托管块,也不会覆盖已有项目规则。
109
- - 自动模式不修改已有 `AI_CODING_RULES.md` 正文。
110
-
111
- ## 行业边界
99
+ 本地调用 `archsight-solver` 示例:
112
100
 
113
- 建筑行业能力通过 `--profile` 或明确任务触发。未启用相关 profile 的项目,不应默认加载 BIM、IFC、GraphRAG、审图或建筑规范假设。
114
-
115
- 前端应用、后端服务、CLI 工具、数据管道等工程形态优先由 Workflow / Skill / Agent 路由处理,不默认扩展为 profile。只有当某类项目存在稳定的行业语义、证据链、评估集或人工复核差异时,才应考虑新增 profile。
116
-
117
- 如需强制指定模式:
118
-
119
- ```bash
120
- npx @archsight/aios init --mode full
121
- npx @archsight/aios init --mode linked
122
- npx @archsight/aios init --mode ai-only
101
+ ```powershell
102
+ $env:ARCHSIGHT_SOLVER_HOME = "<archsight-solver 本地仓库绝对路径>"
103
+ npx @archsight/aios capability:call --capability solver.beam_deflection --agent euclid --skill aios-structural --input beam-input.json
104
+ npx @archsight/aios capability:call --capability solver.beam_deflection_serviceability_check --agent euclid --skill aios-structural --input beam-serviceability-input.json
123
105
  ```
124
106
 
125
- ## 本地开发验证
126
-
127
- 如果是从源码仓库运行,而不是通过 npm 包运行:
128
-
129
- ```bash
130
- npm run install:user
131
- npm run doctor
132
- npm run smoke:project
133
- npm test
134
- ```
135
-
136
- ## 核心材料
137
-
138
- - [快速上手](docs/quickstart.md)
139
- - [业务专家指南](docs/business-expert-guide.md)
140
- - [术语表](docs/glossary.md)
141
- - [AI 编码规范](AI_CODING_RULES.md)
142
- - [Agents](agents/README.md)
143
- - [Skills](skills/README.md)
144
- - [Workflows](workflows/README.md)
145
- - [Templates](templates/README.md)
146
- - [Runtime 路由](runtime/agent-routing.md)
107
+ 如果 `archsight-aios` 和 `archsight-solver` 是同级目录,CLI 会默认尝试使用相邻的 `../archsight-solver`,通常无需设置 `ARCHSIGHT_SOLVER_HOME`。
147
108
 
109
+ ## 安装位置
110
+
111
+ `install --target all --scope user` 会写入当前用户目录:
112
+
113
+ - Codex:`~/.codex/skills/`、`~/.codex/workflows/aios/`
114
+ - Gemini:`~/.gemini/GEMINI.md`、`~/.gemini/archsight-aios/`
115
+ - Antigravity 2.0:`~/.gemini/config/plugins/archsight-aios/`
116
+ - Antigravity 1.x legacy:仅当已存在 `~/.gemini/antigravity/` 时,写入 `~/.gemini/antigravity/skills/`;如果同时检测到 Antigravity 2.0 配置,也会额外写入 2.0 plugin 目录。
117
+
118
+ `~/.agents/skills/` 和 `~/.agents/workflows/aios/` 是可选的通用 Agent 共享目录,不是所有 AI Agent 都会自动读取。需要这类兼容目录时,单独执行:
119
+
120
+ ```bash
121
+ npx @archsight/aios install --target agents --scope user
122
+ ```
123
+
124
+ ## init 默认行为
125
+
126
+ `init` 默认使用 `--mode auto`:
127
+
128
+ - 新项目或没有 AI 工具入口文件时,创建 `AGENTS.md`、`AI_CODING_RULES.md`、`CLAUDE.md`、`GEMINI.md` 和 `.ai/` 模板文件。
129
+ - 已存在 `AGENTS.md`、`AI_CODING_RULES.md`、`CLAUDE.md` 或 `GEMINI.md` 时,创建缺失的 `.ai/` 文件,并在 `AGENTS.md`、`CLAUDE.md`、`GEMINI.md` 中追加或刷新 ArchSight AIOS 托管引用块。
130
+ - 重复执行不会重复追加托管块,也不会覆盖已有项目规则。
131
+ - 自动模式不修改已有 `AI_CODING_RULES.md` 正文。
132
+
133
+ ## 行业边界
134
+
135
+ 建筑行业能力通过 `--profile` 或明确任务触发。未启用相关 profile 的项目,不应默认加载 BIM、IFC、GraphRAG、审图或建筑规范假设。
136
+
137
+ 前端应用、后端服务、CLI 工具、数据管道等工程形态优先由 Workflow / Skill / Agent 路由处理,不默认扩展为 profile。只有当某类项目存在稳定的行业语义、证据链、评估集或人工复核差异时,才应考虑新增 profile。
138
+
139
+ 如需强制指定模式:
140
+
141
+ ```bash
142
+ npx @archsight/aios init --mode full
143
+ npx @archsight/aios init --mode linked
144
+ npx @archsight/aios init --mode ai-only
145
+ ```
146
+
147
+ ## 本地开发验证
148
+
149
+ 如果是从源码仓库运行,而不是通过 npm 包运行:
150
+
151
+ ```bash
152
+ npm run install:user
153
+ npm run doctor
154
+ npm run smoke:project
155
+ npm test
156
+ ```
157
+
158
+ ## 核心材料
159
+
160
+ - [快速上手](docs/quickstart.md)
161
+ - [业务专家指南](docs/business-expert-guide.md)
162
+ - [术语表](docs/glossary.md)
163
+ - [AI 编码规范](AI_CODING_RULES.md)
164
+ - [Agents](agents/README.md)
165
+ - [Skills](skills/README.md)
166
+ - [Workflows](workflows/README.md)
167
+ - [Templates](templates/README.md)
168
+ - [Runtime 路由](runtime/agent-routing.md)
169
+
148
170
  ## 开源协作
149
171
 
150
- - 许可证:[MIT](LICENSE)
172
+ - 许可证:[Apache-2.0](LICENSE)
151
173
  - 贡献说明:[CONTRIBUTING.md](CONTRIBUTING.md)
152
174
  - 安全问题:[SECURITY.md](SECURITY.md)
153
175
  - 行为准则:[CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md)
154
176
  - 变更记录:[CHANGELOG.md](CHANGELOG.md)
177
+
178
+ ### 商业边界
179
+
180
+ - Apache-2.0 允许商业使用、修改、分发和私有部署;分发时需保留版权声明、许可证文本和必要 NOTICE,并遵守 Apache-2.0 的专利与免责声明条款。
181
+ - 许可证只覆盖本仓库开源内容,不授权 ArchSightLabs / ArchSight 商标、品牌资产、托管服务、专有数据集、客户案例、商业支持、SLA 或任何第三方受限素材。
182
+ - 基于 AIOS 提供商业产品、咨询或二次分发时,不得暗示官方认证、代理、合作或背书;工程结论、合规责任和客户交付责任由使用方自行承担。