Weekly Recap: Firebolt deal adds analytics and analysts revise targets – TradingView

MMS Founder
MMS • RSS
Posted on mongodb google news. Visit mongodb google news
image

Article originally posted on mongodb google news. Visit mongodb google news

Subscribe for MMS Newsletter

By signing up, you will receive updates about our latest information.

  • This field is for validation purposes and should be left unchanged.

MongoDB Surges Over Eight Percent as Cloud Software Draws Renewed Focus – 재경일보

MMS Founder
MMS • RSS
Posted on mongodb google news. Visit mongodb google news
image

Market sentiment around specialized database vendors strengthened as investors responded to recent broker commentary, including an upgrade to buy on the stock, while broader sector headlines related to hardware and cloud leaders brought enterprise software names back to the forefront. Sector peers and enterprise software providers have seen heightened focus as market participants evaluate software architectures tied to next-generation software security and ongoing AI-driven workload expansion heading into coming operating cycles.

Despite the strong single-day performance, broader market conditions suggest that investors continue to navigate notable volatility across high-multiple enterprise cloud equities.

Valuation levels across database and infrastructure providers remain sensitive to shifts in benchmark interest rates, corporate IT spending trajectories, and macroeconomic uncertainty.

Any moderation in enterprise software budget allocations or delayed returns on specialized software deployments presents an ongoing operational challenge for the wider software group.

Article originally posted on mongodb google news. Visit mongodb google news

Subscribe for MMS Newsletter

By signing up, you will receive updates about our latest information.

  • This field is for validation purposes and should be left unchanged.

盤中速報- MongoDB公司(MDB-US)大漲8.43%,報310美元— TradingView News

MMS Founder
MMS • RSS
Posted on mongodb google news. Visit mongodb google news
image

MongoDB公司(MDB-US)截至台北時間23日22:30股價上漲24.1美元,報310.00美元,漲幅8.43%,成交量24,636(股),盤中最高價310.15美元、最低價310.00美元。

美股指數盤中表現

  • 道瓊指數:+2.21%
  • S&P 500指數:+4.28%
  • NASDAQ指數:-5.28%
  • 費城半導體指數:-10.73%

MongoDB公司(MDB-US)歷史漲跌幅

  • 近 1 週:-14.45%
  • 近 1 月:-21.07%
  • 近 3 月:-33.64%
  • 近 6 月:-12.34%
  • 今年以來:-31.88%

更多鉅亨報導

Article originally posted on mongodb google news. Visit mongodb google news

Subscribe for MMS Newsletter

By signing up, you will receive updates about our latest information.

  • This field is for validation purposes and should be left unchanged.

Java News Roundup: Java4Shell, Oracle CSPUs, OpenJDK, Azul Payara, BellSoft, Helidon, LangChain4j

MMS Founder
MMS • Michael Redlich
Article originally posted on InfoQ. Visit InfoQ
image

This week’s Java roundup for November 16th, 2026, features news highlighting: the Java4Shell RCE vulnerability; Oracle CSPUs; Lazy Constants targeted for JDK 28; the November 2026 edition of Azul Payara; point releases of Java Operator SDK, LangChain4j and Micrometer; maintenance releases of Liberica JDK and Helidon; and second release candidates of Hibernate Reactive.

OpenJDK

Oracle has released versions 27.0.1.0.3, 25.0.5.0.3, 21.0.13.0.3, 17.0.21.0.3, 11.0.33.0.3 and 8u511b3 of the JDK as part of their quarterly Critical Security Patch Update Advisory for November 2026. Further details on this release may be found in the release notes for version 27.0.1.0.3, version 25.0.5.0.3, version 21.0.13.0.3, version 17.0.21.0.3, version 11.0.33.0.3 and version 8u511 b33.

JEP 547, Lazy Constants (Fourth Preview), has been elevated from Proposed to Target to Targeted for JDK 28. This JEP proposes a fourth preview, with no changes, after three rounds of preview delivered in the upcoming release of JDK 27 and JDK 26 through JDK 25. Formerly known as Stable Values and Computed Constants, this feature introduces the concept of computed constants, defined as immutable value holders that are initialized at most once. This offers the performance and safety benefits of final fields, while offering greater flexibility as to the timing of initialization. The name change from Stable Values to Lazy Constants with the release of JDK 26, better captures the intent of a high-level use case.

JEP 548, Vector API (Thirteenth Incubator), has been elevated from its JEP Draft 8397768 to Candidate status. This JEP proposes a thirteenth incubation with one notable change, after twelve rounds of incubation delivered in JDK 16 through JDK 27. This feature introduces an API to “express vector computations that reliably compile at runtime to optimal vector instructions on supported CPU architectures, thus achieving performance superior to equivalent scalar computations.” This JEP adds support for Vector<Float16> vectors, whose lanes hold 16-bit floating-point numbers in the IEEE 754 binary16 format. The Vector API will continue to incubate until the necessary features of Project Valhalla become available as preview features. At that time, the Vector API team will adapt the Vector API and its implementation to use them, and will promote the Vector API from Incubation to Preview.

JDK 28

Build 25 of the JDK 28 early-access builds was made available this past week featuring updates from Build 24 that include fixes for various issues. More details on this release may be found in the release notes.

For JDK 28, developers are encouraged to report bugs via the Java Bug Database.

Java4Shell

A new Remote Code Execution (RCE) vulnerability, known as Java4Shell (CVE-2026-114938), affects versions 27.0.1.0.3, 25.0.5.0.3, 21.0.13.0.3, 17.0.21.0.3 and 8u511b33-perf of Oracle Java SE, versions 21.0.13.0.3 and 17.0.21.0.3 of Oracle GraalVM for JDK, and Oracle GraalVM Enterprise Edition: 21.3.20.0.3. As described in the CVE documentation:

[This] difficult to exploit vulnerability allows [an] unauthenticated attacker with network access via multiple protocols to compromise Oracle Java SE, Oracle GraalVM for JDK, Oracle GraalVM Enterprise Edition. Successful attacks of this vulnerability can result in takeover of Oracle Java SE, Oracle GraalVM for JDK, Oracle GraalVM Enterprise Edition. Note: This vulnerability can only be exploited by supplying data to APIs in the specified Component without using Untrusted Java Web Start applications or Untrusted Java applets, such as through a web service.

Organizations and projects that have addressed this CVE include: BellSoft, Azul, JetBrains, GraalVM, Quarkus and WildFly. InfoQ will follow up with a more detailed news story.

Spring Framework

It was a busy week over at Spring as the various teams have delivered GA releases that include: Spring Boot, Spring Framework, Spring Security, Spring Session, Spring Integration, Spring HATEOAS, Spring Modulith, Spring AI, Spring AMQP, Spring for Apache Kafka and Spring LDAP.

The Spring team has also resolved a total of 90 CVEs spanning multiple projects. InfoQ will follow up with a more detailed news story.

Azul Payara

The release of Azul Payara 7.6.0, the November 2026 edition, includes Community Edition 7.2026.11, Enterprise Edition 6.44.0 and Enterprise Edition 5.93.0. Along with bug fixes and component upgrades, all three editions deliver resolutions to five CVEs, two of which are related to Azul Payara:

  • CVE-2026-90908, a vulnerability in the GenericAdminAuthenticator class that allows a remote, unauthenticated attacker to bypass JMX/RMI administrative access restrictions by spoofing the client host address that may lead to remote code execution.
  • CVE-2026-110003, A vulnerability in the administration REST interface that allows a remote, unauthenticated attacker to bypass secure-admin remote-access restrictions by supplying an arbitrary value in the X-GlassFish-authToken HTTP header that grants execution of arbitrary administrative commands, equivalent to complete compromise of the server.

Further details on this release may be found in the release notes and the Azul Payara security advisories page.

Hibernate

The second release candidates of Hibernate Reactive 5.1.0 and 5.0.0 ship with one single bug fix from the first release candidates, in which use of the Jakarta Persistence @TableGenerator annotation could cause a deadlock when a session holding the lock on the row of the generator table needed a new block of IDs.

