<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>Elder Moraes</title>
	<atom:link href="https://eldermoraes.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://eldermoraes.com</link>
	<description>Backend | Java | Quarkus | AI | Career</description>
	<language>en-US</language>
	<item>
		<title>Migrating to Quarkus 4: quarkus update and the coding agent</title>
		<link>https://eldermoraes.com/migrating-to-quarkus-4-quarkus-update-and-the-coding-agent/</link>
		<pubDate>Thu, 03 Dec 2026 00:00:00 +0000</pubDate>
		<category><![CDATA[AI]]></category>
		<category><![CDATA[Java]]></category>
		<guid isPermaLink="true">https://eldermoraes.com/migrating-to-quarkus-4-quarkus-update-and-the-coding-agent/</guid>
		<description><![CDATA[On November 25, the Quarkus team announced Quarkus 4.0, the framework's new major version. 4.0.1 came out the same day. Quarkus 4 requires Java 21 (Java 25 is the recommended one), moves the networking layer to Vert.x 5 and Netty 4.2, and switches to Jackson 3 and Hibernate ORM 8. The announcement also says that…]]></description>
		<content:encoded><![CDATA[<p>On November 25, the Quarkus team <a href="https://quarkus.io/blog/quarkus-4-0-released/">announced Quarkus 4.0</a>, the framework's new major version. 4.0.1 came out the same day. Quarkus 4 requires Java 21 (Java 25 is the recommended one), moves the networking layer to Vert.x 5 and Netty 4.2, and switches to Jackson 3 and Hibernate ORM 8. The announcement also says that Quarkus Agent MCP is now the recommended way to use AI coding agents with Quarkus.</p>
<p>In this post I'll talk about migrating an application that is on 3.x. I'll show what <code>quarkus update</code> handles on its own, what it leaves to you, and where the coding agent helps.</p>
<h2>If you are on 3.x, you have time</h2>
<p>The announcement acknowledges that moving to 4.0 will take work and testing. The two LTS releases of version 3 keep getting bug and CVE fixes: 3.40 until the end of September 2027, and 3.33 until the end of March 2027. You can plan the migration without rushing.</p>
<p>According to the announcement, these are the changes most likely to affect an application: Java 21 as the minimum version, Vert.x 5 (if you use the Vert.x APIs directly or the reactive SQL clients), the changes in the gRPC extension, Jackson 3, the new major versions of Hibernate ORM, Hibernate Reactive and Hibernate Search, and the new OpenTelemetry defaults. On Jackson, the text is direct: "This change is very likely to affect applications moving to Quarkus 4, as the Jackson API changed a lot and some defaults changed in subtle ways."</p>
<h2>What quarkus update does</h2>
<p>This is the migration command:</p>
<pre><code>quarkus update --stream=4.0
</code></pre>
<p>Without the CLI, the Maven plugin does the same:</p>
<pre><code>./mvnw io.quarkus.platform:quarkus-maven-plugin:4.0.1:update -N -Dstream=4.0
</code></pre>
<p><code>quarkus update</code> relies mainly on OpenRewrite recipes, maintained in the <a href="https://github.com/quarkusio/quarkus-updates">quarkus-updates</a> repository. In the <a href="https://github.com/quarkusio/quarkus/wiki/Migration-Guide-4.0">4.0 migration guide</a>, the items the command handles on its own carry the ⚙️ ✅ mark. The <a href="https://quarkus.io/guides/update-quarkus">update guide</a> warns that the command automates only part of the migration and that you need to read the guide for the target version.</p>
<p>To see this in practice, I built a minimal application on Quarkus 3.40.2, with <code>quarkus-rest-jackson</code>. It has a record, an endpoint that receives that record, and a class that uses the <code>ObjectMapper</code> directly:</p>
<pre><code class="language-java">public record Order(String id, int quantity) {}
</code></pre>
<pre><code class="language-java">@Path("/orders")
public class OrderResource {

    @POST
    public String receive(Order order) {
        return order.id() + ":" + order.quantity();
    }
}
</code></pre>
<pre><code class="language-java">import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import jakarta.enterprise.context.ApplicationScoped;

@ApplicationScoped
public class OrderReader {

    private final ObjectMapper mapper;

    public OrderReader(ObjectMapper mapper) {
        this.mapper = mapper;
    }

    public Order read(String json) throws JsonProcessingException {
        return mapper.readValue(json, Order.class);
    }
}
</code></pre>
<p>The tests passed on 3.40.2. Then I ran the update with the Maven plugin. It found three recipe files for the jump from 3.40.2 to 4.0.1 and changed <code>pom.xml</code> and <code>OrderReader</code>. In <code>pom.xml</code>, the BOM went to 4.0.1, <code>quarkus-junit5</code> became <code>quarkus-junit</code>, and the <code>tools.jackson.core:jackson-databind</code> dependency was added. In the code, the Jackson recipe changed the package and removed the <code>throws</code>:</p>
<pre><code class="language-java">import tools.jackson.databind.ObjectMapper;
import jakarta.enterprise.context.ApplicationScoped;

@ApplicationScoped
public class OrderReader {

    private final ObjectMapper mapper;

    public OrderReader(ObjectMapper mapper) {
        this.mapper = mapper;
    }

    public Order read(String json) {
        return mapper.readValue(json, Order.class);
    }
}
</code></pre>
<p>The <code>throws</code> went away because, in Jackson 3, all Jackson exceptions are unchecked. <code>JsonProcessingException</code> became <code>JacksonException</code>, which extends <code>RuntimeException</code>. The recipe behind these changes is Quarkus's <code>Jackson3Migration</code>, which applies OpenRewrite's own Jackson 2 to 3 migration. The project compiled on 4.0.1 without me touching anything.</p>
<h2>What compiles and still behaves differently</h2>
<p>The migration guide separates the package rename from another part: the change in defaults. Some Jackson behaviors changed between version 2 and 3, and Quarkus offers a configuration property for each one. Two of them matter here. In Jackson 3, reading fails when there is content left after the value that was read (<code>quarkus.jackson.fail-on-trailing-tokens</code>). It also fails when <code>null</code> arrives for a primitive type (<code>quarkus.jackson.fail-on-null-for-primitives</code>). In Jackson 2, both were off. Quarkus 4 follows Jackson 3 on these two. On two others, <code>fail-on-empty-beans</code> and <code>write-durations-as-timestamps</code>, Quarkus keeps the Jackson 2 behavior so existing applications don't break.</p>
<p>None of this shows up at compile time, only in the tests. The application had these two tests, among others:</p>
<pre><code class="language-java">@Test
void nullQuantity() {
    given().contentType("application/json")
            .body("{\"id\":\"A2\",\"quantity\":null}")
            .when().post("/orders")
            .then().statusCode(200).body(is("A2:0"));
}

@Test
void contentAfterTheObject() {
    given().contentType("application/json")
            .body("{\"id\":\"A3\",\"quantity\":1} {\"id\":\"A4\"}")
            .when().post("/orders")
            .then().statusCode(200).body(is("A3:1"));
}
</code></pre>
<p>On 3.40.2, both passed. The null quantity became 0, and the second object in the body was dropped without any warning. On 4.0.1, after the update, three of the four tests failed:</p>
<pre><code>[ERROR]   OrderResourceTest.contentAfterTheObject:33 1 expectation failed.
Expected status code &#x3C;200> but was &#x3C;400>.
[ERROR]   OrderResourceTest.nullQuantity:25 1 expectation failed.
Expected status code &#x3C;200> but was &#x3C;400>.
[ERROR]   OrderReaderTest.nullQuantity:17 » MismatchedInput Cannot map `null` into type `int` (set `DeserializationFeature.FAIL_ON_NULL_FOR_PRIMITIVES` to 'false' to allow)
[ERROR] Tests run: 4, Failures: 2, Errors: 1, Skipped: 0
</code></pre>
<p>The endpoint started answering 400 for both bodies, and <code>OrderReader</code> started throwing <code>MismatchedInputException</code>. With the two properties in <code>application.properties</code>, all four tests passed again:</p>
<pre><code>quarkus.jackson.fail-on-null-for-primitives=false
quarkus.jackson.fail-on-trailing-tokens=false
</code></pre>
<p>I wouldn't turn these properties on for the whole project just to get a green build. A client that sends <code>null</code> as a quantity, or two objects in a single body, probably has a bug that Jackson 2 was hiding. Choosing between the new default and the old one is a decision for each API. What matters is making that choice while looking at the test that failed, before the deploy.</p>
<h2>Where the agent comes in</h2>
<p><code>quarkus update</code> covers what a recipe can transform. The rest of the migration is the usual work: read the guide, run the tests, understand why one of them failed, and decide what to do. This is the part where a coding agent helps, as long as it knows which version the project is on.</p>
<p>In June, in a <a href="https://eldermoraes.com/quarkus-3-37-0-cr1-extensions-start-teaching-the-ai-coding-agent/">post about the skills inside Quarkus 3.37 extensions</a>, I wrote that the agent often learns from a source that doesn't match what's in your <code>pom.xml</code>. In a major version migration, I think this problem gets bigger, because most of what the model has seen about Quarkus is probably from version 3, with Jackson 2.</p>
<p>The <a href="https://quarkus.io/guides/agent-mcp">Agent MCP guide</a> lists what it gives the agent, and several of these things help with the migration:</p>
<ul>
<li>the documentation search uses the project's Quarkus version;</li>
<li>the skills come from the extensions the project uses. Each extension can publish its own in a <code>quarkus-skill.md</code> file, with coding patterns, testing guidelines and common pitfalls;</li>
<li>the agent has access to the Dev MCP tools of the running application, and among them are the ones that run the tests;</li>
<li>Agent MCP checks whether the project is up to date and produces an upgrade report. According to the guide, it can also preview the migration before applying it, with <code>quarkus update --dry-run</code>.</li>
</ul>
<p>The announcement also says that Agent MCP is still there when the application fails to start. That happens during a migration, and the agent can still read the application's logs.</p>
<p>To use it with Claude Code, for example, the guide gives this command (it needs JBang installed):</p>
<pre><code>claude mcp add quarkus-agent -- jbang quarkus-agent-mcp@quarkusio
</code></pre>
<p>One detail: the guide still marks Agent MCP as experimental, and <code>quarkus update</code> is also marked as experimental in its own guide.</p>
<h2>The order I would follow</h2>
<p>The update guide already has a procedure, and I would follow it with the agent alongside. First, a new branch. Then <code>quarkus update --stream=4.0</code> and a read of the diff it produced. Next, the migration guide, looking for what the project uses and what doesn't carry the ⚙️ ✅ mark. Last, the build and the tests, which must pass before any deploy.</p>
<p>The agent with Agent MCP comes in at the last two steps, with the 4.0 documentation and skills and with the tests running in dev mode. The tests are what tell you the migration is done. In my minimal application, the code compiled after the update, and the behavior change only showed up because there was a test sending <code>null</code> and a test sending extra content. If your test suite doesn't cover the odd cases in the JSON that reaches your APIs, I would start the migration by writing those tests while still on 3.x.</p>
<h2>References</h2>
<ul>
<li>Guillaume Smet, <a href="https://quarkus.io/blog/quarkus-4-0-released/">Quarkus 4.0, our new major release, is here!</a>, Quarkus blog, November 25, 2026.</li>
<li>Quarkus, <a href="https://github.com/quarkusio/quarkus/wiki/Migration-Guide-4.0">Migration Guide 4.0</a>, quarkusio/quarkus wiki on GitHub.</li>
<li>Quarkus, <a href="https://quarkus.io/guides/update-quarkus">Update projects to the latest Quarkus version</a>, Quarkus guide.</li>
<li>Quarkus, <a href="https://github.com/quarkusio/quarkus-updates/blob/main/recipes/src/main/resources/quarkus-updates/core/4.0.alpha1.yaml">Quarkus 4.0 recipes (core/4.0.alpha1.yaml)</a>, quarkusio/quarkus-updates repository.</li>
<li>FasterXML, <a href="https://github.com/FasterXML/jackson/blob/main/jackson3/MIGRATING_TO_JACKSON_3.md">Migrating to Jackson 3</a>, FasterXML/jackson repository.</li>
<li>Quarkus, <a href="https://quarkus.io/guides/agent-mcp">Agent MCP</a>, Quarkus guide.</li>
<li>Quarkus, <a href="https://github.com/quarkusio/quarkus-agent-mcp">quarkus-agent-mcp</a>, GitHub repository.</li>
<li>Quarkus, <a href="https://github.com/quarkusio/quarkus/releases/tag/4.0.1">4.0.1 release</a>, GitHub, November 25, 2026.</li>
<li>Elder Moraes, <a href="https://eldermoraes.com/quarkus-3-37-0-cr1-extensions-start-teaching-the-ai-coding-agent/">Quarkus 3.37.0.CR1: extensions start teaching the AI coding agent</a>, eldermoraes.com, June 23, 2026.</li>
</ul>
]]></content:encoded>
	</item>
	<item>
		<title>Coding agents on a personal Google account: automated suspensions and quota changes</title>
		<link>https://eldermoraes.com/coding-agents-on-a-personal-google-account-automated-suspensions-and-quota-changes/</link>
		<pubDate>Tue, 01 Dec 2026 00:00:00 +0000</pubDate>
		<category><![CDATA[AI]]></category>
		<guid isPermaLink="true">https://eldermoraes.com/coding-agents-on-a-personal-google-account-automated-suspensions-and-quota-changes/</guid>
		<description><![CDATA[Over the weekend of November 28 to 30, two stories about Google caught the attention of anyone who uses a coding agent. One was the explanation Google published about automated account suspensions. The other was an issue in the Antigravity CLI repository about the quota that custom agents consume. Neither one shows Google banning accounts…]]></description>
		<content:encoded><![CDATA[<p>Over the weekend of November 28 to 30, two stories about Google caught the attention of anyone who uses a coding agent. One was the <a href="https://x.com/NewsFromGoogle/status/2127222026578563134">explanation Google published</a> about automated account suspensions. The other was an <a href="https://github.com/google-antigravity/antigravity-cli/issues/1890">issue in the Antigravity CLI repository</a> about the quota that custom agents consume. Neither one shows Google banning accounts for using AI, which was the reading that spread the most. But both show what an agent depends on when it runs on your personal account.</p>
<h2>The locked account</h2>
<p>On Saturday night, November 28, the user @itsnoahd <a href="https://x.com/itsnoahd/status/2126815531189596363">posted on X</a> that his Google account had been banned. The post passed 4.7 million views, and many people tied the ban to his use of Antigravity, Google's coding agent platform.</p>
<p>The next day, he <a href="https://x.com/itsnoahd/status/2127063986550034473">shared</a> that the account was back. According to him, the account had been idle for a while, and he activated a gift that came with a trial period. The combination of those two things tripped fraud signals and got the account disabled. He wrote that the ban was not directly related to his use of Antigravity products.</p>
<p>On the night of November 29, Google gave its official account on @NewsFromGoogle. The company says it was a mistake and that the case "has nothing to do with AI usage." It also describes the mechanism: automated systems look for anomalous signals of account hijacking or abuse, the same way a bank monitors for fraudulent access. In rare cases, these protections trigger a false positive, and that is what happened here. A few hours later, Sundar Pichai <a href="https://x.com/sundarpichai/status/2127253022636130380">confirmed</a> that the cause was automated account security signals, not Antigravity usage.</p>
<p>The statement separates two cases. When someone violates the Antigravity or Gemini prohibited use policies, Google's standard approach is to disable access to that service only, with a warning first, and the rest of the account keeps working. A suspension triggered by a security signal is a different thing, and it locks the account. The way out Google mentions is SMS verification. If SMS and the other verification steps don't work, there is an appeal process. Google also said it is significantly expanding the use of SMS in these cases, and that it does not delete emails, photos, or files while the account is locked.</p>
<p>Update, December 2, 2026: on December 1, at 00:00 São Paulo time, Varun Mohan <a href="https://x.com/_mohansolo/status/2127598572006744189">posted</a> that Google had updated the Antigravity terms. <a href="https://antigravity.google/terms/">Clause 6 of the additional terms</a> now says that running the unmodified Antigravity harness through its supported interfaces is permitted. That includes calling it as a tool or subagent from another harness, wrapping it with a third-party UI, for example through the Agent Client Protocol, using the CLI in headless mode, and configuring it through supported extension mechanisms, such as custom agents, MCP servers, skills, rules, hooks, plugins, and supported prompt extensions. The same clause prohibits using the service's credentials, such as OAuth tokens, directly in third-party software outside the official runtime; modifying or bypassing the runtime; using the harness as a raw model proxy for an external agent loop or an inference backend; and sharing, pooling, or reselling individual entitlements across multiple users. Violations may result in suspension of Antigravity access, with an appeal path for re-enablement. The terms say that this suspension will have no impact on the rest of the Google account. In the November 29 statement, Google says a suspension triggered by a security signal locks the account.</p>
<p>The <a href="https://support.google.com/accounts/answer/40695">Google Account Help center</a> has a page for when the entire account has been disabled. In that case, you can't sign in to Google services or use Sign in with Google. To get the account back, the owner signs in from a browser and starts an appeal.</p>
<h2>The quota rate</h2>
<p>During the same period, another conversation was happening on GitHub. On November 26, a user opened issue #1890 in the Antigravity CLI repository. He measured that, in version 1.5.17, a custom agent consumed "exactly 4.00×" the quota per token of version 1.5.16, on a consumer plan. In Antigravity, a custom agent is an agent defined in a file under <code>.agents/agents/</code> and selected with <code>--agent</code>. The default agent consumed the same in both versions. The author notes that the 1.5.17 release notes say nothing about a multiplier for custom agents, and indeed they don't. On November 28, another user measured again on 1.5.19, with the plain CLI and without ACP, and got "about 4x."</p>
<p>On November 27, a repository collaborator replied that the change was intentional and not a regression. Conversations run by a custom agent are now billed as custom-agent requests, which "draw quota at a higher rate than the default agent." He did not give a multiplier. To get back to the standard rate, he suggested running without <code>--agent</code> and putting the instructions in rules (<code>AGENTS.md</code> or <code>GEMINI.md</code>) or in skills. The reply got more than 550 thumbs-down reactions.</p>
<p>Not everyone saw the difference. On November 29, a user measured on a Gemini Enterprise Plus project and did not find the higher rate. He made it clear that he could not say anything about consumer plans.</p>
<p>Early on November 30, the same collaborator announced that the change had been reverted, with nothing to do on the user's side. He explained that the change was made "to combat abuse" and that the analytics suggested little impact on what users could get done, but that "analytics don't replace user feedback."</p>
<p>It's worth remembering that, in August, the <a href="https://antigravity.google/blog/introducing-custom-agents">Antigravity blog</a> introduced custom agents precisely as a way to keep the context clean and minimize token overhead.</p>
<h2>What the two cases have in common</h2>
<p>The two cases are quite different. One is about account security, with a false positive that Google itself called a mistake. The other is about how one way of running the agent is billed. Custom agents started drawing quota at a higher rate, and the change was reverted a few days later. Before that, users measured the difference and complained in the issue. Based on what is on record, neither one is a penalty for using AI.</p>
<p>In my reading, what they have in common is that the agent ends up depending on two things the developer doesn't control. The first is identity. The agent's login may be the same account where, in Google's own words, "your emails, photos, and memories" live. The second is the plan's pricing rule, which can vary by execution mode and change from one version to the next.</p>
<p>Back in March, writing about JetBrains Air, I said that "<a href="https://eldermoraes.com/java-developers-should-pay-attention-to-jetbrains-air/">developers are constantly being pushed toward closed workflows where the model, the interface, the billing, and the integration path all come from the same vendor. That is convenient until it stops being convenient.</a>" In the same post, I pointed to ACP, the Agent Client Protocol, as something that matters more than it may seem. The first measurement in issue #1890 was made precisely through <code>agy acp</code>. The protocol makes it easier to switch editors or agents, but the quota rule still belongs to whoever sells the plan.</p>
<h2>What I would do</h2>
<p>None of this requires dropping a tool. These are small adjustments.</p>
<p>The first is to separate the identity. For agent work, I would use a work account or an API key with its own billing, and keep the personal account, the one that holds email and photos, out of it. The Antigravity CLI supports other ways to authenticate besides the account login: the release notes mention <code>GEMINI_API_KEY</code> and Application Default Credentials (<code>AGY_ADC_AUTH</code>).</p>
<p>I would also keep recovery ready. If the way out Google mentions is SMS, the phone number on the account needs to be right before the problem shows up.</p>
<p>Then I would measure quota per execution mode. The issue shows the method: read <code>/usage</code> before and after each run, divide by the number of tokens, and compare the default agent with the custom one.</p>
<p>Finally, I would keep the instructions in the repository. Rules and skills in files are versioned with the code. If the price of an execution mode changes, you can switch how you run the agent without losing what it knows about the project.</p>
<p>The coding agent is already part of many people's daily work. So it pays to treat its account and its plan with the same care we give any other production dependency.</p>
<h2>References</h2>
<ul>
<li>Google (@NewsFromGoogle), <a href="https://x.com/NewsFromGoogle/status/2127222026578563134">statement on Google account suspensions</a>, X, November 29, 2026 (US time; early November 30 UTC).</li>
<li>@itsnoahd, <a href="https://x.com/itsnoahd/status/2126815531189596363">post about the banned account</a>, X, November 28, 2026, and <a href="https://x.com/itsnoahd/status/2127063986550034473">update</a>, X, November 29, 2026.</li>
<li>Sundar Pichai, <a href="https://x.com/sundarpichai/status/2127253022636130380">confirmation about the temporary lockdown</a>, X, November 29, 2026 (US time; November 30 UTC).</li>
<li>Varun Mohan, <a href="https://x.com/_mohansolo/status/2127598572006744189">announcement of the Antigravity terms update</a>, X, December 1, 2026 (00:00 São Paulo time; 03:00 UTC).</li>
<li>Google, <a href="https://antigravity.google/terms/">Google Antigravity Additional Terms of Service</a>, clause 6.</li>
<li>Google, <a href="https://support.google.com/accounts/answer/40695">Your account is disabled</a>, Google Account Help.</li>
<li>google-antigravity/antigravity-cli, <a href="https://github.com/google-antigravity/antigravity-cli/issues/1890">issue #1890: agy acp --agent &#x3C;custom-agent> consumes 4x Gemini quota per token in 1.5.17 vs 1.5.16</a>, GitHub, opened November 26, 2026.</li>
<li>google-antigravity/antigravity-cli, <a href="https://github.com/google-antigravity/antigravity-cli/releases/tag/1.5.17">1.5.17 release notes</a>, GitHub, November 25, 2026.</li>
<li>The Antigravity Team, <a href="https://antigravity.google/blog/introducing-custom-agents">Introducing custom agents</a>, Antigravity blog, August 12, 2026.</li>
<li>Elder Moraes, <a href="https://eldermoraes.com/java-developers-should-pay-attention-to-jetbrains-air/">Java developers should pay attention to JetBrains Air</a>, eldermoraes.com, March 26, 2026.</li>
</ul>
]]></content:encoded>
	</item>
	<item>
		<title>Agent tools and Java backend RPCs</title>
		<link>https://eldermoraes.com/agent-tools-and-java-backend-rpcs/</link>
		<pubDate>Thu, 26 Nov 2026 00:00:00 +0000</pubDate>
		<category><![CDATA[AI]]></category>
		<category><![CDATA[Java]]></category>
		<guid isPermaLink="true">https://eldermoraes.com/agent-tools-and-java-backend-rpcs/</guid>
		<description><![CDATA[On November 19, Ze'ev Klapow explained on the HubSpot engineering blog how the company built Aviator, the Java harness that now runs its agents. Most of HubSpot's backend is Java, and the team wanted agents to live inside the services teams already owned, with the same tools, the same data and the same deployment process…]]></description>
		<content:encoded><![CDATA[<p>On November 19, Ze'ev Klapow explained on the <a href="https://hubspot.engineering/blog/aviator-hubspots-agent-harness/">HubSpot engineering blog</a> how the company built Aviator, the Java harness that now runs its agents. Most of HubSpot's backend is Java, and the team wanted agents to live inside the services teams already owned, with the same tools, the same data and the same deployment process as the rest of their code. The post includes a production number: Sidekick Code, the cloud coding agent that runs on Aviator, merges more than 2,500 pull requests a week.</p>
<p>The post covers a lot, from switching models mid-conversation to the sandbox. Here I will focus on one part that matters to anyone with a large Java backend: what happens when existing RPCs become agent tools.</p>
<h2>Why a harness of their own</h2>
<p>In June 2025, HubSpot started looking for an agent framework for its teams. Each team building an agent made different choices, from the model to the architecture, and the same mistakes kept coming back. According to the post, prompt caching, tool calling and context management are easy to get subtly wrong, and each team was learning that on its own. HubSpot wanted to solve those problems once, so that a fix would reach every agent at the same time.</p>
<p>The DevEx AI team had been trying smolagents, in Python, for internal tooling. It worked, but integrating Python agents with the Java services was a lot of work. The goal was for a team to add an agent to a service it already owned and deploy it with the rest of the code. That became a target: write an agent in under 20 lines of Java.</p>
<h2>The RPC that becomes a tool</h2>
<p>HubSpot already had CHIRP, its internal RPC framework, and the CHIRP tools framework, which is part of the company's MCP servers. With it, a team adds annotations to an existing RPC and exposes it as a tool. The tool schema is generated from the request type. In Aviator, the <code>addChirpTool</code> method brings the same idea to the agent: an existing RPC becomes a tool, without asking engineers for a lot of new work.</p>
<p>During an infrastructure hackathon, a team that had never built an agent had a debugging agent working in about fifteen minutes, using the RPCs it already had as tools.</p>
<p>I like this path because the tool delegates to the service that already exists. The authorization, auditing and observability in that service keep working. In a <a href="https://eldermoraes.com/the-mcp-java-sdk-as-an-anti-corruption-layer/">post from May</a>, I pointed at the other side of it. A tool should expose a capability of the domain, and a tool that mirrors an endpoint leaks the storage model behind it.</p>
<h2>More than 3,000 tools</h2>
<p>Reusing services made it easy to add tools, and that sped up adoption. The problem showed up quickly: Sidekick, HubSpot's primary engineering assistant, came to need more than 3,000 tools.</p>
<p>Aviator ships a few solutions for this, and each team picks the ones it uses. One of them is marking tools as deferred. Their definitions stay out of the agent's initial context and become available through tool search. Anthropic and OpenAI have hosted tool search, with subtle differences between the two, and Aviator uses the provider's version when it exists. For the models HubSpot hosts itself, Aviator builds an internal search index on the fly, based on each agent's configuration.</p>
<p>The post does not show Aviator's internals. To see the idea working, I wrote a sketch using only the JDK. The service gets an annotation, the schema comes from the request record, and deferred tools stay out of the initial context:</p>
<pre><code class="language-java">@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
@interface Tool {
    String description();
    boolean deferred() default false;
}

record DealActivity(long dealId, int days) {}

static class DealService {
    @Tool(description = "Lists the recent activity of a deal", deferred = true)
    public String dealActivity(DealActivity request) {
        return "deal " + request.dealId() + ": 2 meetings in the last " + request.days() + " days";
    }
    // in the full program, two more tools: searchDeals and companyDetails
}

static String schemaOf(Class&#x3C;?> requestType) {
    return Arrays.stream(requestType.getRecordComponents())
            .map(c -> "\"" + c.getName() + "\": \"" + c.getType().getSimpleName() + "\"")
            .collect(Collectors.joining(", ", "{", "}"));
}

// Only tools that are not deferred go into the initial context.
static List&#x3C;ToolDefinition> initialContext(List&#x3C;ToolDefinition> tools) {
    return tools.stream().filter(t -> !t.deferred()).toList();
}

// Deferred tools show up when the agent searches for them.
static List&#x3C;ToolDefinition> search(List&#x3C;ToolDefinition> tools, String term) {
    return tools.stream()
            .filter(t -> t.deferred() &#x26;&#x26; t.description().toLowerCase().contains(term.toLowerCase()))
            .toList();
}
</code></pre>
<p>In the full program, <code>DealService</code> has three tools, and only <code>searchDeals</code> is not deferred. The initial context carries only that one. A search for "activity" returns <code>dealActivity</code>, and the call goes to the service method, which answers the way it always did. The tool schema comes out as <code>{"dealId": "long", "days": "int"}</code>, in the order the fields appear in the record.</p>
<h2>Skills that bring their tools</h2>
<p>Search finds the tool, but the post itself says that this often fails to give the agent context on how and when to use it. For that, Aviator uses skills, in the SKILL.md format from the <a href="https://agentskills.io/specification">Agent Skills specification</a>. HubSpot added two metadata fields. Tools listed in <code>load-tools</code> become callable as soon as the agent loads the skill. Tools listed in <code>suggested-tools</code> become findable through search, without being loaded.</p>
<p>Until it loads a skill, the agent sees only its name and description, one line per skill in every prompt. The instructions enter the context only when the agent loads the skill. Breeze Assistant, the AI assistant HubSpot offers its customers inside the product, now uses a minimal set of embedded tools and loads the rest through skills.</p>
<p>I see skills as an answer to the problem from my May post. The tool is still the service RPC. The skill wraps the use case around it: the task, the steps and the tools involved. And each skill is an independent piece that a team can own, evaluate and roll out, the same way it does with code.</p>
<h2>The rest of the harness</h2>
<p>Two other Aviator decisions caught my attention. The first is the transcript format. Aviator has its own format for messages, tool calls and results, and that format does not depend on any provider. Each model client translates it to its provider's API. This makes it possible to switch models mid-conversation, for example to fall back to another provider during an outage. The transcript is the complete state of the conversation, and it serializes to JSON. The application can save that JSON and resume the conversation later, on another machine, minutes or days afterwards. That is what lets an agent pause while it waits for someone to approve a tool call.</p>
<p>The second is the sandbox. Aviator gives the agent a Python environment, through <a href="https://github.com/HubSpot/boomslang">Boomslang</a>, and a Bash environment, both running in WASM. That way the sandbox ships inside the Aviator Java library, and an agent that executes code needs nothing external. The code can only reach the few egress points HubSpot defines. Boomslang is public on GitHub, under the Apache 2.0 license.</p>
<h2>The agent inside the service</h2>
<p>The post closes by saying they started with twenty lines of Java because they wanted building an agent to be an ordinary part of building a HubSpot service. What I take from it is where the agent runs: inside the Java service, with the deployment, data and tools the team already had. In that place, working with agents stays close to what a Java team already does every day, with contracts, access control and observability.</p>
<h2>References</h2>
<ul>
<li>Ze'ev Klapow, <a href="https://hubspot.engineering/blog/aviator-hubspots-agent-harness/">Aviator: HubSpot's Agent Harness</a>, HubSpot Engineering, November 19, 2026.</li>
<li>HubSpot, <a href="https://github.com/HubSpot/boomslang">Boomslang</a>, GitHub repository.</li>
<li>Agent Skills, <a href="https://agentskills.io/specification">Specification</a>.</li>
<li>Elder Moraes, <a href="https://eldermoraes.com/the-mcp-java-sdk-as-an-anti-corruption-layer/">The MCP Java SDK as an Anti-Corruption Layer</a>, eldermoraes.com, May 21, 2026.</li>
<li>Oracle, <a href="https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Class.html">java.lang.Class Javadoc</a> (<code>getRecordComponents</code>), Java SE 21.</li>
</ul>
]]></content:encoded>
	</item>
	<item>
		<title>Zero Data Retention and AI routers</title>
		<link>https://eldermoraes.com/zero-data-retention-and-ai-routers/</link>
		<pubDate>Wed, 25 Nov 2026 00:00:00 +0000</pubDate>
		<category><![CDATA[AI]]></category>
		<category><![CDATA[Java]]></category>
		<guid isPermaLink="true">https://eldermoraes.com/zero-data-retention-and-ai-routers/</guid>
		<description><![CDATA[Between July and November, the Dragos research team sent about two million prompts to widely used AI services. Each prompt carried unique URLs and bait credentials, the canary tokens, that no legitimate system would ever use. Any access to them meant that someone, somewhere in the chain, had seen the prompt. In the report published…]]></description>
		<content:encoded><![CDATA[<p>Between July and November, the Dragos research team sent about two million prompts to widely used AI services. Each prompt carried unique URLs and bait credentials, the canary tokens, that no legitimate system would ever use. Any access to them meant that someone, somewhere in the chain, had seen the prompt. In the <a href="https://www.dragos.com/blog/ai-supply-chain-security-canary-tokens">report published on November 19</a>, HD Moore describes what showed up: three compromised inference providers, resellers reading customer prompts, and privacy settings that were not honored.</p>
<p>A coding agent's prompt carries a lot. The report points out that prompts and responses often contain confidential source code and credentials, along with internal communications and customer data. And the agent sends whatever it can read, credentials included, as the report itself warns.</p>
<h2>The path to the model</h2>
<p>An AI router offers a single endpoint and forwards the request to a pool of models, sometimes at different providers, with unified billing. Before it reaches the server running the model, the request can go through more than one router and through another provider. According to Dragos, every one of these hops sees the entire prompt and response.</p>
<p>Some routers work as marketplaces, and whoever offers the lowest price gets the request. The providers Dragos caught only had to list a model at the lowest price and turn on request logging. After that, they just waited. In one case, a router was forwarding part of its traffic to that marketplace without disclosing the hop.</p>
<p>To measure that path, the team built something like a traceroute for inference. Out of about two thousand traced routes, several hundred went through a system they could not identify, and a handful sent the test image to a company that was not on the advertised path.</p>
<h2>Where Zero Data Retention comes in</h2>
<p>Zero Data Retention (ZDR) is the strictest privacy setting these services offer: the prompt and the response are not stored. In the Dragos data, that flag did not stop the copying. In two of the three breaches, some of the stolen requests were marked as ZDR. A Chinese AI lab fetched the secret URLs from roughly two-thirds of the requests marked "no data collection" or ZDR that went to its models.</p>
<p>The line from the report I would keep is this one: a privacy flag only binds the first hop. I read ZDR as a promise made by whoever receives your request. What happens on the next hops depends on each of them keeping the same promise, and you do not see those hops.</p>
<p>On November 22, <a href="https://openrouter.ai/blog/announcements/data-processing-incidents-on-inference-providers/">OpenRouter published</a> what it did after the report. It off-boarded three providers, removed 125 endpoints from ZDR eligibility (the ones flagged by the researchers plus others as a precaution), and notified potentially affected customers. The company says the testing did not show any breach of OpenRouter and that it is adapting the researchers' approach to run these checks on an ongoing basis. Neither Dragos nor OpenRouter names the three providers in the published texts.</p>
<h2>The credential the agent committed</h2>
<p>An inference provider described an incident tied to the same experiment. On November 21, <a href="https://www.together.ai/blog/security-event-prompt-leakage-for-requests-in-june-and-july-of-2026">Together AI published</a> that it kept prompt samples in a private Hugging Face repository for software testing. During development of its public GitHub repository, xorl, an AI coding agent committed a credential that gave access to that private repository. The company's automated scanning detected the credential and the commit was reverted. In that window, someone obtained the credential and downloaded the samples. Then they searched the samples for credentials to other services and tested whether those worked. Five of the credentials tested were canaries from the Dragos experiment.</p>
<p>I would not put the blame on the agent. It committed a credential that was within its reach. The changes Together listed point to that: scoped or short-lived credentials, keyless access where supported, credential checks on every pull request, ZDR as the default for new accounts, and an updated process for using AI coding agents. These are engineering decisions about what stays within the agent's reach and for how long it remains valid.</p>
<h2>What you can do in your own service</h2>
<p>The first step is to decide where the prompt goes. Dragos says that if you do not make that decision, the lowest price will make it for you. In the OpenRouter API, for example, the <code>provider</code> field of each request accepts <code>only</code>, with the list of allowed providers, <code>allow_fallbacks</code>, which controls whether another provider can take over when the primary is unavailable, and <code>zdr</code>, which restricts routing to ZDR endpoints. The report also recommends verifying that these settings actually change where the request goes.</p>
<p>The second is to take out of the agent's context any credential it does not need to see. The ones that have to stay there should have a small scope and a short lifetime, which is what Together now does.</p>
<p>The third is the canary itself. Dragos suggests adding a fake credential to the context your agents and pipelines already send and treating any use of it as an incident. To know which path the prompt leaked through, each request needs its own canary, recorded together with the route. In a Java service, this fits in a few lines:</p>
<pre><code class="language-java">record Route(String router, String provider, String model, boolean zdr) {}

static String newCanary(Route route) {
    byte[] bytes = new byte[16];
    RANDOM.nextBytes(bytes); // SecureRandom
    String id = HexFormat.of().formatHex(bytes);
    canaries.put(id, route);
    return "https://canary.example.com/repo/" + id;
}

static Optional&#x3C;Route> whoReceived(String accessedPath) {
    String id = accessedPath.substring(accessedPath.lastIndexOf('/') + 1);
    return Optional.ofNullable(canaries.get(id));
}
</code></pre>
<p>The URL goes into the context built for the model, and the domain is yours. When someone opens that URL, the server behind the domain logs the path. With it, <code>whoReceived</code> returns the route that carried that prompt: router, provider, model, and privacy flag. Two identical prompts sent through different routes carry different canaries, so the access points to a single route.</p>
<p>The canary registry has to be persistent. In the Dragos experiment, tokens seeded in July were still firing in November. If you do not want to run a server, the report says a free Canarytoken from Thinkst is enough to get started.</p>
<p>The canary does not prevent the leak. It shows that the prompt left the agreed path and where it went, which the privacy flag alone does not show.</p>
<h2>References</h2>
<ul>
<li>HD Moore, <a href="https://www.dragos.com/blog/ai-supply-chain-security-canary-tokens">Three breaches, endless leaks: Your AI supply chain needs canaries</a>, Dragos, November 19, 2026.</li>
<li>OpenRouter, <a href="https://openrouter.ai/blog/announcements/data-processing-incidents-on-inference-providers/">Data Processing Incidents on Inference Providers</a>, November 22, 2026.</li>
<li>Vipul Ved Prakash, <a href="https://www.together.ai/blog/security-event-prompt-leakage-for-requests-in-june-and-july-of-2026">Security event: prompt leakage for requests in June and July of 2026</a>, Together AI, November 21, 2026.</li>
<li>OpenRouter, <a href="https://openrouter.ai/docs/guides/routing/provider-selection">documentation: Provider Selection</a> and <a href="https://openrouter.ai/docs/guides/features/zdr">Zero Data Retention</a>.</li>
<li>Thinkst, <a href="https://canarytokens.org/">Canarytokens</a>.</li>
<li>Oracle, <a href="https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/HexFormat.html">java.util.HexFormat Javadoc</a> and <a href="https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/security/SecureRandom.html">java.security.SecureRandom</a>, Java SE 21.</li>
</ul>
]]></content:encoded>
	</item>
	<item>
		<title>Agent tool calls and idempotency keys: what one has to do with the other</title>
		<link>https://eldermoraes.com/agent-tool-calls-and-idempotency-keys-what-one-has-to-do-with-the-other/</link>
		<pubDate>Fri, 20 Nov 2026 00:00:00 +0000</pubDate>
		<category><![CDATA[AI]]></category>
		<category><![CDATA[Java]]></category>
		<guid isPermaLink="true">https://eldermoraes.com/agent-tool-calls-and-idempotency-keys-what-one-has-to-do-with-the-other/</guid>
		<description><![CDATA[Vishnuvardhan Reddy Kaithapuram builds AI agents at Amazon Advertising. The tools of the agent he works on sit behind MCP (Model Context Protocol) servers, and the services around it are written in Java. In an article published on Foojay on November 19, he says the failures that took most of his time did not come…]]></description>
		<content:encoded><![CDATA[<p>Vishnuvardhan Reddy Kaithapuram builds AI agents at Amazon Advertising. The tools of the agent he works on sit behind MCP (Model Context Protocol) servers, and the services around it are written in Java. In an <a href="https://foojay.io/today/agent-tool-calls-run-twice/">article published on Foojay</a> on November 19, he says the failures that took most of his time did not come from the model. They came from a tool call that ran twice.</p>
<p>Anyone who works on Java backends has seen this problem before. Clients that retry requests have always existed, and the usual answer, the idempotency key, works for agents too. The part that needs care is deciding what the key identifies and where in the code it is created.</p>
<p>The sequence he describes is simple. The agent asks the tool to make a change, the change happens, but the response is slow. The caller records a timeout and the runtime tries again. As he puts it, a timeout tells you nothing about whether the work happened. The same thing happens when a queue delivers a message more than once, or when the connection drops right after the server finishes the work. The model takes no part in any of these decisions, so no instruction in the prompt prevents the repetition. The one that decides whether a retry is safe is the service that implements the tool.</p>
<p>This reminds me of the saga pattern. It was described in a 1987 paper, for long-lived transactions in databases, caused quite a stir when it reached microservices, and now shows up again in agent systems. The topology changes, and the distributed systems problems stay the same. A duplicated tool call is one of those problems, and the agent is just one more client that retries requests.</p>
<p>The MCP specification defines the <code>idempotentHint</code> annotation, which says that calling the tool several times with the same arguments has no additional effect. But the same specification warns that these annotations are hints and may not faithfully describe the tool's behavior. The guarantee still lives in the service code.</p>
<p>In the code, the first thing to get right is what the key identifies. A new key on every attempt, Kaithapuram says, is useless, because every retry arrives looking like a new request. The key has to identify the logical operation, which he builds from the step making the call, the tool, the arguments and an identifier for that step's execution. In Java, the difference looks like this:</p>
<pre><code class="language-java">// New key on every attempt: every retry becomes a new operation
UUID keyPerAttempt = UUID.randomUUID();

// Key derived from the logical operation: every retry gets the same key
UUID keyPerOperation = UUID.nameUUIDFromBytes(
        (step + "|" + executionId + "|" + tool + "|" + argumentsJson)
                .getBytes(StandardCharsets.UTF_8));
</code></pre>
<p><code>randomUUID()</code> draws a different value on every call. <code>nameUUIDFromBytes()</code> always returns the same UUID for the same bytes. That is why <code>argumentsJson</code> has to be serialized with the fields always in the same order, otherwise the same request produces different bytes and the key changes.</p>
<p>The <code>executionId</code> prevents the opposite mistake, which is skipping a call that should run. It is assigned when the step is planned and stays the same across all retries of that step. If the same step runs again on purpose, with the same arguments, it gets a new <code>executionId</code>. Without this field, a legitimate repeat would return the stored result of the first execution and the tool would never run.</p>
<p>Where the key is created matters as much as what goes into it. The key has to be born in the step that plans the call, because that is where the logical operation is known. Created in the transport layer, it changes on every retry, because the transport cannot tell one logical request from another. It is the same reasoning I apply to compensation in agent systems: it has to live in the framework, because the infrastructure is too far from the agent's context.</p>
<p>On the service side, checking the key before executing is not enough. Two concurrent calls may both find nothing and run the tool at the same time. Kaithapuram solves this with a conditional write in DynamoDB: only the call that manages to reserve the key runs the tool, and the other one waits for the result. The reservation has an expiry, so that a retry can take over if the one holding it stops before saving the result. In a Java service with a relational database, a unique constraint on the key column does the reservation, and a conditional UPDATE lets the retry take over an expired reservation.</p>
<p>Where to start? With the tools that write. A repeated read costs a bit of processing. A repeated write leaves a duplicate record that someone will have to find and undo by hand. Give every write call a key, keep the result for longer than a retry can take to arrive (for him, one day is enough) and log the key on every call. When a response comes out wrong, that log shows whether the tool ran and how many times.</p>
<p>For a Java team, none of this needs a new library. It is the same idempotency key Java services have used for years with any client that retries requests.</p>
<h2>References</h2>
<ul>
<li>Vishnuvardhan Reddy Kaithapuram, <a href="https://foojay.io/today/agent-tool-calls-run-twice/">Your Agent's Tool Calls Will Run Twice: Idempotency and Evaluation Gates in Java Services</a>, Foojay, November 19, 2026.</li>
<li>Hector Garcia-Molina and Kenneth Salem, <a href="https://doi.org/10.1145/38713.38742">Sagas</a>, Proceedings of the 1987 ACM SIGMOD.</li>
<li>Model Context Protocol, <a href="https://modelcontextprotocol.io/specification/2026-07-28/schema">specification 2026-07-28, schema, ToolAnnotations</a>.</li>
<li>Oracle, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/UUID.html">java.util.UUID Javadoc</a>, Java SE 25.</li>
<li>AWS, <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.ConditionExpressions.html">DynamoDB, Condition expressions</a>.</li>
<li>PostgreSQL, <a href="https://www.postgresql.org/docs/current/index-unique-checks.html">Index Uniqueness Checks</a> and <a href="https://www.postgresql.org/docs/current/transaction-iso.html">Transaction Isolation</a>.</li>
</ul>
]]></content:encoded>
	</item>
</channel>
</rss>
