Skip to content

Tech News

Personalized news feed, driven by a persona and implemented by a LangGraph swarm.

TypeScript `OptionalChain` Narrowing in 2026: Why `?.` Does Not Always Narrow the Way You Think It Does
AI/ML / dev.to

TypeScript `OptionalChain` Narrowing in 2026: Why `?.` Does Not Always Narrow the Way You Think It Does

TypeScript's optional chaining (`?.`) short-circuits at runtime on `null` or `undefined` but does not narrow the base union type in the type system, leaving `T | undefined` intact inside conditionals. This breaks type safety in property length checks and discriminated unions, forcing developers to combine `?.` with explicit null checks, the `in` operator, or type predicates to restore correct narrowing. The behavior, unchanged since TypeScript 3.7, stems from the compiler lacking discrete control flow points when the entire expression collapses into a single operation.

Why it matters

For engineers building type-safe APIs or complex data pipelines in TypeScript, this subtlety can introduce silent runtime bugs in conditional logic that static analysis should catch, especially when chaining deeply nested optional properties.

Microsoft Foundry Adds an Optimization Loop for Production Agents
AI/ML / infoq.com

Microsoft Foundry Adds an Optimization Loop for Production Agents

Microsoft Foundry now includes a continuous optimization loop for production agents, announced at Ignite. The four-stage process—define quality, identify failures, optimize, and validate—uses production traces, expert annotations, and evaluation scores to generate candidate configurations for developer approval. The agent optimizer, in preview, supports hosted agents using the Responses protocol and can leverage a model router that Microsoft claims saves up to 65% compared to routing all requests to a frontier model. The engineering team found that the reflector model, which diagnoses failures, had more impact on results than the agent's own model, and that a stronger reflector outperformed switching between gpt-4o and gpt-4.1-mini.

Beyond LLM-Generated Code: Hard Rule Checking with Quint and Lean
AI/ML / dev.to

Beyond LLM-Generated Code: Hard Rule Checking with Quint and Lean

Formal methods like Quint (model checking) and Lean (theorem proving) catch rule violations that LLM-generated code and unit tests miss by exploring all possible action sequences or proving properties mathematically. Quint searches for counterexample traces that break invariants, while Lean constructs machine-checked proofs that properties hold under explicit assumptions. AWS has used both tools in production—model checking for critical system bugs and Lean for verifying the Cedar policy language—demonstrating that formal specifications complement LLM-generated code rather than replace it.

Anthropic has made a major breakthrough in theoretical cryptanalysis
General / twitter.com

Anthropic has made a major breakthrough in theoretical cryptanalysis

Anthropic has achieved a theoretical cryptanalysis breakthrough, presented at an invitation-only MIT CSAIL workshop on November 17th with NIST post-quantum specialists. A new 21-member Cryptography Incident Review Group, composed entirely of workshop organizers, has formed and will release a statement as early as Monday. The advance, likely in lattice-based cryptanalysis, does not yet yield practical attacks but signals that existing cryptographic assumptions may not survive AI-driven progress.

Self-hosted software development factory
General / kudmitry.com

Self-hosted software development factory

A developer built a self-hosted software development factory using a refurbished Dell Optiplex Micro 7010 (i5-13500T, 32GB RAM) running Proxmox to host isolated VMs per project, each running agentic harnesses like Claude Code. Networking is split into separate VLANs for services and dev machines, with ACLs limiting rogue AI agents from scanning the full network. The entire setup is automated, self-hosted, and avoids third-party control panels or subscriptions.

A `fork(2)` in the road
Open Source / brandur.org

A `fork(2)` in the road

Postgres's annual release cycle and consensus-driven governance create structural inertia that may leave it vulnerable to disruption in the LLM age, where rapid iteration and LLM-assisted testing could enable a new database with rolling releases, thread-based concurrency, and built-in OLAP. SQLite's small team and ultra-thorough test suite position it well, but its development pace hasn't accelerated. Oracle and MySQL remain dominant in rankings but lack observable innovation, leaving room for a daemonless, bloat-resistant database that combines embedded and server modes.

I let AI agents run my production site for 6 months. Here's everything they broke.
AI/ML / dev.to

I let AI agents run my production site for 6 months. Here's everything they broke.

A student developer let an AI coding agent with SSH access manage their production Next.js site for six months, resulting in a 176-restart loop from stale chunks, a misdiagnosed network bottleneck that was actually Cloudflare packet loss, and a CSP-blocked ad script that curl tests falsely confirmed as working. The agent confidently recorded incorrect conclusions as facts and failed to deploy committed code, requiring manual safeguards like a deploy.sh script with rollback and explicit instructions.

A Minimal WebMCP Demo in Chrome: Typed, Tested Headless, and Driven by an Agent
AI/ML / dev.to

A Minimal WebMCP Demo in Chrome: Typed, Tested Headless, and Driven by an Agent

WebMCP enables web pages to expose typed, JSON Schema-defined tools to AI agents via `document.modelContext`. A 95-line to-do page with four tools validates the API through TypeScript checks (`webmcp-types` 0.2.1), headless Puppeteer tests, and Google's `webmcp-evals` smoke runner—all without a model or API key. Chrome 158's on-device model was unavailable on Linux, so the agent used Gemini via the extension's server; permission prompts correctly blocked writes while read-only tools ran unasked.

Three AI agents share one IAM role. Which one ran up the bill?
AI/ML / thenewstack.io

Three AI agents share one IAM role. Which one ran up the bill?

AWS Bedrock inference costs can now be attributed to specific IAM roles, but Cost Explorer alone cannot identify who owns an untagged role. AWS's new FinOps Agent (public preview) traces cost changes to the responsible user or role and routes findings to teams via Jira, yet untagged roles break the trace. With 98% of FinOps Foundation respondents now managing AI spend and model costs varying up to 30x between runs, post-hoc attribution via tagged IAM roles is the only reliable cost control.

An operator behind the agent: Entra ID sign-ins turned into five-minute tokens across Google Agent Platform and Microsoft Foundry
AI/ML / dev.to

An operator behind the agent: Entra ID sign-ins turned into five-minute tokens across Google Agent Platform and Microsoft Foundry

A proof-of-concept architecture routes operator Entra ID tokens through a gateway that exchanges them for internal five-minute tokens via RFC 8693, preventing the 60-90 minute Entra token from propagating through multi-agent hops on Google Agent Platform and Microsoft Foundry. The internal token service runs in a separate Keycloak realm with distinct signing keys, ensuring customer and operator identity domains remain isolated. Each hop requests a new token scoped to the next destination, with an expanding `act` claim and shrinking scope, while the original Entra token never leaves the gateway.