fix(seed): assign TOGAF Architecture Domain to Riverdale capabilities#585
Merged
Conversation
The TOGAF Application Landscape report (/reports/togaf/application- landscape) was showing 7 / 7 applications "Not yet mapped" on a fresh seed because no framework_mappings rows existed. The field exists on capabilities and applications; the seed simply didn't populate it. Surfaced by the Domain Architect persona walk (#580) — the natural landing page for a domain specialist (Business / Application / Data / Technology) was empty out of the box. Adds DEV_CAPABILITY_TOGAF_DOMAINS — an illustrative capabilityName → TogafDomain map covering all 13 Riverdale capabilities — and seeds framework_mappings rows for each one in run.ts. The assignments are demonstrative (not authoritative TOGAF classification); orgs are expected to assign their own mappings in practice. After this change, the report renders 7 derived / 0 unmapped, exercising both the direct-mapping panel (none for Riverdale capabilities) and the capability-derived inference path the report supports. Capability: fd-portfolio-views Closes #582
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
framework_mappingsrows (framework=togaf) for all 13 Riverdale capabilities so the Application Landscape report renders non-empty out of the box.Before / after
After this change the report exercises the capability-derived inference path for every Riverdale application — direct-mapped applications can be demonstrated with a small follow-up if useful, but the derived path is the one practitioners use day-to-day.
Test plan
pnpm --filter govea db:seedreports✓ 13 TOGAF domain mappings (capabilities)on first run,✓ 0on idempotent re-run.SELECT concept_label, count(*) FROM framework_mappings WHERE framework='togaf' AND entity_type='capability' GROUP BY concept_labelreturns Application=7, Business=3, Data=2, Technology=1./reports/togaf/application-landscapeascarol@govea.devshows derived mappings for all 7 applications.Capability: fd-portfolio-views
Closes #582
🤖 Generated with Claude Code