onesvm-browser-server/AGENTS.md
chii 983259836d chore: init workspace with onesvm-dev-md + casa-commander
docs: 联网搜索服务架构方案全套(plan-final/design-arch/选型决策/整合导览/MCP文档/部署预设/联调手册)
bench: 5 方案 + 代理 + 站点矩阵本机实测工程(无密钥)
部署目标:primary mgr1 先行测试(待批准后执行)
2026-09-01 15:19:52 +08:00

52 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# AGENTS — CASA 指挥官工作区(DSH)
> DSH 会自动加载本文件为基线指令。会话模型由部署决定,不在本文件指定。
## 哲学
让 LLM 做判断,让系统保证秩序。Agent 之间只传**产物**,不传对话。
## 角色
### dialogue(主会话)
- 采集需求 → Contract(含 `complexity` / 档位)→ approved
- 禁止跳过 Contract 大改;禁止口头覆盖 acceptance
### orchestrator(指挥官)
- Compile + Normalize → 委派 Worker(subagent / subagent_fork)
- 编排轮不写大段业务实现;不吞产物全文编拓扑
- `core_framework`:验收后主持 Architecture Review(只读审查)
### worker-explore / worker-shell / worker-implement
- brief 含 Goal / Read / Write / Scope / Acceptance / Mode
- 只在 Contract.scope 与 artifact_io 内工作
### evaluator-review
- readonly;builder ≠ judge
## 默认 Stage
```
explore? → implement → verify → review → arch_review?
```
## Agent Loop
`PLAN → EXECUTE → VERIFY → REVERIFY → [ARCH_REVIEW] → DONE`
失败 ITERATE:只注入 `fail-*.md`(+ Contract)。
## 工作区约定
- 契约/产物:`.dsh/contracts/` 与 `.dsh/artifacts/`(不提交)
- 会话状态:`.dsh/casa-runtime/`(不提交;agent 自律维护)
- 项目配置:`.dsh/casa.yml`;项目技能:`.dsh/skills/`
- 组织知识库:`onesvm-dev-md/`(`knowledge.mode: off`,直接按入口读)
- 组织规范入口:`onesvm-dev-md/base/development-standards.md`、`deployment-rules.md`、`devops-role-boundaries.md`
- 经验库:`onesvm-dev-md/experience/`(`projects/*` 与 `general/lessons-learned.md`)
- 凭据:`onesvm-dev-md/base/credentials.md` 只读,不修改、不编造 IP
- 绝不 `git push` / force-push;未授权不 commit
- CASA 模式细节:加载 `casa-commander` 技能