An open source cross-platform USB stack for embedded system
This report presents the forensic synthetic code analysis of hathach/tinyusb, a C project with 7,065 GitHub stars. SynthScan v2.0 examined 355,965 lines of code across 1659 source files, recording 3797 pattern matches distributed across 18 syntactic categories. The overall adjusted score of 10.1 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 3797 distinct pattern matches across 18 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .pre-commit-config.yaml | 61 | # examples (tusb_config.h, skip/only.txt), hw/mcu, the rig rosters under test/hil | COMMENT |
| LOW | .pre-commit-config.yaml | 101 | # for h in $fuzz_harness | COMMENT |
| LOW | tools/ci_select.py | 81 | - a ValueError, which every `except OSError` fail-open below would let through as a | COMMENT |
| LOW | tools/ci_select.py | 121 | r'tools/(build_doc|check_example_pids|file2carray|gen_doc|gen_presets|iar_gen|' | COMMENT |
| LOW | tools/ci_select.py | 361 | isinstance(node.targets[0], ast.Name) and | COMMENT |
| LOW | tools/ci_select.py | 481 | return out | COMMENT |
| LOW | tools/ci_select.py | 981 | print(f'ci_select[build]: {r}', file=sys.stderr) | COMMENT |
| LOW | tools/rtt.py | 461 | cmd += ['-c', f'adapter serial {serial_no}'] | COMMENT |
| LOW | hw/bsp/ansi_escape.h | 41 | COMMENT | |
| LOW | hw/bsp/ansi_escape.h | 61 | /** @} */ | COMMENT |
| LOW | hw/bsp/ansi_escape.h | 81 | #define ANSI_BG_RED CSI_SGR(41) | COMMENT |
| LOW | hw/bsp/board.c | 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | COMMENT |
| LOW | hw/bsp/board_api.h | 41 | COMMENT | |
| LOW | hw/bsp/board_api.h | 61 | COMMENT | |
| LOW | hw/bsp/stm32wba/stm32wbaxx_hal_conf.h | 41 | // #define HAL_CRYP_MODULE_ENABLED | COMMENT |
| LOW | hw/bsp/stm32wba/stm32wbaxx_hal_conf.h | 61 | // #define HAL_RTC_MODULE_ENABLED | COMMENT |
| LOW | hw/bsp/stm32wba/stm32wbaxx_hal_conf.h | 101 | #endif /* LSI_VALUE */ /*!< Value of the Internal Low Speed oscillator in Hz | COMMENT |
| LOW | hw/bsp/stm32wba/stm32wbaxx_hal_conf.h | 161 | #define USE_HAL_ADC_REGISTER_CALLBACKS 0U /* ADC register callback disabled */ | COMMENT |
| LOW | hw/bsp/stm32wba/stm32wbaxx_hal_conf.h | 201 | COMMENT | |
| LOW | hw/bsp/stm32wba/stm32wbaxx_hal_conf.h | 221 | COMMENT | |
| LOW | hw/bsp/stm32wba/stm32wbaxx_hal_conf.h | 241 | COMMENT | |
| LOW | hw/bsp/stm32wba/stm32wbaxx_hal_conf.h | 261 | COMMENT | |
| LOW | hw/bsp/stm32wba/stm32wbaxx_hal_conf.h | 281 | COMMENT | |
| LOW | hw/bsp/stm32wba/stm32wbaxx_hal_conf.h | 301 | COMMENT | |
| LOW | hw/bsp/stm32wba/stm32wbaxx_hal_conf.h | 321 | COMMENT | |
| LOW | hw/bsp/stm32wba/boards/stm32wba_nucleo/board.h | 41 | #define LED_PIN GPIO_PIN_8 | COMMENT |
| LOW | hw/bsp/stm32wba/boards/stm32wba_nucleo/board.h | 61 | // These pints are only used for USB and must be in analog mode when not used. | COMMENT |
| LOW | hw/bsp/stm32wba/FreeRTOSConfig/FreeRTOSConfig.h | 41 | * | COMMENT |
| LOW | hw/bsp/stm32wba/FreeRTOSConfig/FreeRTOSConfig.h | 61 | #define configUSE_PORT_OPTIMISED_TASK_SELECTION 0 | COMMENT |
| LOW | hw/bsp/stm32wba/FreeRTOSConfig/FreeRTOSConfig.h | 81 | #define configSUPPORT_DYNAMIC_ALLOCATION 0 | COMMENT |
| LOW | hw/bsp/stm32wba/FreeRTOSConfig/FreeRTOSConfig.h | 101 | #define configUSE_TIMERS 1 | COMMENT |
| LOW | hw/bsp/stm32wba/FreeRTOSConfig/FreeRTOSConfig.h | 121 | #define INCLUDE_xEventGroupSetBitFromISR 0 | COMMENT |
| LOW | hw/bsp/msp432e4/FreeRTOSConfig/FreeRTOSConfig.h | 41 | * | COMMENT |
| LOW | hw/bsp/msp432e4/FreeRTOSConfig/FreeRTOSConfig.h | 61 | #define configMINIMAL_STACK_SIZE ( 128 ) | COMMENT |
| LOW | hw/bsp/msp432e4/FreeRTOSConfig/FreeRTOSConfig.h | 81 | #define configUSE_TICK_HOOK 0 | COMMENT |
| LOW | hw/bsp/msp432e4/FreeRTOSConfig/FreeRTOSConfig.h | 101 | COMMENT | |
| LOW | hw/bsp/mm32/boards/mm32f327x_mb39/board.h | 1 | /* metadata: | COMMENT |
| LOW | hw/bsp/mm32/boards/mm32f327x_mb39/board.h | 21 | #define UART_TX_PIN 9 | COMMENT |
| LOW | hw/bsp/mm32/FreeRTOSConfig/FreeRTOSConfig.h | 41 | * | COMMENT |
| LOW | hw/bsp/mm32/FreeRTOSConfig/FreeRTOSConfig.h | 61 | #define configMAX_PRIORITIES ( 5 ) | COMMENT |
| LOW | hw/bsp/mm32/FreeRTOSConfig/FreeRTOSConfig.h | 81 | #define configUSE_IDLE_HOOK 0 | COMMENT |
| LOW | hw/bsp/mm32/FreeRTOSConfig/FreeRTOSConfig.h | 101 | #define configTIMER_TASK_STACK_DEPTH configMINIMAL_STACK_SIZE | COMMENT |
| LOW | hw/bsp/rp2040/family.c | 41 | COMMENT | |
| LOW | hw/bsp/rp2040/family.c | 61 | #endif | COMMENT |
| LOW | hw/bsp/rp2040/family.c | 81 | //--------------------------------------------------------------------+ | COMMENT |
| LOW | hw/bsp/rp2040/family.c | 161 | #if defined(TRACE_ETM) && defined(PICO_RP2350) && PICO_RP2350 == 1 | COMMENT |
| LOW | hw/bsp/rp2040/family.c | 201 | #if (CFG_TUH_ENABLED && CFG_TUH_RPI_PIO_USB) || (CFG_TUD_ENABLED && CFG_TUD_RPI_PIO_USB) | COMMENT |
| LOW | hw/bsp/rp2040/family.c | 241 | COMMENT | |
| LOW | hw/bsp/rp2040/family.c | 341 | (void) pcTaskName; | COMMENT |
| LOW | hw/bsp/rp2040/boards/raspberry_pi_pico_w/board.h | 41 | //--------------------------------------------------------------------+ | COMMENT |
| LOW | hw/bsp/rp2040/boards/raspberry_pi_pico_w/board.h | 61 | #define MAX3421_MISO_PIN PICO_DEFAULT_SPI_RX_PIN | COMMENT |
| LOW | hw/bsp/rp2040/boards/feather_rp2040_max3421/board.h | 41 | #define PICO_DEFAULT_PIO_USB_VBUSEN_PIN 18 | COMMENT |
| LOW | hw/bsp/rp2040/boards/raspberry_pi_pico/board.h | 41 | //--------------------------------------------------------------------+ | COMMENT |
| LOW | hw/bsp/rp2040/boards/raspberry_pi_pico/board.h | 61 | #define MAX3421_MISO_PIN PICO_DEFAULT_SPI_RX_PIN | COMMENT |
| LOW | …0/boards/adafruit_metro_rp2350/adafruit_metro_rp2350.h | 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | COMMENT |
| LOW | …0/boards/adafruit_metro_rp2350/adafruit_metro_rp2350.h | 41 | #endif | COMMENT |
| LOW | …0/boards/adafruit_metro_rp2350/adafruit_metro_rp2350.h | 61 | #ifndef PICO_DEFAULT_LED_PIN | COMMENT |
| LOW | …0/boards/adafruit_metro_rp2350/adafruit_metro_rp2350.h | 81 | #ifndef PICO_DEFAULT_SPI | COMMENT |
| LOW | …0/boards/adafruit_metro_rp2350/adafruit_metro_rp2350.h | 101 | #endif | COMMENT |
| LOW | hw/bsp/rp2040/boards/adafruit_metro_rp2350/board.h | 41 | //--------------------------------------------------------------------+ | COMMENT |
| 2880 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/build.py | 104 | def resolve_example_target_groups(build_targets, examples, board, extra_defines=()): | CODE |
| LOW | tools/ci_select.py | 385 | def get_deps_changed_families(base_text: str, head_text: str, repo_root: str): | CODE |
| LOW | tools/ci_select.py | 905 | def selection_args_by_flasher(sel, rosters): | CODE |
| LOW | tools/ci_select.py | 939 | def get_deps_families_from_git(base, repo_root): | CODE |
| LOW⚡ | test/hil/hil_test.py | 517 | def test_dual_host_info_to_device_cdc(board): | CODE |
| LOW⚡ | test/hil/hil_test.py | 825 | def test_host_msc_file_explorer_freertos(board): | CODE |
| LOW⚡ | test/hil/hil_test.py | 836 | def test_device_cdc_dual_ports(board): | CODE |
| LOW | test/hil/hil_test.py | 743 | def test_host_msc_file_explorer(board): | CODE |
| LOW | test/hil/hil_test.py | 904 | def test_device_cdc_msc_freertos(board): | CODE |
| LOW | test/hil/hil_test.py | 922 | def test_device_cdc_msc_throughput(board): | CODE |
| LOW | test/hil/hil_test.py | 1085 | def test_device_hid_boot_interface(board): | CODE |
| LOW | test/hil/hil_test.py | 1100 | def test_device_hid_composite_freertos(id): | CODE |
| LOW | test/hil/hil_test.py | 1105 | def test_device_printer_to_cdc(board): | CODE |
| LOW | test/hil/hil_test.py | 1282 | def test_device_net_lwip_webserver(board): | CODE |
| LOW | test/hil/hil_test.py | 1415 | def test_device_audio_test_freertos(board): | CODE |
| LOW | test/hil/hil_test.py | 1476 | def test_device_hid_generic_inout(board): | CODE |
| LOW⚡ | test/hil/test/test_ci_metrics.py | 270 | def test_each_sentinel_appears_once_on_a_default_line(self): | CODE |
| LOW⚡ | test/hil/test/test_ci_metrics.py | 277 | def test_the_selection_travels_as_a_file(self): | CODE |
| LOW⚡ | test/hil/test/test_ci_metrics.py | 285 | def test_the_rewriter_names_the_same_sentinels(self): | CODE |
| LOW⚡ | test/hil/test/test_ci_metrics.py | 292 | def test_the_rewrite_precedes_the_scoped_entries(self): | CODE |
| LOW⚡ | test/hil/test/test_ci_metrics.py | 327 | def test_no_step_execs_with_the_selection_in_its_environment(self): | CODE |
| LOW⚡ | test/hil/test/test_ci_metrics.py | 333 | def test_the_file_is_written_before_its_first_reader(self): | CODE |
| LOW⚡ | test/hil/test/test_ci_metrics.py | 338 | def test_pr_derived_env_values_are_character_guarded(self): | CODE |
| LOW⚡ | test/hil/test/test_ci_metrics.py | 497 | def test_a_real_family_list_stays_scoped(self): | CODE |
| LOW⚡ | test/hil/test/test_ci_metrics.py | 505 | def test_a_regex_metacharacter_in_a_family_name_falls_open(self): | CODE |
| LOW⚡ | test/hil/test/test_ci_metrics.py | 514 | def test_membrowse_upload_is_not_scoped_by_the_pr_filter(self): | CODE |
| LOW | test/hil/test/test_ci_metrics.py | 53 | def test_by_example_json_roundtrips_as_combine_input(self): | CODE |
| LOW | test/hil/test/test_ci_metrics.py | 72 | def test_by_example_expansion_is_keyed_on_the_filename(self): | CODE |
| LOW | test/hil/test/test_ci_metrics.py | 100 | def test_intersection_compare(self): | CODE |
| LOW | test/hil/test/test_ci_metrics.py | 120 | def test_a_different_board_of_the_same_family_is_not_compared(self): | CODE |
| LOW | test/hil/test/test_ci_metrics.py | 141 | def test_empty_intersection_writes_note(self): | CODE |
| LOW | test/hil/test/test_ci_metrics.py | 153 | def test_malformed_files_are_skipped_with_stderr_note(self): | CODE |
| LOW | test/hil/test/test_ci_metrics.py | 184 | def test_missing_base_baseline_gets_its_own_note(self): | CODE |
| LOW | test/hil/test/test_ci_metrics.py | 203 | def test_a_partially_malformed_file_contributes_nothing(self): | CODE |
| LOW | test/hil/test/test_ci_metrics.py | 232 | def test_dropped_footer_is_summarised_not_dumped(self): | CODE |
| LOW | test/hil/test/test_ci_metrics.py | 310 | def test_the_selector_gate_runs_both_suites(self): | CODE |
| LOW | test/hil/test/test_ci_metrics.py | 358 | def test_the_guards_accept_what_the_selector_actually_emits(self): | CODE |
| LOW | test/hil/test/test_ci_metrics.py | 424 | def test_an_unusable_selection_is_unusable_for_both_matrices(self): | CODE |
| LOW | test/hil/test/test_ci_metrics.py | 431 | def test_the_build_extras_drop_when_the_matrix_falls_open(self): | CODE |
| LOW | test/hil/test/test_ci_metrics.py | 482 | def test_an_empty_family_list_is_not_treated_as_unusable(self): | CODE |
| LOW | test/hil/test/test_ci_metrics.py | 530 | def test_the_upload_board_can_diverge_from_the_built_board(self): | CODE |
| LOW⚡ | test/hil/test/test_hil_report.py | 34 | def test_icon_prefixed_metrics_carry_their_verdict(self): | CODE |
| LOW⚡ | test/hil/test/test_hil_report.py | 39 | def test_an_unprefixed_metric_is_a_pass(self): | CODE |
| LOW⚡ | test/hil/test/test_hil_report.py | 45 | def test_a_non_string_cell_does_not_raise(self): | CODE |
| LOW⚡ | test/hil/test/test_hil_report.py | 95 | def test_table_comes_from_rows(self): | CODE |
| LOW⚡ | test/hil/test/test_hil_report.py | 100 | def test_scope_note_appears_above_the_table(self): | CODE |
| LOW⚡ | test/hil/test/test_hil_report.py | 104 | def test_banner_outranks_the_scope_note(self): | CODE |
| LOW⚡ | test/hil/test/test_hil_report.py | 114 | def test_a_document_with_no_rows_still_renders(self): | CODE |
| LOW⚡ | test/hil/test/test_hil_report.py | 118 | def test_a_malformed_row_does_not_raise(self): | CODE |
| LOW⚡ | test/hil/test/test_hil_report.py | 413 | def test_a_torn_sidecar_does_not_lose_the_stuck_boards(self): | CODE |
| LOW⚡ | test/hil/test/test_hil_report.py | 422 | def test_a_roster_entry_without_a_name_does_not_escape(self): | CODE |
| LOW⚡ | test/hil/test/test_hil_report.py | 432 | def test_unwritable_dir_does_not_raise(self): | CODE |
| LOW⚡ | test/hil/test/test_hil_report.py | 471 | def test_one_failing_variant_fails_the_board(self): | CODE |
| LOW⚡ | test/hil/test/test_hil_report.py | 479 | def test_lock_contention_is_a_field_not_a_prefix(self): | CODE |
| LOW⚡ | test/hil/test/test_hil_report.py | 484 | def test_a_board_with_no_row_is_marked_not_run(self): | CODE |
| LOW⚡ | test/hil/test/test_hil_report.py | 490 | def test_a_metric_cell_counts_by_its_icon(self): | CODE |
| LOW⚡ | test/hil/test/test_hil_report.py | 496 | def test_skipped_cells_do_not_fail_a_board(self): | CODE |
| LOW⚡ | test/hil/test/test_hil_report.py | 500 | def test_a_plain_metric_cell_is_a_pass(self): | CODE |
| LOW⚡ | test/hil/test/test_hil_report.py | 508 | def test_a_declared_variant_of_another_board_is_not_stolen(self): | CODE |
| LOW⚡ | test/hil/test/test_hil_report.py | 828 | def test_every_spelling_argparse_accepts_is_detected(self): | CODE |
| 542 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tools/build.py | 51 | # ----------------------------- | COMMENT |
| MEDIUM | tools/build.py | 53 | # ----------------------------- | COMMENT |
| MEDIUM | tools/build.py | 156 | # ----------------------------- | COMMENT |
| MEDIUM | tools/build.py | 158 | # ----------------------------- | COMMENT |
| MEDIUM⚡ | tools/build.py | 229 | # ----------------------------- | COMMENT |
| MEDIUM⚡ | tools/build.py | 231 | # ----------------------------- | COMMENT |
| MEDIUM | tools/build.py | 281 | # ----------------------------- | COMMENT |
| MEDIUM | tools/build.py | 283 | # ----------------------------- | COMMENT |
| MEDIUM | tools/build.py | 374 | # ----------------------------- | COMMENT |
| MEDIUM | tools/build.py | 376 | # ----------------------------- | COMMENT |
| MEDIUM | tools/ci_select.py | 993 | # ------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/ci_select.py | 997 | # ------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/gen_doc.py | 13 | # ----------------------------------------- | COMMENT |
| MEDIUM | tools/gen_doc.py | 15 | # ----------------------------------------- | COMMENT |
| MEDIUM | tools/gen_doc.py | 36 | # ----------------------------------------- | STRING |
| MEDIUM | tools/gen_doc.py | 38 | # ----------------------------------------- | STRING |
| MEDIUM | tools/gen_doc.py | 113 | # ----------------------------------------- | COMMENT |
| MEDIUM | tools/gen_doc.py | 115 | # ----------------------------------------- | COMMENT |
| MEDIUM | tools/gen_doc.py | 163 | # ----------------------------------------- | COMMENT |
| MEDIUM | tools/gen_doc.py | 165 | # ----------------------------------------- | COMMENT |
| MEDIUM | test/unit-test/project.yml | 1 | # ========================================================================= | COMMENT |
| MEDIUM | test/unit-test/project.yml | 6 | # ========================================================================= | COMMENT |
| MEDIUM | test/hil/pymtp.py | 43 | # ---------- | COMMENT |
| MEDIUM | test/hil/pymtp.py | 45 | # ---------- | COMMENT |
| MEDIUM⚡ | test/hil/pymtp.py | 91 | # ---------- | COMMENT |
| MEDIUM⚡ | test/hil/pymtp.py | 93 | # ---------- | COMMENT |
| MEDIUM⚡ | test/hil/pymtp.py | 95 | # ---------- | COMMENT |
| MEDIUM⚡ | test/hil/pymtp.py | 97 | # ---------- | COMMENT |
| MEDIUM⚡ | test/hil/pymtp.py | 399 | # ---------- | COMMENT |
| MEDIUM⚡ | test/hil/pymtp.py | 401 | # ---------- | COMMENT |
| MEDIUM⚡ | test/hil/pymtp.py | 403 | # ---------- | COMMENT |
| MEDIUM⚡ | test/hil/pymtp.py | 405 | # ---------- | COMMENT |
| MEDIUM | test/hil/pymtp.py | 432 | # ---------- | COMMENT |
| MEDIUM | test/hil/pymtp.py | 434 | # ---------- | COMMENT |
| MEDIUM | test/hil/hil_flash.py | 35 | # ------------------------------------------------------------- | COMMENT |
| MEDIUM | test/hil/hil_flash.py | 37 | # ------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/hil/hil_test.py | 514 | # ------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/hil/hil_test.py | 516 | # ------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/hil/hil_test.py | 829 | # ------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/hil/hil_test.py | 831 | # ------------------------------------------------------------- | COMMENT |
| MEDIUM | test/hil/hil_test.py | 559 | # ------------------------------------------------------------- | COMMENT |
| MEDIUM | test/hil/hil_test.py | 561 | # ------------------------------------------------------------- | COMMENT |
| MEDIUM | test/hil/hil_test.py | 1673 | # ------------------------------------------------------------- | COMMENT |
| MEDIUM | test/hil/hil_test.py | 1675 | # ------------------------------------------------------------- | COMMENT |
| MEDIUM | test/hil/helper/hil_lock.py | 162 | # ------------------------------------------------------------- | COMMENT |
| MEDIUM | test/hil/helper/hil_lock.py | 164 | # ------------------------------------------------------------- | COMMENT |
| MEDIUM | test/hil/helper/hil_util.py | 22 | # ------------------------------------------------------------- | COMMENT |
| MEDIUM | test/hil/helper/hil_util.py | 26 | # ------------------------------------------------------------- | COMMENT |
| MEDIUM | …superpowers/plans/2026-08-19-ci-build-family-filter.md | 413 | # ------------------------------------------------------------- | COMMENT |
| MEDIUM | …superpowers/plans/2026-08-19-ci-build-family-filter.md | 417 | # ------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/pr_comment.yml | 73 | # --------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/pr_comment.yml | 78 | # --------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/build.yml | 240 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | .github/workflows/build.yml | 244 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | .github/workflows/build.yml | 411 | # --------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/build.yml | 416 | # --------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/build.yml | 441 | # --------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/build.yml | 443 | # --------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/build.yml | 460 | # --------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/build.yml | 462 | # --------------------------------------- | COMMENT |
| 8 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .pre-commit-config.yaml | 54 | # (~45s: deliberate hang and timeout simulations) and is scoped to the rig harness | COMMENT |
| MEDIUM | tools/ci_select.py | 111 | # test/hil/test/ holds the harness's own unit tests, not the harness: nothing on | COMMENT |
| MEDIUM | tools/ci_select.py | 114 | # The harness itself stays under _FULL_RE's test/hil/ prefix. | COMMENT |
| MEDIUM | tools/ci_select.py | 135 | # tools/rtt.py is part of the harness, not a standalone tool: hil_util imports it | COMMENT |
| MEDIUM | tools/rtt.py | 72 | # whole-call deadline for write() — same env knob as the harness's serial twin | COMMENT |
| MEDIUM | tools/rtt.py | 220 | # stream exactly like an orderly EOF. Raising here raced the harness's | COMMENT |
| MEDIUM | test/hil/mtp_test.py | 6 | # something the harness can abandon: hil_test.test_device_mtp runs it under | COMMENT |
| MEDIUM | test/hil/mtp_test.py | 8 | # pymtp: nothing here may pull in the harness. | COMMENT |
| MEDIUM | test/hil/hil_test.py | 308 | # RTT route is validated manually on native probes but has no harness backend | COMMENT |
| MEDIUM | test/hil/hil_test.py | 329 | # drain-stopped meaning as the serial timeout -- a test failure, not a harness | COMMENT |
| MEDIUM | test/hil/hil_test.py | 332 | # harness bug must not be reported as this board misbehaving. | COMMENT |
| MEDIUM | test/hil/hil_test.py | 1262 | # the only thing the harness can walk away from. | COMMENT |
| MEDIUM | test/hil/hil_test.py | 2193 | # a live worker after terminate() is what distinguishes a wedge from a harness bug. | COMMENT |
| MEDIUM | test/hil/hil_test.py | 2195 | # including it made n >= 1 always and the harness-error branch unreachable. It is killed | COMMENT |
| MEDIUM | test/hil/usbtest.py | 508 | # writable, so sudo is the exception, and the harness must never sudo-kill a pid | COMMENT |
| MEDIUM | test/hil/hil_ci.sh | 291 | # the rtt console/capture tool (rtt skill), harness-critical: hil_util imports it | COMMENT |
| MEDIUM⚡ | test/hil/test/test_hil_rtt.py | 201 | # LATCH eof (so the harness's `assert not ser.eof` triage fires) and never | STRING |
| MEDIUM⚡ | test/hil/test/test_hil_rtt.py | 276 | # unstaged rig tree kills every harness import | STRING |
| MEDIUM⚡ | test/hil/test/test_hil_rtt.py | 402 | # both harness consumers (device_info verdict, pool_check aliveness) judge | STRING |
| MEDIUM | test/hil/helper/hil_util.py | 3 | # Bottom layer of the HIL harness: the bounded command runner plus the shared helpers and | COMMENT |
| MEDIUM⚡ | test/hil/helper/hil_util.py | 435 | # stdlib-only, harness-critical — see its module docstring). Loaded by file path so | COMMENT |
| MEDIUM⚡ | test/hil/helper/hil_util.py | 437 | # harness keeps addressing hil_util.JlinkRtt. | COMMENT |
| MEDIUM⚡ | test/hil/helper/hil_util.py | 443 | # as a harness bug, when the actual problem is an incompletely staged tree | COMMENT |
| MEDIUM | test/hil/helper/hil_util.py | 513 | # root child does not. Abandon it and let the report name it; the harness never | COMMENT |
| LOW | test/hil/helper/hil_util.py | 566 | # just use id: mostly for cp210x/ftdi flasher | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/build.py | 86 | CODE | |
| LOW | tools/build.py | 159 | CODE | |
| LOW | tools/metrics.py | 86 | CODE | |
| LOW | tools/metrics.py | 153 | CODE | |
| LOW | tools/ci_select.py | 226 | CODE | |
| LOW | tools/ci_select.py | 385 | CODE | |
| LOW | tools/ci_select.py | 890 | CODE | |
| LOW | tools/ci_select.py | 905 | CODE | |
| LOW | tools/ci_select.py | 1196 | CODE | |
| LOW | tools/iar_gen.py | 8 | CODE | |
| LOW | tools/gen_presets.py | 6 | CODE | |
| LOW | tools/get_deps.py | 381 | CODE | |
| LOW | tools/build_utils.py | 126 | CODE | |
| LOW | tools/rtt.py | 563 | CODE | |
| LOW | tools/rtt.py | 182 | CODE | |
| LOW | tools/rtt.py | 218 | CODE | |
| LOW | tools/rtt.py | 325 | CODE | |
| LOW | tools/metrics_compare_base.py | 156 | CODE | |
| LOW | tools/gen_doc.py | 39 | CODE | |
| LOW | tools/gen_doc.py | 59 | CODE | |
| LOW | hw/mcu/sony/cxd56/tools/flash_writer.py | 143 | CODE | |
| LOW | hw/mcu/sony/cxd56/tools/flash_writer.py | 237 | CODE | |
| LOW | hw/mcu/sony/cxd56/tools/xmodem.py | 211 | CODE | |
| LOW | hw/mcu/sony/cxd56/tools/xmodem.py | 370 | CODE | |
| LOW | test/hil/pymtp.py | 465 | CODE | |
| LOW | test/hil/pymtp.py | 824 | CODE | |
| LOW | test/hil/pymtp.py | 1163 | CODE | |
| LOW | test/hil/mtp_test.py | 143 | CODE | |
| LOW | test/hil/hil_flash.py | 308 | CODE | |
| LOW | test/hil/hil_test.py | 562 | CODE | |
| LOW | test/hil/hil_test.py | 628 | CODE | |
| LOW | test/hil/hil_test.py | 1678 | CODE | |
| LOW | test/hil/hil_test.py | 1909 | CODE | |
| LOW | test/hil/hil_test.py | 2354 | CODE | |
| LOW | test/hil/usbtest.py | 157 | CODE | |
| LOW | test/hil/usbtest.py | 553 | CODE | |
| LOW | test/hil/test/test_ci_metrics.py | 530 | CODE | |
| LOW | test/hil/test/test_hil_bounded.py | 249 | CODE | |
| LOW | test/hil/test/test_hil_bounded.py | 259 | CODE | |
| LOW | test/hil/test/test_ci_select.py | 809 | CODE | |
| LOW | test/hil/test/test_ci_select.py | 1158 | CODE | |
| LOW | test/hil/test/test_ci_select.py | 2210 | CODE | |
| LOW | test/hil/test/test_ci_select.py | 2296 | CODE | |
| LOW | test/hil/test/test_hil_util.py | 130 | CODE | |
| LOW | test/hil/helper/hil_lock.py | 404 | CODE | |
| LOW | test/hil/helper/hil_lock.py | 258 | CODE | |
| LOW | test/hil/helper/hil_health.py | 206 | CODE | |
| LOW | test/hil/helper/hil_health.py | 254 | CODE | |
| LOW | test/hil/helper/hil_pool_check.py | 301 | CODE | |
| LOW | test/hil/helper/hil_pool_check.py | 354 | CODE | |
| LOW | test/hil/helper/hil_pool_check.py | 508 | CODE | |
| LOW | test/hil/helper/hil_report.py | 320 | CODE | |
| LOW | test/hil/helper/hil_report.py | 493 | CODE | |
| LOW | test/hil/helper/hil_util.py | 229 | CODE | |
| LOW | .claude/skills/etm-trace/scripts/etm_capture.py | 108 | CODE | |
| LOW | .claude/skills/etm-trace/scripts/etm_profile.py | 27 | CODE | |
| LOW | .claude/skills/etm-trace/scripts/etm_profile.py | 126 | CODE | |
| LOW | .claude/skills/etm-trace/scripts/etm_profile.py | 197 | CODE | |
| LOW | .github/scripts/ci_set_matrix.py | 158 | CODE | |
| LOW | .github/scripts/hil_ci_set_matrix.py | 21 | CODE | |
| 1 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/metrics.py | 146 | except Exception as e: # pragma: no cover - defensive | CODE |
| MEDIUM⚡ | tools/metrics_compare_base.py | 224 | print(f'Error creating worktree: {ret.stderr}') | CODE |
| LOW | hw/mcu/sony/cxd56/tools/flash_writer.py | 223 | except Exception as e: | CODE |
| LOW | hw/mcu/sony/cxd56/tools/flash_writer.py | 308 | except Exception as e: | CODE |
| LOW | test/hil/mtp_test.py | 171 | except Exception as e: | CODE |
| LOW | test/hil/mtp_test.py | 179 | except Exception: | CODE |
| MEDIUM | test/hil/mtp_test.py | 56 | def _read(): | CODE |
| LOW | test/hil/hil_test.py | 1739 | except Exception as e: | CODE |
| LOW | test/hil/hil_test.py | 1775 | except Exception as e: | CODE |
| LOW | test/hil/hil_test.py | 2050 | except Exception as se: # noqa: BLE001 - never mask the original failure | CODE |
| LOW | test/hil/hil_test.py | 2301 | except Exception as werr: # noqa: BLE001 - it mkdir()s and open()s the very report dir | CODE |
| LOW | test/hil/hil_test.py | 2313 | except Exception as rerr: # noqa: BLE001 - the caller's raise must still happen | CODE |
| LOW | test/hil/hil_test.py | 2326 | except Exception as re2: # noqa: BLE001 | CODE |
| LOW | test/hil/hil_test.py | 2594 | except Exception as e: | CODE |
| LOW | test/hil/hil_test.py | 2628 | except Exception as e: | CODE |
| LOW | test/hil/hil_test.py | 2633 | except Exception as e: | CODE |
| LOW | test/hil/hil_test.py | 2646 | except Exception as e: | CODE |
| LOW | test/hil/usbtest.py | 680 | except Exception as e: # malformed/short json, import failure, unknown flasher | CODE |
| LOW | test/hil/usbtest.py | 720 | except Exception as e: | CODE |
| LOW | test/hil/usbtest.py | 742 | except Exception as e: | CODE |
| LOW | test/hil/usbtest.py | 764 | except Exception as e: | CODE |
| LOW | test/hil/hil_ci.sh | 250 | except Exception: | CODE |
| LOW | test/hil/test/test_ci_metrics.py | 557 | except Exception: | CODE |
| LOW | test/hil/test/test_ci_metrics.py | 565 | except Exception: | CODE |
| LOW | test/hil/test/test_hil_rtt.py | 213 | except Exception as e: # noqa: BLE001 - the regression this guards | STRING |
| MEDIUM | test/hil/test/test_hil_bounded.py | 65 | def wrapper(): | CODE |
| LOW⚡ | test/hil/test/test_hil_bounded.py | 1438 | except Exception: | CODE |
| LOW | test/hil/helper/hil_pool_check.py | 297 | except Exception as e: | CODE |
| LOW | test/hil/helper/hil_pool_check.py | 408 | except Exception as e: | CODE |
| LOW | test/hil/helper/hil_pool_check.py | 893 | except Exception as e: | CODE |
| LOW | test/hil/helper/hil_report.py | 461 | except Exception as e: # noqa: BLE001 | CODE |
| LOW | test/hil/helper/hil_report.py | 482 | except Exception as e2: # noqa: BLE001 | CODE |
| LOW | …superpowers/plans/2026-08-19-ci-build-family-filter.md | 876 | except Exception as e: # fail-open: an unusable selection must never turn into a red job | CODE |
| LOW | docs/superpowers/plans/2026-08-21-hil-report-module.md | 482 | except Exception as e: # noqa: BLE001 | CODE |
| LOW | .github/scripts/ci_set_matrix.py | 182 | except Exception as e: # fail-open: an unusable selection must never turn into a red job | CODE |
| LOW | .github/scripts/hil_ci_set_matrix.py | 42 | except Exception as e: # fail-open: an unusable selection must never red the job | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | examples/device/audio_test/src/plot_audio_samples.py | 0 | pick a windows input device index from query_devices() output. | STRING |
| HIGH | …s/device/audio_4_channel_mic/src/plot_audio_samples.py | 0 | pick a windows input device index from query_devices() output. | STRING |
| HIGH | …s/device/audio_test_freertos/src/plot_audio_samples.py | 0 | pick a windows input device index from query_devices() output. | STRING |
| HIGH | …device/audio_test_multi_rate/src/plot_audio_samples.py | 0 | pick a windows input device index from query_devices() output. | STRING |
| HIGH | …audio_4_channel_mic_freertos/src/plot_audio_samples.py | 0 | pick a windows input device index from query_devices() output. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tools/metrics_compare_base.py | 214 | # Step 1: Create worktree for base branch | COMMENT |
| LOW⚡ | tools/metrics_compare_base.py | 263 | # Step 4: Generate metrics | COMMENT |
| LOW⚡ | tools/metrics_compare_base.py | 272 | # Step 5: Compare | COMMENT |
| LOW⚡ | src/portable/synopsys/dwc2/dwc2_nrf.h | 50 | // Step 1: Power up core only (PHY not yet) | COMMENT |
| LOW⚡ | src/portable/synopsys/dwc2/dwc2_nrf.h | 53 | // Step 2: Override ID=Device (bit 31), and temporarily override VBUSVALID | COMMENT |
| LOW⚡ | src/portable/synopsys/dwc2/dwc2_nrf.h | 57 | // Step 3: Release PHY power-on reset by enabling PHY | COMMENT |
| LOW⚡ | src/portable/synopsys/dwc2/dwc2_nrf.h | 60 | // Step 4: Wait 45us for PHY clock to start | COMMENT |
| LOW⚡ | src/portable/synopsys/dwc2/dwc2_nrf.h | 63 | // Step 5: Release DWC2 reset | COMMENT |
| LOW⚡ | src/portable/synopsys/dwc2/dwc2_nrf.h | 66 | // Step 6: Wait for clock to start to avoid hang on too early register read | COMMENT |
| LOW⚡ | src/portable/synopsys/dwc2/dwc2_nrf.h | 69 | // Step 7: Clear VBUSVALID override (keep ID=Device override) | COMMENT |
| LOW | src/class/cdc/cdc_host.h | 83 | // NOTE: This function does not make any USB transfer request to device. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tools/metrics_compare_base.py | 214 | # Step 1: Create worktree for base branch | COMMENT |
| LOW⚡ | tools/metrics_compare_base.py | 263 | # Step 4: Generate metrics | COMMENT |
| LOW⚡ | tools/metrics_compare_base.py | 272 | # Step 5: Compare | COMMENT |
| LOW⚡ | src/portable/synopsys/dwc2/dwc2_nrf.h | 50 | // Step 1: Power up core only (PHY not yet) | COMMENT |
| LOW⚡ | src/portable/synopsys/dwc2/dwc2_nrf.h | 53 | // Step 2: Override ID=Device (bit 31), and temporarily override VBUSVALID | COMMENT |
| LOW⚡ | src/portable/synopsys/dwc2/dwc2_nrf.h | 57 | // Step 3: Release PHY power-on reset by enabling PHY | COMMENT |
| LOW⚡ | src/portable/synopsys/dwc2/dwc2_nrf.h | 60 | // Step 4: Wait 45us for PHY clock to start | COMMENT |
| LOW⚡ | src/portable/synopsys/dwc2/dwc2_nrf.h | 63 | // Step 5: Release DWC2 reset | COMMENT |
| LOW⚡ | src/portable/synopsys/dwc2/dwc2_nrf.h | 66 | // Step 6: Wait for clock to start to avoid hang on too early register read | COMMENT |
| LOW⚡ | src/portable/synopsys/dwc2/dwc2_nrf.h | 69 | // Step 7: Clear VBUSVALID override (keep ID=Device override) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/gen_presets.py | 4 | CODE | |
| LOW | tools/file2carray.py | 3 | CODE | |
| LOW | tools/file2carray.py | 6 | CODE | |
| LOW | tools/file2carray.py | 7 | CODE | |
| LOW | tools/file2carray.py | 8 | CODE | |
| LOW | tools/file2carray.py | 9 | CODE | |
| LOW | tools/file2carray.py | 10 | CODE | |
| LOW | hw/mcu/sony/cxd56/tools/flash_writer.py | 36 | CODE | |
| LOW | hw/mcu/sony/cxd56/tools/flash_writer.py | 37 | CODE | |
| LOW | hw/mcu/sony/cxd56/tools/flash_writer.py | 38 | CODE | |
| LOW | hw/mcu/sony/cxd56/tools/flash_writer.py | 42 | CODE | |
| LOW | hw/mcu/sony/cxd56/tools/xmodem.py | 576 | CODE | |
| LOW | test/hil/hil_flash.py | 9 | CODE | |
| LOW | test/hil/helper/hil_util.py | 9 | CODE | |
| LOW | examples/device/audio_test/src/plot_audio_samples.py | 6 | CODE | |
| LOW | …device/audio_test_multi_rate/src/plot_audio_samples.py | 6 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tools/build.py | 233 | # Check if board is skipped. Make semantics: family.mk decides, not the | COMMENT |
| LOW | tools/get_deps.py | 352 | # Check if commit is already fetched | COMMENT |
| LOW | tools/make_release.py | 21 | # Write the file out again | COMMENT |
| LOW | test/hil/pymtp.py | 1185 | # Check if this ID exists, if not, add it | COMMENT |
| LOW | test/hil/pymtp.py | 1228 | ## Check if this folder is in the dict | COMMENT |
| LOW | .github/workflows/build.yml | 16 | # Check if the code changes and we need to run ci build | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | examples/device/uac2_speaker_fb/src/audio_debug.py | 40 | # This function is called periodically from FuncAnimation | COMMENT |
| MEDIUM | src/portable/synopsys/dwc2/dwc2_info.py | 172 | # Create an empty list to hold the dictionaries | COMMENT |
| MEDIUM | src/portable/synopsys/dwc2/dwc2_info.py | 202 | # Create a Pandas DataFrame from the list of dictionaries | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docs/superpowers/plans/2026-07-09-smoke-results.md | 1 | # Smoke Test Results — multi-agent dev/test harness | COMMENT |
| MEDIUM | docs/superpowers/plans/2026-08-18-claude-doc-audit.md | 48 | ### Task 1: Ledger schema and the anti-hallucination validator | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tools/build.py | 305 | Get list of boards for a family. Args: family: Family name one_random: If True, return only one ran | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/hil/hil_flash.py | 58 | CODE | |
| LOW | test/hil/hil_flash.py | 125 | CODE | |
| LOW | test/hil/hil_flash.py | 135 | CODE | |
| LOW | test/hil/hil_flash.py | 267 | CODE | |
| LOW | test/hil/hil_flash.py | 285 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .claude/skills/pvs/run_pvs.sh | 9 | # Usage: | COMMENT |
| LOW | …laude/skills/usb-kernel-recover/scripts/usb_recover.sh | 5 | # Usage: | COMMENT |
| LOW | .claude/skills/usb-kernel-debug/scripts/usb_dyndbg.sh | 6 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/portable/st/stm32_fsdev/hcd_stm32_fsdev.c | 438 | // TODO: Handle error | COMMENT |
| LOW | src/osal/osal_rtx4.h | 103 | // TODO: implement | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | test/hil/test/test_hil_bounded.py | 1744 | CODE |