2.5 KiB
2.5 KiB
BAT-016 Planning: Review decision persistence and reconciliation workbench
Planning Status
- Status: completed
- Profile: standard
- Design Gate: yes
- Design Gate Rationale: REQ-020 changes persistence schema, application service contracts, MCP tools, Streamlit UI flow, and operating hub aggregation. A design document is required before implementation.
Objective
Turn REQ-020 into a delivery plan for persisted review decisions and reconciliation sessions without changing existing public contracts destructively.
Work Slices
- Persistence foundation
- Add review decision and reconciliation session schema via additive/idempotent migration.
- Add service helpers with validation DB coverage.
- Application integration
- Connect cross-transfer review queue, reconciliation report, and uncategorized workbench to persisted decision/session state.
- Preserve existing response fields with additive extensions only.
- Streamlit workbench
- Add minimal operator actions for record/update/hold/recheck/release.
- Reflect persisted state in dashboard/workbench counts.
- Network MCP surface
- Add safe read/mutation tools for review decisions and reconciliation sessions.
- Exclude destructive delete/reset tools.
- Baseline and verification
- Update data model, project structure, runtime flows.
- Add pytest, MCP surface smoke, Streamlit/dashboard and DB safety evidence.
Acceptance Source
- REQ-020 Acceptance Criteria 1-10.
Dependencies
- dcy-013/BAT-015 network MCP endpoint remains the deployment substrate; BAT-016 does not redesign transport.
- Existing SQLite migration path must remain additive/idempotent.
- Existing dashboard and MCP consumers must keep their current response fields.
Milestones
- Schema + service implementation.
- Adapter/UI integration.
- Targeted tests and full local regression.
- StagePilot artifact update and PR/CI validation.
Risks
- Source-of-truth ambiguity between current transaction/account state and persisted decision state.
- Session granularity mismatch across account-level reconciliation and item-level review decisions.
- Sensitive memo/payload over-storage.
- MCP/Streamlit contract drift.
Handoff Readiness
- Ready for design drafting: completed.
- Ready for implementation: completed after design decisions below.
- Lead authority needed before delivery: no additional user decision is currently open; scope is approved in dcy-012 and REQ-020.
- Kanban status: deliberately not used for this recovery path per explicit user instruction.