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

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
15 minutes 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
1 hour 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
1 hour ago
reply
Pennsylvania, USA
Share this story
Delete

F# Weekly #48, 2026 – Oxpecker 3 & Axial

1 Share

Welcome to F# Weekly,

A roundup of F# content from this past week:

Microsoft News

Videos

Blogs

So I tried C#'s new union types. And I'm very disappointed. Here is why: http://www.planetgeek.ch/2026/11/26/u&#8230; #dotnet #csharp #fsharp

— Urs Enzler (@ursenzler.bsky.social) 2026-11-26T14:16:53.893Z

Highlighted projects

New Releases

Oxpecker stable release 3.0 is out. Includes new feature: recursive validation. Full list of updates in comparison to 2.x is here github.com/Lanayx/Oxpec… #fsharp

— Vladimir Shchur (@lanayx.bsky.social) 2026-11-24T17:58:43.238Z

That’s all for now. Have a great week.

Buy Me A Coffee





Read the whole story
alvinashcraft
1 hour ago
reply
Pennsylvania, USA
Share this story
Delete

AI Is Making Programming Faster but Potentially Less Rewarding

1 Share

AI coding assistants are incredibly efficient, but they change the feedback loop of problem-solving. What do we lose when we gain that much speed?

Circa 2014, back when I was working for Demac Media, I recall a Black Friday incident when a client’s site’s checkout process ground to a halt. Every order submission started to timeout at around 3am, right when traffic was starting to pick up (yes kids, people woke up early in the morning for Black Friday deals).

Cue Panic. For hours, we scrambled—combing through logs, deploying desperate hot-fixes, watching them fail. The pressure was immense; every minute of downtime cost thousands of dollars.

Finally, after what felt like an eternity, we found it: a subtle race condition in a third-party plugin. The fix itself was trivial—a single line of code to adjust the lock timing. We deployed it, and the system started recovering. The feeling was not just relief. It was a euphoric, adrenaline-fueled rush. We fought a fire and won.

Contrast that with another memory: the quiet satisfaction of a long, uninterrupted afternoon spent refactoring a complex shipping calculation module. There was no fire, no panic. Just a tangled knot of logic and hours of deep, focused work. I remember the moment the last test passed—a clean, green wall of confirmation. It wasn’t a rush; it was a profound sense of accomplishment, of having brought order to chaos.

Now, consider what today's developer experience is like. You are working on a small, non-trivial problem involving data serialization. Instead of diving in, you describe the issue to an AI assistant.

# lib/my_app/worker.ex
def handle_cast({:process_data data} state) do
  # The `data` is a mix of structs and plain maps, but Jason
  # needs everything to be serializable. Some structs don't
  # derive the Jason.Encoder protocol.
  json_string = Jasonencode!(data)
  # ... send to external service
end

The AI Agent responds almost instantly.

The error occurs because some structs in your data do not implement the Jason.Encoder protocol. You can fix this by creating a protocol fallback implementation that converts any struct to a map before encoding.

— Add this to lib/my_app/jason_fallback.ex:, Jason.Encoder

The code is correct, working on the first try. And while there is a certain satisfaction in the efficiency of getting the answer, something is missing; there is no dopamine rush, no satisfaction in the struggle, no sense of accomplishment. It's a mechanical, almost sterile, experience.

Developers and feedback loops

A quick search online, and a few conversations with friends tell me that I'm not alone in this feeling. The emotional range of the work has narrowed. The feedback loop that once defined the craft of programming has been irrevocably broken.

There is this concept called Reward Prediction Error (RPE) in neuroscience. It suggests that the dopamine response is strongest not when we receive a reward, but when we receive an unexpected reward.

This kinda maps very well to the traditional coding loop. Trying different solutions and eventually succeeding produces a significant dopamine spike. Through each failed attempt, we dug the hole deeper. When the solution finally worked, the resulting reward signal was enormous because the outcome so dramatically exceeded the expectation.

The AI assistant does the opposite. It makes the prediction of success near 100%. I give it a problem; I expect a solution. When it delivers, the outcome matches the prediction. No error, no surprise. No rush.

Struggling and cognitive work

The AI isn't just "writing code" (or as some call it, generating slop). It's replacing the entire feedback loop of manual debugging that creates the potential for reward. It removes the intermediate steps, the struggle, the cognitive work that forces a deeper understanding of the system.

In essence, it removes everything that makes the eventual success feel like a victory. Think about the process of debugging a failing test without an AI:

$ mix test test/my_app/calculator_test.exs:12

  1) test calculates the correct tax (CalculatorTest)
     test/my_app/calculator_test.exs:12
     Assertion with `==` failed
     code:  assert Calculator.calculate(order) == %{total: 120.0, tax: 20.0}
     left:  %{total: 120.0, tax: 0.0}
     right: %{total: 120.0, tax: 20.0}
     stacktrace:
       test/my_app/calculator_test.exs:14: (test)

