Files
watchman/docs/project/knowledge-map.md
T
unknownandCursor c7a23837f4 feat(web): 对齐和信后台页壳并落地工业 UI 评审与 Skills 盘点
统一控制台列表/表单页壳与 Hexin 样式,补充 industrial-ui-review、管理员评审证据,以及 Skills 资产盘点与 test-strategy 消歧。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-19 17:44:26 +08:00

9.5 KiB
Raw Blame History

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 routing
    • docs/project/tier-policy-workflow-design.md for installed future-facing Tier-policy workflow research boundaries and roadmap context
    • docs/current/ for current-state knowledge about how the project works today
    • docs/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 first
    • docs/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:

  1. read AGENTS.md and relevant rules first
  2. read docs/project/knowledge-map.md to choose the smallest relevant knowledge area
  3. read docs/current/... for how the project works today
  4. 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
  • Rules:
    • AGENTS.md
  • Read When:
    • working on Marionettist execution flow, Tier policy, gate behavior, or future workflow design boundaries
  • Boundaries:
    • keep gatePolicy semantics 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
  • 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 and docs/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
  • 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
  • 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: 管理台页面、页脚按钮、密码输入、共享 Design System 接入
  • Tags: frontend, element-plus, detail, password, design-system
  • Docs:
    • Current: docs/current/frontend-ui.md、docs/ui/ELEMENT_MIGRATION.md
    • Shared: D:\FDE\SP\design-system\(ADOPT / DESIGN / PAGE_PATTERNS)
    • Decision: docs/decisions.md D41
  • Rules:
    • AGENTS.md 项目本地段「UI / Design System」
    • .cursor/rules/element-admin-ui.mdc
    • standards://frontend/element-plus(公司 EP 接入)
  • Read When:
    • 写或改 web/apps/console 的页面,尤其是详情、表单、列表和密码框
    • 调整 Token/主题色或对齐和信企业风格
  • Boundaries:
    • 列表页按钮放在表格上方
    • 详情页按钮放在页脚并居中,不放进纵向滚动区域
    • 表格行内操作留在该行
    • 密码框用 Element Plus 自带的 show-password
    • 主色走 web/design/tokens.css(#0284c7),页面不散落 hex
  • Validation:
    • 列表按钮在表格上方;详情页滚动时页脚按钮仍居中停在底部
    • 新管理页符合 element-admin-ui.mdc 与 ELEMENT_MIGRATION.md

AI 工具链与工业 UI 评审

  • Areas: AI Skills 资产与调用收敛、工业后台/生产大屏/HMI 的 UI/UX 设计评审
  • Docs: docs/ai-tooling/skills-inventory.md、docs/ai-tooling/skills-optimization.md
  • Skill: .cursor/skills/industrial-ui-review/SKILL.md
  • Read When: 选择 AI 工具,或用户明确要求工业 UI 设计评审、UI/UX 审查
  • Boundaries: 项目规则与设计真源优先;页面结论优先用真实浏览器证据;外部 Skill 的安装或引入须另行审批

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.md
  • AGENTS.md
  • HARNESS_RULES.md

Local path rules narrow area-specific behavior, but repository-global safety and boundary rules still take precedence if there is a conflict.