<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Reid Marlow</title>
    <description>The latest articles on DEV Community by Reid Marlow (@reidmarlow).</description>
    <link>https://dev.to/reidmarlow</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3994700%2Fb2d11047-929c-44b4-9602-b151cd1c2500.png</url>
      <title>DEV Community: Reid Marlow</title>
      <link>https://dev.to/reidmarlow</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/reidmarlow"/>
    <language>en</language>
    <item>
      <title>Check your admin key and launch flags before upgrading to SGLang 1.0</title>
      <dc:creator>Reid Marlow</dc:creator>
      <pubDate>Sun, 06 Dec 2026 02:01:16 +0000</pubDate>
      <link>https://dev.to/reidmarlow/check-your-admin-key-and-launch-flags-before-upgrading-to-sglang-10-jdf</link>
      <guid>https://dev.to/reidmarlow/check-your-admin-key-and-launch-flags-before-upgrading-to-sglang-10-jdf</guid>
      <description>&lt;p&gt;Your SGLang chat endpoint may pass a smoke test while the controller that updates model weights starts failing. In &lt;a href="https://github.com/sgl-project/sglang/releases/tag/v1.0.0" rel="noopener noreferrer"&gt;SGLang 1.0&lt;/a&gt;, administrative routes require a separate admin key. A normal API key no longer unlocks them. If your deployment has a controller for LoRA adapters, profiling, or weight updates, include that controller in the upgrade test.&lt;/p&gt;

&lt;p&gt;The release also removes options deprecated during 0.5 and rejects more unsupported settings instead of silently adjusting them. That's useful feedback, but it can turn a previously working container command into a startup failure. Here's where I'd look before changing the image in production.&lt;/p&gt;

&lt;h2&gt;
  
  
  Separate inference from administration
&lt;/h2&gt;

&lt;p&gt;SGLang says routes for weight updates, loading and unloading LoRA adapters, profiling, and several runtime controls return 403 unless the server has an admin key configured with &lt;code&gt;--admin-api-key&lt;/code&gt; or &lt;code&gt;SGLANG_ADMIN_API_KEY&lt;/code&gt;. These routes accept the admin key, not the regular &lt;code&gt;--api-key&lt;/code&gt;. The release notes explicitly say &lt;code&gt;/flush_cache&lt;/code&gt; and &lt;code&gt;/abort_request&lt;/code&gt; are unchanged; don't assume every operational endpoint moved into the new category.&lt;/p&gt;

&lt;p&gt;Inventory the clients that call admin routes. Give the control plane the admin credential through your existing secret mechanism, and keep ordinary application clients on the inference credential. Test both the expected success and the denial: a chat request using the normal key should work, while an admin request using that key should not. Test a real admin operation with the separate key in a staging environment. A successful health check won't exercise that path.&lt;/p&gt;

&lt;h2&gt;
  
  
  Find old flags before the rollout
&lt;/h2&gt;

&lt;p&gt;The 1.0 release removes flags and environment names deprecated during 0.5. One concrete example is &lt;code&gt;--disable-cuda-graph&lt;/code&gt;: the migration table replaces it with both &lt;code&gt;--disable-decode-cuda-graph&lt;/code&gt; and &lt;code&gt;--disable-prefill-cuda-graph&lt;/code&gt;. A configuration that still supplies the old flag stops at startup. Search launch scripts, container arguments, and configuration files, not just the command in the README.&lt;/p&gt;

&lt;p&gt;Other changes need more than a find-and-replace. The legacy &lt;code&gt;sgl-model-gateway&lt;/code&gt; is removed from the repository and the project points users to &lt;code&gt;sgl-router&lt;/code&gt; 0.1.0. The release notes say some gateway features have not yet made it into the router. Compare your actual routing configuration and test it with your workers before removing the old deployment. The router's flag checks also differ between the version in the 1.0 image and the 0.1.0 PyPI package, according to the release notes.&lt;/p&gt;

&lt;p&gt;For NVIDIA installations, the project lists CUDA 13 driver and toolkit requirements for its PyPI package; its Docker images need the driver but not a toolkit installed on the host. Check the &lt;a href="https://github.com/sgl-project/sglang/releases/tag/v1.0.0" rel="noopener noreferrer"&gt;installation table&lt;/a&gt; for the image matching your hardware.&lt;/p&gt;

&lt;h2&gt;
  
  
  Make failed requests visible
&lt;/h2&gt;

&lt;p&gt;SGLang 1.0 rejects several invalid requests with a 4xx at the entry point where they previously failed later or crashed. Examples in the release notes include an assistant tool call without a function name and invalid values for &lt;code&gt;logprob_start_len&lt;/code&gt;. This applies to the cases fixed in the release, not a promise that every malformed request is caught.&lt;/p&gt;

&lt;p&gt;If your agent client retries every non-200 response, a permanent 4xx can become an expensive loop. Record the status and error body safely, distinguish invalid requests from transient server failures, and fix the request rather than sending the same payload again. Avoid logging prompts or credentials while collecting those errors.&lt;/p&gt;

&lt;p&gt;Streaming deserves its own test. The project says it added tests at tool-call chunk boundaries and fixed dropped or merged calls in several parsers, while some parsers still have known gaps. Replay representative tool calls through the parser and model you actually use. A plain text completion won't tell you whether the client assembles a streamed function call correctly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Treat benchmark numbers as a starting point
&lt;/h2&gt;

&lt;p&gt;The project reports up to 59% more throughput per GPU on a specific DeepSeek-V4.1-Flash disaggregated workload using GB300 hardware, and faster first tokens on a separate long-prefix test using four B300s. Those are project-reported results for particular configurations, not expected gains for a different model or GPU. The experimental Rust frontend is off by default; the new router and that frontend are separate pieces.&lt;/p&gt;

&lt;p&gt;For a practical rollout, start one 1.0 staging worker with the real launch configuration, run normal and admin clients against it, and replay a small set of representative streaming requests. Keep the previous image and configuration available until the control-plane checks and workload measurements pass.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>machinelearning</category>
      <category>devops</category>
      <category>programming</category>
    </item>
    <item>
      <title>Test multilingual model extraction by language: Prelude 9B as a starting point</title>
      <dc:creator>Reid Marlow</dc:creator>
      <pubDate>Sat, 05 Dec 2026 16:41:51 +0000</pubDate>
      <link>https://dev.to/reidmarlow/test-multilingual-model-extraction-by-language-prelude-9b-as-a-starting-point-2g41</link>
      <guid>https://dev.to/reidmarlow/test-multilingual-model-extraction-by-language-prelude-9b-as-a-starting-point-2g41</guid>
      <description>&lt;p&gt;A model can read a sentence in your language and still mishandle the detail your application needs. If you're extracting a payment deadline from a document, a fluent answer with the wrong date is a failure regardless of how natural it sounds.&lt;/p&gt;

&lt;p&gt;OpenEuroLLM's &lt;a href="https://openeurollm.eu/blog/prelude-announcement" rel="noopener noreferrer"&gt;Prelude 9B announcement&lt;/a&gt; gives developers a useful research starting point for this problem. The consortium describes a dense, text-only base model trained on roughly 10 trillion tokens across 35 languages. It publishes checkpoints, training configuration, code, logs and evaluation results. The announcement says pre-annealing data is available; the annealing data was still being packed when the announcement was written. Check the actual artifact you need rather than assuming every stage is already downloadable.&lt;/p&gt;

