AGENTS.md@src/clientA

AGENTS.md@src/client from gzx2211/dsh-visual-workflow is an AGENTS.md file: the standing instructions coding agents read in that repo.

Install it, pinned
mdr add gzx2211/dsh-visual-workflow/src/client/AGENTS.md@git:20260924.2e6ce57

Pins git:20260924.2e6ce57 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/client/AGENTS.md
Versions recorded
2
Latest version
git:20260924.2e6ce57, committed Sep 24, 2026
First version recorded
Sep 23, 2026
Size
6,633 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

# Client Rules

适用于 `src/client/` 全域。本文件是 Client 半区**跨模块通用规则**的唯一承接点。
测试规则见 `tests/AGENTS.md`;跨层依赖与全仓库规范见根 `AGENTS.md`。

## 本层承担什么

Client 是**单页工作台**,只负责交互与可视化,承担三类职责:

1. **界面投影与交互编排**:把 Host 的事实投影为可读界面,把用户意图翻译成对 Host 的语义化调用;
2. **自有的界面与编辑状态**:只持有「界面如何呈现、用户正在编辑什么」这类状态,不拥有 Host Runtime 的事实;
3. **宿主装配与协调**:插件入口只负责注册、装配、样式与生命周期汇总,**不承载业务语义**。

判断标准:一段代码若回答「界面如何呈现、如何交互」,属 Client;若回答「事实是什么、何时成立、如何持久化」,属 Host。

## 状态所有权

- **单一状态机拥有业务事实**:同一事实只允许一处所有权与一处写入边界;状态变化只经该状态机的语义化 action(reducer 分支)完成;
- **渲染态与业务态分离**:悬停、拖拽中、展开/折叠、临时校验提示等瞬时渲染态归组件本地状态,**不得**写入业务状态;
- **派生数据由选择器计算**,不得存储、双写或与源数据各自维护;选择器必须是纯函数;
- **组件不得直接修改不属于自己的状态**:只允许 dispatch 自己的语义化 action,禁止直接改状态对象字段、禁止跨模块改写他人内部状态;
- 无对应 action 时,**增加明确 action**,而不是在组件内维护第二份副本或绕过状态机直改。

## 数据流与数据访问边界

- **单向数据流**:事实流向固定为「Host → 统一网络边界 → 状态机 → 选择器 → 组件 → 语义化 action → 统一网络边界 → Host」,不得出现反向捷径或旁路;
- **网络访问只经统一网络边界与注入面**:组件与 hook 不得自建第二条数据访问路径(不得直接发起请求、不得绕过注入面自取宿主服务);
- 端点名、协议常量等一律引用共享契约,不得在调用点硬编码字面量;
- **稳定错误码由调用方按语义处理**(如乐观锁冲突按冲突语义刷新/提示),不得只显示通用文案后静默继续;
- 网络边界的失败语义必须显式:区分「业务失败」与「传输/解析失败」,并保留可判定的错误码。

## 副作用与异步生命周期

- 订阅、定时器、监听、Observer、长驻 DOM 与独立渲染根,**必须可追踪责任者与清理方式**;谁创建谁释放,释放路径与创建路径成对出现;
- **卸载后不得写状态**:异步回调进入前先校验所属生命周期仍然有效;
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add gzx2211/dsh-visual-workflow/src/client/AGENTS.md@sha256:c808b4aaec2095e6

The line at the top of this page pins the label git:20260924.2e6ce57, 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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_mtzwugw5w7s4sd7f.svg)](https://markdownregistry.com/a/art_mtzwugw5w7s4sd7f)

0 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 2 versions of this file, between Sep 23, 2026 and Sep 24, 2026, more than one a day.

versioncommittedcommitsizeaudit
git:20260924.2e6ce57 latest2026-09-24 2e6ce57 6,633 BA view · diff
git:20260923.459672e2026-09-23 459672e 6,703 BA view

Audit of the latest version

A  14 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Size between 200 bytes and 200 KB (6633 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

GitHub

gzx2211/dsh-visual-workflow · 65 stars · license MIT · pushed 2026-10-29 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_mtzwugw5w7s4sd7f
GET https://markdownregistry.com/api/v1/resolve?ref=gzx2211/dsh-visual-workflow/src/client/AGENTS.md
GET https://markdownregistry.com/api/v1/blob/c808b4aaec2095e6664246c175ee1f2370a40b67087a9193128861bb47337fee

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.

More from gzx2211/dsh-visual-workflow

AGENTS.md AGENTS.md file
gzx2211/dsh-visual-workflow · AGENTS.md
git:20261029.890e702 · audit A · 65 stars
dsh-plugin-development SKILL.md skill
gzx2211/dsh-visual-workflow · prompt/SKILL.md · 开发、维护、分发和验证 DeepSeek Harness (DSH) 插件的执行型 Skill。覆盖 host/client 形态判断、bundle/profile 契约、Service…
v3.1.0 · audit A · 65 stars
AGENTS.md@src/host AGENTS.md file
gzx2211/dsh-visual-workflow · src/host/AGENTS.md
git:20260928.0bc633c · audit A · 65 stars
AGENTS.md@src/host/agent AGENTS.md file
gzx2211/dsh-visual-workflow · src/host/agent/AGENTS.md
git:20260928.0bc633c · audit A · 65 stars
AGENTS.md@src/host/api AGENTS.md file
gzx2211/dsh-visual-workflow · src/host/api/AGENTS.md
git:20260928.0bc633c · audit A · 65 stars
AGENTS.md@src/host/assets AGENTS.md file
gzx2211/dsh-visual-workflow · src/host/assets/AGENTS.md
git:20261019.cae5b07 · audit A · 65 stars
AGENTS.md@src/host/graph AGENTS.md file
gzx2211/dsh-visual-workflow · src/host/graph/AGENTS.md
git:20260928.0bc633c · audit A · 65 stars
AGENTS.md@src/host/orchestrator AGENTS.md file
gzx2211/dsh-visual-workflow · src/host/orchestrator/AGENTS.md
git:20260928.0bc633c · audit A · 65 stars
AGENTS.md@src/host/prompts AGENTS.md file
gzx2211/dsh-visual-workflow · src/host/prompts/AGENTS.md
git:20261017.3538eb1 · audit A · 65 stars
AGENTS.md@src/host/scheduler AGENTS.md file
gzx2211/dsh-visual-workflow · src/host/scheduler/AGENTS.md
git:20260928.0bc633c · audit A · 65 stars
AGENTS.md@src/host/service AGENTS.md file
gzx2211/dsh-visual-workflow · src/host/service/AGENTS.md
git:20260928.0bc633c · audit A · 65 stars
AGENTS.md@src/host/shared AGENTS.md file
gzx2211/dsh-visual-workflow · src/host/shared/AGENTS.md
git:20260928.0bc633c · audit A · 65 stars

Every file in gzx2211/dsh-visual-workflow

Browse by kind, by grade A, or by owner.