Painel de Notícias

Tecnologia

7045 posts · 26 feeds · tópicos e interesse por Jev

Filtros
dev.to

Cron Monitoring Explained: 3 Healthchecks and Custom Metrics API Trade-offs

TL;DR: Use a heartbeat when the only question is whether a scheduled job arrived on time. Use a custom metrics API when a healthtech experiment must be compared across EU and US tenant cohorts and rolled back without guessing. For that second case, keep the heartbeat anyway: it catches silence, while outcome counters explain whether the run was safe. Three gates make the decision defensible: freshness, completion, and cohort outcome. The tempting design is one success ping at the end of a Node.js cron handler. It is wonderfully small. It also compresses every tenant, region, and experiment arm into one bit. A successful ping can coexist with skipped tenants or an unhealthy treatment cohort, while a missing ping cannot explain whether the scheduler failed, the worker stalled, or the reporting call was lost. For a solo builder, the useful question is not which monitoring category wins. It is how little telemetry can preserve a safe rollback decision. The answer is two signal paths with different jobs, plus a rule that refuses to treat missing data as success. A heartbeat is a dead-man signal. The monitor expects a check-in inside a known window and alerts when no check-in arrives. That is a clean detector for a process that never started or never finished. It needs no knowledge of model responses, tenant identifiers, or experiment assignment. But this job processes tenants in two residency cohorts, eu and us, while an AI-runtime change is exposed to control and treatment arms. Rollback safety depends on what happened inside those partitions. One terminal ping cannot distinguish completed tasks from attempted tasks with partial failures. Nor can it show that one cohort produced enough valid outcomes while the other did not. Silence matters. Shape matters too. A custom metrics endpoint can accept counters keyed by a deliberately small set of dimensions: run, region, arm, and outcome. That buys decision detail, but creates responsibilities a heartbeat avoids. The emitter

InfraDev
Interesse
dev.to

Addressing Uneven Kubernetes Knowledge: Deepening Critical Areas for Platform Engineering Strength

Bridging the Expertise Gap in Kubernetes and Platform Engineering Achieving mastery in Kubernetes and platform engineering demands more than broad familiarity—it requires a strategic focus on deepening understanding in critical areas. This article dissects the gap between superficial and profound expertise, outlining a structured approach to upskilling that prioritizes internals, networking, storage, and troubleshooting. Through causal analysis and practical examples, we demonstrate how targeted learning and hands-on practice transform fragile foundations into robust expertise. Consider a DevOps engineer with five years of experience spanning Kubernetes, cloud infrastructure, and backend systems. Despite proficiency with tools like Helm, Terraform, and ArgoCD, their knowledge remains superficial in areas such as Kubernetes internals, low-level networking, storage mechanisms, and troubleshooting. This uneven expertise creates a structural vulnerability akin to a building with a wide base but inadequate support beams—capable of standing under normal conditions but prone to collapse under stress. Kubernetes Internals and Control Plane: Without understanding components like the API server, etcd, or scheduler, practitioners cannot predict or mitigate failure modes. For instance, an overloaded API server triggers request throttling, delaying pod deployments. The causal chain: high request volume → API server overload → throttling → delayed pod scheduling → service latency. Low-Level Networking: Misconfigured CNI plugins or IPAM lead to network partitioning. For example, incorrect IP allocation in Calico causes packet drops due to misrouted traffic → network isolation → pod unreachability → application downtime. Storage and CSI: Inadequate grasp of PersistentVolume claims or CSI drivers risks data corruption. A misconfigured StorageClass initiates volume detachment → I/O errors → application crashes → data loss. Troubleshooting: Superficial troubleshooting skills leave iss

InfraDev
Interesse
dev.to

How to stop hand-maintaining monorepo CI path filters!

Monorepo CI has one recurring chore: every workflow carries a paths: list that someone has to keep in sync with the code. Add a shared library, forget to add it to three filters, and a breaking change sails through CI untested. dynamic-monorepo is a GitHub Action that works out which projects a push or pull request affects, including projects that depend on what changed. It reads the manifests you already have (package.json workspaces, go.mod, Cargo.toml, pyproject, pom.xml, Gradle, .csproj, Dockerfile, Helm), so most repos need no config at all! Example 1: All separate workflows into one rajadilipkolli/spring-boot-microservices-series-v2 is a Spring Boot microservices showcase with eight services. Each service had its own near-identical workflow and its own paths: filter jobs: plan: runs-on: ubuntu-latest outputs: services: ${{ steps.plan.outputs.build }} has_services: ${{ steps.plan.outputs.has_build }} steps: - uses: actions/checkout@v4 - uses: Continuous-Actions/dynamic-monorepo@v1 id: plan build: needs: plan if: needs.plan.outputs.has_services == 'true' strategy: matrix: service: ${{ fromJSON(needs.plan.outputs.services) }} # ...same build steps as before, written once The result: • 9 files changed, +73 / −467 lines. • Adding a service is one entry in config, not a copied workflow. • Docs-only changes build nothing. • A dependency bump in one service builds just that service. Example 2: Keep your workflows, add a safety net Not every team wants to restructure CI. uni-helper/create-uni kept its existing per-package workflows. Running the audit on main found 11 problems across 4 workflows. For example, packages/core depends on the workspace packages @create-uni/shared and @create-uni/config, but its test workflows only watched packages/core/**. A PR that touched only the shared package never ran the core tests. • fixed the filters, with 12 lines, all inside on.*.paths • added a small audit workflow so the filters can't drift again The audit compares every workflo

