178 lines
12 KiB
Markdown
178 lines
12 KiB
Markdown
# 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.
|
|
|
|
- [X] T001 Confirm target documents and exact `REV-007` touchpoints in `/Volumes/Dpan/github/fujian_water_biz_doc/specs/004-rev007-revenue-statistics-design/spec.md`
|
|
- [X] 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`
|
|
- [X] T003 [P] Record final scope judgment for `REV-007` themes, exclusions, and implementation-status wording in `/Volumes/Dpan/github/fujian_water_biz_doc/specs/004-rev007-revenue-statistics-design/research.md`
|
|
- [X] 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.
|
|
|
|
- [X] T005 Consolidate `REV-007` decisions, 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`
|
|
- [X] T006 [P] Cross-check current sparse `REV-007` and `IF-REV-010` references in `/Volumes/Dpan/github/fujian_water_biz_doc/docs/design/02_Detailed_Design/12_REV_Detailed.md` and `/Volumes/Dpan/github/fujian_water_biz_doc/docs/design/03_Technical_Design/03_Interface_Design.md`
|
|
- [X] 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`
|
|
- [X] 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
|
|
|
|
- [X] T009 [US1] Update `REV-007` 功能说明、关键设计、核心数据和落地边界 in `/Volumes/Dpan/github/fujian_water_biz_doc/docs/design/02_Detailed_Design/12_REV_Detailed.md`
|
|
- [X] 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`
|
|
- [X] T011 [P] [US1] Sync `REV-007` implementation assessment and Story notes in `/Volumes/Dpan/github/fujian_water_biz_doc/docs/design/00_Management/15_SYS002_Requirement_Breakdown.md`
|
|
- [X] T012 [US1] Run `make validate-file FILE=docs/design/02_Detailed_Design/12_REV_Detailed.md` and capture result
|
|
- [X] T013 [US1] Run `make validate-file FILE=docs/design/00_Management/15_SYS002_Requirement_Breakdown.md` and 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
|
|
|
|
- [X] T014 [US2] Add `IF-REV-010` formal 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`
|
|
- [X] 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`
|
|
- [X] 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`
|
|
- [X] T017 [P] [US2] Sync `REV-007` interface mapping and data-source terminology back into `/Volumes/Dpan/github/fujian_water_biz_doc/docs/design/02_Detailed_Design/12_REV_Detailed.md`
|
|
- [X] T018 [US2] Run `make validate-file FILE=docs/design/03_Technical_Design/03_Interface_Design.md` and capture result
|
|
- [X] T019 [US2] Run `make validate-file FILE=docs/design/03_Technical_Design/01_Database_Design.md` and capture result
|
|
- [X] T020 [US2] Run `make validate-file FILE=docs/design/02_Detailed_Design/12_REV_Detailed.md` and 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
|
|
|
|
- [X] T021 [US3] Update `/Volumes/Dpan/github/fujian_water_biz_doc/docs/design/00_Management/15_SYS002_Requirement_Breakdown.md` with `REV-007` design-closure result, implementation status, and follow-up recommendation
|
|
- [X] T022 [US3] Update `/Volumes/Dpan/github/fujian_water_biz_doc/docs/design/00_Management/01_Project_Progress.md` with the `REV-007` design closure milestone
|
|
- [X] T023 [US3] Update `/Volumes/Dpan/github/fujian_water_biz_doc/docs/design/00_Management/03_Task_Checklist.md` with the `REV-007` tracked-task closure status
|
|
- [X] T024 [US3] Run `make validate-file FILE=docs/design/00_Management/15_SYS002_Requirement_Breakdown.md` and capture result after governance sync
|
|
- [X] T025 [US3] Run `make validate-file FILE=docs/design/00_Management/01_Project_Progress.md` and `make validate-file FILE=docs/design/00_Management/03_Task_Checklist.md` and 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.
|
|
|
|
- [X] 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`
|
|
- [X] T027 [P] Run `make check-links` after all document changes and capture result
|
|
- [X] 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
|
|
|
|
- `T003` and `T004` can run in parallel after source confirmation
|
|
- `T006` and `T007` can run in parallel during foundational alignment
|
|
- In `US1`, `T010` and `T011` can run in parallel after `T009`
|
|
- In `US2`, `T015` and `T017` can run in parallel after `T014` and `T016`
|
|
- `T026` and `T027` can run in parallel during final closure
|
|
|
|
## Parallel Execution Examples
|
|
|
|
### User Story 1
|
|
|
|
```text
|
|
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
|
|
|
|
```text
|
|
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
|
|
|
|
1. 完成 `US1`,锁定统计业务范围和排除项
|
|
2. 完成 `US2`,锁定 `IF-REV-010` 与数据库承接口径
|
|
3. 完成 `US3`,锁定治理台账和实现状态表述
|
|
4. 最后统一执行全局一致性检查和链接校验
|
|
|
|
### Notes
|
|
|
|
- 每个 story 都可以独立评审,不要求一次性改完全部文档
|
|
- 所有任务都必须回写既有正式文档,不能新建平行正式稿
|
|
- Archive 只作为核对来源,不直接替代主文档
|
|
- 验证和台账同步不是可选项
|