Replies: 1 comment
|
I've been working on a PR action around Archify's snapshot comparison, and this is the gap it leaves today: when code changes without a corresponding map update, it can only prompt an architecture review. |
|
I've been working on a PR action around Archify's snapshot comparison, and this is the gap it leaves today: when code changes without a corresponding map update, it can only prompt an architecture review. |
Uh oh!
There was an error while loading. Please reload this page.
Problem
Archify can already compare two authored architecture JSON snapshots and render an Architecture Delta with Before, Delta, and After views. It can identify added, removed, changed, moved, and rerouted components, connections, and boundaries when the snapshots preserve stable IDs.
The missing step is producing the second snapshot from a real code change. Today, after implementing a feature, a user must manually author or regenerate
head.jsonbefore running the comparison. Archify cannot yet inspect a Git diff, determine which architecture elements were affected, and update the architecture snapshot automatically.Proposed capability
Add a repository-aware command such as:
archify diff --base main --head HEAD --repo-root .The command would:
sourcesevidence.In short:
Suggested MVP
The first version could stay deliberately conservative:
architecturediagrams only.components[].sourcesas the primary code-to-architecture mapping.unknownorneeds-reviewresults when a change cannot be mapped confidently.head.json, the compare receipt, and the Architecture Delta HTML so the result remains inspectable and reproducible.Possible follow-up scope
Later versions could add symbol-level dependency analysis, language-specific adapters, CI and pull-request integration, and delta support for sequence, workflow, data-flow, and lifecycle diagrams.
Acceptance criteria
Would this repository-aware snapshot generation fit Archify's intended scope? If so, should the first iteration require explicit
sourcesmappings, or also attempt best-effort repository inference?All reactions