Version 5.0.0.CR2 will be the last release candidate. With the GA release of version 5.0.0.Final, it will be declared as end-of-life and focus will be on version 5.1.0.

More details on these releases may be found in the release notes for version 5.1.0.CR2 and version 5.0.0.CR2.

Java Operator SDK

The release of Java Operator SDK 5.7.0 provides bug fixes, dependency upgrades and new features such as: the ability to enable virtual threads via construction in the Operator class or the josdk.use-virtual-threads property; and a new keepAlive() method, defined in the Operator class that starts a non-daemon thread to keep the JVM running until the operator is shut down. Version 5.7 is now built on Fabric8 Kubernetes Client 8.0. Further details on this release may be found in the release notes.

BellSoft

Concurrent with Oracle’s Critical Security Patch Update (CSPU) for November 2026, BellSoft has released CSPU patches for versions 27.0.1.1 25.0.5.1, 21.0.13.1, 17.0.21.1, 11.0.33.1, 8u514 7u523 and 6u523 of Liberica JDK, their downstream distribution of OpenJDK, to address this list of CVEs. This release also includes a patch for the aforementioned Java4Shell Remote Code Execution vulnerability.

With an overall total of 111 fixes and backports, BellSoft states they have participated in eliminating 21 issues in all releases.

Helidon

The release of Helidon 27.0.2 delivers bug fixes and one notable change in which the default limit of decoded-input (strings, byte arrays, JSON, forms, and buffered multipart parts) for in-memory entity conversations has been increased to 1 mebibyte (MiB). More details on this release may be found in the release notes.

This release also aligns with the Oracle Critical Patch Updates for November 2026 and includes the Helidon 4.x and 3.x release trains as described in this blog post.

LangChain4j

The formal release (along with the thirty-fourth beta release) of LangChain4j 1.24.0 ships with bug fixes, documentation improvements, dependency upgrades and new features such as: new DecisionSchedulerPlanner and DecisionModels classes to serve as a decision model-based agentic pattern; and support for resuming suspended agentic systems in the AgentMonitor class. Further details on this release, including breaking changes, may be found in the release notes.

Micrometer

After two milestones and two releases candidates, the GA release of Micrometer Metrics 1.18.0 provides bug fixes, documentation improvements, dependency upgrades and new features such as: an optimization of the PrometheusMeterRegistry and MicrometerCollector classes for collecting data snapshots; and a new RowState inner class, defined in the MultiGauge class, that eliminates the need to remove and re-register an instance of the existing Row inner class. More details on this release, including deprecations, may be found in the release notes.

Similarly, the GA release of Micrometer Tracing 1.8.0 delivers bug fixes, documentation improvements, dependency upgrades and new features such as: a simplification of baggage handles and lookups by directly storing the name of the handle and its metadata by eliminating use of the CompositeBaggage and Java AtomicReference classes; and a refactor of the BaggageTextMapPropagator class for improved baggage propagation. Further details on this release, including deprecations, may be found in the release notes.

About the Author

Subscribe for MMS Newsletter

By signing up, you will receive updates about our latest information.

  • This field is for validation purposes and should be left unchanged.

JEP 545 Moves ZGC Memory Preparation off the Startup Path in JDK 28

MMS Founder
MMS • A N M Bazlur Rahman
Article originally posted on InfoQ. Visit InfoQ
image

JEP 545, Faster Startup and Warmup with ZGC, has been integrated into JDK 28, moving the work of acquiring and preparing heap memory off the startup path and onto dedicated concurrent worker threads. On Linux 6.1 and later it also upgrades 4 KB pages to 2 MB pages while the application runs. The 2 MB initial heap behind the JEP’s headline numbers comes from elsewhere: adaptive heap sizing, in the companion JEP 546, which still defaults to off.

Deploying ZGC has until now meant choosing which half of a trade-off to pay for. The collector’s pause times do not grow with the heap, but its collection frequency does, so a small heap brings on early and frequent cycles. The JEP describes the older ergonomic behavior of committing one sixty-fourth of physical memory for the initial heap.

A team chasing fast startup set a tiny -Xms and accepted a long warmup, because the collector then had to acquire and prepare memory in increments while the application was already allocating. A team chasing fast warmup set a large -Xms, usually with -XX:+AlwaysPreTouch, and paid the whole bill before the first request landed. The JEP puts the spread at roughly a tenth of a second to start with a 2 MB heap against more than ten seconds with a 32 GB one on current hardware.

That work now happens in a new thread, ZMemoryWorker, one per heap partition. It commits and uncommits memory concurrently as capacity changes. It also heats memory before application threads reach it, which means pre-touching page by page and collapsing small pages into large ones.

The budget is fixed rather than adaptive. ZConcurrentWorkersCPUShare in zGlobals.hpp is 0.25, so preparation takes at most a quarter of the available CPU. ZGC’s director caps young-generation worker counts when adaptive sizing is on, which keeps collection inside its CPU target while expansion continues and the collector deliberately runs above its heuristic heap size target.

Large pages on Linux no longer require an administrator to reserve them up front. ZGC probes for MADV_COLLAPSE, the madvise mode added in Linux 6.1, by mapping a 4 MB region, pre-touching a single page and collapsing an aligned 2 MB range. When the probe succeeds and memory heating is enabled, the collector enters a new Collapse state and upgrades pages in the background. The call races the kernel’s khugepaged, so the implementation retries on EAGAIN.

The change shows up in what a deployer no longer has to decide. Where JDK 25 forced a choice between two tunings, JDK 28 offers a third option:

JDK 25, tuned for startup

$ java -XX:+UseZGC -Xms2m -Xmx32g -jar app.jar

JDK 25, tuned for warmup

$ java -XX:+UseZGC -Xms32g -Xmx32g -XX:+AlwaysPreTouch -jar app.jar

JDK 28, neither trade-off

$ java -XX:+UseZGC -XX:+ZAdaptiveHeapSizing -jar app.jar

The third command produces the JEP’s case study figures, a 38% drop in startup time and a fall in warmup from 80 seconds to 10 for Spring PetClinic on a 32 GB machine. -XX:+ZAdaptiveHeapSizing takes the minimum and initial heap down to 2 MB and raises the MaxHeapSize ceiling to 100% of physical memory. Without it, ZGC falls back to the shared heap sizing path and a 25% ceiling. Concurrent preparation still runs, but not the aggressive expansion the measurements depend on.

Using identical memory techniques on every operating system is an explicit non-goal, so large pages may be the default on Linux and not on Windows. The JEP also cautions that applications tuned around a larger initial heap may warm up more slowly and need re-tuning.

Two further edges live in the implementation rather than the text. Pairing -XX:+UseLargePages with adaptive sizing and no -Xmx logs a warning and disables explicit large pages for the heap. The retry loop around MADV_COLLAPSE can also spin indefinitely when EAGAIN persists, a case the code attributes to pinning through mlock or long-term DMA and treats as user error.

Teams can see the heap sizing difference for themselves on the JDK 28 early-access builds by comparing the resolved flags:

$ java -XX:+UseZGC -XX:+PrintFlagsFinal -version | grep -E "MinHeapSize|InitialHeapSize|MaxHeapSize"
$ java -XX:+UseZGC -XX:+ZAdaptiveHeapSizing -XX:+PrintFlagsFinal -version | grep -E "MinHeapSize|InitialHeapSize|MaxHeapSize"

The second run drops the minimum and initial sizes to the 2 MB floor and lifts the maximum from a quarter of physical memory to all of it. Adding -Xlog:gc+init reports Memory Heating: Enabled and, once the collapse path is active, Large Page Support: Enabled (Transparent, JVM enforced).

Services already running a modest heap on Linux 6.1 or later pick up concurrent pre-touch and background large pages without touching a flag, because memory heating is on by default. Services carrying a large pre-touched heap purely to buy warmup have something to delete, though only after enabling adaptive sizing. That 100% ceiling reads worse than it behaves. The policy tracks machine-wide memory and holds a reserve, preferring to leave a fifth of the machine free, fighting for a tenth and enforcing a twentieth, with those margins widening when usage is unstable or compressed.

