交付三种引擎登记、草稿/已保存连接测试、可逆启用、每源熔断与 Cron 巡检,以及控制台页面;用户确认收尾后标 DONE_LOCAL。 Co-authored-by: Cursor <cursoragent@cursor.com>
8.5 KiB
Knowledge Map
This file routes agents and humans to project knowledge.
It must not become a code index. Do not list every file, class, function, or symbol here.
Docs explain context. Rules enforce constraints. Keep them separate and update this file whenever docs or rules are added, moved, renamed, or deleted.
Rule files may also record rule metadata such as type, confidence, and source. Read those semantics from AGENTS.md and the rule files themselves; do not treat every rule entry as equally strong by default.
When marionettist.config.yaml exists, read knowledge.mode and knowledge.maturity before deciding how much knowledge to load or create.
Project Overview
- Knowledge Docs:
docs/project/for repository-wide workflow and routingdocs/project/tier-policy-workflow-design.mdfor installed future-facing Tier-policy workflow research boundaries and roadmap contextdocs/current/for current-state knowledge about how the project works todaydocs/target/for desired future design, migration direction, or proposed architecture
- Rule Files:
AGENTS.md.aiassistant/rules/*.md
- Scope:
- route readers to the smallest relevant set of docs and rules
- keep current fact separate from target intent
- When To Read:
- before loading detailed docs for a non-trivial task
- whenever docs, rules, or file roles change
- Boundary Notes:
docs/current/is for observed reality firstdocs/target/is for future intent, not current fact- label knowledge as fact, inference, or unknown inside detailed docs
- keep rule-strength metadata in rule files, not in knowledge docs
Current-State-First Routing
For mixed-responsibility, legacy-heavy, or mudball projects, start with docs/current/ unless the task is explicitly about future design.
Use this order:
- read
AGENTS.mdand relevant rules first - read
docs/project/knowledge-map.mdto choose the smallest relevant knowledge area - read
docs/current/...for how the project works today - read
docs/target/...only when the task involves planned changes, migration direction, or intentional future-state design
If the current state is unclear, document the uncertainty as an unknown instead of filling the gap with target design.
Project Workflow Design
- Areas: Marionettist task flow, Tier-based routing, gate boundaries, future workflow configurability
- Tags: workflow, tier, gate-policy, task-state, research
- Docs:
- Current:
docs/project/marionettist-workflow.md - Target:
docs/project/tier-policy-workflow-design.md
- Current:
- Rules:
AGENTS.md
- Read When:
- working on Marionettist execution flow, Tier policy, gate behavior, or future workflow design boundaries
- Boundaries:
- keep
gatePolicysemantics unchanged - treat Tier policy as classification/workflow-hint logic until a later approved design says otherwise
- do not treat the design draft as implemented behavior
- use the design draft to understand deferred hardening and future-engine boundaries, not current execution rules
- keep
- Validation:
- confirm project-neutral language
- confirm proposed workflow configurability remains design-only unless explicitly implemented in an approved slice
Knowledge Maturity Routing
Use knowledge.maturity to scale routing depth and governance expectations:
- L0: route only the minimum docs and rules needed for the task; prefer explicit unknowns over broad discovery
- L1: prioritize
docs/current/coverage for entrypoints, major flows, risk zones, and safe-change advice - L2: maintain reusable routing for important areas and load both current and target docs only when they materially affect the task
- L3: expect stronger routing discipline, clearer ownership notes, and docs/rules sync when meaning changes
- L4: expect high-trust curated routing, stronger confirmed/hard rule usage, and careful separation of current fact vs target intent
Use maturity as a scaling guide, not as a reason to load all docs.
For knowledge.mode: mudball:
- default to
docs/current/first at every maturity level - keep target docs optional and future-facing
- treat L0-L1 as valid operating levels
- do not assume L3/L4 governance unless the project explicitly chose it
Knowledge Labels
Detailed docs should distinguish:
- Fact: directly observed in code, config, runtime behavior, logs, or confirmed repository docs
- Inference: likely interpretation of current behavior that still needs confirmation
- Unknown: unresolved question, missing evidence, or area not yet inspected
- Target: desired future behavior or design direction; keep this in
docs/target/unless a current-state doc must reference it for contrast
Do not silently upgrade inference or target guidance into present-day fact.
Do not silently upgrade observed or target rules into enforceable hard constraints.
How To Use This File
- Use this file to choose a small set of relevant docs and rules.
- Match the task to one or more knowledge areas by purpose, workflow, ownership, validation needs, or change surface.
- Read only the entries that match the current task.
- Prefer
docs/current/for real behavior anddocs/target/for intended future behavior. - Prefer rule files for constraints, and check rule metadata before treating a rule as a blocker.
- Use repository search or source inspection for file and symbol lookup.
- Do not list the whole repository here.
Knowledge Area Template
Copy this block for each major project area:
### <Area Name>
- Areas:
- Tags:
- Docs:
- Current: `docs/current/...`
- Target: `docs/target/...`
- Rules:
- `.aiassistant/rules/...`
- `AGENTS.md`
- Read When:
- Boundaries:
- Validation:
Watchman
业务文档仍以仓库原有文档为准。本文件只做路由,不复制需求正文。
产品范围与进度
- Areas: 预警平台规划、模块任务、当前进度
- Tags: watchman, planning, progress, tasks
- Docs:
- Current:
docs/progress.md、docs/decisions.md、docs/current/system-map.md - Target:
docs/development-plan.md、需求冻结文档_V1.1_交接稿.md、docs/target/architecture-intent.md
- Current:
- Rules:
AGENTS.md项目本地段
- Read When:
- 判断现在做到哪、哪个模块可以做、哪些决策还没确认
- Boundaries:
- 规划文档存在不等于可以开始业务编码
docs/tasks/INDEX.md是模块计划;.task/不替换它
- Validation:
- 以
docs/testing-plan.md和当前任务卡里的证据为准
- 以
公司规范与 Marionettist
- Areas: 编码约束、门禁、Cursor 规则
- Tags: sy-standards, gate, cursor
- Docs:
- Current:
docs/agent-workflow.md - Target:
docs/project/marionettist-workflow.md
- Current:
- Rules:
.cursor/rules/workflow-rules.mdc.cursor/rules/sy-standards.mdc.cursor/rules/00-repository-rules.mdc
- Read When:
- 准备写代码,或需要判断该停下来还是该查公司规范
- Boundaries:
- 门禁听 Marionettist
- API、前端、注释、提交、密钥听 sy-standards
- 不把 MCP token 写入仓库
- Validation:
- 改动平台代码前能指出对应的
standards://篇目和版本
- 改动平台代码前能指出对应的
控制台界面
- Areas: 管理台页面、页脚按钮、密码输入
- Tags: frontend, element-plus, detail, password
- Docs:
- Current:
docs/current/frontend-ui.md
- Current:
- Rules:
AGENTS.md项目本地段
- Read When:
- 写或改
web/apps/console的页面,尤其是详情、表单和密码框
- 写或改
- Boundaries:
- 列表页按钮放在表格上方
- 详情页按钮放在页脚并居中,不放进纵向滚动区域
- 表格行内操作留在该行
- 密码框用 Element Plus 自带的
show-password
- Validation:
- 列表按钮在表格上方;详情页滚动时页脚按钮仍居中停在底部
Mudball-Friendly Documentation Guidance
For codebases with unclear boundaries or mixed responsibilities:
- document current entrypoints, call paths, risk zones, and safe-change advice before proposing cleanup
- keep related-file notes small and purpose-based, not exhaustive
- prefer facts and unknowns over polished architecture language
- prefer gradual maturity growth over immediate governance escalation
- add target-state docs only when they help explain a proposed improvement or migration path
Path-Proximity Rule Reminder
When target files are known, agents should also look upward from those paths for local rule files such as:
MODULE_RULES.mdAGENTS.mdHARNESS_RULES.md
Local path rules narrow area-specific behavior, but repository-global safety and boundary rules still take precedence if there is a conflict.