Convert CSV banking statements to hledger journals
csv2journal docs PLAN_M1.md
2.9 kB · 70 lines
Markdown
at main

csv2journal Milestone 1 Build Plan #

The route. DESIGN_M1.md is the destination and is authoritative for which module owns which requirement; PROCESS.md governs how the work is done.

Each task had a file in docs/tasks/ carrying its own status, and every one of the 181 requirement IDs appeared in exactly one task. Those files were removed once the milestone closed: everything in them had been absorbed into the tests, the code and DESIGN_M1.md, and what remained read like a live specification while being a finished plan. The table below is kept as the record of the order the work was done in. jj history has the files if they are ever wanted.

Tasks are sized to be reviewable in one sitting (PROCESS.md §1). No task closes a whole subsystem.

Order #

# Task Closes Depends
T01 packaging skeleton 6 —
T02 diagnostics 4 T01
T03 decimal 4 T02
T04 yaml event layer 8 T02
T05 yaml schema decode 5 T04
T06 manifest and profile 5 T05
T07 rules model 5 T05
T08 expression lexer and parser 7 T03, T07
T09 regex binding 2 T08
T10 expression evaluation 4 T09
T11 CSV lexical layer 9 T02
T12 CSV field mapping 8 T11
T13 row conversion 4 T03, T12
T14 template syntax and validation 7 T13
T15 template rendering 9 T14
T16 journal model and emission 11 T15
T17 journal parsing and comparison 8 T16
T18 discovery and snapshots 13 T06
T19 engine 14 T10, T17, T18
T20 finalization 5 T16, T18
T21 command-line interface 10 T19, T20
T22 server lifecycle 5 T21
T23 read-only state view 6 T22
T24 rule editing and save 9 T23
T25 preview and interactive finalization 5 T24
T26 compatibility and determinism 8 T25

Phases #

  1. Foundation — T01–T03. Nothing else builds without these.
  2. Configuration — T04–T07.
  3. Matching — T08–T10.
  4. CSV and rows — T11–T13.
  5. Templates — T14, T15.
  6. Journal — T16, T17.
  7. Project — T18–T20.
  8. Command line — T21.
  9. Web interface — T22–T25.
  10. Cross-cutting — T26.

T11 depends only on T02, so phase 4 can run in parallel with phases 2–3. T18 depends only on T06 and can start as soon as the manifest loads.

Blocked items #

None. The two that existed are resolved: DESIGN_M1.md §11.1 (whitespace-only posting comments) and R5 (hledger 1.52.3 availability, with its URL and hash recorded in §10.3).

Sizing #

Largest tasks are T19 (engine, 14) and T18 (discovery, 13). Both are single coherent modules whose requirement IDs are individually small; neither spans a subsystem. The web interface is deliberately four tasks rather than one, so each is reviewable and carries its own status.