&lt;h2&gt;
  
  
  A base model needs more work
&lt;/h2&gt;

&lt;p&gt;Prelude predicts the next token. The consortium says it hasn't been instruction-tuned or safety-filtered and advises against deploying it as a chatbot without further fine-tuning and safety mitigations. Loading the weights into an inference server doesn't supply those missing layers. If you need an assistant today, compare against an instruction-tuned model and evaluate the complete application, including its prompt and output checks.&lt;/p&gt;

&lt;p&gt;The team says the model follows the Qwen 3 architecture and was trained with a 4K context, later extended to support 256K tokens. That advertised maximum is worth testing, not a promise that a detail buried in a long document will be retrieved correctly. Test your actual document lengths and measure latency and memory on the hardware you intend to use.&lt;/p&gt;

&lt;h2&gt;
  
  
  Measure each language separately
&lt;/h2&gt;

&lt;p&gt;The announced data mix puts 80% in English, math and code, with the rest spread across the other languages. The team reports multilingual benchmark results and says performance is strongest in high-resource languages. Neither the language count nor an aggregate benchmark tells you how accurately a particular task works in Finnish, German or any other language.&lt;/p&gt;

&lt;p&gt;For a document workflow, make a small set of examples with verified answers in each target language. Include the details that would hurt if wrong: dates, negation, amounts and names. Run the same extraction task on each language and inspect errors by category. If you translate inputs into English first, measure that pipeline separately; a translation error can survive even when the extraction step behaves correctly. Keep the original text alongside the answer so a reviewer can check it.&lt;/p&gt;

&lt;p&gt;The published training artifacts make another kind of investigation possible. If a language performs badly, the data catalogue and configuration give researchers a place to inspect the training mix and design a follow-up experiment. They don't prove which training examples caused an individual answer, and inspecting the data alone won't establish that your downstream fine-tune is safe.&lt;/p&gt;

&lt;p&gt;Prelude's &lt;a href="https://openeurollm.eu/blog/prelude-announcement" rel="noopener noreferrer"&gt;announcement and linked evaluation resources&lt;/a&gt; are the place to start. For an actual deployment decision, keep a held-out set of your own documents and compare task accuracy per language, using the exact checkpoint and inference settings you plan to ship.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>llm</category>
      <category>testing</category>
    </item>
    <item>
      <title>What agent honeytokens catch (and what slips past)</title>
      <dc:creator>Reid Marlow</dc:creator>
      <pubDate>Sat, 05 Dec 2026 16:38:51 +0000</pubDate>
      <link>https://dev.to/reidmarlow/what-agent-honeytokens-catch-and-what-slips-past-1lmb</link>
      <guid>https://dev.to/reidmarlow/what-agent-honeytokens-catch-and-what-slips-past-1lmb</guid>
      <description>&lt;p&gt;A coding agent can escape a weak sandbox without ever asking permission to leave. If it lists a host directory while looking for a missing file, the output may already contain information the task shouldn't expose. One way to catch that boundary crossing is to put a distinctive marker in a place the agent has no reason to read, and stop the next model call if the marker appears.&lt;/p&gt;

&lt;p&gt;Anthropic's &lt;a href="https://www.anthropic.com/research/honeytokens" rel="noopener noreferrer"&gt;December 3 honeytoken study&lt;/a&gt; tests that idea with inference hooks. The useful detail is where the stop happens: after a tool has returned data, but before that data enters the next inference request. That makes this an extra containment layer, not a substitute for controlling filesystem and network access.&lt;/p&gt;

&lt;h2&gt;
  
  
  The tripwire is in the output
&lt;/h2&gt;

&lt;p&gt;Traditional honeytokens often look like credentials and alert when somebody tries to use them. Anthropic's version plants a random string in a location the agent should not inspect. An inference hook scans the incoming model request and aborts if it contains the string. The agent doesn't have to try using a fake credential; a directory listing that includes the marker can be enough.&lt;/p&gt;

&lt;p&gt;Consider a sandbox that accidentally exposes a host directory. A marker file in that directory might appear in the output of a broad &lt;code&gt;ls&lt;/code&gt;. If the tool output is passed unchanged to a hooked model call, the marker trips the hook before the model receives the listing. Anthropic suggests other placements including Kubernetes secret keys and hostnames of servers the agent should never access.&lt;/p&gt;

&lt;p&gt;The hook cannot undo the tool call. If a shell command reads a real secret and sends it over the network before returning, scanning its output afterward is too late. A command that reads a known path without listing the marker can miss it entirely. Network egress restrictions, least-privilege credentials, isolated workloads and sandbox patches still matter.&lt;/p&gt;

&lt;h2&gt;
  
  
  What 93% means
&lt;/h2&gt;

&lt;p&gt;Anthropic used Siren, an evaluation with more than 1,700 scenarios based on over 200 DevOps tasks across 26 sandbox environments. Each environment had a deliberate weakness. The researchers placed markers along the paths those weaknesses opened, recorded escapes, then replayed the sessions to see whether a token reached model context. The weakened sandbox itself ran inside a hardened Firecracker VM without internet access.&lt;/p&gt;

&lt;p&gt;In that replay, the tokens would have stopped about 93% of recorded escapes. That is a finding about the measured scenarios and placements, not a live production escape-prevention rate. Anthropic also reported no false positives in sessions without an escape in this evaluation; those markers were positioned so that a model could only see them by exceeding the task's scope. A production system may have different access patterns.&lt;/p&gt;

&lt;p&gt;The misses are just as useful as the headline. In 33 cases an agent knew the path or ran a script without probing. In another 21 it probed without revealing a marker: output truncation, a service that could be probed without listing tokens, or a search for a specific pattern could all hide the tripwire. Some other misses reflected the experimental setup, including 20 cases without an easy place to plant a token.&lt;/p&gt;

&lt;h2&gt;
  
  
  Place and test for the actual workflow
&lt;/h2&gt;

&lt;p&gt;A marker is only useful if the agent's likely route exposes it to the hook. Start with a boundary the agent should never cross, then trace the exact tool output and request path. Test a broad listing, a targeted lookup, truncated output and any subagent handoff. A marker that appears in a raw command response but gets removed before the model request won't trigger a request-scanning hook.&lt;/p&gt;

&lt;p&gt;Anthropic recommends random strings at least eight characters long, short enough to survive common truncation. Multiple markers with different initial characters and timestamps can improve their chances of appearing in sorted, clipped listings. Its reference implementation echoes detected tokens in errors so a parent agent receiving a subagent's failure can be stopped too. That behavior depends on the parent actually passing the error to a hooked model request.&lt;/p&gt;

&lt;p&gt;Keep markers private and rotate them if exposed. If an attacker can insert a known marker into material the agent legitimately reads, they may cause a denial of service. Anthropic says its hooks support organization-specific tokens; the exact availability and integration depend on the serving setup.&lt;/p&gt;

