decentralized mesh chat
This report summarizes scanner evidence for permissionlesstech/bitchat-android, a Kotlin project with 7,785 GitHub stars. SynthScan examined 148,172 lines of code across 618 source files, recording 352 pattern matches distributed across 11 syntactic categories. The legacy adjusted pattern signal is 23.2 (Elevated pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 45 finding(s).
Are imports declared and package/API names verified? 295 finding(s).
Are wrappers, guards, and repeated structures necessary? 33 finding(s).
Which changes need focused human review? 352 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 352 distinct pattern matches across 11 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …rc/test/java/com/bitchat/android/ui/ChatUIUtilsTest.kt | 180 | private fun androidx.compose.ui.graphics.Color.isSpecified() = | CODE |
| CRITICAL⚡ | app/src/main/java/com/bitchat/android/MainActivity.kt | 115 | com.bitchat.android.service.AppShutdownCoordinator.cancelPendingShutdown() | CODE |
| CRITICAL⚡ | app/src/main/java/com/bitchat/android/MainActivity.kt | 124 | meshService = com.bitchat.android.service.MeshServiceHolder.getOrCreate(applicationContext) | CODE |
| CRITICAL⚡ | app/src/main/java/com/bitchat/android/MainActivity.kt | 125 | unifiedMeshService = com.bitchat.android.service.MeshServiceHolder.getUnifiedOrCreate(applicationContext) | CODE |
| CRITICAL | app/src/main/java/com/bitchat/android/MainActivity.kt | 397 | val bleRequired = try { com.bitchat.android.ui.debug.DebugPreferenceManager.getBleEnabled(true) } catch (_: Exce | CODE |
| CRITICAL | app/src/main/java/com/bitchat/android/MainActivity.kt | 436 | !com.bitchat.android.onboarding.BackgroundLocationPreferenceManager.isSkipped(this@MainActivity) | CODE |
| CRITICAL | app/src/main/java/com/bitchat/android/MainActivity.kt | 499 | com.bitchat.android.wifiaware.WifiAwareController.startIfPossible() | CODE |
| CRITICAL | app/src/main/java/com/bitchat/android/MainActivity.kt | 564 | val bleRequired2 = try { com.bitchat.android.ui.debug.DebugPreferenceManager.getBleEnabled(true) } catch (_: Exc | CODE |
| CRITICAL | app/src/main/java/com/bitchat/android/MainActivity.kt | 606 | com.bitchat.android.service.MeshForegroundService.start(applicationContext) | CODE |
| CRITICAL | app/src/main/java/com/bitchat/android/MainActivity.kt | 690 | com.bitchat.android.nostr.LocationNotesInitializer.initialize(this@MainActivity) | CODE |
| CRITICAL | app/src/main/java/com/bitchat/android/MainActivity.kt | 731 | com.bitchat.android.service.AppShutdownCoordinator.cancelPendingShutdown() | CODE |
| CRITICAL | app/src/main/java/com/bitchat/android/MainActivity.kt | 759 | val bleRequired = try { com.bitchat.android.ui.debug.DebugPreferenceManager.getBleEnabled(true) } catch (_: | CODE |
| CRITICAL | app/src/main/java/com/bitchat/android/MainActivity.kt | 777 | com.bitchat.android.wifiaware.WifiAwareController.startIfPossible() | CODE |
| CRITICAL | app/src/main/java/com/bitchat/android/MainActivity.kt | 838 | val channelId = com.bitchat.android.geohash.ChannelID.Location(geohashChannel) | CODE |
| CRITICAL | …rc/main/java/com/bitchat/android/BitchatApplication.kt | 17 | com.bitchat.android.mesh.PowerManager.getInstance(this).start() | CODE |
| CRITICAL⚡ | …rc/main/java/com/bitchat/android/BitchatApplication.kt | 29 | try { com.bitchat.android.nostr.LocationNotesInitializer.initialize(this) } catch (_: Exception) { } | CODE |
| CRITICAL⚡ | …rc/main/java/com/bitchat/android/BitchatApplication.kt | 33 | com.bitchat.android.favorites.FavoritesPersistenceService.initialize(this) | CODE |
| CRITICAL⚡ | …rc/main/java/com/bitchat/android/BitchatApplication.kt | 40 | com.bitchat.android.services.AppStateStore.initializeConversationPersistence(this) | CODE |
| CRITICAL⚡ | …rc/main/java/com/bitchat/android/BitchatApplication.kt | 45 | com.bitchat.android.nostr.NostrIdentityBridge.getCurrentNostrIdentity(this) | CODE |
| CRITICAL⚡ | …rc/main/java/com/bitchat/android/BitchatApplication.kt | 52 | com.bitchat.android.ui.theme.ChatUiModeManager.init(this) | CODE |
| CRITICAL⚡ | …rc/main/java/com/bitchat/android/BitchatApplication.kt | 55 | try { com.bitchat.android.ui.debug.DebugPreferenceManager.init(this) } catch (_: Exception) { } | CODE |
| CRITICAL⚡ | …rc/main/java/com/bitchat/android/BitchatApplication.kt | 59 | val enabled = com.bitchat.android.ui.debug.DebugPreferenceManager.getWifiAwareEnabled(false) | CODE |
| CRITICAL⚡ | …rc/main/java/com/bitchat/android/BitchatApplication.kt | 60 | com.bitchat.android.wifiaware.WifiAwareController.initialize(this, enabled) | CODE |
| CRITICAL⚡ | …rc/main/java/com/bitchat/android/BitchatApplication.kt | 65 | com.bitchat.android.nostr.GeohashAliasRegistry.initialize(this) | CODE |
| CRITICAL⚡ | …rc/main/java/com/bitchat/android/BitchatApplication.kt | 66 | com.bitchat.android.nostr.GeohashConversationRegistry.initialize(this) | CODE |
| CRITICAL⚡ | …rc/main/java/com/bitchat/android/BitchatApplication.kt | 71 | try { com.bitchat.android.nostr.NostrBackgroundRuntime.initialize(this) } catch (_: Exception) { } | CODE |
| CRITICAL⚡ | …rc/main/java/com/bitchat/android/BitchatApplication.kt | 74 | try { com.bitchat.android.service.MeshServicePreferences.init(this) } catch (_: Exception) { } | CODE |
| CRITICAL⚡ | …rc/main/java/com/bitchat/android/BitchatApplication.kt | 77 | try { com.bitchat.android.service.MeshForegroundService.start(this) } catch (_: Exception) { } | CODE |
| CRITICAL | …/main/java/com/bitchat/android/mesh/PacketProcessor.kt | 19 | private val debugManager by lazy { try { com.bitchat.android.ui.debug.DebugSettingsManager.getInstance() } catch (e: | CODE |
| CRITICAL | …com/bitchat/android/mesh/BluetoothPacketBroadcaster.kt | 85 | val manager = com.bitchat.android.ui.debug.DebugSettingsManager.getInstance() | CODE |
| CRITICAL⚡ | …com/bitchat/android/mesh/BluetoothGattServerManager.kt | 57 | com.bitchat.android.ui.debug.DebugSettingsManager.getInstance().bleEnabled.value | CODE |
| CRITICAL⚡ | …com/bitchat/android/mesh/BluetoothGattServerManager.kt | 59 | try { com.bitchat.android.ui.debug.DebugPreferenceManager.getBleEnabled(true) } catch (_: Exception) { true | CODE |
| CRITICAL⚡ | …com/bitchat/android/mesh/BluetoothGattServerManager.kt | 65 | (try { com.bitchat.android.ui.debug.DebugSettingsManager.getInstance().gattServerEnabled.value } catch (_: E | CODE |
| CRITICAL | app/src/main/java/com/bitchat/android/mesh/MeshCore.kt | 219 | try { com.bitchat.android.services.AppStateStore.setTransportPeers(transport.id, peerIDs) } catch (_: Ex | CODE |
| CRITICAL⚡ | app/src/main/java/com/bitchat/android/mesh/MeshCore.kt | 415 | com.bitchat.android.services.AppStateStore.updatePrivateMessageStatus( | CODE |
| CRITICAL⚡ | app/src/main/java/com/bitchat/android/mesh/MeshCore.kt | 417 | com.bitchat.android.model.DeliveryStatus.Delivered(peerID, java.util.Date()) | CODE |
| CRITICAL⚡ | app/src/main/java/com/bitchat/android/mesh/MeshCore.kt | 425 | com.bitchat.android.services.AppStateStore.updatePrivateMessageStatus( | CODE |
| CRITICAL⚡ | app/src/main/java/com/bitchat/android/mesh/MeshCore.kt | 427 | com.bitchat.android.model.DeliveryStatus.Read(peerID, java.util.Date()) | CODE |
| CRITICAL | app/src/main/java/com/bitchat/android/mesh/MeshCore.kt | 787 | data = com.bitchat.android.services.VerificationService.buildVerifyChallenge(noiseKeyHex, nonceA) | CODE |
| CRITICAL | app/src/main/java/com/bitchat/android/mesh/MeshCore.kt | 793 | val tlv = com.bitchat.android.services.VerificationService.buildVerifyResponse(noiseKeyHex, nonceA) ?: return | CODE |
| CRITICAL | app/src/main/java/com/bitchat/android/mesh/MeshCore.kt | 875 | tlvPayload += com.bitchat.android.services.meshgraph.GossipTLV.encodeNeighbors(directPeersForGossip) | CODE |
| CRITICAL | app/src/main/java/com/bitchat/android/mesh/MeshCore.kt | 877 | com.bitchat.android.services.meshgraph.MeshGraphService.getInstance() | CODE |
| CRITICAL | app/src/main/java/com/bitchat/android/mesh/MeshCore.kt | 891 | try { com.bitchat.android.services.AppStateStore.setTransportDirectPeers(transport.id, localDirect) } catch | CODE |
| CRITICAL | app/src/main/java/com/bitchat/android/mesh/MeshCore.kt | 893 | com.bitchat.android.services.AppStateStore.getDirectPeers().ifEmpty { localDirect } | CODE |
| CRITICAL | app/src/main/java/com/bitchat/android/mesh/MeshCore.kt | 1049 | val path = com.bitchat.android.services.meshgraph.RoutePlanner.shortestPath( | CODE |
| CRITICAL | …c/main/java/com/bitchat/android/mesh/MessageHandler.kt | 84 | val noisePayload = com.bitchat.android.model.NoisePayload.decode(decryptedData) | CODE |
| CRITICAL | …c/main/java/com/bitchat/android/mesh/MessageHandler.kt | 93 | val privateMessage = com.bitchat.android.model.PrivateMessagePacket.decode(noisePayload.data) | CODE |
| CRITICAL⚡ | …c/main/java/com/bitchat/android/mesh/MessageHandler.kt | 128 | val file = com.bitchat.android.model.BitchatFilePacket.decode(noisePayload.data) | CODE |
| CRITICAL⚡ | …c/main/java/com/bitchat/android/mesh/MessageHandler.kt | 132 | val savedPath = com.bitchat.android.features.file.FileUtils.saveIncomingFile(appContext, file) | CODE |
| CRITICAL⚡ | …c/main/java/com/bitchat/android/mesh/MessageHandler.kt | 137 | type = com.bitchat.android.features.file.FileUtils.messageTypeForMime(file.mimeType), | CODE |
| CRITICAL | …c/main/java/com/bitchat/android/mesh/MessageHandler.kt | 353 | val neighborsOrNull = com.bitchat.android.services.meshgraph.GossipTLV.decodeNeighborsFromAnnouncementPayloa | CODE |
| CRITICAL | …c/main/java/com/bitchat/android/mesh/MessageHandler.kt | 354 | com.bitchat.android.services.meshgraph.MeshGraphService.getInstance() | CODE |
| CRITICAL⚡ | …c/main/java/com/bitchat/android/mesh/MessageHandler.kt | 466 | val isFileTransfer = com.bitchat.android.protocol.MessageType.fromValue(packet.type) == com.bitchat.android. | CODE |
| CRITICAL⚡ | …c/main/java/com/bitchat/android/mesh/MessageHandler.kt | 467 | val file = com.bitchat.android.model.BitchatFilePacket.decode(packet.payload) | CODE |
| CRITICAL⚡ | …c/main/java/com/bitchat/android/mesh/MessageHandler.kt | 470 | val savedPath = com.bitchat.android.features.file.FileUtils.saveIncomingFile(appContext, file) | CODE |
| CRITICAL⚡ | …c/main/java/com/bitchat/android/mesh/MessageHandler.kt | 475 | type = com.bitchat.android.features.file.FileUtils.messageTypeForMime(file.mimeType), | CODE |
| CRITICAL | …c/main/java/com/bitchat/android/mesh/MessageHandler.kt | 506 | val isFileTransfer = com.bitchat.android.protocol.MessageType.fromValue(packet.type) == | CODE |
| CRITICAL⚡ | …c/main/java/com/bitchat/android/mesh/MessageHandler.kt | 526 | val file = com.bitchat.android.model.BitchatFilePacket.decode(packet.payload) | CODE |
| CRITICAL⚡ | …c/main/java/com/bitchat/android/mesh/MessageHandler.kt | 529 | val savedPath = com.bitchat.android.features.file.FileUtils.saveIncomingFile(appContext, file) | CODE |
| CRITICAL⚡ | …c/main/java/com/bitchat/android/mesh/MessageHandler.kt | 534 | type = com.bitchat.android.features.file.FileUtils.messageTypeForMime(file.mimeType), | CODE |
| 229 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/release_gate/test_release_gate.py | 102 | def test_manifest_covers_every_release_category(self): | CODE |
| LOW⚡ | tools/release_gate/test_release_gate.py | 116 | def test_documented_matrix_template_is_schema_valid_but_not_runnable(self): | CODE |
| LOW⚡ | tools/release_gate/test_release_gate.py | 122 | def test_matrix_enforces_distinct_api_manufacturer_and_counterpart_clients(self): | CODE |
| LOW⚡ | tools/release_gate/test_release_gate.py | 132 | def test_privacy_policy_rejects_identifiers_paths_addresses_and_long_ids(self): | CODE |
| LOW | tools/release_gate/test_release_gate.py | 146 | def test_initialize_creates_disposable_fixtures_and_pending_results(self): | CODE |
| LOW | tools/release_gate/test_release_gate.py | 174 | def test_record_requires_structured_evidence_and_rejects_pii(self): | CODE |
| LOW | tools/release_gate/test_release_gate.py | 206 | def test_complete_run_requires_all_evidence_traces_and_endurance_bounds(self): | CODE |
| LOW | tools/release_gate/test_release_gate.py | 258 | def test_manifest_tampering_after_initialization_is_detected(self): | CODE |
| LOW | tools/release_gate/test_release_gate.py | 268 | def test_trace_accepts_only_aggregate_metrics(self): | CODE |
| LOW | tools/release_gate/test_release_gate.py | 283 | def test_evidence_parser_is_typed_and_privacy_checked(self): | CODE |
| LOW | tools/release_gate/test_release_gate.py | 292 | def test_adb_device_count_never_returns_selectors(self, _find_adb): | CODE |
| LOW | tools/release_gate/test_release_gate.py | 303 | def test_adb_probe_emits_only_logical_device_metadata(self, run_adb): | CODE |
| LOW | tools/release_gate/test_release_gate.py | 316 | def test_disposable_cleanup_targets_the_real_application_id(self, run_adb): | CODE |
| LOW | tools/release_gate/test_release_gate.py | 336 | def test_resource_snapshot_returns_only_aggregate_metrics(self, run_adb): | CODE |
| LOW | tools/release_gate/mesh_lab.py | 320 | def make_private_media_fixtures(directory: Path, seed: int = 7331) -> dict[str, dict]: | CODE |
| LOW | tools/release_gate/mesh_lab.py | 384 | def wait_for_mutual_discovery(a: Device, b: Device) -> None: | CODE |
| LOW | tools/release_gate/mesh_lab.py | 427 | def scenario_favorite_verification(a: Device, b: Device) -> dict: | CODE |
| LOW | tools/release_gate/mesh_lab.py | 764 | def scenario_session_recovery(a: Device, b: Device) -> dict: | CODE |
| LOW | tools/release_gate/android_lab.py | 109 | def prepare_disposable_device(serial: str, confirmed: bool) -> None: | CODE |
| LOW | tools/release_gate/android_lab.py | 118 | def collect_resource_snapshot(serial: str) -> dict[str, int | bool]: | CODE |
| LOW | app/src/main/java/com/bitchat/android/ui/DataManager.kt | 13 | class DataManager(private val context: Context) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tools/arti-build/build-arti.sh | 22 | # ============================================================================== | COMMENT |
| MEDIUM⚡ | tools/arti-build/build-arti.sh | 24 | # ============================================================================== | COMMENT |
| MEDIUM | tools/arti-build/build-arti.sh | 138 | # ============================================================================== | COMMENT |
| MEDIUM | tools/arti-build/build-arti.sh | 140 | # ============================================================================== | COMMENT |
| MEDIUM | tools/arti-build/build-arti.sh | 606 | # ============================================================================== | COMMENT |
| MEDIUM | tools/arti-build/build-arti.sh | 608 | # ============================================================================== | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/arti-build/build-arti.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | app/src/test/kotlin/com/bitchat/FileTransferTest.kt | 321 | // Additional assertions would test different file types | COMMENT |
| LOW | …com/bitchat/android/mesh/BluetoothConnectionManager.kt | 241 | // try { | COMMENT |
| LOW | …itchat/android/noise/southernstorm/crypto/NewHope.java | 721 | 1036095,929607,995151,962391,896859,1027935,946023,1011567, | COMMENT |
| LOW | …om/bitchat/android/services/MessageRetentionService.kt | 1 | //package com.bitchat.android.services | COMMENT |
| LOW | …om/bitchat/android/services/MessageRetentionService.kt | 21 | // companion object { | COMMENT |
| LOW | …om/bitchat/android/services/MessageRetentionService.kt | 41 | // retentionDir.mkdirs() | COMMENT |
| LOW | …om/bitchat/android/services/MessageRetentionService.kt | 61 | // prefs.edit().putStringSet(KEY_FAVORITE_CHANNELS, currentFavorites).apply() | COMMENT |
| LOW | …om/bitchat/android/services/MessageRetentionService.kt | 81 | // | COMMENT |
| LOW | …om/bitchat/android/services/MessageRetentionService.kt | 101 | // return@withContext | COMMENT |
| LOW | …om/bitchat/android/services/MessageRetentionService.kt | 121 | // if (!isChannelBookmarked(channel)) { | COMMENT |
| LOW | …om/bitchat/android/services/MessageRetentionService.kt | 141 | // channelFile.delete() | COMMENT |
| LOW | …om/bitchat/android/services/MessageRetentionService.kt | 161 | // | COMMENT |
| LOW | …om/bitchat/android/services/MessageRetentionService.kt | 181 | // } | COMMENT |
| LOW | …om/bitchat/android/services/MessageRetentionService.kt | 201 | // | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tools/release_gate/mesh_lab.py | 143 | except Exception: | CODE |
| HIGH | tools/release_gate/mesh_lab.py | 252 | except Exception: | CODE |
| HIGH | tools/release_gate/mesh_lab.py | 746 | except MeshLabError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …in/java/com/bitchat/android/ui/MessageSpecialParser.kt | 62 | // 1) Use Android's WEB_URL for robust detection of http(s) and www.* | COMMENT |
| MEDIUM | …in/java/com/bitchat/android/protocol/BinaryProtocol.kt | 385 | // Try decode as-is first (robust when padding wasn't applied) - iOS fix | COMMENT |
| MEDIUM | …in/java/com/bitchat/android/nostr/NostrRelayManager.kt | 91 | // Persistent subscription tracking for robust reconnection | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/release_gate/mesh_lab.py | 20 | CODE | |
| LOW | tools/release_gate/release_gate.py | 10 | CODE | |
| LOW | tools/release_gate/android_lab.py | 8 | CODE | |
| LOW | …reenshot-studio/scripts/validate_readme_screenshots.py | 4 | CODE | |
| LOW | …-ui-visual-review/scripts/validate_capture_manifest.py | 4 | CODE | |
| LOW | …s/android-ui-visual-review/scripts/upload_pr_images.py | 4 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …in/java/com/bitchat/android/model/BitchatFilePacket.kt | 63 | val contentLenFieldLen = 4 // UInt32 for CONTENT TLV as requested | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/release_gate/mesh_lab.py | 912 | CODE | |
| LOW | tools/release_gate/mesh_lab.py | 985 | CODE | |
| LOW | tools/release_gate/release_gate.py | 685 | CODE | |
| LOW | tools/release_gate/android_lab.py | 178 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/release_gate/mesh_lab.py | 143 | except Exception: | CODE |
| LOW | tools/release_gate/mesh_lab.py | 241 | except Exception as error: | CODE |
| LOW | tools/release_gate/mesh_lab.py | 252 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tools/arti-build/build-arti.sh | 14 | # Usage: | COMMENT |