JDK 28 reaches Rampdown Phase One on December 3, 2026, with general availability scheduled for March 9, 2027. The JEP’s own future work points at better CPU sharing between concurrent collection and concurrent commit, and at ahead-of-time compilation from JEP 544, already Completed for JDK 28, which frees JIT cycles the memory workers could spend instead.

About the Author

Subscribe for MMS Newsletter

By signing up, you will receive updates about our latest information.

  • This field is for validation purposes and should be left unchanged.

MongoDB’s Devin Dickerson on prioritizing data over AI models – FedScoop

MMS Founder
MMS • RSS
Posted on mongodb google news. Visit mongodb google news
image

[embedded content]

Devin Dickerson, Principal Technologist at MongoDB, discusses strategies for federal agencies to modernize and adopt AI. He emphasizes transitioning from siloed program offices to a “platform thinking” model that treats internal technical services as products. To succeed with AI agents, Dickerson suggests agencies should focus on what they can control: their unique organizational data and business workflows. Since high chip costs and infrastructure demands make training frontier models impractical for most, agencies should prioritize data modernization and context engineering. By optimizing data architecture, agencies can effectively guide agent behavior and scale AI initiatives despite budget constraints.

Article originally posted on mongodb google news. Visit mongodb google news

Subscribe for MMS Newsletter

By signing up, you will receive updates about our latest information.

  • This field is for validation purposes and should be left unchanged.

Netflix at QConSF 2026: Retrofitting the SDLC for AI Coding Agents

MMS Founder
MMS • Andrew Hoblitzell
Article originally posted on InfoQ. Visit InfoQ
image

At QCon San Francisco 2026, Mark Khuzam, senior software engineer at Netflix, described how the company’s Commerce team retrofitted its software development lifecycle so that AI coding agents and engineers could ship together safely.

Khuzam argued that most of the work was not about agents at all, but about documentation, consistency and review.

Much of Commerce runs as server-driven UI, an approach Netflix has discussed at QCon before. A single screen-composition service behind the API gateway builds screens for iOS, Android, web and TV.

Khuzam opened with a mock company email announcing that every engineer now had Claude Code and asking how much faster everyone was shipping. The problem the team ran into next was summed up in one line.

Agents promised speed. But we spent 20 years building for humans.

The team’s first attempt was having an agent migrate tests, and it took four tries. The team started with “migrate this file,” then added instructions, then the APIs to use, then how to mock data.

The docs were also hard to find, since the agent’s context window ran out before it found the right page. And they were inconsistent, because tests were not written the same way across the codebase.

Developers rated the internal framework at a Net Promoter Score of -3. Moving from one test to a whole feature, from screen to data to route to test, meant teaching the agent how the team builds.

Khuzam described the fix as context engineering, “getting what engineers know into what agents see.” The team wrote 45 architecture decision records, each “written for people and for agents.”

Each record covers the context, the decision, a pattern and an anti-pattern, and AI usage notes on what an agent should do. It also links to related docs and code, and the records now ship inside almost every repository.

To keep those records and more than 300 other documents findable, the team borrowed from how search engines read a site. An AGENTS.md file, the project instructions file that coding agents read before anything else, plays the part of robots.txt.

The second half of the talk followed code after an agent writes it. Khuzam noted that the CI pipeline is still deterministic, running builds, tests, screenshot diffing, merge queues and canaries.

What changed is how agents plug into each phase. A review agent pre-reviews each pull request against the docs and ADRs, flags anti-patterns and looks at what depends on the change.

Its first version left 23 comments on a single PR, starting with “Overall this PR looks great!” It now posts only verified blockers, each with evidence, a fix and the ADR rule it breaks. Engineers can add a revise label to have an agent read the review and push a fix to the same PR. Changes aren’t yet auto-merged, and engineers own the code.

Khuzam reported no Sev 1 incidents in 2026 on a core service and 32% more pull requests year over year. Developer NPS rose from -3 to +25 over three quarters.

Ahead of the session, Khuzam framed the stakes on LinkedIn: “Agents can write code, but what gives us the confidence to ship Tier 0 services to 300M+ members without everything falling apart?”

Work that crosses services raised a harder question. A product engineer building one feature touches the payment API, billing, the gateway and every client, so the team had to decide who owns the context and how it follows the work.

Khuzam listed approaches that did not hold up. Loading every repository did not fit, Git submodules were brittle, a Git MCP server “sees one file, not the system,” and shared copies went stale.

The team needed context that was accurate, portable across agents, owned per domain and kept fresh. It settled on GraphRAG per domain, taking structure from the code and meaning from the docs and ADRs.

Each graph is pinned to specific commits and served through a single Model Context Protocol tool. Claude Code, Cursor, Codex, a Slack bot and CI review all query the same graph, and every answer cites a file and a line.

Khuzam closed with three rules: decide what agents should do and tell them, make it easy to find how to do it, and remember that human judgement still matters. “None of this is new. It’s good engineering, built for a new reader.”

Developers interested in learning more can watch InfoQ in the coming weeks for video of the session and can view the session details here.

About the Author

Subscribe for MMS Newsletter

By signing up, you will receive updates about our latest information.

  • This field is for validation purposes and should be left unchanged.

Agoda Reduces API Code Review Time by 64% with Agoda Reduces API Code Review TimModular Architecture

MMS Founder
MMS • Leela Kumili
Article originally posted on InfoQ. Visit InfoQ

Agoda has introduced a modular monolith framework in its post-booking API to reduce code coupling and enforce domain boundaries without rewriting the existing service. The approach combines component-based code organization, automated architecture checks, and incremental migration. The team reported 64% shorter median code review time and 34% shorter time to initial substantive feedback for framework-backed changes compared with legacy code.

The change addresses growing maintenance challenges in BAPI, which coordinates cancellations, booking amendments, refunds, and customer communications. Agoda extracted the API from its aging core monolith in 2019 through a largely line-by-line migration. As development increased, merge requests more than quadrupled between 2022 and 2025, while some files exceeded 4,000 lines.

The team characterized the migration as a tactical design trade-off, drawing on John K. Ousterhout’s A Philosophy of Software Design,

We had deliberately traded a strategic design approach for a tactical one to prioritize speed to market. This tactical mindset was exactly what the business needed at the time.

Rather than undertake a complete rewrite, the team introduced architectural boundaries incrementally.

The framework, called Platform, organizes code around business domains such as cancellations, rebooking, and payments rather than technical layers. Each component encapsulates its business logic and data access behind defined interfaces, with application, service, repository, and model layers contained within the component. This package-by-component approach aims to localize changes and reduce dependencies between business domains.

Platform framework boundaries inside a domain module (Source: Agoda Blog Post)

Agoda uses the Data Mapper pattern to keep repository-specific models, including database entities and API payloads, out of business logic. Typed builders centralize object creation and transformations, making it easier for developers to find where domain objects and service inputs are constructed.

The team also uses ArchUnit to encode architectural constraints as automated tests in continuous integration. For example, repository-specific models can only be accessed by their respective repositories. Violations fail the build rather than relying on code reviewers to identify unauthorized dependencies manually.

The team described these constraints as architectural fitness functions, a concept discussed by Neal Ford and Mark Richards in Software Architecture: The Hard Parts. One engineer explained:

By codifying our layer boundaries into an ArchUnit test suite, our CI pipeline serves as an automated guardrail, catching structural drift on every pull request before a human reviewer ever sees it.

Platform is now the default for new modules, while existing functionality is migrated incrementally when feature development provides an opportunity.

Agoda compared framework-backed and legacy merge requests in Q2 2026. Median review completion time was 1.08 hours for framework-backed changes, compared with 3.02 hours for legacy changes. Time to first substantive feedback was 10.34 hours versus 15.77 hours. Between June and August, framework-backed changes also used 29% fewer AI prompts per 100 changed lines, although median prompts per merge request were similar (20 vs. 22). Agoda cautioned that the AI findings were directional due to the short observation period. A related approach is Spring Modulith, which provides module verification and dependency-cycle checks for Spring Boot applications.