DevInfra
Interesse
dev.to

CVE-2026-80097: The Authenticator App Is a Credential Store, Not Just a Prompt

CVE-2026-80097: The Authenticator App Is a Credential Store, Not Just a Prompt Microsoft Authenticator was the control most organisations reached for once they moved past SMS codes. CVE-2026-80097 concerns improper authentication in that app, and it is worth reading carefully rather than filing under "mobile bug". NVD describes CVE-2026-80097 as improper authentication in Microsoft Authenticator allowing an unauthorized attacker to elevate privileges locally. The weakness is CWE-287, and the CVSS base score is 8.6. It was published on 8 September 2026, and Microsoft's update guide is the vendor reference. Microsoft Authenticator holds far more than one-time codes. It stores passwordless credentials, push notification registrations, account metadata for every identity the user has linked, and it acts as a broker for sign-ins through the Microsoft identity platform. On a shared or supervised device it can span multiple accounts. Enforce device passcodes and biometrics on any device that holds an authenticator app, and require re-authentication at the OS level rather than inside the app alone. The app's own lock screen is a convenience feature; the platform lock is the control. Mobile applications sit outside most software inventory, which is the awkward part. The practical approach is to use whatever device management is in place to report installed application versions on managed devices, and to close the gap by policy on unmanaged ones: require that the app be updated within a defined window, and treat out-of-date authenticator builds the same way as an unpatched VPN client. NVD record for CVE-2026-80097: https://nvd.nist.gov/vuln/detail/CVE-2026-80097 Microsoft update guide entry: https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-80097

SegurançaMobile
Interesse
dev.to

WebRTC Voice Lobby Telemetry: Setting Replay Boundaries for Disconnected Players

Short answer: replay connection and delivery metadata, not recorded voice, and stop replay at the point where a player could mistake an old event for the current lobby state. In a gaming voice lobby, this boundary is more important than collecting every possible metric: a reconnecting client needs a trustworthy state transition, while an operator needs enough evidence to explain why audio or membership lagged. The WebRTC Recommendation defines the browser-side statistics surface for peer connections, transports, candidate pairs, codecs, inbound and outbound RTP streams, and related objects. Those stats are snapshots, though. They are not an event log and they do not promise that a later read can reconstruct every earlier moment. That distinction drives the storage design here. Start with two timelines. The live timeline is the lobby as players experience it: joined, muted, speaking, disconnected, and joined again. The diagnostic timeline is what the service can prove later: signaling messages, membership changes, selected candidate pair, packets received, jitter, and the reason a peer connection ended. They overlap, but they are not interchangeable. For each timeline, define a replay horizon and a trust level. A membership event can be replayed as an authoritative fact if it was committed by the lobby service. A client-side audioLevel sample is a measurement with a clock and a reporting interval; it is useful evidence, not a command to restore state. Treating both as durable truth is how a reconnect UI ends up showing a player as speaking after they have already left. I use a small envelope for every stored signal. It carries a monotonic sequence within the lobby, a server receive time, the producer clock when available, and a schema version. The sequence gives a deterministic order for state changes. The two clocks let an investigator separate network delay from a bad client clock. The version prevents a decoder from silently assigning new meaning to old fields. Ke

InfraDev
Interesse
dev.to

x402 Tutorial: Pay-Per-Call APIs for AI Agents, No API Key Required

x402 Tutorial: Pay-Per-Call APIs for AI Agents, No API Key Required Every API your agent uses usually starts the same way: make an account, verify an email, pick a plan, copy a key into an environment variable, and hope nobody commits it. That's tolerable for one service. It falls apart once an agent wants to pick its own tools at runtime, because the agent can't sign up for things. x402 removes that step. The server answers an unpaid request with HTTP 402 Payment Required and a machine-readable price. The client signs a USDC payment and retries the same request, and the server serves it. There's no account, no key and no monthly plan, just a price on each request. This guide works through it hands-on against a live service. We'll read a real 402 challenge with nothing but Python's standard library, pay for calls from TypeScript with the standard x402 v2 client, put hard spend limits around it, and handle errors without getting charged for failures. The examples use the AgentSearch web tools on the Pocket Agentic Portal: Web Search, Web Extract and Web Render, at $0.005 per call each. x402 builds on a status code HTTP reserved decades ago and never really used. Version 2 of the protocol, which the Pocket Agentic Portal speaks, works like this: Request. Your client sends a normal request, for example POST /v1/search with a JSON body. Challenge. The server answers 402 and puts the payment terms in a PAYMENT-REQUIRED header (base64-encoded JSON). The portal also repeats them in the response body. Pay. Your client picks one of the offered options, signs a USDC authorization for that amount, and retries the request with a PAYMENT-SIGNATURE header. Serve. The server verifies the payment, serves the request, and returns a receipt in a PAYMENT-RESPONSE header. Networks are named with CAIP-2 IDs, so Base mainnet is eip155:8453. The older v1 header names aren't accepted by the portal, so use a v2 client. You don't need a wallet to see what an endpoint costs. An unpaid request

IADev
Interesse
dev.to

We Tested 4 AI Code Review Tools on the Same PR and The Results Were Surprising…

