<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Lorenzo Mugnai on Medium]]></title>
        <description><![CDATA[Stories by Lorenzo Mugnai on Medium]]></description>
        <link>https://medium.com/@lmugnai?source=rss-b656d36b7f6c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*98ZhlgYU6RDt3fXXQR6ZiQ.jpeg</url>
            <title>Stories by Lorenzo Mugnai on Medium</title>
            <link>https://medium.com/@lmugnai?source=rss-b656d36b7f6c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 16:33:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@lmugnai/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[PHP2Shell: Critical PHP Vulnerabilities Affecting Business Websites]]></title>
            <link>https://medium.com/@lmugnai/php2shell-critical-php-vulnerabilities-affecting-business-websites-5a25d669464d?source=rss-b656d36b7f6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a25d669464d</guid>
            <category><![CDATA[php]]></category>
            <category><![CDATA[small-business]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[website-security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Lorenzo Mugnai]]></dc:creator>
            <pubDate>Thu, 22 Oct 2026 15:07:28 GMT</pubDate>
            <atom:updated>2026-10-22T15:27:44.911Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cp6UlhDR6bNxDu-Z.png" /></figure><p>Two critical security vulnerabilities in PHP were disclosed on 21 October 2026. Known collectively as PHP2Shell, they affect the technology behind many websites and applications, including sites built with WordPress, Drupal and Joomla. Both have been assigned a CVSS 4.0 severity score of 9.2 out of 10.</p><p>The UK’s National Cyber Security Centre (NCSC) has urged organisations to act immediately. The PHP project has released security fixes and says updating is the only complete remedy. For a small business, the first question is a practical one: do you know whether your website uses PHP, and who is responsible for keeping it updated?</p><h3>What is PHP2Shell?</h3><p>PHP is a server-side programming language. It runs behind the scenes, handling tasks such as processing forms, working with databases and generating website pages. PHP2Shell is the name researchers have given to a group of serious security flaws in PHP itself, tracked as <strong>CVE-2026–109618</strong> and <strong>CVE-2026–109619</strong>.</p><p>The underlying problems involve how PHP manages memory and internal state when a request fails, including when it runs out of memory. Under certain conditions, information left behind by one request can affect another. Researchers demonstrated several ways these weaknesses could be exploited, including reading sensitive data from a running process and executing code remotely without logging in.</p><p>That last possibility is particularly serious. Remote code execution could allow an attacker to run instructions on a vulnerable server, potentially exposing customer information, changing website content or interrupting services. The outcome depends on the server’s configuration and what access the affected process has.</p><p>These are not flaws in a particular WordPress plugin or theme. The problem is lower down, in the PHP runtime that many different applications rely on.</p><h3>How were the PHP vulnerabilities discovered?</h3><p>Wiz Research says it identified the first vulnerability on 19 August 2026 using AI-assisted security research. Its team went on to demonstrate attacks against Drupal and WordPress and reported its findings to the PHP security team on 24 August.</p><p>There is an interesting wider point here. The flaws had existed for years, but turning them into working exploits required complex investigation. AI-assisted research helped researchers uncover and demonstrate risks that had been difficult to identify. The same advances can help defenders find problems, but they also underline why maintaining existing software matters.</p><h3>Which PHP versions are affected?</h3><p>The PHP project released the following fixed versions on 21 October 2026:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w1RDLP1tms9-uXrtVGb7EA.png" /></figure><p>Unpatched installations serving web requests may be at risk, including those using PHP-FPM, Apache mod_php, php-cgi, FrankenPHP and LiteSpeed. PHP’s advisory identifies Apache mod_php as particularly high risk because researchers demonstrated an attack that can occur before application code runs.</p><p>Older PHP branches need special attention. PHP 8.1 and earlier are no longer supported directly by the PHP project, and PHP 8.2 reaches end of life on 31 December 2026. Some operating system vendors provide backported security fixes for older packages, however, so an older-looking version number does not automatically prove a server is unpatched. Ask the hosting provider or system administrator to confirm the actual patch status and support arrangements.</p><h3>Are WordPress, Drupal and Joomla websites affected?</h3><p>Potentially, yes. Researchers demonstrated attacks against deployments of all three platforms. But PHP2Shell is not a WordPress, Drupal or Joomla vulnerability in itself. A website using any of these systems could be affected if the PHP environment underneath it is vulnerable.</p><p>That distinction matters because updating WordPress, its themes or its plugins does not necessarily update PHP. A site can appear fully up to date in its content management dashboard while the underlying runtime still needs attention.</p><p>The same principle applies to custom PHP applications and other PHP-based websites. Whether a particular installation is exposed depends on its runtime, patch status and configuration.</p><h3>Have attackers exploited PHP2Shell?</h3><p>Researchers have demonstrated working exploits, including attacks that can execute code without authentication. There is also evidence of real-world exploitation attempts, with <a href="https://aws.amazon.com/blogs/security/amazon-threat-intelligence-identifies-php2shell-exploitation-prior-to-public-disclosure-in-madpot/">Amazon Threat Intelligence reporting suspicious activity</a> even before the vulnerabilities were publicly disclosed.</p><p>That does not mean every vulnerable website has been compromised. The sensible response is not to panic or assume a breach, but to establish whether your website is affected and apply the appropriate security updates. If there are signs of suspicious activity, seek technical assistance to investigate them.</p><h3>What should a small business do now?</h3><p>You do not need to understand PHP internals to take useful action. Start with a few straightforward questions:</p><ol><li><strong>Does our website use PHP?</strong> If you are unsure, ask whoever built, hosts or maintains it.</li><li><strong>Has the PHP2Shell security fix been applied?</strong> Ask for confirmation of the patched PHP release or the equivalent vendor-supplied security update.</li><li><strong>Who is responsible for updates?</strong> Your hosting provider may manage the server, but not necessarily every application or runtime component.</li><li><strong>Do we have usable backups and a recovery plan?</strong> Backups will not prevent an attack, but they matter if something goes wrong.</li><li><strong>Is any part of the website running unsupported software?</strong> If so, ask for a realistic upgrade plan rather than assuming it can be left indefinitely.</li></ol><p>The PHP project says there is no complete workaround that replaces patching. The NCSC recommends urgent action and advises organisations that cannot mitigate the risk to consider taking affected systems offline until they can be secured.</p><h3>Why this matters beyond PHP2Shell</h3><p>A website can look perfectly healthy while the software behind it becomes outdated. Pages still load, forms still work and customers may notice nothing. That is one reason maintenance is easy to overlook.</p><p>For smaller businesses, the issue is often less about having a large security budget and more about having clear responsibility. A hosting company may maintain part of the infrastructure. A web developer may look after the website itself. If nobody has agreed who manages the PHP runtime and security updates, an important gap can develop.</p><p>Not every business needs an expensive support contract. But it should know what technology it depends on, who updates it, how problems are identified and what happens if the site needs recovering.</p><p>If you are unsure whether your website is affected by PHP2Shell, start by asking your hosting provider or developer for confirmation of its patch status. It is a straightforward question, and one worth asking now.</p><h3>Sources and further reading</h3><ul><li><a href="https://www.php.net/archive/2026.php#2026-10-21-5">PHP project security releases and advisory</a></li><li><a href="https://www.ncsc.gov.uk/news/critical-security-issue-affecting-php">UK NCSC: Critical security issue affecting PHP</a></li><li><a href="https://www.wiz.io/blog/php2shell-php-rce">Wiz Research: PHP2Shell technical findings</a></li><li><a href="https://www.enisa.europa.eu/news/joint-statement-on-critical-php-vulnerabilities">ENISA: Joint statement on critical PHP vulnerabilities</a></li></ul><p><em>Originally published at </em><a href="https://mugnaidigital.co.uk/field-notes/php2shell-critical-php-vulnerabilities-business-websites"><em>https://mugnaidigital.co.uk</em></a><em> on October 22, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a25d669464d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The End of Programming?]]></title>
            <link>https://medium.com/@lmugnai/the-end-of-programming-4979e22cbcfb?source=rss-b656d36b7f6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/4979e22cbcfb</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[scala]]></category>
            <dc:creator><![CDATA[Lorenzo Mugnai]]></dc:creator>
            <pubDate>Mon, 19 Oct 2026 12:23:19 GMT</pubDate>
            <atom:updated>2026-10-19T13:40:48.788Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4zmv2sEuhb165UoL.png" /></figure><p>Martin Odersky opened Scala Days 2026 in Berlin with a question that is probably on the minds of quite a few software developers at the moment: are AI coding agents eventually going to bring about the end of human programming?</p><p>His answer isn’t really yes or no.</p><p>Instead, he argues that if agents are going to write, and potentially review, large parts of our software, we need to reconsider what programming languages are for and where humans fit into the development process.</p><p>I found the talk particularly interesting because it moves the discussion away from whether AI can generate good code. Odersky largely accepts that agents are going to become increasingly capable at producing implementations. His concern is how we retain control over the software they produce.</p><p>That leads him towards something Scala has always put considerable emphasis on: types.</p><p><a href="https://www.youtube.com/watch?v=jlJyuJhDnlc">Watch Martin Odersky’s Scala Days keynote</a></p><h3>If agents write the code, what should humans review?</h3><p>Software development has traditionally involved humans working at several different levels.</p><p>We decide what software should do, design it, write the implementation and then review somebody else’s implementation to make sure it does what we expect.</p><p>AI coding agents start to change that arrangement.</p><p>If an agent can take a requirement and produce hundreds or thousands of lines of implementation, asking a developer to verify every generated line starts to undermine some of the productivity benefit of using the agent in the first place.</p><p>Odersky’s suggestion is that humans may increasingly concentrate on the <strong>interfaces and contracts</strong> around software rather than every implementation detail.</p><p>Types become particularly important in that model.</p><p>A type signature can provide a concise description of what a piece of software accepts and what it produces. More expressive types can describe considerably more than that.</p><p>The idea is that instead of reviewing everything an agent has generated, a developer could spend more time reviewing a smaller, understandable contract and allow the programming language and compiler to ensure that the generated implementation respects it.</p><p>That’s quite a change from the way most of us currently think about types.</p><h3>Types become a contract between us and the agent</h3><p>Odersky has described types as a possible contract between humans and AI.</p><p>For that to work, though, our existing type systems aren’t necessarily strong enough.</p><p>Most mainstream languages have ways around their type systems. Developers can cast values, use reflection or access lower-level facilities that bypass some of the guarantees provided by the compiler.</p><p>That’s manageable when a developer deliberately chooses to do it and somebody can review the resulting code.</p><p>It becomes more problematic if we’re relying on the type system to constrain code generated automatically by an agent.</p><p>Odersky’s argument is therefore that programming languages may need stronger and more precise types, with fewer ways to escape the guarantees they provide.</p><p>This isn’t just a theoretical idea. Some of the recent work on Scala is already heading in this direction.</p><h3>Capture checking</h3><p>One of the technologies Odersky discusses is <strong>capture checking</strong>, which has been under development as part of Scala 3.</p><p>The basic idea is that the type system can track not only the values used by a piece of code, but also the capabilities it has access to.</p><p>A capability might represent access to something such as the file system, a network connection or another resource that can have an effect outside the program.</p><p>The compiler can then reason about which capabilities a function needs and prevent code from accessing capabilities it hasn’t been given.</p><p>That becomes particularly interesting when the code isn’t being written by a human.</p><p>Odersky and researchers at EPFL have been experimenting with using capture checking to constrain AI agents. Their research describes a system called TACIT, or <strong>Tracked Agent Capabilities In Types</strong>.</p><p>Rather than allowing an AI agent to call tools directly, the agent generates Scala code.</p><p>That code is compiled before it runs.</p><p>The Scala compiler checks which capabilities the generated program attempts to use. If the program tries to perform an operation it hasn’t been given permission to perform, the type checking fails and the code doesn’t execute.</p><p>So the programming language itself becomes part of the security boundary around the agent.</p><h3>Why would we need that?</h3><p>Today’s agents are increasingly being given access to tools.</p><p>An agent might be able to read files, search a database, call an API, execute a command or update information in another system.</p><p>Giving an agent those capabilities creates an obvious problem.</p><p>The agent might misunderstand an instruction. It might hallucinate. It could be affected by a prompt injection attack contained in information it reads. Or it might simply perform an action that the person using it didn’t intend.</p><p>The usual approach is to try to instruct the agent not to do those things.</p><p>Odersky’s proposal is different.</p><p>Rather than relying entirely on the agent behaving correctly, the environment in which it operates should restrict what it is technically capable of doing.</p><p>If an agent is allowed to read confidential information but isn’t allowed to send that information over the network, the programming language can potentially enforce that restriction.</p><p>The agent can generate whatever code it likes, but code that violates the rules won’t compile.</p><p>Odersky’s research with Yaoyu Zhao, Yichen Xu, Oliver Bračevac and Cao Nguyen Pham tested this approach against agent benchmarks and attacks designed to leak information. Their reported results found that the capability restrictions prevented the tested leakage attacks without significantly reducing the agents’ ability to complete normal tasks.</p><p>It’s still research rather than a proposal that Scala developers should start rewriting their applications around tomorrow, but it demonstrates what Odersky means when he talks about programming languages needing to change for AI.</p><h3>Humans don’t disappear from programming</h3><p>This is probably the part of the talk that’s easiest to miss because of the title.</p><p>Odersky isn’t proposing a future where developers disappear and agents independently produce software.</p><p>In fact, his argument is almost the opposite.</p><p>He believes it’s important that humans remain involved even if agents eventually write and review a large proportion of the implementation.</p><p>What changes is where that human involvement happens.</p><p>If developers don’t need to spend as much time writing implementations, they can spend more time defining what those implementations are allowed to do.</p><p>That means designing interfaces, defining types, specifying capabilities and deciding the boundaries within which generated software operates.</p><p>The implementation may increasingly belong to the agent. The constraints surrounding that implementation remain something humans need to understand.</p><h3>Programming languages may become more important, not less</h3><p>There’s an interesting consequence to all of this.</p><p>It’s tempting to think that programming languages become less important if AI writes most of the code.</p><p>If humans don’t have to type the implementation, perhaps it doesn’t particularly matter whether the software is written in Scala, Java, Rust, Python or something else.</p><p>Odersky reaches almost the opposite conclusion.</p><p>If we’re going to read less of the implementation, we need stronger ways of knowing what that implementation can and cannot do.</p><p>The guarantees provided by the language become more important because we’re relying less on somebody manually inspecting the code.</p><p>A language with a sufficiently expressive type system can potentially establish boundaries that both the human and the agent understand.</p><p>The human defines and reviews the contract. The agent produces an implementation. The compiler verifies that the implementation stays within that contract.</p><p>That is the direction Odersky appears to be exploring for Scala.</p><h3>So is this the end of programming?</h3><p>Not in the way the title might suggest.</p><p>Odersky isn’t predicting that programmers disappear or that programming languages become irrelevant.</p><p>He’s proposing that the job of programming could move up a level.</p><p>Rather than humans expressing every implementation detail, we may spend more of our time expressing intent, defining interfaces and specifying constraints. Agents can then produce more of the implementation within those boundaries.</p><p>For that to work safely, programming languages need to provide stronger guarantees than many of them do today.</p><p>Scala’s capture checking work is one attempt to explore what those guarantees might look like.</p><p>There’s still a lot to work out. Odersky describes the keynote itself as the start of a discussion rather than a finished solution. Capture checking is still developing, and nobody yet knows how much software development will actually move towards this model.</p><p>But it gives a useful explanation for why some of the work happening in Scala today is concentrating on types, capabilities and stronger compile-time guarantees at exactly the point when AI appears capable of writing more of our code.</p><p>Perhaps the interesting question isn’t whether AI will eventually be able to program.</p><p>It’s what <strong>we need programming languages to do when it can</strong>.</p><p><em>Originally published at </em><a href="https://mugnaidigital.co.uk/field-notes/the-end-of-programming"><em>https://mugnaidigital.co.uk</em></a><em> on October 19, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4979e22cbcfb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What happens to software delivery when AI writes more code?]]></title>
            <link>https://medium.com/@lmugnai/what-happens-to-software-delivery-when-ai-writes-more-code-f49ccf1b9f0c?source=rss-b656d36b7f6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/f49ccf1b9f0c</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[developer-productivity]]></category>
            <category><![CDATA[engineering-management]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Lorenzo Mugnai]]></dc:creator>
            <pubDate>Tue, 13 Oct 2026 08:12:41 GMT</pubDate>
            <atom:updated>2026-10-13T10:10:05.327Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Q63IV-sVmfC5gpx3.png" /></figure><p>AI coding tools are becoming a normal part of software development. Developers are using them to generate implementations, write tests, investigate problems and understand unfamiliar code. I use them myself and there are plenty of development tasks where they can save time.</p><p>What I’ve been wondering about is what happens to the rest of the development process when we start producing code faster.</p><p>Writing the code is only one part of delivering software. It still needs to be understood, reviewed, tested, integrated, deployed and supported. If AI makes one part of that process considerably faster, it doesn’t necessarily follow that the whole process gets faster with it.</p><p>A recent Harvard research paper provides some interesting evidence that this might already be happening.</p><h3>More code, but not necessarily more software delivered</h3><p>In <em>Artificial Intelligence in the Firm: Bottlenecks in Software Production</em>, researchers Fiona Chen and James Stratton examined approximately 300 million engineering events across 718 companies between 2021 and March 2026.</p><p>They looked at what happened when organisations adopted AI coding assistants and agents, including changes in code activity, pull requests, reviews and completed work.</p><p>Their findings for AI coding agents were particularly interesting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x8jxbA3PHH-tDcNcgN0gkQ.png" /></figure><p><a href="https://fion.ac/jellyfish.pdf">Read the Harvard research paper</a></p><p>There’s quite a lot in those figures.</p><p>Teams were producing considerably more code, commits and pull requests. At the same time, pull requests were taking longer to get through review, reviewers were leaving more comments and more changes were being requested. Most importantly, the researchers couldn’t establish a statistically significant increase in completed issues and epics.</p><p>There are some important limitations. This is observational research, so it doesn’t prove that AI caused every change they observed. The 49% increase is also the elapsed time between submitting and merging a pull request, rather than 49% more time spent actively reviewing code. The study doesn’t tell us that AI-generated code is worse either.</p><p>What it does show is that increasing the speed at which code is produced doesn’t automatically increase the speed at which software is delivered.</p><p>I think that’s the more interesting finding.</p><h3>What’s happening in code review?</h3><p>The figures around code review are the part I keep coming back to.</p><p>Why are pull requests taking longer? Why are there more review comments? Why are nearly twice as many pull requests requiring changes?</p><p>The research identifies the bottleneck but doesn’t give us a definitive answer as to why it’s happening.</p><p>Some of it could simply be volume. If developers are creating 23% more pull requests and the number of people available to review them hasn’t increased at the same rate, work is going to spend longer waiting.</p><p>There could also be issues with the generated code itself. An implementation can compile and look perfectly reasonable while missing something about the existing application, its architecture or the original requirement. Reviewers may be picking those things up.</p><p>But I wonder whether trust and understanding are part of this as well.</p><p>When I review code written by somebody I’ve worked with for a while, there’s already some context. I know how familiar they are with the application and how they tend to approach problems. If they’ve made an unusual decision, I can ask them about it and they can explain why.</p><p>That doesn’t mean their code should get an easier review. In fact, perhaps we’ve sometimes relied too heavily on that familiarity.</p><p>AI changes the situation, though. A developer can now submit a substantial change where much of the implementation has been generated for them. The reviewer may not know how much the developer understands the generated code, what alternatives were considered or why the implementation ended up looking the way it does.</p><p>I can understand why that might result in more scrutiny.</p><h3>Trust isn’t quite the same as understanding</h3><p>I think there’s an important distinction here that I hadn’t really considered when I first looked at the Harvard research.</p><p>The problem may not be whether we <strong>trust AI</strong>.</p><p>I can trust a compiler without understanding how every part of the compiler works. I trust plenty of libraries that I haven’t read the source code for. Software development already involves layers of abstraction and trust.</p><p>The question is what the team responsible for an application needs to understand.</p><p>If a developer uses AI to generate an implementation, reads it, changes parts of it, tests it and can explain how it works, I don’t have much of a problem with that. The AI has helped the developer produce the code, but the developer still owns the change.</p><p>I’m much less comfortable with a situation where an agent produces a change, the tests pass and the pull request is approved without anybody really understanding what has been introduced.</p><p>That’s where I think the risk changes.</p><h3>Why I don’t think longer reviews are necessarily bad</h3><p>My first reaction to the Harvard figures wasn’t that we need to make code review faster.</p><p>It was almost the opposite.</p><p>I’ve spent a considerable part of my career developing and supporting applications that run in production. When something goes wrong, somebody has to work out what’s happening. You need to understand the behaviour of the application, follow the code and make a decision about how to fix it.</p><p>If teams gradually reach a point where large parts of an application have been generated and nobody has a good understanding of them, I think we’ve created a problem for ourselves.</p><p>Security is another obvious concern. The same applies to testing, performance and integration with other systems. A generated implementation might work perfectly well in isolation but make an assumption that doesn’t hold elsewhere in the application.</p><p>For now, I think somebody still needs to own and understand a change before it goes into production.</p><p>So if developers are spending longer reviewing AI-assisted changes, that isn’t automatically wasted time. It might be exactly what they should be doing.</p><p>What we don’t know from the Harvard research is whether that additional review is finding more genuine problems or whether reviewers are simply being more cautious because they’re less confident about the origin of the code. I’d really like to see more research into that distinction.</p><h3>Are we being harder on AI than we are on each other?</h3><p>There’s an uncomfortable question on the other side of this.</p><p>Perhaps we haven’t always reviewed human-written code as carefully as we should.</p><p>It’s easy for code review to become routine, particularly within an established team. You know the developer, they’ve worked on the application for years, the change looks sensible and the tests pass.</p><p>Maybe AI-generated code is forcing us to think more carefully about what code review is actually for.</p><p>Should the standard really be different depending on whether a developer wrote the code themselves, generated it with AI or used a mixture of both?</p><p>I’m not convinced it should.</p><p>What I care about is whether the developer submitting the change understands it, whether the team has confidence in it and whether we can support it once it’s running in production.</p><p>That also makes me question whether identifying individual lines as “AI-generated” will ultimately be particularly useful. As these tools become more integrated into development environments, the boundary between human-written and generated code is likely to become increasingly difficult to define.</p><p>Ownership might be a better thing to concentrate on than authorship.</p><h3>What are other teams doing?</h3><p>We’re starting to get research into how development behaviour changes when teams introduce AI agents, but the results aren’t yet giving us one clear answer.</p><p>A 2026 study looking at 669 developers across 103 repositories found that developers working with AI agents increased their documentation and testing activity. It also observed changes in review behaviour, although similar changes appeared in repositories without AI agents, so the researchers couldn’t confidently attribute them to AI.</p><p><a href="https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.ESEM.2026.67">Read the study: Does Working with AI Agents Change How Developers Code, Test, and Review?</a></p><p>Other research has started looking specifically at the difficulty of reviewing AI-generated code and the context reviewers need to decide where to concentrate their attention.</p><p>I don’t think we have enough evidence yet to say that there’s one correct way for teams to adapt. That’s probably to be expected. The tools are changing quickly and teams are still working out where they fit.</p><p>What I wouldn’t do is ignore the change.</p><p>If a team starts producing substantially more code and pull requests after introducing AI, I’d want to understand what happens elsewhere in the development process. Are reviews taking longer? Are pull requests getting bigger? Are more changes being requested? Are defects increasing? Are developers spending more time testing? Is work simply waiting somewhere else?</p><p>Those questions are more useful than asking how much AI the team is using.</p><h3>Maybe code review itself needs to change</h3><p>Perhaps the traditional pull request process isn’t going to scale particularly well if AI substantially increases the amount of code teams produce.</p><p>That doesn’t mean removing human review. It might mean being more deliberate about what humans review.</p><p>Automated tests can verify behaviour we already understand. Static analysis can catch certain classes of problems. Security tooling can identify known vulnerabilities. Type systems and compilers already give us confidence about other characteristics of the code.</p><p>If those checks become better, developers might eventually spend less time examining routine implementation details and more time reviewing architecture, behaviour, security and the assumptions behind a change.</p><p>AI could help with some of that too.</p><p>I can imagine reaching a point where an agent doesn’t simply produce a pull request. It also explains the decisions it made, shows which requirements the change satisfies, identifies the tests that demonstrate the behaviour and highlights areas where its confidence is lower.</p><p>That would give a reviewer much more useful context than a large diff appearing in front of them.</p><p>I’d be interested in that direction. I just don’t think we’re at the point where we can remove human understanding from the process.</p><h3>The danger of optimising the wrong thing</h3><p>The Harvard research also makes me question how organisations measure the success of AI development tools.</p><p>If you measure lines of code, commits or pull requests, the results look impressive.</p><p>The study found increases in all three.</p><p>But none of those things are what a software team is actually there to produce.</p><p>The team is there to deliver working software that solves a problem.</p><p>For me, a more useful measure is how long it takes to get from agreeing a piece of work to having it running successfully in production. I’d also want to know about defects, rework, time waiting for review and whether the resulting software remains understandable and maintainable.</p><p>If implementation gets faster but everything simply waits longer for review, we’ve moved the bottleneck.</p><p>If review becomes faster but more problems reach testing, we’ve moved it again.</p><p>If we automate testing and then production incidents increase, we still haven’t improved the development process.</p><p>The whole lifecycle matters.</p><h3>Where does that leave software teams?</h3><p>I don’t think the Harvard research gives us an argument against using AI coding tools.</p><p>I’ve seen enough value from them myself that I wouldn’t want to go back to developing without them.</p><p>But I also don’t think we should look at faster code generation and assume we’ve made software development faster.</p><p>The interesting part of the Harvard findings is what happened around the code.</p><p>Developers produced around 30% more code, 20% more commits and 23% more pull requests. Review cycles became longer, reviewers left more comments and considerably more pull requests required changes. The researchers didn’t find a statistically significant increase in completed issues and epics.</p><p>We don’t yet know exactly why all of those things are happening.</p><p>It could be the volume of new code. It could be problems with generated implementations. It could be reviewers being more cautious. It could be a lack of context. It could simply be that the rest of the software development lifecycle hasn’t yet adapted to the speed at which AI can now produce code.</p><p>It’s probably a combination of several of them.</p><p>For now, my view is that teams should resist the temptation to remove the scrutiny simply because it appears to be slowing things down. If I’m responsible for software running in production, I still want somebody to understand what we’re putting there.</p><p>Over time, better testing, tooling and AI itself may give us enough confidence to change how that assurance works. I’d welcome that. There’s no particular virtue in manually reviewing code if we can demonstrate its correctness and maintainability in better ways.</p><p>But we’re still learning what those ways are.</p><p>What the research does make clear is that we need to look beyond how quickly developers can write code.</p><p><strong>If AI makes coding faster, but the software development lifecycle doesn’t get faster with it, that’s the problem teams need to understand.</strong></p><p><em>Originally published at </em><a href="https://mugnaidigital.co.uk/field-notes/what-happens-to-software-delivery-when-ai-writes-more-code"><em>https://mugnaidigital.co.uk</em></a><em> on October 13, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f49ccf1b9f0c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Upgrading to Scala 3.9 and sbt 2]]></title>
            <link>https://medium.com/@lmugnai/upgrading-to-scala-3-9-and-sbt-2-f53b20536ee8?source=rss-b656d36b7f6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/f53b20536ee8</guid>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[scala]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[jvm]]></category>
            <dc:creator><![CDATA[Lorenzo Mugnai]]></dc:creator>
            <pubDate>Mon, 05 Oct 2026 19:25:41 GMT</pubDate>
            <atom:updated>2026-10-08T14:38:51.134Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FyJgDtl6XPXDislZ.png" /></figure><p>Scala 3.9 was released in September and is now the new LTS version of Scala 3, replacing Scala 3.3.</p><p>We’ve also had the first stable release of sbt 2 this year, after a long development period.</p><p>For anyone starting a new Scala project, I think the decision is fairly straightforward. I’d use Scala 3.9 and, assuming the libraries and plugins I needed supported it, I’d probably use sbt 2 as well.</p><p>Existing applications are more interesting.</p><p>If I had a number of services running perfectly well on Scala 3.3 and sbt 1, I wouldn’t upgrade them just because there are newer versions available. There needs to be a reason to spend the time and take the risk.</p><p>So what do we actually get from upgrading, and how much work is involved?</p><h3>Why consider upgrading now?</h3><p>The main reason for me is the move to a new LTS.</p><p>Scala 3.9 is now the recommended version for teams that favour stability and longer-term support. Scala 3.3 is still supported, so there’s no immediate pressure to move everything.</p><p>That gives teams time to plan the upgrade rather than wait until another dependency or platform change forces it.</p><p>There’s quite a lot between 3.3 and 3.9. You’re crossing five minor releases, with changes to the compiler, language, tooling and standard library. Scala 3.8 also moved the minimum supported JDK to 17.</p><p>I wouldn’t base the decision on any individual language feature though.</p><p>For an established application, keeping reasonably close to the supported versions of Scala, Java and the libraries around them is enough of a reason. The further behind an application gets, the more dependencies and changes tend to get bundled into the eventual upgrade.</p><p>sbt 2 has a slightly different case.</p><p>There are some changes that could have a noticeable effect on development: faster startup using sbtn, incremental testing and caching of compilation and test tasks.</p><p>Whether that makes much difference depends on the project.</p><p>For a large build that developers are running throughout the day, I’d start by measuring how long the current build and test cycle takes. If build performance is already good, I wouldn’t use that as a reason to move to sbt 2. If developers are regularly waiting on builds and tests, the caching and incremental testing improvements could make the upgrade worthwhile. I’d measure the same build again afterwards to see what difference it actually made.</p><h3>How difficult are people finding it?</h3><p>The Scala 3.9 migration looks fairly encouraging.</p><p>Before releasing it, Scala tested close to 2,000 open-source projects using the Open Community Build. Around 1,780 built with no changes or relatively small changes.</p><p>That doesn’t mean every production application will upgrade easily, but it’s a useful indication of how much compatibility has been retained between the two LTS versions.</p><p>I was more interested in the reaction to sbt 2.</p><p>It went through a long release-candidate period and plugin support was an obvious concern. That seems to have improved quite a bit. By September, <a href="https://www.scala-lang.org/blog/2026/09/16/sbt-plugin-updates.html">Scaladex listed 172 plugins available for sbt 2</a>.</p><p>There are also some early reports from developers who have tried it on existing projects. Developers have reported relatively straightforward upgrades in some cases, including moving Play applications to sbt 2 release candidates and newer Scala versions with very little difficulty. Others have raised issues around particular plugins, custom builds and some of the changed sbt behaviour.</p><p>A normal application using commonly maintained libraries and plugins should be a different proposition from a large multi-project build with years of custom sbt code.</p><p>So I wouldn’t assume the upgrade will be difficult, but I’d check the project before deciding how much work is involved.</p><h3>Start with one application</h3><p>If I was looking at an estate of Scala services, I’d start with one.</p><p>Not the smallest service, because it probably won’t tell us much, and not the most critical one either.</p><p>I’d pick something reasonably representative.</p><p>For example:</p><pre>Scala 3.3<br>sbt 1.x<br>JDK 17<br>Play / Pekko<br><br>ScalaTest<br>sbt-scoverage<br>sbt-native-packager<br><br>Internal libraries<br>Some custom build configuration<br>A normal CI/CD pipeline</pre><p>Before changing anything, I’d check:</p><pre>Current JDK version<br>Scala and sbt versions<br><br>Framework versions<br>Scala dependencies<br>sbt plugins<br><br>Custom sbt tasks<br>Cross-built modules<br><br>Internal libraries being published<br>Other services consuming those libraries<br><br>CI build commands<br>Test reporting<br>Packaging and deployment</pre><p>The internal libraries are worth checking early.</p><p>If an internal library is published using Scala 3.9, applications still running Scala 3.3 can’t consume that version.</p><p>If several services share the same internal libraries, the order they are upgraded matters.</p><h3>Don’t upgrade everything together</h3><p>I’d keep the Scala, Java, dependency and sbt changes separate where possible.</p><p>So I wouldn’t start with a pull request that changes all of this:</p><pre>JDK<br>Scala<br>sbt<br>Play<br>Pekko<br>ScalaTest<br>sbt plugins<br>application dependencies</pre><p>If the application is still running Java 11, I’d move it to Java 17 first.</p><p>Build it and run the tests without changing Scala.</p><p>Once that’s working, move on to Scala.</p><p>The Scala migration guidance recommends moving through the main parts of the stack in roughly this order:</p><pre>Build tooling, where needed<br>        ↓<br>JDK<br>        ↓<br>Scala.js, if used<br>        ↓<br>Scala compiler<br>        ↓<br>Libraries</pre><p>I’d also keep the changes in separate commits. If something starts failing after a dependency upgrade, you still know that the compiler migration itself was working.</p><h3>Moving from Scala 3.3 to 3.9</h3><p>For a small application, the first thing I’d probably try is simply changing the Scala version and compiling it.</p><p>You may find there isn’t much more to do.</p><p>For a larger application, Scala provides migration modes that can make the move more controlled.</p><p>Moving from 3.3 to 3.9 crosses the migration rules introduced in 3.4, 3.5, 3.6, 3.7, 3.8 and 3.9.</p><p>For example:</p><pre>scalacOptions ++= Seq(<br>  &quot;-source:3.4-migration&quot;,<br>  &quot;-rewrite&quot;<br>)</pre><p>The compiler can then rewrite code affected by changes introduced in that version.</p><p>For a project starting on 3.3, the migration modes are:</p><pre>3.4-migration<br>3.5-migration<br>3.6-migration<br>3.7-migration<br>3.8-migration<br>3.9-migration</pre><p>They need to be run in order. Running the 3.9 migration mode doesn’t include all the earlier rewrites.</p><p>After each useful set of changes I’d review the diff, compile and run the tests before moving on.</p><h3>There’s one part of the 3.8 move to watch</h3><p>Scala 3.8 changed how the standard library is built. It is now compiled with Scala 3 rather than Scala 2.13.</p><p>That affects some code where context parameters are passed explicitly.</p><p>For example:</p><pre>Array.empty(ClassTag.Int)</pre><p>may need to become:</p><pre>Array.empty(using ClassTag.Int)</pre><p>Scala 3.7.4 can perform most of these changes automatically.</p><p>Before moving beyond 3.7, run:</p><pre>-source:3.7-migration -rewrite</pre><p>and review the changes it makes.</p><p>There’s also a compatibility issue with some Scala 2.13 libraries that use scala-reflect. Apache Spark is one example mentioned in the Scala migration guidance.</p><p>If the application uses one of those libraries, I’d check its current Scala 3 support before moving past this point.</p><h3>Then look at sbt 2</h3><p>I wouldn’t make the sbt upgrade part of the Scala upgrade unless the project was small enough that there was little value in separating them.</p><p>Scala 3.9 can still be built with sbt 1, so there’s no requirement to move both together.</p><p>Once the application is working on Scala 3.9, the sbt version can be changed separately.</p><p>In project/build.properties:</p><pre>sbt.version=2.0.9</pre><p>There are a few changes I’d check straight away.</p><h3>Bare settings have changed</h3><p>In sbt 1, a setting written directly in build.sbt applies to the root project.</p><p>For example:</p><pre>publish / skip := true</pre><p>In sbt 2, bare settings are common settings and are applied to subprojects as well.</p><p>So the example above could result in all of the subprojects being skipped when publishing.</p><p>If it should only apply to the root project:</p><pre>LocalRootProject / publish / skip := true</pre><p>For a multi-project build I’d review the bare settings in build.sbt before running the upgraded build.</p><h3>Custom tasks need checking</h3><p>sbt 2 caches tasks by default.</p><p>For normal compile and test tasks, that’s one of the benefits of the upgrade.</p><p>Custom tasks may need some work.</p><p>If a task has a side effect that needs to happen every time it runs, restoring its result from cache won’t run the task body again.</p><p>Those tasks can be excluded from caching:</p><pre>myTask := Def.uncached { // task implementation }</pre><p>There’s another case to look for. Cached task results need a JsonFormat. If a custom task returns something that can&#39;t be serialised by the cache, sbt can fail while loading the build.</p><p>For an existing project, I’d search the build for custom task definitions and deal with those before looking at anything more complicated.</p><h3>Check the CI pipeline</h3><p>Some sbt 1 commands need changing as well.</p><p>For example:</p><pre>sbt clean compile test</pre><p>becomes:</p><pre>sbt &quot;clean ; compile ; test&quot;</pre><p>There’s also a change in where test output is written. Test reports now sit below target/out, so a CI pipeline with hard-coded paths for JUnit XML or other test results may need updating.</p><p>The sbt server is another difference.</p><p>With sbt 2, later sbt commands in the same CI job can reuse the server started by an earlier command. They’ll also continue using the environment that was present when that server started.</p><p>If different stages deliberately use different environment variables, either put them at job level or shut the server down between stages:</p><pre>sbt &quot;clean ; compile ; test ; shutdown&quot;</pre><h3>Check the plugins before upgrading sbt</h3><p>I’d go through project/plugins.sbt before changing the sbt version.</p><p>For each plugin:</p><pre>Is there an sbt 2 version?<br>Is the plugin still maintained?<br>Does the sbt 2 version require configuration changes?<br>Do we still need the plugin?</pre><p>The ecosystem is in a much better position than it was during the early sbt 2 release candidates. There are now more than 170 compatible plugins and the sbt2-compat work makes it easier for plugin authors to support both sbt versions.</p><p>There will still be older projects where one abandoned plugin holds the upgrade back.</p><p>At that point I’d decide whether to replace the plugin, remove it, update it ourselves or stay on sbt 1 for the time being.</p><h3>How I’d approach a larger Scala estate</h3><p>Once the first application has been upgraded, I’d use what we learned from it for the rest.</p><p>Something along these lines:</p><pre>1. Check JDK, dependencies and sbt plugins<br>2. Move to JDK 17 if required<br>3. Run the Scala migration rewrites<br>4. Deal with the Scala 3.8 compatibility changes<br>5. Move to Scala 3.9<br>6. Test and deploy<br>7. Upgrade sbt separately<br>8. Review custom tasks and settings<br>9. Update CI<br>10. Measure build and test performance</pre><p>If the estate uses the same frameworks, internal libraries and build plugins, most of the investigation has already been done by the time you reach the second or third service.</p><p>I’d also keep the Scala 3.9 and sbt 2 changes as separate pull requests for the larger services. There’s no real benefit in making them dependent on each other.</p><h3>Would I upgrade now?</h3><p>For a new project, I’d use Scala 3.9.</p><p>For an existing Scala 3.3 application, I’d start looking at the move now. There’s no need to rush because 3.3 is still supported, but I wouldn’t wait until the end of that support period either.</p><p>sbt 2 is a slightly different decision.</p><p>For a straightforward build using supported plugins, I’d try it. The caching and incremental testing improvements are useful, and plugin support is now much broader than it was earlier in the year.</p><p>For a complicated build with a lot of custom sbt code, I’d upgrade Scala first and look at sbt separately.</p><p>And if the application is still on Scala 2, I wouldn’t use this process. Moving from Scala 2 to Scala 3 has a different set of compatibility issues and needs its own migration plan.</p><p>For an established Scala 3 application, though, the move from 3.3 to 3.9 looks manageable. The main work is likely to be understanding the dependencies and build around the application rather than changing large amounts of application code.</p><p><em>Originally published at </em><a href="https://mugnaidigital.co.uk/field-notes/scala-3-9-sbt-2-upgrade-guide"><em>https://mugnaidigital.co.uk</em></a><em> on October 5, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f53b20536ee8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI’s Impact on Rewriting Old Software]]></title>
            <link>https://medium.com/@lmugnai/ais-impact-on-rewriting-old-software-98012d2fec02?source=rss-b656d36b7f6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/98012d2fec02</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[legacy-systems]]></category>
            <dc:creator><![CDATA[Lorenzo Mugnai]]></dc:creator>
            <pubDate>Fri, 02 Oct 2026 14:01:00 GMT</pubDate>
            <atom:updated>2026-10-02T14:15:26.345Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OnvX_JpoOr8G5xFJ.png" /></figure><p>I’ve always been fairly cautious about rewriting existing software. It’s not that a rewrite is never the right thing to do. Sometimes a system really has reached the point where continuing to patch it up doesn’t make much sense. But there’s usually a lot more hiding inside an old application than you realise when you first look at the code.</p><p>That’s why I found GitHub’s recent rewrite of the Copilot runtime interesting. They moved it from TypeScript running on Node.js to Rust, and this wasn’t a small application. Around 430,000 lines of production TypeScript passed through the migration and the resulting runtime ended up at more than 800,000 lines of production Rust. Most of that new code was written using AI coding agents.</p><p>The numbers are impressive, but what caught my attention was GitHub’s estimate of what the same project would have looked like without AI. They believe it could have needed a development team for a year or two. Instead, most of the migration was led by one developer over a few months, with support from the wider team, while development of Copilot continued around it.</p><p>That did make me reconsider one of the reasons I’ve traditionally been wary of rewrites. A big part of the problem has always been the cost. You could have a development team spend a year rebuilding something the business already has, and during that time they’re not building all the other things the business needs. Even if everyone agrees the old system isn’t particularly pleasant to work with, it can be a difficult business case to make.</p><p>If AI can take a substantial amount of that implementation work away, perhaps the calculation isn’t quite the same as it was a few years ago. There are probably systems sitting in businesses today where modernisation has been discussed several times and put off because nobody can justify the amount of development effort involved. AI could make some of those conversations worth having again.</p><p>The further I got into GitHub’s write-up, though, the less interested I became in the amount of code the agents had produced and the more interested I became in what happened during the migration.</p><p>GitHub found dozens of regressions. Some functionality wasn’t completely carried across, there were differences in behaviour between the old and new implementations, and there were problems involving state, object lifetimes and the boundaries between the runtime and the applications using it. One thing that particularly caught my attention was what GitHub describes as incorrect test oracles. In some cases, the thing being used to decide whether the new implementation was behaving correctly wasn’t actually checking the right behaviour.</p><p>Anyone who’s spent much time working on existing systems will probably recognise the wider problem. It’s tempting to think that if we’ve got the old code and a decent set of tests then we’ve got a specification for the new system, but I’ve rarely found existing software to be quite that tidy. Tests can be incomplete and documentation gets out of date. A business rule might have been added years ago to deal with an edge case and never written down anywhere else. Sometimes there aren’t many tests or much documentation in the first place.</p><p>I had a look at some of the discussions developers were having around legacy rewrites as well. One that caught my attention involved a Rails application dating back to 2014 that processed real money. The team had spent two years trying to get agreement to rewrite it and had finally got the go-ahead, only to become nervous about actually starting. There were no tests and parts of the codebase that people were reluctant to touch.</p><p>I can understand that. Getting permission to rewrite a system doesn’t suddenly tell you everything the old system does.</p><p>The advice from other developers was largely about capturing that behaviour before replacing it: putting integration and end-to-end tests around the important flows and migrating the application piece by piece. I found similar discussions from developers actually using Copilot for this sort of work. One team migrating a PHP/Symfony application to Laravel found that Copilot became inconsistent when it didn’t have enough architectural context, while another developer described a TypeScript-to-Rust migration where the agent kept reinventing architectural decisions between sessions.</p><p>These are individual experiences rather than evidence that every AI-assisted rewrite will behave the same way, but I think they’re useful because the problems sound very familiar. AI might make producing the new code considerably quicker, but it still needs a reliable way of understanding what the old code was supposed to do.</p><p>You can easily come across a strange condition in an old piece of code and wonder why it’s there. It might be redundant or something that hasn’t been needed for five years. On the other hand, it could handle an obscure business rule that affects a particular type of transaction a couple of times a year. Perhaps there’s a test explaining it, or an old Jira ticket, or somebody on the team remembers why it was added. Sometimes the code itself is the only record you’ve got.</p><p>This is one area where I think AI coding tools can be genuinely useful. On my own projects I’ve found their ability to explore a codebase, follow references and look at related code particularly helpful. An agent can inspect considerably more code than I can in the same amount of time and help piece together relationships that might otherwise take quite a while to find.</p><p>There’s still a difference between finding a piece of code and understanding the business reason behind it. If that knowledge was never recorded in the repository, the agent is in much the same position as a developer joining the project for the first time. It can make a sensible interpretation from the information available, but that interpretation can still be wrong.</p><p>The way GitHub carried out its rewrite becomes quite important when you look at it from that perspective. They didn’t point an agent at the TypeScript repository and ask it to come back when everything was Rust. The migration happened incrementally, with relatively small pieces of the TypeScript implementation being replaced while the main branch remained shippable.</p><p>Over roughly fourteen and a half weeks, GitHub shipped 135 releases: 100 prereleases and 35 stable releases. The new implementation was being exercised throughout the migration rather than sitting separately for months waiting for one big switch at the end. GitHub also used the prereleases to limit initial exposure, watch for problems and get fixes out quickly.</p><p>There’s nothing particularly new about that approach. We’ve been breaking risky changes into smaller pieces, comparing old and new behaviour and gradually replacing parts of systems for years. What I find interesting is that AI doesn’t seem to make those engineering practices less important. If anything, being able to produce code much more quickly might make them more important.</p><p>If an agent can generate in a day the amount of code that might previously have taken a developer considerably longer, we still need to understand and verify that change. At some point the bottleneck starts to move. Writing the code becomes quicker while reviewing it, testing it and understanding whether it does the right thing still takes time.</p><p>There was another detail in GitHub’s account that made me think about what we actually mean by modernising software. Their aim during the migration was to preserve behaviour rather than redesign everything at the same time. That makes sense to me. Changing the programming language, architecture and behaviour together would make it considerably harder to work out what had caused a problem.</p><p>The consequence is that although the new implementation is written in Rust, GitHub says much of it still consists of TypeScript-shaped algorithms rendered in Rust. They haven’t yet done the broader redesign work that Rust’s ownership model, concurrency model and in-process architecture could allow.</p><p>It made me wonder what we actually mean when we say we’ve modernised a system. If we use AI to translate an old application very efficiently into newer technology, have we actually modernised it or have we created a newer version of the same thing?</p><p>That might be perfectly fine if the technology itself is the problem. GitHub had specific reasons for wanting to move away from Node.js and V8. The existing approach meant SDK consumers had to run the Copilot runtime in a separate process, bringing startup and memory costs, cross-process communication and another process to monitor and debug. GitHub wanted lower overheads, more predictable resource use and a runtime that could be embedded directly into applications rather than always running out of process. Those requirements eventually led them to Rust.</p><p>The resulting performance improvements were substantial. In one workload GitHub measured the time for creating a client and session, completing a turn and tearing everything down falling from 5.25 seconds to around 55 milliseconds when running the Rust runtime in-process. In another test, memory use for ten clients fell from 1,383 MB above baseline to 126 MB. GitHub is careful not to claim that this makes the new runtime universally a particular number of times faster, because the results depend on the workload, but it does show there was a real engineering reason for doing the work beyond simply replacing an old technology with a newer one.</p><p>With an older business application, I’d want to understand what we’re trying to fix before deciding that rewriting it is the answer. An old framework may genuinely be becoming difficult to support, or perhaps security and dependency problems are starting to accumulate. In other cases the pain comes from the way the application has grown over the years: tightly coupled components, difficult deployments, poor test coverage or important business knowledge that only exists in the heads of a couple of people. Rewriting the code in a newer language doesn’t automatically make those problems disappear.</p><p>GitHub isn’t the only organisation experimenting with AI-assisted migration at this sort of scale either. Google has been using specialised coding and reviewing agents for C++ to Rust migration work, including work around Fuchsia and other substantial codebases. Again, what interests me isn’t simply that an AI agent can generate a lot of Rust. The resulting code still has to be tested, reviewed and understood before anyone can be confident putting it into production.</p><p>There does seem to be a pattern emerging. AI can do an extraordinary amount of the implementation work, but people are still spending a lot of effort proving that the result is correct.</p><p>I think that’s where the GitHub story has changed my view a little. I still wouldn’t look at an old application and assume that because we now have capable coding agents we should rewrite it. The risks that made rewrites difficult haven’t disappeared. What may have changed quite significantly is the cost of one part of the job.</p><p>GitHub says the AI token bill for its migration came to around $120,000, covering roughly 136 billion tokens. There was obviously human engineering effort around that figure as well — guiding the work, reviewing changes, fixing problems and supporting the migration — so it would be misleading to compare $120,000 directly with the cost of employing a development team for a year or two. Even so, the difference in what a relatively small number of people can now attempt is difficult to ignore.</p><p>For a business with an ageing system, that could make some options worth reconsidering. A modernisation project that didn’t make financial sense three years ago might look different if a significant amount of the repetitive implementation work can now be handled by agents.</p><p>I’d still want to know a lot about the existing system before deciding to do it: what behaviour has to be preserved, how good the tests are, where the business knowledge lives, whether the system can be changed gradually rather than replaced in one enormous step, and what we’re actually trying to improve in the first place.</p><p>AI can help investigate the existing code, create tests, trace dependencies and produce replacement code at a scale that would have seemed fairly unrealistic not long ago. What it can’t do is magically recover business knowledge that was never recorded or decide which of fifteen years’ worth of accumulated behaviour still matters.</p><p>When I think about the difficult legacy systems I’ve worked with, physically writing the replacement code was rarely the thing that concerned me most. It was understanding what I could safely change without breaking something that somebody, somewhere, still relied on.</p><p>AI may be starting to make the first part considerably cheaper. I’m not sure it’s made the second part any easier.</p><h3>References and further reading</h3><h3>GitHub — Migrating the GitHub Copilot runtime to Rust, using Copilot</h3><p>The main source for the scale of the migration, how GitHub approached it, regressions, performance results and AI costs.</p><p><a href="https://github.blog/ai-and-ml/generative-ai/migrating-the-github-copilot-runtime-to-rust-using-copilot/">https://github.blog/ai-and-ml/generative-ai/migrating-the-github-copilot-runtime-to-rust-using-copilot/</a></p><h3>Reddit / r/softwarearchitecture — Finally convinced leadership to let us rewrite the legacy app. Now everyone is terrified to start</h3><p>A developer discussion around a Rails application handling real money, no existing tests and the risks of beginning a rewrite.</p><p><a href="https://www.reddit.com/r/softwarearchitecture/comments/1q8ziok/finally_convinced_leadership_to_let_us_rewrite/">https://www.reddit.com/r/softwarearchitecture/comments/1q8ziok/finally_convinced_leadership_to_let_us_rewrite/</a></p><h3>Reddit / r/GithubCopilot — Anyone using Copilot effectively for refactoring a large legacy codebase?</h3><p>Experiences of using Copilot during larger migrations, including test generation, architectural context and keeping agents consistent across the work.</p><p><a href="https://www.reddit.com/r/GithubCopilot/comments/1rcdgi4/anyone_using_copilot_effectively_for_refactoring/">https://www.reddit.com/r/GithubCopilot/comments/1rcdgi4/anyone_using_copilot_effectively_for_refactoring/</a></p><h3>Reddit / r/GithubCopilot — Migrating codebases between proprietary frameworks</h3><p>Discussion around using coding agents with more than 20 years of legacy code and little or no existing test coverage.</p><p><a href="https://www.reddit.com/r/GithubCopilot/comments/1rhhxqc/migrating_codebases_between_proprietary_frameworks/">https://www.reddit.com/r/GithubCopilot/comments/1rhhxqc/migrating_codebases_between_proprietary_frameworks/</a></p><h3>Google Fuchsia — C++ to Rust migration tooling</h3><p>Google’s work on agent-assisted C++ to Rust migration, including separate coding and reviewing roles.</p><p><a href="https://fuchsia.googlesource.com/fuchsia/+/01e01b645609b72f717f689521c7bca9b64fad2b">https://fuchsia.googlesource.com/fuchsia/+/01e01b645609b72f717f689521c7bca9b64fad2b</a></p><p><em>Originally published at </em><a href="https://mugnaidigital.co.uk/field-notes/ai-impact-rewriting-old-software"><em>https://mugnaidigital.co.uk</em></a><em> on October 2, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=98012d2fec02" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How GitHub’s Sandboxing could help us keep AI Coding Agents under control]]></title>
            <link>https://medium.com/@lmugnai/how-githubs-sandboxing-could-help-us-keep-ai-coding-agents-under-control-0e0c9f0ce251?source=rss-b656d36b7f6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/0e0c9f0ce251</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Lorenzo Mugnai]]></dc:creator>
            <pubDate>Fri, 25 Sep 2026 09:14:02 GMT</pubDate>
            <atom:updated>2026-09-25T21:04:16.682Z</atom:updated>
            <content:encoded><![CDATA[<h3>How GitHub’s Sandboxing Could Help Us Keep AI Coding Agents Under Control</h3><p>I use AI coding tools regularly on my own software projects, and they’ve become useful surprisingly quickly.</p><p>What I’ve also noticed is how easily the level of access we give them can creep up.</p><p>It starts fairly innocently. You ask an AI tool to explain a piece of code or suggest a change. Then you let it look through the repository because that’s much more useful than copying individual files into a chat. Before long it’s running tests, changing several files at once, installing dependencies and executing commands in the terminal.</p><p>And that’s the point where I think we need to understand a little more about what we’re actually allowing these tools to do.</p><p>I’m not particularly worried about an AI agent suddenly deciding to do something malicious. I’m more concerned about it doing something perfectly logical based on the information it has, without understanding something about the system or environment that a developer knows.</p><h3>A coding agent needs more than access to the code</h3><p>Part of what makes the latest coding agents so useful is that they can actually work with a project.</p><p>They can search through a repository, inspect build files, run tests, look at the output and use what they find to decide what to try next. Some can run shell commands, install packages and interact with external services.</p><p>That’s much closer to how I would investigate a problem myself.</p><p>The difference is that my development environment contains far more than the code I’m currently working on.</p><p>Like most developers, I may have access to private repositories, SSH keys, cloud services, local configuration, databases and different development environments. Some of that access is there simply because I’ve accumulated it while working on a project.</p><p>If I ask an agent to fix a failing test, how much of that does it actually need?</p><p>Probably the repository. Probably the build tools. It may need to run the tests.</p><p>Does it need access to my entire home directory? My SSH keys? Every service my machine can connect to? Production credentials?</p><p>Probably not.</p><p>And yet unless we understand how the tool is configured, we may be giving it exactly that.</p><h3>GitHub is starting to put boundaries around this</h3><p>This is why a recent change from GitHub caught my attention.</p><p>GitHub has introduced local sandboxing for its Copilot coding agent. The idea is that the agent can still work on a project, but developers can restrict what it has access to.</p><p>That can include which files it can read and change, whether it can access the network and whether Git and GitHub credentials are available to it.</p><p>GitHub has also designed the feature so that a session fails if the operating system cannot enforce the requested restrictions, rather than simply continuing without them.</p><p>What I like about the idea isn’t really the sandboxing technology itself. It’s the principle behind it.</p><p>Instead of asking <em>what can we allow this agent to do?</em>, we start by asking <em>what does it actually need to do this piece of work?</em></p><p>That’s already a familiar principle in software engineering. We generally don’t give an application unrestricted access to every database and service available just because it’s convenient. We give it the permissions it needs.</p><p>I’m beginning to think we should look at coding agents in much the same way.</p><h3>What happens when an agent does something we didn’t expect?</h3><p>Imagine asking an agent to investigate a failing test.</p><p>It looks through the code, runs the test suite and decides that the problem appears to involve a database connection. It examines the configuration and starts trying different things to work out what’s happening.</p><p>Nothing particularly unusual there. That’s probably similar to what a developer would do.</p><p>But suppose the repository contains configuration for several environments.</p><p>A developer who knows the system may recognise one of those connections and think, <em>I don’t want to run that against there.</em></p><p>Would the agent?</p><p>Maybe. But I don’t think that’s something I’d want to rely on.</p><p>And this is where I think there’s a danger of treating approval prompts as the complete solution. If an agent has successfully run ten commands while investigating something, it’s quite easy for the eleventh approval to become another button we click without giving it much thought.</p><p>I’d rather have a development environment where the agent couldn’t connect to something sensitive in the first place unless we’d deliberately decided that it should.</p><h3>This gets more complicated when you’re working in a team</h3><p>This is where I think the conversation becomes particularly interesting for development teams.</p><p>When I’m using an AI coding agent on one of my own projects, I can decide how much access I’m comfortable giving it. But once several developers are working on the same application, those individual decisions could start to affect the whole team.</p><p>One developer might use an agent inside a restricted environment. Another might let it run commands directly on their machine. Someone else may have credentials or network access that the rest of the team doesn’t have.</p><p>Suddenly the way AI agents are being used becomes part of the team’s engineering practices, even if nobody has actually discussed it.</p><p>I don’t think that means teams need a huge AI policy before anybody can use these tools. That would probably become outdated almost as quickly as it was written.</p><p>But I do think teams should understand what the tools they’re using are capable of doing.</p><p>If we’re happy for agents to write tests, refactor code and investigate failures, what access do those tasks require? Are there environments they shouldn’t be able to reach? Should they be allowed to install new dependencies? When should a developer need to approve something?</p><p>Those seem like reasonable engineering conversations to have.</p><h3>We still need to understand the changes they’re making</h3><p>Access is only one side of this.</p><p>An agent can stay entirely within the repository and still make a change that nobody on the team properly understands.</p><p>It might update a build configuration, introduce another dependency or remove some code that looks redundant.</p><p>Sometimes that code really is redundant. Sometimes it exists because of a problem somebody discovered three years ago and nobody ever wrote down why.</p><p>I’ve worked on enough existing systems to know how much knowledge sits outside the code itself.</p><p>There are business rules, integrations, strange edge cases and decisions that made perfect sense when they were made but aren’t obvious when you look at an individual file.</p><p>AI doesn’t make that context disappear.</p><p>In fact, as agents become capable of making larger changes more quickly, I think understanding that context becomes more important.</p><p>If an agent changes twenty files in a few minutes, somebody still needs to understand what changed and why. A green build helps. Passing tests help. Neither automatically tells us that we’ve made the right change to the system.</p><p>That doesn’t mean manually checking every line an agent produces forever. Our development practices will change as the tools improve.</p><p>But I wouldn’t be comfortable getting to the point where the answer to <em>“why does the system work this way?”</em> becomes <em>“the agent changed it and the tests passed.”</em></p><h3>How should a team approach this?</h3><p>I don’t think the answer needs to be particularly complicated.</p><p>A sensible starting point would be to give an agent access to what it needs to do the work, rather than everything the developer happens to have access to.</p><p>For a lot of development work, that’s probably the repository, the build tools and whatever is required to run the application and its tests locally. If it needs something else, that can be a deliberate decision rather than something the agent inherits automatically.</p><p>I’d also want developers to be able to see what an agent has done: the commands it ran, the files it changed, any dependencies it introduced and any configuration it touched.</p><p>Most importantly, I’d still expect the team to understand the change being delivered.</p><p>That last part matters to me more than any particular sandboxing feature.</p><p>AI coding agents are going to get better. I’m already finding them useful on my own projects, and I can see them taking on considerably more development work over the next few years.</p><p>But increased capability is probably a reason to understand their boundaries better, not a reason to stop thinking about them.</p><p>We shouldn’t need to be frightened of letting an agent run a command. We should know what it can run, what it can reach and what happens if it gets something wrong.</p><p>That’s the point where I’d be much more comfortable letting it get on with the work.</p><p><em>Originally published at </em><a href="https://mugnaidigital.co.uk/field-notes/github-sandboxing-ai-coding-agents"><em>https://mugnaidigital.co.uk</em></a><em> on September 25, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0e0c9f0ce251" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Would you let an AI Agent pick up the next Jira ticket?]]></title>
            <link>https://medium.com/@lmugnai/would-you-let-an-ai-agent-pick-up-the-next-jira-ticket-69c8f9036271?source=rss-b656d36b7f6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/69c8f9036271</guid>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Lorenzo Mugnai]]></dc:creator>
            <pubDate>Tue, 15 Sep 2026 09:48:50 GMT</pubDate>
            <atom:updated>2026-09-15T11:32:58.350Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gqJsDZJ6MmFpj9T1.png" /></figure><p>I saw an announcement from Atlassian recently that made me think about something software teams might have to get used to fairly quickly.</p><p>They’ve been working on what they call “governed agent loops”. The idea is that an AI agent doesn’t just help a developer write some code. It can find suitable work in Jira, pick up a ticket, make the changes, run the tests and raise a pull request for somebody to review.</p><p>Some of this is already possible. Jira can assign work to coding agents, and Atlassian is also working on ways of checking whether a ticket contains enough information before an agent starts working on it. The more automated version, where agents continuously work through suitable tickets, is still in early access.</p><p>It made me wonder whether I’d actually be comfortable letting an AI agent pick up the next ticket from a backlog and start working on it. I think there are already some types of work where I would, but the more I thought about it, the less the question seemed to be about whether the agent could write the code.</p><h3>The ticket is rarely the whole story</h3><p>I’ve worked in software delivery teams for a long time, and a Jira ticket can look perfectly reasonable until somebody actually starts working on it.</p><p>You read the description, look through the acceptance criteria and everything seems clear enough. Then somebody starts looking at the code and asks a question which leads to a conversation with the BA. QA remembers an edge case from a similar piece of work. Another developer points out that a different service depends on the behaviour we’re about to change, or somebody realises there’s an accessibility requirement that wasn’t mentioned in the ticket.</p><p>That doesn’t necessarily mean the ticket was badly written. Quite often it’s just the point where a fairly simple description of a change meets the reality of an existing software system.</p><p>A lot of the information needed to make a good change doesn’t live in Jira. Some of it is in the code, automated tests, documentation and architecture decisions. Other parts are simply known by the people who have spent time working on the system.</p><p>You also don’t always know which bits of that information matter until somebody starts asking questions.</p><p>That’s something an AI agent has to deal with if we’re going to give it real development work rather than use it as a coding assistant.</p><h3>Writing the code may not be the difficult part</h3><p>Take a fairly ordinary change to an online form. We want to add autocomplete to a country field and the acceptance criteria say that somebody should be able to start typing a country name and select it from a list.</p><p>A coding agent could probably make a reasonable attempt at that quite quickly. It could find the relevant page, change the component, write some tests and raise a pull request.</p><p>There may be quite a lot behind that simple change though.</p><p>The service might have accessibility requirements around keyboard navigation and screen readers. There could already be an autocomplete component elsewhere in the application that should be reused. Some country names might need to map to different values before they’re sent to another system, and there may be existing tests which cover behaviour that isn’t obvious from reading the ticket.</p><p>A developer familiar with the service might already know some of that. Somebody less familiar would probably discover it as they worked through the change and started speaking to the rest of the team.</p><p>An agent needs a way of getting to the same information.</p><p>That’s the part of Atlassian’s announcement I found more interesting than the coding itself. Their approach is about giving agents access to more of the context around the work, including coding standards, architecture and previous decisions, while also putting permissions, review and organisational controls around what they produce.</p><p>Once agents start picking up real work, the problem becomes much closer to the one we already have when somebody new joins a team.</p><h3>Would you give the ticket to a new developer?</h3><p>Imagine a capable developer joined the team this week but didn’t know the system yet. Could you give them the ticket and reasonably expect them to understand what needed to be done?</p><p>If they would immediately need to speak to three people before they could safely make the change, I’d be cautious about assuming an AI agent has everything it needs simply because the acceptance criteria look complete.</p><p>I don’t think the answer is to turn every Jira ticket into a detailed technical specification either. That would create its own problems and we’d soon spend an unreasonable amount of time maintaining tickets.</p><p>The useful information needs to live in sensible places. Architecture decisions can be documented. Coding standards can be clear. Important behaviour can be captured by automated tests. APIs can have contracts, and decisions that are likely to matter again can be written down rather than disappearing into a meeting or a message thread.</p><p>Most good teams already try to do some version of this, but agents could make the gaps much easier to spot.</p><p>A ticket might only make sense because everyone currently in the team remembers a conversation from three months ago. An important design decision might still live mainly in the head of one developer. The automated tests might not explain the expected behaviour particularly well because everybody involved already knows how that part of the system works.</p><p>People tend to fill those gaps for each other. An agent won’t necessarily know that there is a gap to fill.</p><p>Making more of that knowledge visible would help an agent, but it would also help somebody joining the team or returning to an area of the system they haven’t worked on for a while. Preparing software for agents could therefore expose some fairly ordinary engineering improvements that were worth making anyway.</p><h3>Faster coding doesn’t necessarily mean faster delivery</h3><p>There’s another reason I’d be cautious about measuring the value of these tools simply by how quickly they produce code.</p><p>Most software teams aren’t being held up because developers can’t type quickly enough. Work gets delayed because requirements aren’t clear, another team needs to make a change, somebody is waiting for an answer, a pull request needs reviewing, an environment isn’t working or a decision hasn’t been made.</p><p>Writing the code is one part of getting something into production.</p><p><a href="https://dora.dev/ai/gen-ai-report/report/">DORA’s research into AI-assisted software development</a> is useful here. Developers reported improvements in areas such as productivity and flow as AI adoption increased, but that didn’t automatically translate into improvements in delivery performance. Their research also found associations with lower delivery throughput and stability.</p><p>That doesn’t strike me as particularly surprising.</p><p>I use AI in my own development work and there are tasks I can get through much faster than I could previously. If I produce a change twice as quickly and it then waits for somebody to review it, however, part of the time I’ve saved has simply moved somewhere else in the process.</p><p>If a whole team starts producing changes more quickly, that could mean more pull requests waiting for review, more changes competing for testing and more code moving through environments at the same time. If the requirements weren’t completely understood in the first place, it could also mean more rework.</p><p>So if AI agents do start taking more work directly from our backlogs, I’d want to look at what happens to the whole delivery process rather than just how quickly each individual change is generated.</p><h3>What would I actually give an agent?</h3><p>I’d start with work that was small, well understood and easy to verify.</p><p>A dependency update is an obvious example. A straightforward test failure might be another. There will also be small application changes where the behaviour is well covered by tests and the surrounding code gives the agent most of the context it needs.</p><p>I’d still expect the agent to work within the same engineering controls as everybody else. Tests need to pass, security and coding standards still matter, changes need appropriate review and somebody remains responsible for deciding whether something should make it into production.</p><p>I’d then see what happened.</p><p>If an agent consistently handled that kind of work well, I’d be comfortable trying something a little more complicated. If it repeatedly needed information that wasn’t available to it, I’d be more interested in understanding why than simply trying a different model.</p><p>I wouldn’t currently give an agent free rein over a backlog and assume that anything marked ready for development was safe for it to pick up. But I can see myself being comfortable with an agent taking certain well-defined Jira tickets, making the change and raising a pull request for the team to review.</p><p>Before doing that, though, I’d probably spend at least as much time looking at the tickets, the codebase and the way the team works as I would choosing the AI agent.</p><p>That seems likely to tell us quite a lot about whether we’re actually ready to use one.</p><p><em>Originally published at </em><a href="https://mugnaidigital.co.uk/field-notes/would-you-let-ai-agent-pick-up-next-jira-ticket"><em>https://mugnaidigital.co.uk</em></a><em> on September 15, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=69c8f9036271" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Is Google Choosing From Your Website for AI Search?]]></title>
            <link>https://medium.com/@lmugnai/what-is-google-choosing-from-your-website-for-ai-search-012c2c5faec5?source=rss-b656d36b7f6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/012c2c5faec5</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[google-search]]></category>
            <category><![CDATA[seo]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Lorenzo Mugnai]]></dc:creator>
            <pubDate>Fri, 11 Sep 2026 15:19:55 GMT</pubDate>
            <atom:updated>2026-09-11T16:00:06.785Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vYtB39n6ykHzYRT2.png" /></figure><p>I’ve been paying quite a bit of attention recently to how AI is changing search.</p><p>Part of that is because it affects the websites we build, but I’m also interested in it from the point of view of my own website. I write these Field Notes about software development, websites and technology, and naturally I want to understand how people find them.</p><p>Until recently, understanding whether any of that content was appearing in Google’s AI results involved quite a bit of guesswork.</p><p>Google Search Console now has a Generative AI performance report. It shows when pages from your website appear in AI Overviews and AI Mode, and Google rolled it out worldwide at the end of August.</p><p>At first glance it looks like another analytics report. There’s a graph, some impressions and a table of pages.</p><p>But I think there’s a more interesting question we can start asking with it.</p><p><strong>What is Google actually choosing from our websites when it needs information for an AI response?</strong></p><h3>A real example from this website</h3><p>A few days ago I wrote a Field Note about the release of Scala 3.9.</p><p>I could have written an article explaining that Scala 3.9 had been released and listing everything that had changed, but there wasn’t much point. The Scala team had already published an excellent release announcement.</p><p>Instead, I wrote about the question I’d be asking if I was responsible for a Scala application in production: should we actually upgrade yet?</p><p>That article started ranking in Google remarkably quickly. When I checked a few days later, it was appearing second for “scala 3.9”, directly underneath the official Scala website.</p><p>Now there’s another thing I can watch.</p><p>Does Google also decide that article is useful when somebody asks a more conversational question in AI Mode, perhaps about whether it’s safe to move a production application from Scala 3.3 to 3.9?</p><p>Search Console won’t tell me the exact question somebody asked. That’s one of the limitations of the new report.</p><p>But it can tell me whether that particular page is being surfaced in Google’s AI features.</p><p>I’m genuinely interested to see what happens.</p><h3>This could tell us something useful about our websites</h3><p>Think about a completely different business.</p><p>Imagine a company running a handful of holiday cottages in Northumberland.</p><p>Its website probably has the pages you’d expect. Home, accommodation, prices, availability, things to do and contact details.</p><p>Those pages are important, but they’re also fairly similar to thousands of other accommodation websites.</p><p>Now imagine the owner has also put together a really useful page about staying in Northumberland with a dog. It explains which cottages have enclosed gardens, which nearby beaches allow dogs throughout the year and which local pubs are dog friendly.</p><p>Someone planning a holiday might ask Google something like:</p><p><em>“Where can I stay near the Northumberland coast with two dogs and an enclosed garden?”</em></p><p>Suddenly that detailed page has something useful to contribute that a generic accommodation page doesn’t.</p><p>If Search Console starts showing that page regularly appearing in Google’s AI results, I’d want to know.</p><p>Not because we need to celebrate another impression, but because we’ve learnt something about the information people are finding useful.</p><h3>The interesting bit isn’t the total number</h3><p>The new report doesn’t tell us everything.</p><p>An impression means that a link to your website appeared within one of Google’s generative AI features. It doesn’t mean somebody visited the website, made an enquiry or bought anything.</p><p>Google also isn’t currently showing the queries that produced those impressions.</p><p>That makes the big headline number considerably less interesting to me than the pages underneath it.</p><p>If I discovered that my homepage had 5,000 AI impressions, I’m not sure what I’d do with that information.</p><p>If I discovered that three Field Notes were responsible for most of them, I’d immediately want to compare those articles.</p><p>What were they about?</p><p>What questions did they answer?</p><p>Were they based on experience rather than information that could be found on hundreds of other websites?</p><p>And perhaps more importantly, what did I write that Google didn’t use?</p><p>That starts to become useful.</p><h3>Maybe the type of content that works will change</h3><p>Traditional Google searches have often been short.</p><p>“scala 3.9”</p><p>“dog friendly cottages northumberland”</p><p>“accountant newcastle”</p><p>AI search makes it much easier to ask something more complicated.</p><p>Instead of searching for “legacy software modernisation”, someone might explain that their business has a ten-year-old application, the original developers have left, releases are becoming difficult and they’re trying to decide whether to rewrite it or improve it gradually.</p><p>That’s a very different search.</p><p>A generic page saying “we provide software modernisation services” doesn’t answer much of it.</p><p>A detailed article written by somebody who has dealt with older production systems might.</p><p>That doesn’t mean every business suddenly needs to start producing hundreds of articles for AI. But it could make genuinely useful, specific knowledge on a website more valuable.</p><p>Google’s own guidance around generative AI search points in a similar direction. It talks about original, non-commodity content and says the normal foundations of good SEO still apply. Google has also explicitly said that things such as llms.txt aren&#39;t required for Google Search and don&#39;t improve visibility or rankings there.</p><p>So there doesn’t appear to be a magic AI file we can add to a website and consider the job done.</p><h3>I’m going to watch what happens</h3><p>That’s probably what I like most about this new report.</p><p>It gives us something we can actually observe.</p><p>Over the next few months I’ll be watching which Mugnai Digital pages appear in Google’s AI results. I’m particularly interested in the Field Notes because they cover quite different subjects.</p><p>Does a technical Scala article appear more often than something about website design?</p><p>Do practical articles perform differently from broader opinion pieces?</p><p>Does an article continue appearing months after the news that prompted it has passed?</p><p>And does being visible there eventually translate into people actually discovering the website?</p><p>I don’t know yet.</p><p>But that’s much more interesting than somebody giving me a checklist of ten things I’m apparently supposed to do to optimise a website for AI.</p><p>For the first time, we’ve got a little window into what Google is choosing from our websites when its AI tries to answer somebody’s question.</p><p>I’m going to be watching mine.</p><p><em>Originally published at </em><a href="https://mugnaidigital.co.uk/field-notes/what-google-chooses-website-ai-search"><em>https://mugnaidigital.co.uk</em></a><em> on September 11, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=012c2c5faec5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scala 3.9 LTS: Should Production Teams Upgrade?]]></title>
            <link>https://medium.com/@lmugnai/scala-3-9-lts-should-production-teams-upgrade-ea67377c0b0e?source=rss-b656d36b7f6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea67377c0b0e</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[jvm]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[scala]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Lorenzo Mugnai]]></dc:creator>
            <pubDate>Mon, 07 Sep 2026 16:33:41 GMT</pubDate>
            <atom:updated>2026-09-07T16:45:23.589Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UhLJFQjwtpkY37kp.png" /></figure><p>Scala 3.9 is now the latest Long-Term Support release of Scala 3, replacing Scala 3.3 as the recommended LTS version.</p><p>For teams running Scala in production, particularly those responsible for services that need to remain stable for years rather than months, that makes 3.9 an important release.</p><p>But a new LTS version does not necessarily mean changing scalaVersion and deploying it next week.</p><p>The more useful question is what an upgrade would mean for the whole system around your Scala code.</p><h3>What does Scala 3.9 LTS actually mean?</h3><p>Long-Term Support releases are intended to provide a more stable foundation for teams that value predictability over adopting every new language release.</p><p>Scala 3.9 will receive long-term maintenance, while Scala 3.3 does not suddenly become obsolete. The Scala team plans to continue actively maintaining the 3.3 LTS line for another year.</p><p>That gives production teams something valuable: time.</p><p>Rather than treating the release as an urgent migration, teams can assess what moving to 3.9 would involve and choose an appropriate point in their development roadmap.</p><h3>It is rarely just a Scala upgrade</h3><p>One of the more important changes for teams coming from Scala 3.3 is the Java version underneath it.</p><p>Scala 3.9 requires JDK 17 or newer.</p><p>For a modern service that may already be completely unremarkable. But long-running Scala systems can have much older assumptions hidden in build pipelines, Docker images, deployment environments and supporting tooling.</p><p>The compiler may be the easy part.</p><p>Before upgrading, I would want to understand the versions of Java, sbt and plugins being used, whether important libraries support the new Scala version, and whether CI and deployment environments are ready for the same change.</p><p>That is why language upgrades are better treated as small software-modernisation projects rather than isolated version changes.</p><h3>What about library compatibility?</h3><p>This is particularly important with a new Scala LTS.</p><p>A large part of the Scala ecosystem has been built around Scala 3.3, and libraries published using Scala 3.9 cannot automatically be consumed by applications that remain on Scala 3.3.</p><p>For application teams, the practical question is therefore not simply whether Scala 3.9 is ready. It is whether the combination of libraries and frameworks their application depends on is ready too.</p><p>That might include a web framework, database drivers, JSON libraries, HTTP clients, testing tools and organisation-specific libraries.</p><p>The answer will be different for every codebase.</p><h3>How I would approach the upgrade</h3><p>I would start by understanding the system before changing anything.</p><p>Check the current JDK and build tooling. Review the important dependencies and plugins. Look for anything that has not been maintained recently or has unclear support for newer Scala versions.</p><p>Then make the changes incrementally.</p><p>The Scala team itself recommends upgrading the surrounding tooling and platform in stages rather than changing everything simultaneously. Keeping the build green between those stages makes it considerably easier to understand where a problem has been introduced.</p><p>For a production service, I would also want the existing test suite to be in good shape before beginning.</p><p>Compiler upgrades can expose warnings, deprecated behaviour or assumptions that have gone unnoticed for years. A strong automated test suite gives the team much more confidence that the application still behaves as expected after those changes.</p><p>And once it has been deployed, normal production monitoring still matters. Passing a build and passing automated tests are important, but they are not the same as observing how a real service behaves under real traffic.</p><h3>Don’t rush</h3><p>Keeping software reasonably current matters.</p><p>Allowing language versions, libraries and build tooling to fall years behind eventually makes every future change harder. Security fixes become more difficult to adopt, engineers spend more time dealing with obsolete tooling, and what could have been a sequence of manageable upgrades turns into a major migration.</p><p>But the opposite extreme is not particularly useful either.</p><p>Production engineering is not about running the newest version of everything. It is about maintaining software that is secure, supportable and straightforward to change.</p><p>For teams currently running Scala 3.3 LTS successfully, Scala 3.9 is a good reason to start evaluating the next upgrade. It is not a reason to rush one through.</p><p>The right time to move is when the surrounding ecosystem is ready, the team understands the migration, and there is enough confidence in the tests and deployment process to make the change safely.</p><blockquote><strong><em>Our view:</em></strong><em> A new LTS release is a useful point to review the health of a Scala service, not just its compiler version. Scala 3.9 gives production teams a new long-term destination, but the real value comes from using the upgrade to understand dependencies, modernise tooling and make sure the service remains easy to maintain for the next few years.</em></blockquote><p><em>Originally published at </em><a href="https://mugnaidigital.co.uk/field-notes/scala-3-9-lts-production-upgrade"><em>https://mugnaidigital.co.uk</em></a><em> on September 7, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea67377c0b0e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Is WebMCP? AI Agents and the Future of Websites]]></title>
            <link>https://medium.com/@lmugnai/what-is-webmcp-ai-agents-and-the-future-of-websites-b7ce843560f5?source=rss-b656d36b7f6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/b7ce843560f5</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[future-of-the-web]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Lorenzo Mugnai]]></dc:creator>
            <pubDate>Fri, 04 Sep 2026 14:31:06 GMT</pubDate>
            <atom:updated>2026-09-09T11:54:03.654Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nDWiFXGcD37HVKyR.png" /></figure><p>Most websites have traditionally been built with two audiences in mind. The people actually using them, and the search engines trying to understand what they contain.</p><p>That has influenced the way we build websites for years. Navigation needs to make sense, pages need to be accessible and easy to use, and the content needs enough structure for search engines such as Google to understand what the business does.</p><p>AI is starting to introduce another type of visitor: the AI agent.</p><p>We’ve already become used to AI systems reading websites. ChatGPT can find information from them, Google can use them within AI search results and businesses are understandably starting to think about how their content appears in those answers.</p><p>AI agents take that idea a step further because they aren’t necessarily just looking for information. They can be given a task to carry out on someone’s behalf, which could mean checking availability, arranging an appointment or interacting with another system.</p><p>I think this is where WebMCP gets interesting.</p><h3>What is WebMCP?</h3><p>WebMCP is a proposed web standard designed to give AI agents a more structured way of interacting with websites.</p><p>At the moment, an AI agent trying to use a normal website often has to do something surprisingly similar to what we do. It needs to understand the page, find the relevant button or form, work out what information is required and then interact with the interface.</p><p>WebMCP takes a different approach. A website can explicitly describe certain things that it is capable of doing and make those capabilities available to a compatible AI agent.</p><p>If a website allows appointments to be booked, for example, it could expose that as an action and describe the information needed to complete it, such as the date, time, name and email address.</p><p>The agent no longer has to work out how the booking page works. The website has provided a structured way for software to interact with that particular part of the business.</p><p>WebMCP is still experimental, so this isn’t something I think businesses need to start implementing on their websites. What interests me more at this stage is what it tells us about where the web could be heading.</p><h3>What might this look like in practice?</h3><p>A hotel is a fairly easy example.</p><p>Imagine asking an AI assistant to find a dog-friendly hotel near Keswick for a particular weekend, with parking and a budget of £180 a night. AI can already help find suitable hotels, but checking whether a room is actually available usually means going through the hotel’s website or booking system.</p><p>If the hotel made availability checking available to AI agents, the assistant could potentially check those dates directly and bring the available options back.</p><p>The hotel wouldn’t need to give the AI access to its whole booking system. It could make one specific capability available, with its own rules around what information can be requested and what the agent is allowed to do.</p><p>The same idea isn’t difficult to imagine elsewhere. A restaurant could make table availability accessible, an accountant could make appointment slots available, or a shop could allow an agent to check whether something is in stock.</p><p>It doesn’t necessarily mean the AI completes the entire process either. There is a big difference between checking that a hotel room is available and actually booking it and taking payment. Some actions could happen automatically while others might still need the person to confirm what they want to do.</p><h3>The website is only part of the picture</h3><p>This is where I think WebMCP becomes more interesting from a software point of view.</p><p>Many business websites already rely on several other systems behind the scenes. A booking form might connect to a reservation system, an enquiry could be passed into a CRM, an online shop needs access to stock information, and an appointment system may ultimately be reading and updating a calendar.</p><p>None of that is particularly new. Businesses have been connecting systems together through APIs and integrations for years.</p><p>What is potentially changing is the interface sitting in front of them.</p><p>Until now we’ve mostly expected a person to visit a website and use the interface we’ve designed for them. WebMCP suggests that an AI agent could become another way of reaching some of the same underlying services.</p><p>That doesn’t suddenly make every existing website obsolete. People are still going to want to browse a hotel, look at photographs, read about a service or compare products themselves. But some interactions are much more functional. If all somebody wants to know is whether a table is available at 7pm on Saturday, an AI agent doesn’t necessarily need to navigate the restaurant’s website in the same way they would.</p><h3>Why the software underneath matters</h3><p>One of the things I like about this idea is that preparing for it doesn’t really require businesses to start adding lots of AI technology.</p><p>A business whose website already connects cleanly to its other systems is in a much better position to offer those capabilities through different interfaces in future. If bookings, enquiries, stock or appointments are tied up in awkward manual processes, adding an AI agent on top isn’t going to fix the underlying problem.</p><p>In that sense, WebMCP is another example of something I’ve seen quite often with new technology. The newest part gets most of the attention, but whether it is genuinely useful often comes down to much less exciting things such as how the existing software has been designed and how well the different systems work together.</p><p>There is value in getting those things right even if WebMCP never becomes widely adopted.</p><h3>There will need to be limits</h3><p>There are also some fairly obvious questions around how much an AI agent should be allowed to do.</p><p>Letting an agent check whether something is available is relatively straightforward. Letting it make a purchase, cancel a booking or change information held about a customer carries more risk.</p><p>Any useful implementation would need clear boundaries around what an agent can access and which actions require confirmation. That is no different in principle from the way we should already design integrations between systems: give something access to what it needs rather than giving it access to everything.</p><p>This will become more important if AI agents start carrying out more consequential tasks, particularly where money or personal information is involved.</p><h3>Is WebMCP something businesses should look at now?</h3><p>For most businesses, there probably isn’t any urgency. WebMCP is still experimental and proposed web standards can change considerably before they become widely supported.</p><p>That doesn’t mean there’s no value in exploring it, though. A business that already has well-defined online processes, such as bookings, appointments, availability checks or product searches, could be a good candidate for experimenting with WebMCP and learning how agent-based interactions might fit alongside its existing website.</p><p>I wouldn’t build a business-critical process around it yet, but there’s a difference between depending on an experimental technology and experimenting with one. For some businesses, getting that experience early could be useful if AI agents do become a more common way for customers to interact with websites.</p><p>What interests me most is that the foundations needed aren’t particularly new. Websites with well-designed APIs, sensible integrations and clearly defined processes are already in a much better position to experiment with this kind of technology.</p><blockquote><strong><em>Our view</em></strong></blockquote><blockquote><em>WebMCP is still early, so I don’t think every business needs to start changing its website. But for businesses with the right use case, I do think it’s worth experimenting with.</em></blockquote><blockquote><em>The interesting part isn’t really whether WebMCP itself becomes the standard everyone eventually uses. It’s the wider idea that websites may increasingly be used by software acting on behalf of customers as well as by customers themselves.</em></blockquote><blockquote><em>Businesses with clear processes, sensible integrations and well-designed software underneath their websites will be in a much better position to explore that shift — whether that means experimenting with WebMCP now or adapting to whatever eventually becomes established.</em></blockquote><p><em>Originally published at </em><a href="https://mugnaidigital.co.uk/field-notes/what-is-webmcp-ai-agents-websites"><em>https://mugnaidigital.co.uk</em></a><em> on September 4, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b7ce843560f5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>