12 KiB
Tasks: REV-007 营收统计查询设计
Input: Design documents from /specs/004-rev007-revenue-statistics-design/
Prerequisites: plan.md (required), spec.md (required), research.md, data-model.md, contracts/
Validation: Validation tasks are NOT optional in this repository. Every document change task set MUST include the applicable validation and ledger-sync tasks.
Organization: Tasks are grouped by user story so each document-maintenance slice can be completed, reviewed, and validated independently.
Format: [ID] [P?] [Story] Description
- [P]: Can run in parallel (different files, no dependencies)
- [Story]: Which user story this task belongs to (e.g. [US1], [US2], [US3])
- Include exact file paths in descriptions
Path Conventions
- Main documents:
docs/design/01_Overview/,docs/design/02_Detailed_Design/,docs/design/03_Technical_Design/ - Governance documents:
docs/design/00_Management/ - Archive references:
docs/design/04_Appendix/Archive/ - Runtime guidance:
README.md,AGENTS.md,.specify/templates/
Phase 1: Scope & Source Confirmation (Shared Foundation)
Purpose: Confirm the source-of-truth set and impact boundary before editing.
- T001 Confirm target documents and exact
REV-007touchpoints in/Volumes/Dpan/github/fujian_water_biz_doc/specs/004-rev007-revenue-statistics-design/spec.md - T002 Confirm governing source-of-truth and allowed reference sources in
/Volumes/Dpan/github/fujian_water_biz_doc/specs/004-rev007-revenue-statistics-design/plan.md - T003 [P] Record final scope judgment for
REV-007themes, exclusions, and implementation-status wording in/Volumes/Dpan/github/fujian_water_biz_doc/specs/004-rev007-revenue-statistics-design/research.md - T004 [P] Identify cross-document impacts for
IF-REV-010、统计主题、指标口径、数据库承接口径和治理台账 in/Volumes/Dpan/github/fujian_water_biz_doc/specs/004-rev007-revenue-statistics-design/contracts/rev007-interface-contract.md
Phase 2: Foundational Alignment (Blocking Prerequisites)
Purpose: Prepare the cross-document baseline that all user stories depend on.
- T005 Consolidate
REV-007decisions, entities, and contract fields from/Volumes/Dpan/github/fujian_water_biz_doc/specs/004-rev007-revenue-statistics-design/research.md,/Volumes/Dpan/github/fujian_water_biz_doc/specs/004-rev007-revenue-statistics-design/data-model.md, and/Volumes/Dpan/github/fujian_water_biz_doc/specs/004-rev007-revenue-statistics-design/contracts/rev007-interface-contract.md - T006 [P] Cross-check current sparse
REV-007andIF-REV-010references in/Volumes/Dpan/github/fujian_water_biz_doc/docs/design/02_Detailed_Design/12_REV_Detailed.mdand/Volumes/Dpan/github/fujian_water_biz_doc/docs/design/03_Technical_Design/03_Interface_Design.md - T007 [P] Cross-check current database statistics wording and existing “统计分析视图” placeholder in
/Volumes/Dpan/github/fujian_water_biz_doc/docs/design/03_Technical_Design/01_Database_Design.md - T008 Confirm ledger update expectations for this feature in
/Volumes/Dpan/github/fujian_water_biz_doc/docs/design/00_Management/15_SYS002_Requirement_Breakdown.md,/Volumes/Dpan/github/fujian_water_biz_doc/docs/design/00_Management/01_Project_Progress.md, and/Volumes/Dpan/github/fujian_water_biz_doc/docs/design/00_Management/03_Task_Checklist.md
Phase 3: User Story 1 - 收口统计业务范围 (Priority: P1) 🎯 MVP
Goal: 让 12_REV_Detailed.md 中的 REV-007 章节具备完整的统计主题、查询维度、核心指标、导出边界和排除项说明。
Independent Test: 单独评审 /Volumes/Dpan/github/fujian_water_biz_doc/docs/design/02_Detailed_Design/12_REV_Detailed.md 的 REV-007 章节,应能明确统计主题、维度、指标与不在本轮范围的专题分析项。
Implementation for User Story 1
- T009 [US1] Update
REV-007功能说明、关键设计、核心数据和落地边界 in/Volumes/Dpan/github/fujian_water_biz_doc/docs/design/02_Detailed_Design/12_REV_Detailed.md - T010 [P] [US1] Add
Statistics Theme、Statistics Dimension、Statistics Indicator对应的主题/维度/指标摘要 to/Volumes/Dpan/github/fujian_water_biz_doc/docs/design/02_Detailed_Design/12_REV_Detailed.md - T011 [P] [US1] Sync
REV-007implementation assessment and Story notes in/Volumes/Dpan/github/fujian_water_biz_doc/docs/design/00_Management/15_SYS002_Requirement_Breakdown.md - T012 [US1] Run
make validate-file FILE=docs/design/02_Detailed_Design/12_REV_Detailed.mdand capture result - T013 [US1] Run
make validate-file FILE=docs/design/00_Management/15_SYS002_Requirement_Breakdown.mdand capture result
Checkpoint: User Story 1 is reviewable and confirms the REV-007 business scope without depending on interface/database redesign.
Phase 4: User Story 2 - 统一接口与数据承接口径 (Priority: P2)
Goal: 在接口和数据库主文档中为 REV-007 建立清晰的 IF-REV-010 查询边界、输入输出要求与统计数据承接口径。
Independent Test: 单独评审 /Volumes/Dpan/github/fujian_water_biz_doc/docs/design/03_Technical_Design/03_Interface_Design.md 与 /Volumes/Dpan/github/fujian_water_biz_doc/docs/design/03_Technical_Design/01_Database_Design.md,应能确认 IF-REV-010 的职责、统计主题、维度、指标与数据库保守承接口径。
Implementation for User Story 2
- T014 [US2] Add
IF-REV-010formal interface definition, request/response shape, and permission/export boundary in/Volumes/Dpan/github/fujian_water_biz_doc/docs/design/03_Technical_Design/03_Interface_Design.md - T015 [P] [US2] Update statistics themes, dimension terminology, and data-source wording in
/Volumes/Dpan/github/fujian_water_biz_doc/docs/design/03_Technical_Design/03_Interface_Design.md - T016 [US2] Update statistical aggregation boundary, view/summary wording, and implementation-status constraints in
/Volumes/Dpan/github/fujian_water_biz_doc/docs/design/03_Technical_Design/01_Database_Design.md - T017 [P] [US2] Sync
REV-007interface mapping and data-source terminology back into/Volumes/Dpan/github/fujian_water_biz_doc/docs/design/02_Detailed_Design/12_REV_Detailed.md - T018 [US2] Run
make validate-file FILE=docs/design/03_Technical_Design/03_Interface_Design.mdand capture result - T019 [US2] Run
make validate-file FILE=docs/design/03_Technical_Design/01_Database_Design.mdand capture result - T020 [US2] Run
make validate-file FILE=docs/design/02_Detailed_Design/12_REV_Detailed.mdand capture result after interface/data sync
Checkpoint: User Story 2 is reviewable and fully expresses IF-REV-010 and the database-side aggregation boundary independently.
Phase 5: User Story 3 - 同步治理与实现评估结论 (Priority: P3)
Goal: 在治理台账中收口 REV-007 的设计进度、实现状态和后续建议,保持“设计补齐中、代码入口未见明确实现”的真实结论。
Independent Test: 单独评审 /Volumes/Dpan/github/fujian_water_biz_doc/docs/design/00_Management/15_SYS002_Requirement_Breakdown.md、/Volumes/Dpan/github/fujian_water_biz_doc/docs/design/00_Management/01_Project_Progress.md 与 /Volumes/Dpan/github/fujian_water_biz_doc/docs/design/00_Management/03_Task_Checklist.md,应能确认 REV-007 的治理记录已同步。
Implementation for User Story 3
- T021 [US3] Update
/Volumes/Dpan/github/fujian_water_biz_doc/docs/design/00_Management/15_SYS002_Requirement_Breakdown.mdwithREV-007design-closure result, implementation status, and follow-up recommendation - T022 [US3] Update
/Volumes/Dpan/github/fujian_water_biz_doc/docs/design/00_Management/01_Project_Progress.mdwith theREV-007design closure milestone - T023 [US3] Update
/Volumes/Dpan/github/fujian_water_biz_doc/docs/design/00_Management/03_Task_Checklist.mdwith theREV-007tracked-task closure status - T024 [US3] Run
make validate-file FILE=docs/design/00_Management/15_SYS002_Requirement_Breakdown.mdand capture result after governance sync - T025 [US3] Run
make validate-file FILE=docs/design/00_Management/01_Project_Progress.mdandmake validate-file FILE=docs/design/00_Management/03_Task_Checklist.mdand capture result
Checkpoint: User Story 3 is reviewable and confirms governance closure independently.
Final Phase: Cross-Cutting Closure
Purpose: Ensure repository-wide consistency after all story slices are complete.
- T026 [P] Re-check source-of-truth alignment across
/Volumes/Dpan/github/fujian_water_biz_doc/docs/design/02_Detailed_Design/12_REV_Detailed.md,/Volumes/Dpan/github/fujian_water_biz_doc/docs/design/03_Technical_Design/03_Interface_Design.md,/Volumes/Dpan/github/fujian_water_biz_doc/docs/design/03_Technical_Design/01_Database_Design.md, and/Volumes/Dpan/github/fujian_water_biz_doc/docs/design/00_Management/15_SYS002_Requirement_Breakdown.md - T027 [P] Run
make check-linksafter all document changes and capture result - T028 Prepare final summary with modified files, validation results, remaining risks, and next-step suggestions in
/Volumes/Dpan/github/fujian_water_biz_doc/specs/004-rev007-revenue-statistics-design/quickstart.md
Dependencies & Execution Order
Phase Dependencies
- Phase 1: Scope & Source Confirmation: No dependencies; MUST finish before content edits
- Phase 2: Foundational Alignment: Depends on Phase 1; MUST finish before user story work
- Phase 3: User Story 1: Depends on Phase 2
- Phase 4: User Story 2: Depends on Phase 2 and should follow User Story 1 because interface/data wording must align with the finalized statistics scope
- Phase 5: User Story 3: Depends on Phase 2 and should follow User Story 2 because governance wording must use the finalized interface and data-source terminology
- Final Phase: Depends on all selected user stories being complete
Within Each User Story
- Update target documents before syncing supporting or governance documents
- Complete content edits before validation
- Complete validation before ledger updates are marked done
- Complete ledger sync before final summary
User Story Completion Order
US1 -> US2 -> US3
Parallel Opportunities
T003andT004can run in parallel after source confirmationT006andT007can run in parallel during foundational alignment- In
US1,T010andT011can run in parallel afterT009 - In
US2,T015andT017can run in parallel afterT014andT016 T026andT027can run in parallel during final closure
Parallel Execution Examples
User Story 1
Run in parallel after T009:
- T010 [P] [US1] Add theme/dimension/indicator summaries in 12_REV_Detailed.md
- T011 [P] [US1] Sync implementation assessment in 15_SYS002_Requirement_Breakdown.md
User Story 2
Run in parallel after T014 and T016:
- T015 [P] [US2] Update statistics terminology and data-source wording in 03_Interface_Design.md
- T017 [P] [US2] Sync interface/data wording back into 12_REV_Detailed.md
Implementation Strategy
MVP First
先完成 US1,因为 12_REV_Detailed.md 中的统计主题、维度和指标边界是后续接口和数据库收口的前提。只要 US1 完成,就能先交付一版可评审的 REV-007 业务范围说明。
Incremental Delivery
- 完成
US1,锁定统计业务范围和排除项 - 完成
US2,锁定IF-REV-010与数据库承接口径 - 完成
US3,锁定治理台账和实现状态表述 - 最后统一执行全局一致性检查和链接校验
Notes
- 每个 story 都可以独立评审,不要求一次性改完全部文档
- 所有任务都必须回写既有正式文档,不能新建平行正式稿
- Archive 只作为核对来源,不直接替代主文档
- 验证和台账同步不是可选项