docs(adr-047): permit WASM-for-shared-compute (amend ADR-007)#18
Merged
Conversation
ADR-007 (jun-12) prohibited all WASM in browser to prevent logic duplication between backend and frontend. This amendment adds §2 distinguishing WASM-for-rendering (still rejected) from WASM-for-shared-compute (now permitted under strict rules). ADR-047 specifies: - Single source rule: same Rust code compiles to native + wasm32 - No WASM to replace existing frontend (cytoscape + elkjs stay) - Feature-gated, opt-in with graceful backend fallback - Connascence audit: algorithms must decouple from CallGraph domain type via GraphLike trait before WASM compilation This unblocks the WASM graph transforms roadmap item. 10 pure-compute algorithms (PageRank, SCC, god_nodes, community detection, etc.) are now eligible for browser-side execution without duplicating backend logic. Changes: - docs/adr/ADR-007-no-wasm-in-browser.md: state → ACCEPTED (amended), add §2 referencing ADR-047 - docs/adr/ADR-047-wasm-shared-compute-amendment.md: NEW ADR Tag: v0.12.16 PATCH (docs)
Rubentxu
added a commit
that referenced
this pull request
Jun 24, 2026
Updates ARCHITECTURE-DEEPENING-2026 §4 ADRs table: - ADR-007: state → ACCEPTED (amended by ADR-047) - ADR-047: NEW entry, ACCEPTED Tag: v0.12.16 PATCH (docs) PR: #18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Context
ADR-007 (jun-12) prohibió categóricamente WASM en browser para evitar duplicación backend↔frontend. Esto bloqueaba el roadmap item "WASM graph transforms" (PageRank, SCC, community detection en browser sin round-trip al backend).
Decision
Permitir WASM-for-shared-compute bajo cuatro reglas estrictas:
CallGraphdomain type víaGraphLiketraitAffected ADRs
cognicode-graph-algoscrateValidation
Closes blocker para
sddk/wasm-graph-transformsexplore (engram obs-f39132b17f6be1e6).Tag plan: v0.12.16 PATCH (docs)