A case study from six rounds of testing Codzee against Greptile, CodeRabbit and CodeAnt We build an AI code review tool called Codzee. At some point we realized we couldn't answer a simple question: is it actually good? Our demos looked great, and so did every competitor's. Every landing page promises "context-aware" and "low-noise" review. None of that tells you what happens when a tool meets a real pull request with a bug it can't find by pattern matching. So we stopped reading feature lists and ran an experiment. We built pull requests with bugs planted in them, gave the same PR to our tool and three competitors, and checked what each one caught. We've now done this six times, and each round was harder than the last. This is the story of round six, the round that taught us the most, and the first one Codzee won. Because we were testing our own product, we didn't trust ourselves. We set two rules: The answer key comes first. We wrote down every planted bug before the pull request was opened, so nobody could redefine what counts as a "catch" afterward. Publish the bad news too. If our tool stumbled, it goes in the write-up. Here's the setup for round six: PR #7 in a test repository Size 192 lines across two modules Planted bugs 13 Cross-file bugs 6 Domain Guest billing: invoices, payments, tax, cancellations Tools Codzee, Greptile, CodeRabbit, CodeAnt How we scored Pulled every finding from the GitHub REST API and matched them to bugs by hand Qodo was excluded from this benchmark for billing reasons. Most AI review demos show a tool catching a bug in one function. That's easy mode, so we designed round six around something harder. The two modules were tied together by a written contract. It said things like: The invoice total is pre-tax. The balance reads a key called amount_pence. The due date is a date, not a datetime. Invoice numbers are unique for life. Six of our 13 bugs were cross-file defects: each module looks correct on its own, and the error exists only i

IADev
Interesse
dev.to

Stop Instagram and TikTok labelling your Photoshop and Premiere exports as AI

Quick fix: the label comes from Content Credentials (C2PA) that Photoshop and Premiere Pro write into your export after a generative edit, and export settings don't switch them off. Check every file as it lands in your export folder and remove those credentials before posting: below is a free script that does it, and an app that does it for you on Mac and Windows. If you edit for clients or post every day, the "AI info" problem isn't one photo. It's every export. One Generative Fill in Photoshop or two seconds of Generative Extend in Premiere Pro, and the file you deliver carries Content Credentials (C2PA) that Instagram, Facebook, TikTok, YouTube and LinkedIn read and turn into a label. Adobe's own FAQ says that when its generative tools create or modify content, C2PA metadata is attached automatically and can't be switched off for that content. Photoshop's Export As → Metadata: None controls camera and copyright info, not that record. So the dependable place to check is the exported file, right after it lands in your export folder. Here's how to automate that check yourself, and the gotchas that make it harder than it looks. Two markers do almost all the labelling: C2PA manifest: JUMBF boxes labelled c2pa (in JPEG they sit in APP11 segments; in MP4/MOV in a top-level uuid box). IPTC digital source type: Iptc4xmpExt:DigitalSourceType set to trainedAlgorithmicMedia or compositeWithTrainedAlgorithmicMedia. A quick check for one file: c2patool "export.jpg" >/dev/null 2>&1 && echo "C2PA manifest present" exiftool -q -q -if '$XMP-iptcExt:DigitalSourceType =~ /TrainedAlgorithmic/i' -p '$FileName: AI source tag' "export.jpg" #!/usr/bin/env bash # watch-exports.sh: flag new exports that carry AI metadata # needs: brew install fswatch exiftool c2patool DIR="${1:-$HOME/Exports}" settled() { # wait until the editor has finished writing local f="$1" a b while :; do a=$(stat -f %z "$f" 2>/dev/null) || return 1 sleep 2 b=$(stat -f %z "$f" 2>/dev/null) || return 1 [[ "$a" == "$b"

IADev
Interesse
dev.to

I gave my text-to-SQL agent a business glossary. One version helped a lot, one did nothing.

A text-to-SQL agent sees table and column names. It does not know that "revenue" in your company means billing_invoice.total_net, only for invoices with status = 'issued'. So it guesses, and the guess runs without errors and returns the wrong number. I added business terms to schemagate 1.2.0 (open source, Apache-2.0) and measured whether they help. Short answer: a complete glossary helps a lot. A glossary learned from other people's questions did not help at all. Here are both results. cat.concept( "revenue", synonyms=["turnover", "sales"], maps=["billing_invoice.total_net"], filter="billing_invoice.status = 'issued'", ) When a question uses "turnover", two things happen: billing_invoice is pulled into the few tables the model sees, even if no table name looks like "turnover". A line goes into the prompt, above the DDL: -- What the business terms in this question mean: -- revenue (turnover): billing_invoice.total_net; rule: billing_invoice.status = 'issued' Terms can also have broader and narrower terms ("net revenue" is a kind of "revenue"), which pulls in related tables at half weight. You don't have to type them by hand. You can import them from a dbt semantic manifest, a Snowflake semantic model, or a CSV export from Collibra or Purview: schemagate ontology import semantic_manifest.json --from dbt --url $DB --config catalog.json --save Or learn them from past (question, SQL) pairs: if "refunds" keeps showing up in questions whose SQL reads billing_credit_note, that becomes a suggested term. schemagate's main job is hiding tables and columns a caller may not read, before the model sees anything. A glossary could leak them right back: "pay means hr_compensation.annual_amount" tells a payroll clerk that the column exists. So a meaning line is dropped for any caller who can't see every table and column it names. The term still exists. That caller just never gets its line. BIRD dev, 201 questions, Claude Sonnet 5, execution accuracy, the hint text withheld: Setup Ac

