Sr. Content Developer at Microsoft, working remotely in PA, TechBash conference organizer, former Microsoft MVP, Husband, Dad and Geek.
165944 stories
·
33 followers

sqlite-utils 4.2.2

1 Share

Release: sqlite-utils 4.2.2

A pretty sizable bugfix release for sqlite-utils, featuring contributions from Sanidhya Saluja, Caldera, Ilya Khalafi, Syed Ahnaf Raza, Pengyi Peng, Agustin Saiz, Yewan Moon, Zihan Dai, Tanbir Hossain Ramim, Peter Olkhovets, and LucioLiu.

Tags: sqlite-utils, sqlite

Read the whole story
alvinashcraft
15 seconds ago
reply
Pennsylvania, USA
Share this story
Delete

πŸ“· Two cameras, one window: Webcam Viewer 0.5 for New Year, New Bot

1 Share

⚠ This blog post was created with the help of AI tools. Yes, I used a bit of magic from language models to organize my thoughts and automate the boring parts, but the geeky fun and the πŸ€– in C# are 100% mine.

Hi!

Sometimes, the missing piece in a robot demo is not another AI model. It is a simple way to show what is happening on the desk. πŸ€–

While working on New Year, New Bot, I wanted two camera angles in one window: a main view and a smaller view showing the robot. No complicated streaming setup, just the cameras and the demo.

That is why I extended Webcam Viewer with two-camera support!

First, thanks to the original author πŸ™Œ

A big thank you to siusun for creating the original webcam-windows. Its lightweight Windows tray viewer was a great starting point. Version 0.5 builds on that work in my fork.

What is new?

  • One or two cameras in the same window.
  • Side-by-side, vertical stack, and picture-in-picture layouts.
  • Independent camera and resolution selection.
  • A draggable, resizable picture-in-picture inset.
  • Saved camera selections, layouts, and inset placement.
  • Independent capture sessions so one camera failure does not stop the other feed.

My favorite is picture-in-picture. Keep the main angle large, put the robot in the inset, and move it wherever it works best for the demo.

Webcam Viewer picture-in-picture

Side-by-side is another handy option when both camera angles deserve equal space.

A little C# behind the scenes

The app uses .NET 10, Windows Forms, OpenCvSharp, and DirectShow. The layout menu is deliberately simple:

AddLayoutItem(layout, "Side by side", CameraLayoutMode.SideBySide);
AddLayoutItem(layout, "Vertical stack", CameraLayoutMode.Vertical);
AddLayoutItem(layout, "Picture-in-picture", CameraLayoutMode.PictureInPicture);

Each camera has its own capture session. The UI takes the latest available frame instead of building up a queue of old frames.

I also added recovery for failed resolution changes in single-camera mode. The app attempts to reopen the previous resolution instead of leaving the camera unusable. That recovery has automated test coverage, but still needs a hardware retest.

Give it a try

Download version 0.5, extract all files, and run WebcamWindows.exe. You need the .NET 10 Desktop Runtime for Windows x64.

Right-click the video area, select Camera Mode β†’ Two cameras, choose your primary and secondary cameras, then select Camera Layout β†’ Picture-in-picture.

To build your own copy:

dotnet publish .\WebcamWindows\WebcamWindows.csproj `
-c Release -r win-x64 --self-contained false `
-o .\publish\WebcamViewer-0.5

I tested side-by-side and picture-in-picture with a Sony ZV-E10 and a USB camera. Both views worked nicely, and 23 automated tests pass.

A small tool, but a useful addition to the New Year, New Bot demos!

Happy coding!

Greetings

El Bruno

More posts in my blog ElBruno.com.

More info in https://elbruno.com




Read the whole story
alvinashcraft
30 seconds ago
reply
Pennsylvania, USA
Share this story
Delete

.NET 11 runtime async

1 Share

.NET 11 runtime async: The runtime takes over await
7 minutes by GΓ©rald BarrΓ©

.NET 11 moves async handling from the compiler into the runtime. Instead of generating a state machine with a MoveNext method, the runtime suspends and resumes async methods directly. The result is simpler code, smaller output, and stack traces that show each method once without extra infrastructure frames. The feature is still in preview and requires opting in via a project property.

Build a GPU-accelerated UI on your C# backend: Step-by-step tutorial.
sponsored by Qt Group

Have an application with the backend in C#? Put a mature, GPU-accelerated UI on top of it with Qt Bridge for C#, staying in your usual C# and .NET workflow. In this 16-minute tutorial, CristiΓ‘n Maureira-Fredes, who leads Qt Bridges, builds a simple app and compares the UI code with XAML. Watch the tutorial, try it on your own project, and tell us what you think.

Server-timing headers in ASP.NET Core
12 minutes by Maarten Balliauw