About the Author

Subscribe for MMS Newsletter

By signing up, you will receive updates about our latest information.

  • This field is for validation purposes and should be left unchanged.

Claude Code Adds Experimental Code Mode to Orchestrate Tool Calls with JavaScript

MMS Founder
MMS • Daniel Dominguez
Article originally posted on InfoQ. Visit InfoQ
image

Anthropic has added Code Mode to Claude Code, an experimental feature in which the model writes JavaScript to drive its tools instead of requesting each Bash, Read, or Edit call separately. Code Mode is off by default, requires Claude Code v2.1.323 or later, and is enabled with the CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1 environment variable. Anthropic warns it may change or be removed in any release.

In a normal session, Claude asks for one tool call, reads the full result, and decides the next step. In Code Mode, one script can run commands in parallel, pass one result into the next call, and return only the output the model needs. The documentation’s example finds a file with rg, raises a retry limit, runs the tests, and returns just the path and test output. The conversation still shows each tool call and diff, while the generated code sits in the transcript viewer. Anthropic recommends it for edits repeated across many files, searches that need filtering, and independent commands. Code that Claude waits on stops after ten minutes; sessions started in auto or bypassPermissions mode can push it to the background for up to two hours while the conversation continues.

The permission model is the part architects should read first. Each call inside a script still goes through deny and ask rules and PreToolUse hooks, but in auto mode the classifier reviews the script before it runs, not each call, and cannot see values computed at run time. A git push can now reach a hook as cd ‘app’ && git push, so hooks must check every part of a command; a hook matching the REPL tool can read the JavaScript from tool_input.code. Project settings cannot enable Code Mode, so a cloned repository cannot switch it on, and administrators can block it through managed settings.

Code Mode runs only in interactive terminal sessions of the native build, on Opus 5.5, Sonnet 5.5, Haiku 5.5, or Fable 5.2, through a Claude subscription or Console account. It does not work with -p, the Agent SDK, the VS Code panel, the Desktop app, Amazon Bedrock, gateways, or zero-data-retention organizations. Agent teams need v2.1.326. Anthropic has published no token or latency figures for it.

George (@bolyki) compared Code Mode with normal mode across eight interactive Sonnet 5.5 runs and posted:

Same results every time. Context 20-25% smaller. On the bigger task: 37% fewer tokens, 19% lower cost. But it is not faster, and on a tiny task it cost more.

Ravi Madabhushi, who builds agent auth infrastructure, pushed back on claims that the feature makes MCP obsolete:

It doesn’t materially change anything wrt authentication, authorization and audit policy layers; Your agent still makes those same MCP calls, with the same auth tokens and context and what materially changes is how much context gets into the model window and how much can be discarded.

The idea, and the name, predate Anthropic’s release. Cloudflare introduced Code Mode for MCP converting MCP tools into a TypeScript API that models code against inside sandboxed Workers, where bindings keep API keys away from generated code. Anthropic’s own post on code execution with MCP described one workflow dropping from 150,000 to 2,000 tokens, and the Claude API offers programmatic tool calling in a remote code execution container. Code Mode instead runs the script in the developer’s local session, against Claude Code’s built-in tools and permission system.

Code Mode remains opt-in and experimental, and Anthropic collects feedback through /feedback. Setup steps and troubleshooting are in the Claude Code documentation

About the Author

Subscribe for MMS Newsletter

By signing up, you will receive updates about our latest information.

  • This field is for validation purposes and should be left unchanged.

Podcast: Simulation Can Tell You What Your Agents are Actually Doing: A Conversation with Zhou Yu

MMS Founder
MMS • Zhou Yu
Article originally posted on InfoQ. Visit InfoQ
image

Transcript

Michael Stiefel: Welcome to the Architects Podcast where we discuss what it means to be an architect and how architects actually do their job. Today’s guest is Zhou Yu, who is a computer science professor at Columbia University and co-founder of Arklex.ai. She obtained her PhD from Carnegie Mellon University. Dr. Yu was named one of the Forbes 30 Under 30 and has extensive research and product experience in conversational agents, computer user agents and LLM model training. Her company enables automated quality assurance testing for AI agents.

It’s great to have you here on the podcast. And I’d like to start out by asking you, how did you get interested in conversational agents and simulation? I mean, it’s not something you decided one morning when you woke up and decided to do it.

Zhou Yu: I have been working on AI for quite a long time. So I started my PhD in 2011 at Carnegie Mellon. So back then I was in the language technology institute. There are many professors working on natural language processing, speech-related questions. So I was always very interested about interaction. It’s not just speech recognition or processing text, but how people interact with machines. To me, that was the ultimate AI, the moment a human can talk to a system or entity the same way that this person is talking to another human being in order to collaborate on various tasks or even negotiate, persuade each other. So to me, that was the ultimate goal of artificial intelligence.

So I was really interested in working on this interactive AI. So my PhD is focused on that. We worked a lot on multimodal conversational agents. How can we do better time taking? How can we, in real time, have agents to think and speak at the same time and various things like that?

The Importance of Simulation [02:33]

Michael Stiefel: So I guess the best way to start out talking about this is what’s the importance of this simulation? I mean, to me, one of the important things is this simulation, in addition to testing, helps architects and designers actually to understand what their system is really doing because that’s almost impossible to know otherwise.

Zhou Yu: Yes. To me, coming from a research background, the ultimate goal of building a new technology or a new research project is on how you evaluate it. Is there a standard way that you can repeatedly get the same answer? For example, the robustness matters and the standardized testing or evaluation matters. It’s more, to me, the very fundamental base of a technology development is about evaluation.

And then if you think about what I have been doing on conversational agents, evaluation has always been one piece of my major research direction. If you think about traditional software testing or website testing, a lot of times there are people are using a manual way to test it or there are automated tooling to support this, like how do you roll out different pages or websites and stuff like that. But the hard part is actually how do you make sure there is a good coverage of various behaviors?

Multi-Turn Agents and Moving Targets [04:03]

And then most importantly, if you think about agents, they’re not single turn agents. They’re multi-turn, multi-hub, multi-tool calling, long horizon traces kind of programs. Let’s just take a simple application   of chat bots. Chatbots, in some sense, why do we call them multi-turn, is if you say something, the agent says something back. Based on what the agent says, your next user’s input is going to be different. So making the evaluation really difficult, it’s like a moving target. If you change your system, you have to redo the evaluation. You can’t rely on a static benchmark of what we call reference-based evaluation. This is the question, this is a gold data standard answer that you always can reference towards it because that reference will change based on how your agent changes because a user might ask a different question next time or maybe a user would ask for a clarification at this point.

Simulating User Personas [05:09]

And then the hard part is also that different users might interact with the agent slightly differently because currently natural language is an input, which is exponential in terms of complexity and diversity. If you think about traditional software as this is a button, you press it and there are two actions, they can do swipe left or swipe right. So that makes the testing infinitely hard in various ways.

So that’s why we started looking into it a long time ago, is how can we actually use agents to simulate user behaviors? So now you’re not relying on standard static benchmarks, you’re relying on standard personas or scenarios that you’re testing and then you standardize these scenarios and then you build the app based on the standard golden CI/CD pipeline we built, which is these virtual scenarios with human profiles, different goals. And then you’re tested consistently on these scenarios that have all the corner cases, has the diversity of the user dimensions that you want to simulate real user study testing where you have to recruit all these people, have them manually tested, now using AI to automate this.

Testing Non-Deterministic Systems [06:29]

Michael Stiefel: From your response, multiple questions come to mind, so take them one by one. One of the first things that you said that struck me was there is a dependency on what came before. One of the most difficult things I think for architects, engineers, SREs, everybody, to wrap their head around is that these are non-deterministic systems, which we’ve never encountered anything like this before. Because in the past, even if there were more than one or two answers, there were some number of answers and you could check the input to know if this is right, is this wrong. But here, just forget about dialects and accents and all the differences that you can. The system itself is non-deterministic. So how do you build a test? What does a test look like and how does that fit into the CI/CD pipeline?