IADev
Interesse
dev.to

Beyond Dictionaries: Modern Python Data Architecture with Frozen Dataclasses & Slots

Modern Python development has evolved significantly beyond raw dictionaries and ad-hoc data structures. When architecting high-throughput backend microservices or memory-sensitive pipelines, data models must enforce strict type safety, runtime immutability, and ultra-lean memory footprints. Originally published on Notify.show. By default, every standard Python object allocates a dynamic __dict__ to store instance attributes. While this offers maximum flexibility, it incurs severe memory overhead: import sys class DynamicUser: def __init__(self, user_id: str, email: str): self.user_id = user_id self.email = email user = DynamicUser("usr_123", "admin@notify.show") print(sys.getsizeof(user.__dict__)) # ~104 bytes per instance! Across millions of in-memory representations, this dynamic dictionary overhead rapidly exhausts cache locality and triggers excessive Garbage Collection (GC) pauses. By combining __slots__ with @dataclass(frozen=True, slots=True), Python eliminates __dict__ entirely, replacing instance attributes with fixed C-level array pointers: from dataclasses import dataclass @dataclass(frozen=True, slots=True) class OptimizedUser: user_id: str email: str opt_user = OptimizedUser("usr_123", "admin@notify.show") # Memory footprint reduced by over 65%! Immutability Invariant: Accidental mutation raises FrozenInstanceError. Hashability: Frozen instances are natively hashable, enabling zero-cost caching and set indexing. Cache Locality: Fixed memory offsets maximize CPU L1/L2 cache hit rates during iteration. Explore the complete benchmarks, profiling analysis, and full architectural breakdown on Notify.show.

Dev
Interesse
dev.to

Stuck Freight PDF Jobs: Debugging Progress Polling with Auditable Terminal States

Short answer: put a finite deadline around polling, model success and failure as explicit terminal states, and preserve an append-only event trail for every transition. For scanned freight documents, also bind the searchable output to the input digest and signature evidence. That is the least complex design that can distinguish a slow renderer from a lost job without waiting forever or weakening the audit trail. Start with this decision table. It separates recovery choices by what the evidence says, rather than by how long an operator has been staring at a spinner. Observation Likely boundary Pick this action Evidence to retain State advances and the lease remains fresh OCR or rendering is slow Keep polling inside the caller's deadline Attempt, state sequence, timestamps State is processing, but its lease expired Worker disappeared or lost ownership Requeue with a new attempt identifier Old lease, new lease, reason Poll requests fail intermittently Status path is unhealthy Retry with bounded backoff and jitter Error class and request correlation ID The same input repeatedly reaches failed Deterministic input or processing error Stop automatic retries Input digest and structured failure code Output exists, but signature evidence does not match Integrity check failed Quarantine the result Digests, signer evidence, verification result The key rule is blunt: processing is not permission to poll forever. It is a temporary state whose owner, lease, and deadline must be observable. An asynchronous pipeline has several clocks. The API accepted the job at one time. A queue made it visible later. A worker acquired it, renewed a lease, ran OCR, assembled searchable text with page images, and committed the result. The polling client sees only a projection of those events. If that projection says processing after the worker has vanished, the client cannot infer the truth from the label alone. Picture the path in words: scanner to object store; object store to job record; job rec

Dev
Interesse
dev.to

One layout file, three outputs: building printer test pages as real CMYK PDFs with Astro

I built testpageforprinter.com, a free set of printer test sheets (color, black and white, CMYK, alignment, nozzle check, scale, photo, duplex). Most "printer test page" sites hand you one generic image. I wanted sheets that really are what they claim to be: vector, in the right color space, at the right size. This post covers the part I found most interesting to build. A test page that goes through a browser print dialog can quietly be wrong in three ways: the page is scaled ("Fit to page"), so an alignment test lies to you; colors are converted to RGB, so a "CMYK" test is not testing the cyan, magenta, yellow and black channels separately; Letter and A4 are different sizes, and a file made for one gets shrunk onto the other. An A4 sheet on Letter paper prints at about 94%, and a Letter sheet on A4 at about 97%. Each sheet is described once, in millimetres, in a single file (layouts.mjs). Three small renderers consume that description: pdf.mjs writes a real PDF with pdf-lib. Fills and strokes use DeviceCMYK operators, and the font is embedded (the standard-14 Helvetica is not embedded, so I bundle Inter at build time). svg.mjs produces the SVG used for the in-browser print layout, with a static @page size and print-color-adjust: exact. The same SVG path, rasterized from the real PDF with Poppler, gives the preview images on the pages. Because the previews are rendered from the real PDFs, what you see on screen is what prints. Every element sets an explicit color, so a CMYK sheet never contains a stray RGB operator. A build step verifies all 20 PDFs (Letter and A4 for each sheet). // layouts.mjs, simplified: one description, coordinates in mm s.qr(MG, fy, 18, `${site.url}/result/${o.id}/`); s.text(MG + 22, fy + 14.5, 'Print at 100% (Actual size). Turn “Fit to page” off.'); Print the scale sheet, measure its 100 mm bar, type the length in. The diagnosis is a pure function with no DOM: const A4_ON_LETTER = (279.4 / 297) * 100; // 94.07 const LETTER_ON_A4 = (210 / 215.

Dev
Interesse
dev.to

I Built a Full PWA Game in One Day with Claude Opus 5.5 and Claude Code (Here Is the Real Token Cost & Harness Setup)

