Urgent.News

What's breaking now, across hundreds of outlets.

Tech

I writes code fast, so I use skills to build the gates that catch the bugs unit tests miss

Why green unit tests stopped giving me confidence When a coding agent can generate a new component or reactive helper in 20 seconds, writing code is no longer the bottleneck. The bottleneck is proving that the code holds up under cases nobody thought to write an example test for. When I built the micro-signal runtime and protocol adapters for @wcomp/elementum , all 200+ unit tests were green and…

When coding speed makes writing code no longer the bottleneck, proving code holds up under untested cases becomes crucial. The micro-signal runtime and protocol adapters for @wcomp/elementum had 200+ unit tests with 95%+ line coverage, passing all happy paths and regression tests. However, complex scenarios like two signals updating inside a batch() across an arbitrary dependency graph, a subscriber throwing during a flush, or an async fetcher reading its own state remained unaddressed by example-based unit tests.

To address this, a 4-skill workflow was introduced: spec, plan, implement-plan, and formal-verification. The spec skill defines measurable success criteria, non-goals, and state boundaries before any implementation begins. The plan skill turns the spec into a checklist with explicit invariants and verification commands. The implement-plan skill executes the approved plan step-by-step with tight feedback loops.

Finally, the formal-verification skill targets the 5% of code where silent bugs are most damaging, generating an exhaustive verifier for reactive graphs, state machines, retry loops, and untrusted input parsers. Running formal-verification against @wcomp/elementum produced a zero-dependency Node script that checks 6,162 states and graph topologies in under a second.

This zero-dependency verifier caught two real bugs in the micro-signal runtime: a throwing subscriber inside batch() silently dropping updates and an async fetcher creating a self-subscription loop leading to endless re-fetches. These bugs were not caught by normal usage or existing unit tests. To implement this in your own repo, install the skill pack globally, pick the module in your repository that would hurt most if it failed silently, run formal-verification on it, and wire the generated script into CI alongside npm test.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

I built a waitlist for Calendly that works on the free plan

Calendly needs a waitlist and it's been asked for since 2024! When a client cancels, that slot usually just sits empty, unless the coach or tutor happens to remember who wanted an earlier time.

  • Ray developed NextUp, a waitlist solution for Calendly's free plan.
  • NextUp integrates with Calendly, allowing clients to view and select available appointment times.

Adding SSE Live Updates Logged Out Users With Multiple Tabs: Fixing the Refresh Token Race

Everything worked until we shipped live updates We added live updates to our app with Server-Sent Events (SSE). When someone approves a request, every other user sees it right away, with no page…

  • Users experienced logout when opening app in multiple tabs with SSE live updates.
  • Keycloak's refresh token rotation invalidated old tokens during simultaneous refreshes.
  • Fix implemented using Web Locks API to ensure single token refresh per tab.

A blog post could run commands on your laptop through MCP Inspector. What localhost doesn't protect

This is the request Oligo Security used to show CVE-2025-49596: http://0.0.0.0:6277/sse?transportType=stdio&command=touch&args=%2Ftmp%2Fexploited-from-the-browser Port 6277 is where MCP Inspector's…

  • Attackers can run processes on laptop via MCP Inspector proxy.
  • Proxy listens on port 6277 by default, no token needed before v0.14.1.
  • MCP Inspector patched vulnerability in v0.14.1 with session token and Origin header check.

More from Tuesday, 1 December 2026 →