Goal Completion and Task Verifiers [07:33]

Zhou Yu: That’s a really good question because if you think about these current agents, what makes it amazing is they’re going to come up with plans in real time. And every time the plan is different, so you can’t just look at it turn by turn, what is it doing? Give them all these kinds of shackles or guidelines. It’s really about you have to do integrated tests, which means that did this agent ultimately complete the goal that the user wanted to complete? So that’s why we use a general term called a goal completion. Once the interaction is finished, has the user actually completed this goal while we give them as sort of an original goal.

So if you think about the testing, we give different users with different profiles, different goals. And we test it to see, sometimes we call it a task. We give it a task and then we look to see if the agent was able to complete the task. Sometimes we also call it verifications, verifiers, task verifiers. And the task verifier has to be correlated with the task. And then for an individual task, the verifier might slightly be different. Some of them can be rule-based. Some of them could be LLM judges. So some of them maybe have various different verifications we need to run in terms of safety, in terms of alignments. So that is the important part.

Verifying Information and Corner Cases [08:57]

Michael Stiefel: When you say completion, I can think of two broad scenarios. One is completion of, “I want to buy a ticket to a concert. I either get the ticket or I don’t get the ticket”. So it seems easy to define, but if I come and ask for information, how in that scenario do you verify that they got this information? Because if the chat abruptly stops, it may be because the user got frustrated, not because they got the answer they wanted.

Zhou Yu: Yes, that’s a really valid thing that people have been doing. So that’s why even more important is to be able to simulate different scenarios. So for example, when we are setting up these kinds of simulated users, we give it a specific goal and then we try to verify that goal while the interaction is completed. This user’s goal might just be, I wanted to get this information. Once you get the information, you can leave, right? And then some of them are just you’re going to be a difficult user, you’re going to abandon them in the middle and then come back with a different goal. So then you kind of know what you’re dealing with at the end of the day that you can evaluate based on the goal of the user. So that’s the great part about simulator users.

If you look at production data, you don’t know the real intent behind the user, then it’s much more difficult. Of course, when we are doing these simulated users, we are also extracting scenarios based on production data so that we have a diversity of that that could cover better ranges of real user behavior.

So your agent in some way pressure tests for various different things. We have seen various corner cases that real users do. People ask repeated questions, not paying attention. There was some glitch on their keyboard. They keep typing these wrong words a couple of times. So all this is our pressure test or variations we need to capture. And then as you said it before, a different accent or different ways of speaking, experienced users and inexperienced users may use different acronyms describing things in various ways. So I think the diversity really matters when it comes to these natural language input based systems.

Designing, Running, Maintaining Simulation Tests [11:18]

Michael Stiefel: It sounds like there’s a lot of work for humans still to do because you have to define these personas. You have to understand what the system is trying to accomplish. We haven’t got to the point yet where we can have agents design these tests yet. And so it’s still certainly human in the loop situation.

So if that’s the case, I know this is probably going to run in our listeners’ minds is this question, let’s say I am an architect, a developer, SRE, a QA person, whatever, how do I design this test? What do I go through? Do I define a persona first? I define a goal? And how do I express that? And once I evaluate the test, how do I feed that back into the system to know how to change the system appropriately?

Zhou Yu: Yes, that’s basically exactly what we’re doing, how to make other people’s life easier. So if you think about how you design the testing cases, that’s basically the most important thing or the holy grail. So there are different ways we can use machine learning algorithms to help in terms of permutations of different aspects, trying to figure out based on the systems, what kind of tool calls you already have that we can base on the trajectories to actually design certain goals and scenarios automatically.

And then the other thing is that if you have existing data, of how humans are approaching the task. For example, in customer service, there are usually certain things you already have data for. Or there are some existing data in terms of your product design doc that talks about what your customers would usually do. And then how diverse, let’s say e-commerce. Usually people have some user studies they have already done, like, “What kind of people come to our store? What are they usually wanting to do with us when they’re calling in for customer service or when they’re calling in for suggestions or things?”

And then there’s also domain knowledge for various domains that you really sort of can leverage on. Sometimes we can even mine social media to say, “Well, what are the things that people are going to do when it comes to these scenarios?” So that’s sort of the way that we can gather information in order as an input to generate these kinds of happy paths or corner cases.

Michael Stiefel: Or unhappy paths.

Humans in the Loop and the Ever Changing Real World [13:40]

Zhou Yu: Yes, corner cases, unhappy paths. And then the most important thing is, like you said, humans in the loop. You show these scenarios in natural language so that the product manager or subject expert, SMEs, can come in to look at them to see, “Ah, are there other things we haven’t thought about?” And then they can edit them, add new cases.

And then the most important part is also once you have these simulated scenarios, you can run the interaction with the agent and generate these data. And then it might be easier for a subject expert to look at the data to really think about, “Is it similar to what I have been seeing in the real world? What are some things I’m lacking and I’m giving some diversity attributes?” Or I say, “Oh, I actually think we want more code switching”. Code switching means switching between different languages. “I wanted to add a little bit of noise in the background. Because I work in a factory, I wanted to add a specific kind of noise to the background so it’s closer to my real world”.

And the important part is if you think about the CI/CD pipeline, CI/CD pipeline for these iterative developments the customer-facing agents should be ever-changing because your users may change or what we usually say user distribution may change. Let’s say you’re an e-commerce, right? Suddenly you have a new product coming in and everyone’s asking about the new product. It’s not in your previous data or your previous setup, and then you really do need to change it. So one thing is I can populate it from your existing knowledge base, your new product catalogs. You basically base on that to update your CI/CD pipeline. Or you have some existing production data that you can extract scenarios out of your existing production data. So this CI/CD pipeline has to be evolving based on your agent’s capability, your agent’s knowledge, your user’s distribution change. And the same thing, if you open up a new territory, like now you’re selling in Brazil and Argentina, you got to expand your language testing, right?

Michael Stiefel: Yes. And Spanish is not the same in both those places. There are regional variations.

Zhou Yu: Exactly. So the preferences are different. The profiles might be different. There might be ambiguities in terms of various policies. For example, your discount works differently in different countries.

Michael Stiefel: Or for example, in France, you’re not allowed to discount certain books. I mean, the laws are just different all over.

Zhou Yu: Exactly. You have different laws. You wanted to test it to make sure that it’s compliant, right? So simulation is very important. Testing is very important. Before, people had to do manual testing. Everything changes, you have to redo the manual testing.

Michael Stiefel: I’ve been there. I know exactly what you’re talking about. Back in the day, I once did some user interface testing where you had to match pixels on the screen. And if somebody changed the screen slightly, you had to redesign the whole test.

Zhou Yu: Yes, exactly. So humans are very expensive.

Michael Stiefel: Yes.

Zhou Yu: So that’s why the simulated user is very handy, is that you can call it at any time. You change it slightly, you just call it again.

Different Scenarios For Running Simulations [16:58]

Michael Stiefel: Right. So do you see these tests being run when somebody does a check-in or just before release? Where do you see these tests being run?

Zhou Yu: That’s a really great question. So many people actually try to use it differently. For example, some people use it for product design. They wanted to see like, if I say my agent has this ability, pretend my agent had this ability, like prompt a large language model to do this without some verifications like prototype, they can run the simulator agents to see what it will look like, to give them some idea about how you can design the agent. This is sort of in the design phase.

So product managers sometimes use it, but the most important part is probably the before production. Before you deploy, you wanted to run unit tests, pressure tests, integrated tests, and then you wanted to do debugging. So if you find an error, you fix it, you run it again to see if it’s actually fixed or not. And then the integrated test is important because if you fix one thing, something might be popping up, you got to make sure that the regression test is all passed.

And then of course, once you’re in production, you always wanted to make sure anything that you wanted to update, you wanted to test it to make sure then there’s no question. And then sometimes people also run small number every day for critical services. They run every day a small batch of these kinds of tests every day just to see if there’s any drift because you don’t know what may change.

Michael Stiefel: Right. Right.

