# Graph Report - architecture  (2026-10-30)

## Corpus Check
- cluster-only mode — file stats not available

## Summary
- 915 nodes · 2641 edges · 26 communities (23 shown, 3 thin omitted)
- Extraction: 96% EXTRACTED · 4% INFERRED · 0% AMBIGUOUS · INFERRED: 112 edges (avg confidence: 0.86)
- Token cost: 0 input · 0 output

## Graph Freshness
- Built from commit: `fccdc615`
- Run `git rev-parse HEAD` and compare to check if the graph is stale.
- Run `graphify update .` after code changes (no API cost).

## Community Hubs (Navigation)
- Community 0
- Community 1
- Community 2
- Community 3
- Community 4
- Community 5
- Community 6
- Community 7
- Community 8
- Community 9
- Community 10
- Community 11
- Community 12
- Community 13
- Community 14
- Community 15
- Community 16
- Community 17
- Community 18
- Community 19
- Community 20
- Community 21
- Community 22
- Community 23
- Community 24
- Community 25

## God Nodes (most connected - your core abstractions)
1. `GameError` - 37 edges
2. `localeText()` - 33 edges
3. `erased()` - 30 edges
4. `out()` - 29 edges
5. `dispatch_player()` - 28 edges
6. `render()` - 27 edges
7. `ErasedError` - 27 edges
8. `mergeSaved()` - 25 edges
9. `createEvolution()` - 23 edges
10. `createDungeons()` - 22 edges

## Surprising Connections (you probably didn't know these)
- `run()` --calls--> `transition()`  [INFERRED]
  anna/executas/notebuddy/game_worker.py → engine/game_api.py
- `run()` --calls--> `execution()`  [INFERRED]
  anna/executas/notebuddy/game_worker.py → engine/ports.py
- `run()` --uses--> `ExecutionContext`  [INFERRED]
  anna/executas/notebuddy/game_worker.py → engine/ports.py
- `render()` --indirect_call--> `message()`  [INFERRED]
  anna/bundle/evolution.mjs → web/app.js
- `access_check()` --calls--> `run()`  [INFERRED]
  engine/engine.py → anna/executas/notebuddy/game_worker.py

## Import Cycles
- None detected.

## Communities (26 total, 3 thin omitted)

### Community 0 - "Community 0"
Cohesion: 0.05
Nodes (86): run(), game_tool(), boss_element(), daily(), discover(), discovery_day(), ensure(), room_plan() (+78 more)

### Community 1 - "Community 1"
Cohesion: 0.05
Nodes (51): award(), discovered(), validate(), view(), request(), safe_source(), validate(), view() (+43 more)

### Community 2 - "Community 2"
Cohesion: 0.06
Nodes (67): createActivity(), render(), set(), words, createBattle(), finish(), hp(), tick() (+59 more)

### Community 3 - "Community 3"
Cohesion: 0.07
Nodes (69): act(), actionActivity, adoptView(), appearance, art, assertActive(), battleScene, birthActivity (+61 more)

### Community 4 - "Community 4"
Cohesion: 0.09
Nodes (54): homeSpriteUrl(), loadHomeSprite(), pixelUrl(), ART, code(), conflict(), erased(), ErasedError (+46 more)

### Community 5 - "Community 5"
Cohesion: 0.08
Nodes (29): main(), locale_text(), localize(), translate(), visit(), _message(), evaluate(), GameService (+21 more)

### Community 6 - "Community 6"
Cohesion: 0.08
Nodes (52): drawAvatar(), facing(), lit(), TURN_MS, turnToward(), createDungeons(), choiceUI(), finish() (+44 more)

### Community 7 - "Community 7"
Cohesion: 0.13
Nodes (37): previousPortrait(), artworkGrowthPrompt(), createEquipment(), current(), guard(), recover(), send(), sendSaved() (+29 more)

### Community 8 - "Community 8"
Cohesion: 0.14
Nodes (29): byteLength(), changeMemory(), createMemories(), attach(), clear(), date(), errorKey(), load() (+21 more)

