Jump to content

MindAttic.Export/SPEC

From MindAttic Docs

MindAttic.Export — Product specification

The complete product, written down before it is built (owner, 2026-11-30, MAT-T360). Every epic, feature and story the finished product will have is listed here, built or not. The ticket tree mirrors this file one to one: every ID below is a ticket. Nothing gets built unless it is here, and anything taken out of here is closed wont-do in the tree. docs/RELEASE.md says which part of this the current milestone delivers.

1. Product definition

In docs/ECOSYSTEM.md MindAttic.Export owns the documents concern: every user-facing file (books, manuscripts, reports) is written through it.

MindAttic.Export is the one place a MindAttic app turns data into a user-facing file: Prose books and academic documents to .docx, .epub, .pdf, .txt and .md, reports, and any other artifact through one atomic writer, plus the mindattic-export CLI. The finished product renders every document construct its consumers write (figures with their captions, and nested lists as real nested lists) and ships as MindAttic.Export 8.0.0.

2. Scope boundary

2.1 In the product

  • The library (net9.0, net10.0), the CLI deployed to R:\MindAttic\Apps\MindAttic.Export, and the package on C:\LocalNuGet.

2.2 Never in the product

  • An editor. Authoring lives in Prose and the apps.
  • Fetching http(s): images. Apps plug their own store in through IImageResolver.
  • Silent book changes. Any change to Prose book output needs the author's OK and an updated legacy oracle.
  • MindAttic.Log in the CLI. A one-shot command line tool reports to its console.
  • Moving the eight apps on 3.0.0 forward. Each consumer's own repo owns its upgrade.
  • Open-ended bughunts, cleanups and repo sweeps.

3. Users and roles

  • The author presses Prose books that must come out exactly as before.
  • A writer exports academic documents (the SET and Elenchus dissertations, reports).
  • An app writes artifacts safely.

4. Requirements

Status is built (closed ticket, with evidence) or MS-n: the milestone in §7 that delivers it.

E1. Export library and CLI — M.EXPT-T60 — built

F1.1 Book and document paths — M.EXPT-T61 — built

  • S1.1.1 Prose books unchanged — M.EXPT-T62 — built. As the author, books render byte-identical to the pre-migration renderer (6"×9" KDP, Garamond). Evidence: MindAttic.Export.Tests/Legacy*.
  • S1.1.2 Academic document path — M.EXPT-T63 — built. As a writer, documents render on US Letter with contents, headings, tables, lists, quotes, references and LaTeX math.
  • S1.1.3 Figures with APA captions — M.EXPT-T32 — built. As a writer, ![alt](path) becomes a figure in every format. Evidence: f78cfec.
  • S1.1.4 Nested list content kept — M.EXPT-T11 — built. As a writer, sub-items are never dropped (folded into their parent item).

F1.2 Bundles and artifacts — M.EXPT-T64 — built

  • S1.2.1 Versioned bundles archive — M.EXPT-T65 — built. As an app, ExportBundleAsync writes <Name> V<N>.{formats} and archives the previous version.
  • S1.2.2 Caller-chosen archive folder — M.EXPT-T37 — built. Evidence: fad02f7.
  • S1.2.3 Atomic artifact writes — M.EXPT-T66 — built. As an app, ArtifactWriter sanitises names, writes atomically, UTF-8 without BOM, and makes me choose the existing-file policy.
  • S1.2.4 Reports — M.EXPT-T67 — built. As an app, ReportExporter renders a report to every format.

F1.3 CLI and package — M.EXPT-T68 — built

  • S1.3.1 mindattic-export CLI — M.EXPT-T69 — built. As a writer, mindattic-export --config export.json runs the library's DI graph. Evidence: 5230c62.
  • S1.3.2 6.0.0 on the local feed — M.EXPT-T70 — built. Evidence: C:\LocalNuGet\MindAttic.Export.6.0.0.nupkg.

E2. Figures keep their captions — M.EXPT-T49 — MS-42

F2.1 Caption keeps with figure — M.EXPT-T50 — MS-42

  • M.EXPT-T34 — MS-42. As a writer, the bold "Figure N" label and italic title stay on the same page as their image in PDF and DOCX. Acceptance: given SET V32, when exported, then Figures 1, 6, 8, 11–13, 15, 16, 21 and 22 each sit on one page with their caption.

F2.2 Book glossary blank leaf — M.EXPT-T51 — MS-42

  • M.EXPT-T25 — MS-42. As the author, a book ending on a tenet page with a glossary prints no blank leaf before the Glossary; the legacy oracle is updated with my OK.

E3. 7.0 proven on a dissertation — M.EXPT-T52 — MS-42

F3.1 Package 7.0.0 — M.EXPT-T53 — MS-42

  • M.EXPT-T54 — MS-42. As Prose and the dissertations, 7.0.0 (library and CLI) is on C:\LocalNuGet and docs/overview.md notes the two layout changes.

F3.2 Dissertation verification — M.EXPT-T55 — MS-42

  • M.EXPT-T56 — MS-42. As the owner, the SET dissertation re-exported with 7.0.0 keeps every figure with its caption in PDF and DOCX.

E4. Real nested lists — M.EXPT-T71 — MS-160

F4.1 Real nested lists — M.EXPT-T72 — MS-160

  • S4.1.1 Nested lists render nested — M.EXPT-T73 — MS-160. As a writer, a list with sub-items renders indented and numbered or bulleted per level in DOCX, PDF, EPUB, TXT and MD. Acceptance: given a three-level list, when exported, then each level is its own indented list; given a book without nested lists, then the legacy oracle still matches byte for byte.

F4.2 Export 8.0 polish and release — M.EXPT-T74 — MS-160

  • S4.2.1 Export 8.0.0 released — M.EXPT-T75 — MS-160. As Prose and the dissertations, 8.0.0 is on C:\LocalNuGet, docs/overview.md describes nested lists, and the owner signs off on a re-exported document.

5. Non-functional requirements

  • Legacy equivalence for books (M.EXPT-LAW-1); archive, never delete (LAW-2); whole-number versions (LAW-3); OpenXml, QuestPDF and Markdig pinned to Prose's versions (LAW-4); CLI and library are one graph (LAW-5).

6. Interfaces and dependencies

Platform concerns it uses (docs/ECOSYSTEM.md): none; it depends on no other MindAttic repo.

  • Consumers: Prose, KdpPublish, the dissertations (through the CLI) and about eight apps on 3.0.0 for artifacts.

7. Release sequence

  1. MS-42 — MindAttic.Export 7.0: figure-complete documents (active): E2, E3.
  2. MS-160 — MindAttic.Export 8.0: nested lists (planned): E4, ending with polish and release. Reaching it finishes the product.

8. Change log

Date Change to scope Ticket
2026-11-30 Specification written from the BIBLE, charter, overview, code and ticket history; real nested lists (deferred by the 2026-11-27 charter) became MS-160 MAT-T397
2026-11-30 MAT-T462 single-source pass: 3 renamed, 0 buckets, 1 requires added (MS-160 after MS-42), 0 platform re-points MAT-T465
From MindAttic.Export/docs/SPEC.md via MindAttic.Docs; synced automatically, so edit the repo, not this page.