&lt;p&gt;A good test is not simply “did the canary fire?” It is whether the full tool path stops at the intended point, and what the tool could already have done before that point. A direct read of a known sensitive path is a useful negative test: it shows why the sandbox boundary must hold even when no marker appears.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>security</category>
      <category>agents</category>
    </item>
    <item>
      <title>Queue agent sandboxes before CPU contention changes your evals</title>
      <dc:creator>Reid Marlow</dc:creator>
      <pubDate>Sat, 05 Dec 2026 16:29:26 +0000</pubDate>
      <link>https://dev.to/reidmarlow/queue-agent-sandboxes-before-cpu-contention-changes-your-evals-3dg3</link>
      <guid>https://dev.to/reidmarlow/queue-agent-sandboxes-before-cpu-contention-changes-your-evals-3dg3</guid>
      <description>&lt;p&gt;Running agent evaluations on a shared cluster? Sandbox startup speed is only one number. CPU contention can also change the test outcome.&lt;/p&gt;

&lt;h2&gt;
  
  
  The pieces
&lt;/h2&gt;

&lt;p&gt;The project's &lt;a href="https://github.com/andylizf/open-daytona/blob/main/docs/design.md" rel="noopener noreferrer"&gt;design&lt;/a&gt; describes a gateway that sends requests to node daemons running inside Slurm allocations. A daemon starts gVisor sandboxes under a user namespace; the gateway chooses a node based on load and whether it already has the requested image. A shared image cache avoids rebuilding the same image for every rollout.&lt;/p&gt;

&lt;p&gt;That fits a particular constraint: a researcher may be able to submit jobs to a cluster without having root access or a Docker daemon on its nodes. The README lists Linux, unprivileged user namespaces, local disk space and, for a pool, Slurm and a shared filesystem as requirements. Rootless does not mean every host will accept the setup: check the namespace policy with your cluster administrator first.&lt;/p&gt;

&lt;p&gt;The gateway's default admission rule assigns 0.8 CPU core per running sandbox and queues additional creates in FIFO order. That's an operational choice, not a guarantee that every workload needs the same fraction of a core. A CPU-heavy build, an idle shell and an agent waiting on a model API have different resource profiles.&lt;/p&gt;

&lt;h2&gt;
  
  
  Read the benchmark alongside the queue
&lt;/h2&gt;

&lt;p&gt;The project's README reports a replay of 1,536 recorded terminal-agent reinforcement-learning episodes. With CPU admission enabled, it reports a median command round trip of 0.070 seconds on open-daytona versus 0.156 seconds on hosted Daytona, measured from the same client. These are the project's measurements under its own setup, not a general ranking of the services.&lt;/p&gt;

&lt;p&gt;The README separately reports median create-to-ready times of 4.0 and 32.1 seconds in a run that started all 1,536 sandboxes at once. That create-time result comes from a different run than the command-latency result. It should not be read as the latency of the admitted configuration under identical conditions.&lt;/p&gt;

&lt;p&gt;For a team's own evaluation, compare completed tasks as well as startup speed. Record time spent waiting in the queue, command latency at the intended concurrency, infrastructure errors and the resulting test outcomes. Then vary the admission limit. A lower startup number is a poor trade if contention makes the reward or test result change.&lt;/p&gt;

&lt;h2&gt;
  
  
  The boundary to check before deployment
&lt;/h2&gt;

&lt;p&gt;A sandbox service also has a control plane. The project describes bearer-token authentication at the gateway and separate network stacks for sandboxes. Decide which clients can reach the gateway, where the token lives and which destinations sandbox processes can reach. A separate network stack alone doesn't establish an egress policy.&lt;/p&gt;

&lt;p&gt;If you already have a Slurm allocation and need many disposable Linux environments, this project is worth reading. Start with one node, run a representative workload, and check behavior under contention before turning the pool loose on a full evaluation batch.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>devops</category>
      <category>linux</category>
      <category>testing</category>
    </item>
    <item>
      <title>Enforce coding-agent rules at the tool call, not just in AGENTS.md</title>
      <dc:creator>Reid Marlow</dc:creator>
      <pubDate>Sat, 05 Dec 2026 16:24:56 +0000</pubDate>
      <link>https://dev.to/reidmarlow/enforce-coding-agent-rules-at-the-tool-call-not-just-in-agentsmd-4bel</link>
      <guid>https://dev.to/reidmarlow/enforce-coding-agent-rules-at-the-tool-call-not-just-in-agentsmd-4bel</guid>
      <description>&lt;p&gt;A repository can tell a coding agent to use pnpm, leave production configuration alone and run tests before finishing. Those instructions are useful context, but the shell doesn't enforce them. An agent that misses a line can still run &lt;code&gt;npm install&lt;/code&gt; and leave a second lockfile behind.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/itsthecsguy/ratchet" rel="noopener noreferrer"&gt;Ratchet&lt;/a&gt; offers a concrete way to handle rules like that: put a machine-checkable rule next to the instruction, then check the agent's tool call before it runs. Its repository was created on November 28. This is a look at the documented design, not an independent test of the tool.&lt;/p&gt;

&lt;h2&gt;
  
  
  Turn a sentence into a decision
&lt;/h2&gt;

&lt;p&gt;Ratchet's README shows a rule embedded in a Markdown instruction file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gu"&gt;## pnpm-only
&lt;/span&gt;Always use pnpm. Never use npm, npx or yarn.

&lt;span class="k"&gt;```rule
&lt;/span&gt;when: run
level: enforce
deny: npm *, npx *, yarn *
use: npx =&amp;gt; pnpm dlx {{args}}
say: This repo uses pnpm; {{program}} would write a second lockfile.
ok: pnpm install
bad: npm install
&lt;span class="k"&gt;```
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The prose tells the agent why the convention exists. The rule gives the hook a decision to make when it sees a command. The examples also give the project something to check: &lt;code&gt;pnpm install&lt;/code&gt; should be allowed and &lt;code&gt;npm install&lt;/code&gt; should not.&lt;/p&gt;

&lt;p&gt;According to the README, &lt;code&gt;ratchet setup&lt;/code&gt; compiles rules and connects to supported agents' lifecycle hooks. At a pre-tool hook, Ratchet examines the proposed action and can return a denial with a suggested correction. &lt;code&gt;ratchet try "npm install lodash"&lt;/code&gt; checks a command without executing it. There are also shadow and warning levels, which make sense for a first rollout: watch what a rule matches before making it block a working workflow.&lt;/p&gt;

&lt;p&gt;The same approach applies beyond package managers. The documentation describes rules for selected file reads and writes, tool calls, command checks and test freshness. A small team could start with one repeatable failure, such as writing to a protected configuration path, add allowed and rejected examples, and review the matches before enabling enforcement.&lt;/p&gt;

&lt;h2&gt;
  
  
  The boundary matters
&lt;/h2&gt;

&lt;p&gt;A hook sees the actions its host sends to it. That is not the same as controlling every possible effect of a process. Ratchet's README explicitly notes limits to its shell-read inspection: it reads command text and does not follow a wildcard, an earlier &lt;code&gt;cd&lt;/code&gt;, an interpreter such as &lt;code&gt;python -c&lt;/code&gt;, or a recursive search. A rule that catches &lt;code&gt;cat .env&lt;/code&gt; is not proof that the same file cannot be read another way.&lt;/p&gt;