Zhou Yu: There are so many different tools that you’re calling. There might be some tools that just happen to not work anymore.

Michael Stiefel: You’re dependent on third parties who may or may not be working at a given time.

Zhou Yu: So for a mission-critical task, you wanted to make sure that importing 90% branches, like you cover these critical cases, you test it every day.

Running Simulations in Parallel [18:55]

Michael Stiefel: I guess there’s nothing typical here, but typically how long does it take to run these tests or is it just really a function of how complicated the individual test is?

Zhou Yu: Yes, so you can run these user simulations in parallel.

Michael Stiefel: Okay.

Zhou Yu: It’s really about how many you want to run, how much time you want. So it’s really simulating how end users would use it. And if you have APIs, you can basically launch them all in parallel. You just expose the agent’s endpoint to us. We can also do web-based testing. So basically we have a user simulate how we navigate on your websites and type things. Those are a little bit slower because you have to open up the browser and do things. It’s less parallelizable because you need to open up the browser. There are so many browsers you can do on a machine, right?

Getting Started With Simulations [19:51]

Michael Stiefel: Right. Let’s say I am new to this idea. How do I get started? “I really need to do this. How do I get started?”

Zhou Yu: It’s usually people who are building agents. One, it’s to know how well their agents are doing it. So the easiest way to get started is to try our open source. So Arklex, if you search for our ArkSim open source, you can download a Python package and plug in your agent. So our user simulator is an API, your agent is an API. They talk to each other to generate sensitive data and run evaluations on top. This is the easiest way you can get started for individual developers. You’re building a customer service agent, you’re building a personal chat like companions or whatever. You want to see how well your agent is doing on each individual with different scenarios when different people are talking to it. You can set up a simple thing to test your multi-turn agents.

Michael Stiefel: And do you set up scenarios using what technology? Do you…

Zhou Yu: Yes, so the easiest way if you want to get it started as soon as possible is you can manually write a couple of things and then you can also use our automatic generation of scenarios in batches. Then you just hit a button, give us an endpoint, give us a source code that will generate some of the examples for you, and then you can iterate on them yourself. So the idea is always you are the domain knowledge expert. You always hold the ground truth or just help you to get that ground truth out by making things easier for you.

Future Uses of Simulation [21:29]

Michael Stiefel: How do you see this technology evolving in the future? I mean, obviously we’re just scratching the surface and we’re going to get much more complicated agent interactions. And a system that’s fundamentally non-deterministic and you start to scale it and you start to put subset systems of these agents together, you can see how the complexity can expand. I don’t know if it’s exponentially or parabolically or whatever you want to say. It gets quite complicated quite fast.

Zhou Yu: Yes. So that’s why simulation is important. Sandboxing is important for you to have more visibility of how your agent performs. And as you said, there is the nondeterministic part of it. So that’s why for critical use cases, you don’t want to just do it once, you do it multiple times. You want it to make sure that it’s passed at K, which means that you do K times and every time you pass, right?

Michael Stiefel: Yes.

Zhou Yu: So you have stricter rules for it. To us, the technology really is evolving. Our simulation kind of idea is not only for testing, but also for agent improvement. If you think about us as a user,  a simulated user, a lot of times you have to have real user insights to improve your product, but now you can start with your simulated user and find these errors, automatically fix them, and run these users again to see if they are fixed. And of course there is also the efficiency and cost perspective that based on synthetic data that you generated, you can fine tune models to reduce cost. So you can use them to cover better space instead of having to wait for your real users to generate your data. And there’s also problems that you can train on your real user data and stuff like that. So a synthetic user is used for evaluation, a user for synthetic data generated for training, for self-evolving agents to have you sort of really get this sort of data and better model flywheel.

Pass/Fail Test Grading May Be Inappropriate [23:35]

Michael Stiefel: Do these tests just pass or fail? It would seem in something like this, a test can go 85% of the way and that might be good for the time being. So it seems not to be a binary pass or fail at these things.

Zhou Yu: Exactly. So for testing, especially when it comes to machine learning models, it’s never a one single metric. You can have multiple metrics like how you’re looking into how healthy you are. You have blood pressure, you have heart rate, everything, right? So it’s the same thing with the agent these days as well. So usually, the predominant one people are looking into is task completion, but there are also other things like cost, efficiencies. And there’s also compliance and safeties and all these metrics that people care about. So you could set up in terms of your CI/CD pipelines, which metric above which threshold is good enough for deployment or good enough to put in real user testing or things like that. So there’s always a threshold you can put it for.

Logging for Compliance and Regulation [24:38]

Michael Stiefel: And I presume everything is logged, so if they’re compliance issues or regulatory issues, these can be investigated.

Zhou Yu: Yes. So everything is about logging and auditing. Once you generate this insider data, you can look into the logging to see exactly what the agent said, what the agent’s tool call used, and what is the response of the user. And then you can base it on to see the compliance. For example, you have an evaluator. I just created it and say, “Never mention my competitor”.

Michael Stiefel: Right. Right.

Zhou Yu: You look into it.

Michael Stiefel: Because I imagine sometimes you have to show that you made a best effort to do something. You don’t have to be perfect. So this is one way you can demonstrate, “Yes, we thought of this, we tried, but you can’t think of everything. We did the best that we could”.

Zhou Yu: Yes, exactly. In compliance areas, for example, you can’t have biases against individual users. You can say, “Hey, here’s our synthetic data. Everything is the same. We changed the agenda. The outcome is the same”. These things are the best sort of outcomes they can see.

Michael Stiefel: Do you see that people realize the importance of this or are they just too overwhelmed to take it on? How do you see the interaction? Because when I heard your talk, this seemed natural to me. I don’t want to say it was obvious because what’s obvious to one person is not necessarily obvious to another, but this seemed to solve a real problem. And how do people react when you present this or what’s the uptake?

Zhou Yu: I think more and more people realized the importance of simulated users for evaluations for data synthesis tasks capability. But there’s always, if you think about people who are building real agents in industry these days, there are two kinds of people. One is the traditional machine learning engineer turned into an AI engineer, and there is a traditional engineer trying to turn into an AI engineer. They all have some piece that is missing. The MLE people probably don’t understand the complexity of engineering in terms of reliableness and robustness. And then the engineer piece of it probably didn’t understand the evaluation piece very well because they haven’t done evaluation of machine learning models before. So these two groups of people are trying to converge together and try to learn from each other, but sometimes it’s really hard.

So I think many people are trying to grow this mindset over time and really realizing AI engineering is that you have to do the evaluations of the model, but not only the model, but the system. So that is a different layer of gap in terms of what a real production AI agent system needs to be reliable. I think over time people understand this and then find the best way to standardize it over time. If you think about it, you have to have a good framework of these simulations for various different applications. You’re not just building one agent and then trash the code for simulation because your end user is always these people.

And then for example, you wanted to build different agents and serve them. You got to figure out how to actually make it repeated over different applications. So more and more people realize that it shouldn’t be just a data science project, let’s do evaluation, let’s do simulation, let’s just do prompt. It should be a platform that is part of the engineering stack that you can manage test cases, you can build different test cases for various different applications. So I think it’s a way that people trying to meet in between to figure out what does an agent infrastructure looks like and then how should we actually make it generalizable so the teams can reuse things instead of building their own things over and over and not sharing.

Standardization [28:24]

Michael Stiefel: You mentioned that this should be a platform. And every time I think of a platform, I think of standards. Do you see that this area will see sort of standards on ways to do this? Because obviously if people think it’s as important as you think it is and I think it is, there can be lots of people who want to try this, and this always says, “Should there be standards?” And the problem of course with standards is you have to have a functioning marketplace because without that, you can’t have standards because if you impose standards from the outset, it makes no sense because you don’t know what’s going to happen.

Zhou Yu: Exactly. To me, standards are really about how do you validate your scenarios? For example, these synthetic users, are they realistic? Are they actually having coverage? Are these kind of standard metrics that we can say, “Oh, this is a good synthetic user that everybody can trust and that everybody can use?”