On a Sunday, I turned a slightly silly idea into an actual game: Montanha: Zero Day, a cyberpunk platformer in the style of Mega Man X that runs in the browser and on phones, offline, as a PWA. The hero is me (Montanha), the heroine is Gle, and the villain is a giant piece of ransomware called RANSOM-TITAN. I built it together with Claude Opus 5.5, orchestrated via Claude Code and Cowork (the agentic execution mode of the Claude ecosystem). By the end of the day, the usage panel showed I had spent about half of my daily token limit. This post covers what the model promises on benchmarks, how it operated seamlessly across local CLI and cloud runtime, and what it actually delivered on a real project when guided by a central engineering harness. 👉 Play it live: tiagovilasboas.github.io/montanha-zero-day (the in-game dialogue is in Brazilian Portuguese) 👉 Source Code: github.com/tiagovilasboas/montanha-zero-day People often ask what kind of 5-page prompt was required to spin up an entire game from scratch. The reality? Almost nothing. The kickoff prompt was surprisingly concise: "Build a cyberpunk Mega Man X–style platformer game in pure JavaScript (ES modules) with canvas. The hero is Montanha (backpack jetpack, cybernetic hacking watch), the heroine is Gle, and the final boss is a ransomware virus named RANSOM-TITAN. It needs to run offline as a PWA on mobile and desktop." How can a model go from a 3-sentence prompt to 24 modular ES architecture files without derailing into chaos or hallucinated spaghetti code? The secret wasn't prompt engineering. It was Harness Engineering. Rather than dumping monolithic instructions into every conversation, my local setup is governed by a central harness core (harness-core). This harness provides continuous feedforward rules (Guides) and automated feedback loops (Sensors): Clean Architectural Boundaries: Single Responsibility Principle (SRP) per module, decoupling state, physics, rendering, input, and audio into event-driven ES m

IADevMobileGames
Interesse
dev.to

Playwright Retry Budgets Need a Failure Receipt

Retries are useful when a browser test meets a temporary network problem. They become harmful when every failure gets three more attempts with no record of what happened. A retry can turn one actionable defect into a green build that nobody trusts. For Playwright suites, I find a small retry budget and a consistent failure receipt much more useful than unlimited patience. The goal is not to eliminate retries. It is to make every retry explain itself. Imagine a signup test that creates a user, waits for an email, and completes verification. The first attempt fails because the message is delayed. The second attempt passes. CI reports green, but the suite has hidden a latency problem and may have left a user or mailbox behind. This gets harder when the fixture uses a temp mail so address or a free throwaway email. The test may be checking three systems at once: the browser, the application API, and the email provider. A generic retry: 2 setting does not tell us which boundary was unstable. Retries also multiply side effects. A test that sends an invitation, creates a payment intent, or consumes a one-time token is not automatically safe to repeat. Before increasing retries, ask whether the operation is idempotent and whether cleanup runs after a failed attempt. Otherwise the retry is a second experiment with different data, not a repeat of the first one. Start with a simple classification: Browser timing: a locator appeared late or an animation was still running. One retry can be reasonable. External dependency: an email, webhook, or sandbox API was slow. Retry only after recording the wait and response details. Product assertion: the UI showed the wrong state. Retry zero times until the failure is understood. Test isolation: another run reused data or a mailbox. Fix the fixture and retry zero times. This makes the budget a diagnostic decision. A flaky locator may deserve one controlled retry, while a failed business assertion should produce an immediate failure receip

Dev
Interesse
dev.to

Plumb: I built my friend a tutor for her own codebase, because "the AI writes the code now"

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend A friend of mine, a software engineer, asked me a question I couldn't shake: why should she keep learning when an AI agent can write the code? I didn't want to answer with a lecture, so I built her an answer instead. Plumb is a tutor for her own codebase. It doesn't write code. It makes sure she stays the person who understands it. You run tutor in a repo and it opens a chat: Before a change, describe what you're about to build ("let users mark items as favorites"). Plumb reads the real files, explains what the change touches and which patterns to follow, then asks 2–3 questions about the design choices. Each has 2–3 reasonable answers, never trick distractors. "I don't understand" is always an option. Plumb then explains the concept using her own code, and checks with one question. After the change, /review reads the diff and compares it with the decisions she made earlier: followed, changed, or not addressed. /tour walks the repo from an entry point outward, one file per stop. Skip is free. Any question can be skipped. Skipped topics come back later, at a calm moment, never as a nag. Two things matter more than any feature: Every claim cites file:lines, and Plumb checks every citation against the real file before she sees it. Wrong files, lines past the end, or lazy ranges like models.py:14-113 are struck through on screen. Every "why" is labeled. documented means a commit message or doc said so, and Plumb verifies it actually saw that commit. inferred means it's the model's reading. confirmed means she agreed. A guess is never presented as fact. What she knows, what she skipped and what she decided live in a .tutor/ folder of plain JSON files in her project, which she can open, edit or delete. That's a real, unedited session on the public FastAPI full-stack template. Waits are fast-forwarded. In order: the request is typed; the explanation streams in, with citations highlighted; two

IADev
Interesse
freeCodeCamp

How to Debug a Stuck Kubernetes Rollout with a Hands-On Lab

You update a Deployment, run kubectl rollout status, and wait. The command times out. But when you send a request to the Service, it still answers. So did the update finish? And if it didn't, which Po