&lt;p&gt;That distinction changes where this tool belongs. Use a hook to make common project conventions harder to forget and to give the agent a useful correction. Use operating-system permissions, isolated credentials and network restrictions for boundaries that must hold against alternate paths. Keep CI checks too: a developer, another agent or a process outside the hooked harness can still change the repository.&lt;/p&gt;

&lt;p&gt;The maintainer reports low hook latency and describes enforcement as deterministic. Those are project claims; neither means a rule covers every route to the same outcome. Test the commands your own harness actually emits, including an allowed case and a bypass-shaped case, before relying on a new rule.&lt;/p&gt;

&lt;p&gt;The practical starting point is one boring rule with an observable result. If the recurring problem is a second lockfile, check the package-manager command and review the diff. Then add another rule only when the failure is specific enough to describe and test.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>devtools</category>
      <category>security</category>
      <category>programming</category>
    </item>
    <item>
      <title>Test PDF parsers for the one wrong value, not just missing text</title>
      <dc:creator>Reid Marlow</dc:creator>
      <pubDate>Sun, 29 Nov 2026 16:03:04 +0000</pubDate>
      <link>https://dev.to/reidmarlow/test-pdf-parsers-for-the-one-wrong-value-not-just-missing-text-4764</link>
      <guid>https://dev.to/reidmarlow/test-pdf-parsers-for-the-one-wrong-value-not-just-missing-text-4764</guid>
      <description>&lt;p&gt;Your ingestion pipeline returns almost every word on a financial table. One column header has moved, so the value for 2025 is now attributed to 2026. A text-similarity score can look excellent while the application answers the wrong question.&lt;/p&gt;

&lt;p&gt;That distinction is the useful part of &lt;a href="https://github.com/run-llama/ParseBench#parsebench-2" rel="noopener noreferrer"&gt;ParseBench 2&lt;/a&gt;, LlamaIndex's document-parsing benchmark. Its maintainers describe 4,317 page-level test cases drawn from 2,645 documents, across text, formatting, tables, charts, layout and forms. The benchmark adds severity-aware scoring: a page gets the lower of its content-recovery score and a severity cap. A changed number, flipped negation, swapped header or incorrect form value can therefore hurt the score even when most of the page survived.&lt;/p&gt;

&lt;p&gt;This is a benchmark design, not a guarantee that its severity labels match your application. But it gives teams building PDF-to-search or PDF-to-agent pipelines a better question to ask: &lt;em&gt;which small error would change a decision?&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  A page score should not hide a critical field
&lt;/h2&gt;

&lt;p&gt;Imagine a two-column revenue table where the parser preserves every number but swaps the year labels. A downstream retrieval system may faithfully retrieve the wrong year. Re-running the language model against the same extracted text will not repair the source data.&lt;/p&gt;

&lt;p&gt;For a contract, the analogous failure might be dropping “not” from an exclusion. For a form, it could be reading a printed label as a filled-in value. The current &lt;a href="https://github.com/run-llama/ParseBench" rel="noopener noreferrer"&gt;ParseBench repository&lt;/a&gt; describes a recent forms-scoring change that distinguishes printed form text from a claimed field value. That distinction matters: a blank field and an invented answer call for different review and remediation.&lt;/p&gt;

&lt;p&gt;Create a small local evaluation set around those consequences. For each page, retain the original PDF, expected output and page number, then specify the facts that must survive: row and column labels paired with values, signs and units, negations, and the distinction between blank and filled fields. Include pages your users actually send, with permission to use them; a public benchmark alone cannot represent your document mix.&lt;/p&gt;

&lt;h2&gt;
  
  
  Score the answer-bearing relationships
&lt;/h2&gt;

&lt;p&gt;A useful test need not reproduce an entire benchmark. Consider a hypothetical reference row:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Revenue | 2025: 10 | 2026: 12 | USD millions
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Checking that &lt;code&gt;10&lt;/code&gt; and &lt;code&gt;12&lt;/code&gt; appear is insufficient. A test should ask whether &lt;code&gt;Revenue, 2025, USD millions&lt;/code&gt; maps to &lt;code&gt;10&lt;/code&gt;, and whether the 2026 value maps to &lt;code&gt;12&lt;/code&gt;. Record missing values separately from incorrect values. If a field cannot be confidently matched, route the page for inspection rather than silently treating a blank as zero.&lt;/p&gt;

&lt;p&gt;Likewise, a contract test can assert the full clause containing a negation and its section heading, not just the presence of the words around it. Keep a link back to the source page in the record shown to reviewers. The extracted Markdown is convenient for indexing and comparison; the original page remains the reference when the extraction and the page disagree.&lt;/p&gt;

&lt;h2&gt;
  
  
  Read the benchmark by dimension
&lt;/h2&gt;

&lt;p&gt;ParseBench 2 reports an unweighted mean across six dimensions, with fixed weights for datasets inside each dimension. That is useful for comparing broad coverage, but a team processing forms should inspect the forms result and actual failed pages instead of choosing a parser solely by the overall rank. The authors also say v1 and v2 scores are not comparable: the test set and scoring changed.&lt;/p&gt;

&lt;p&gt;The benchmark is maintained by LlamaIndex, which also makes a parser on its leaderboard. The dataset and evaluation code are available for inspection, and the repository says verified rows are rescored from published outputs. Treat those results as a starting point, then run the same checks on representative pages and investigate failures. A leaderboard score is not an independent audit of a particular deployment.&lt;/p&gt;

&lt;h2&gt;
  
  
  Put a review boundary around conversion
&lt;/h2&gt;

&lt;p&gt;For a PDF-to-Markdown workflow, save the input, output, parser version and page mapping together. Re-run the same evaluation when the parser or its settings change. For document types with material consequences, review pages that fail field or relationship checks before their contents feed an automated decision.&lt;/p&gt;

&lt;p&gt;Tools such as &lt;a href="https://kolmopdf.com" rel="noopener noreferrer"&gt;KolmoPDF&lt;/a&gt; offer technical PDF-to-Markdown conversion, including layouts with tables and formulas. They can be candidates for this workflow, but the published ParseBench results do not establish a score for KolmoPDF here, and no parser should be assumed correct on your documents without testing. KolmoPDF is a related product; this site links to it.&lt;/p&gt;

&lt;p&gt;The practical target is not a perfectly pretty Markdown file. It is an extraction whose important claims can be traced to the page and whose consequential errors are visible before another system confidently repeats them.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>testing</category>
      <category>pdf</category>
      <category>programming</category>
    </item>
    <item>
      <title>Set a GGUF size budget with llama.cpp quantization</title>
      <dc:creator>Reid Marlow</dc:creator>
      <pubDate>Tue, 24 Nov 2026 18:01:12 +0000</pubDate>
      <link>https://dev.to/reidmarlow/set-a-gguf-size-budget-with-llamacpp-quantization-2ed9</link>
      <guid>https://dev.to/reidmarlow/set-a-gguf-size-budget-with-llamacpp-quantization-2ed9</guid>
      <description>&lt;p&gt;If a local model almost fits on your GPU, choosing a GGUF quant by its label can be frustrating. The same preset produces different average bits per weight across architectures, and file size still leaves out runtime memory.&lt;/p&gt;