And then it’s also about, when I say platform, it’s more about a way that people can collaborate on and then have some standardized things that they can reuse over time. I think it’s more a way that it’s also about management and a collaboration because testing is not just one team’s work. It’s a collaborative effort from the product designer to a subject expert and the engineers and everybody together. So you got to sort of do this collaboratively. And then you wanted to have a shared platform that people easily communicate and visually be able to see things.

Incorporating the Results into the Code [29:56]

Michael Stiefel: One of the things that I’ve seen in my experience in talking to other people, the difficulty is how do you feed back the results? You run the simulation, you get this information. How do you feed it back to the architect and designers to improve the system? Now, classically, this would mean you’d have to revise the code, and this is very cumbersome and it’s very… Especially when you’re talking about something that’s maybe going from 85% to 90% compliant. Or if you are in a situation where you’re doing artifact-based, you have a document like people are trying to… or requirements document and have the agents work off the doc and to write the code. And how do you feed that back to the document? This seems to be a great unsolved problem. Do you have any feelings about this?

Zhou Yu: Yes, I totally agree with you in terms of once you do the testing, you find a couple of conversations failed, a couple of interactions failed, then you have to do root cause analysis.

Michael Stiefel: Correct.

Zhou Yu: And you got to figure out which one is a zero level bug, which one is what? You wanted to also rank them, which one has higher impact in terms of failure, which one needs immediate attention. That’s also something that we’re doing as well. And then based on these areas, how do you provide suggestions in terms of fixes?

So ideally what everyone wants is self-involving agents that the agents can base on the reports and then propose changes and then try themselves. “If we deploy these changes, we’re going to run these tests again to see if this is fixed or not. If it’s not fixed, we’re going to iterate down this by itself”. Through this loop, you can figure out which ones are done. I think this is the feature that everyone wants to see.

Of course, this is the simulation platform. One important piece is that you also need to take the real production data, which is how your real users are using it, trying to make sure that your simulated users are closer to your real user all the time when you get new feedbacks. And then identifying what are the failed interactions in your real production data and how do you replay it. How do you generalize it? Other corner cases similar to this also are patched up.

Understanding the Context of the Data and the Failure [32:17]

Michael Stiefel: When you get these results back, do you understand the context in which this was happening? Because just to use the imagination, if I’m talking to a customer service agent, I may be in a bad mood, I may be in a good mood and my tone may change and the exact words will give a different response in which case the agent will succeed in one way or another. It’s just a simplistic example, but it could be, I think you mentioned this scenario before. Depending on the sequence of questions and the order of the questions that the customer has, the agent may have very different responses. So how do you capture that context?

Zhou Yu: Yes, so that’s why this context was part of the simulation scenario. So for example, how we define it is usually you have profiles of your user. Everything about this person is in this field that you specify, happy people, not happy people, budget conscious. It really depends on the task. You have different dimensions that you think affect how your outcomes would look like, which is your human behaviors. For example, some of the tasks, some of the attributes don’t really matter. But for some attributes, that matters. So it’s also in the selection process, what attributes we need to incorporate in this particular use case. So that’s usually what we do for optimization.

And then the intent or goals of the user. Depending on what the agents do and what the people want, you can define and see. For example, customer service, I want to return a product. And then we want to look into even if you want to return a product, there are complexities in it. So for example, I have a human being that has two transactions, which one do you want to return? So this is a complexity. And then one is, “Oh, I have a product that hasn’t shipped”. You can’t return it. You can cancel the order, right?

So there are these kinds of complexities. We’re looking at the domain and trying to do this for you. So novice people, novice engineers who don’t understand the process could start with this, that makes it easier for them.

And then there is also, like what you said, some of the context is really important. For example, “Oh, there is a big noise in the background or there is an accent or there is various knowledge that is different”. So all this could be incorporated into the scenarios that we construct to help you to do the testing that has all these kinds of coverage.

Simulating the User Environment and the Use of Digital Twins [34:55]

Michael Stiefel: And as you said before, and tell me if I am reading this the wrong way, you could certainly do this for market research. Let’s say I want to go and see if our product will work on the factory floor. As you say, you could simulate the noise, you could simulate the environment. Or do I want to go to another country? I can see whether the laws in that country contradict the assumptions we’ve made in our system. So it seems to be something that can be being used at both ends of the development.

Zhou Yu: If you think about all these things that we talked about and what you’re talking about is all under the same hood, what we call digital twins, but a simulation could be based on various different emphases. Because we are mostly working with this kind of testing or things like that, we care more about granular behaviors. Sometimes people like marketing research are doing A/B tests or things caring more about internal beliefs or various different aspects of human beings.

Some of them care about a digital twin olfactory that has different sensors, environments you want to simulate. For example, you wanted to see if I heat up the physical space 1 degree, what’s going to happen in terms of energy consumption and so on? Yes, there are various companies working on this front as well. And then in even more advanced cases, people are looking into digital mice, digital patients, so that they can test their various trial runs of drugs or treatments, things like that.

Michael Stiefel: Actually, this leads into your question, what’s the strangest application you’ve seen of this technology?

Zhou Yu: I think when I saw digital mice, I was, “Oh, that’s interesting. That was an interesting thing. But for us, it’s really about can we actually abstract information and try to use statistical models to represent the physical world and then you can have different fidelity of this for various downstream patterns?

So for us, we sort of focused mostly on agents, how people behave when they’re interacting with agents. This is our sweet spot because we have done a lot of research around this. And we have seen other people trying to assimilate these kinds of villages. People have different occupations, how would they actually do things together, like a game that we’ve seen in a video game, how people would interact with each other. There’s various people doing an automatic game where you have a companion that plays with you.

Michael Stiefel: This is interesting because it truly shows you the power of the simulation.

Evaluating the Simulation [37:44]

Zhou Yu: One thing that we really see in the future, and then many people looked into as well, is really about how do we evaluate the simulated user or simulated environment? How do we know that the sim to real gap is small or big or large? So if you think about it, sometimes users are part of the environment. So when we talk about these kinds of word models and so on, the user is part of the word model as well. Because I’ve been working on natural language processing for quite a long time and speech, so a lot of my work is more focusing on the diversity of user behavior, individual user behavior. But we are also seeing various architectural differences in terms of systems. You wanted to model different environments in terms of software, you have different tech stacks and things like that.

I think that’s also a very, very important space many people have been working in order to be able to verify these kinds of agent performance. For example, you have to connect to CRMs, connect to other things, you have to have a good simulation of how these models and APIs will look like. So in general, I think it’s a very active field. Simulation in some ways is getting more and more important over time because large language models are powerful. Then we want to give these agents more autonomy. The more autonomy means more evaluation is needed, otherwise you can’t really control them and verify how they’re doing it. And then we know their models are changing all the time and then you’re depending so much on third party tooling, they could make errors. Everything can have problems.

So evaluations are getting more and more important. Testing evaluation, I think it’s going to be… Previously, you always thought quality assurance, a QA team is maybe 5% or 2% of your entire spend. The majority of things are in development, but I think now it’s actually more flipped. I’ve been talking to a lot of people that they actually spend a lot of time on evaluation because once you know what is a good agent and what is a bad agent, it’s easy to optimize. Otherwise, if you don’t have the standards, it’s hard to optimize and you’re going to do a lot of work in a circle. Or you don’t know if you change this problem, change that tool, does it actually give you better outcomes? So I think it’s sort of a flip for many engineers that evaluation actually should be a first class citizen.

Michael Stiefel: Right.

Zhou Yu: Shouldn’t be a second class citizen.

Michael Stiefel: I don’t want to talk about this because we could spend another several hours talking about this, but this whole idea of world models is one of the problems with LLMs today because they just really don’t understand the world the way humans understand the world. So this whole idea of simulation is a way of approaching that problem. But again, that’s a long conversation.

The Architect’s Questionnaire [40:50]

At this point, I’d like to ask the people who appear on the podcast some questions, and put a more human face on things. What’s your favorite part of working with software?

