# futurelesswindchan/kazefactor architecture

> Architecture diagram of the GitHub repository futurelesswindchan/kazefactor, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-22). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/futurelesswindchan/kazefactor
- Repository: https://github.com/futurelesswindchan/kazefactor

## Overview

KazeFactor is an Android assistant for managing Soul Knight challenge-factor recipes and automatically refreshing the game until a target appears. The main workflow is recipe configuration and rule/probability feedback, followed by accessibility-service capture, calibration and slot recognition, safe refresh decisions, and overlay feedback. Separate capabilities include offline recipe-code sharing and manual position setup. The graph follows documented workflows and sampled wiring; several subsystem links are documented in the README rather than verified from their unsampled implementations.

Main entry points: [`core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/loop/RefreshEngine.kt`](https://github.com/futurelesswindchan/kazefactor/blob/master/core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/loop/RefreshEngine.kt) (Refresh state machine), [`app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/service/KazeAccessibilityService.kt`](https://github.com/futurelesswindchan/kazefactor/blob/master/app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/service/KazeAccessibilityService.kt) (Accessibility service), [`app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/data/repository/RecipeRepository.kt`](https://github.com/futurelesswindchan/kazefactor/blob/master/app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/data/repository/RecipeRepository.kt) (Recipe repository), [`app/src/main/java/io/github/futurelesswindchan/kazefactor/MainActivity.kt`](https://github.com/futurelesswindchan/kazefactor/blob/master/app/src/main/java/io/github/futurelesswindchan/kazefactor/MainActivity.kt) (App navigation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["App experience"]
  node_main["App navigation<br/>[MainActivity.kt]"]
  node_recipe_ui["Recipe screens"]
  node_recipe_vm["Recipe view models"]
  node_code_ui["Recipe code UI"]
  node_permission_ui["Permission guide"]
  node_overlay["Control overlay"]
end

subgraph group_recipe["Recipe domain"]
  node_recipe_model["Recipe and factors<br/>[Recipe.kt]"]
  node_factor_db["Factor database<br/>[FactorDatabase.kt]"]
  node_rules["Rules and probability"]
  node_codec["Recipe code codec"]
end

subgraph group_vision["Screen vision"]
  node_vision["Frame recognition<br/>[FrameAnalyzer.kt]"]
  node_calibrator["Auto calibration<br/>[Calibrator.kt]"]
  node_profile_verify["Profile verification<br/>[ProfileVerifier.kt]"]
  node_manual_setup["Manual edge snapping<br/>[Snapper.kt]"]
  node_calibration["Coordinate calibration<br/>[Calibration.kt]"]
  node_profile["Profile model"]
  node_images["Image operations<br/>[ImageOps.kt]"]
end

subgraph group_automation["Refresh automation"]
  node_service["Accessibility service"]
  node_capture["Screen capture"]
  node_tapper["Gesture tapper<br/>[GestureTapper.kt]"]
  node_refresh["Refresh state machine<br/>[RefreshEngine.kt]"]
  node_decision["Candidate decisions<br/>[Decision.kt]"]
  node_engine_state["Engine state<br/>[EngineState.kt]"]
end

subgraph group_storage["Persistence"]
  node_repository["Recipe repository"]
  node_recipe_store[("Recipe storage<br/>[RecipeDataStore.kt]")]
  node_engine_settings[("Engine settings")]
  node_profile_store[("Calibration profiles")]
end

node_player(("Player"))

node_player -->|"opens"| node_main
node_main -->|"routes to"| node_recipe_ui
node_main -->|"creates"| node_recipe_vm
node_recipe_ui -.->|"uses"| node_recipe_vm
node_recipe_vm -.->|"queries"| node_repository
node_repository -->|"reads and writes"| node_recipe_store
node_repository -->|"validates"| node_rules
node_repository -->|"uses"| node_factor_db
node_rules -->|"checks"| node_recipe_model
node_rules -->|"consults"| node_factor_db
node_code_ui -.->|"encodes codes"| node_codec
node_player -->|"sets up service"| node_permission_ui
node_player -->|"controls refresh"| node_overlay
node_service -->|"creates"| node_capture
node_service -->|"creates"| node_tapper
node_service -->|"assembles"| node_refresh
node_service -->|"connects"| node_overlay
node_refresh -->|"captures frames"| node_capture
node_refresh -->|"sends taps"| node_tapper
node_refresh -->|"analyzes frames"| node_vision
node_refresh -->|"evaluates candidates"| node_decision
node_refresh -->|"calibrates frames"| node_calibrator
node_refresh -->|"verifies profile"| node_profile_verify
node_refresh -->|"publishes state"| node_engine_state
node_decision -->|"matches recipe"| node_recipe_model
node_calibrator -->|"validates slots"| node_vision
node_calibrator -->|"processes pixels"| node_images
node_manual_setup -->|"fits coordinates"| node_calibration
node_profile_verify -->|"checks profile"| node_profile
node_profile_store -.->|"persists profile"| node_profile
node_engine_settings -.->|"provides settings"| node_refresh

click node_main "https://github.com/futurelesswindchan/kazefactor/blob/master/app/src/main/java/io/github/futurelesswindchan/kazefactor/MainActivity.kt"
click node_recipe_ui "https://github.com/futurelesswindchan/kazefactor/tree/master/app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/ui/screen"
click node_recipe_vm "https://github.com/futurelesswindchan/kazefactor/tree/master/app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/domain/viewmodel"
click node_code_ui "https://github.com/futurelesswindchan/kazefactor/blob/master/app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/ui/screen/RecipeCodeScreen.kt"
click node_permission_ui "https://github.com/futurelesswindchan/kazefactor/blob/master/app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/ui/screen/PermissionGuideScreen.kt"
click node_overlay "https://github.com/futurelesswindchan/kazefactor/tree/master/app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/overlay"
click node_recipe_model "https://github.com/futurelesswindchan/kazefactor/blob/master/core-domain/src/main/kotlin/io/github/futurelesswindchan/kazefactor/domain/model/Recipe.kt"
click node_factor_db "https://github.com/futurelesswindchan/kazefactor/blob/master/core-domain/src/main/kotlin/io/github/futurelesswindchan/kazefactor/domain/model/FactorDatabase.kt"
click node_rules "https://github.com/futurelesswindchan/kazefactor/tree/master/core-domain/src/main/kotlin/io/github/futurelesswindchan/kazefactor/domain/rule"
click node_codec "https://github.com/futurelesswindchan/kazefactor/tree/master/core-domain/src/main/kotlin/io/github/futurelesswindchan/kazefactor/domain/codec"
click node_repository "https://github.com/futurelesswindchan/kazefactor/blob/master/app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/data/repository/RecipeRepository.kt"
click node_recipe_store "https://github.com/futurelesswindchan/kazefactor/blob/master/app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/data/datastore/RecipeDataStore.kt"
click node_engine_settings "https://github.com/futurelesswindchan/kazefactor/blob/master/app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/data/datastore/EngineSettingsDataStore.kt"
click node_profile_store "https://github.com/futurelesswindchan/kazefactor/blob/master/app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/data/datastore/CalibrationProfileDataStore.kt"
click node_service "https://github.com/futurelesswindchan/kazefactor/blob/master/app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/service/KazeAccessibilityService.kt"
click node_capture "https://github.com/futurelesswindchan/kazefactor/blob/master/app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/service/A11yScreenCapturer.kt"
click node_tapper "https://github.com/futurelesswindchan/kazefactor/blob/master/app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/service/GestureTapper.kt"
click node_refresh "https://github.com/futurelesswindchan/kazefactor/blob/master/core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/loop/RefreshEngine.kt"
click node_decision "https://github.com/futurelesswindchan/kazefactor/blob/master/core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/loop/Decision.kt"
click node_engine_state "https://github.com/futurelesswindchan/kazefactor/blob/master/core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/loop/EngineState.kt"
click node_vision "https://github.com/futurelesswindchan/kazefactor/blob/master/core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/vision/FrameAnalyzer.kt"
click node_calibrator "https://github.com/futurelesswindchan/kazefactor/blob/master/core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/vision/Calibrator.kt"
click node_profile_verify "https://github.com/futurelesswindchan/kazefactor/blob/master/core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/vision/ProfileVerifier.kt"
click node_manual_setup "https://github.com/futurelesswindchan/kazefactor/blob/master/core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/vision/Snapper.kt"
click node_calibration "https://github.com/futurelesswindchan/kazefactor/blob/master/core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/vision/Calibration.kt"
click node_profile "https://github.com/futurelesswindchan/kazefactor/blob/master/core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/vision/CalibrationProfile.kt"
click node_images "https://github.com/futurelesswindchan/kazefactor/blob/master/core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/image/ImageOps.kt"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_main,node_recipe_ui,node_recipe_vm,node_code_ui,node_permission_ui,node_overlay toneBlue
class node_recipe_model,node_factor_db,node_rules,node_codec toneAmber
class node_vision,node_calibrator,node_profile_verify,node_manual_setup,node_calibration,node_profile,node_images toneMint
class node_service,node_capture,node_tapper,node_refresh,node_decision,node_engine_state toneRose
class node_repository,node_recipe_store,node_engine_settings,node_profile_store,node_player toneIndigo
```

## Components

### App experience

- [App navigation](https://github.com/futurelesswindchan/kazefactor/blob/master/app/src/main/java/io/github/futurelesswindchan/kazefactor/MainActivity.kt): `app/src/main/java/io/github/futurelesswindchan/kazefactor/MainActivity.kt`
- [Recipe screens](https://github.com/futurelesswindchan/kazefactor/tree/master/app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/ui/screen): `app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/ui/screen`
- [Recipe view models](https://github.com/futurelesswindchan/kazefactor/tree/master/app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/domain/viewmodel): `app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/domain/viewmodel`
- [Recipe code UI](https://github.com/futurelesswindchan/kazefactor/blob/master/app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/ui/screen/RecipeCodeScreen.kt): `app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/ui/screen/RecipeCodeScreen.kt`
- [Permission guide](https://github.com/futurelesswindchan/kazefactor/blob/master/app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/ui/screen/PermissionGuideScreen.kt): `app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/ui/screen/PermissionGuideScreen.kt`
- [Control overlay](https://github.com/futurelesswindchan/kazefactor/tree/master/app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/overlay): `app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/overlay`

### Recipe domain

- [Recipe and factors](https://github.com/futurelesswindchan/kazefactor/blob/master/core-domain/src/main/kotlin/io/github/futurelesswindchan/kazefactor/domain/model/Recipe.kt): `core-domain/src/main/kotlin/io/github/futurelesswindchan/kazefactor/domain/model/Recipe.kt`
- [Factor database](https://github.com/futurelesswindchan/kazefactor/blob/master/core-domain/src/main/kotlin/io/github/futurelesswindchan/kazefactor/domain/model/FactorDatabase.kt): `core-domain/src/main/kotlin/io/github/futurelesswindchan/kazefactor/domain/model/FactorDatabase.kt`
- [Rules and probability](https://github.com/futurelesswindchan/kazefactor/tree/master/core-domain/src/main/kotlin/io/github/futurelesswindchan/kazefactor/domain/rule): `core-domain/src/main/kotlin/io/github/futurelesswindchan/kazefactor/domain/rule`
- [Recipe code codec](https://github.com/futurelesswindchan/kazefactor/tree/master/core-domain/src/main/kotlin/io/github/futurelesswindchan/kazefactor/domain/codec): `core-domain/src/main/kotlin/io/github/futurelesswindchan/kazefactor/domain/codec`

### Screen vision

- [Frame recognition](https://github.com/futurelesswindchan/kazefactor/blob/master/core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/vision/FrameAnalyzer.kt): `core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/vision/FrameAnalyzer.kt`
- [Auto calibration](https://github.com/futurelesswindchan/kazefactor/blob/master/core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/vision/Calibrator.kt): `core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/vision/Calibrator.kt`
- [Profile verification](https://github.com/futurelesswindchan/kazefactor/blob/master/core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/vision/ProfileVerifier.kt): `core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/vision/ProfileVerifier.kt`
- [Manual edge snapping](https://github.com/futurelesswindchan/kazefactor/blob/master/core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/vision/Snapper.kt): `core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/vision/Snapper.kt`
- [Coordinate calibration](https://github.com/futurelesswindchan/kazefactor/blob/master/core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/vision/Calibration.kt): `core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/vision/Calibration.kt`
- [Profile model](https://github.com/futurelesswindchan/kazefactor/blob/master/core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/vision/CalibrationProfile.kt): `core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/vision/CalibrationProfile.kt`
- [Image operations](https://github.com/futurelesswindchan/kazefactor/blob/master/core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/image/ImageOps.kt): `core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/image/ImageOps.kt`

### Refresh automation

- [Accessibility service](https://github.com/futurelesswindchan/kazefactor/blob/master/app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/service/KazeAccessibilityService.kt): `app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/service/KazeAccessibilityService.kt`
- [Screen capture](https://github.com/futurelesswindchan/kazefactor/blob/master/app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/service/A11yScreenCapturer.kt): `app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/service/A11yScreenCapturer.kt`
- [Gesture tapper](https://github.com/futurelesswindchan/kazefactor/blob/master/app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/service/GestureTapper.kt): `app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/service/GestureTapper.kt`
- [Refresh state machine](https://github.com/futurelesswindchan/kazefactor/blob/master/core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/loop/RefreshEngine.kt): `core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/loop/RefreshEngine.kt`
- [Candidate decisions](https://github.com/futurelesswindchan/kazefactor/blob/master/core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/loop/Decision.kt): `core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/loop/Decision.kt`
- [Engine state](https://github.com/futurelesswindchan/kazefactor/blob/master/core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/loop/EngineState.kt): `core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/loop/EngineState.kt`

### Persistence

- [Recipe repository](https://github.com/futurelesswindchan/kazefactor/blob/master/app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/data/repository/RecipeRepository.kt): `app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/data/repository/RecipeRepository.kt`
- [Recipe storage](https://github.com/futurelesswindchan/kazefactor/blob/master/app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/data/datastore/RecipeDataStore.kt): `app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/data/datastore/RecipeDataStore.kt`
- [Engine settings](https://github.com/futurelesswindchan/kazefactor/blob/master/app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/data/datastore/EngineSettingsDataStore.kt): `app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/data/datastore/EngineSettingsDataStore.kt`
- [Calibration profiles](https://github.com/futurelesswindchan/kazefactor/blob/master/app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/data/datastore/CalibrationProfileDataStore.kt): `app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/data/datastore/CalibrationProfileDataStore.kt`

### Other components

- **Player**

## Connections

- Player → App navigation: opens (evidence: `README.md`)
- App navigation → Recipe screens: routes to (evidence: `app/src/main/java/io/github/futurelesswindchan/kazefactor/MainActivity.kt`)
- App navigation → Recipe view models: creates (evidence: `app/src/main/java/io/github/futurelesswindchan/kazefactor/MainActivity.kt`)
- Recipe screens → Recipe view models: uses (evidence: `app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/ui/screen/RecipeListScreen.kt`)
- Recipe view models → Recipe repository: queries (evidence: `app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/domain/viewmodel/RecipeListViewModel.kt`)
- Recipe repository → Recipe storage: reads and writes (evidence: `app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/data/repository/RecipeRepository.kt`)
- Recipe repository → Rules and probability: validates (evidence: `app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/data/repository/RecipeRepository.kt`)
- Recipe repository → Factor database: uses (evidence: `app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/data/repository/RecipeRepository.kt`)
- Rules and probability → Recipe and factors: checks (evidence: `core-domain/src/main/kotlin/io/github/futurelesswindchan/kazefactor/domain/rule/RuleEngine.kt`)
- Rules and probability → Factor database: consults (evidence: `core-domain/src/main/kotlin/io/github/futurelesswindchan/kazefactor/domain/rule/RuleEngine.kt`)
- Recipe code UI → Recipe code codec: encodes codes
- Player → Permission guide: sets up service (evidence: `README.md`)
- Player → Control overlay: controls refresh (evidence: `README.md`)
- Accessibility service → Screen capture: creates (evidence: `app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/service/KazeAccessibilityService.kt`)
- Accessibility service → Gesture tapper: creates (evidence: `app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/service/KazeAccessibilityService.kt`)
- Accessibility service → Refresh state machine: assembles (evidence: `app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/service/KazeAccessibilityService.kt`)
- Accessibility service → Control overlay: connects (evidence: `app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/service/KazeAccessibilityService.kt`)
- Refresh state machine → Screen capture: captures frames (evidence: `core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/loop/RefreshEngine.kt`)
- Refresh state machine → Gesture tapper: sends taps (evidence: `core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/loop/RefreshEngine.kt`)
- Refresh state machine → Frame recognition: analyzes frames (evidence: `core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/loop/RefreshEngine.kt`)
- Refresh state machine → Candidate decisions: evaluates candidates (evidence: `core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/loop/RefreshEngine.kt`)
- Refresh state machine → Auto calibration: calibrates frames (evidence: `core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/loop/RefreshEngine.kt`)
- Refresh state machine → Profile verification: verifies profile (evidence: `core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/loop/RefreshEngine.kt`)
- Refresh state machine → Engine state: publishes state (evidence: `core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/loop/EngineState.kt`)
- Candidate decisions → Recipe and factors: matches recipe (evidence: `README.md`)
- Auto calibration → Frame recognition: validates slots (evidence: `core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/vision/Calibrator.kt`)
- Auto calibration → Image operations: processes pixels (evidence: `core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/vision/Calibrator.kt`)
- Manual edge snapping → Coordinate calibration: fits coordinates (evidence: `core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/vision/Snapper.kt`)
- Profile verification → Profile model: checks profile (evidence: `core-engine/src/main/kotlin/io/github/futurelesswindchan/kazefactor/engine/vision/CalibrationProfile.kt`)
- Calibration profiles → Profile model: persists profile (evidence: `app/src/main/kotlin/io/github/futurelesswindchan/kazefactor/data/datastore/CalibrationProfileDataStore.kt`)
- Engine settings → Refresh state machine: provides settings