InfraDev
Interesse
The Verge

Meta open sources code to let you make Muse AI gadgets

Meta now lets you make your own Muse gadgets that feature the company's new AI agent with code that the company open sourced. The company suggests projects like loading Muse on a color E Ink display to show reminders, adding it to an HDMI stick so you can display Muse on a big screen, or putting Muse on a small touchscreen device to make what looks kind of like a DIY Muse Charm. "Muse gadgets are open source devices you build yourself," Meta says. "Program an off-the-shelf ESP32 board or set up a Raspberry Pi with our SDKs, then connect Muse to your displays, buttons, sensors, actuators, and whatever else you've got lying on your workbench. … Read the full story at The Verge.

IADevMobile
Interesse
LWN

Python 3.15 released

Version 3.15 of the Python programming language has been released. Notable changes in this release include the addition of the sentinel and frozendict built-in types, the use of UTF-8 encoding by default, package start-up configuration files, as well as improvements in the experimental JIT compiler. See the "What's new in Python 3.15" article for an in-depth look at new features in this release, and the changelog for a full list of changes.

Dev
Interesse
dev.to

MCP Security: Where to Put the Authorization Boundary

An MCP tool call passes through the model, the client, possibly a proxy, and the server before anything happens. Only one of those places sees every call in structured form and is controlled by you rather than by the agent or a third party: the seam between client and servers. That is where an MCP security gateway belongs, and this page shows how to put one there. One seam: client ↔ servers server__tool: namespaced per upstream Default deny: unlisted tools refused Hash-chained: audit per decision The question Every MCP security control is really a decision about where the authorization boundary sits. The MCP security overview covers what goes wrong: broad-scope tools, poisoned tool descriptions, credentials leaking through results. This page answers the follow-up question teams ask once they accept that per-call policy is needed: where should the decision be made? Where the boundary sits What it sees Who controls it Verdict In the prompt or system message Text The model, which can be talked out of it Advisory at best Inside each MCP server Its own calls only Whoever wrote that server, often a third party Inconsistent across servers, no shared context Network or HTTP proxy Hosts and bytes; nothing for stdio servers You Misses local servers and argument meaning Gateway at the client–server seam Every routed tools/call: server, tool, arguments You, independent of agent and server The authorization boundary In-process wrapper (guard.wrap) Calls to tools you own You Use for non-MCP tools alongside the gateway The prompt is the wrong place because the same channel that carries policy also carries injected instructions. The server is the wrong place because you will run servers you did not write, each with its own idea of safety, and none of them knows what the agent did on another server a moment ago. A network proxy is the wrong place because most local MCP servers speak stdio and never open a socket, and a proxy sees a hostname, not that the tool is drop_table. The clie

SegurançaDevIA
Interesse
dev.to

An agent that reverse engineers by guessing is worse than useless

"See a feature you like. Understand how it works, down to the binary level." That is the pitch of REA, and it is the one job your coding agent could not do until now. REA (Reverse Engineer Anything) is a free, MIT-licensed MCP server plus a CLI, published on npm as rea-agents, that lets Claude Code, Codex, Cursor and a dozen other agents inspect software without its source code: disassembling native binaries, unpacking Electron bundles, reading .NET metadata, or watching a website's network traffic. You ask in plain language: Understand how search works in the Notes app, show me the evidence, and build a similar feature for my project. The agent traces the code behind the feature and returns what it found, with the evidence and the remaining unknowns attached. Analysis runs locally on your machine. At the time of writing it had 18,880 stars and 1,985 forks, and it ships at a remarkable pace: v4.1.0 on 6 October, v5.0.0 on 7 October, v6.0.0 on 8 October. If you have searched for a Ghidra MCP or an IDA MCP, you have found single-engine bridges. They work, but each has its own tool names, and none of them helps when the interesting logic lives in JavaScript, a .NET assembly or a network call. REA puts the three major native engines behind one interface. Ghidra, IDA Pro and Hopper are interchangeable providers, selected once per target, so the agent uses the same analysis tools whichever engine is underneath. Its IDA support adapts the existing open-source ida-pro-mcp server rather than replacing it. Then it goes well beyond native code. The generated tool catalog counts: 139 MCP tools in 12 families, from native disassembly to browser observation and session management 94 CLI commands that run the same workflows from a terminal, with --json output for scripting 6 guided prompts for common investigations 26 analysis providers, including Binwalk, Unblob, JADX, pwntools, mitmproxy and the Chrome DevTools Protocol The point is that a real investigation rarely stays in one

DevIA
Interesse
dev.to

Should AI be in your MVP v1, or added after the workflow works?

Seeing a lot of teams lately rush an LLM into the first version of every product. Model costs keep dropping, so it feels cheap to add. But cheap to call is not the same as cheap to get right. The rough rule I keep coming back to: If the product is basically useless without the model (doc parsing, matching, summarising messy input), it belongs in v1. Then the real work is evals and failure handling, not the prompt. If the core loop works with a person doing the step by hand for now, ship that first and add the model once you know what "correct" looks like. The tradeoff cuts both ways. AI in v1 can make early feedback noisy, because you can't tell if users dislike the product or the model output. Adding it later can mean reworking the UX around it. For regulated stuff (finance, health, compliance docs) I'd lean toward human in the loop first almost every time, just so there is a clean record of what the right answer was. For whatever you're building right now, is the AI the actual hypothesis or more of a nice extra?