Zhou Yu: To me, it’s really about the product that matters, that you can actually enable other people to do more things with your tool that I think is a critical thing. For example, I’ve always been working on machine learning. The product is always a model or a piece of infrastructure, like a tool that people can use to build other things so they don’t have to rebuild the wheel. I think that the most important thing is the utility part. And you can actually… To me, a software for that is a piece of my brain, other people can reuse it.

Michael Stiefel: What’s your least favorite part of working with software?

Zhou Yu: I think it’s really about the technology changes all the time. And then some things if you don’t maintain it, it can go obsolete very quickly. So this sort of active maintenance is always a pain.

Michael Stiefel: You’re on this treadmill that just never stops. Do you feel anything creatively, spiritually, or emotionally about working with software?

Zhou Yu: Emotionally?

Michael Stiefel: Creatively or spiritually, any dimension you want to answer that question.

Zhou Yu: To me, building something is always… It’s like a baby of yours. You invest a lot of time. You think really hard about how people are going to use it. So it’s always an iterative process. And then you feel really emotionally happy. And I see how people are using it and telling you how they’re using it, so that’s sort of the most exciting part.

Michael Stiefel: Is there anything that turns you off when you work with software?

Zhou Yu: Yes, there’s always these kinds of corner cases you need to iron out once you release it. There’s always sometimes it breaks and you have to patch it and iteratively patch it. Of course, this process sometimes can be excruciating.

Michael Stiefel: Do you have any favorite technologies?

Zhou Yu: Favorite technologies? I would still think that the current large language model really enables the things we couldn’t do before. I would say it’s more the generative models over time are very powerful, but at this point that we are really looking into, there are other alternatives that can push it even further away.

Michael Stiefel: Is there anything about software you love?

Zhou Yu: Software redefines our lives in some sense that I think we’re all living in the digital world these days.

Michael Stiefel: Well, it’s interesting for me because I didn’t grow up in the digital world. I’ve watched this transition where some younger people don’t know any alternative. And to me, it’s just completely fascinating. For both good and bad, how has this completely changed the world. Because once you digitize things, you can do things that you could never do with analog data.

Zhou Yu: Yes. I think in some sense, humanity-wise, it’s always from an HCR perspective how the technologies are impacting human life and human society. And there’s also a lot of things really related to human psychology, like fulfillment or what is considered to be happiness in some sense. A digital world without physical contact with the nature of other human beings sometimes can create more anxiety and things like that. So definitely there is a negative impact on human beings.

Michael Stiefel: It sort of feeds into the next question I was going to ask. What about software do you hate? But you seem to have sort of answered that question already.

Zhou Yu: Yes. I think over time, because I was born around late ’80s, we see the transitions a lot. We didn’t start with cell phones, but we got cell phones pretty early on in high school and stuff. And then it evolved from a simple phone into a smartphone, then you have social media and all things combined. But I still feel like at the end of the day, it’s really everyone is slightly different, but I still prefer… I think fulfillments is also about human connections and deep human connections. And then the younger generations might not agree with that. And there’s a lot of psychological problems we’re seeing these days.

Michael Stiefel: Well, because from an evolutionary perspective, our brains were formed in an analog world. And for however long we’ve been evolving, you pick your number where you want to start from, we’ve had that much evolutionary pressure in an analog world and we’re now in a very, very different world.

Zhou Yu: Yes, I totally agree because technology really is exploding in the past 50 years, right? Before that, it was very different. People have been living thousands of years like that, but the recent change makes a lot of… Humans also need to adapt to this in real time in some sense to be able to adapt to the new digital world. And then that’s why it’s really difficult to work in technology development, really thinking about what actually adds to the better human societies. We definitely see if you take an example of how nowadays people are talking to ChatGPT instead of talking to therapists. Is that actually a good thing or a bad thing? Many people are talking about, “Oh, it’s better than nothing”. But in the media impact that we’re seeing right now is that psychiatrists are booking less meetings.

Michael Stiefel: Yes.

Zhou Yu: A lot of things are like talking to your AI could be easy, but talking to a real human needs work. If you don’t exercise your muscles, you’re going to lose that ability, then you won’t be able to do it anymore.

Michael Stiefel: Yes. For my part, when I go to sleep at night, my cell phone is in another room.

Zhou Yu: That’s good. A physical isolation.

Michael Stiefel: Yes. So it is not the first thing in the morning that I am attached to or the last thing I do at night.

What profession other than being a professor would you like to attempt or being a starter of a company would you like to attempt?

Zhou Yu: When I was younger, I always wanted to be a writer. So I guess being a writer in some sense, I write technical content, I write blog posts, I write opinion pieces, if you think about people using AI to write these days. But writing to me is a self-expression. It’s a self-healing process as well. And writing stories, writing fiction, that’s also a way of creativity and part of the artwork. So I think that’s something that I always wanted to explore when I retire.

Michael Stiefel: I ran a little experiment the other day. I took a sample of my writing because I’ve written two books. I’ve written articles. I’ve spoken at conferences. And I gave a sample of some of my writing to Google Gemini and I asked it to do two things. One, critique my style. And for that, it came up with a pretty good analysis of how I write. But then I asked it to write something in my style, and that was a complete disaster.

Zhou Yu: You got to feed it more samples.

Michael Stiefel: I ended up feeding more samples, but it just didn’t get it. The interesting dichotomy was there was enough data for it to analyze accurately, but there wasn’t enough data for it to reproduce my style.

Zhou Yu: Yes, it requires a little bit of more training on the data that you have. It’s really about how you particularly are in the pre-training data. If you ask it to write like Shakespeare or these kinds of people who are famous in the training data, it can do pretty well.

Michael Stiefel: Do you ever see yourself not being a professor anymore or not running a company anymore?

Zhou Yu: Eventually. I think at a certain point we think about retiring, right? This is something that also I’m mom, I have two young kids, so a lot of times I really am thinking about it. The fact is I like what I do. And at the same time, people also think about alternatives, what you can do. And so the problem is also you can’t run these kinds of counterfactual experiments every time.

Michael Stiefel: Right. Right.

Zhou Yu: I think over time, what is really interesting to me is really still creating things and learning things because being a researcher, being a professor and being an entrepreneur, it’s always about learning new things and then trying to be able to process it and have new ideas yourself. I think that is a common thread of my interest all the time.

Michael Stiefel: When a project is done, what do you like to hear from the clients or your team or other people?

Zhou Yu: I think it’s really about how people are using it, how people are finding what they couldn’t do before. And now they are able to do it, how this sort of adds to their value over time that they bring to their own companies and things like that. That’s always something great to hear. And we have been servicing various large companies, and those companies serve individuals so we can really see who actually benefits individually at the end of the day for our technologies.

For example, we have been working with education companies, e-commerce or banks or things like that. Let’s just take education companies. We were able to help them to verify their customer service system that everything is automated now so that they can book tests quickly. They can find information about when they can take the test so they don’t really have to call in. There’s no friction. So it’s just much easier for people to be able to get access to information.

Michael Stiefel: Well, thank you very much for this conversation. I found it fascinating. I hope people find this interesting because as we’ve discussed, I don’t see any other way forward in an agent world to not be able to use these kinds of technologies, but people are so overwhelmed that sometimes they don’t… I guess the old saying is that the truly urgent takes precedence over the truly important.

Zhou Yu: I totally agree with you. So it’s always something that they want to do, but people try sometimes they don’t know this technology exists. They’re still using humans to do the verifications, which could be costly and lead to very difficult deployment over time or unsuccessful deployment. I think it’s really about being aware of this technology, knowing how to adopt them, how do you efficiently integrate them into your workflows. It takes time. It takes certain domains or certain applications would adopt it faster because it’s more critical to them. Eventually this is just a good practice that all agent builders should adopt.

Michael Stiefel: Well, thank you very much again and talk to you soon.

Zhou Yu: Thanks.

Mentioned:

About the Author

.
From this page you also have access to our recorded show notes. They all have clickable links that will take you directly to that part of the audio.

Subscribe for MMS Newsletter

By signing up, you will receive updates about our latest information.

  • This field is for validation purposes and should be left unchanged.