[Bug]: Architecture compare misses presentation changes in meta.translations
Version and environment
Git clone of dev at e825eb20faab530f911368b2a41a4c10fc915b41, Node 22.23.1, macOS.
Reproduction
From the repository root, derive two otherwise identical inputs from the checked-in comparison fixture:
node --input-type=module <<'JS'
import fs from 'node:fs';
const base = JSON.parse(fs.readFileSync('archify/examples/checkout-platform.base.architecture.json'));
base.meta.locale = 'en';
base.meta.translations = { 'legend.architecture.backend': 'First backend wording' };
const head = structuredClone(base);
head.meta.translations['legend.architecture.backend'] = 'Second backend wording';
fs.writeFileSync('translation-base.json', JSON.stringify(base));
fs.writeFileSync('translation-head.json', JSON.stringify(head));
JS
node archify/bin/archify.mjs render architecture translation-base.json translation-base.html
node archify/bin/archify.mjs render architecture translation-head.json translation-head.html
node archify/bin/archify.mjs compare architecture translation-base.json translation-head.json translation-delta.html --jsonActual behavior
All three commands succeed. Each rendered HTML contains its respective backend legend wording. The compare receipt has different base/head semantic hashes, but reports:
{
"presentationChanged": false,
"provenanceChanged": false
}All component/connection/boundary change arrays are empty. This is an observation of public CLI receipts and generated text, not a browser visual-review claim.
Expected behavior and scope
Changing authored meta.translations should be classified as a presentation change, just as the existing comparison projection handles meta.locale and legend settings. Entity and provenance changes should remain empty for this example. Reordering dictionary keys should remain equivalent under the existing canonical comparison.
presentationChanged() in archify/delta/architecture-delta.mjs lists locale but omits translations. I plan to contribute the bounded projection fix with CLI regressions for adding/removing/changing translations, key-order equivalence, and sidecar/embedded receipt consistency.
Checks
- Searched related issue/PR work. #588 concerns locale/catalog resolution and fallback rather than comparison classification.
- Fixture uses only public example data; no credentials or private content.
Source: tt-a1i/archify