Urgent.News

What's breaking now, across thousands of outlets.

Tech

prefill and default look the same in Console. Only one of them lets an agent skip your required field.

I have 23 audit Actors on the Apify Store . They all do a version of the same thing: take a public record, check whether what it still claims is true, and write the verdict into a dataset. Last week I set out to prove they were unsafe for AI agents to chain together. I had a specific accusation in mind, I built the experiment to demonstrate it, and the experiment refused. What I found instead was…

The prefill and default settings in an input schema appear interchangeable in the Apify Console, but they serve distinct purposes. A prefill provides example values for a user to select from, while a default value is automatically used when the field is left empty by the user. This distinction is crucial for chaining actors together in an agent workflow.

In the case of the Actor called "http-status-checker," it contains a required field named "urls" with a default value. When an agent calls this actor through the MCP (Model Context Protocol) server and omits the "urls" field, the actor automatically uses the default value provided. This allows the agent to run without any issues or errors.

However, if the same actor is called without providing any value for the "urls" field at all, the actor will refuse the input and return an error. This is because there is no default value to fall back on when no value is supplied. The actor explicitly requires a value for the "urls" field to function correctly.

This discovery highlights the importance of understanding and properly utilizing prefill and default settings in input schemas. By recognizing the differences between these two settings, developers can prevent unexpected behavior when chaining actors together in agents, ensuring that the workflow handles missing input values appropriately.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

How to add country icons to a Vue 3 app

Vue has no shortage of icon sets. Carets and chevrons come in every pack. Geography is the thin part of the shelf: where a set covers countries at all, it usually means flag squares rather than map…

The shell step that could not fail no matter what we did to it

Our integration suite had been green for eleven weeks. That is not a boast, it is the symptom. A colleague onboarding to the repo wrote a deliberately broken test to see what a failure looked like…

  • Shell step npm run test:integration | tee integration.log || true contained two errors
  • set -o pipefail absent, causing pipeline exit status to always be zero
  • Fix: all scripts began with set -euo pipefail

Two Sources of Truth Will Always Disagree

Somewhere in your system the same fact is stored twice. A count in a column and the rows it is counting. A status on the order and a status on the payment.

  • Two sources of data for the same fact will inevitably diverge over time
  • Discrepancies can result from write failures, off-peak jobs, or partial migrations
  • Systems must identify the accurate source, as both are considered truth

More from Friday 11 September →