IA
Interesse
dev.to

Running small-business software on a LAN: a practical checklist for an always-on VirtualBox host

Plenty of small-business tools ship as a ready-made virtual machine: import the appliance, start it, and staff open the app in a browser from any device on the LAN. The data stays in the building and nothing gets installed on workstations. The catch is that the VM is only as reliable as the box underneath it. A host that suspends, renumbers itself on the network, or loses power mid-write turns "the app is down" into a weekly conversation. Here's the checklist I'd hand to anyone setting up that host. It's Linux first (any systemd distro), with short Windows notes where steps differ. [ ] Dedicated machine. Not someone's daily laptop. A plain desktop with an SSD and wired Ethernet is ideal. [ ] Enough RAM for host plus guest. Check the vendor's sizing and add headroom for the host OS. [ ] Hardware virtualization on. In UEFI setup, enable Intel VT-x / "Virtualization Technology" or AMD SVM / AMD-V. [ ] Restore on AC power loss = Power On. Most boards have this under power management. It lets the host come back by itself after an outage. Confirm virtualization from Linux: lscpu | grep -i virtualization # Expect "VT-x" or "AMD-V". No output usually means it is off in firmware. Windows note: Task Manager → Performance → CPU shows "Virtualization: Enabled/Disabled". [ ] Install VirtualBox from one source (distro repo or official packages) with kernel headers and DKMS. After kernel updates, systemctl status vboxdrv should be green. [ ] Secure Boot: if it is enabled, unsigned modules will not load. Either enroll a signing key (many distros walk you through this during install) or decide deliberately to turn Secure Boot off. [ ] KVM conflicts: depending on your kernel and VirtualBox versions, loaded kvm_intel/kvm_amd modules can stop a VM from starting. Check with lsmod | grep kvm and resolve it before go-live, not during. [ ] Create a dedicated, unprivileged user to own the VM, and add it to the vboxusers group. sudo useradd -m -s /bin/bash vmhost sudo usermod -aG vboxusers v

InfraLinux
Interesse
dev.to

[Tailscale] Complete Guide to VPN Connection to Home LAN with Subnet Router

Accessing Your Home LAN from Outside with Tailscale Subnet Router I want to access my home NAS or server while away from home. But VPN setup is difficult... I do not have a VPN router either... Tailscale solves these problems. In this article, I will explain how to build an environment using Docker that allows you to access your entire home LAN from outside using Tailscale Subnet Router functionality. VPN connection to home LAN (192.168.x.x) from smartphone/PC while away Name resolution for internal domains (*.example.local) using home DNS server Privacy protection so family members can use it but cannot see each other devices User Usage Remarks Admin Remote management, all LAN access Full admin privileges Family Simple LAN access (NAS, etc.) Limited privileges, privacy protection between terminals Requirement Description Access to home LAN from outside Reachable to all devices in 192.168.x.0/24 Inter-user communication blocking For privacy protection, family devices cannot communicate with each other Split DNS Only specific domains resolved by home DNS when connected to Tailscale Subnet Router only Exit Node (all traffic forwarding) not required Item Decision Reason Container runtime Docker Easy management, reproducibility Network mode host Required for Subnet Router State persistence Named Volume Re-authentication unnecessary on restart Health check Built-in endpoint Easy monitoring integration Component Role Remarks Tailscale Container Subnet Router, forwards traffic from Tailnet to LAN Uses SNAT DNS Server (Unbound) Internal domain name resolution Split DNS target UFW/iptables Firewall, controls forwarding Important settings required Tailscale enables SNAT by default (--snat-subnet-routes=true). This is equivalent to MASQUERADE (IP masquerade / NAPT) in Linux iptables. Setting Behavior Notes SNAT enabled (default) Source IP becomes Subnet Router IP No additional settings needed on LAN devices SNAT disabled Tailscale IP (100.x.x.x) is sent as-is Static routes mus

InfraDevLinux
Interesse
dev.to

Backend Failures Explained: Detect Error Logs and Missing Scheduled Imports in Node.js

An error-log poller can alert on a failed import, but it cannot tell you that an import produced nothing when no error was emitted. For scheduled media imports, record each run's start, completion, and result count; poll those records alongside errors, then send one webhook notification per missed deadline or failed run. Keep the run ID and region in the alert so the incident can be reconstructed later. TL;DR: Treat silence as a missing expected result, not as proof that the backend is healthy. A scheduled import that never started, one that crashed before logging an error, and one that completed with zero items need different diagnoses. A poller can make those distinctions only if the import writes explicit lifecycle records. Imagine an import scheduled for 02:00 in the US region. The scheduler fails before it calls the worker. No worker exception exists to query. A search for level=error returns an empty page, which looks exactly like a clean run to a naive watcher. That's the trap. The useful unit of observation is the scheduled run, not the individual exception. Assign an ID derived from the job, region, and scheduled slot; record started and completed events under that ID. Completion should include the count of accepted results. An explicit zero is different from no completion record: zero might be a legitimate empty feed, while no completion means the run is unresolved. Define the expected deadline and the policy for zero results with the people who own the feed. Neither can be inferred from a generic error message. For example, if the worker records started and then dies, the missing completion points toward execution; if neither event exists, start with the scheduler or the event pipeline. If completion exists with zero accepted items, investigate the upstream feed and validation policy. Those are three different paths through an incident, even though a generic error search could return the same empty result for all three. Empty logs prove little. This shift