Adding Server-Timing headers to ASP.NET Core lets you see database and API durations right in the browser DevTools Network tab, alongside the timings the browser already collects. A small middleware captures the total request time, while an HttpContext feature lets other code add their own named measurements using a simple using block. If you already use OpenTelemetry, you can pull timings from existing Activity spans instead of adding new instrumentation. Maarten suggests making sure to restrict the header to developers or trusted roles, since detailed timing data can reveal internal behaviour to attackers.

Durable task in the real world
29 minutes by Tamir Dresher

Tamir explains how Durable Task helps manage long-running processes that may be interrupted by crashes or external delays. Through five practical examples, he shows how to handle approvals, cloud provisioning, payments, webhooks, and AI agents. He also highlights what Durable Task cannot solve, emphasizing that applications must still manage external state, safe retries, and business decisions.

Two models of distributed communication
12 minutes by Bipin Joshi

Bipin explores the evolution of distributed communication in .NET, from .NET Remoting and ASMX web services to Windows Communication Foundation (WCF). He explains how these technologies differ in their approach to communication, interoperability, and complexity. Bipin also shows why WCF became an important step toward a unified service model, while introducing new challenges for developers.

Building native Windows UI entirely in C#
6 minutes by Toru Misaki

Microsoft released an experimental framework called Microsoft.UI.Reactor that lets developers build native Windows apps using only C#, skipping XAML entirely. It uses a state-driven pattern similar to React and SwiftUI, where the UI updates automatically when data changes. The framework sits on top of real WinUI controls and can coexist with existing XAML apps. APIs may still change over the next few months, and Microsoft says XAML remains fully supported.

And the most popular article from the last issue was:

Read the whole story
alvinashcraft
43 seconds ago
reply
Pennsylvania, USA
Share this story
Delete

Using the Gemini Decisions API to Speed Up My Agentic Evaluations

1 Share

Howdy friends!

In my Beyond Vibe Coding: Harness Engineering with Google series, I described how to build a harness around the model. In Part 2: Loop Engineering in the Harness, I wired up an autonomous execution loop with a two-phase evaluation rubric that runs on every iteration. Having that rubric is a massive win: it verifies that everything the agent builds actually meets the spec, passes every test and static check, and gets independently evaluated by an agent-as-a-judge before the loop is allowed to call it done.

Two Phase Rubric

There was just one snag: it can get slow and expensive when you run it on every single loop pass.

How My Two-Phase Rubric Works

When I first built the rubric, I split every check cleanly into two phases:

  • Phase 1 β€” Deterministic Gates: Local linters, typecheckers, and unit tests (codespell, ruff, pytest). This phase is super fast and doesn't consume any tokens. If Phase 1 fails, the loop stops immediately and our agent then makes the required fixes.
  • Phase 2 β€” Semantic Critic: Once Phase 1 is green, a fresh subagent with zero session history inspects the workspace against my specification. It asks questions like "Did this actually implement the spec without cutting corners?", and "Has the documentation been updated to match the changes?"

How You Wire It Into a Repo

To use this rubric we just provide any given repo with a plain-Markdown table of binary assertions (B1–Bn). We would typically do this inside of a file like SPEC.md, LOOPS.md, or RUBRIC.md. The table might look something like this:

| ID | Falsifiable Condition | Verification Target |
| :--- | :--- | :--- |
| `B1` | Static checks (`codespell`, `ruff`) and unit tests pass | `make check` |
| `B2` | `README.md` and `.env.template` document every new CLI flag and env variable | `README.md, .env.template` |
| `B3` | CLI commands support `--json`, `--dry-run` on mutations, and actionable error hints on `stderr` | `src/cli.py` |
| `B4` | Core logic stays separated from API/UI handlers; invalid inputs return actionable errors without leaking stack traces | `src/api.py, src/core.py` |
| `B5` | `.gitignore` excludes `.env` and cache folders, with zero hardcoded secrets or project IDs | `.gitignore, src/` |

On every loop iteration, the agent runs the deterministic checks, then hands the remaining assertions and the diff to the semantic critic. No sycophancy, no polluted context window, and no "looks good to me!" hand-waving.

The Semantic Bottleneck

The catch is the tax you pay on every iteration that passes the deterministic phase. Spawning a reasoning subagent typically takes 10–20 seconds and burns standard output and thinking tokens even for straightforward checks like "Did you document the new CLI flag in README.md?" or "Did you actually add the unit test you promised?" Run four or five loop passes on a feature branch, and you spend more time waiting on the critic than writing code.

There are a couple of initial ways we might try to solve this problem.

We might instead use a much faster, cheaper model to do the entire semantic phase. The problem with this approach is that the cheaper model is often not smart enough to perform accurate evaluations.