### Community 9 - "Community 9"
Cohesion: 0.10
Nodes (9): GameError, GameApplication, transition(), TransitionResult, validate_request(), Candidate, execution(), ExecutionContext (+1 more)

### Community 10 - "Community 10"
Cohesion: 0.17
Nodes (22): ART_ELEMENTS, ART_SPECIES, ArtworkError, artworkErrorKey(), birthPrompt(), checkArtwork(), createArtworkEditor(), normalizeArtwork() (+14 more)

### Community 11 - "Community 11"
Cohesion: 0.15
Nodes (25): gardenSprite(), createHomeScene(), drawObject(), drawPet(), ellipse(), fence(), grass(), line() (+17 more)

### Community 12 - "Community 12"
Cohesion: 0.16
Nodes (23): EQUIPMENT_ENABLED, equipmentJournal(), transaction(), equipmentWords, createItemCatalog(), comparison(), disposePreview(), open() (+15 more)

### Community 13 - "Community 13"
Cohesion: 0.11
Nodes (8): bind_discord_event(), bind_game_event(), dispatch_tool(), tool_definition(), DiscordDelivery, parse_command(), response_text(), read_json()

### Community 14 - "Community 14"
Cohesion: 0.09
Nodes (11): activity, aiSettings, catalog, hints, memories, pending, resetButton, storyUsage (+3 more)

### Community 15 - "Community 15"
Cohesion: 0.23
Nodes (16): createAI(), run(), text(), imageReady(), contentParts(), createGemini(), comfyImage(), localFetch() (+8 more)

### Community 16 - "Community 16"
Cohesion: 0.15
Nodes (12): dataURL(), commit(), openStore(), snapshot(), updateVisuals(), createVisuals(), read(), refresh() (+4 more)

### Community 17 - "Community 17"
Cohesion: 0.19
Nodes (4): validate_user_id(), Snapshot, FileRepository, MemoryRepository

### Community 18 - "Community 18"
Cohesion: 0.21
Nodes (6): build_prompt(), describe(), image_key(), image_seed(), pet_identity(), ImageService

### Community 19 - "Community 19"
Cohesion: 0.23
Nodes (4): atomic_png(), validate_png(), atomic_write_json(), store_lock()

### Community 20 - "Community 20"
Cohesion: 0.22
Nodes (15): act(), activeView(), button(), calculate(), chooseHomeAppearance(), clearSession(), dungeons, evolution (+7 more)

### Community 21 - "Community 21"
Cohesion: 0.27
Nodes (7): guardian_victory(), milestone(), retain(), timestamp(), validate(), view(), add()

### Community 22 - "Community 22"
Cohesion: 0.43
Nodes (4): adapter_settings(), render_settings(), build_workflow(), ComfyUIProvider

## Knowledge Gaps
- **3 thin communities (<3 nodes) omitted from report** — run `graphify query` to explore isolated nodes.

## Suggested Questions
_Questions this graph is uniquely positioned to answer:_

- **Why does `render()` connect `Community 7` to `Community 2`?**
  _High betweenness centrality (0.091) - this node is a cross-community bridge._
- **Are the 9 inferred relationships involving `GameError` (e.g. with `.generate()` and `._http()`) actually correct?**
  _`GameError` has 9 INFERRED edges - model-reasoned connections that need verification._
- **Should `Community 0` be split into smaller, more focused modules?**
  _Cohesion score 0.05185530197174352 - nodes in this community are weakly interconnected._
- **Why does `message()` connect `Community 7` to `Community 20`, `Community 14`?**
  _High betweenness centrality (0.090) - this node is a cross-community bridge._
- **Should `Community 1` be split into smaller, more focused modules?**
  _Cohesion score 0.05163511187607573 - nodes in this community are weakly interconnected._
- **Why does `localeText()` connect `Community 2` to `Community 3`, `Community 12`, `Community 6`, `Community 7`?**
  _High betweenness centrality (0.071) - this node is a cross-community bridge._
- **Should `Community 2` be split into smaller, more focused modules?**
  _Cohesion score 0.05802469135802469 - nodes in this community are weakly interconnected._