AGENTS.md@src/host/sharedA
AGENTS.md@src/host/shared 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/shared/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/shared/AGENTS.md- Versions recorded
- 3
- Latest version
- git:20260928.0bc633c, committed Sep 28, 2026
- First version recorded
- Sep 22, 2026
- Size
- 2,124 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
# Shared Module Rules ## 范围与职责 适用于 `src/host/shared/`。 为 Host 半区与 Client 半区提供**同一份**契约来源: - 共享的形状(图模型、持久化文档、模板、元参数); - 共享的跨层常量(端点名、工具名与可见性、状态枚举、口径常量)。 判断归属:该修改是否同时约束 Host 与 Client 两端的契约?只影响一端的实现细节,应放到对应半区,而不是共享层。 ## 纯度契约 共享层必须保持「可被两端零风险引用」: - **禁止运行时 import**:不得引入任何模块的运行时值(避免双 tsconfig 的 Context augmentation 相互污染); - **允许 `import type`**:类型引用编译期完全擦除,不构成运行时依赖; - **形状文件不得定义运行时值**:运行时值只允许出现在协议常量文件中,并必须是无运行时依赖的字面量常量; - 不得在共享层定义全局可变状态、单例、副作用或环境依赖。 ## 契约一致性 - 协议层枚举/取值域与类型层联合必须**双向穷尽**:任一侧增删取值时两侧同步,并由编译期断言锁定(类型 ⊆ 常量 ∧ 常量 ⊆ 类型)。 - **禁止用固定长度或固定列表断言代替穷尽断言**:固定列表会把漂移锁死,而不是发现漂移。 - 形状必须与真实写入/读取对齐:持久化层或客户端实际写入的字段(如时间戳)必须在本层声明,不得依赖调用方 `as` 断言补形状。 ## 契约路径稳定 - 对外契约的 import 说明符属于公共契约:内部按职责拆分时,必须保留既有路径(通过 type-only barrel 再导出),不得要求调用方改 import。 - 新增契约优先落在语义最贴近的现有职责文件;仅为「文件数好看」新增聚合文件是被禁止的。 ## 核心原则 1. 契约单一来源,禁止双份维护。 2. 形状与逻辑分离,共享层不含行为。 3. 零运行时依赖;`import type` 优先。 4. 枚举双向穷尽,禁止固定列表断言。 5. 契约路径稳定,内部拆分不外溢。
Read the whole file at its exact version.
How to install
mdr add gzx2211/dsh-visual-workflow/src/host/shared/AGENTS.md@sha256:d109654a52064a1aThe 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_kitmtswvaf6ck52i)
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 | 2,124 B | A | view · diff |
| git:20260923.4575b13 | 2026-09-23 | 4575b13 | 2,430 B | A | view · diff |
| git:20260922.3481b25 | 2026-09-22 | 3481b25 | 3,737 B | A | view |
Audit of the latest version
- pass: Size between 200 bytes and 200 KB (2124 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_kitmtswvaf6ck52i GET https://markdownregistry.com/api/v1/resolve?ref=gzx2211/dsh-visual-workflow/src/host/shared/AGENTS.md GET https://markdownregistry.com/api/v1/blob/d109654a52064a1a9cac5e08b3a94817a6a3e11c017a6f927ca3234ef293afa1
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.