Skip to content

Agent GOTCHAS

grisun0 edited this page Oct 23, 2026 · 13 revisions

Gotchas

God Nodes (high connectivity)

These files have the most connections. Changes here have high blast radius.

Blast Radius (change impact)

Editing these files can break the listed number of dependents. Run their tests after any change.

Hotspots (complexity + centrality)

Dependency Cycles

Circular dependencies. Refactor to break the cycle.

Layer Violations

Dataflow Issues (INFERRED, review each lead)

  • boot/uefi_stub.c:518 efi_main [UNCHECKED_ALLOC] rc: Result of allocator stored in rc is never checked against NULL.
  • drivers/sb16.c:259 sb16_pump [DEAD_STORE] dst: dst assigned at line 259 but never read afterwards.
  • drivers/sb16.c:531 sb16_init [DEAD_STORE] major: major assigned at line 531 but never read afterwards.
  • drivers/virtio_blk.c:169 vblk_desc [DEAD_STORE] d: d assigned at line 169 but never read afterwards.
  • drivers/virtio_blk.c:189 vblk_avail_push [DEAD_STORE] a: a assigned at line 189 but never read afterwards.
  • drivers/virtio_net.c:146 vnet_desc [DEAD_STORE] d: d assigned at line 146 but never read afterwards.
  • fs/kfile.c:103 kpipe_pair [DEAD_STORE] ref: ref assigned at line 103 but never read afterwards.
  • kernel/loader.c:932 ldso_bind_into [UNINIT_USE] symname: symname may be read before initialization (declared line 896).
  • kernel/loader.c:1278 load_exec_elf [DEAD_STORE] base: base assigned at line 1278 but never read afterwards.
  • kernel/loader.c:1283 load_exec_elf [DEAD_STORE] max_end: max_end assigned at line 1283 but never read afterwards.

Start

Wiki

Agent Docs

Recipes

Clone this wiki locally