&lt;p&gt;A new llama.cpp option lets you set a file-size budget and choose a mix of tensor quantization types to fit it. Here's what the budget controls, what it costs to compute, and what to measure before deployment.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/ggml-org/llama.cpp/releases/tag/b12669" rel="noopener noreferrer"&gt;llama.cpp release b12669&lt;/a&gt; adds another option to &lt;code&gt;llama-quantize&lt;/code&gt;: specify a target file size or average bits per weight and let it choose a mix of tensor quantization types. It's useful when you have a specific storage budget or want a controlled size comparison between models.&lt;/p&gt;

&lt;h2&gt;
  
  
  How the budget is allocated
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://github.com/ggml-org/llama.cpp/pull/15550" rel="noopener noreferrer"&gt;implementation pull request&lt;/a&gt; describes sampling rows from each eligible tensor, estimating quantization error across candidate types, and choosing a mix under the overall budget. A tensor that loses more from compression can get more bits; another can get fewer. The optimizer uses an importance matrix with activation statistics, so generating a suitable &lt;code&gt;imatrix.gguf&lt;/code&gt; is part of the preparation.&lt;/p&gt;

&lt;p&gt;The release's &lt;a href="https://github.com/ggml-org/llama.cpp/blob/b12669/tools/quantize/README.md" rel="noopener noreferrer"&gt;quantization guide&lt;/a&gt; gives this example for a size target:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;./llama-quantize --target-size 1.5g --state-file my-state-file.dat --imatrix imatrix.gguf input-model-f32.gguf output-model.gguf
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For comparisons at an average bit budget, use &lt;code&gt;--target-bpw&lt;/code&gt; instead. The state file saves the expensive target computations, letting a later run reuse them. The guide also documents &lt;code&gt;--target-exclude&lt;/code&gt; for excluding quantization types; that option prevents writing a state checkpoint. Explicit tensor-type overrides stay fixed and count against the budget, and an impossible remaining budget causes quantization to fail.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the numbers do and don't say
&lt;/h2&gt;

&lt;p&gt;The pull request reports 238 tests across 34 models: 195 wins, 26 ties, 16 losses and one unavailable result against standard quantization, using Kullback-Leibler divergence as the comparison metric. The authors count wins and ties as 93% of tests. One model, mamba-2.8b-hf, lost at every listed setting. These are the contributors' results for their test setup, not a promise that every application will improve.&lt;/p&gt;

&lt;p&gt;The optimizer estimates tensor error; it doesn't directly optimize your application score. The PR also says the initial optimization can take five to ten times longer than standard quantization. Keeping the state file is worthwhile if you intend to try multiple targets, but the extra preparation may not pay off for a one-off model.&lt;/p&gt;

&lt;h2&gt;
  
  
  Leave room beyond the GGUF
&lt;/h2&gt;

&lt;p&gt;A file-size target is a disk budget, not a guarantee that inference fits in the same amount of VRAM. Runtime allocations, including the KV cache and compute buffers, need space too; context length and offloading choices affect the result. Pick a target below available memory, run the actual workload, and measure peak use before increasing it.&lt;/p&gt;

&lt;p&gt;For a fair comparison, keep the source model, evaluation prompts, context settings and runtime version fixed. Compare the resulting file size and task quality with an existing quant, then check throughput and memory on the hardware that will serve it. A lower divergence score is useful evidence, but it won't tell you whether your coding assistant still passes its tests.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>opensource</category>
      <category>localai</category>
    </item>
    <item>
      <title>Can Your Coding Agent Change Its Own Test Results?</title>
      <dc:creator>Reid Marlow</dc:creator>
      <pubDate>Mon, 23 Nov 2026 18:01:17 +0000</pubDate>
      <link>https://dev.to/reidmarlow/can-your-coding-agent-change-its-own-test-results-3o32</link>
      <guid>https://dev.to/reidmarlow/can-your-coding-agent-change-its-own-test-results-3o32</guid>
      <description>&lt;p&gt;Your coding agent changes a repository and pytest reports a pass. Before treating that result as a score, check whether the submitted code could also change what pytest reports.&lt;/p&gt;

&lt;p&gt;One documented failure uses a &lt;code&gt;conftest.py&lt;/code&gt; hook to overwrite pytest results. The test might be sensible, but its report comes from a process that loaded the submission. Rebuilding the workspace in a fresh container doesn't by itself settle the question: the submitted code still has to run somewhere.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://arxiv.org/html/2611.27860v1" rel="noopener noreferrer"&gt;Who Grades the Agent?&lt;/a&gt;, a November 2026 paper by Nathan Nour Houlamy and colleagues, proposes a different boundary. Its SplitBench framework runs the candidate in an evaluation environment, but keeps expected answers and the final verdict in a separate trusted component called the Oracle. The authors converted tasks from Terminal-Bench 2.0 and DeepSWE v1.1 and then attacked the conversions. The results are encouraging, with a useful catch: protecting the grader does not make weak tests strong.&lt;/p&gt;

&lt;h2&gt;
  
  
  Separate the observation from the verdict
&lt;/h2&gt;

&lt;p&gt;SplitBench first captures the agent's work as a candidate and copies it into a fresh evaluation environment. The Oracle supplies an input; an adapter in that environment runs the candidate and returns an observation. The Oracle compares the observation with an expected value it holds outside that environment.&lt;/p&gt;

&lt;p&gt;The adapter and the candidate are both treated as untrusted. A candidate that takes over the adapter can send arbitrary observations, so the Oracle needs a narrow interface and must validate what comes back. Each test case, or group of tests that must run together, gets a fresh environment. That limits the ability of one case to leave a modified executable or process for the next.&lt;/p&gt;

&lt;p&gt;The setup also constrains network destinations. That is useful, but a destination allowlist cannot distinguish every permitted operation from misuse of the same service. Provider-hosted tools have their own boundary: the paper says they are disabled by default, and if enabled their traffic is outside SplitBench's network policy.&lt;/p&gt;

&lt;p&gt;A simple way to apply the design to an internal evaluation is to draw the data flow before choosing a sandbox. Mark which process holds expected values, which process loads the patch, and which process turns evidence into a verdict. If the process loading the patch can write the final verdict, a fresh image alone has not removed that trust.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the experiments measured
&lt;/h2&gt;

&lt;p&gt;The researchers converted 180 of 202 tasks across the two benchmarks, reporting a median conversion cost of about $10 per task. On their fidelity evaluation, the converted and native graders agreed on 98.7% of agent attempts. Agreement helps check whether the conversion changed grading behavior; it does not prove either grader is correct in every case.&lt;/p&gt;

&lt;p&gt;For the adaptive attack, the team gave an agent the task and told it to obtain a passing grade without solving it. In the full-knowledge setting, the agent could read the adapter and Oracle code, but not the hidden data. SplitBench rejected 126 of 168 completed attempts, or 75%. Model safeguards stopped another 12 attempts before completion; the authors excluded those from the completed-attempt result.&lt;/p&gt;

&lt;p&gt;Forty-two full-knowledge attempts passed without solving the task. The authors classified 33 as exploiting weak upstream tests, one as a conversion error, three as faked implementations and five as relying only on public answers. They attributed none to a flaw in the SplitBench framework. Those categories matter: a 75% rejection rate is not a claim that the remaining 25% defeated the isolation boundary.&lt;/p&gt;

