Quick revision
The short answer
As agents write more code, the value of engineers shifts toward framing problems, designing systems, reviewing, testing and operating them, so hiring should test those skills rather than typing speed. Juniors still need to learn fundamentals, so we design apprenticeship paths that keep real learning in the work. Ownership of production behaviour stays with accountable human teams, and agents act with least privilege. Modular, well-tested, well-documented architecture benefits most from AI, so we invest in specs, tests and clear interfaces, and we track the new risks: the supply chain of models and tools, licence exposure and the security of agent actions.
What to remember
In this answer, we reasoned about how AI agents change engineering. Value shifts toward problem framing, design, review, testing and operations, so hiring should test those. Juniors need apprenticeship paths so AI does not remove their learning. Ownership of production behaviour stays with accountable teams, and agents act with least privilege and audit trails. Modular, well-tested, well-documented architecture benefits most, so specs, tests and clear interfaces become key investments. And we track new risks in the model and tool supply chain, licence exposure and the security of agent actions.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
As agents write more code, the value of engineers shifts toward framing problems, designing systems, reviewing, testing and operating them, so hiring should test those skills rather than typing speed. Juniors still need to learn fundamentals, so we design apprenticeship paths that keep real learning in the work. Ownership of production behaviour stays with accountable human teams, and agents act with least privilege. Modular, well-tested, well-documented architecture benefits most from AI, so we invest in specs, tests and clear interfaces, and we track the new risks: the supply chain of models and tools, licence exposure and the security of agent actions.
Why this question is asked
Questions about the next five to ten years have no certain answers, and interviewers know that. What they want from a senior leader is a way of reasoning that holds up whichever way the technology goes: which parts of engineering work become cheaper, which become more valuable, and which responsibilities cannot be delegated to software. In this answer, we will look at how the value of engineering work shifts, then at hiring, career paths for juniors, code ownership, architecture and risk, with concrete examples of what a company can start doing now.
1How the Value of Engineering Work Shifts
When a capability becomes cheap, the things around it become the bottleneck. If agents can produce a working first version of a service, a migration or a test suite in minutes, writing code stops being the slowest part of delivery. What remains hard is deciding what to build and why, choosing a design that will survive five years of change, checking that what was produced is correct and safe, and running it in production when things fail at three in the morning.
So the skills that grow in value are problem framing, system design, review, testing strategy and operations. These are not new skills, senior engineers always did them, but they become a larger share of every engineer's work, and they become the main differences between strong and average engineers.
| Activity | Direction | Why |
|---|---|---|
| Typing routine code | Shrinks | Agents produce drafts quickly |
| Problem framing and specs | Grows | Agents need clear goals and constraints |
| System design | Grows | Choices compound; agents follow the design they are given |
| Review and verification | Grows | More code to check, subtle errors |
| Testing strategy | Grows | Tests become the main specification |
| Operations and incidents | Stays critical | Production behaviour needs accountable people |
2Rethinking Hiring
If the job changes, the interview should too. Puzzle-style coding tests under time pressure measure something agents now do well. More predictive exercises ask candidates to frame a vague problem, design a small system and defend trade-offs, review a realistic pull request with planted bugs (some of them typical of generated code), or debug a failing service from logs. Some companies let candidates use assistants in the interview and watch how they direct and check them, which is closer to the real job.
Fundamentals still matter, perhaps more. Someone who cannot reason about a race condition, a transaction boundary or an N+1 query cannot tell when an agent's code has one. So we still test understanding, just through review and explanation rather than recall and typing.
3Keeping a Path for Junior Engineers
The biggest long-term risk is quiet: if agents do all the small, well-defined tasks that juniors used to learn from, juniors never build the judgement that makes seniors. In ten years the company would have few people able to review agents' work. So career paths need deliberate design.
In practice, that means apprenticeship. Juniors pair with seniors on real work, own small components end to end including their operation, write some code without assistance in learning phases, and are expected to explain every line they submit. Reviews become teaching moments about why, not only what. Promotion criteria reward design, review quality, testing and operational ownership, not volume of output, so people grow in the skills that will matter.
4Ownership Stays With Humans
An agent cannot be accountable. When a payment service double-charges customers, the company needs a team that understands the service, can fix it, and answers for it. So code ownership stays with human teams: each service has an owning team responsible for its production behaviour, and every change, whoever or whatever wrote it, is reviewed and merged by someone on that team.
Agents operate like any other automated actor, with least privilege. An agent that opens pull requests gets permission to create branches and pull requests in specific repositories, not to merge, deploy or read production data. Its actions are logged and attributable, and its access is reviewed like a service account's.
- Accountable teamowns the service and its production behaviour
- Human review and mergeevery change, generated or not
- Automated gatestests, static analysis, security scanning
- Coding agentsleast privilege: branches and pull requests only
- Audit trailevery agent action logged and attributable
5 layers, from the top down. Step through them one at a time.
Agents propose; accountable people decide.
5Architecture That Benefits Most From AI
Agents work best where a human newcomer would also work well: small modules with clear interfaces, good tests that define correct behaviour, documentation of decisions and conventions, and fast feedback from builds. A tangled monolith with no tests is as confusing to an agent as to a new hire, and the agent will happily make it worse. So the investments that pay off are the classic ones: modular boundaries, contract and behaviour tests, up-to-date specs and architecture decision records, and reproducible builds.
A concrete example: a team that writes a short specification and acceptance tests before asking an agent to implement a feature gets far more useful output, and a much easier review, than a team that types build the order export feature. Specs and tests become the main interface between people and agents.
6Tracking the New Risks
Three risk areas need ongoing attention. The supply chain of models and tools: which models and agent tools are approved, where they run, what they can access, and how updates to them are evaluated, in the same way we manage third-party libraries. Licence exposure: generated code can resemble licensed code, so licence scanning and vendor settings stay in place. And the security of agent actions: agents that can run commands, call APIs or change infrastructure are a new attack surface, for example through prompt injection in files or issues they read, so their permissions, sandboxes and confirmation steps need the same threat modelling as any privileged system.
None of these is a reason to avoid agents. They are reasons to manage them as part of the engineering system, with owners and regular review.
7Follow-up questions
Will companies need fewer engineers?
Possibly for the same amount of work, but historically cheaper software has led to more software being built. I would plan for the mix of skills to change more than the headcount: more emphasis on design, verification and operations, and continued investment in growing juniors, because the pipeline of future seniors depends on it.
How would you change promotion criteria?
Reward impact and judgement: quality of designs, review contributions, reliability of owned services, mentoring and how well the engineer directs and checks automated work. Remove anything that rewards raw output, such as lines of code or ticket counts, which agents make meaningless.
What would you start doing this year?
Update interviews to include review and design exercises, define the apprenticeship model for juniors, set least-privilege rules and audit logging for agents, and pick two or three services to improve tests and documentation as a pilot for agent-assisted development.
8Conclusion
In this answer, we reasoned about how AI agents change engineering. Value shifts toward problem framing, design, review, testing and operations, so hiring should test those. Juniors need apprenticeship paths so AI does not remove their learning. Ownership of production behaviour stays with accountable teams, and agents act with least privilege and audit trails. Modular, well-tested, well-documented architecture benefits most, so specs, tests and clear interfaces become key investments. And we track new risks in the model and tool supply chain, licence exposure and the security of agent actions.
Open with
I would reason from what becomes cheap and what becomes scarce. If agents make writing routine code cheap, the value moves to framing problems, designing systems, reviewing and testing, and operating them in production, so our hiring should test those: design discussions, reviewing a realistic pull request with planted bugs, debugging from logs, maybe with assistants allowed so we see how candidates direct and check them.
Then, if they want more
Fundamentals still matter, because you cannot catch a race condition you do not understand. The risk I worry about most is juniors losing the small tasks they learned from, so I would design apprenticeship paths: pairing with seniors, owning small components end to end including operations, explaining every line, and promotion criteria that reward judgement, not output.
Ownership stays with human teams: each service has an accountable team that reviews and merges every change, and agents work with least privilege, opening pull requests but not merging or deploying, with every action logged.
On architecture, agents do best where humans do best: modular code, clear interfaces, good tests and documentation, so specs and tests become the main interface to agents, and I would invest there.
Finally I would track the new risks: the supply chain of models and agent tools, licence exposure from generated code, and the security of agents that can take actions, including prompt injection through what they read.
About this answer
- Last updated
- 12 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
- Official documentation
- Spring AI reference
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "As AI agents begin to write and change large parts of code bases, how should a company...": https://scrivio-interview-library.netlify.app/spring-boot/llm-fundamentals/11aba62903/