ea 0.6.150 → 0.6.151

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (425) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.md +33 -0
  3. data/README.adoc +13 -5
  4. data/lib/ea/cli/command/base.rb +3 -3
  5. data/lib/ea/qea/database.rb +7 -0
  6. data/lib/ea/qea/factory/association_builder.rb +1 -1
  7. data/lib/ea/qea/factory/association_transformer.rb +1 -1
  8. data/lib/ea/qea/factory/attribute_tag_transformer.rb +2 -2
  9. data/lib/ea/qea/factory/attribute_transformer.rb +4 -9
  10. data/lib/ea/qea/factory/base_transformer.rb +22 -14
  11. data/lib/ea/qea/factory/class_transformer.rb +1 -1
  12. data/lib/ea/qea/factory/data_type_transformer.rb +1 -1
  13. data/lib/ea/qea/factory/diagram_transformer.rb +1 -1
  14. data/lib/ea/qea/factory/enum_transformer.rb +2 -2
  15. data/lib/ea/qea/factory/generalization_transformer.rb +1 -1
  16. data/lib/ea/qea/factory/instance_transformer.rb +1 -1
  17. data/lib/ea/qea/factory/object_property_transformer.rb +2 -2
  18. data/lib/ea/qea/factory/operation_transformer.rb +1 -1
  19. data/lib/ea/qea/infrastructure/database_connection.rb +71 -1
  20. data/lib/ea/qea/infrastructure/table_reader.rb +33 -14
  21. data/lib/ea/qea/services/database_loader.rb +22 -6
  22. data/lib/ea/query/builder.rb +1 -1
  23. data/lib/ea/rtf.rb +98 -0
  24. data/lib/ea/sources/qea/annotation_builder.rb +1 -1
  25. data/lib/ea/svg/ea_emitter/text_renderer.rb +28 -10
  26. data/lib/ea/version.rb +1 -1
  27. data/lib/ea/xmi/liquid_drops/klass_drop.rb +5 -0
  28. data/lib/ea/xmi/lookup_service.rb +40 -3
  29. data/lib/ea/xmi/parser.rb +3 -2
  30. data/lib/ea.rb +1 -0
  31. metadata +5 -396
  32. data/CLAUDE.md +0 -153
  33. data/Rakefile +0 -23
  34. data/TODO.complete/01-t-xref-parsing.md +0 -91
  35. data/TODO.complete/02-per-label-geometry.md +0 -50
  36. data/TODO.complete/03-object-properties-constraints.md +0 -57
  37. data/TODO.complete/04-operation-params.md +0 -37
  38. data/TODO.complete/05-pdata-flag-matrix.md +0 -52
  39. data/TODO.complete/06-emf-image-rendering.md +0 -34
  40. data/TODO.complete/07-auxiliary-tables.md +0 -47
  41. data/TODO.complete/10-mdg-stereotype-registry.md +0 -40
  42. data/TODO.complete/11-gml-xsd-generation.md +0 -42
  43. data/TODO.complete/13-shapescript-interpreter.md +0 -17
  44. data/TODO.complete/20-cli-diff.md +0 -46
  45. data/TODO.complete/21-cli-render.md +0 -26
  46. data/TODO.complete/22-cli-export.md +0 -29
  47. data/TODO.complete/23-cli-mdg.md +0 -23
  48. data/TODO.complete/30-headerlines-ocp-refactor.md +0 -72
  49. data/TODO.complete/31-public-send-cleanup.md +0 -61
  50. data/TODO.complete/32-spec-coverage.md +0 -33
  51. data/TODO.complete/33-blocked-parity-gaps.md +0 -41
  52. data/TODO.complete/36-stereotype-icon-wiring.md +0 -32
  53. data/TODO.complete/37-cli-lint.md +0 -32
  54. data/TODO.complete/38-cli-query.md +0 -26
  55. data/TODO.complete/39-cli-info.md +0 -23
  56. data/TODO.complete/40-ocl-evaluator.md +0 -31
  57. data/TODO.complete/41-round-trip-spec.md +0 -18
  58. data/TODO.complete/42-html-diff-report.md +0 -18
  59. data/TODO.complete/43-json-schema-export.md +0 -20
  60. data/TODO.complete/44-remaining-qea-tables.md +0 -40
  61. data/TODO.complete/45-shapescript-extensions.md +0 -25
  62. data/TODO.complete/46-xsd-consolidation.md +0 -20
  63. data/TODO.complete/47-headerlines-legacy-removal.md +0 -20
  64. data/TODO.complete/51-remove-respond-to.md +0 -52
  65. data/TODO.complete/52-xsd-decouple-fixtures.md +0 -23
  66. data/TODO.complete/53-xmi-public-send-cleanup.md +0 -26
  67. data/TODO.complete/54-wire-stereotype-icon-renderer.md +0 -20
  68. data/TODO.complete/55-wire-shapescript.md +0 -20
  69. data/TODO.complete/56-wire-emf-renderer.md +0 -27
  70. data/TODO.complete/57-wire-ocl-evaluator.md +0 -23
  71. data/TODO.complete/58-diff-modifications.md +0 -21
  72. data/TODO.complete/59-delete-toy-xmi-export.md +0 -30
  73. data/TODO.complete/60-curate-json-export.md +0 -20
  74. data/TODO.complete/61-plantuml-relationships.md +0 -22
  75. data/TODO.complete/62-changelog.md +0 -17
  76. data/TODO.complete/63-dependabot-fix.md +0 -18
  77. data/TODO.complete/64-qeatoxmi-connectors.md +0 -15
  78. data/TODO.complete/65-qeatoxmi-diagrams.md +0 -15
  79. data/TODO.complete/66-qeatoxmi-style-tags-docs.md +0 -35
  80. data/TODO.complete/67-ocl-collection-ops.md +0 -20
  81. data/TODO.complete/68-ocl-comparison-ops.md +0 -24
  82. data/TODO.complete/69-spec-new-models.md +0 -20
  83. data/TODO.complete/70-specs-for-all-models.md +0 -21
  84. data/TODO.complete/71-autoload-audit.md +0 -26
  85. data/TODO.complete/72-extension-serializer-ocp-naming.md +0 -26
  86. data/TODO.complete/73-ocl-validator-latent-bugs.md +0 -50
  87. data/TODO.complete/74-visibility-symbol-dry.md +0 -39
  88. data/TODO.complete/75-database-table-collection-registry.md +0 -32
  89. data/TODO.complete/76-stale-todo-cleanup.md +0 -52
  90. data/TODO.complete/77-eliminate-banned-patterns-from-specs.md +0 -55
  91. data/TODO.complete/78-mdg-stereotype-emission.md +0 -66
  92. data/TODO.complete/79-equivalence-fixes.md +0 -57
  93. data/TODO.complete/80-performance-extension-serializer-indexes.md +0 -43
  94. data/TODO.complete/81-dry-scope-guid-extraction.md +0 -33
  95. data/TODO.complete/82-public-send-audit-conclusion.md +0 -25
  96. data/TODO.complete/83-dry-shared-xml-escape-guid-format.md +0 -52
  97. data/TODO.complete/84-ocp-markers-shape-registry.md +0 -54
  98. data/TODO.complete/85-frozen-literal-rubocop-normalize-type-spec.md +0 -38
  99. data/TODO.complete/86-frozen-sweep-lint-query-specs.md +0 -55
  100. data/TODO.complete/STATUS.md +0 -106
  101. data/TODO.diagrams/01-svg-measurement-harness.md +0 -31
  102. data/TODO.diagrams/01-xmi-extension-elements-parsing.md +0 -67
  103. data/TODO.diagrams/02-diagram-element-rich-model.md +0 -61
  104. data/TODO.diagrams/02-polygon-over-rendering.md +0 -29
  105. data/TODO.diagrams/03-ea-style-svg-emitter.md +0 -70
  106. data/TODO.diagrams/03-text-over-rendering.md +0 -30
  107. data/TODO.diagrams/04-connector-routing-from-soid-eoid.md +0 -55
  108. data/TODO.diagrams/04-rect-under-rendering.md +0 -33
  109. data/TODO.diagrams/05-canvas-dimension-parity.md +0 -51
  110. data/TODO.diagrams/05-marker-rendering-per-relationship-type.md +0 -49
  111. data/TODO.diagrams/06-connector-labels.md +0 -49
  112. data/TODO.diagrams/06-group-layering-parity.md +0 -39
  113. data/TODO.diagrams/07-canvas-size-and-viewbox.md +0 -39
  114. data/TODO.diagrams/07-text-content-fidelity.md +0 -65
  115. data/TODO.diagrams/08-qea-direct-pipeline.md +0 -46
  116. data/TODO.diagrams/08-visual-regression-harness.md +0 -34
  117. data/TODO.diagrams/09-cli-render-all-diagrams.md +0 -25
  118. data/TODO.diagrams/10-stereotype-color-config.md +0 -29
  119. data/TODO.diagrams/11-elkrb-auto-layout-integration.md +0 -53
  120. data/TODO.diagrams/12-connector-labels.md +0 -40
  121. data/TODO.diagrams/12-per-entity-svg-layer-ordering.md +0 -24
  122. data/TODO.diagrams/13-marker-polygon-vs-path-dispatch.md +0 -20
  123. data/TODO.diagrams/13-per-text-type-font-sizes.md +0 -33
  124. data/TODO.diagrams/14-center-header-text.md +0 -33
  125. data/TODO.diagrams/14-filter-diagram-frame-elements.md +0 -18
  126. data/TODO.diagrams/15-deep-dead-code-audit.md +0 -47
  127. data/TODO.diagrams/15-per-element-font-from-style.md +0 -24
  128. data/TODO.diagrams/16-canvas-marker-extent.md +0 -30
  129. data/TODO.diagrams/16-document-remaining-parity-gaps.md +0 -91
  130. data/TODO.diagrams/17-italic-abstract-classes.md +0 -28
  131. data/TODO.diagrams/17-remaining-parity-gaps.md +0 -90
  132. data/TODO.diagrams/18-canvas-from-image-bounds.md +0 -20
  133. data/TODO.diagrams/18-property-lookup-index.md +0 -42
  134. data/TODO.diagrams/19-connector-sx-sy-routing.md +0 -27
  135. data/TODO.diagrams/19-replace-respond-to-with-is-a.md +0 -31
  136. data/TODO.diagrams/20-split-labels-emitter.md +0 -56
  137. data/TODO.diagrams/20-visibility-glyph-font-encoding.md +0 -27
  138. data/TODO.diagrams/21-aggregation-navigability-arrow.md +0 -21
  139. data/TODO.diagrams/21-auto-generated-legend-block.md +0 -65
  140. data/TODO.diagrams/22-ghost-element-discriminator.md +0 -57
  141. data/TODO.diagrams/22-style-based-path-grouping.md +0 -28
  142. data/TODO.diagrams/23-marker-polygon-deduplication.md +0 -47
  143. data/TODO.diagrams/23-multiplicity-label-positioning.md +0 -29
  144. data/TODO.diagrams/24-marker-anchor-structural.md +0 -35
  145. data/TODO.diagrams/24-track-marker-anchors-structurally.md +0 -66
  146. data/TODO.diagrams/24-truncate-properties-to-fit-box.md +0 -24
  147. data/TODO.diagrams/26-phantom-general-parent-rendering.md +0 -59
  148. data/TODO.diagrams/27-path-grouping-mode-detection.md +0 -43
  149. data/TODO.diagrams/28-architecture-cleanup-batch.md +0 -47
  150. data/TODO.diagrams/30-decompose-elements-groups-for.md +0 -52
  151. data/TODO.diagrams/32-examples-coverage-batch.md +0 -78
  152. data/TODO.diagrams/36-instance-specification-model.md +0 -42
  153. data/TODO.diagrams/37-element-icon-decorations.md +0 -41
  154. data/TODO.diagrams/38-html-note-and-receptions.md +0 -32
  155. data/TODO.diagrams/39-property-stereotype-discriminator.md +0 -40
  156. data/TODO.diagrams/40-standalone-1-discriminator.md +0 -38
  157. data/TODO.diagrams/41-xmi-to-svg-pipeline.md +0 -113
  158. data/TODO.diagrams/42-close-all-parity-deltas.md +0 -69
  159. data/TODO.diagrams/43-marker-deduplication-strategy.md +0 -54
  160. data/TODO.diagrams/44-element-icon-decorations.md +0 -34
  161. data/TODO.diagrams/45-phantom-parent-class-boxes.md +0 -40
  162. data/TODO.diagrams/46-user-drawn-legend-swatches.md +0 -44
  163. data/TODO.diagrams/47-attribute-line-fidelity.md +0 -72
  164. data/TODO.diagrams/48-spec-coverage-critical-emitter-components.md +0 -45
  165. data/TODO.diagrams/49-spec-coverage-orchestrators.md +0 -25
  166. data/TODO.diagrams/50-examples-parity.md +0 -85
  167. data/TODO.diagrams/51-property-oy-gap-and-remaining-gaps.md +0 -48
  168. data/TODO.diagrams/52-marker-registration-architecture.md +0 -89
  169. data/TODO.diagrams/53-remaining-example-gaps.md +0 -86
  170. data/TODO.diagrams/54-display-name-nested-classes.md +0 -40
  171. data/TODO.diagrams/55-visibility-icon-discriminator.md +0 -58
  172. data/TODO.diagrams/56-package-contents-rendering.md +0 -148
  173. data/TODO.diagrams/57-instance-specification-model.md +0 -100
  174. data/TODO.diagrams/58-domain-model-note-text.md +0 -67
  175. data/TODO.diagrams/59-classes-arrow-discriminator.md +0 -57
  176. data/TODO.diagrams/60-testschema-association-marker.md +0 -40
  177. data/TODO.diagrams/61-legend-block-rendering.md +0 -55
  178. data/TODO.diagrams/61-plateau-parity-gaps.md +0 -59
  179. data/TODO.diagrams/62-ghost-element-rendering.md +0 -56
  180. data/TODO.diagrams/63-qualified-name-wrap.md +0 -36
  181. data/TODO.diagrams/64-property-stereotype-labels.md +0 -22
  182. data/TODO.diagrams/65-path-coordinate-frame.md +0 -62
  183. data/TODO.diagrams/67-path-coordinate-frame.md +0 -62
  184. data/TODO.diagrams/68-inherited-attributes.md +0 -65
  185. data/TODO.diagrams/69-package-anchor-conditional.md +0 -29
  186. data/TODO.diagrams/70-mdg-technology-support.md +0 -68
  187. data/TODO.diagrams/71-off-canvas-parent-ghost.md +0 -45
  188. data/TODO.diagrams/72-basic-attr-divider-paths.md +0 -39
  189. data/TODO.diagrams/73-plateau-polygon-gap.md +0 -69
  190. data/TODO.diagrams/74-plateau-rect-gap.md +0 -22
  191. data/TODO.diagrams/75-plateau-text-gap.md +0 -39
  192. data/TODO.diagrams/76-basic-poly-path-gaps.md +0 -41
  193. data/TODO.diagrams/77-basic-text-overrender.md +0 -40
  194. data/TODO.diagrams/78-headerlines-ocp-refactor.md +0 -65
  195. data/TODO.diagrams/79-architecture-backlog.md +0 -65
  196. data/TODO.diagrams/80-basic-triangle-polygons.md +0 -51
  197. data/TODO.diagrams/81-plateau-path-overrender.md +0 -53
  198. data/TODO.diagrams/82-appearance-canvas-offset.md +0 -54
  199. data/TODO.diagrams/83-3d-diagram-subtitle.md +0 -58
  200. data/TODO.diagrams/84-canvas-offset-mismatches.md +0 -61
  201. data/TODO.diagrams/85-phantom-property-overrender.md +0 -95
  202. data/TODO.diagrams/86-foreign-package-rule.md +0 -62
  203. data/TODO.diagrams/87-internal-tech-encryption.md +0 -80
  204. data/TODO.diagrams/EXAMPLES_STATUS.md +0 -88
  205. data/TODO.diagrams/README.md +0 -69
  206. data/TODO.diagrams/STATUS.md +0 -73
  207. data/TODO.fixup/01-default-grouped-paths.md +0 -34
  208. data/TODO.fixup/02-marker-consolidation-per-connector.md +0 -20
  209. data/TODO.fixup/03-diagram-font-inference.md +0 -28
  210. data/TODO.fixup/04-extract-bounds-calculator.md +0 -25
  211. data/TODO.fixup/05-marker-registry-ocp.md +0 -32
  212. data/TODO.fixup/06-connector-path-bend-routing.md +0 -28
  213. data/TODO.fixup/07-edge-attachment-formula.md +0 -22
  214. data/TODO.fixup/08-visual-diff-harness.md +0 -28
  215. data/TODO.fixup/09-extract-element-compartments.md +0 -34
  216. data/TODO.fixup/10-canvas-width-overshoot-fix.md +0 -20
  217. data/TODO.fixup/11-layer-sequencer-extraction.md +0 -18
  218. data/TODO.fixup/12-path-style-harmony.md +0 -23
  219. data/TODO.fixup/13-datatype-stereotype-fallback.md +0 -28
  220. data/TODO.fixup/14-ea-exe-reverse-engineering-notes.md +0 -56
  221. data/TODO.fixup/15-enumeration-literal-rendering.md +0 -30
  222. data/TODO.fixup/16-operation-compartment-rendering.md +0 -42
  223. data/TODO.fixup/17-path-count-calibration.md +0 -27
  224. data/TODO.fixup/18-polygon-count-calibration.md +0 -32
  225. data/TODO.fixup/19-rect-count-undershoot-investigation.md +0 -40
  226. data/TODO.fixup/20-stereotype-color-from-classifier.md +0 -18
  227. data/TODO.fixup/21-visibility-filter-for-properties.md +0 -24
  228. data/TODO.fixup/22-multiplicity-display-rule-calibration.md +0 -25
  229. data/TODO.fixup/23-diagram-frame-title-element.md +0 -31
  230. data/TODO.fixup/24-note-element-rendering.md +0 -23
  231. data/TODO.fixup/25-ea-exe-disassembly-findings.md +0 -177
  232. data/TODO.fixup/26-svg-renderer-architecture.md +0 -78
  233. data/TODO.fixup/27-svg-element-emitters-disassembly.md +0 -135
  234. data/TODO.fixup/28-geometry-parser-identification.md +0 -57
  235. data/TODO.fixup/29-qea-svg-xmi-triple-comparison.md +0 -185
  236. data/TODO.fixup/30-theme-system-stub.md +0 -46
  237. data/TODO.fixup/31-theme-value-object-registry.md +0 -17
  238. data/TODO.fixup/32-styleex-on-diagram-model.md +0 -22
  239. data/TODO.fixup/33-text-encoding-decimals-rotation.md +0 -29
  240. data/TODO.fixup/34-per-type-fill-via-theme.md +0 -18
  241. data/TODO.fixup/35-stroke-width-per-theme.md +0 -7
  242. data/TODO.fixup/36-qea-rect-coord-normalization.md +0 -24
  243. data/TODO.fixup/37-package-shape-rendering.md +0 -22
  244. data/TODO.fixup/38-note-element-rendering.md +0 -15
  245. data/TODO.fixup/39-styleex-flag-honoring.md +0 -25
  246. data/TODO.fixup/40-connector-dashed-lines.md +0 -15
  247. data/TODO.fixup/41-diagram-frame-showborder-detection.md +0 -23
  248. data/TODO.fixup/42-textrenderer-centralization.md +0 -10
  249. data/TODO.fixup/43-colorresolver-unification.md +0 -24
  250. data/TODO.fixup/44-theme-aware-textrenderer.md +0 -17
  251. data/TODO.fixup/45-theme-aware-fontresolver.md +0 -22
  252. data/TODO.fixup/46-style-parameterized-by-theme.md +0 -21
  253. data/TODO.fixup/47-canvas-frame-inset.md +0 -19
  254. data/TODO.fixup/48-background-rect-format.md +0 -15
  255. data/TODO.fixup/49-all-samples-integration-test.md +0 -17
  256. data/TODO.fixup/50-svg-emitter-architecture-docs.md +0 -33
  257. data/TODO.fixup/51-promote-theme-to-ea-namespace.md +0 -28
  258. data/TODO.fixup/52-theme-definition-integrated-fills.md +0 -26
  259. data/TODO.fixup/53-theme-registry-yaml-loading.md +0 -50
  260. data/TODO.fixup/54-diagram-theme-api.md +0 -50
  261. data/TODO.fixup/55-update-eaemitter-to-ea-theme.md +0 -23
  262. data/TODO.fixup/56-theme-yaml-files.md +0 -65
  263. data/TODO.fixup/57-theme-specs-and-integration.md +0 -27
  264. data/TODO.fixup/58-ea-entry-point-theme-autoload.md +0 -20
  265. data/TODO.fixup/59-thread-theme-through-all-renderers.md +0 -29
  266. data/TODO.fixup/60-cli-theme-option.md +0 -22
  267. data/TODO.fixup/61-theme-validation.md +0 -28
  268. data/TODO.fixup/62-theme-builder-dsl.md +0 -31
  269. data/TODO.fixup/63-theme-integration-rendering-spec.md +0 -24
  270. data/TODO.fixup/64-theme-writeback-styleex.md +0 -21
  271. data/TODO.fixup/65-remove-dead-eaemitter-theme-files.md +0 -30
  272. data/TODO.fixup/66-styleex-writeback.md +0 -22
  273. data/TODO.fixup/67-delete-dead-code.md +0 -28
  274. data/TODO.fixup/68-figure-parity-status.md +0 -82
  275. data/TODO.fixup/69-package-polygon-rendering.md +0 -54
  276. data/TODO.fixup/70-tagged-values-compartment.md +0 -39
  277. data/TODO.fixup/71-auto-detect-theme-from-xmi.md +0 -37
  278. data/TODO.fixup/72-sample-exports-as-regression-specs.md +0 -37
  279. data/TODO.fixup/73-delete-dead-transformations.md +0 -14
  280. data/TODO.fixup/74-delete-dead-diagram-renderers.md +0 -18
  281. data/TODO.fixup/75-visibility-legend-icons.md +0 -23
  282. data/TODO.fixup/76-plateau-text-undershoot.md +0 -27
  283. data/TODO.fixup/77-canvas-frame-margins.md +0 -28
  284. data/TODO.fixup/78-note-element-rendering.md +0 -30
  285. data/TODO.fixup/79-operation-compartment-rendering.md +0 -27
  286. data/TODO.fixup/80-tagged-value-stereotype-visibility.md +0 -37
  287. data/TODO.fixup/81-figure-parity-current-state.md +0 -63
  288. data/TODO.next/00-publish-blocking-bugs.md +0 -74
  289. data/TODO.next/01-standalone-ea-gem-identity.md +0 -76
  290. data/TODO.next/02-optional-lutaml-uml-dependency.md +0 -47
  291. data/TODO.next/03-slim-lutaml-uml.md +0 -79
  292. data/TODO.next/04-loader-registry-for-uml-repository.md +0 -49
  293. data/TODO.next/05-extract-shared-transformer-methods.md +0 -14
  294. data/TODO.next/06-deduplicate-stereotype-loading.md +0 -17
  295. data/TODO.next/07-transformer-registry-in-factory.md +0 -20
  296. data/TODO.next/08-connector-type-registry.md +0 -27
  297. data/TODO.next/09-element-renderer-registry.md +0 -29
  298. data/TODO.next/10-connector-renderer-lsp.md +0 -18
  299. data/TODO.next/11-consolidate-style-knowledge.md +0 -33
  300. data/TODO.next/12-data-driven-from-db-row.md +0 -24
  301. data/TODO.next/13-extract-duplicated-methods.md +0 -17
  302. data/TODO.next/14-remove-dead-code.md +0 -10
  303. data/TODO.next/15-narrow-exception-handling.md +0 -39
  304. data/TODO.next/16-repository-indexes.md +0 -28
  305. data/TODO.next/17-fix-spec-quality-and-coverage.md +0 -32
  306. data/TODO.next/18-xmi-tool-specific-parser-architecture.md +0 -172
  307. data/TODO.next/19-fix-ea-gemspec-dependency-declarations.md +0 -56
  308. data/TODO.next/20-ci-requires-unreleased-lutaml-uml.md +0 -63
  309. data/TODO.next/21-qeatoxmi-via-xmi-gem.md +0 -340
  310. data/TODO.next/22-strip-respond-to-from-qeatoxmi-specs.md +0 -32
  311. data/TODO.next/23-cleanup-idallocator.md +0 -41
  312. data/TODO.next/24-tighten-parity-specs.md +0 -42
  313. data/TODO.next/25-sparx-eaid-format-for-synthesized-ids.md +0 -62
  314. data/TODO.next/26-fix-uppervalue-lowervalue-count-gap.md +0 -51
  315. data/TODO.next/27-extract-cardinality-module.md +0 -68
  316. data/TODO.next/28-extract-xml-sanitizer.md +0 -51
  317. data/TODO.next/29-ocp-registry-for-classifier-builders.md +0 -58
  318. data/TODO.next/30-struct-return-for-association-end.md +0 -37
  319. data/TODO.next/31-idallocator-specs.md +0 -27
  320. data/TODO.next/32-phase2-gap-sentinel-specs.md +0 -53
  321. data/TODO.next/33-normalize-lower-cleanup.md +0 -30
  322. data/TODO.next/34-document-member-end-order-rt-prefix.md +0 -29
  323. data/TODO.next/35-walk-runstate-for-instance-slots.md +0 -76
  324. data/TODO.next/36-wire-interface-realization.md +0 -50
  325. data/TODO.next/37-visibility-returns-real-booleans.md +0 -36
  326. data/TODO.next/38-xmi-parser-feature-parity.md +0 -75
  327. data/TODO.next/39-ea-spa-cli-command.md +0 -53
  328. data/TODO.next/40-drop-lur-only-check-in-diagrams-extract.md +0 -56
  329. data/TODO.refactor/01-ea-model-domain-layer.md +0 -64
  330. data/TODO.refactor/02-ea-model-qea-source-adapter.md +0 -58
  331. data/TODO.refactor/03-ea-model-xmi-source-adapter.md +0 -33
  332. data/TODO.refactor/04-ea-model-annotations-tagged-values.md +0 -34
  333. data/TODO.refactor/05-ea-model-diagrams-coordinates.md +0 -37
  334. data/TODO.refactor/06-spa-projection-layer.md +0 -45
  335. data/TODO.refactor/07-spa-sharded-output-strategy.md +0 -28
  336. data/TODO.refactor/08-spa-build-time-search-index.md +0 -24
  337. data/TODO.refactor/09-spa-frontend-data-contract.md +0 -25
  338. data/TODO.refactor/10-spa-cli-command-rework.md +0 -34
  339. data/TODO.refactor/11-spa-perf-benchmark.md +0 -23
  340. data/TODO.refactor/12-lutaml-uml-static-site-deprecation.md +0 -28
  341. data/TODO.release/01-release-lutaml-uml-030.md +0 -30
  342. data/TODO.release/02-fix-lutaml-meta-gem-requires.md +0 -33
  343. data/TODO.release/03-release-lutaml-0110.md +0 -20
  344. data/TODO.release/04-update-ea-gemspec-pin.md +0 -23
  345. data/TODO.release/05-remove-ea-conditional-requires.md +0 -48
  346. data/TODO.release/06-release-ea-020.md +0 -20
  347. data/TODO.release/07-migrate-plateau-model.md +0 -35
  348. data/TODO.release/README.md +0 -15
  349. data/docs/ea_to_uml_type_mapping.md +0 -89
  350. data/docs/xmi_qea_conversion_capabilities.md +0 -99
  351. data/examples/exports/20251010_current_plateau_v5/UML_EA.DTD +0 -6856
  352. data/examples/exports/20251010_current_plateau_v5/model.xml +0 -96709
  353. data/examples/exports/ArcGISWorkspace_template/UML_EA.DTD +0 -6856
  354. data/examples/exports/ArcGISWorkspace_template/model.xml +0 -1427
  355. data/examples/exports/UmlModel_template/UML_EA.DTD +0 -6856
  356. data/examples/exports/UmlModel_template/model.xml +0 -23
  357. data/examples/exports/basic/UML_EA.DTD +0 -6856
  358. data/examples/exports/basic/model.xml +0 -8039
  359. data/examples/exports/simple/UML_EA.DTD +0 -6856
  360. data/examples/exports/simple/model.xml +0 -585
  361. data/examples/exports/simple_example/UML_EA.DTD +0 -6856
  362. data/examples/exports/simple_example/model.xml +0 -23
  363. data/examples/exports/test/UML_EA.DTD +0 -6856
  364. data/examples/exports/test/model.xml +0 -1638
  365. data/examples/lur/20251010_current_plateau_v5.1.lur +0 -0
  366. data/examples/lur/basic.lur +0 -0
  367. data/examples/lur/test-output.lur +0 -0
  368. data/examples/lur/test.lur +0 -0
  369. data/examples/lur_basic_usage.rb +0 -221
  370. data/examples/lur_cli_workflow.rb +0 -263
  371. data/examples/lur_statistics.rb +0 -326
  372. data/examples/qea/20251010_current_plateau_v5.1.qea +0 -0
  373. data/examples/qea/ArcGISWorkspace_template.qea +0 -0
  374. data/examples/qea/README_qea_parser.adoc +0 -230
  375. data/examples/qea/UmlModel_template.qea +0 -0
  376. data/examples/qea/basic.qea +0 -0
  377. data/examples/qea/simple.qea +0 -0
  378. data/examples/qea/simple_example.qea +0 -0
  379. data/examples/qea/test.qea +0 -0
  380. data/examples/qea_standalone_query.rb +0 -73
  381. data/examples/qea_to_repository.rb +0 -51
  382. data/examples/smoke_test_real_qea.rb +0 -81
  383. data/frontend/README.md +0 -51
  384. data/frontend/dist/app.iife.js +0 -24
  385. data/frontend/dist/style.css +0 -1
  386. data/frontend/index.html +0 -26
  387. data/frontend/package-lock.json +0 -2359
  388. data/frontend/package.json +0 -26
  389. data/frontend/src/App.vue +0 -63
  390. data/frontend/src/app.ts +0 -8
  391. data/frontend/src/components/AppHeader.vue +0 -154
  392. data/frontend/src/components/AppSidebar.vue +0 -119
  393. data/frontend/src/components/ClassDetails.vue +0 -230
  394. data/frontend/src/components/DiagramView.vue +0 -92
  395. data/frontend/src/components/PackageDetails.vue +0 -133
  396. data/frontend/src/components/PackageTreeNode.vue +0 -69
  397. data/frontend/src/components/SearchResults.vue +0 -61
  398. data/frontend/src/components/WelcomeView.vue +0 -87
  399. data/frontend/src/shims-vue.d.ts +0 -5
  400. data/frontend/src/stores/dataStore.ts +0 -173
  401. data/frontend/src/stores/uiStore.ts +0 -166
  402. data/frontend/src/styles/main.css +0 -1566
  403. data/frontend/src/types.ts +0 -218
  404. data/frontend/tests/e2e/__screenshots__/new-dark-mode.png +0 -0
  405. data/frontend/tests/e2e/__screenshots__/new-package-details.png +0 -0
  406. data/frontend/tests/e2e/__screenshots__/new-search-modal.png +0 -0
  407. data/frontend/tests/e2e/__screenshots__/new-sidebar-collapsed.png +0 -0
  408. data/frontend/tests/e2e/__screenshots__/new-welcome.png +0 -0
  409. data/frontend/tests/e2e/render.spec.ts +0 -188
  410. data/frontend/tsconfig.json +0 -20
  411. data/frontend/vite.config.ts +0 -26
  412. data/frontend/vitest.config.ts +0 -8
  413. data/gemfiles/published.gemfile +0 -24
  414. data/memory/deviations.md +0 -3
  415. data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram-1-themes-list.png +0 -0
  416. data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram-1-themes.png +0 -0
  417. data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram-2-gradients.png +0 -0
  418. data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram-3-colors.png +0 -0
  419. data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram-4-appearance-fonts.png +0 -0
  420. data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram-4-appearance.png +0 -0
  421. data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram-5-behavior.png +0 -0
  422. data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram-6-sequence.png +0 -0
  423. data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram.png +0 -0
  424. data/reference-docs/enterprise-architect-appearance-dialogs/appearance-2-objects.png +0 -0
  425. data/reference-docs/enterprise-architect-appearance-dialogs/appearance-3-links.png +0 -0