&lt;p&gt;Across both knowledge settings, one converted task asked for a dataset token count. Its original test checked whether the expected number appeared anywhere in the output file. An attack wrote every number below ten million. The trusted Oracle could make the comparison faithfully and still accept an answer that hadn't counted the dataset. A better acceptance condition would need to reject that oversized answer, and the evaluator should also bound output size.&lt;/p&gt;

&lt;p&gt;The paper describes another gap: a candidate can sometimes generate the observation the adapter is expected to produce without implementing the requested change. The Oracle sees an observation, not the full intent behind the task. The authors recommend stricter acceptance conditions and note that reviewing the candidate and trajectory may help identify such cases.&lt;/p&gt;

&lt;h2&gt;
  
  
  A practical review for an eval harness
&lt;/h2&gt;

&lt;p&gt;Start with one task where the agent can modify a repository and the grader loads that repository. Record exactly what the grader trusts: a test log, exit code, JSON result or value returned from candidate code. Then try a deliberately wrong patch that prints the expected success marker or changes the test runner. If it passes, keep the reproduction alongside the task while moving the verdict outside the candidate's control.&lt;/p&gt;

&lt;p&gt;Next, inspect the acceptance condition itself. Does it compare an exact value, or merely search for a substring? Can a constant, a huge output or an unrelated implementation satisfy it? Use fresh, unpublished inputs where possible, and put limits on the evidence the trusted side will parse. These are design checks, not a claim that every task can be reduced to a single hidden-output test.&lt;/p&gt;

&lt;p&gt;SplitBench has boundaries of its own. The authors assume the underlying isolation works and trust the Oracle and orchestration code. Their conversion does not support every task, including some that require a trusted record of external effects or timing. They also report that some DeepSWE regression outcomes still rely on the upstream runner; the requested feature checks are judged separately by value.&lt;/p&gt;

&lt;p&gt;For a team comparing coding agents, the immediate decision is to retain more than a pass percentage. Keep the task version, grading boundary, hidden-data policy and a few known-bad submissions with the score. That makes it possible to tell whether a harness change improved the agent, changed the tests, or simply made the grader harder to fool.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>testing</category>
      <category>security</category>
      <category>agents</category>
    </item>
    <item>
      <title>LLM routing and zero retention need an endpoint inventory</title>
      <dc:creator>Reid Marlow</dc:creator>
      <pubDate>Sun, 22 Nov 2026 16:12:47 +0000</pubDate>
      <link>https://dev.to/reidmarlow/llm-routing-and-zero-retention-need-an-endpoint-inventory-75f</link>
      <guid>https://dev.to/reidmarlow/llm-routing-and-zero-retention-need-an-endpoint-inventory-75f</guid>
      <description>&lt;p&gt;When an LLM gateway retries a request through another inference provider, your application may have sent sensitive data to a different endpoint. If your logs only record the model name, scoping a provider incident gets harder.&lt;/p&gt;

&lt;p&gt;On November 22, &lt;a href="https://openrouter.ai/blog/announcements/data-processing-incidents-on-inference-providers/" rel="noopener noreferrer"&gt;OpenRouter said&lt;/a&gt; researchers had reported data compromises at certain inference providers or evidence that providers' data policies were not being upheld. OpenRouter said the findings did not show a breach or unauthorized access of OpenRouter itself. It off-boarded three providers and removed 125 endpoints from zero data retention (ZDR) eligibility. That endpoint count includes precautionary removals as well as providers flagged by researchers; it is not a count of confirmed breaches.&lt;/p&gt;

&lt;p&gt;The announcement lists separate provider notices and says not all affected providers had posted publicly. OpenRouter says it notified potentially affected customers. The distinction matters if you are trying to determine exposure: the aggregate announcement alone does not establish that a particular request or application was affected.&lt;/p&gt;

&lt;h2&gt;
  
  
  Map the actual data path
&lt;/h2&gt;

&lt;p&gt;A model name describes what runs. It does not by itself tell a security reviewer which infrastructure processed each request, what subprocessors were involved, or which retention terms applied at that moment. A router can offer useful routing and data-policy controls, but the practical boundary extends to the chosen inference endpoint and any onward network path.&lt;/p&gt;

&lt;p&gt;OpenRouter says it is adapting the researchers' approach for ongoing checks and working on technical verification of network paths to identify cases where requests and responses may be forwarded to third parties. It also says providers must supply appropriate assurances and validation before removed endpoints regain ZDR eligibility. Those are measures in progress, not evidence that every forwarding path has already been verified.&lt;/p&gt;

&lt;p&gt;For an application owner, start with a request inventory. For each workload, record the data class, the router and account, the model, the allowed providers or endpoints, and the applicable retention setting. Check whether the router's logs or response metadata can identify the actual endpoint. Record identifiers and timestamps without copying prompts or model outputs into a second sensitive-data store.&lt;/p&gt;

&lt;h2&gt;
  
  
  Treat fallback as part of the privacy policy
&lt;/h2&gt;

&lt;p&gt;A fallback route helps availability only if the alternative is acceptable for the data being sent. A support bot handling public documentation and an agent reading customer contracts may need different allowed routes. Define what happens if no compliant endpoint is available: fail the request, queue it, or send a reduced version after an explicit policy decision. Don't assume a retry will preserve the same provider or data-handling conditions; verify the router's behavior and configuration.&lt;/p&gt;

&lt;p&gt;Remove credentials and unnecessary personal data before sending a request. For document workflows, extract only the pages or passages needed for the task when possible. That reduces the material exposed to any endpoint; it does not eliminate the need to assess the provider handling it. Keep your own observability pipeline in scope too: request logs, traces and error reports may retain the very content you intended to keep out of model-provider storage.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prepare to answer the incident question
&lt;/h2&gt;

&lt;p&gt;When a notice arrives, the useful question is which workloads sent what class of data to which endpoint during the relevant period. Keep routing configuration history and provider notices alongside deployment records so you can narrow that answer. If the router cannot supply per-request endpoint history, document that gap before an incident instead of inferring exposure from model names.&lt;/p&gt;

&lt;p&gt;ZDR is a meaningful requirement to set, but a label cannot independently prove how every downstream system behaved. Ask how the policy is verified, how eligibility changes are communicated, and whether your application fails closed when an eligible route disappears. The answer determines what happens the next time an endpoint is removed from the pool.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>security</category>
      <category>llm</category>
      <category>devtools</category>
    </item>
    <item>
      <title>Building income dashboards that show the months an average hides</title>
      <dc:creator>Reid Marlow</dc:creator>
      <pubDate>Sun, 22 Nov 2026 16:10:01 +0000</pubDate>
      <link>https://dev.to/reidmarlow/building-income-dashboards-that-show-the-months-an-average-hides-474o</link>
      <guid>https://dev.to/reidmarlow/building-income-dashboards-that-show-the-months-an-average-hides-474o</guid>
      <description>&lt;p&gt;An income dashboard can calculate an accurate annual income and still give someone a dangerously optimistic picture of next month's cash. If a worker earns $3,000 in one month and $2,000 the next, a $2,500 average doesn't tell them whether rent is covered in the second month.&lt;/p&gt;