My tax is 0.0. It should be 20.0. Why? My first hypothesis is that the tax rate is wrong. I'll inspect the rate being applied.

# lib/my_app/calculator.ex
def calculate(order) do
  rate = get_tax_rate(ordershipping_address)
  IOinspect(rate label: "Applied tax rate")
  # ...
end

I run the test again. The console shows Applied tax rate: 0.0. The rate is zero. Now, why is the rate zero? I have to trace get_tax_rate/1. This process of hypothesis, investigation, and feedback continues—sometimes for minutes, sometimes for hours—until I build a mental model of the code, find the flawed assumption, and fix it.

That is all gone with AI assistance. It eliminates the friction. And while much of that friction is just wasted time waiting for slow tests or deployments, some of it is useful cognitive work that forces a deeper understanding of the system.

Dulling of expertise

Aside from the dopamine loss, outsourcing the cognitive work to AI has more serious and long-term consequences. As developers, we are constantly building and refining our mental models of the systems we work on. This is how we become experts.

But now we are outsourcing that cognitive work to AI. We are no longer forced to build and refine our mental models. We are no longer forced to understand the systems we work on. We are no longer forced to think critically about the code we write.

There is an interesting analog in the research on GPS use and spatial memory. A 2020 study tracked the lifetime GPS habits of 50 drivers and found that the more someone relied on GPS, the worse they did at spatial memory when they had to navigate on their own. Retested three years later, the heaviest GPS users showed the steepest decline in the hippocampal-dependent memory that builds a mental map of a place.

There is not a lot of research on the effects of AI-assisted coding on cognitive work, but it is reasonable to assume that the same effect is happening. In the 2023 study "Grounded Copilot: How Programmers Interact with Code-Generating Models" the authors watched twenty programmers work with an AI assistant and found the interaction was bimodal. In acceleration mode the developer already knows what to write and uses the model to get there faster; in exploration mode they are unsure how to proceed and use it to feel out the options.

In both modes, a large part of the work becomes reading and validating what the model suggested rather than writing it from scratch.

A 2025 survey of 319 knowledge workers found the same pattern outside of coding. The more people trusted the AI, the less critical thinking they reported doing; the more they trusted their own judgment, the more they did. The effort that stayed had shifted toward verifying the output, integrating it into the task, and supervising the result instead of producing it.

In effect, the developers stop being the sole author and become the editor/reviewer of the AI's output. I've noticed a similar change in my own work. My time is now spent less on "how do I solve this?" and more on "is this the right solution?" or "how does this correct solution fit into the broader system?". This is definitely a change in the way we work.

Where does this leave us?

Based on all the above, it is not unfair to say that AI is drastically changing the software industry and what it means to be a developer. And it is impossible to predict how much more things will change as these tools keep evolving, and as people learn new ways to work with them.

I expect that the next few years will be a period of rapid change and adaptation. The tools will get better, the workflows will evolve, and the skills required to be a successful developer will shift.

As a final thought, I have found that managers, CTOs and in general people who had to do a lot of people management are having less trouble adapting to this new reality. They are used to managing people and processes, and they are used to a different reward loop, considerably more context switching, and less direct feedback.

So maybe the future of software development is not about writing code, but about managing the process of writing code. The AI is just a tool, and like any tool, it can be used well or poorly. The question is not whether AI will replace developers, but how developers will adapt to this new reality.

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

The TechBeat: 45 Agent Skills Turn Claude Into a Data Analyst That Writes SQL, Runs Stats and Builds Charts (11/29/2026)

1 Share

How are you, hacker? 🪐Want to know what's trending right now?: The Techbeat by HackerNoon has got you covered with fresh content from our trending stories of the day! Set email preference here. ## How I Built an AI Executive Assistant That Does the Work of 2.3 People By @mariankamenistak [ 14 Min read ] The real bill for an AI executive assistant: 123 automations, €464 a month, an estimated 361 hours saved, one red dashboard day, and why I kept my human EA. Read More.

Jensen Huang Affair Timeline: Every Date, Interview and Megaspeed Mention From 2024 to Now

By @cyberespionage [ 11 Min read ] Jensen Huang affair timeline: when it began, every interview since, and every time the Nvidia CEO spoke about Megaspeed and Alice Huang. Read More.

Why I Ditched Google Drive for Syncthing and Tailscale

By @nfrankel [ 8 Min read ] Tired of Google Drive sync issues? Here's how I built a private password database sync system using Syncthing, Tailscale, and Synology. Read More.

45 Agent Skills Turn Claude Into a Data Analyst That Writes SQL, Runs Stats and Builds Charts

By @dataology [ 10 Min read ] 45 agent skills that teach Claude to load data with Polars, write fast SQL, pick the right statistical test and chart results stakeholders understand. Read More.

My Claude Code Workflow: Lessons From Rebuilding a Website in Two Days

By @alexcloudstar [ 14 Min read ] I rebuilt my site on Next.js 16 with Claude Code in 2 days. The line count hides what mattered: constraints, tests, small merges, and what to build. Read More.

What Would It Take to Prove That an AI Is Conscious?

By @jroseland [ 13 Min read ] Human consciousness hacks reality; therefore, AI must demonstrate the ability to hack reality to prove its consciousness. Read More.

A Practitioner's Field Guide to Marketing Engineering

By @kristinavislianska [ 10 Min read ] What is marketing engineering? A practitioner’s guide to the AI systems that do marketing work: the 5-layer loop, real cases, and how to become one. Read More.

Agents Are Not the Answer. Engineering Is.

By @renanb [ 27 Min read ] I thought the problem was the model. It was the config. How to engineer rules, skills, hooks and subagents around a coding agent, and test them like software. Read More.

The 20 Best Local LLMs of 2026: A Complete Guide for Enterprises and Power Users

By @thomascherickal [ 76 Min read ] Run frontier AI on your own hardware. The 20 best local LLMs for a 2 TB Mac Studio cluster and 64 GB rigs, with quants, budgets and uncensored builds. Read More.

AI Can Now Read and Rewrite Neural Network Weights. Here's Why It Matters

By @thomascherickal [ 29 Min read ] Weight-Space Programming is a paradigm shift for AI engineering and the key discovery that leads to RSI and potentially even AGI. Read More.

The AI-Native Organization: Smaller Teams, Faster Execution, Fewer Roadmaps

By @adityavithaldas [ 7 Min read ] How Anthropic, Ramp, Shopify, Meta and Linear are organizing product and engineering teams for 2027, and what it means for yours. Read More.

178 Organizations Served Malware Through Optimizely. What Have the Companies Said?

By @cyberespionage [ 29 Min read ] 178 organizations served malware through compromised Optimizely scripts. From CNN to Zoom and Salesforce, here’s what happened and how companies responded. Read More.

The HackerNoon Newsletter: Why Your NumPy Array Changed After Preprocessing (Views vs Copies in ML) (11/15/2026)

By @noonification [ 2 Min read ] 11/15/2026: Top 5 stories on the HackerNoon homepage! Read More.

Building MCP Servers for My Own Products: Introducing the Workflow

By @sammii [ 4 Min read ] Model Context Protocol exposes your product's API as tools Claude can call directly. Read More.

DeepSeek's Super-Agent Moves the Attention Bottleneck From Your Feed to Your Agents

By @doomscroll [ 8 Min read ] DeepSeek's Super-agent essay says human attention, not model capability, now limits multi-agent work. Is it an obituary for the attention economy? Read More.

WiCi Infer Runs 800B-Parameter AI Models on a Laptop by Streaming Them From the SSD

By @sarahevans [ 4 Min read ] WiCi Infer is a free desktop app that runs 800B-parameter AI models on Macs and PCs by streaming weights from the SSD. Here is how it works and how fast it is. Read More.

Matt Pocock's 39 Agent Skills Make Your AI Grill You Before It Writes Code

By @userstory [ 4 Min read ] Matt Pocock, creator of Total TypeScript, publishes 39 MIT-licensed agent skills that make the AI interview you before it builds. i Read More.

I Moved my Claude Code Workflow Scripts Into Skills Any Agent Harness Can Run

By @nodge [ 10 Min read ] Claude Code workflows can't ask you a question mid-run and are tied to one vendor. I moved mine into Agent Skills that run in any agent harness. Read More.

The HackerNoon Newsletter: If an AI Agent Commits a Cybercrime, Who Goes to Jail? (11/17/2026)

By @noonification [ 2 Min read ] 11/17/2026: Top 5 stories on the HackerNoon homepage! Read More.

Is AI Really Creating New Jobs? Data From 12 Countries Suggests Otherwise

By @mariascales [ 20 Min read ] Outside engineering, an AI title is a familiar job with one added duty: bringing AI into how a company works. 12 countries, July to October 2026. Read More. 🧑‍💻 What happened in your world this week? It's been said that writing can help consolidate technical knowledge, establish credibility, and contribute to emerging community standards. Feeling stuck? We got you covered ⬇️⬇️⬇️ ANSWER THESE GREATEST INTERVIEW QUESTIONS OF ALL TIME We hope you enjoy this worth of free reading material. Feel free to forward this email to a nerdy friend who'll love you for it. See you on Planet Internet! With love, The HackerNoon Team ✌️

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