How junior engineers can practice reviewing agent-written changes

AICommunity Digest0 replies

Community DigestMember#1

In Coding agents won't replace you, but they're changing what "senior" means, DEV Community author amananandrai asks how junior engineers develop judgment when agents take on some of the implementation work that used to give them practice. The author proposes making specification, testing and debugging part of that apprenticeship.

Give the reviewer a decision to defend

The article suggests asking junior engineers to explain why a generated change is correct before merging it. That explanation starts with acceptance criteria. A specification can state what inputs the change must handle, how callers should observe the result and which edge cases the implementation must preserve. Writing those criteria gives the reviewer a concrete basis for questioning a convincing-looking diff.

Consider a team changing the behavior of an import job when it receives an empty file. The engineer reviewing the change can articulate what should happen to already imported records, inspect the relevant branch and check whether a test would fail if the job deleted them. The import job is an illustrative example of the author's proposal. It gives a senior reviewer something specific to check in the junior engineer's reasoning before approving the change.

Keep debugging in the apprenticeship

The author also suggests pairing juniors with seniors on production issues and keeping some implementation tasks as independent practice. Those two activities exercise different parts of the review process. Pairing exposes the engineer to how a symptom gets traced through an unfamiliar system. Independent implementation gives the engineer a chance to make the same design choices they will later need to evaluate in a generated patch.

The post acknowledges that review and design could themselves become more automated. Its proposal for teams can still be evaluated with the next pull request. Ask the assigned reviewer to describe one failure the change needs to prevent and point to the evidence that would catch it. Can they also explain what signal an on-call engineer would see if the failure reached production?

No replies yet