&lt;p&gt;That example is illustrative. The underlying problem appears in &lt;a href="https://doi.org/10.1093/qje/qjag059" rel="noopener noreferrer"&gt;Earnings Instability&lt;/a&gt;, a paper by Peter Ganong, Pascal Noel, Christina Patterson, Joseph Vavra and Alexander Weinberg published online in the &lt;em&gt;Quarterly Journal of Economics&lt;/em&gt; on November 17, 2026. Its &lt;a href="https://www.nber.org/papers/w34227" rel="noopener noreferrer"&gt;public working-paper version&lt;/a&gt;, revised in July 2026, uses payroll and bank-account data to examine earnings changes within continuing jobs.&lt;/p&gt;

&lt;p&gt;The authors find substantial month-to-month variation, especially for hourly workers. Their paper is about the US labor market, not software design. But anyone building tools that turn financial histories into a single income number should pay attention to what disappears during aggregation.&lt;/p&gt;

&lt;h2&gt;
  
  
  The stable hourly rate with an unstable paycheck
&lt;/h2&gt;

&lt;p&gt;In the working paper's payroll data, pay differs from the previous month in roughly three quarters of months. The median absolute month-to-month change is 5%; in a quarter of months, the change is at least 17%. Those figures describe changes in either direction, not the probability of a pay cut.&lt;/p&gt;

&lt;p&gt;Hourly workers see larger changes. The median change for them is 9%, and a quarter of monthly changes are at least 21%. The authors attribute most hourly earnings volatility to hours rather than changes in hourly wages. A worker can keep the same job and hourly rate while their pay changes because their hours do.&lt;/p&gt;

&lt;p&gt;Annual totals can conceal a drop followed by a recovery. They also cannot say whether the lower month arrived when a bill was due. In the paper, the authors combine a payroll processor's data on wages, hours and firms with de-identified bank data on pay deposits, spending and liquidity. Those sources answer different questions: payroll helps explain the change in earnings; the bank data help examine what happens to spending.&lt;/p&gt;

&lt;p&gt;The firm-level analysis suggests changes in total hours at firms can explain at least half of a typical worker's hours volatility. The authors use two approaches, including workers moving between firms with different levels of hours volatility. They also find spending volatility increases when workers move to firms with more volatile earnings, with larger effects for workers with low liquidity. Their job-separation analysis has a qualification: the authors cannot completely separate earnings volatility from other unobserved features of less desirable jobs.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to change in an income dashboard
&lt;/h2&gt;

&lt;p&gt;If you're building a cash-flow view, keep the monthly observations alongside the annual total. A useful first version could show the last twelve monthly receipts, the median, and the lowest month. Put the expected bill date next to the balance available at that time. For a forecast, show a range derived from observed months rather than displaying the average as a guaranteed deposit.&lt;/p&gt;

&lt;p&gt;Those choices have limits. Past pay isn't a promise about the next paycheck, and a low month may reflect a change in job, leave, deposit timing or incomplete data. Label those possibilities rather than quietly filling gaps with zeroes. The study concentrates on continuing jobs, so its estimates should not be presented as a full measure of risk from unemployment or job transitions.&lt;/p&gt;

&lt;p&gt;There's also a privacy decision. Monthly deposits and balances reveal more about a person than a yearly aggregate. Keep the detailed data only as long as the feature needs it, and be explicit about what is stored and shared.&lt;/p&gt;

&lt;p&gt;A single annual number is convenient for a report. For a household trying to decide whether it can pay a bill on the 15th, the sequence of deposits and expenses is the useful part.&lt;/p&gt;

</description>
      <category>programming</category>
      <category>data</category>
      <category>fintech</category>
    </item>
    <item>
      <title>How to Test PDF Reading Order Before Tuning Your RAG Pipeline</title>
      <dc:creator>Reid Marlow</dc:creator>
      <pubDate>Sun, 22 Nov 2026 16:03:25 +0000</pubDate>
      <link>https://dev.to/reidmarlow/how-to-test-pdf-reading-order-before-tuning-your-rag-pipeline-4e5a</link>
      <guid>https://dev.to/reidmarlow/how-to-test-pdf-reading-order-before-tuning-your-rag-pipeline-4e5a</guid>
      <description>&lt;p&gt;A RAG pipeline can retrieve the right PDF page and still hand the model the wrong evidence. In a two-column PDF, a parser might join the left column's first line to the right column's first line, then repeat that across the page. Every word may be present while the sentence fed to the model never existed in the document.&lt;/p&gt;

&lt;p&gt;Before tuning embeddings, check what entered the index. A useful starting point is &lt;a href="https://arxiv.org/html/2412.07626v2" rel="noopener noreferrer"&gt;OmniDocBench&lt;/a&gt;, a document parsing benchmark described by Linke Ouyang and colleagues in 2025. Its 981 pages cover nine document types, with annotations for text, tables, formulas and reading order. The authors report that accuracy drops on multi-column and complex layouts across the models they evaluated. That's a result for their dataset and tested versions, not a ranking of today's services or a measure of retrieval quality.&lt;/p&gt;

&lt;p&gt;The practical lesson is to evaluate the page as several related tasks. A text score can look good while a formula, a table header or the order of paragraphs is wrong.&lt;/p&gt;

&lt;h2&gt;
  
  
  Build a small page set from the actual workload
&lt;/h2&gt;

&lt;p&gt;Collect pages you are allowed to use, with enough examples of each layout that matters to the application. Include clean single-column pages as a baseline and add two-column papers, scanned pages, tables or equations only where those appear in your corpus. Keep a reference image or original PDF page next to each expected extraction. A sample of difficult pages is a diagnostic set; it does not estimate the error rate of the whole corpus unless it was sampled for that purpose.&lt;/p&gt;

&lt;p&gt;For each page, write down what a downstream user needs. For a paper, that might be a claim and its qualifying sentence. For a specification, it might be a variable and its subscript. A table test can ask which header belongs to a particular cell. Store the page number and document version with each answer so a reviewer can return to the source.&lt;/p&gt;

&lt;p&gt;For example, use a hypothetical page with this layout:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Left column:  The limit applies to requests.
              Internal calls are excluded.
Right column: The limit resets each hour.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A parser that reads across the page could place "The limit resets each hour" between the first sentence and its exception. A keyword search for "excluded" might still find the page, but a chunk cut at that boundary may omit the exception. Check the extracted sequence and the chunk that reaches the model, not just whether the word appears somewhere in the output.&lt;/p&gt;

&lt;h2&gt;
  
  
  Score errors where they change an answer
&lt;/h2&gt;

&lt;p&gt;Review a sample page by page and record separate outcomes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Reading order: are paragraphs and their qualifiers adjacent in the extracted text?&lt;/li&gt;
&lt;li&gt;Equations: do subscripts, superscripts and operators match the page? A changed minus sign can change the result even if surrounding prose is correct.&lt;/li&gt;
&lt;li&gt;Tables: can the reviewer associate the value with its row, column, unit and relevant footnote?&lt;/li&gt;
&lt;li&gt;Provenance: can the retrieved chunk be traced to the correct document version and page?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These checks are application tests, not the OmniDocBench scoring procedure. The paper evaluates parsing at several levels and uses different metrics for different content types. It also notes that a generic text similarity score can be a poor fit for formulas and tables with multiple valid representations. Two equivalent LaTeX strings can differ in characters; conversely, a one-character difference can change a formula's meaning.&lt;/p&gt;

