All Questions
Ai Coding And Product Systems hard

Your AI reviewer splits PRs into one chunk per file. It missed a bug in a 4,000-line, 60-file PR where a function signature changed in one file and broke callers in three others. How should chunking change?

  1. A Chunk by changed symbol, attaching each changed function's callers and callees from the code graph, even across file boundaries.
  2. B Send the full 4,000-line diff in one prompt so the model sees every change together and can reason across all files at once.
  3. C Chunk by fixed 300-line windows with 50-line overlap, which ensures adjacent context spans file boundaries in the diff output.
  4. D Review each hunk independently against retrieved team rules and concatenate the findings, since most real bugs are local to one hunk.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions