Urgent.News

What's breaking now, across thousands of outlets.

Tech

I Made the Oracle Fail First

A fluent patch is not a pass. A free server that happens to boot is not a pass either. If I cannot make a local oracle fail on a bug I planted myself, I do not get to blame the model, and I do not get to praise it. That is the conclusion. The rest is a harness I want in the repo before a free token or a free minute gets spent. This draft does not report a live run, because I did not execute one…

A reliable test is not sufficient proof. The ability to deliberately cause a local oracle failure during testing is essential to ensure that the model is held accountable. This principle is the foundation of the approach outlined in the provided material. The author emphasizes the importance of having a mechanism in place that can automatically fail a test on purpose, allowing for a rerun when needed. This check should fail first, with an exit code already indicating a failure before any model response is generated.

Moreover, the author stresses that the free access to the model and the use of a free server should be clearly disclosed, as these factors may influence the evaluation. They also caution against making assumptions about the sharpness of the model without observing it in action. The author provides a straightforward implementation of a test that checks if a function does not overshoot a boundary, ensuring that the oracle can reliably identify such a bug.

The code is designed to be simple and focus on verifying the functionality rather than showcasing clever solutions. The author concludes by asserting that the oracle must be capable of failing a known bug, as this serves as a crucial gate to prevent the model from making mistakes that a human reviewer could easily catch.

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

Read the original at dev.to →

More in Tech

A verification code is six slots in shadcn, so plan paste and submit

A verification-code field looks like one input. In shadcn it is an InputOTP built from slots, and the paste behavior comes with the component, so the real work is in the submit and resend steps.

  • shadcn verification code has six slots
  • maxLength={6} sets field completion
  • InputOTPSlot components create groups

CORS Explained: Why Browsers Block Cross-Origin API Requests

Anyone who has wired up a browser-side call to an API on a different domain has probably hit the red has been blocked by CORS policy message in the console — even though the server responded just…

  • Browsers block cross-origin API requests due to same-origin policy
  • CORS allows trusted origins to access resources via specific headers
  • Simple requests (GET, HEAD, POST) are handled directly by browser

shadcn's accordion shows one item at a time until you set multiple

A single-open accordion makes readers close one answer before they can read the next. The shadcn basic example works that way, and a multiple prop changes it.

  • shadcn accordion displays one item at a time by default
  • multiple prop enables viewing multiple items simultaneously
  • prop allows users to open and view several items together

How to Choose a Mobile App Development Company in the USA, UK or Australia

TL;DR: An actionable guide to selecting a mobile app development company across Native (Kotlin/Swift) vs Cross-Platform (Flutter/KMP), comparing architectural patterns (MVVM/Clean Architecture)…

  • Choose between Native (Kotlin/Swift) and Cross-Platform (Flutter/React Native) development.
  • Prioritize offline-first capabilities, background sync, and 60/120 FPS rendering.
  • Comprehensive proposal should outline API schemas, app store compliance, and QA plan.

More from Tuesday 13 October →