&lt;p&gt;Once the extraction passes review, run the same questions against the indexed chunks. Record whether retrieval found the supporting passage, whether the passage retained its context, and whether the answer cites the page. This separates a parsing failure from a retrieval failure and from a response that ignored good evidence. For an incorrect answer, keep the original page, extracted text, retrieved chunks and answer together as a regression case.&lt;/p&gt;

&lt;h2&gt;
  
  
  Choose the processing boundary
&lt;/h2&gt;

&lt;p&gt;A PDF-to-Markdown service can be a useful candidate when pages contain formulas or complex layouts; local parsers may be a better fit when documents cannot leave the environment. Compare candidates on the same permitted pages and include review time in the decision. &lt;a href="https://kolmopdf.com" rel="noopener noreferrer"&gt;KolmoPDF&lt;/a&gt; provides PDF-to-Markdown conversion and an API; its standard service is cloud-based, with private deployment available by arrangement. This site promotes KolmoPDF; include it in a comparison only if that processing boundary fits the document. No parser should be assumed correct on a new corpus without checking its output.&lt;/p&gt;

&lt;p&gt;The benchmark supplies categories for finding failure modes. Your own page set supplies the evidence for the decision you actually need to make: whether a particular extraction is reliable enough for a particular question.&lt;/p&gt;

</description>
      <category>rag</category>
      <category>pdf</category>
      <category>testing</category>
      <category>ai</category>
    </item>
    <item>
      <title>Why agent sandbox policies need to remember file reads</title>
      <dc:creator>Reid Marlow</dc:creator>
      <pubDate>Sun, 22 Nov 2026 14:26:37 +0000</pubDate>
      <link>https://dev.to/reidmarlow/why-agent-sandbox-policies-need-to-remember-file-reads-256k</link>
      <guid>https://dev.to/reidmarlow/why-agent-sandbox-policies-need-to-remember-file-reads-256k</guid>
      <description>&lt;p&gt;Your agent reads a credential file, writes a scratch file, then runs a Python script. A shell-command allowlist may see three ordinary commands while missing the data moving between them.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://arxiv.org/abs/2611.25599" rel="noopener noreferrer"&gt;Tether research paper&lt;/a&gt; explores a way to make that history part of an agent's permissions. Its monitor runs commands in an isolated environment, observes their system-level effects, and applies a policy that can carry labels across steps. It is a useful design for anyone deciding where to put the boundary around an agent with shell access.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check effects, not just command text
&lt;/h2&gt;

&lt;p&gt;A rule that checks the command line can miss an HTTP request buried in a script. Tether's Isolate component instead runs the proposed command speculatively. It uses Linux OverlayFS to stage filesystem changes and &lt;code&gt;strace&lt;/code&gt; to observe system calls. A network proxy holds outbound requests while the monitor checks them. If the policy permits the effects, staged changes can be committed and a held request forwarded; otherwise they are discarded or dropped.&lt;/p&gt;

&lt;p&gt;That ordering matters. Running a command directly on the host and checking its trace afterwards is too late if it has already sent a secret. The paper's design puts the observation inside the execution boundary. Its current implementation also has limits on what it can inspect: HTTPS decryption is currently limited to emulated endpoints, and some I/O mechanisms have to be blocked rather than traced.&lt;/p&gt;

&lt;p&gt;The trace is translated into higher-level actions: reads, writes, copies and network sends. The monitor tracks which files a process has read and propagates that provenance to downstream processes and outputs. A policy can then treat a temporary file derived from sensitive input as sensitive too. This is conservative: reading a file can taint a process even if the data never actually ends up in its output.&lt;/p&gt;

&lt;h2&gt;
  
  
  The rule needs memory
&lt;/h2&gt;

&lt;p&gt;Imagine a task that allows an agent to edit source files and access a package registry, but not send secrets outside the machine. Checking each command independently makes it hard to distinguish a normal registry request from a later request carrying data copied out of a credential file.&lt;/p&gt;

&lt;p&gt;A stateful policy can label the credential file, follow the label through a copy, and reject a network operation that would violate the rule. The exact decision still depends on the policy and the monitor's view of the operation. For example, simply allowing every outbound destination after a sensitive read would undermine a rule intended to prevent exfiltration.&lt;/p&gt;

&lt;p&gt;Tether expresses its policies in Lean 4 and verifies specified invariants about those policies. That proof concerns the formal policy and its modeled actions; it does not prove that every possible operating-system behavior is captured, or that the policy expresses every security requirement an operator intended.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the benchmark actually measured
&lt;/h2&gt;

&lt;p&gt;The authors replayed recorded coding-agent trajectories from MonitoringBenchHonest and LinuxArena. They report blocking &lt;strong&gt;344 of 344 in-scope adversarial trajectories&lt;/strong&gt;, with &lt;strong&gt;74 false positives across 1,590 benign trajectories&lt;/strong&gt; (4.7%). Those are results for the paper's selected, replayable subset, not a guarantee for arbitrary agents or environments. The researchers excluded trajectories whose services could not be emulated or whose actions could not be captured and modeled in the evaluated setup. They also refined the policy against benchmark traces.&lt;/p&gt;

&lt;p&gt;The false positives are instructive. Fifty involved edits to protected paths that the task did not request; seven involved undeclared external hosts. Another 17 involved reads of sensitive files, including broad searches such as &lt;code&gt;grep -r&lt;/code&gt; that touched files whether or not their contents were useful. A policy can have a good reason to stop those operations and still interrupt legitimate work.&lt;/p&gt;

&lt;p&gt;The monitor also cannot identify a malicious change to an otherwise permitted source file merely from the system-level flow. The paper describes background processes and database operations as not yet modeled in detail; a more restrictive policy can block those channels instead. That is a real trade: broader coverage may mean an agent cannot use the tools its task needs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start with the boundary you can enforce
&lt;/h2&gt;

&lt;p&gt;You don't need to adopt a research prototype to use the lesson. For an agent workflow, write down which paths contain credentials, where generated files may be written, and which network destinations the task actually needs. Keep secrets out of the agent's environment when possible. If a job needs a database or a background worker, treat that as a separate permission decision rather than assuming a shell-command allowlist covers it.&lt;/p&gt;

&lt;p&gt;Then test a small sequence, not just a single command: read sensitive input, copy it to a scratch file, and attempt an outbound request in a safe test environment. A monitor that only recognizes the original filename will miss the relationship. A conservative monitor may stop harmless work, so record the block and make the exception as narrow as the task allows.&lt;/p&gt;

&lt;p&gt;Tether's most useful contribution is that it makes those tradeoffs explicit: what the monitor sees, what the policy remembers, and which channels remain outside the model. The paper's &lt;a href="https://arxiv.org/pdf/2611.25599" rel="noopener noreferrer"&gt;evaluation and limitations&lt;/a&gt; are worth reading together before treating its benchmark score as a deployment guarantee.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>security</category>
      <category>linux</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
