Setting up drift detection in CI always took the same 15 minutes of boilerplate. Install Python. Install tfdrift. Wire up secrets. Figure out how to upload SARIF. Handle exit codes so the job doesn't fail before the artifact uploads. Add a second scan run because SARIF and JSON can't come from the same command. Every repo. Every time. I got tired of it, so I published tfdrift as a GitHub Actions Marketplace action. Now it's one uses: line. Before: - uses: actions/setup-python@v5 with: python-version: '3.11' - run: pip install tfdrift - run: tfdrift scan --format sarif --output results.sarif continue-on-error: true - run: tfdrift scan --format json --output report.json --quiet continue-on-error: true - uses: github/codeql-action/upload-sarif@v3 with: sarif_file: results.sarif After: - uses: sudarshan8417/tfdrift@v1 with: sarif-output: results/tfdrift.sarif That's it. Python setup, install, scan, PR annotations, step summary, and SARIF output are all handled. The action runs tfdrift scan under the hood. Because it runs inside GitHub Actions, the existing --gha path fires automatically: every drifted resource becomes an inline PR annotation and the job summary gets a drift table. Here's a full scheduled scan with Code Scanning upload and Slack notifications: # .github/workflows/drift-check.yml name: Terraform Drift Check on: schedule: - cron: '0 */6 * * *' pull_request: workflow_dispatch: jobs: drift: runs-on: ubuntu-latest permissions: contents: read security-events: write # for Code Scanning upload steps: - uses: actions/checkout@v4 - uses: hashicorp/setup-terraform@v3 - name: Detect drift id: drift uses: sudarshan8417/tfdrift@v1 with: path: . min-severity: low fail-on: high sarif-output: results/tfdrift.sarif json-output: results/drift-report.json slack-webhook: ${{ secrets.SLACK_WEBHOOK }} env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - uses: github/codeql-action/upload-sarif@v3 if: always() wit
A page shows hundreds of impressions in Search Console and almost no clicks, and the instinct is to rewrite something, usually the title. Sometimes that is right. Often it isn't, because "impressions but no clicks" describes several different problems, and only one of them lives in the title tag. When someone asks why is my page not ranking, the honest first answer is: it depends on which numbers are weak and how they relate to each other. This guide is a page-level method for reading Search Console evidence before you touch the page. The sequence is always symptom → evidence → diagnosis → action → validation. It won't promise rankings. It will help you avoid spending a week fixing the wrong thing. Figure 1. The diagnostic sequence used in this article. Example values: the author's own Search Console data, September 9–22, 2026. The Google Search Console performance report gives four numbers for any page, and each one misleads when read alone: Impressions count how often a link to your site was shown in results. Some result types only count once the link is scrolled or expanded into view (see Google's explanation of Search Console metrics).. Treat impressions as opportunity, not audience. Average position is the topmost position your link held, averaged across impressions. A result that nobody saw records no position. CTR is clicks divided by impressions. It only means something when compared at a similar position. Two rules follow. First, never judge CTR without position beside it. Second, read position per query, not only as a page average. A page average can blend a query where you sit eighth with one where you sit seventieth. To get the page-level view: Open Performance → Search results. Add a Page filter with the exact URL. Switch on all four metrics and open the Queries tab. Use at least three months of data. Where there is enough history, compare against the same period last year as well as the previous period. Run the page through these six checks before any
TL;DR: Put contract rendering in a job, then sign the exact output bytes. For an edtech platform, the least complex dependable design is a school-owned template, a versioned render request, and an immutable audit record connecting input, template, PDF, and signature. Page count is an output of layout, not a safe scheduling input. Template model Who controls change? Reproduction story Operational cost School-owned, versioned template School or platform team Retain the exact version and inputs More validation up front Renderer-owned template Rendering system Depends on retained renderer state Less local tooling, more external state Hybrid template plus remote assets Ownership is split Every dependency must be pinned Highest audit burden Recommendation: keep the contract template under school control and render it in an asynchronous job. Do not reserve work by predicted page count. Reserve it by a stable job identity, persist each transition, and discover page count from the completed PDF. This is a template-ownership decision before it is a queue decision. A queue cannot repair a mutable template or an untracked font. It can give the render enough time, isolate retries from the signing request, and make every attempt visible. A contract is a layout program fed with variable data. Four inputs commonly expand it: a long legal name wraps; a course schedule gains rows; an optional consent clause appears; or a signature block moves because the preceding paragraph crossed a page boundary. A single wrapped line near the bottom margin can push a block forward and create another page. These are concrete cases, but they are not independent counters. The renderer resolves them together, in order, against one finite page box. Consider two enrollment agreements using one template. Agreement A has Ada Li, three course rows, and no optional media clause. Agreement B has Alexandria Montgomery-Santos, eleven course rows, and the clause. The examples do not prove that B adds exactly on
Originally published on mihai.ltd. Persistent storage remains one of the first hurdles engineers hit when deploying stateful applications to Kubernetes. While stateless services restart cleanly anywhere across a cluster, databases, message brokers, and ML workloads require durable disks that survive pod restarts and rescheduling. When developers first encounter storage on Kubernetes, they often find conflicting advice: enterprise blogs recommend multi-node distributed storage clusters like Ceph or Longhorn, while quickstart tutorials use raw hostPath volumes. For single-node clusters, homelabs, and edge environments, both extremes cause problems. This guide clarifies how Kubernetes storage abstractions operate, examines how distributions handle local storage out of the box, and shows how Rancher's Local Path Provisioner enables automated, high-performance NVMe storage for your workloads. Kubernetes schedules Pods—groups of one or more co-located containers—onto worker nodes across a cluster. Containers provide lightweight, isolated process environments, but their file systems remain ephemeral by default. When a container crashes or restarts, Kubernetes recreates it from the base container image, discarding uncommitted runtime data. In traditional Docker environments on a single physical host, engineers solve persistence by mounting a host directory via bind mounts: docker run -d -v /var/data/postgres:/var/lib/postgresql/data postgres:16 In a distributed Kubernetes cluster, direct host paths break down: Scheduling Blindness: The Kubernetes scheduler places pods dynamically based on CPU, memory, and affinity rules. If Kubernetes terminates a pod on Node A and restarts it on Node B, a hardcoded path on Node A remains unreachable from the new node. Resource Leaks: When you delete a workload, Kubernetes deletes the pod, but the files on the host disk stay behind indefinitely. Without manual cleanup, dead workloads slowly fill host disks. Security Risks: Hardcoding host f
Stop spending model quota on chats you cannot rerun. A free model call is not an environment. Pin the tool host first, then spend the tokens. You are not short of demos this month. You are short of proof that another person can rebuild. A transcript from one warm process is a story. Here is the position, stated with no hedge. An agent run counts only when both sides are disposable. The model call must be logged as its own record. The tool host must restart without your personal shell. If either side is "my machine that day," discard the run. Do not cite that run in a pull request. Do not paste it into a contest writeup as proof. This is not a plea for a bigger cluster. This is a plea for a named host and a frozen contract. You can hold that bar on a small server. You cannot hold it with a warm laptop session. A session dies, and the proof dies with it. Developers keep collapsing two products into one sentence. They say the model itself built the feature. The model emitted text, and a host may have acted. Those two failures are not the same failure. A fluent model can still call a missing binary. A healthy host can still receive a broken call. If you grade them as one blob, you learn nothing. You only learn that one afternoon was kind to you. Kind afternoons do not survive a clean reboot. Agent contests reward a screenshot more than a boot log. Vibe-coded side projects reward that same bad habit. The missing artifact is a host you can boot again. Pinned does not mean large, costly, or permanent. Pinned means a stranger can rebuild the tool side. They should not need your shell history to do it. Use this checklist before you spend any quota. Give the host a name that is not your laptop. Keep the tool list in a versioned file. Give each tool a timeout and a real error path. Keep secrets in the host environment, not the transcript. Write a manifest before you write any verdict. Reboot the host and confirm the contract still holds. Miss one item and the run is only a reh
ParadeDB shipped pg_search 0.26.0 on 3 October, and the changelog describes it as a rewrite of how the extension stores BM25 field-length data for scoring. The company's own framing is that search got faster. I wanted to know faster at what, and slower at what, because no rewrite is free. pg_search is a Postgres extension that adds a BM25 full-text index (USING bm25) alongside the normal btree world, so you can run relevance-ranked search without leaving Postgres. The 0.26 release moves "fieldnorms" — the per-document field-length numbers BM25 needs for scoring — from one shared array into the postings list of each term. I ran both the previous stable release (0.25.11) and 0.26.0 against the same data and the same queries to see what that move actually costs and buys. I pulled paradedb/paradedb:0.25.11-pg17 and paradedb/paradedb:0.26.0-pg17, ran one container per version, and loaded an identical 3 million row table into each: a synthetic title column built from a vocabulary of about 260 words with a Zipfian frequency distribution, so some terms ("index") appear in 84% of rows and others ("udp") in about 10%. I built a default bm25 index on title in both, with no custom options, timed with \timing on in psql, and backed every number with EXPLAIN (ANALYZE, BUFFERS). A query that OR-combines ten terms and asks for the top 10 by BM25 score is the shape ParadeDB's own benchmarking targets — a disjunction over many terms, ranked, with a LIMIT: SELECT id, title, paradedb.score(id) AS score FROM posts WHERE title @@@ 'index OR which OR to OR price OR an OR ssl OR transaction OR tcp OR api OR kernel' ORDER BY score DESC LIMIT 10; Version Run 1 Run 2 Run 3 0.25.11 130.3ms 127.5ms 129.2ms 0.26.0 31.5ms 29.5ms 29.4ms That's a 4.3x drop, and it held across repeats, not a one-off. EXPLAIN (ANALYZE, BUFFERS) shows why. On 0.25.11 the plan lists Queries: 3 under the custom scan node — pg_search is running three separate scored sub-queries and merging them. On 0.26.0 the same SQL pr
Originally published: https://agentbadge.xyz/blog/arc-c15-x402-bazaar An agent buying from an API answers three questions before it pays: what does it cost, what do I send, is there a free way to try? Most payment-gated APIs make it guess all three. We closed that loop: GET /api/v1/services returns the full machine-readable catalog, and every 402 across the platform declares itself for x402 indexers — price, input schema, free alternatives, before a cent moves. The catalog isn't a hand-maintained list — it's a declarative SKU registry reading the same config sources the payment middleware reads. The price in the catalog IS the price the gate charges. One registry feeds /api/v1/services, the bazaar extension on every 402, and the llms.txt Paid Services section. 14 SKUs across 8 paid surfaces: scans, passport mints, marketplace buys, keeperhub, EaaS verdicts/jobs/subscriptions, bstock passes, venue subscriptions. sku_id is surface:slug, immutable — a golden test fails CI on rename. Every payment gate — x402 Hedera, MPP/Stripe, bstock freemium, the manual settle seam, all three EaaS middlewares — attaches bazaarExtensionFor(" "). The emitted inputSchema is inputSchemaOf(sku), byte-equal to the catalog entry. One function produces the schema — catalog and wire can't drift (D-179-4). Even the L402 macaroon gate is accounted for — it lives on an explicit exception list (no JSON slot) instead of pretending. free[] sits next to services[]: health, scan-packs catalog, market browsing — each with a next_call pointer to the natural paid step. Discovery → free trial → paid call, zero doc reading. tests/e2e/catalog-coverage.test.ts keeps a GATE_TABLE — every gate ↔ SKU both directions. A new paid route without a SKU fails CI. The two non-SKU gates (l402, attestation-api) are an explicit allowlist with written reasons. curl -s https://agentbadge.xyz/api/v1/services | jq '.services[].sku_id' Full article with decoded 402 payloads: https://agentbadge.xyz/blog/arc-c15-x402-bazaar
Why are we sending confidential family photos, passport scans, and client assets across oceans just to delete white pixels? Most "online image converters" are subscription traps: "Upload your image to our AI engine..." You wait 30 seconds for a fake loading bar. "You have used 1 of 1 free monthly credits! Upgrade to Pro for $19.99/mo to download high-res." Basic image manipulation—segmentation, canvas cropping, compression, and WebP encoding—can execute in sandboxed browser memory at 60 frames per second using modern WebAssembly and Canvas APIs. That's why we created HelpMyIMG. By offloading pixel manipulation to an OffscreenCanvas inside a background Web Worker, the main thread remains butter-smooth and responsive: // Client-side WebP compression inside a Web Worker export async function compressImageWorker(imageBitmap, quality = 0.82) { const canvas = new OffscreenCanvas(imageBitmap.width, imageBitmap.height); const ctx = canvas.getContext('2d', { willReadFrequently: true }); ctx.drawImage(imageBitmap, 0, 0); // Native hardware-accelerated WebP encoding const blob = await canvas.convertToBlob({ type: 'image/webp', quality: quality }); return blob; // 70-85% size reduction in ~40ms with zero network I/O } Metric Commercial Cloud Image API HelpMyIMG In-Browser WASM API Rate Limits 50 credits/month free tier Unlimited (Hardware bound) Network Payload 12 MB photo uploaded to cloud 0 KB (Air-gapped) Processing Latency 4.2 seconds (HTTP round-trip) 120 ms (Local SIMD WASM) Subscription Cost $19.90 / mo $0.00 Free & Open Try it live: Image Suite: https://helpmyimg.com What's your preferred stack for browser-side image processing? Drop your comments below!
تُشغّل أداة استعادة على قرص، فتنتهي برقم يبدو خبراً جيداً — تم العثور على 3,148 ملفاً. ثم تبدأ بفتحها. نصفها تقريباً لا يعمل. بعضها يُفتح ويعرض مستطيلاً رمادياً. وبعضها يقبله العارض ويعرض الصورة الخطأ. وبعضها حجمه 4 ميغابايت على القرص ولا يحتوي شيئاً على الإطلاق. برنامج الاستعادة لا يكذب عليك. لقد وجد مدخل الدليل: الاسم، والحجم، والموقع الذي كان الملف يشغله. وما لا يستطيع معرفته هو ما إذا كانت العناقيد خلف ذلك المدخل لا تزال العناقيد التي تخصّه. حذف ملف لا يمحوه. في NTFS يُعلَّم المدخل وتُعلَّم المساحة متاحة، وتظل البايتات مكانها حتى يكتب شيء آخر فوقها. وهذا يعني أن هناك ثلاثة أشياء مستقلة يمكن أن تسوء، وأدوات الاستعادة تُبلّغ عنها كلها بوصفها «تم العثور عليها». الكُتبت البيانات فوقها. الاسم عاد؛ أمّا المحتويات فصارت لشخص آخر. الكُتبت البيانات فوقها جزئياً. عادت العناقيد الأولى، والباقي ذهب. هذه هي الحالة الخبيثة — للملف حجم معقول وترويسة صحيحة، ويُفتح في بعض العارضات وهو يعرض خردة. البيانات لم تكن موجودة أصلاً في الملف الذي حصلت عليه. الأداة عرفت أن الملف يُفترض أن يكون 4 ميغابايت، فكتبت لك 4 ميغابايت. البايتان الأولان والأخيران من الصيغة، وكل ما بينهما حشو. لا يمكنك أن تسأل نظام الملفات عن الحالة التي أنت فيها. لكن يمكنك أن تسأل البايتات. معظم الصيغ تضع بصمة ثابتة في البداية وعلامة نهاية في الآخر. إن غاب أيّهما فالملف مقطوع. الصيغة يجب أن تبدأ بـ يجب أن تنتهي بـ JPEG FF D8 FF FF D9 (EOI) PNG 89 50 4E 47 0D 0A 1A 0A IEND + CRC (49 45 4E 44 AE 42 60 82) PDF %PDF- %%EOF في آخر كيلوبايتين تقريباً DOCX / XLSX / ZIP PK نهاية الدليل المركزي 50 4B 05 06 MP4 / MOV صندوق ftyp فهرس moov، في أيّ من الطرفين لاحظ التفاوت، لأن الخطأ هنا يصنّف ملفات صالحة على أنها تالفة. علامة EOI في JPEG هي آخر بايتين، فتنظر في نافذة من 2 بايت. أمّا EOCD في ZIP فمكانه في مكان ما ضمن آخر 64 كيلوبايت + 22 بايت، لأن تعليق الأرشيف يمكن أن يليه. و%%EOF في PDF يمكن أن يكون في أي مكان في آخر 2 كيلوبايت — وقد يكون هناك أكثر من واحد إن كان الملف قد حُدِّث تراكمياً. إن ثبّتّ «تحقق من آخر N بايت» على كل الصيغ، فستحصل على إنذارات كاذبة طوال بعد الظهر. ثم هناك MP4، حيث علامة النهاية ليست في النهاية أصلاً. mo
The QR Generator API was supposed to be the boring one in my toolkit: POST a string, get an image back. No parsers, no pagination, no file formats. It turned out to have the most physical-world failure mode of anything I run. A few weeks after I packaged it (https://x402.freeq.one/tools/qr_generator.html), an agent building conference tickets embedded my QR codes straight into a PDF layout — flush against the ticket art, no padding. On my preview page every code scanned instantly. On the printed tickets, phones refused to see them at all. Same bytes, same image. The culprit was the quiet zone. The QR spec (ISO/IEC 18004) demands an empty margin around the symbol — four modules wide, rendered in the same light color as the background. It isn't decoration: the detection step in every scanner uses that border to find the edges of the three finder squares and establish where the data grid starts. With no margin, the finder patterns sit flush against other dark artwork, edge detection fails, and the camera just reports "no code found" instead of a mangled read. Mine rendered the exact pixel matrix with a zero-pixel border, because that's what a "clean" API output looks like. In an HTML preview on a white page, the page itself doubles as the quiet zone — which is why it worked for me and died at the printer. I tested four margin settings — 0, 1, 2 and 4 modules — across 50 generated codes with a decoding library plus three phones. Zero margin decoded under half the time, two modules caught most, four modules went 50 for 50. The margin parameter now defaults to 4, and I document it as part of the symbol, not a style option. One adjacent trap I now warn callers about: transparent-background PNGs placed over dark slides fail the same way. The quiet zone has to be contrast in ink, not an assumption about whatever sits behind the image. Barcodes play by the same rule — GS1-128 wants clear margins on both sides too. Empty space isn't wasted space; it's part of the format.
For a small gaming SaaS team, the least complex defensible approach is to protect the signup and login API with a captcha after a few failed attempts, then require step-up verification when risk persists. Do not lock the account. A lockout lets an attacker deny service to any player whose email address is known. TL;DR: Use per-account and per-network failure signals to decide when to show a captcha, but do not turn either signal into a permanent identity verdict. After the captcha, require an emailed or SMS code when a password is no longer sufficient evidence. Count failures as metrics, retain a small sample of diagnostic events, and avoid storing one full log record for every bot attempt. That last point matters during a launch or promotion. Credential stuffing can make the security telemetry bill grow in direct proportion to attacker traffic, even though almost none of those requests deserve forensic retention. Start with event volume, bytes per event, and retention. An illustrative campaign of 50 login attempts per second produces 4,320,000 attempts per day. At 900 bytes for a structured request event, that is about 3.9 GB of raw logs each day before indexing overhead or replicas. Thirty-day retention turns the same stream into roughly 117 GB of raw data. These are planning assumptions, not a vendor benchmark; substitute measured serialized bytes and your actual request rate. The dominant term is usually unsuccessful-attempt volume, not the handful of legitimate player investigations. Reduce that term before debating storage vendors. A counter with dimensions such as outcome, route, challenge stage, and coarse network class preserves the campaign shape without retaining millions of nearly identical bodies. Cardinality needs its own budget. Suppose outcome has 4 values, stage has 3, route has 2, and region has 8. Their full product is 192 possible time series. Add raw email addresses, IP addresses, or user IDs as labels and the series count becomes attacker-contr
When I started building Vicquant, the core design principle was simple and non-negotiable: the AI never does the math. Every number and a debt payoff schedule, a backtested win rate, a risk metric is computed by deterministic code. The model's only job is to explain results in plain language, never to generate a number from scratch. That principle protects users from one kind of failure: a model confidently inventing a wrong calculation. But it doesn't protect against a second, quieter failure mode, when a model confidently answering a factual question about a document it has never actually seen, using something that merely sounds plausible. If a user uploads a fee schedule and asks "what does this actually charge me for an overdraft," a generic chatbot answer isn't good enough. It needs to be grounded in that specific document, with a receipt. That's what the RAG Vault is for, and getting it right turned out to be a deeper engineering problem than I expected. *Why the naive version doesn't work for finance A basic RAG implementation do split text into fixed-size chunks, embed them, retrieve the closest matches and works reasonably well for general text. It falls apart on financial documents for a specific reason: financial documents are full of tables, and a naive character-splitter slices through them without any awareness that it's destroying a row of numbers. Tax brackets, fee schedules, 10-K disclosures are all tabular, all fragile to blind splitting. The fix was layout-aware parsing that detects and preserves tables, headings, and structured sections as whole units rather than arbitrary text windows. The chunk-size dilemma Even with layout-aware parsing, there's a tension in how big each retrievable piece should be. Small chunks match a search query precisely but don't give the model enough surrounding context to answer well. Large chunks give plenty of context but are harder to match precisely against a specific question. Vicquant resolves this with hierarchi
Originally published in German on next-levels.de. The free Security Check referenced below is our own tool; the six checks are the ones it runs. Direct answer: The fastest way to check website security is from the outside, the way an attacker does: HTTPS and certificate, security headers, cookie flags, publicly reachable files such as .git or .env, mixed content and scripts without integrity protection, plus SPF, DKIM and DMARC in DNS. These six checks take seconds, need no login and show what every visitor can see. The first attack on your website isn't an attack. It's a handful of harmless requests: a GET /, a look at the response headers, a TLS connection, three DNS queries. Nobody breaks in, nobody tries passwords. And yet, afterwards, the other side knows more about your server than most operators know themselves. That's division of labour. Anyone attacking websites at scale scans at scale first. Server search engines like Shodan or Censys, mass scanners like Nuclei, home-grown scripts: all of them start by reading only what a server hands out voluntarily, then sort. A domain with an expired certificate, missing headers and a publicly reachable .env file lands on the shortlist. A domain whose basic configuration is in order is uninteresting at this stage, because the next candidate is easier. You can replay that triage yourself. Our free Security Check does exactly that: it fetches your homepage like a browser, follows the redirects, opens a TLS connection and queries public DNS. No exploits, no credentials, read-only. The six categories it grades are the same six things an attacker checks first. This article walks through them in that order, each time with a look at what the finding looks like in the check. At a glance Attackers scan before they attack. The six checks here are the part everyone can see from outside: HTTPS & TLS, security headers, cookie flags, info leaks, content & scripts, email senders. Most findings are configuration, not rebuilds: a few li
The newest local-LLM wave isn't another chat model — it's models that never write prose at all. "Decision models" (TypeSafe's Jev API shape, now served locally by both Ollama and llama.cpp) take a state plus typed questions and return a probability for every option in one forward pass. No parser, no phrasing drift, no hallucinated reasons — a label and a number. The pitch: half of what we point big chat models at is secretly a classification job. Ticket triage. Safety gates. Request routing. The public accuracy table is humbling at the small end (an 0.8B scores 63.5%, a 9B scores 75.7% against a hosted model's 76.0%), but the latency and cost side of the ledger is barely contested. So the question, with receipts please: Where in YOUR stack would a one-pass yes/no model replace a chat call tomorrow — and where have you already tried it and watched it fail? Bonus ledger: did the confidence number survive contact with your real labels? (Context: I wrote up the wave itself today — what shipped, which checkpoints, which licenses — over on the site. This thread is for the war stories, not the spec sheet.)
Hi everyone, Working with Microsoft Entra ID (Azure AD) sign-in logs to hunt down distributed password sprays or track MFA gaps can be a nightmare. There are great SaaS tools out there, but I was always uncomfortable granting third-party cloud services read-access to my entire company's directory and audit logs. So over the last few months, I built IDSignal — an open-source, zero-cloud dependency security analyzer. It runs entirely locally on your own machine (or via Docker in your private network). Your tenant data never leaves your environment. Hunts Password Sprays: Unmasks distributed attacks (Event 50126) and groups them by threat actor IPs. Spots MFA Gaps: Pinpoints users who do not have MFA configured or active on their accounts. Calculates Risk Scores: Combines active threats + missing security controls to give each user an explainable priority score. Interactive Dashboard: A really fast, local UI to filter through the noise instantly. I’ve made it incredibly easy to spin up. If you have Docker, it's just one command: docker run -d --name idsignal -v idsignal_data:/app/data -p 4317:4317 ghcr.io/sertacanbey/idsignal:latest I’d love for the community to tear it apart, test it, and give me some brutally honest feedback. GitHub Repo: https://github.com/SertaCanbey/IDSignal https://idsignal.org Let me know what you think!
An agent picks a tool by matching the current task to each tool's name and description, then it writes the arguments for that call. Chip Huyen names the two ways that goes wrong: an invalid tool, or the right tool with the wrong parameter. Write each description so the right choice and the valid inputs are obvious, score that selection on its own, and make the agent ask before it runs anything that can change or delete data. This post draws on two Chain of Thought episodes. Chip Huyen, then at Tép Studio (formerly NVIDIA), and Vivienne Zhang of NVIDIA, discussed agent evaluation in episode 5 (Dec 2024). Angie Jones, then VP of Engineering for AI Tools and Enablement at Block, described deploying Goose with MCP in episode 48 (Jan 2026). It reads the task against the tools it has been given, picks one (or answers with no tool), and generates the call. Chip Huyen treats an agent as tools plus a plan. Web search, a calculator, and a retriever are tools. Given a task, a constraint, and that set, the agent is supposed to produce a strategy, then carry it out one call at a time. After a call returns, the next step uses that result. The call itself is where selection goes wrong. A weather function is not a bare call weather. The model has to pull out a location and a time, and those values have to be valid. A search string, a JSON payload, and function arguments fail the same way: the tool name can be right while the fields are not. "The other is whether it can call the right tool. So a lot of time, we'll try to call like an invalid tool. Or it will try to use the correct tool, but not with the right parameter." Chip Huyen, then at Tép Studio (formerly NVIDIA), on Chain of Thought ep 5 So a description has two jobs. It says when this tool is the right choice, and it says which arguments the call needs. Protocols like MCP, which Angie Jones uses with Goose, put many systems behind one client. That only helps if each server's tool cards stay distinct. One shared interface doe
A Tier-1 helpdesk card for "Outlook keeps asking for my password" It's one of the most common tickets in any Microsoft 365 shop: "Outlook keeps popping up a password box. I type it, it goes away, and it comes back." Sometimes Teams and OneDrive do it too. Most Tier-1 techs handle it from memory, and that's how you get a mix of results. One tech resets the password, which rarely fixes it and sometimes makes it worse. Another removes the work account from Windows and breaks single sign-on for the whole device. A ticket card fixes that. It's one page: what the user sees, what to check in order, what Tier-1 is allowed to fix, and the exact point where you stop and escalate. Here's one you can copy into your knowledge base. Scope: Windows 10/11 with Microsoft 365 Apps, Entra ID (Azure AD) accounts. Menu names move around, so check them against your build and your own policies. CARD: Outlook / M365 apps keep prompting for password (Windows) SYMPTOMS - Repeated password prompt in Outlook (sometimes Teams/OneDrive too) - "Need password" banner in Outlook or OneDrive - Password is accepted, then the prompt comes back minutes/hours later - Often follows: password change, new laptop, VPN change, recent reboot CHECKS (in order — stop when you find the cause) 1. Scope: one user or many? One app or all M365 apps? Many users at once -> check service health / tell your lead. Don't touch devices yet. 2. Web test: can the user sign in at outlook.office.com in a private window? - Fails -> account problem (password, lockout, MFA). Go to the password/MFA card. - Works -> account is fine. Problem is on the device/app. Continue. 3. Recent password change? Other devices (phone, old laptop) may still be using the old password and causing lockouts. 4. Device time: Settings > Time & language. Set automatically = On, correct time zone. 5. Network: on VPN, hotel/guest Wi-Fi, or a proxy? Test once off VPN / on another network. 6. Device state (read-only): run dsregcmd /status and note: AzureAdJo
Originally published on shotfleet.com. You wrote a Maestro flow for your app and now want the same screens in German, Japanese and Arabic, for screenshots or for a smoke test. The docs are short on this, and the failure mode is quiet: every run goes green and the images are in English. I build a tool around this problem (shotfleet, which comes up in the last three sections). Everything before that is plain Maestro and adb. Maestro's locale page says there is "no place within a Flow itself" (a launchApp or config.yaml) to define the locale. The documented route is the --device-locale flag on maestro start-device (and maestro cloud), not on maestro test, combined with tags: maestro start-device --platform android --device-locale fr_FR maestro test --include-tags french .maestro/ That works, and it changes the whole device. For N languages you start N devices in turn, or restart one. It also means the language lives in your shell script and tags, not in the flow. You can also set the language for your app only, and keep the device as it is. launchApp takes an arguments map of key-value pairs that are passed to the app as launch arguments. iOS reads AppleLanguages and AppleLocale from them, so one flow can take the language as a variable: # flow.yaml (no env: default in the header, see trap 1) appId: com.example.myapp --- - launchApp: clearState: true arguments: AppleLanguages: "(${APP_LANG})" AppleLocale: "${APP_LOCALE}" - tapOn: id: onboarding_next - takeScreenshot: shots/${APP_LANG}/02_onboarding I ran this on Maestro 2.0.10 against an iOS 26.4 simulator. The tapOn before the screenshot matters: when I put a takeScreenshot straight after launchApp, the image showed the iOS home screen, not the app, in 4 of 4 runs (with and without clearState; the Mac was under heavy load at the time). Putting extendedWaitUntil with visible: id: next first gave the app. Wait for something on screen before the first screenshot. Everything here was run on Maestro 2.0.10 only. Newer vers
A practical workflow for testing Shopify pixels, cookies, app-injected tracking, consent behavior, GPC, and accessibility across real browser sessions. A Shopify storefront can look perfectly normal while dozens of things happen in the browser behind the scenes. A typical store may include: Shopify Customer Events custom pixels Meta or Google integrations analytics platforms lifecycle and email tools attribution services review widgets chat tools subscription apps consent-management platforms scripts injected by Shopify apps If you are trying to understand the store's privacy behavior, checking whether a cookie banner exists is not enough. The better question is: What does the storefront actually load, store, and transmit under different visitor privacy states? This article walks through a practical browser-level testing workflow. A single browser session gives you only one version of the storefront's behavior. For a more useful review, test several defined states independently. Test state Visitor action Cold / fresh session No consent interaction Accept Accept available consent choices Reject Reject non-essential choices Opt-out Use Do Not Sell / Share where available GPC Send Global Privacy Control without banner interaction The important part is isolation. Each test should ideally begin from a clean browser state so cookies or stored consent from a previous run do not affect the next one. For each test path, begin with a clean session. At minimum: clear cookies and site data clear localStorage and sessionStorage disable cache while DevTools is open preserve network logs where useful record the test start time document the browser and test state For more formal testing, I prefer a dedicated browser profile rather than repeatedly clearing an everyday profile. That reduces the chance of extensions, old cookies, or previous consent decisions affecting the result. Before clicking anything on the consent banner, observe what happens. Open DevTools, go to Network, and r
Vanity counters look great on a landing page and teach you almost nothing about whether a free VIN decode works. "Decodes today" and "total lookups" rise when bots scrape you, when users retry after a timeout, and when the same VIN is pasted three times. For a product built on NHTSA vPIC, the metrics that pay rent are latency, cache behavior, and upstream health -- not applause numbers. This post sketches a small TypeScript metrics surface for a decode path: what to count, what to histogram, and what to ignore so you do not optimize for theater. Users care about three outcomes: Fast enough -- the form feels responsive on a phone on mediocre LTE. Honest -- errors look like errors, not empty cars. Stable under load -- a burst of marketplace traffic does not melt your courtesy toward NHTSA. Those map cleanly to instrumentation: end-to-end latency, cache hit ratio (and why you missed), and upstream error / timeout rates. Page views and "VINs decoded" are secondary; they are useful for capacity planning only after you separate humans from scrapers. Keep the event names boring and stable. Prefer a handful of counters and two histograms over dozens of bespoke labels. export type DecodeOutcome = | "ok" | "vin_invalid" | "cache_hit" | "upstream_timeout" | "upstream_http" | "upstream_parse" | "circuit_open" | "queue_full"; export type DecodeMetrics = { recordLatencyMs: (ms: number, labels: { outcome: DecodeOutcome; cache: "hit" | "miss" | "bypass" }) => void; incr: (name: string, labels?: Record ) => void; }; export function observeDecode( m: DecodeMetrics, startedAt: number, outcome: DecodeOutcome, cache: "hit" | "miss" | "bypass", ): void { m.recordLatencyMs(Date.now() - startedAt, { outcome, cache }); m.incr("vin_decode_total", { outcome, cache }); if (outcome.startsWith("upstream_")) { m.incr("vin_decode_upstream_errors_total", { outcome }); } } Call observeDecode once per user-visible attempt, after you know the final outcome. Do not increment "success" when you returned
Ten Roblox games, a web app and a short-video pipeline, all built and run by one person from a single PC. Text generation runs on Ollama with Qwen3 14B. Images come from Flux.1 through ComfyUI. All of it runs on my own machine, so nothing is billed per piece and publishing doesn't add a fee. The lineup is a mix of simulators and obbies. As of October 7th, 2026, all ten are verified and published on Roblox with a 16+ rating. Player progress is saved safely, and a purchase is confirmed only after the save has gone through. The web app is Kairo. You enter your skills, your time, your budget and your hardware, and it shows which AI-related ways of earning fit your situation. The starter package is a one-time €50. The same local setup produces short videos through a pipeline. Nothing goes out without a human approving it first, and I get one Telegram message a day. If the configuration file can't be read, say because of an invisible character or a BOM, everything stops and I get an alert. The alternative would be falling back to default values without saying anything, and that's exactly how a video ends up on the wrong account. Every text starts from a sheet of verified facts. If that sheet is out of date, nothing gets written. That's why the quality check only looks at the writing: the facts are settled before the first sentence exists. The local model writes the drafts and a stronger model reviews them. Fact-checking stays its own step instead of being folded into that review. Store a long ID as a number and it can get rounded. Change a single digit and the post goes to a different account, so every social account ID is kept as text. A piece of content can only be published through the account of the channel it was made for. If the voice or the language is wrong, the video doesn't go out. Rewards are capped, and so are login streaks. Missions, for example, pay out a maximum number of gems per day. The goal is to keep the game fair for players who don't spend. I prepare
I built PixaFind for the search you do when you remember a file's contents but have forgotten its name. You might remember a cat sitting in sunlight, a whiteboard from a meeting, or a paragraph about a budget. None of those memories give you a path to type into Explorer. On Windows, I use a Tauri 2 shell, a Rust backend, ONNX Runtime inference, and local SQLite vector storage. SigLIP2 handles text-to-image search. DINOv3 handles image-to-image similarity. For documents, I combine dense embeddings with a BM25 keyword index. The engineering cost sits in the indexing pipeline: decoding files, preparing model inputs, running inference, and keeping the index consistent as users edit their folders. I keep file access, inference, and retrieval in the Rust backend. Users interact with a floating search window through a global hotkey, Ctrl+Space, without switching away from their current application. The native Tauri shell weighs about 5 MB. That figure describes the executable, not the full installation. Users also need model weights, ONNX Runtime dependencies, and index storage. The release README describes a one-time model download of roughly 500 MB. Tauri uses the system webview on Windows. I avoid shipping a separate Chromium distribution, but I still have to account for webview memory, model memory, and GPU allocations. A small executable does not imply a 5 MB runtime footprint. This diagram shows the architecture at the component level, rather than private source-code interfaces: flowchart LR F["Selected folders"] --> W["Filesystem watcher"] W --> C["Rust: mtime and SHA-256 change detection"] C --> P["Decode images or extract document text"] P --> O["ONNX Runtime: DirectML, CUDA, or CPU"] O --> V["Vector DB: local SQLite storage"] P --> B["BM25 keyword index"] V --> R["Rust retrieval and ranking"] B --> R H["Global hotkey"] --> U["Spotlight UI: Tauri 2"] U --> Q["Query or selected image"] Q --> O R --> U I separate background indexing from interactive retrieval becaus
When building features like search bar autocomplete, spell checkers, or IP routing tables, traditional hash maps and balanced binary search trees often fall short. While a hash map provides $O(1)$ lookup for exact matches, it fails at prefix matching without scanning every single key. This is where the Trie (pronounced "try"), also known as a prefix tree or digital tree, becomes indispensable. A Trie is an ordered tree data structure used to store a dynamic set of strings, where the keys are usually strings. Unlike binary search trees, nodes in a Trie do not store the associated key; instead, its position in the tree defines the key with which it is associated. All descendants of a node have a common prefix of the string associated with that node, and the root is associated with the empty string. At the heart of every Trie lies the TrieNode. Each node typically contains an array or hash map of pointers to its children (representing subsequent characters) and a boolean flag indicating whether the path from the root down to this node forms a complete, valid word. Here is a robust, production-ready implementation of a TrieNode and the base Trie class in Java: import java.util.HashMap; import java.util.Map; public class Trie { // Definition of a Trie Node public static class TrieNode { // Using a HashMap for flexibility with character sets (e.g., Unicode) // For pure ASCII lowercase, an array `TrieNode[] children = new TrieNode[26];` is more optimal. Map children; boolean isEndOfWord; public TrieNode() { children = new HashMap (); isEndOfWord = false; } } private final TrieNode root; public Trie() { root = new TrieNode(); } } A Trie supports three fundamental operations: Insertion, Search, and Prefix Search (startsWith). All operations operate in $O(m)$ time complexity, where $m$ is the length of the key or prefix, independent of the number of words stored in the Trie. To insert a word into a Trie, we iterate through each character of the word. For each character, we ch
TL;DR: In a Node.js and Express catalogue importer, dedupe supplier images by using normalized metadata as a quick filter and a SHA-256 hash of the original bytes as the final decision. Store one immutable source object per digest, cache OCR output by that digest plus an extractor version, and record why each upload was accepted or reused. This keeps repeated storage and processing out of the import without pretending that filenames or dimensions prove identity. The short mental model is a funnel. Before: every row creates an image object and an OCR job. After: cheap metadata narrows the search, a byte hash establishes identity, and only a new digest crosses the processing boundary. Fast first, certain second. Supplier feeds reuse names such as front.jpg. They also rename the same file, and two distinct product photos can share a MIME type, byte length, width, and height. Metadata is useful as an index hint, not an identity proof. Names lie. There is another trap: declared MIME type is input, not evidence. Inspect the file signature before decoding, then derive dimensions with an image parser that applies strict pixel and memory limits. MDN's format guide is a useful map of common image formats, but support policy still belongs to the importer. A catalogue team may accept JPEG, PNG, and WebP while explicitly rejecting formats its OCR preparation path cannot decode. The hash should cover the untouched upload bytes. Do not resize, strip metadata, or transcode first. Those operations spend compute before the dedupe decision and can collapse different source files into the same derivative. Keep derivative identity separate: sourceDigest + transformVersion for normalized pixels, and sourceDigest + extractorVersion for OCR text. Consider one supplier row that calls a photo front.jpg, a second row that calls the exact bytes sku-104-main.jpg, and a third row that sends a newly compressed version at the same dimensions. The metadata index can quickly put the first two in the
If you use Claude Code on a Pro or Max subscription, you have probably seen the message that you have reached your limit halfway through a task. The limits are not hard to understand, but they are easy to lose track of, because they are shared, they reset on different schedules, and Claude Code burns through them faster than chat. When you sign in to Claude Code with a subscription, it draws from the same limits as claude.ai: a rolling 5-hour session that starts with your first message, a weekly limit shared by every model, and, on some plans, a separate weekly cap for specific models. Chat and coding share one pool. A long refactor in the terminal can leave you blocked on claude.ai, and a long chat can cut a coding session short. If you use Claude Code with an API key from the Claude Console instead, none of this applies: you pay per token under your API rate limits. How you use Claude Code Limits Where to see them Pro or Max subscription Shared 5-hour session and weekly limit with claude.ai, plus per-model weekly caps /usage in Claude Code, claude.ai/settings/usage API key No session or weekly limit; pay per token within your rate limits The Claude Console Agentic loops. One request can turn into many model calls while Claude Code reads files, runs commands and edits code. Large context. Each call carries the conversation so far plus every file it has read, so long sessions cost more per step. Stronger models. The most capable model uses more of your limit per message than a lighter one. /clear between unrelated tasks and /compact to shrink a long conversation, so each call carries less context. Match the model to the job with /model, and keep the strongest one for the hard parts. Plan around the reset. If the session window is nearly used up and resets in 40 minutes, start the big refactor after the reset, not before. Keep the numbers in view. /usage shows your session and weekly usage with reset times, but it has no history and does not warn you before you run o
Counting words sounds trivial. It's not. When I set out to build Word Counter Suite — a free toolkit with 15+ text analysis tools — I assumed the word counting part would take an afternoon. It took weeks. Here's why, and what I learned about doing real text analysis entirely client-side. Most tutorials tell you this: const wordCount = text.trim().split(/\s+/).length; This breaks in at least five ways: Hyphenated words — is "state-of-the-art" one word or four? Microsoft Word says one. Google Docs says one. Your regex says four. Em dashes and en dashes — "word—another" with no spaces. One word or two? Numbers — "3.14" contains a period. Is it a sentence boundary? URLs and emails — "user@example.com" has no spaces but isn't a normal word. Unicode — \s doesn't catch all Unicode whitespace. Neither does \w handle all word characters. Real word counters (Word, Google Docs, professional tools) follow published segmentation rules. The closest public standard is Unicode Text Segmentation (UAX #29), which defines word boundaries across languages. I ended up implementing a rule-based tokenizer that handles apostrophes within words, hyphens within compounds, decimal numbers, URLs and emails as single tokens, CJK characters, and emoji sequences. function tokenize(text) { const normalized = text.normalize('NFC'); const wordPattern = /[\p{L}\p{N}]+(?:[''\-‑–][\p{L}\p{N}]+)*/gu; return normalized.match(wordPattern) || []; } The \p{L} and \p{N} Unicode property escapes do the heavy lifting — they match letters and numbers in any script, not just ASCII. Every tool on Word Counter Suite runs entirely in the browser. No server round-trips, no data leaving the machine. Web Workers handle heavy analysis off the main thread, so pasting a 100,000-word manuscript doesn't freeze the UI. No backend means zero infrastructure cost and infinite scale. Once you have a tokenizer, the rest follows: reading time (words ÷ WPM), keyword density (token frequency with stop-word filtering), speaking time
Part of the Meicut Engineering series — how we build an in-browser media toolkit. The encoding command — ffmpeg -i in.mp4 -c:v libx264 -crf 23 out.mp4 — is well documented. What is rarely discussed is the engineering that turns this single command into a service: where encoding runs, how long-running jobs behave, how concurrency is bounded, and how output is matched to the user's stated goal. This post covers those decisions. The first architectural decision is the execution environment. Three options exist for a web media tool: Approach Execution Cost profile Constraints Server-side ffmpeg Encode on infrastructure Upload → encode → download Requires upload; full ffmpeg capability ffmpeg.wasm In-browser (WebAssembly) No upload, strong privacy ≈ an order of magnitude slower than native (community benchmarks); input+output held in a WASM heap capped near 2–4GB WebCodecs In-browser (raw codecs) No upload Most control; most implementation work Browser-native execution (ffmpeg.wasm / WebCodecs) is attractive for privacy — files never leave the device. It is, however, constrained by encode throughput and memory ceiling: a 500MB input can exceed the WASM heap and crash the tab. Server-side execution reliably handles large files and the full filter set (fonts for subtitles, multi-file merges). We therefore implemented server-side encoding first, deferring browser-native processing. The ordering principle — support the hardest case before the common case — recurs throughout the product. With encoding server-side, "compress video" becomes a pipeline: upload → validate → queue → encode → store → downloadable link Three constraints follow. Long-tail latency. A short clip encodes in seconds; a 4K 20-minute input at a slow preset runs for minutes. The pipeline must be asynchronous — each request returns a job ID, the client polls, and progress reflects pipeline state rather than a synthetic spinner. A wall-clock cap per job, with a clear path to re-encode at a faster preset, repl
SecFoo is an open-source CLI that runs AI coding agents (Claude, Copilot, Codex, or a plain API key) as security reviewers against your codebase, tracks findings over time, and serves a local dashboard. One of the agent options — call it secfoo — is supposed to work with nothing but an OpenAI/Anthropic/Gemini API key, no coding-agent CLI installed. While testing it end-to-end, we found it was fabricating entire security reports. We ran it against a small, intentionally-vulnerable Flask app (the whole codebase is one file, app.py) and asked it to do a SAST scan. It came back with "Confirmed" findings — SQL injection, XSS — at files like app/db.py and app/upload.py. Neither file exists anywhere in the repository. We ran it again with a different scan type (secret scanning) against the same target. This time it reported a "Confirmed, looks live" AWS access key in deploy/ci.yml, with a recommendation to rotate it immediately. There is no deploy/ directory in that repository. There is no AWS key anywhere in it. The root cause was almost embarrassingly simple once we traced it: that agent's code builds the message it sends to the model from the prompt text alone — it never reads the target's actual source files and attaches them. The model is asked "review this codebase for SQL injection, XSS, etc." with no codebase attached. It has no way to say "I don't have the file," because nothing tells it a file was supposed to be there. So it does what a language model does when asked a confident question with no grounding: it generates a plausible, well-formatted answer that matches the shape of a real report. We'd already built a second, correct implementation (api) that does read and attach the actual files before calling the model — the bug was that the old, broken draft never got deleted when the new one shipped. Both were selectable, with nothing distinguishing a working scan from a hallucinated one. The existing unit test for the broken version actually asserted the broken
The usual argument for AppSheet over Power Apps is about where the data lives. AppSheet keeps its records in a Google Sheet you own, so if you cancel the subscription the app disappears and the spreadsheet stays. Power Apps keeps them in Dataverse, which is a proper relational database but not a file you can open. That argument is correct as far as it goes. The rows survive. What I wanted to know before relying on it was whether the rows still mean anything once the app that wrote them is gone, because AppSheet writes several kinds of value into the Sheet that only AppSheet knows how to read. So I wrote an audit that answers that question with counts, and runs in Apps Script on the same spreadsheet. Open the Sheet behind a typical field-service app and three column types look different from what you see in the app. Column type in the app What the cell holds What breaks without the app Ref The key of the row it points to, often a random string from UNIQUEID() such as 3f9a1c7e Nothing checks that the key still exists EnumList of Ref Several keys joined by space, comma, space: P1 , P2 , P7 A plain split(',') reads it wrong Image or File A path relative to the app's folder in Drive, such as Jobs_Images/3f9a1c7e.Photo.jpg The path means nothing unless you know which folder it is relative to None of this is a defect. A Ref column storing a key is how every database stores a relationship. The difference is enforcement. Dataverse refuses to delete a customer that jobs still point to. A Google Sheet has no such rule, and AppSheet only removes child rows automatically when the relationship is marked "Is a part of". Delete a customer through the app without that setting, or delete a row directly in the Sheet, and the jobs that referenced it keep a key that resolves to nothing. Inside the app this is easy to miss, because nobody browses jobs looking for a customer that is no longer there. Outside the app, in an export, a pivot table or a replacement build, it becomes a row whos