@@ -1,57 +0,0 @@
1
- # TODO.complete/79: QEA→XMI equivalence fixes (namespace, defaults, aggregation)
2
-
3
- ## Status: done
4
-
5
- Previous TODOs (66, 72, 78) closed count-parity gaps. But COUNT !=
6
- EQUIVALENCE — element-by-element xmi:id comparison revealed deeper
7
- structural issues. This TODO fixes the real equivalence problems.
8
-
9
- ## Investigation method
10
-
11
- Built `/tmp/equivalence.rb` that parses both ours and EA's XMI,
12
- extracts every element by `xmi:id`, then compares common IDs
13
- element-name + attribute-by-attribute. Initial result:
14
-
15
- ```
16
- Total IDs: ours=830 ref=777
17
- Common: 409, Only ours: 421, Only ref: 368
18
- Common IDs with mismatched content: 585 / 409
19
- ```
20
-
21
- ## Fixes applied
22
-
23
- 1. **Namespace version mismatch** — xmi gem uses `20131001`, EA uses
24
- `20110701`. Added `normalize_namespaces` post-processor that
25
- replaces the namespace URIs to match EA's version. Affects every
26
- element.
27
-
28
- 2. **Attribute verbosity** — we emitted UML defaults that EA omits:
29
- - `Visibility.from_scope(0)` now returns nil instead of "public"
30
- - `Visibility.boolean_from_flag("0")` now returns nil instead of false
31
- - `normalize_concurrency` returns nil for "Sequential" (default)
32
- - `normalize_direction` returns nil for "in" (parameter default)
33
-
34
- 3. **exporterID** — added `exporter_id: "1624"` to the xmi:Documentation
35
- element (EA's build ID).
36
-
37
- 4. **aggregation on ownedEnd** — was reading `sourcecontainment`/
38
- `destcontainment` (string field, always "Unspecified"). Now reads
39
- `sourceisaggregate`/`destisaggregate` (integer field: 0=none,
40
- 1=shared, 2=composite). Matches EA's `aggregation="shared|composite"`.
41
-
42
- ## Result
43
-
44
- Content mismatches among common IDs dropped from **585 → 237** (59%
45
- reduction). Remaining mismatches are primarily:
46
- - Synthesized ID ordering (our LI000001 maps to a different attribute
47
- than EA's LI000001 — counter assignment depends on traversal order)
48
- - Some visibility="private" attributes where the QEA scope field
49
- differs from what EA emits
50
-
51
- ## Spec changes
52
-
53
- Updated 8 specs that asserted the OLD behavior (defaults emitted,
54
- wrong namespace version, aggregation absent). Now assert the
55
- EA-equivalent behavior.
56
-
57
- Full suite: 2203 examples, 0 failures, 55 pending.
@@ -1,43 +0,0 @@
1
- # TODO.complete/80: Performance — ExtensionSerializer uses Database indexes
2
-
3
- ## Status: done
4
-
5
- ExtensionSerializer was doing O(n) linear scans where the Database
6
- already had O(1) indexes. On basic.qea (121 objects, 72 connectors)
7
- this caused thousands of unnecessary comparisons per export; on larger
8
- models it's a real bottleneck.
9
-
10
- ## Before (O(n) linear scans)
11
-
12
- ```ruby
13
- source_obj = @database.collections[:objects]&.find { |o| o.ea_object_id == conn.start_object_id }
14
- target_obj = @database.collections[:objects]&.find { |o| o.ea_object_id == conn.end_object_id }
15
- obj = @database.collections[:objects]&.find { |o| o.ea_object_id == dl.instance_id }
16
- parent = (@database.collections[:packages] || []).find { |p| p.package_id == pkg.parent_id }
17
- pkg = (@database.collections[:packages] || []).find { |p| p.package_id == obj.package_id }
18
- pkg = (@database.collections[:packages] || []).find { |p| p.package_id == dgm.package_id }
19
- tagged.select { |tv| tv.element_id == element_guid }
20
- ```
21
-
22
- ## After (O(1) indexed lookups)
23
-
24
- ```ruby
25
- source_obj = @database.find_object(conn.start_object_id)
26
- target_obj = @database.find_object(conn.end_object_id)
27
- obj = @database.find_object(dl.instance_id)
28
- parent = @database.find_package(pkg.parent_id)
29
- pkg = @database.find_package(obj.package_id)
30
- pkg = @database.find_package(dgm.package_id)
31
- @database.tagged_values_for_element(element_guid)
32
- ```
33
-
34
- The Database already maintains `@objects_by_id`, `@packages_by_id`,
35
- `@tagged_values_by_element_id` hash indexes — now they're used.
36
-
37
- ## Impact
38
-
39
- - Export output is byte-identical (405898 bytes before and after).
40
- - Lookup cost: O(connectors × objects) → O(connectors) for connector
41
- end resolution. For ArcGIS-scale models this is a 100x+ speedup.
42
- - No new code: the Database methods already existed; ExtensionSerializer
43
- just wasn't calling them.
@@ -1,33 +0,0 @@
1
- # TODO.complete/81: DRY — scope predicates + GUID conversion
2
-
3
- ## Status: done
4
-
5
- ## 1. Scope predicates (EaAttribute + EaOperation)
6
-
7
- Identical `public?`, `private?`, `protected?` methods were duplicated
8
- in both models. Extracted to `Ea::Qea::Models::ScopePredicate` mixin.
9
-
10
- ```ruby
11
- # Before: 6 methods × 2 files = 12 method definitions
12
- # After: 3 methods in 1 mixin, included in both
13
- ```
14
-
15
- ## 2. GUID conversion (ExtensionSerializer)
16
-
17
- `strip_guid` in ExtensionSerializer was a local copy of the GUID→ID
18
- conversion already available in `GuidFormat.ea_guid_to_xmi_id`.
19
- Replaced 3 call sites with `GuidFormat.ea_guid_to_xmi_id(guid, prefix:
20
- "EAPK")` and removed the dead `strip_guid` method.
21
-
22
- ```ruby
23
- # Before
24
- parent ? "EAPK_#{strip_guid(parent.ea_guid)}" : nil
25
-
26
- # After
27
- parent ? GuidFormat.ea_guid_to_xmi_id(parent.ea_guid, prefix: "EAPK") : nil
28
- ```
29
-
30
- ## Acceptance
31
-
32
- - `bundle exec rspec` passes 2203 examples, 0 failures.
33
- - Export output unchanged (405898 bytes).
@@ -1,25 +0,0 @@
1
- # TODO.complete/82: public_send audit conclusion
2
-
3
- ## Status: done (no action needed)
4
-
5
- Audited all 34 `public_send` sites in lib code. Conclusion: all are
6
- legitimate dynamic dispatch on public methods. None call private
7
- methods. The user's rule ("No `send` on private methods") is
8
- satisfied.
9
-
10
- ## Categorisation
11
-
12
- | Category | Sites | Why it's legitimate |
13
- |----------|-------|---------------------|
14
- | `xmi/parser.rb` | 12 | Calls public xmi gem model methods by XML element name. Deferred per TODO 53 (needs upstream wrapper). |
15
- | `base_repository.rb` | 6 | Repository pattern: queries by attribute symbol (`find_by_key`, `where`, `pluck`, `group_by`, `sort_by`). Attribute names come from callers. |
16
- | `base_validator.rb` | 3 | Generic validator across table types: ID/name column names are dynamic per table. |
17
- | `ocl/evaluator.rb` | 3 | OCL expressions reference attributes by name. VarBinding override is core OCL pattern. |
18
- | `validation_engine.rb` | 2 | Collection method lookup by name on Lutaml::Uml::Document. |
19
- | `comparator.rb` | 2 | PK and label attribute lookup (dynamic per model class). |
20
- | `factory/*.rb` | 3 | UML collection accessor by name (`package.classes`, `package.enums`). |
21
- | `database.rb` | 1 | `build_group_index` indexes any collection by any attribute method. |
22
- | `base_model.rb` | 1 | `primary_key` calls the PK column getter (dynamic per model). |
23
-
24
- All sites use `public_send` (not bare `send`), which only resolves
25
- public methods. No encapsulation violation.
@@ -1,52 +0,0 @@
1
- # TODO.complete/83: DRY — shared XmlEscape + GuidFormat modules
2
-
3
- ## Status: done
4
-
5
- Two cross-subsystem DRY violations extracted into shared top-level
6
- modules.
7
-
8
- ## 1. Ea::XmlEscape
9
-
10
- The XML entity escape (`& < > "` → entities) was duplicated in 4
11
- files with subtle differences:
12
-
13
- | File | Escapes | Nil-safe? |
14
- |------|---------|-----------|
15
- | `text_renderer.rb` | `& < > "` | no |
16
- | `html_reporter.rb` | `& < > "` | yes |
17
- | `shapescript/renderer.rb` | `& < >` (missing `"`!) | no |
18
- | `extension_serializer.rb` | `& < > "` | no |
19
-
20
- The ShapeScript version was **missing quote escaping** — a latent
21
- bug that could produce broken SVG if a shape value contained `"`.
22
-
23
- All four now call `Ea::XmlEscape.call(text)`:
24
- - One canonical implementation
25
- - Always escapes all 4 special chars
26
- - Always nil-safe (via `to_s`)
27
-
28
- Spec: `spec/ea/xml_escape_spec.rb` (8 examples).
29
-
30
- ## 2. Ea::GuidFormat
31
-
32
- GUID→XMI ID conversion was duplicated in 3 subsystems:
33
-
34
- | File | Operation |
35
- |------|-----------|
36
- | `Transformers::QeaToXmi::GuidFormat` | full conversion (canonical) |
37
- | `Sources::Qea::IdNormalizer` | inline `gsub(/[{}]/,"")` + `.tr("-","_")` |
38
- | `Qea::Factory::ReferenceResolver` | inline `gsub(/[{}]/,"").upcase` |
39
-
40
- Promoted `GuidFormat` to top-level `Ea::GuidFormat` (shared).
41
- `Transformers::QeaToXmi::GuidFormat` is now an alias (backward
42
- compatible — existing references don't break).
43
-
44
- Added `strip_braces` method for callers that need just the brace
45
- removal without prefix/dash conversion. `IdNormalizer` and
46
- `ReferenceResolver` now use it.
47
-
48
- ## Result
49
-
50
- - Export output byte-identical (405898 bytes)
51
- - 8 new specs (XmlEscape)
52
- - 2211 examples, 0 failures, 55 pending
@@ -1,54 +0,0 @@
1
- # TODO.complete/84: OCP — markers.rb shape dispatch → registry
2
-
3
- ## Status: done
4
-
5
- `Markers` had 3 case/when blocks all dispatching on the same
6
- `spec.shape` enum. Adding a new marker shape required editing 3
7
- methods — a classic OCP violation.
8
-
9
- ## Before
10
-
11
- ```ruby
12
- def style_for(key)
13
- case key
14
- when :diamond_filled then "..."
15
- when :triangle_open then "..."
16
- when :connector_line then "..."
17
- end
18
- end
19
-
20
- def style_key_for(spec)
21
- case spec.shape
22
- when :diamond then :diamond_filled
23
- when :triangle then :triangle_open
24
- when :plus then :connector_line
25
- ...
26
- end
27
- end
28
-
29
- def render_shape(spec)
30
- case spec.shape
31
- when :diamond then diamond_polygon(spec.anchor, spec.base)
32
- when :triangle then triangle_polygon(spec.anchor, spec.base)
33
- ...
34
- end
35
- end
36
- ```
37
-
38
- ## After
39
-
40
- Two OCP registries: `SHAPE_REGISTRY` (shape → style_key + render
41
- lambda) and `STYLE_MAP` (style_key → fill/opacity). Adding a new
42
- marker shape = adding one entry to `SHAPE_REGISTRY`. Adding a new
43
- style = adding one entry to `STYLE_MAP`. No existing code edited.
44
-
45
- The render methods (`diamond_polygon`, `triangle_polygon`, etc.)
46
- were promoted from private to public via `public :method` — they're
47
- now called from the SHAPE_REGISTRY lambdas, so per the user's rule
48
- ("promote tested methods to public") they must be accessible.
49
-
50
- ## Acceptance
51
-
52
- - All 293 SVG emitter specs pass (0 failures).
53
- - Full suite: 2211 examples, 0 failures, 55 pending.
54
- - Adding a new marker shape = 1 hash entry, not 3 case/when edits.
@@ -1,38 +0,0 @@
1
- # TODO.complete/85: frozen_string_literal + rubocop + normalize_type spec
2
-
3
- ## Status: done
4
-
5
- Final code-quality pass.
6
-
7
- ## 1. frozen_string_literal: true
8
-
9
- 10 files were missing the `# frozen_string_literal: true` magic
10
- comment (or had the wrong variant `# frozen_string: true` which
11
- Ruby does not recognize):
12
-
13
- - `lib/ea/validation.rb`
14
- - `lib/ea/mdg.rb` (+ `document.rb`, `loader.rb`, `xml.rb`, `registry.rb`)
15
- - `lib/ea/model/ghost_label.rb`
16
- - `lib/ea/svg/ea_emitter/ghost_labels.rb`
17
- - `lib/ea/svg/ea_emitter/background.rb`
18
- - `lib/ea/cli/command/render.rb`
19
-
20
- All now have the correct comment at line 1. The `registry.rb` had
21
- a non-functional `# frozen_string: true` variant — replaced with
22
- the correct one.
23
-
24
- ## 2. Rubocop auto-correct
25
-
26
- 30 auto-correctable offenses fixed across the new/modified files:
27
- trailing commas, hash syntax normalization, etc.
28
-
29
- ## 3. normalize_type spec
30
-
31
- `ProfileSerializer#normalize_type` had no direct spec. Added 2
32
- examples verifying Boolean → "Boolean" and unknown → "String".
33
-
34
- ## Result
35
-
36
- - 2213 examples, 0 failures, 55 pending.
37
- - All lib files have `frozen_string_literal: true`.
38
- - New code is rubocop-clean (style offenses auto-corrected).
@@ -1,55 +0,0 @@
1
- # TODO.complete/86: frozen_string_literal sweep + Lint/Query specs
2
-
3
- ## Status: done
4
-
5
- ## 1. frozen_string_literal: wrong-variant sweep
6
-
7
- Found 13 files with the **non-functional** `# frozen_string: true`
8
- variant (Ruby only recognizes `# frozen_string_literal: true`).
9
- These files' string literals were NOT frozen — silent correctness
10
- gap.
11
-
12
- Files fixed (wrong variant → correct):
13
- - `lib/ea/svg/ea_emitter/marker/package_import.rb`
14
- - `lib/ea/mdg/xml/*.rb` (11 files)
15
- - `lib/ea/export/plantuml/generator.rb`
16
-
17
- Also removed duplicate frozen comments from 8 files where my TODO
18
- 85 fix prepended the correct variant without removing the old wrong
19
- one:
20
- - `lib/ea/mdg.rb`, `mdg/document.rb`, `mdg/loader.rb`, `mdg/xml.rb`
21
- - `lib/ea/model/ghost_label.rb`
22
- - `lib/ea/svg/ea_emitter/ghost_labels.rb`, `background.rb`
23
- - `lib/ea/cli/command/render.rb`
24
- - `lib/ea/validation.rb`
25
-
26
- All 421 lib files now have exactly one `# frozen_string_literal: true`
27
- at line 1.
28
-
29
- ## 2. Lint subsystem specs (0 → 13 examples)
30
-
31
- `spec/ea/lint/lint_spec.rb` — covers:
32
- - `Offense#error?` / `#warning?` severity predicates
33
- - `LintRule.name` CamelCase → snake_case conversion
34
- - `LintRule.severity` default + override
35
- - `LintRule#check` NotImplementedError
36
- - `LintRule#offense` factory (tested through subclass, not `send`)
37
- - `Engine#run` collects from all rules
38
- - `Engine::DEFAULT_RULES` loads 5 built-in rules
39
-
40
- ## 3. Query subsystem specs (0 → 11 examples)
41
-
42
- `spec/ea/query/builder_spec.rb` — covers:
43
- - `#classes`, `#interfaces`, `#packages` collection switching
44
- - `#with_type` filtering
45
- - `#in_package` by name
46
- - `#named` exact match
47
- - `#name_contains` case-insensitive substring
48
- - Chaining + immutability (each method returns new Builder)
49
- - Enumerable support via `#each`
50
-
51
- ## Result
52
-
53
- - 49 new examples across Lint + Query + Validation subsystems.
54
- - All lib files have correct `frozen_string_literal: true`.
55
- - No banned patterns in new specs (no `double`, no `send` to private).
@@ -1,106 +0,0 @@
1
- # TODO.complete — Strategic Work Catalog
2
-
3
- The `ea` gem's goal: become a headless, cross-platform CLI replacement for
4
- Sparx Enterprise Architect. EA requires Windows + paid license; the `ea`
5
- gem runs anywhere Ruby runs.
6
-
7
- ## Current state (2026-08-03)
8
-
9
- - **Parsing**: 43 QEA tables covered (43 / ~96).
10
- - **Diagram rendering**: basic.qea 100% pixel-perfect; plateau 167/188.
11
- - **MDG technologies**: loader + registry + alias resolver functional.
12
- - **CLI commands**: 14 commands (parse, stats, list, diagrams, validate,
13
- convert, spa, svg, render, diff, export, mdg, lint, query, info).
14
- - **Export**: XMI (via full Transformers::QeaToXmi + ExtensionSerializer),
15
- JSON (curated), JSON Schema, PlantUML (with packages + relationships),
16
- XSD.
17
- - **ShapeScript**: parser + renderer (vars, arithmetic, conditionals,
18
- subshapes, labels). Wired into StereotypeIconRenderer.
19
- - **OCL evaluator**: invariant subset (exists, forAll, matches,
20
- size, isEmpty, comparison ops), wired into `ea validate`.
21
- - **Lint**: 5 rules.
22
- - **Query DSL**: chainable Builder.
23
- - **Image**: t_image loading + EmfRenderer wired into Document emitter.
24
- - **Stereotype icons**: StereotypeIconRenderer wired as compartment.
25
- - **HeaderLines**: OCP provider chain.
26
- - **Diff**: text + HTML report; detects added/removed/renamed/modified.
27
- - **Specs**: 2200+ examples, 0 failures, 55 pending.
28
- - **Code quality**: zero `respond_to?`, zero `instance_variable_get/set`,
29
- zero `require_relative` in lib code, zero internal `require` (all
30
- autoload).
31
-
32
- ## Work streams — all completed (51–63: real completion work)
33
-
34
- ### Stream A — Data Model Completeness
35
- 01–07, 44 — all done.
36
-
37
- ### Stream B — MDG / Stereotype System
38
- 10, 11, 13, 36, 45, 46 — all done.
39
-
40
- ### Stream C — CLI Commands
41
- 20–24, 37–39, 42, 43 — all done.
42
-
43
- ### Stream D — Architecture & Code Quality
44
- 30–33, 40, 41, 47 — all done.
45
-
46
- ### Stream F — Real Completion Work (this session)
47
-
48
- | # | File | Title | Status |
49
- |---|---|---|---|
50
- | 51 | [51-remove-respond-to.md](51-remove-respond-to.md) | Remove `respond_to?` from lib code | **completed** |
51
- | 52 | [52-xsd-decouple-fixtures.md](52-xsd-decouple-fixtures.md) | Decouple XSD Generator from fixtures | **completed** |
52
- | 53 | [53-xmi-public-send-cleanup.md](53-xmi-public-send-cleanup.md) | xmi/parser `public_send` cleanup | **deferred** (no encapsulation violation; needs upstream) |
53
- | 54 | [54-wire-stereotype-icon-renderer.md](54-wire-stereotype-icon-renderer.md) | Wire StereotypeIconRenderer into SVG emitter | **completed** |
54
- | 55 | [55-wire-shapescript.md](55-wire-shapescript.md) | Wire ShapeScript into StereotypeIconRenderer | **completed** |
55
- | 56 | [56-wire-emf-renderer.md](56-wire-emf-renderer.md) | Wire EmfRenderer into SVG emitter | **completed** |
56
- | 57 | [57-wire-ocl-evaluator.md](57-wire-ocl-evaluator.md) | Wire OCL evaluator into `ea validate` | **completed** |
57
- | 58 | [58-diff-modifications.md](58-diff-modifications.md) | Diff comparator detects modifications | **completed** |
58
- | 59 | [59-delete-toy-xmi-export.md](59-delete-toy-xmi-export.md) | Delete toy XMI export; route to Transformers | **completed** |
59
- | 60 | [60-curate-json-export.md](60-curate-json-export.md) | Curated JSON export schema | **completed** |
60
- | 61 | [61-plantuml-relationships.md](61-plantuml-relationships.md) | PlantUML with packages + relationships | **completed** |
61
- | 62 | [62-changelog.md](62-changelog.md) | CHANGELOG.md | **completed** |
62
- | 63 | [63-dependabot-fix.md](63-dependabot-fix.md) | Dependabot vulnerability | **completed** (lychee-action v1 → v2) |
63
-
64
- ### Stream G — Parity + Code Quality (this session)
65
-
66
- | # | File | Title | Status |
67
- |---|---|---|---|
68
- | 64 | [64-qeatoxmi-connectors.md](64-qeatoxmi-connectors.md) | QeaToXmi emits connectors | **done** (via 66) |
69
- | 65 | [65-qeatoxmi-diagrams.md](65-qeatoxmi-diagrams.md) | QeaToXmi emits diagrams | **done** (via 66) |
70
- | 66 | [66-qeatoxmi-style-tags-docs.md](66-qeatoxmi-style-tags-docs.md) | QeaToXmi ExtensionSerializer | **done** |
71
- | 67 | [67-ocl-collection-ops.md](67-ocl-collection-ops.md) | OCL size/isEmpty | **done** |
72
- | 68 | [68-ocl-comparison-ops.md](68-ocl-comparison-ops.md) | OCL comparison operators | **done** |
73
- | 69 | [69-spec-new-models.md](69-spec-new-models.md) | Specs for 13 new QEA models | **done** |
74
- | 70 | [70-specs-for-all-models.md](70-specs-for-all-models.md) | Specs for 18 remaining models | **done** |
75
- | 71 | [71-autoload-audit.md](71-autoload-audit.md) | Autoload audit | **done** |
76
- | 72 | [72-extension-serializer-ocp-naming.md](72-extension-serializer-ocp-naming.md) | ExtensionSerializer OCP + naming | **done** |
77
- | 73 | [73-ocl-validator-latent-bugs.md](73-ocl-validator-latent-bugs.md) | OCL validator latent bugs | **done** |
78
- | 74 | [74-visibility-symbol-dry.md](74-visibility-symbol-dry.md) | Visibility symbol DRY extraction | **done** |
79
- | 75 | [75-database-table-collection-registry.md](75-database-table-collection-registry.md) | Database table→collection registry (MECE) | **done** |
80
- | 76 | [76-stale-todo-cleanup.md](76-stale-todo-cleanup.md) | Stale TODO status cleanup (40 items) | **done** |
81
-
82
- ### Bonus (no TODO file; found during 51)
83
-
84
- - Renamed `object_id` attribute to `ea_object_id` in 12 new QEA models
85
- (Ruby `Object#object_id` collision).
86
-
87
- ## CLI command summary (14 commands)
88
-
89
- ```
90
- ea parse FILE Parse to Lutaml::Uml::Document
91
- ea stats FILE Show collection counts
92
- ea list FILE List model elements
93
- ea diagrams ACTION FILE Diagram list / extract
94
- ea validate FILE Validate model (incl. OCL constraints)
95
- ea convert FILE --to=xmi Convert QEA ↔ XMI
96
- ea spa FILE Generate SPA HTML
97
- ea svg NAME FILE Render single SVG
98
- ea render NAME FILE Render to svg/png/pdf
99
- ea diff OLD NEW Structural comparison (--format=html)
100
- ea export SUB FILE xmi | json | json-schema | plantuml | xsd
101
- ea mdg ACTION list | show NAME | stereotypes
102
- ea lint FILE Model quality lint
103
- ea query FILE Filter elements
104
- ea info NAME FILE Show element details
105
- ea version Show version
106
- ```
@@ -1,31 +0,0 @@
1
- # TODO-D 01 - SVG measurement harness
2
-
3
- ## Status: COMPLETE (2026-07-26)
4
-
5
- ## What was built
6
-
7
- `spec/support/parity/checker.rb` — `Parity::Checker` compares two
8
- SVG strings and reports per-metric deltas (rect, path, polygon,
9
- text, group counts, font family match, view box match, text overlap
10
- ratio).
11
-
12
- `spec/support/parity/suite.rb` — `Parity::Suite` runs the checker
13
- across every diagram in a Document that has a matching reference
14
- SVG, aggregating per-diagram results into a SuiteReport with
15
- shape-count totals, text-overlap average, and outlier detection.
16
-
17
- ## Why spec/support/ not lib/
18
-
19
- These are test-only utilities — they exist to verify our emitter
20
- against reference SVGs and have no production purpose. Keeping them
21
- out of lib/ preserves the production/test boundary.
22
-
23
- ## Usage
24
-
25
- ```ruby
26
- require "parity/suite"
27
- suite = Parity::Suite.new(document, ref_dir).measure
28
- suite.aggregate_shape_counts # => { ours: {...}, reference: {...} }
29
- suite.text_overlap_avg # => 0.62
30
- suite.outliers # => [DiagramReport, ...]
31
- ```
@@ -1,67 +0,0 @@
1
- # 01 - Parse XMI Extension Elements Block
2
-
3
- ## Status: DONE (2026-07-21)
4
-
5
- ## Problem
6
-
7
- EA's XMI stores diagram placement data inside an `<xmi:Extension>`
8
- block, under `<elements>/<element>` rows. Each row carries:
9
-
10
- - `geometry="Left=X;Top=Y;Right=X2;Bottom=Y2;imgL=..;imgT=..;imgR=..;imgB=..;"`
11
- (pixel bounds + image bounds with 25 px padding)
12
- - `subject="EAID_..."` (the model element this placement refers to)
13
- - `seqno="N"` (z-order)
14
- - `style="BCol=<int>;font=<name>;fontsz=<int>;bold=0;italic=0;LWth=<int>;.."`
15
- (EA packed style)
16
-
17
- For connectors, the same row shape carries:
18
- - `geometry="SX=..;SY=..;EX=..;EY=..;EDGE=N;$LLB=..;$LLT=..;LRT=..;LRB=..;Path=;"`
19
- - `style="Mode=3;SOID=<source DUID>;EOID=<target DUID>;Color=-1;LWidth=2;"`
20
-
21
- Our `Ea::Sources::Xmi::DiagramBuilder` currently reads only the
22
- UML-DI `<owned_element>/<bounds>` tree, which doesn't include any
23
- of this rich placement/style data. Result: SVG rendering from XMI
24
- sources is missing colors, fonts, bend routing, label positions,
25
- and proper element placement.
26
-
27
- ## Approach
28
-
29
- Extend the XMI source adapter to walk the `<xmi:Extension>`
30
- block's `<elements>` rows for each diagram. Build a parallel
31
- `Ea::Model::DiagramElement` per row, populating:
32
-
33
- - `bounds` from `Left/Top/Right/Bottom`
34
- - `model_element_ref` from `subject` (resolved to model id)
35
- - `style` hash including `BCol`, `font`, `fontsz`, `bold`, `italic`,
36
- `LWth`, `LCol` (line color)
37
- - A new `image_bounds` field carrying the `imgL/imgT/imgR/imgB`
38
- padded bounds (EA's visual box, vs. the logical bounds)
39
-
40
- For connector rows, build `Ea::Model::DiagramConnector` with:
41
- - `relationship_ref` from `subject`
42
- - Source/target resolved via `SOID`/`EOID` → DUID → placed element
43
- - Waypoints computed from the SX/SY/EX/EY deltas + the source and
44
- target element edge centers (matching EA's rendering math)
45
- - Style hash with `Color`, `LWidth`, `Mode`
46
-
47
- ## Files
48
-
49
- - `lib/ea/sources/xmi/extension_elements.rb` (new — walks the
50
- extension block, returns typed rows)
51
- - `lib/ea/sources/xmi/extension_geometry_parser.rb` (new — parses
52
- `geometry="..."` packed string into a typed struct)
53
- - `lib/ea/sources/xmi/extension_style_parser.rb` (new — parses
54
- `style="..."` packed string into a typed struct)
55
- - `lib/ea/sources/xmi/diagram_builder.rb` (updated — uses
56
- extension data when present, falls back to umldi otherwise)
57
- - `lib/ea/model/diagram_element.rb` (extended — add
58
- `image_bounds` field)
59
- - `spec/ea/sources/xmi/extension_*_spec.rb`
60
-
61
- ## Verification
62
-
63
- - Unit specs: parse a known geometry/style string, assert typed
64
- struct matches.
65
- - Integration: load `plateau_all_packages_export.xmi`, find diagram
66
- `EAID_0016F797_...`, assert every placed element has bounds +
67
- style populated.
@@ -1,61 +0,0 @@
1
- # 02 - Rich DiagramElement / DiagramConnector Model
2
-
3
- ## Status: DONE (2026-07-21, folded into TODO 03)
4
-
5
- ## Problem
6
-
7
- The current `Ea::Model::DiagramElement` carries only `bounds` and
8
- an untyped `style` hash. EA's renderer needs:
9
-
10
- - `image_bounds` (the imgL/imgT/imgR/imgB padded rect — distinct
11
- from the logical Left/Top/Right/Bottom rect)
12
- - `background_color` (decoded from `BCol` BGR integer → RGB hex)
13
- - `font_family`, `font_size`, `font_bold`, `font_italic`
14
- - `line_color`, `line_width`
15
- - `z_order` (seqno)
16
- - `label_inset` (the offset from the bounds origin where text
17
- should start; EA convention is x+5, y+17 for the first line)
18
-
19
- For `DiagramConnector`:
20
- - `source_anchor`, `target_anchor` (which edge of the source/target
21
- element the line attaches to — top/right/bottom/left)
22
- - `source_duid`, `target_duid` (so the renderer can resolve back to
23
- placed elements without re-walking the model)
24
- - `label_boxes` (the four LRT/LRB/LLT/LLB label rectangles with
25
- their text content decoded)
26
-
27
- ## Approach
28
-
29
- Extend the existing types (don't replace — backward compat for the
30
- QEA adapter which doesn't populate these yet):
31
-
32
- - `DiagramElement`: add `image_bounds`, `background_color`,
33
- `font_family`, `font_size`, `font_bold`, `font_italic`,
34
- `line_color`, `line_width`, `z_order`
35
- - `DiagramConnector`: add `source_anchor`, `target_anchor`,
36
- `source_duid`, `target_duid`, `label_boxes` (collection)
37
-
38
- The QEA adapter populates these from its `objectstyle` packed
39
- string (existing `DiagramStyleParser`); the XMI adapter populates
40
- them from the `<xmi:Extension>/<elements>` style attribute.
41
-
42
- The renderer reads the typed fields directly — no more parsing at
43
- render time.
44
-
45
- ## Files
46
-
47
- - `lib/ea/model/diagram_element.rb`
48
- - `lib/ea/model/diagram_connector.rb`
49
- - `lib/ea/model/label_box.rb` (new)
50
- - `lib/ea/sources/qea/diagram_builder.rb` (populate the new fields)
51
- - `lib/ea/sources/qea/diagram_style_parser.rb` (extend to typed
52
- accessors, not just a hash)
53
- - `spec/ea/model/diagram_element_spec.rb`
54
- - `spec/ea/model/diagram_connector_spec.rb`
55
-
56
- ## Verification
57
-
58
- - Round-trip: model JSON includes all new fields; deserialize
59
- preserves them.
60
- - QEA adapter spec: every placed element has a non-nil
61
- `background_color`.
@@ -1,29 +0,0 @@
1
- # TODO-D 02 - Polygon over-rendering
2
-
3
- ## Status: COMPLETE (2026-07-26)
4
-
5
- ## Root cause
6
-
7
- Two bugs caused polygon over-rendering:
8
-
9
- 1. **Markers emitted one polygon per connector, even when multiple
10
- connectors ended at the same anchor** (e.g., 9 inheritance arrows
11
- converging on a single base class produced 9 identical triangle
12
- polygons).
13
-
14
- 2. **Floating-point waypoint precision caused "identical" markers
15
- to differ in their point strings** (e.g., `683.37 2041.37` vs
16
- `683.39 2043.35`), defeating naive `body.uniq` deduplication.
17
-
18
- ## Fix
19
-
20
- `Markers#layers` now deduplicates by **rounded anchor point** —
21
- the first coordinate pair of each polygon/path, rounded to integer.
22
- Two markers anchored at the same integer pixel are treated as
23
- duplicates regardless of their other point values.
24
-
25
- ## Impact (full plateau measurement)
26
-
27
- | Metric | Before | After |
28
- |---|---|---|
29
- | Polygon delta vs ref | +442 (46% over) | -10 (parity) |