AGENTS.md@src/hostA
AGENTS.md@src/host from gzx2211/dsh-visual-workflow is an AGENTS.md file: the standing instructions coding agents read in that repo.
mdr add gzx2211/dsh-visual-workflow/src/host/AGENTS.md@git:20260928.0bc633cPins git:20260928.0bc633c in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 14 of 14 checks passed
- Kind
- AGENTS.md file
- Repository
- gzx2211/dsh-visual-workflow
- Path
src/host/AGENTS.md- Versions recorded
- 3
- Latest version
- git:20260928.0bc633c, committed Sep 28, 2026
- First version recorded
- Sep 22, 2026
- Size
- 5,137 bytes
- Repository stars
- 65
- License
- MIT
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Host Rules 适用于 `src/host/`。本文件是 Host 跨模块通用规则的唯一承接点。 ## 本层职责与归属 Host 根只承担三类职责: 1. **包级入口**:发布路径固定的插件入口(主插件入口、服务进程入口),只做装配与协调。 2. **宿主组合根**:装配公共能力、建立事件观察、汇总生命周期与清理。 3. **宿主级横切契约**:两个以上模块以相同语义消费、且不拥有业务状态的最小契约(输入校验、官方服务最小结构、跨进程共享解析规则等)。 判断:只服务一个模块的代码归该模块;被两个以上模块同语义消费且无业务状态才归本层。禁止把本层当“放不下代码”的收容所。 ## 入口 - 只做三件事:解析装配参数、装配模块能力、协调进程/插件生命周期;不承载业务语义。 - 默认值来自配置契约唯一来源;不得复制默认值清单、校验清单或字段映射。 - 引用模块只走公共入口或对外契约文件,不得触达内部实现。 - 失败必须显式:明确错误 / 非零退出码,不得静默降级。 ## 横切契约 - **单一来源**:同一官方能力最小结构、枚举投影、解析规则,全 Host 只允许一处实现。 - **零业务状态**:只含纯结构类型与纯函数(解析、投影、校验);不持有实例状态、缓存、定时器或生命周期。 - **不决定降级语义**:契约只表达事实;缺失时的降级由调用方按各自语义决定。 - **依赖方向**:只允许依赖 shared 纯类型与 Node 内置能力;不得反向依赖业务模块、api 或 client。 ## 宿主组合根 - 本层唯一“知道所有模块”的位置:装配顺序、事件观察、清理顺序显式排列。 - 事件观察只做翻译与转发:官方事件翻译成领域调用,不在组合根实现领域判断。 - 生命周期按依赖逆序清理,每一步幂等;子资源撤销权归宿主,模块不得自建第二套撤销表。 - 官方事件与 payload 的本地声明属 program 级事实,只允许在本层收窄声明(只声明真正消费的字段);不得伪造官方不存在的契约。 - 形状漂移一律运行时守卫 + 降级,不因未知字段抛错。 ## 跨模块协作 - 两模块共享能力,优先“一方公共入口 + 另一方注入消费”,其次本层横切契约。 - 本层只承接无领域归属的共同事实,不承接两个模块的协作逻辑。 - 跨进程协作只经磁盘事实与启动参数,不共享内存。 ## 模块通用规则 ### 状态所有权与单一事实源 - 每个事实只有一个所有者与一个写入边界;状态变化只经所有者表达业务语义的操作(方法/事件),禁止直接改字段。 - 禁止跨模块直接修改对方内部状态;对外状态默认只读,查询与修改接口区分。 - 无对应语义化操作时,增加明确操作,而不是暴露内部状态。 - 同一概念只允许一处本体(一处字面量 + 一处映射),使用方引用本体。 …
Read the whole file at its exact version.
How to install
mdr add gzx2211/dsh-visual-workflow/src/host/AGENTS.md@sha256:e1ed8417fa111e2dThe line at the top of this page pins the label git:20260928.0bc633c, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_aent24owm32trdde)
0 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 3 versions of this file, between Sep 22, 2026 and Sep 28, 2026, about one every 3 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260928.0bc633c latest | 2026-09-28 | 0bc633c | 5,137 B | A | view · diff |
| git:20260923.4575b13 | 2026-09-23 | 4575b13 | 5,784 B | A | view · diff |
| git:20260922.e71ebae | 2026-09-22 | e71ebae | 4,710 B | A | view |
Audit of the latest version
- pass: Size between 200 bytes and 200 KB (5137 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
gzx2211/dsh-visual-workflow · 65 stars · license MIT · pushed 2026-10-29 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_aent24owm32trdde GET https://markdownregistry.com/api/v1/resolve?ref=gzx2211/dsh-visual-workflow/src/host/AGENTS.md GET https://markdownregistry.com/api/v1/blob/e1ed8417fa111e2dc0f8e5fe8899d033666c34f5fbe707bc1be05ef22166cd08
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: how to write a good AGENTS.md · AGENTS.md vs CLAUDE.md · which agent file does what.