Alternatively, we might introduce a fast, cheap model to perform triage. This model would perform initial fast evaluations where it can, and then route to a smarter model only where needed. The triage phase would generate its own set of structured output. But as Karl Weinmeister proved in his routing benchmarks, asking an LLM for JSON creates its own bottlenecks:

  • Generation latency: Even Google's super-fast gemini-3.5-flash-lite took a median of over 2 seconds just to emit a structured JSON routing verdict in Karl's benchmarks. This adds so much overhead that the combined call was slower end-to-end than skipping routing altogether.
  • Output-token markups: Generative models bill output and hidden thinking tokens at 4x–8x the input token rate, meaning you pay a premium just to generate {, ", :, and } punctuation in the structured output.
  • Hallucinated confidence: Asking a model to output "confidence": 0.95 looks right on the surface, but it is just predicting plausible-looking text tokens β€” effectively hallucinating a score rather than computing a calibrated probability you can safely set thresholds against.

Why naive fixes for the semantic bottleneck fall short

Is there a way we can do a much faster and cheaper triage between our deterministic layer and our semantic critic?

Enter the Gemini Decisions API

Every standard LLM call has two steps: first, the model reads your entire prompt all at once in parallel (known as prefill); second, it writes its reply out one token at a time (generation), which is where most of the latency and output-token cost lives. A dedicated decision model skips that second step altogether β€” it runs a single prefill pass over your input and questions, reads the probability scores straight out of the model, and returns calibrated verdicts with zero text generated. TypeSafe's Jev had already shown how well this emerging category works for fast yes/no and routing decisions.

In November 2026, Google DeepMind dropped the Gemini Decisions API, powered by a purpose-built model called Gemini Decision 1 (gemini-decision-1) on the Gemini Developer API (v1beta).

Instead of treating a yes/no judgement or rubric score as a text-generation task, gemini-decision-1 evaluates your context and up to 1,000 independent questions in a single prefill pass. It generates 0 output tokens and 0 thinking tokens.

Gemini Decisions API single-pass parallel fan-out

Because there is no token-by-token generation loop, the economics shift dramatically:

  • Speed: End-to-end latency is roughly 0.2 seconds across contexts up to 16K tokens β€” and it stays nearly flat whether you ask 1 question or 100 in the same call.
  • Pricing: Standard paid input is $0.10 per 1M input tokens, and $0 for output (because there are no output tokens!). Google reports that gemini-decision-1 is typically 5x cheaper across its shared benchmark suite than running gemini-3.5-flash-lite on the Interactions API β€” and your shared input payload is billed only once per request, no matter how many questions you attach.
  • Native multimodality: Within a 256K-token context window, a single input block can combine text, JSON, images, audio, video, and PDFs directly without separate OCR or transcription pipelines.

To put those numbers in context (from the official Gemini API pricing table): gemini-decision-1 works out roughly 5x cheaper and 10x faster than gemini-3.5-flash-lite ($0.30 input / $2.50 output per 1M tokens). And compared with gemini-4-hydrogen ($1.50 input / $7.50 output per 1M tokens) β€” the model I currently use as my semantic rubric judge β€” gemini-decision-1 is 15x cheaper on input alone (with zero output or thinking-token bills) and more than an order of magnitude faster.

As detailed in Google's launch post, Google is already running the Decisions API in production across its own products β€” routing queries in Gemini Notebook (cutting everyday latency by up to 40%), powering instant wireframe edits in Stitch Rapid, selecting from 200+ emoji reactions in CC, and screening MCP tool behaviour in Google Search.

Core Decision Primitives

Every question passed to client.decisions.create (requiring google-genai >= 3.2.0 configured with v1beta) uses one of three structured primitives documented in the Decisions API guide:

Core Decision Primitives: noul, choice, and score

Here is how concise a live Python call looks:

from google import genai

client = genai.Client(http_options={"api_version": "v1beta"})

result = client.decisions.create(
  model="gemini-decision-1",
  input="Diff and spec payload go here...",
  questions={
    "docs_updated": {
      "type": "noul",
      "instructions": "Does the diff update README.md with the new CLI flag?",
      "criteria": {
        "true_description": "README.md is present and documents the new flag.",
        "false_description": "README.md omits or contradicts the new flag.",
      },
    },
  },
)

verdict = result.answers["docs_updated"]
# verdict.noul: calibrated probability from 0.01 (no) to 0.99 (yes)
# verdict.confidence: certainty in the verdict β€” max(noul, 1 - noul)
print(f"P(yes)={verdict.noul:.2f} confidence={verdict.confidence:.2f}")
# Example output: P(yes)=0.97 confidence=0.97

For a noul question, verdict.noul gives you a calibrated probability between 0.01 (definitely no) and 0.99 (definitely yes), while verdict.confidence tells you how certain the model is in that call β€” giving you real numbers you can write pass/fail thresholds against in code.

Investigating How to Build a Faster, Cheaper, Safer Rubric

As soon as gemini-decision-1 was launched, I figured it was going to be the perfect answer to our problem.

I didn't have to start my investigation from scratch. In two excellent articles β€” Routing models with the Gemini Decisions API and How LLM routing strategies compare β€” Google Cloud's Karl Weinmeister benchmarked 150 multimodal tasks across text, code, charts, PDFs, and audio using his gemini-decision-router sandbox. He observed that:

  • Routing overhead drops from over 2 seconds to ~0.3 seconds: Across Karl's multimodal test suite, swapping prompted gemini-3.5-flash-lite JSON for gemini-decision-1 cut median routing latency from 2.2 seconds down to 0.3 seconds.
  • The threshold rules you write in code matter over 40x more than how you word the prompt. Changing how his router acted on the probability scores cut compute spend by 28%, whereas rewording the prompt moved it by less than 1%.
  • Don't treat 0.50 as a pass: (But seriously, why would you?) Because buggy Python still looks syntactically correct, Karl found that accepting anything above a 0.50 pass threshold let 60% of wrong drafts slip through. Raising the threshold to 0.80 dropped wrong drafts accepted to 5% (while keeping 87% of good drafts), and 0.90 pushed false passes down to 0%.
  • Mistake costs are asymmetric: Falsely waving through broken code wrecks your loop's reliability, whereas escalating a borderline check to a deeper critic costs fractions of a cent.

From Two Phases to Three: Tier 1, Tier 1.5, and Tier 2

Now we know that gemini-decision-1 can act as a super-fast filter. It's the perfect missing piece for evolving my two-phase harness rubric into a three-stage verification funnel by slotting it right in the middle as Tier 1.5.

We previously saw that a 0.90 threshold eliminates false passes. But Karl's data shows that with a threshold of 0.90 about 40% of true passes would also be rejected. And this is fine... We can simply say that anything that lands between near-certain failure (<= 0.20) and near-certain pass (>= 0.90) goes into a grey zone. These aren't rejected; they're simply escalated to Tier 2 - our existing semantic critic - for a closer look. This way, clear passes finish in a fraction of a second, obvious omissions fail fast without waking Tier 2, and anything in the grey area gets the full full reasoning treatment.

Three-stage verification funnel

Category Tagging: Controlling Tier 1.5 Authority

Not every assertion in a rubric carries the same risk, so Tier 1.5 shouldn't have the same authority on every row. Checking whether pytest passed doesn't need an AI at all; checking whether README.md mentions a new CLI flag is safe for a fast prefill model to sign off on the spot; but checking for a subtle security flaw or race condition still deserves a deep reasoning critic.

To encode that distinction into my Python runner (eval_rubric.py), I added lightweight inline tags to the B1–Bn IDs in my rubric table (e.g. `[det]`, `[docs]`, `[arch]`, `[security]`). Each tag tells Tier 1.5 how much authority it gets:

  • [det] β€” Deterministic (Skip Tier 1.5): Already proven by Tier 1's local shell exit codes (make check). Skipped completely so we never burn an API call asking a model to guess whether pytest passed.
  • [docs], [mech], [ui] β€” Surface & Routine (Tier 1.5 Can Pass): Low-risk checks that can be verified directly from the diff or target files (untagged rows also default here). If gemini-decision-1 scores >= 0.90 with high confidence and no truncated files, it passes immediately β€” no Tier 2 needed.
  • [arch], [security] β€” Deep Logic & Safety (Provisional Pass Only): Because gemini-decision-1 uses zero thinking tokens and has no file-browsing tools, it never gets the final word on architecture, concurrency, or security. It can still fail fast if an implementation is obviously missing, but a >= 0.90 score earns a provisional pass (PROVISIONAL_ARCH_PASS) β€” deferring Tier 2 until everything else is green so you only run one final sign-off instead of re-running Tier 2 on every intermediate loop pass.

Smarter Stall Detection with ratchet_score

One unexpected bonus made the harness loop smarter, not just faster. Every autonomous coding loop needs clear stopping rules so it doesn't spin forever burning tokens. In Part 2, I called my stopping rules the Circuit Breaker Trio: stop when 100% of checks pass, stop after a max budget of 4–5 passes, or stop if the loop stalls for 2 consecutive passes without improving. With plain binary pass/fail counts, that stall detector was clumsy β€” if a fix genuinely pushed an assertion from 0.25 to 0.82, a binary counter still read 0 passes and threatened a false stall.

With gemini-decision-1, eval_rubric.py computes a continuous ratchet_score β€” the mean P(yes) across all evaluated assertions (0.25 -> 0.62 -> 0.84 -> 0.96). Now the loop recognises genuine forward momentum while catching silent regressions immediately.

Smarter stall detection: binary false stall vs continuous ratchet_score progress

Putting It to the Test: Live PR Experiments

Time for some experiments... I ran my eval_rubric.py against two real merged pull requests from my derailed-dash/gemini-review-action repository (introduced in Automated GitHub Code Reviews Using Google Gemini (Part 2)).

Experiment 1: Tightly Scoped Fix

PR #71 was a focused fix for automated GitHub issue triage: filtering selected labels against the repository's allowlist before calling the GitHub API so the bot can never invent or duplicate labels. It touched just two files (gemini_issue_triage.py and tests/test_issue_triage.py).

I gave eval_rubric.py a compact four-item rubric covering every category:

  • B1 [det]: Unit tests (pytest) pass.
  • B2 [mech]: tests/test_issue_triage.py covers label allowlist filtering and deduplication.
  • B3 [arch]: Issue triage deduplicates and filters selected labels against available_labels before calling the GitHub API.
  • B4 [docs]: The PR diff updates AGENTS.md or README.md to document the allowlist rule.

Then I ran eval_rubric.py against PR #71's diff:

uv run ~/.gemini/config/skills/tiered-rubric-loop/scripts/eval_rubric.py \
  --repo-root ./gemini-review-action \
  --spec notes/pr71-rubric.md \
  --git-range <base>..<head> \
  --targets-only

Here is the scorecard returned by gemini-decision-1:

Experiment 1 PR #71 Tier 1.5 evaluation scorecard

We can see that:

  • B2 cleared immediately (0.97 PASS) β€” no Tier 2 subagent needed for test coverage verification.
  • B3 earned PROVISIONAL_ARCH_PASS (0.96) β€” queued cleanly for one final [arch] check.
  • B4 triggered FAIL_FAST (0.17, 0.83 confidence) β€” gemini-decision-1 spotted that PR #71 omitted documentation updates, and rejected it directly in roughly a second without waking Tier 2!

Experiment 2: Stress-Testing a Large 14-File PR

PR #71 was clean and focused β€” just two files, easily fitting inside the context window. Next, I wanted to stress-test what happens when a PR gets big and messy.

gemini-decision-1 has a hard 256K-token context ceiling shared across the input payload and all questions (plus a 100 MB inline payload cap, 50 MB for PDFs). To stay fast and comfortably inside those limits, eval_rubric.py trims any single file over 48K characters or git diff over 60K characters β€” and automatically refuses to trust a Tier 1.5 PASS on any assertion touching a trimmed file.

My PR #72 added SVG-to-PNG rasterisation and a streaming fallback for connection resets, touching 14 files across Python modules, large test suites (tests/test_pr_review.py), uv.lock, and a hefty README.md. I ran a six-item rubric (B1–B6) against it to see whether Tier 1.5 would fail safe once those size caps kicked in:

Experiment 2 PR #72 Tier 1.5 evaluation scorecard under truncation limits

PR #72 exposed the real-world boundaries immediately β€” and honestly, that is the best validation you could ask for:

  • Strict thresholds hold the line: One architectural check (B6, 0.97) cleared cleanly as a provisional pass, while another (B5, 0.89) missed our 0.90 bar by a single percentage point and escalated straight to Tier 2 instead of guessing.
  • Trimmed or skipped files fail safe: Three checks (B2, B3, and B4) depended on files that were either trimmed by our size caps (README.md, a large test suite, and the 14-file diff) or skipped by design (uv.lock). Rather than hallucinating a pass over incomplete evidence, Tier 1.5 automatically escalated all three to Tier 2.
  • Still fast and sub-penny at 80K tokens: Even on a messy 14-file PR (80,093 input tokens), Tier 1.5 finished in roughly 2.1 seconds for $0.008 with 0 output tokens.

What Difference Did Tier 1.5 Actually Make?

The contrast with my original two-tier loop is massive!

  • On focused slices like PR #71, Tier 1.5 eliminates wasted critic runs: A two-tier loop would have woken a 10–20 second Tier 2 subagent on Pass 1 just to discover B4 (docs) was missing, then woken it again on Pass 2 to re-check everything. With Tier 1.5, Pass 1 failed fast in ~1.0 second for $0.0024 with zero Tier 2 subagents woken, B2 passed terminally, and B3 deferred as provisional so Tier 2 only needs to run once at the very end.
  • On oversized PRs like PR #72, Tier 1.5 fails safe rather than guessing: Spending ~2.1 seconds ($0.008), Tier 1.5 cleared B6 provisionally and escalated B2–B5 to Tier 2 once truncation caps tripped β€” proving that the biggest speedup comes when you keep implementation slices small and target files focused.
  • Sub-penny screening with zero output tokens: Live runs cost $0.0024–$0.0080 with 0 output or thinking tokens, keeping my reasoning budget strictly for genuine grey zones and one final [arch] sign-off.
  • Smarter stall detection: Continuous ratchet_score progress stops the Circuit Breaker Trio from false-stalling when an assertion climbs from 0.25 to 0.82, and flags regressions immediately.

3-pass loop race: Two-Tier loop vs Three-Tier loop with Tier 1.5

Honest Trade-Offs, API Quirks, and Current Limitations

Adding Tier 1.5 is not magic, and treating gemini-decision-1 like a miniature reasoning model will bite you. Keep these gotchas and current preview limits in mind:

  • Know which checks still need step-by-step reasoning: Because gemini-decision-1 answers in a single pass without working through a problem step by step (no thinking tokens), it cannot reliably trace multi-file logic, spot subtle race conditions, or audit auth and injection bugs. Keep those [arch] and [security] checks provisional and always let Tier 2 have the final say.
  • Watch a few subtle API quirks: The model never sees your question dictionary keys (so always put the full, self-contained question inside instructions), noul scores are clamped to 0.01–0.99 (any threshold above 0.99 will never match), and safety-filter blocks fail the whole call with HTTP 400 rather than returning partial answers.
  • Platform availability (Developer API only today): gemini-decision-1 currently runs only on the Gemini Developer API (v1beta), with support for Gemini Platform (formerly Vertex AI) coming soon. Until it lands on Google Cloud, it requires an AI Studio GEMINI_API_KEY rather than keyless Workload Identity Federation (WIF) / ADC.
  • No Context Caching or Batch API yet (rarely a dealbreaker): Separate from the platform split, gemini-decision-1 itself does not yet support Context Caching, the Batch API, or Flex/Priority inference. That means repeated input across successive loop passes is billed in full β€” though at $0.10 per million input tokens (and with all your rubric questions sharing a single pass), it is rarely a problem in practice, especially if you only attach the files relevant to your assertions.
  • Keep each rubric row focused on one clear check: Don't bundle "updates the CLI, adds unit tests, and updates README.md" into a single yes/no question. With one big "monolithic question", if two parts pass and one fails, the score lands right in the fuzzy grey zone. Split them into three separate, independent rows instead (they all run in the same single API call anyway!) and name the exact target file for each one.
  • Match image resolution to the check: For coarse visual or layout checks, resolution="low" cuts image tokens by 4x (266 vs 1064, as Romin Irani showed in Getting Started with the Gemini Decisions API in Python) with >98% confidence. For readable diagram labels and typical UI screenshots, medium is usually plenty β€” and still cuts image tokens by 2x.

Packaged as a Portable Skill You Can Download Today

Once proved, I packaged the entire workflow into a portable agent skill called tiered-rubric-loop in my public derailed-dash/dazbo-agent-skills repository. (If you find it useful, please do drop a star ⭐ on the repo β€” it really helps other builders find it!)

Dazbo presenting the tiered-rubric-loop portable agent skill

Installing it into Antigravity or any compatible agent harness takes one command:

npx skills add https://github.com/derailed-dash/dazbo-agent-skills --skill tiered-rubric-loop

Once installed (with GEMINI_API_KEY in your environment β€” and if it is missing, the skill falls back cleanly to Tier 1 β†’ Tier 2), you do not have to run any scripts by hand. Just prompt your agent in plain English:

"Use tiered-rubric-loop to build this feature. If there isn't a rubric in SPEC.md yet, draft a rubric checklist with me first, then loop until everything passes."

Or on an existing feature branch before opening a PR:

"Run tiered-rubric-loop on my branch and fix anything that fails."

Behind the scenes, the skill handles the whole loop automatically: it finds docs/SPEC.md, SPEC.md, LOOPS.md, or RUBRIC.md (including docs/RUBRIC.md and harness/RUBRIC.md β€” or agrees a lightweight checklist with you inline), runs Tier 1 (make check), calls eval_rubric.py for Tier 1.5 screening, wakes a fresh read-only Tier 2 subagent only for grey zones and final [arch] sign-off, and tracks ratchet_score until the Circuit Breaker Trio stops the loop.

If you ever do want to run Tier 1.5 standalone in a terminal or CI job, eval_rubric.py also works directly from the command line β€” supporting --targets-only, --base main, --image / --pdf for multimodal checks, and --dry-run --json for offline validation.

Wrapping Up

The gemini-decision-1 model is insanely fast, super cheap and a game-changer for certain scenarios. Here I've wired it into my standard harness rubric.

Adding Tier 1.5 between deterministic Tier 1 and my agentic Tier 2 critic took my existing disciplined loop rubric and made it much faster, much cheaper, and backed by a far stronger continuous ratchet. For less than a penny a pass, gemini-decision-1 clears routine checks on the spot, flags obvious omissions in a second, tracks real ratchet_score progress across every pass, and reserves my reasoning budget strictly for genuine grey zones and architectural judgement.

Give tiered-rubric-loop a spin on your next branch. Your repo will thank you for it!

Before You Go

  • Please share πŸ“’ this with anyone that you think will be interested. It might help them, and it really helps me!
  • Please drop some reactions ❀️ πŸ¦„ πŸ”₯ (you can pick more than one!) and bookmark πŸ”– this post!
  • Please leave a comment πŸ’¬. Interaction is good!
  • Add a star ⭐ on my repos!
  • Follow πŸ‘‰ me here on Dev.to, so you don’t miss my content.

References and Useful Links

Gemini Decisions API & Routing Research

Dazbo's Harness Series & Repositories

Dazbo Links

Read the whole story
alvinashcraft
6 hours ago
reply
Pennsylvania, USA
Share this story
Delete

Long-Time Slashdot Reader Open Sources 'QuakeC Studio' IDE with Quick Edit-and-Play Loop

1 Share
In 1996 John Carmack developed QuakeC, a compiled language for programming Quake. 30 years later Arlo (Slashdot reader #1,223) stopped by with an early Christmas present: I've been building QuakeC Studio, a free, open-source IDE for QuakeC. It runs on macOS, Windows and Linux. The main idea is a fast edit-and-play loop. You edit your QC, press Play, and the change shows up in the running game in about a second. You don't need to restart or reload a map. What's in it: - Its own QuakeC compiler, checked against id's qcc and FTEQCC on the re-release source and on public mods. You don't need an outside toolchain. - Go-to-definition, find references, rename and diagnostics, also available as a language server for other editors. - A debugger on the built-in engine. - A map editor with its own bsp, vis and light compilers, including coloured light, checked against id's tools and ericw-tools. - An optional built-in AI agent that can edit, compile and test your mod. It's off unless you configure a model provider. You need your own copy of Quake. No game data is included. To be upfront: I've built most of this with AI coding agents, and every part is tested against id's original code and tools to make sure it behaves like the real thing. I've tested on macOS. The Windows and Linux builds haven't had much hands-on use yet. It's still rough in places, and I'd really like feedback from people who actually write mods and maps, especially bug reports where it disagrees with the tools you already use. Download and docs: https://www.quakecstudio.com/ Source: https://github.com/quakecstudio/editor (GPL)

Read more of this story at Slashdot.

Read the whole story
alvinashcraft
8 hours ago
reply
Pennsylvania, USA
Share this story
Delete

Defending against ARTEX with Microsoft Perception

1 Share

In a matter of weeks, ARTEX went from an open-source GitHub project to a working attack tool. Built for autonomous AI penetration testing, the framework can plan and execute an attack loop with little human intervention: a planner agent chooses the next move, worker agents run tools like nmap, curl and Impacket, and the operation continues at machine speed. That rapid evolution has caught the attention of Microsoft Threat Intelligence. Our October report on Storm-0940 examined the actor’s use of ARTEX, and our in-product Microsoft Defender Threat Intelligence report is tracking its abuse by cybercriminals targeting the financial sector.

Microsoft Perception is a multi-agent system that drives security outcomes, and it puts that intelligence to work. Through playbooks, Perception brings agents together to carry out security workflows. With the Protect against a threat playbook, you can pick the Defender article from the drop-down, and four Perception agents work the threat end to end. Threat Intelligence breaks down the article, then Recon checks whether you’re exposed, Detection Authoring builds the detections, and Posture Prioritization ranks what to fix first. With ARTEX the attacker moves at machine speed, and having a single action that goes from threat intelligence to detections and fixes, and can rerun on every new report, is hugely valuable.

Microsoft threat intelligence is built in with Perception, but it isn’t the only intelligence you can use. As threats like ARTEX evolve, Perception can also act on third-party sources. For this post, we ran the same playbook against two sources: our in-product Microsoft Defender Activity Profile covering ARTEX abuse targeting the financial sector and a Wiz Research article covering ARTEX activity targeting IT and software vendors.

A good threat article tells you what the attacker does. It can’t tell you whether you’re exposed or what to fix first and closing that gap is usually days of analyst work. With only the article as input, we evaluated how far Perception could take the analysis, from understanding the threat to identifying exposure and recommended actions.

Everything ran in Microsoft’s internal simulation environment, built to reflect a typical enterprise setup. Because it is simulated, the findings below do not represent a real production deployment.

Protect against a threat playbook

From Microsoft Perception, we launched the Protect against a threat playbook, which takes one input: a threat article. Pick one from the Microsoft Defender drop-down or paste in a URL. The Threat Intelligence Agent goes first, analyzing the article to identify the threat actors, indicators, vulnerabilities, malware, tactics, and techniques behind the attack. From there, the Recon, Detection Authoring and Posture Prioritization Agents use its report to analyze the security posture and answer three questions: Am I exposed? Can I detect it? And what should I fix first? The result is a set of end-to-end recommendations for protecting your environment against the threat.

Running it on Microsoft Defender threat intelligence

We started with the Defender Activity Profile, ARTEX abuse expands as cybercriminals target financial sector, picked straight from the drop-down.

Figure 1. Launching the Protect against a threat playbook in Perception. The Defender Activity Profile is picked as the only input, and the four agents that will run are listed before the session starts.

The Threat Intelligence Agent identified the actor as Storm-3358, a financially motivated cluster based in Cambodia that has been going after financial-sector organizations, mostly in Southeast Asia, using ARTEX alongside conventional automation. It mapped 11 MITRE ATT&CK techniques. ARTEX scanned internet-facing web apps at machine speed and exploited anonymous file upload and SSRF bugs. Its agents then pulled down web shells and RATs with curl and netcat, and the same automation ran password sprays, API enumeration, database dumps and exfiltration. It pulled out the eight campaign IPs from the article. The report also came with two hunting queries ready to run, one for new files pulled down with curl and one that checks the campaign IPs across 30 days of network logs.

Figure 2. The completed session for the Defender article. All four agents finished, with the Threat Intelligence report open.

ARTEX uses familiar techniques. What it adds is speed, and an agent scanning at machine speed can find an anonymous upload endpoint long before a person working through a list would. That is why the Recon Agent went looking for what ARTEX’s scanners would hit first: public web apps and APIs that could expose the upload and SSRF entry points. It found 183 internet-facing candidate resources in our demo tenant. From configuration data alone it couldn’t confirm whether any had an upload or SSRF flaw, and it said so. But the shortlist was still worth examining. Four Function Apps accept anonymous HTTP calls, including one with a route named upload-screenshot. An API Management service has an uploadFile operation across three APIs that don’t require a subscription. And three storage accounts have public containers named financials and staging. With so many potential starting points, it skipped attack-path modeling.

The Detection Authoring Agent proposed nine detections covering all 11 techniques. It rated three as ready to deploy: a web server spawning shells, executable files being written to web roots, and a password spray followed by a successful sign-in. ARTEX drives commonly used tools, so these detections focus on the resulting behavior rather than ARTEX itself. The other six needed tuning. Because the demo tenant had no baseline for measuring noise, those ratings are estimates. Each proposal also shows which existing detections provide similar coverage, so you can see where they overlap before adding more.

The Posture Prioritization Agent ranked seven risks and called the demo tenant exposed. At the top were four internet-facing API Management operations that Defender flagged for allowing anonymous access. Next came nine web and Function Apps with no platform authentication, nine internet-reachable VMs with high or critical CVEs with known exploits, and 23 storage accounts that allow public or shared-key access.

Figure 3. The Microsoft Defender run at a glance, one column per agent. Results reflect this tenant’s configuration, not the source of the intel.

Running it on third-party research from Wiz

We ran the Protect against a threat playbook again, this time using the Wiz article as input.

Figure 4. Starting the same playbook from the Wiz article. The URL is the only input.

The Threat Intelligence Agent mapped the campaign to MITRE ATT&CK, from source-map and OpenAPI scraping through password spraying, OAuth callback tampering and alg:none JWT forgery, to cross-tenant probing. It also identified five campaign IPs and 20 user agents. Wiz notes that many of those user agents are noisy on their own, so the agent’s hunting guidance focuses instead on behavioral patterns, such as failed sign-ins about a second apart across hundreds of users.

Figure 5. The completed session for the Wiz article. All four agents finished, with the Threat Intelligence report open.

The Recon Agent found seven public workloads with managed identities in our demo tenant. It assumed each one was compromised, then followed its identity to determine what an attacker could reach. One path came out high impact, two medium, four low. The analysis was based entirely on configuration data. Nothing was exploited, a limitation the report explicitly calls out.

The Detection Authoring Agent proposed eight detections covering 12 of the 13 techniques it tracked, from Entra and Okta spray bursts to the source-map-to-API chain. The agent replayed all eight against 14 days of demo-tenant data and found zero hits. In a quiet tenant, that result primarily shows that the queries run without generating obvious noise rather than proving they are ready to deploy, so they still require review before being enabled.

The Posture Prioritization Agent ranked 19 risks and called the demo tenant significantly exposed. At the top were risks that closely matched the attacker’s path: Function Apps reachable from the internet, VMs behind broad network rules, Function Apps missing app authentication and public storage settings.

Figure 6. The Wiz run at a glance, one column per agent. Results reflect this tenant’s configuration, not the source of the intel.

Two articles, one playbook

Two articles on two different ARTEX actors, one from Microsoft and one from Wiz. Each run produced an exposure verdict with evidence, detections to review and a ranked list of fixes, all tied back to the behavior described in the article. The numbers aren’t a scorecard. Each run reflects how the underlying tenant is configured, not where the intelligence came from. Different tenants, different actors, yet both runs put internet-facing Function Apps without app authentication near the top of the fix list.

Keep it current

Campaigns like this change frequently. When Wiz or any other entity publishes new ARTEX behavior, run Protect against a threat on the new article. Do it for every ARTEX report you trust, whether it comes from Microsoft, Wiz or your own team, and plug the holes each one turns up before the attacker finds them.

Try it

Microsoft Perception is now generally available to Microsoft Defender customers. Open Perception in the Defender portal, start Protect against a threat and paste in the article you care about. Learn more here, and get started today.

The post Defending against ARTEX with Microsoft Perception appeared first on Microsoft Security Blog.

Read the whole story
alvinashcraft
8 hours ago
reply
Pennsylvania, USA
Share this story
Delete
Next Page of Stories