Dev
Interesse
dev.to

Orchestrating Multiple AI Agents with the OpenAI Decisions API and Responses API

Introduction Modern AI applications increasingly rely on multiple specialized agents rather than a single general-purpose assistant. A travel-planning application, for example, may have separate agents for hotel recommendations, flight search, hotel-and-flight packages, car rentals, and vacation-house rentals. The challenge is determining which agents should be invoked for each user request. The OpenAI Decisions API provides a lightweight way to classify incoming requests and identify the capabilities required to fulfill them. The selected agents can then use the OpenAI Responses API to perform their respective tasks, reason over available information, and generate results. This article demonstrates an architecture in which the Decisions API acts as the decision and routing layer, while a Python orchestrator coordinates specialized agents that use the Responses API. The examples use a travel-planning application, but the same architecture can be applied to enterprise support, financial services, shopping assistants, developer tools, and other multi-agent systems. Understanding the two APIs OpenAI Decisions API The Decisions API evaluates text or image input against explicitly defined questions. It supports three question types: Predicate: Estimates the probability that a condition is true. Choice: Selects one option from a predefined list. Score: Evaluates input against an ordered scoring rubric. For multi-agent orchestration, predicate questions are especially useful because multiple predicates can be evaluated against the same request. Each predicate can indicate whether a particular agent capability is needed. For example, a request to find flights, reserve a hotel, and rent a car can activate three separate agent capabilities. The Decisions API returns typed answers that the application can use to make routing decisions. It does not execute the agents itself. Official documentation: https://developers.openai.com/api/docs/guides/decisions OpenAI Responses API The

IADev
Interesse
dev.to

EP04: Transport showdown — RTMP / SRT / WHIP

Episode 4 of 20 in the **PPCDN Low-Latency Live Streaming Course* — building a self-hosted, low-latency live-streaming CDN from protocols to global delivery. Originally published on the PPCDN docs site; see the full course index for all episodes.* Recap EP03 "Content sovereignty: control it yourself, the ultimate moat" wrapped up Module 0 (breaking out) Next EP05 "How Simulcast works and what it's for" By the end, the viewer should be able to: Explain the concrete loss/latency trade-off mechanisms of RTMP, SRT and WHIP, rather than the coarse "TCP bad, UDP good" conclusion. Understand why this project keeps WHIP and SRT side by side instead of picking one and dropping the other — they solve different problems. Module 0 covered three dilemmas and the overall architecture. From this episode we enter RTMP (Real-Time Messaging Protocol) usually runs over a persistent TCP connection; after the This design made sense in its era: TCP's reliable delivery saved the protocol from handling if any . That wasn't a problem when RTMP was designed (typical scenarios were stable wired uplinks), but RTMP's place in the ecosystem is thin now: Flash's end removed it from the playback side (EP01), SRT (Secure Reliable Transport) sits on UDP and targets low-latency reliable transport over ARQ: the receiver detects missing packets by sequence number and sends NAK; the sender retransmits while data is still timely. It solves "how to recover loss". TSBPD: schedules delivery based on send timestamps and the negotiated latency, absorbing jitter and restoring send timing. It solves "when to deliver" and is not a synonym for the ARQ window. TLPKTDROP / stale-packet drop: when enabled and its conditions are met, abandons data that can no longer be delivered on schedule, letting both ends skip stale packets. It solves "when to stop remediating", and should not be written as "TSBPD drops packets automatically". The latency parameter gives retransmission and jitter absorption a time budget: larger

InfraDev
Interesse
dev.to

The benchmark score is the number to trust least

Claude Opus 5.5 scores 58 on Artificial Analysis's Intelligence Index, more than double the median of 26 for comparable reasoning models. That is the figure that gets quoted. It also tells you the least about what the model costs to run. The same evaluation run that produced the 58 recorded everything else. Getting through the Intelligence Index took Opus 5.5 some 260 million output tokens. The median model needed 81 million. That verbosity shows up on the bill: Artificial Analysis puts the average at $5.98 per task to run the index. Input is $4 per million tokens and output $20, both at the top of the range against medians of $2 and $10. The composite score hides the number an operator actually budgets against. A model that reaches the same answers in a third of the tokens, and lands a few points lower on the index, can be the better buy for a given workload. The headline will not tell you that. Latency is the other figure the score buries. Artificial Analysis reports a time to first token of 724.53 seconds against a 3.77-second median. Opus 5.5 is a reasoning model, so that window covers the extended-thinking phase before the first answer token appears; the site's end-to-end response time folds thinking time in for exactly this reason. Once it starts writing it is quick, 96 tokens per second against an average of 76. The wait is front-loaded into the thinking phase. For an interactive tool that difference is the whole user experience. For a batch pipeline it may not matter at all. The Intelligence Index scores neither case; it scores correctness and leaves you to discover the rest. None of this makes 58 a bad result. It places the model among the leaders on capability, with a 1M-token context window and text-plus-image input. The point is narrower: a single composite number is a ceiling on what the model can do, not a profile of what it does on your traffic. Treat it as a filter for the shortlist, then measure the candidates yourself, on your own prompts, counting

IA
Interesse
freeCodeCamp

Master Modern React Routing: TanStack Router Crash Course

Routing in modern web applications has evolved far beyond simply rendering a component based on a URL path. Developers today want end-to-end type safety, automated code splitting, seamless URL search

Dev
Interesse