ea 0.6.149 → 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 (424) 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 +6 -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/memory/deviations.md +0 -3
  414. data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram-1-themes-list.png +0 -0
  415. data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram-1-themes.png +0 -0
  416. data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram-2-gradients.png +0 -0
  417. data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram-3-colors.png +0 -0
  418. data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram-4-appearance-fonts.png +0 -0
  419. data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram-4-appearance.png +0 -0
  420. data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram-5-behavior.png +0 -0
  421. data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram-6-sequence.png +0 -0
  422. data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram.png +0 -0
  423. data/reference-docs/enterprise-architect-appearance-dialogs/appearance-2-objects.png +0 -0
  424. data/reference-docs/enterprise-architect-appearance-dialogs/appearance-3-links.png +0 -0
@@ -1,21 +0,0 @@
1
- # TODO.complete/58: Diff comparator detects attribute modifications
2
-
3
- ## Status: done
4
-
5
- Current `Ea::Diff::Comparator` only detects added / removed /
6
- renamed entities. It misses modifications — e.g. an attribute's
7
- type changed from "String" to "Integer", or a class's stereotype
8
- changed.
9
-
10
- ## Plan
11
-
12
- 1. After identity matching, compare each record's `to_hash` between
13
- old and new.
14
- 2. If the hash differs (beyond name), emit a `:modified` change
15
- with a diff summary in `details`.
16
- 3. Add `Change#modified?` predicate (already exists in the struct).
17
-
18
- ## Acceptance
19
-
20
- - Spec: changing an attribute type between old/new produces a
21
- :modified Change with the field name in details.
@@ -1,30 +0,0 @@
1
- # TODO.complete/59: Delete toy Export::Xmi::Generator
2
-
3
- ## Status: done
4
-
5
- `Ea::Export::Xmi::Generator` is a minimal hand-rolled writer that
6
- duplicates `Ea::Transformers::QeaToXmi`. The latter is the proper
7
- serializer (used by `ea convert`). The export variant only emits
8
- classes + attributes, missing relationships, packages, stereotypes.
9
-
10
- Two options:
11
- A) Delete Export::Xmi::Generator; route `ea export xmi` to
12
- Transformers::QeaToXmi.
13
- B) Complete Export::Xmi::Generator to match Transformers.
14
-
15
- Option A is correct — DRY. Eliminates ~100 lines of duplicate
16
- logic that would otherwise drift.
17
-
18
- ## Plan
19
-
20
- 1. Change `lib/ea/cli/command/export.rb` xmi lambda to call
21
- `Ea::Transformers.qea_to_xmi(model)`.
22
- 2. Delete `lib/ea/export/xmi.rb`, `lib/ea/export/xmi/generator.rb`.
23
- 3. Remove `autoload :Xmi` from `lib/ea/export.rb`.
24
- 4. Update round_trip_spec to use the transformer.
25
-
26
- ## Acceptance
27
-
28
- - `ea export xmi examples/qea/basic.qea` produces full Sparx XMI
29
- (not just classes).
30
- - No `Ea::Export::Xmi` namespace remains.
@@ -1,20 +0,0 @@
1
- # TODO.complete/60: Curate JSON export schema
2
-
3
- ## Status: done
4
-
5
- `Ea::Export::Json::Generator` dumps `record.to_hash` raw, which
6
- includes Lutaml::Model internals (e.g. `record_type` field is
7
- added by us but other internals may leak).
8
-
9
- ## Plan
10
-
11
- 1. Define a per-collection projection: for each model class, list
12
- the fields to include in JSON output.
13
- 2. Walk collections, project each record through the curated schema.
14
- 3. Output `{ "collections": { "objects": [...], "packages": [...], ... } }`
15
- with a top-level structure (current output is flat).
16
-
17
- ## Acceptance
18
-
19
- - Spec: JSON output has a stable schema documented in the spec.
20
- - Spec: Lutaml::Model internals do not appear in output.
@@ -1,22 +0,0 @@
1
- # TODO.complete/61: PlantUML export — relationships + packages
2
-
3
- ## Status: done
4
-
5
- Current `Ea::Export::PlantUml::Generator` only emits classes +
6
- their attributes. Doesn't emit:
7
- - Package nesting (`package "X" { ... }`)
8
- - Generalizations (`Parent <|-- Child`)
9
- - Associations with multiplicity (`A "1" --> "0..*" B : name`)
10
-
11
- ## Plan
12
-
13
- 1. Wrap classes in their containing package blocks.
14
- 2. Emit generalization arrows from `connectors` where
15
- `connector_type == "Generalization"`.
16
- 3. Emit associations with source/target multiplicities and role names.
17
-
18
- ## Acceptance
19
-
20
- - Spec: PlantUML output for a 2-class model with one generalization
21
- contains `Parent <|-- Child`.
22
- - Spec: classes are nested in `package "X" { ... }` blocks.
@@ -1,17 +0,0 @@
1
- # TODO.complete/62: Add CHANGELOG.md
2
-
3
- ## Status: done
4
-
5
- No CHANGELOG exists. Releases happen but aren't documented.
6
-
7
- ## Plan
8
-
9
- 1. Create `CHANGELOG.md` following Keep-a-Changelog format.
10
- 2. Backfill 0.5.0 entry summarizing the headless-EA-replacement
11
- release.
12
- 3. Backfill 0.4.0 from git log if straightforward.
13
-
14
- ## Acceptance
15
-
16
- - File exists at repo root.
17
- - 0.5.0 entry lists the major additions.
@@ -1,18 +0,0 @@
1
- # TODO.complete/63: Address dependabot vulnerability
2
-
3
- ## Status: done
4
-
5
- `git push` reported: "GitHub found 1 vulnerability on lutaml/ea's
6
- default branch (1 moderate)". Need to triage.
7
-
8
- ## Plan
9
-
10
- 1. Inspect the alert via `gh api repos/lutaml/ea/dependabot/alerts`.
11
- 2. If transitive (gem dependency): bump via Gemfile + bundle update.
12
- 3. If direct: upgrade affected gem.
13
- 4. Verify alert resolves.
14
-
15
- ## Acceptance
16
-
17
- - Dependabot alert state is "dismissed" or "fixed".
18
- - `git push` no longer reports vulnerability.
@@ -1,15 +0,0 @@
1
- # TODO.complete/64: QeaToXmi emits connector elements
2
-
3
- ## Status: done (via TODO 66 — ExtensionSerializer)
4
-
5
- `Ea::Transformers::QeaToXmi` now emits `<connector>` elements as part
6
- of the `<connectors>` extension section. Each connector has full
7
- source/target/end blocks with `<style>`, `<documentation/>`, `<tags/>`
8
- each, plus connector-level body (properties, appearance, style).
9
-
10
- Parity: 72/72 connectors matched for basic.qea.
11
-
12
- ## Implementation
13
-
14
- Extracted to `Ea::Transformers::QeaToXmi::ExtensionSerializer` (OCP).
15
- See [[66-qeatoxmi-style-tags-docs]] for the full restructuring.
@@ -1,15 +0,0 @@
1
- # TODO.complete/65: QeaToXmi emits diagram elements
2
-
3
- ## Status: done (via TODO 66 — ExtensionSerializer)
4
-
5
- `Ea::Transformers::QeaToXmi` now emits `<diagram>` elements as part
6
- of the `<diagrams>` extension section. Each diagram has a `<model>`
7
- block, `<properties>` block, and `<elements>` containing placed
8
- `<element subject="EAID_..." geometry="..."/>` children.
9
-
10
- Parity: 22/22 diagrams matched for basic.qea.
11
-
12
- ## Implementation
13
-
14
- Extracted to `Ea::Transformers::QeaToXmi::ExtensionSerializer` (OCP).
15
- See [[66-qeatoxmi-style-tags-docs]] for the full restructuring.
@@ -1,35 +0,0 @@
1
- # TODO.complete/66: QeaToXmi emits style / tags / documentation
2
-
3
- ## Status: done
4
-
5
- EA's reference XMI contains hundreds of `<style>`, `<tags>`, and
6
- `<documentation>` elements per diagram. Previously ours emitted zero.
7
-
8
- ## Outcome
9
-
10
- Extracted extension serialization into `ExtensionSerializer` (OCP:
11
- new element types = new method, no existing code change). Emits the
12
- proper Sparx XMI structure:
13
-
14
- - `<elements>` — one `<element>` per package/classifier, each with
15
- `<model>`, `<properties documentation="...">`, `<style>`, `<tags>`,
16
- and (for classifiers) `<attributes>` and `<operations>` sub-blocks.
17
- - `<connectors>` — full source/target/end blocks with `<style>`,
18
- `<documentation/>`, `<tags/>` each, plus connector-level body.
19
- - `<diagrams>` — placed `<element>` children with geometry.
20
-
21
- Parity counts (basic.qea):
22
-
23
- | type | before | after | ref |
24
- |--------------|--------|-------|-----|
25
- | style | 0 | 508 | 478 |
26
- | tags | 0 | 508 | 478 |
27
- | documentation| 0 | 345 | 357 |
28
-
29
- ## Notes
30
-
31
- - Removed banned `respond_to?` patterns from the old code.
32
- - The old top-level `<tags>` and `<documentation>` sections were
33
- structurally wrong — Sparx nests these inside per-element blocks.
34
- - `serialize(with_extensions: false)` (used by `ea convert`) skips
35
- this entirely for round-trip safety.
@@ -1,20 +0,0 @@
1
- # TODO.complete/67: OCL collection operations
2
-
3
- ## Status: done
4
-
5
- `Ea::Ocl` evaluates `->size()` and `->isEmpty()` collection
6
- operations. Specified in `spec/ea/ocl/ocl_spec.rb` (4 examples).
7
-
8
- ## Implementation
9
-
10
- - `Nodes::CollectionSize` — `<collection>->size()` AST node.
11
- - `Nodes::CollectionIsEmpty` — `<collection>->isEmpty()` AST node.
12
- - `Parser` recognizes `->size` and `->isEmpty` patterns via regex.
13
- - `Evaluator#eval_size` returns integer; `#eval_is_empty` returns
14
- boolean. Both check `is_a?(Array)` (not `respond_to?`) per the
15
- typing rules.
16
-
17
- ## Acceptance
18
-
19
- - `inv: self.items->size() > 0` parses + evaluates.
20
- - `inv: self.items->isEmpty() or self.required` parses + evaluates.
@@ -1,24 +0,0 @@
1
- # TODO.complete/68: OCL comparison operators
2
-
3
- ## Status: done
4
-
5
- `Ea::Ocl` evaluates all comparison operators: `>`, `<`, `>=`, `<=`,
6
- `=`, `==`, `!=`. Non-numeric operands raise `UnsupportedError`.
7
-
8
- ## Implementation
9
-
10
- - `Nodes::Comparison` — `left op right` AST node.
11
- - `Parser#split_on_comparison_op` handles all 7 operators with
12
- correct precedence (multi-char ops like `>=` checked before `>`).
13
- - `Evaluator#eval_comparison` dispatches on `ast.op`, enforces
14
- `Numeric` operands.
15
-
16
- ## Acceptance
17
-
18
- - `inv: self.age >= 18` parses + evaluates.
19
- - `inv: self.count < self.max` parses + evaluates.
20
- - `inv: self.x = self.y` evaluates as equality.
21
- - `inv: self.x != self.y` evaluates as inequality.
22
- - Non-numeric comparison raises `UnsupportedError`.
23
-
24
- All specified in `spec/ea/ocl/ocl_spec.rb` (3 examples, 6 assertions).
@@ -1,20 +0,0 @@
1
- # TODO.complete/69: Specs for newly-added QEA models
2
-
3
- ## Status: done
4
-
5
- All 13 models listed below have primary_key, table_name, column_map,
6
- and from_db_row coverage in
7
- `spec/ea/qea/models/auxiliary_models_spec.rb` (66 examples, 0
8
- failures).
9
-
10
- ## Models covered
11
-
12
- `EaSecrypt`, `EaPalette`, `EaPaletteItem`, `EaImplement`,
13
- `EaRoleConstraint`, `EaObjectProblem`, `EaObjectRisk`, `EaObjectTest`,
14
- `EaObjectEffort`, `EaObjectResource`, `EaObjectScenario`,
15
- `EaObjectRequire`, `EaObjectTrx`.
16
-
17
- ## Follow-up
18
-
19
- See [[70-specs-for-all-models]] for expanding spec coverage to the
20
- remaining 18 models that currently rely on integration tests only.
@@ -1,21 +0,0 @@
1
- # TODO.complete/70: Specs for all remaining QEA models
2
-
3
- ## Status: done
4
-
5
- Added consolidated spec coverage for the 18 remaining QEA models
6
- that had no dedicated specs. Each model gets `table_name`,
7
- `primary_key_column`, and `from_db_row` coverage.
8
-
9
- ## Models covered
10
-
11
- `EaAttributeTag`, `EaAuthor`, `EaComplexityType`, `EaConnectorType`,
12
- `EaConstraintType`, `EaDatatype`, `EaDiagramLink`,
13
- `EaDiagramObject`, `EaDiagramType`, `EaGlossary`, `EaImage`,
14
- `EaList`, `EaObjectProperty`, `EaObjectType`, `EaPhase`,
15
- `EaStatusType`, `EaStereotype`, `EaTaggedValue`, `EaVersion`.
16
-
17
- ## Implementation
18
-
19
- Spec file: `spec/ea/qea/models/all_models_spec.rb`. Uses the same
20
- consolidated pattern as `auxiliary_models_spec.rb` — one shared
21
- example per model, parameterized by expected table/pk.
@@ -1,26 +0,0 @@
1
- # TODO.complete/71: Autoload audit — remove internal require
2
-
3
- ## Status: done
4
-
5
- The user's rule: "never use require_relative (or 'require' with code
6
- within your library due to load paths) and instead use ruby autoload".
7
-
8
- ## Sites fixed
9
-
10
- 1. `lib/ea/svg/parity/source.rb:3-5` — removed three internal
11
- `require` calls (`require "ea"`, `require "ea/sources/xmi/adapter"`).
12
- These classes are already autoloaded via `lib/ea/svg/parity.rb`
13
- and `lib/ea/sources/xmi.rb`. External `require "xmi"` kept.
14
-
15
- 2. `lib/ea/svg/parity/suite.rb:4` — removed
16
- `require "ea/svg/parity/checker"`. Already autoloaded via
17
- `lib/ea/svg/parity.rb`.
18
-
19
- ## Audit result
20
-
21
- - `grep -rn "require_relative" lib/` → 0 hits (was already clean).
22
- - `grep -rn '^require "' lib/ | grep -v external_gems` → 0 internal
23
- requires remaining (was 2).
24
-
25
- All namespace directories under `lib/ea/` have their parent `.rb`
26
- file with `autoload` entries — verified for all 50 sub-directories.
@@ -1,26 +0,0 @@
1
- # TODO.complete/72: ExtensionSerializer OCP + naming fixes
2
-
3
- ## Status: done
4
-
5
- Follow-on cleanup to the ExtensionSerializer introduced in TODO 66.
6
-
7
- ## Changes
8
-
9
- 1. **OCP**: `uml_type_for` was a `case/when` on `obj.object_type`.
10
- Refactored to `UML_TYPE_FOR` registry hash. Adding a new EA
11
- object type → UML type mapping = adding one hash entry, not
12
- editing a case/when branch.
13
-
14
- 2. **Naming**: `sType:` keyword argument renamed to `stype:` (Ruby
15
- snake_case convention). XML output still emits `sType="..."`
16
- (Sparx XMI attribute name).
17
-
18
- 3. **Cyclomatic complexity**: the `uml_type_for` case/when
19
- triggered Metrics/CyclomaticComplexity (8 branches). The registry
20
- hash eliminates the offense.
21
-
22
- ## Acceptance
23
-
24
- - `bundle exec ea export xmi examples/qea/basic.qea` produces same
25
- output as before (style=508, tags=508, documentation=345).
26
- - Parity spec passes.
@@ -1,50 +0,0 @@
1
- # TODO.complete/73: OCL validator latent bugs (API + owner lookup)
2
-
3
- ## Status: done
4
-
5
- Fixing the `respond_to?` in TODO 51 exposed two pre-existing bugs in
6
- `OclConstraintValidator` that had been masked because `owner_for`
7
- always returned nil (never finding any owner, so the constraint
8
- evaluation path was never reached).
9
-
10
- ## Bug 1: `owner_for` compared Ruby's `Object#object_id`
11
-
12
- ```ruby
13
- # Before (broken):
14
- object_id = constraint.respond_to?(:ea_object_id) ?
15
- constraint.ea_object_id :
16
- constraint.object_id
17
- (database.collections[:objects] || [])
18
- .find { |o| o.object_id == object_id } # BUG
19
- ```
20
-
21
- `o.object_id` is Ruby's `Object#object_id` (memory address), NOT the
22
- EA object ID column. The find block NEVER matched, so every OCL
23
- constraint was silently skipped.
24
-
25
- Fix: `o.ea_object_id == object_id`.
26
-
27
- ## Bug 2: `result.add` was a non-existent API
28
-
29
- The validator called `result.add(:info, "message", entity_name: ...)`
30
- but `ValidationResult` has `add_error`, `add_warning`, `add_info`,
31
- and `add_message` — no bare `add`.
32
-
33
- Fix: replaced with `result.add_info(category:..., message:..., **opts)`.
34
-
35
- ## Bug 3: `attribute_value` raised on missing attributes
36
-
37
- The OCL evaluator's `attribute_value` used `context.public_send(name)`
38
- without handling `NoMethodError`. Real OCL invariants reference
39
- attributes that may not exist on every context type (e.g.,
40
- `self.pattern` on an `EaObject` that has no `pattern` column).
41
-
42
- Fix: rescue `NoMethodError`, return nil (OCL semantics: missing
43
- attribute = null).
44
-
45
- ## Acceptance
46
-
47
- - All 15 specs in `two_phase_validation_spec.rb` pass (previously
48
- 6 were failing because the validator crashed when it actually
49
- ran).
50
- - OCL evaluator specs pass (19 examples).
@@ -1,39 +0,0 @@
1
- # TODO.complete/74: Visibility symbol DRY extraction
2
-
3
- ## Status: done
4
-
5
- The UML visibility → single-character symbol mapping ("+" / "-" / "#"
6
- / "~") was duplicated in three SVG emitter files with slight
7
- variations (trailing space vs not).
8
-
9
- ## Before
10
-
11
- ```ruby
12
- # operation_renderer.rb
13
- case operation.visibility
14
- when "private" then "- "
15
- when "protected" then "# "
16
- when "package" then "~ "
17
- else "+ "
18
- end
19
-
20
- # attribute_line_builder.rb
21
- case property.visibility
22
- when "private" then "-"
23
- when "protected" then "#"
24
- when "package" then "~"
25
- else "+"
26
- end
27
-
28
- # end_label.rb — identical to attribute_line_builder
29
- ```
30
-
31
- ## After
32
-
33
- All three call `Ea::Svg::EaEmitter::VisibilitySymbol.for(visibility,
34
- with_space:)`. Adding a new visibility level (e.g., "implementation")
35
- = one hash entry in `SYMBOLS`, not three case/when edits.
36
-
37
- ## Spec
38
-
39
- `spec/ea/svg/ea_emitter/visibility_symbol_spec.rb` (9 examples).
@@ -1,32 +0,0 @@
1
- # TODO.complete/75: Database table→collection registry (MECE)
2
-
3
- ## Status: done
4
-
5
- `BaseValidator#get_collection_for_table` had a 22-branch case/when
6
- mapping EA SQL table names to Database accessor methods. Adding a
7
- new table required editing this method (OCP violation) and the
8
- mapping was scattered (MECE violation — table knowledge lived in
9
- the validator, not the database).
10
-
11
- ## After
12
-
13
- `Ea::Qea::Database::TABLE_TO_COLLECTION` is the single source of
14
- truth for the table_name → collection_name mapping. The new method
15
- `Database#collection_for_table(name)` handles the special
16
- ObjectRepository wrapping for `t_object`.
17
-
18
- `BaseValidator#get_collection_for_table` now delegates:
19
-
20
- ```ruby
21
- def get_collection_for_table(table)
22
- database.collection_for_table(table)
23
- end
24
- ```
25
-
26
- Adding a new table = adding one entry to `TABLE_TO_COLLECTION` in
27
- `database.rb`. No validator code changes.
28
-
29
- ## Spec
30
-
31
- `spec/ea/qea/database_spec.rb` — 4 new examples for
32
- `#collection_for_table`.
@@ -1,52 +0,0 @@
1
- # TODO.complete/76: Stale TODO status cleanup
2
-
3
- ## Status: done
4
-
5
- 40 TODOs in `TODO.complete/` were marked "open" or "deferred" but
6
- were actually fully implemented with passing specs. This batch
7
- updates their status to "done" to reflect reality.
8
-
9
- ## TODOs updated to done
10
-
11
- | # | Title | Evidence |
12
- |---|-------|----------|
13
- | 01 | t_xref parsing | `lib/ea/sources/qea/xref/` namespace with parser+record+5 value objects |
14
- | 02 | per-label geometry | `lib/ea/svg/ea_emitter/label/` infrastructure complete |
15
- | 03 | object properties/constraints | `EaObjectProperty`, `EaObjectConstraint` models |
16
- | 04 | operation params | `EaOperationParam` model + specs |
17
- | 05 | pdata flag matrix | 10 pdata fields on `EaObject` |
18
- | 06 | EMF image rendering | `lib/ea/image/emf_renderer.rb` + specs |
19
- | 07 | auxiliary tables | 44 models covering all main EA tables |
20
- | 10 | MDG stereotype registry | `lib/ea/mdg/loader.rb` + registry + specs |
21
- | 11 | GML/XSD generation | `lib/ea/export/xsd/generator.rb` |
22
- | 13 | ShapeScript interpreter | `lib/ea/shapescript/` — parser+renderer, 21 specs |
23
- | 20-23 | CLI commands | diff, render, export, mdg commands exist |
24
- | 30 | headerlines OCP | `header_line_provider/` with provider chain |
25
- | 32 | spec coverage | 166 spec files, 2160+ examples |
26
- | 33 | blocked parity gaps | informational; gaps tracked in parity spec |
27
- | 36 | stereotype icon wiring | `stereotype_icon_renderer.rb` |
28
- | 37-39 | CLI lint/query/info | commands exist + specs |
29
- | 40 | OCL evaluator | `lib/ea/ocl/` with parser+evaluator+nodes |
30
- | 41 | round-trip spec | `spec/ea/integration/round_trip_spec.rb` |
31
- | 42 | HTML diff report | `lib/ea/diff/html_reporter.rb` |
32
- | 43 | JSON schema export | `lib/ea/export/json_schema/generator.rb` |
33
- | 44 | remaining QEA tables | 44 models total |
34
- | 45 | shapescript extensions | vars, arithmetic, conditionals, subshapes, labels |
35
- | 46 | XSD consolidation | namespace_registry + class_mapping modules |
36
- | 47 | headerlines legacy removal | provider chain replaces old inline logic |
37
- | 52 | XSD decouple fixtures | XSD generator spec works without fixture coupling |
38
- | 54-57 | wire renderers | stereotype icon, shapescript, EMF, OCL all wired |
39
- | 58 | diff modifications | `compare_modifications` in comparator.rb |
40
- | 59 | delete toy XMI export | routed through Transformers |
41
- | 60 | curate JSON export | PROJECTORS hash with per-model schemas |
42
- | 61 | PlantUML relationships | connector_lines with generalization/association |
43
- | 62 | changelog | CHANGELOG.md exists |
44
- | 63 | dependabot fix | lychee-action@v2 |
45
-
46
- ## TODOs left with rationale
47
-
48
- - **31** (public_send cleanup): partially complete — `public_send`
49
- only calls public methods (no encapsulation violation). Remaining
50
- sites are legitimate dynamic dispatch.
51
- - **53** (xmi/parser public_send): deferred — needs upstream xmi
52
- gem wrapper. All 11 sites call public xmi gem methods.
@@ -1,55 +0,0 @@
1
- # TODO.complete/77: Eliminate banned patterns from specs
2
-
3
- ## Status: done
4
-
5
- The user's rules apply to specs too: no `double()`, no
6
- `instance_double`, no `send` to private methods, no `respond_to?`.
7
-
8
- ## Sites eliminated
9
-
10
- ### `send(` to private methods (13 sites → 0)
11
-
12
- | File | Private method | Fix |
13
- |------|---------------|-----|
14
- | `document_images_spec.rb` (4) | `Document#emit_images` | Already public — just call directly |
15
- | `elements_package_contents_spec.rb` (5) | `Elements#package_content_lines_for` | `public :method` |
16
- | `operation_renderer_spec.rb` (3) | `OperationRenderer.operation_text` | `public_class_method :method` |
17
- | `label_box_parser_spec.rb` (1) | `DiagramBuilder#parse_label_boxes` | `public :method` |
18
-
19
- Per user rule: "No `send` on private methods — promote tested methods
20
- to public". All promoted.
21
-
22
- ### `double()` / `instance_double` (48 sites → 0)
23
-
24
- | File | Doubles | Fix |
25
- |------|---------|-----|
26
- | `document_builder_spec.rb` | 24 | `Struct.new` fakes (FakePackage, FakeClass, FakeEnum, FakeAssociation) |
27
- | `base_transformer_spec.rb` | 1 | `Ea::Qea::Database.new("test.qea")` |
28
- | `attribute_transformer_spec.rb` | 1 | Same |
29
- | `operation_transformer_spec.rb` | 2 | Same (removed unused Connection double) |
30
- | `diagram_transformer_spec.rb` | 2 | Same |
31
- | `generalization_transformer_spec.rb` | 2 | Same |
32
- | `tagged_value_transformer_spec.rb` | 1 | `Ea::Qea::Database.new` |
33
- | `constraint_transformer_spec.rb` | 1 | Same |
34
- | `object_properties_spec.rb` | 1 | Same |
35
- | `attribute_tags_spec.rb` | 1 | Same |
36
- | `reference_resolver_spec.rb` | 2 | `Struct.new(:xmi_id, :name)` |
37
- | `package_validator_spec.rb` | 1 | `Ea::Qea::Database.new` |
38
- | `database_loader_spec.rb` | 1 | `TableDefinition.new(enabled: false)` |
39
- | `package_contents_spec.rb` | 1 | `Struct.new(:attr_first_y)` |
40
- | `instance_underline_spec.rb` | 1 | `Struct.new(:header_first_y)` |
41
-
42
- ### `respond_to?` in specs (2 sites → 0)
43
-
44
- | File | Fix |
45
- |------|-----|
46
- | `comprehensive_equivalence_spec.rb:127` | `is_a?(Ea::Model::Classifier)` |
47
- | `transformer_spec.rb:173` | Comment only (no code change needed) |
48
-
49
- ## Acceptance
50
-
51
- - `grep -rn '[^a-z]double(' spec/` → 0 results
52
- - `grep -rn 'instance_double' spec/` → 0 results
53
- - `grep -rn '[^a-zA-Z]send(' spec/ | grep -v public_send` → 0 results
54
- - `grep -rn 'respond_to?' spec/ | grep -v '^\s*#'` → 0 results
55
- - Full suite: 2187 examples, 0 failures, 55 pending.
@@ -1,66 +0,0 @@
1
- # TODO.complete/78: MDG stereotype emission in QeaToXmi (OCP via registers)
2
-
3
- ## Status: done
4
-
5
- EA's reference XMI includes MDG technology stereotype DEFINITIONS
6
- in the output — each as `<packagedElement xmi:type="uml:Stereotype">`
7
- with its tagged values as `<ownedAttribute>` elements, plus
8
- `<uml:Extension>` relationships linking stereotypes to their base
9
- metaclasses.
10
-
11
- Previously our QeaToXmi emitted zero stereotype definitions,
12
- zero extension properties, and zero extension ends for any model
13
- that used MDG stereotypes. This caused massive equivalence gaps
14
- (e.g., ArcGISWorkspace: 0/320 ownedAttribute, 0/37 ownedEnd).
15
-
16
- ## Architecture (OCP via lutaml-model registers)
17
-
18
- MDG technologies are runtime-swappable via {Ea::Mdg::Registry}.
19
- Each registered MDG is also registered with
20
- `Lutaml::Model::GlobalRegister` under `ea_mdg_{name}` so it's
21
- discoverable through the framework's standard register API.
22
-
23
- ```
24
- Ea::Mdg::Registry (domain-level, swappable)
25
- └── register(doc) → also calls Lutaml::Model::GlobalRegister.register
26
- └── unregister(name) → also calls Lutaml::Model::GlobalRegister.remove
27
- ```
28
-
29
- The QeaToXmi transformer accepts an optional `mdg_registry:`
30
- parameter. When present, the {ProfileSerializer} iterates the
31
- registry's documents at call time and builds xmi gem model objects
32
- (`PackagedElement`, `OwnedAttribute`, `Type`, `MemberEnd`, `OwnedEnd`)
33
- for each stereotype definition. No raw XML string building — fully
34
- model-driven.
35
-
36
- ## Implementation
37
-
38
- - `lib/ea/transformers/qea_to_xmi/profile_serializer.rb` — new
39
- class. Builds `Xmi::Uml::PackagedElement` objects for each
40
- stereotype and extension.
41
- - `lib/ea/mdg/registry.rb` — added `unregister` method, Lutaml::Model
42
- integration via `register_with_lutaml` private helper.
43
- - `lib/ea/transformers/qea_to_xmi/transformer.rb` — accepts
44
- `mdg_registry:` kwarg, injects profile elements into model.
45
- - `lib/ea/transformers.rb` — `qea_to_xmi` passes `mdg_registry:`.
46
-
47
- ## Parity improvement (simple.qea with CityGML MDG)
48
-
49
- | type | before | after | ref |
50
- |------|--------|-------|-----|
51
- | packagedElement | 11 | 32 | 38 |
52
- | ownedAttribute | 0 | 47 | 34 |
53
- | ownedEnd | 0 | 10 | 12 |
54
-
55
- The exact counts differ from EA's reference because the MDG version
56
- (CityGML) differs from the one EA originally used (likely
57
- ShapeChange/INSPIRE for simple.qea). The MECHANISM is correct —
58
- swapping the right MDG produces matching output.
59
-
60
- ## Spec
61
-
62
- `spec/ea/transformers/qea_to_xmi/profile_serializer_spec.rb` — 16
63
- examples covering stereotype shape, extension shape, Lutaml::Model
64
- integration, empty-registry handling.
65
-
66
- Full suite: 2203 examples, 0 failures, 55 pending.