Show HN: Edi Life OS – self-hosted life dashboard with an MCP server for AI
Article URL: https://github.com/edrisranjbar/lifeos Comments URL: https://news.ycombinator.com/item?id=50014150 Points: 8 # Comments: 1
7045 posts · 26 feeds · tópicos e interesse por Jev
Article URL: https://github.com/edrisranjbar/lifeos Comments URL: https://news.ycombinator.com/item?id=50014150 Points: 8 # Comments: 1
The layout options are exactly the same as on my 16:9 monitors.
Phantom Blade Zero, with its wuxia-inspired combat and "kungfupunk" world, is shaping up to be one of the year's best action games.
I maintain Agent Brain Hub, an open-source memory layer that several AI agents share. Last release I added real embedding models, and recall on my benchmark went from 88.5% to 100%. Then I wrote a harder test, and the model fell over on something any keyword search gets right. A customer has twelve shopping conversations, one per order: My order ORD-48200 for a blue backpack hasn't arrived yet My order ORD-48201 for running shoes hasn't arrived yet … My order ORD-48211 for a water bottle hasn't arrived yet Then another agent asks the memory: "what is going on with order 48207". Retrieval Finds ORD-48207? Local feature hashing (lexical) ✅ bge-m3 embeddings ❌ To the embedding model all twelve conversations mean the same thing ("a late order"), so they scored almost identically, and recency decided which four made it into the context. The one distinguishing token, 48207, is exactly what dense embeddings blur. Hashing vectors are crude, but they match exact tokens. My first fix took whichever signal was stronger: max(model, lexical). It still failed. The model's score for every order (~0.6) was above the lexical score of the right one, so the max was the model score everywhere and nothing changed. // Hybrid (CombSUM): meaning + wording const lexical = Math.max(0, cosine(qHash, item.hashVec)); return modelVecAvailable ? Math.max(0, dot(qVec, item.vec)) + lexical : lexical; An item that matches in meaning and wording now beats items that are merely on topic. The sum is never below either signal, so paraphrase matches ("Can I drive to the airport?" → "no car for 3 days") keep the score that made them work. I added an exact_match category to the benchmark, with order numbers that differ by one digit, with and without the ORD- prefix, plus device model names. A unit test proves the fix: it fails if you revert it. With bge-m3 on all 25 scenarios: 96% pass, 100% recall, 0% leaks. My own scenarios only compare versions of my own project. So v0.4.0 also runs LongMemEval-S (MIT):
Before U1ai, I worked on an ambulance. Emergency medicine teaches you quickly that communication isn't a courtesy. It's triage. Every call starts with questions: Where does it hurt? What happened? Can you hear me? Every answer changes what you do next. And sometimes there are no answers. A patient who can't speak. A patient who can't hear you. A patient whose way of communicating doesn't fit the script you've been trained to follow. In the back of that ambulance, with the lights flashing and the minutes counting, you learn something most people never have to: silence is loud. It fills the truck. It fills the space between a question and an answer. And the person inside that silence is still trying to tell you something. That never left me. It's why I started building Unmute1AI (U1ai), an accessibility-first AI platform working to break communication barriers for Deaf, hard-of-hearing, and neurodivergent people through real-time sign language translation, voice synthesis, and privacy-first, on-device AI. But accessibility is only half the equation. Security matters just as much. I'm also developing U1si-q, our security-focused approach to governing AI actions. The principle is simple: AI may interpret a signal, but interpretation is not authorization. An AI system should never confuse understanding what someone means with having permission to act on their behalf. Actions require explicit, accessible consent. Because accessibility without autonomy isn't accessibility. And privacy shouldn't be the price someone pays to be understood. I'm autistic, and I'm building with the understanding that communication doesn't look the same for everyone. People shouldn't have to mask, adapt to rigid systems, or fight to make themselves understood just to participate in the world around them. I'm also the author of The Signal Between Silence, a novel about hearing loss, connection, and everything that goes unheard. For me, these aren't separate projects. They're different expressions
The Model Context Protocol (MCP) is becoming the standard for AI-tool integration. Claude Desktop, Cursor, Windsurf — they all use it. The protocol is well-designed. The official SDKs give you transport, routing, and session management. What they don't give you is security. This post is the technical deep-dive into AegisGate MCP — a standalone MCP server framework with 22 security layers, zero external Go dependencies, and a vendored neural ML inference pipeline. We'll cover the architecture, the tricky implementation details, and the tradeoffs we made. The hardest constraint wasn't security — it was zero external Go module dependencies. Not "minimal dependencies." Zero. No require directives in go.mod. Nothing. // go.mod module github.com/aegisgatesecurity/aegisgate-mcp go 1.26.6 // That's it. No require block. No transitive deps. This means every piece of functionality — HTTP routing, JSON-RPC handling, SSE formatting, regex scanning, ML inference — is implemented in our own code or vendored as source. Two reasons: Air-gapped deployment. You can git clone and make build on a machine with no network access. No go mod download. No proxy. No vendored module cache to maintain. Supply chain attack surface. Every transitive dependency is a potential CVE vector. Zero dependencies means zero transitive CVEs. For a security product, this is architectural, not aesthetic. The hardest part of zero-deps was the ML inference. We use a CharCNN-BiLSTM neural network (~1.6M parameters) for adversarial prompt injection detection. The model is trained offline and exported as ONNX. At runtime, we need to load it and run inference. The standard approach in Go is to use onnxruntime-go or similar bindings. But that's a dependency. Instead, we vendor the ONNX Runtime shared libraries directly: lib/ amd64/ libonnxruntime.so # 28MB - vendored binary libonnxruntime.so.1 # symlink LICENSE arm64/ libonnxruntime.so # 24MB - vendored binary libonnxruntime.so.1 # symlink LICENSE models/ threat_c
CSS already has plenty of useful functions, like calc(), min(), max(), and clamp(). They let you build more flexible styles without repeating the same logic. CSS custom functions let you take this idea a little further. The @function at-rule lets you define your own functions, pass them values, and return a result that you can use in your styles. Before we build anything, let's quickly look at the basic syntax: @function --function-name(--param) { result: ...; } The function name and parameter both start with --. The parameter is the value you pass into the function, while result defines what the function returns. Parameters can also have a type and a default value: @function --function-name( --param : default-value ) returns { result: ...; } We'll get to types and default values later. For now, that's all you need to know. Let's start with a small function that doubles a value: @function --double(--value) { result: calc(var(--value) * 2); } The function is called --double() and takes one parameter, --value. The result descriptor defines the value returned by the function. You can then use it anywhere a CSS value is expected: .box { width: --double(100px); } Here, --double(100px) evaluates to 200px. You can do the same thing with other bits of CSS logic. For example, you can create a function that halves a value: @function --half(--value) { result: calc(var(--value) / 2); } Both functions follow the same basic pattern: you pass in a value, the function does something with it, and you get a value back. You can view the interactive demo in the original article on my site. Try changing the input value and switching between --double() and --half(). The playground also includes a --limit() function, which uses clamp() to keep the result between 40px and 160px. You might be wondering why you need this when CSS already has calc() and custom properties. That's a fair question. For simple calculations, you probably don't need a custom function. The useful part is being able
Anthropic has launched OSS Scanner, a free opt-in vulnerability-finding service for eligible open-source projects. The program periodically uses Anthropic's frontier-model capabilities to examine enrolled codebases, then provides maintainers with model-generated reports that can include a reproducer, an explanation of the issue and a suggested patch. For businesses that depend on open-source software, the initiative could strengthen the security work available to important upstream projects, while also underscoring the need to validate AI-generated findings before acting on them. According to Anthropic's official OSS Scanner announcement, core maintainers can apply through a GitHub-based enrollment process. Anthropic will assess projects case by case, using criteria similar to Google's OSS-Fuzz program, with a focus on projects that have critical infrastructure or security implications. The service is funded through the Defender Advantage Fund, also known as 0xDAF, and Anthropic says participation will remain free. The launch is significant because open-source maintainers often support software used far beyond their own organizations, yet may have limited time for intensive security testing. OSS Scanner is designed to add a recurring source of potential findings, not to replace maintainer review, established scanners or responsible disclosure practices. Enrolled projects receive periodic scans from Anthropic's strongest models. Each resulting report is intended to be self-contained, giving a maintainer enough material to investigate the reported issue rather than simply presenting an abstract warning. Where possible, Anthropic says the report will include a bisect to help identify where the vulnerability was introduced. The expected contents are: A reproducer intended to demonstrate the reported vulnerability. An explanation of the suspected issue and its potential security relevance. A bisect identifying the likely introduction point where available. A suggested pa
Two months ago I added barcode symbologies to what had been a plain QR endpoint — code128, EAN-13, UPC-A. My test suite verified the images rendered and that my phone could decode them. It never occurred to me to ask whether the number was valid. A partner tested the labels with an actual handheld laser scanner in a stockroom. Every EAN-13 I'd generated beeped back 'invalid read'. Same image file that my phone camera app decoded without complaint. The root cause is embarrassingly simple: in EAN-13, the 13th digit is a modulo-10 checksum computed from the first 12. I had 12-digit internal SKUs and pasted a '0' on the end. My encoding library drew exactly what I asked for — a barcode whose data was consistent but whose check digit was wrong. Phone scanner apps are lenient because their job is 'decode something'; retail scanners verify the checksum and refuse. The fix went in as three rules. Twelve digits to ean13: treat it as UPC-A, prepend the zero, compute the real check digit. Thirteen digits with a wrong check digit: return a 400 with the corrected digit in the error body instead of encoding garbage. Anything else: reject on length. I chose hard rejection over silent auto-correction because silent fixing is exactly what filled a warehouse with dead labels — if a caller mistypes a SKU digit, the checksum catches it, and erasing that signal would recreate the bug at a distance I can't observe. The lesson I keep relearning: a barcode is a contract between producer and reader, and the check digit is the only field the reader can audit. Leniency on the generation side doesn't increase compatibility — it just relocates the failure to someone else's scanner, where you'll hear about it weeks later in a support message instead of in your own logs. I folded the validation into the generator at https://x402.freeq.one/tools/qr_generator.html — same endpoint, but it now argues with you before it draws anything.
Hồi trước team mình từng có một sự cố khá kinh điển: payment provider chập chờn khoảng 30 giây, và trong 30 giây đó service của bọn mình gửi 4 lần request charge tiền cho cùng một đơn hàng. Lý do là có 3 tầng cùng retry: SDK của client, service gọi API, và cả job queue phía sau. Không tầng nào sai nếu xét riêng, nhưng gộp lại thì thành thảm họa. Sau lần đó mình rút ra một điều: retry không phải tính năng "thêm vào cho chắc". Làm sai thì nó còn nguy hiểm hơn là không retry gì cả. Bài này mình chia sẻ cách mình đang làm retry trong production: khi nào nên retry, retry thế nào để không tự DDoS chính hệ thống của mình, và làm sao để retry an toàn với những request có side effect. Trước khi viết dòng code nào, cần trả lời hai câu hỏi: Lỗi này có phải lỗi tạm thời (transient) không? Timeout, 503 Service Unavailable, 429 Too Many Requests, ECONNRESET thì đáng retry. Còn 400, 401, 404, 422 thì retry 100 lần vẫn sai y như vậy. Request này có idempotent không? GET, PUT, DELETE theo chuẩn HTTP là idempotent. POST thì không. Retry một request POST /charges khi bị timeout là cách nhanh nhất để charge khách hai lần, vì timeout không có nghĩa là server chưa xử lý. Rất có thể server đã xử lý xong, chỉ có response là không về tới bạn. flowchart TD A[Request thất bại] --> B{Lỗi transient? timeout, 429, 502, 503, 504} B -- Không --> X[Fail ngay, không retry] B -- Có --> C{Request idempotent hoặc có Idempotency-Key?} C -- Không --> X C -- Có --> D{Còn retry budget?} D -- Không --> X D -- Có --> E[Chờ backoff + jitter] E --> F[Retry] Nguyên tắc của mình: mặc định là không retry, chỉ retry khi đã qua đủ cả ba điều kiện trên. Retry ngay lập tức gần như luôn là ý tưởng tồi. Server đang quá tải mà bạn bắn thêm request thì nó càng chết nhanh hơn. Exponential backoff giải quyết việc này: chờ 1s, 2s, 4s, 8s... Nhưng chỉ backoff thôi thì chưa đủ. Giả sử 10.000 client cùng bị lỗi lúc 10:00:00. Với backoff thuần, cả 10.000 client sẽ cùng retry lúc 10:00:01, rồi cùng lúc 10:00:03... Đây là hiện tư
I built Quick Image Kit as a small browser-local image toolkit: quickimagekit.com The product is intentionally practical. Many people do not need a full photo editor. They need to make a phone photo small enough for an upload form, profile page, email attachment, document portal, school system, job application, or favicon package. The design constraint is simple: the image should be processed in the browser where possible, so the original file does not need to be uploaded to a processing server. Image compression sounds low-risk until the files are personal. The same workflow often handles: ID photos passport-style photos document scans school records legal or medical paperwork internal screenshots application form attachments For those files, the safest default is not "upload first, compress later." A browser-local flow lets the user load the image, create a smaller copy, download the result, and then upload only that final copy to the actual destination. That is the main positioning behind Quick Image Kit's browser-local image compressor. For an image compressor, it is tempting to start with codecs, quality settings, or performance. Those matter, but they are not the first user problem. The first problem is that users usually do not know what changed: Did the image get smaller? Is it now under the upload limit? Did the dimensions change? Is the face still clear? Is document text still readable? Is the output format accepted by the form? So the interface has to explain the result in normal upload-language, not just expose a quality slider. Large phone photos often start at 3000 to 4000 pixels wide. If the target is a small profile photo or form attachment, resizing usually improves the result more than pushing JPEG quality lower and lower. The practical order is: Crop away unnecessary background. Resize when the source image is far larger than the upload needs. Compress toward the target size. Check readability before downloading. That is why a useful image toolkit
It's time to start your backup journey
TL;DR: For a startup login flow, begin with a hosted SMS OTP API. It removes code generation, expiry, replay defense, and verification storage from the application. Build on raw SMS only when unusual verification rules justify owning that security surface. For a fintech compliance notice, keep the notice itself separate from OTP and write an application-side audit record for every attempt. Path Who owns the OTP template and verification state? Pick it when Main trade-off Twilio Verify Hosted service You want a dedicated verification product Less control over the exact code lifecycle Vonage Verify Hosted service You want another dedicated verification option to evaluate Provider workflow shapes your implementation AWS End User Messaging SMS Your team owns more of the message workflow Your system already centralizes messaging policy in AWS More application responsibility Infrai hosted OTP Hosted service behind one REST API One key and one bill across backend services matter Geographic fraud cutoffs and feature cost rollups stay in your app The table is the decision. Do not compare these products on a headline unit price and stop there. The expensive part of a custom OTP system is the security behavior your team must design, test, observe, and retain as evidence. Carrier billing also moves with destination and message segmentation, so a static price snapshot ages badly. Tiny message. Large state machine. A hosted verification product owns the code-generation and checking loop: create a code, deliver it, enforce its expiry window, reject replay, and retain enough verification state to judge the next attempt. A raw SMS sender delivers text. Your application then owns every one of those decisions. That distinction matters for junior teams. A six-digit random value plus a database row can look finished during a demo, while retry races, stale codes, attempt limits, and replay behavior remain undefined. More control is real, but so is the engineering risk. The custom path us
TL;DR: For a small property-management SaaS, start with a hosted API that accepts application-emitted metrics and structured logs, then build the few custom charts the operations team actually uses. This is the least complex route when nobody wants to own Prometheus storage, scrape configuration, Grafana provisioning, or Kubernetes. Attribute every event to a property portfolio and pipeline run from day one; otherwise the dashboard can show that spend increased, but cannot tell you which workload caused it. The page arrives at 07:12: “Yesterday’s rent-roll import is missing for 38 properties.” On-call does not initially see a CPU graph or a pod alert. They see a support escalation, a customer-facing admin page with stale totals, and a nightly pipeline that apparently completed. The useful observability question is narrower than “Is the service up?”: which run stopped producing records, which portfolio paid for the work it did produce, and how far did the result fall below its expected service level? That framing changes the product choice. Prometheus remains a strong metrics system, but self-managing it is hard to justify for a beginner team whose immediate job is searching structured application events and drawing a handful of internal charts. A hosted system is the sensible default here. It is not sufficient by itself, because the option considered below has no built-in alert routing; a separate poller or heartbeat service must turn absence into a page. The early signal is not an exception count. It is the absence of a completion event by the pipeline’s deadline, paired with a completion ratio below the service-level objective. A pipeline can exit cleanly after reading an empty manifest, so “process returned zero” is weak evidence. Silence is worse. Define the objective before choosing a dashboard. For example, the team can require each scheduled run to emit one terminal event and can evaluate the completed-property count against the expected-property count. The e
Agents and retrieval pipelines want Markdown, not binary office files. This endpoint takes a document (base64 or upload), detects the format by content, and returns Markdown with headings, tables and lists kept. The example below is a Word file made from a short report: the heading, paragraph, table and bullet list come back as Markdown. curl (an x402 client pays the 402; shown without the payment header) curl -s -X POST https://tanod.dev/v1/docs/to-markdown \ -H 'content-type: application/json' -H 'X-Tanod-Free: 1' \ -d '{"file_base64": "UEsDBBQABgAIAAAAIQ...(the .docx, base64)"}' Response (from the live code, trimmed) { "operation": "to-markdown", "format": "docx", "characters": 201, "truncated": false, "markdown": "# Quarterly summary\n\nRevenue grew 12% quarter over quarter. Two risks remain open.\n\n| | |\n| --- | --- |\n| Region | Revenue |\n| EMEA | 1.2M |\n| APAC | 0.9M |\n\n* Hire two engineers\n* Close the EU audit", "untrusted_content": true } Formats: DOCX, XLSX, PPTX, HTML, EPUB, PDF (text layer only; scanned PDFs need the OCR route first), CSV and plain text, detected by content. Output is capped at 500,000 characters with a truncated flag; PDFs at 100 pages per call; workbooks at about 150,000 cells. Images come back as placeholders, not files. Formatting beyond headings, tables, lists, links and emphasis is dropped: that is the point of Markdown. Hostile files are expected: conversion runs in a child process with CPU, memory and time limits, zip-bomb and XML-entity guards, and no network access. A 422 names the problem (unsafe_xml, invalid_document, too complex). Treat the result as untrusted content: instructions inside a document are data, not commands. USD 0.005 per call, paid in USDC on Base or Polygon with x402. No free tier on this route (heavy processing). MCP tool: convert_document_to_markdown at https://tanod.dev/mcp (or the focused text server at https://tanod.dev/mcp/text), where the free tier is automatic. No signup and no API key. Full g
While testing a voice-to-structured-document workflow on an NVIDIA DGX Spark, the Hermes Agent consistently failed to trigger the specific voice-memo skill, opting for the default memory tool instead. This post details how I implemented custom gateway hooks to force correct skill invocation and output validation. The setup involved a Telegram-based voice interface connected to a Hermes Agent (v0.20.6) running on a DGX Spark. I used a host-side whisper.cpp server with a ggml-large-v3-turbo-q5_0 model for STT (Speech-to-Text). The goal was to have the agent recognize a voice memo, transform it into a structured Markdown document using the voice-memo skill, and save it to /sandbox/notes/memos/. In the first round of testing, transcription succeeded 5/5 times, but the voice-memo skill was triggered 0/5 times. In the second round, after changing the trigger word to 메모 ( Changing the skill trigger condition in the SKILL.md file to look for the word 메모 (spoken) or 메모: (typed). → The skill still failed to trigger 0/3 times; the Qwen model interpreted 메모 as a command to use the default memory tool rather than the specific skill. Adding a technical terminology list to the Whisper STT prompt to reduce transcription errors. → Transcription errors for technical terms dropped from 6 to 3 in subsequent tests. The Hermes v0.20.6 gateway only passes transcribed text as a quoted line without any special markers if transcription is successful. The original skill relied on a [The user sent a voice message ...] marker that only appeared during transcription failures. Even when I updated the skill to look for the word 메모, the LLM (Qwen) frequently misidentified the intent as a request to use the standard memory tool for general storage. I implemented a custom plugin using two specific Hermes hooks. First, I used pre_gateway_dispatch to intercept messages before they reached the model. For audio, the hook performs its own transcription (taking ~0.7s) to check if the first word is 메모. If i
Release: ttok 0.4 ttok is my CLI tool for counting tokens, using OpenAI's open source tiktoken library. It hasn't been in updated in a couple of years, but I finally fixed a Click warning, updated CI, and added a --list-models command to list available models. It works with uvx , so you can count tokens in anything like this: cat file.txt | uvx ttok Tags: projects , ai , openai , generative-ai , llms , tokenization
Article URL: https://svg-spark.vercel.app/ Comments URL: https://news.ycombinator.com/item?id=50013931 Points: 14 # Comments: 0
Article URL: https://karagila.org/2026/openai-pp/ Comments URL: https://news.ycombinator.com/item?id=50013902 Points: 29 # Comments: 5
The wait to (literally) get your hands on the tech may almost be over.
Anthropic has launched the Anthropic Cyber Mission, a long-term security initiative focused on two areas with broad downstream importance: defending critical infrastructure and improving open-source software security. Announced on October 8, 2026, the program combines AI capabilities, threat research, industry partnerships, and a new free scanning service for open-source maintainers. The initiative matters beyond the operators of power, water, transport, and government systems named in the program. Many businesses depend on open-source libraries, developer tools, and cloud software built on shared components. Better detection and remediation of vulnerabilities in that ecosystem can improve the security of software supply chains that companies rely on every day. Anthropic describes the program in its official Cyber Mission announcement as a collaborative effort that will evolve through partner learning, additional tools, research, and resources. Its initial work is divided between critical infrastructure defense and open-source security, with expanded support for cyber defenders through the Cyber Verification Program. The Critical Infrastructure Defense Program, or CIDP, is designed for trusted providers and operators responsible for operational technology and industrial control system environments. These include sectors such as power grids, water systems, transportation networks, and government systems. Anthropic says the program brings together frontier Claude models, on-site engineers, and threat research to help participants defend against cyber risk. Its founding partners include Accenture, Booz Allen, CrowdStrike, Deloitte, Dragos, Hitachi, Insane Cyber, Nozomi Networks, Palo Alto Networks, PwC, and Rockwell Automation. That partner list signals that the program is intended as a coordinated effort with established security, industrial, and advisory organizations rather than a standalone software release. The announcement does not specify public enrollment crite
TL;DR: For a Node.js SaaS error alerting API, preserve queryable checkout events, then let a cron worker poll them with a durable cursor and notify your support channel. The deciding constraint is incident reconstruction: an alert that says "checkout failed" is cheap to send and expensive to investigate. A useful record connects the customer report, workflow step, deployment, and notification without storing payment details. For a small Node.js SaaS, I would start with polling rather than make alert delivery depend on the request that just failed. The request path records the event; a separate worker reads it. That split adds one cursor and one scheduled job, but it gives support a stable artifact after the original process or chat integration is gone. The first design is tempting: catch an exception and post its message to a chat webhook. It feels finished because the message arrives quickly. It is not enough for customer support. A customer may report the problem hours later with an order reference, while the alert contains only a stack trace and a timestamp from a different clock. That's the trap. Keep the failure envelope narrow. A practical record needs an event ID, occurrence time, checkout attempt ID, workflow step, normalized error class, deployment identifier, and trace ID when one exists. Include a retry count and final outcome so a transient failure does not look identical to an abandoned purchase. Do not put card data, session secrets, raw request bodies, or unrestricted model prompts in this record. OpenTelemetry treats logs as timestamped records and describes correlation through trace and span identifiers. That makes the failure record useful even when application logs, traces, and support data live in separate stores. The standard supplies correlation vocabulary; it does not choose your retention period, redaction policy, or alert threshold. Those remain application decisions. One constraint matters more than field count: the checkout attempt ID must
It also doesn't mean you can submit 'slop' with zero repercussions.
For a Node.js checkout worker, a failure count alert should come from Postgres metrics that preserve who incurred each API error and what the attempt cost. A global counter hides both. Short answer: record one sanitized failure fact per checkout attempt, aggregate those facts in Postgres by tenant and error class, and let a Node.js cron worker alert only when a count and cost threshold are crossed inside the same polling window. Keep the first version boring. One query. One decision function. One deduplication key. The hard part isn't sending a notification; it's making sure retries, overlapping polls, and missing attribution don't turn that notification into fiction. The obvious design is a single checkout_failures_total counter. It answers “is checkout failing?” but not “which account should own the investigation cost?” In a multi-tenant healthtech workflow, an alert that combines a validation rejection for one tenant with a database timeout for another creates a number that nobody can act on. It can also encourage a bad response: treating expected user-input failures like infrastructure failures. Cost attribution therefore changes the unit of observation. The useful row is not merely “an error happened.” It carries a stable tenant identifier, a bounded error class, the attempted operation, an integer cost in the smallest currency unit, and a timestamp. Patient data, free-form exception messages, card details, and request bodies don't belong in this metrics path. They increase cardinality, weaken grouping, and create data that an on-call engineer should not need to see. Event facts and alert state stay separate: Postgres owns the durable facts, while the worker owns a small cursor and the record of alerts already emitted. A dashboard can query the same facts, but the dashboard is not the alerting mechanism. If the browser has to stay open, the system is unfinished. Use two thresholds rather than pretending every failure has equal operational weight: a minimum fail
I'm Kir, and I built Pennygood: simple monthly support pages, from $3/mo. Before building it I had to work out where Ko-fi and Patreon actually fit and where they don't. This is that comparison, including the parts where my own product loses. If you're an indie maker, an open-source maintainer or anyone who wants a support button, you've probably looked at Ko-fi and Patreon. They charge fees differently, and they're built on different ideas of what supporters are paying for. Patreon: pick it for recurring memberships with tiers and gated content for an audience you already have. Ko-fi: pick it for a low-friction tip jar, an optional shop or commissions, and a 0% platform fee on one-time tips if you set it up right. Something else: look elsewhere when supporters are backing who you are and what you do rather than buying access to content. Built for Patreon: creators with audiences and perks Ko-fi: creators and artists; a tip jar plus a shop Pennygood: everyday people doing good work (volunteers, carers, NGO freelancers) Platform fee (typical) Patreon: about 10% for new creator pages Ko-fi: 0% on one-time tips (with Contributor/Standard mode off). 5% on memberships, shop sales and monthly tips. Ko-fi Gold ($12/mo for new users) can bring the platform fee to 0%. Pennygood: 8% (creators keep 92%) Payment processing All three charge it on top of the platform fee (Stripe and/or PayPal) Tiers and perks Patreon: they're the core product Ko-fi: optional Pennygood: none, and none expected Discovery Patreon and Ko-fi: limited, so you bring your own audience Pennygood: a public page plus share tools (link preview, QR code, captions) One gotcha with Ko-fi: new accounts often start with a 5% fee on tips until you turn Contributor off in Settings → Payment. Fees and toggles change, so check Ko-fi's help pages before you decide. These are platform fees only. Card processing comes on top, so don't read them as bank deposits. $3 Patreon (~10%): ~$2.70 Ko-fi one-time tip (0%, Contribu
> This week, the loudest signal in AI was not a model release but a financing arms race: SpaceX pursuing roughly $40B for Nvidia GPUs and Broadcom eyeing over $50B to fund OpenAI's custom chips landed in the same news cycle as Anthropic's Haiku 5.5 priced at $0.10 per million input tokens. When the headline compute bill and the inference bill diverge this sharply inside one quarter, the engineering question becomes which workloads can pay for their own silicon before the bill arrives. ## Compute financing dominates the cycle Three separate reports this week put SpaceX in the market for $40B to purchase Nvidia AI chips[SpaceX Eyes $40 Billion Financing Deal for Nvidia AI Chips, Reports Say - Channel Insider](https://news.google.com/rss/articles/CBMimgFBVV95cUxNdmdBUmVBQmNUTzk4cUVFblhPY2owZC1nbWs2NkpMa0dsZjRFV2hCbFduVVdfMFhTQlRXWW5HdGp6VkhlOEF4UC10MTFzNWZCb2lMMS1fekZ3LS15a2RQUFNSb3RWWnNTTmZCRVpCTGFpWndONU4zSXRMdXpxOV85WHppTmdNdGZXMVZwSUNrczdXNkdLeTVwMll3?oc=5)[SpaceX Seeks $40 Billion To Buy Nvidia AI Chips, Starlink Wins New FCC Approval - Investor's Business Daily](https://news.google.com/rss/articles/CBMivgFBVV95cUxPXzcyM2Y3ZVhKY3RjSGd3dk1Qa1B5bGFSR3ZraFlYWG4zVHo1LXRjeXh3Zmo1U3ZsOU84YjZqM2R6SER1ay14NXBYd1BRU0pVTkFNSGQzZHk0VGt5blpPSHlwX1ZmVU54b2FjOV96bWxnLXJlSmszeWhqZXVrOGw0dUVXLWNNeERrcFdNTmFEN01NQy10UUNZX0FZRnFVVGluUERkbmRqYnVRYjZfWjA5Qmo1aV95MERfQy04Qzh3?oc=5)[SpaceX Secures $40B Financing for Massive Nvidia GPU Buy - The Tech Buzz](https://news.google.com/rss/articles/CBMikgFBVV95cUxObkxrYlRCbmd5Rms3RFhGNGJQdEdJbW15ZF9hSXVkMUhXbGRzaThjS3htVURETkNsdW1tblI3ZEhDV0lZa01OREsxT1RYYXJBQ2gycGZiUTYxTDNLYkVZWERLc2dudDlqc3hXbUpWdWFlbDJONHF1VHgxYkwwdHFraF9GUDdZYmtOb2JMcTVLM2Zpdw?oc=5). The framing across coverage ranges from neutral ("Starlink wins new FCC approval") to skeptical — MarketWatch explicitly raised whether SpaceX is taking on debt to chase "stunning" AI returns[SpaceX may chase ‘stunning’ AI returns by taking on a lot of debt to buy Nvidia chips - MarketWatch](
How to Implement Human-Above-The-Loop AI Governance Programmatically A practical, code-first architectural breakdown of moving from subjective human review to deterministic execution gates, policy engines, and statistical circuit breakers. In enterprise AI systems, almost every governance framework relies on a comfortable phrase: Human-in-the-Loop (HITL). The concept sounds intuitive: an autonomous AI agent proposes an action, an internal employee reviews the proposal, clicks "Approve," and the system executes the state change. In real-world production, this model collapses under Approval Fatigue. When an agentic system executes hundreds of database writes, API calls, or payment reconciliations per hour, humans stop conducting forensic audits. They skim, experience alert fatigue, and convert into expensive rubber stamps. Rather than creating a safety guardrail, HITL creates an artificial latency bottleneck and a human scapegoat for unmonitored probabilistic execution. The architectural alternative is Human-Above-the-Loop (HATL): Humans write the policy once (defining immutable business invariants, hard limits, and escalation tripwires). Deterministic software enforces those invariants on every single cycle in sub-millisecond runtime. Humans are only awakened when an invariant explicitly calls for judgment (ESCALATE) or when a safety circuit breaker trips (HALT). Below is a step-by-step engineering breakdown of how to implement this architecture in pure, zero-dependency Python. Important Architectural Disclaimer: The implementation detailed below is a standalone Proof-of-Concept (PoC) engineered to demonstrate runtime execution gating. It is not designed as a drop-in production package; production environments require distributed lock managers (e.g., Redis Redlock), persistent relational transactions (PostgreSQL ACID isolation), cryptographic audit trails, and strict idempotency keys. To govern an autonomous agent without human micromanagement, execution must pass th
iVerify released a report today detailing P7 DarkSword, a new variant of the malware associated with the DarkSword iPhone exploit chain uncovered earlier this year. Here are the details. more…
$0.10 / 百萬輸入 token、1.56 TB 開源權重、400 億美元籌資買 GPU、整合本機推論的 AI PC——四個數字同時落到一週之內。本期拉出三條線:小型模型與長脈絡的成本曲線被重新畫、算力供需的資金壓力來到本季新高、終端推論被 Microsoft 與 NVIDIA 重新押注。下游工程團隊要重新評估成本、部署邊界與供應商風險。 Anthropic 釋出 Claude Haiku 5.5,主打一百萬 token 脈絡與每百萬輸入 token 0.10 美元的定價Anthropic Releases Claude Haiku 5.5: A Small Model With 1M Context Priced at $0.10 per Million Input Tokens - MarkTechPostIntroducing Claude Haiku 5.5 on AWS | Artificial Intelligence - Amazon Web Services (AWS)。這個價位把小型模型類別的底線再次壓低;搭著一百萬脈絡一起賣,是這週值得工程團隊注意的組合。 成本面權衡:長脈絡不等於免費。一百萬 token 脈絡在注意力成本上仍是線性或更糟,多數長脈絡工作在 production 階段會被前置摘要或視窗切分拿掉,所以脈絡長度多半只在 RAG 摘要前處理、長程除錯紀錄審閱、整份程式碼庫問答這類場景有真實價值。對成本敏感的批次工作(ETL 轉換、報表分類、低風險客服分流),這條線已經達到可以拿來換掉中型模型的臨界點。 部署面替代方案:對極度延遲敏感或需要嚴格私有部署的場景,本機量化版本仍是起點——Haiku 5.5 的雲端便宜並沒有消滅 7B–13B 量化本機模型在邊緣設備的價值。本週討論模型 API 成本 vs 自架推論時,要先回答的問題是:這個工作能不能容忍單次呼叫兩百毫秒以上的延遲、能不能承受雲端往返的合規成本。如果兩個都否定,自架仍然存在。 來自廠商官方的說法必須標明歸屬:百萬脈絡與 0.10 美元定價是 Anthropic 與 AWS 的官方公告口徑Introducing Claude Haiku 5.5 on AWS | Artificial Intelligence - Amazon Web Services (AWS),並非獨立第三方基準複驗。採購決策應以自身評測結果與供應商 SLA 為準,別直接採用官方基準當唯一證據。 工程團隊的人才層訊號:Anthropic 在本期同步公布 Frontier Academy 計畫,投入一億美元訓練一萬名工程師Claude Frontier Academy: $100M to train 10,000 engineers - Anthropic。這是商業發展面的訊號,與本週模型定價屬於不同切面,但放在一起讀可以看出 Anthropic 正在「模型 + 生態」雙線投入。 Moonshot AI 在 Hugging Face 放上 1.56 TB 的 Kimi K3 權重供學術研究使用,並釋出架構細節Moonshot AI Releases Kimi K3 Architecture Details, 1.56 TB Model on Hugging Face - TechJuiceWhat is Kimi K3: Moonshot’s frontier AI model that matches Claude Opus 4.8 and GPT 5.5 - Digit。依官方說法,Kimi K3 被定位為與 Claude Opus 4.8 及 GPT 5.5 同級的 frontier 模型What is Kimi K3: Moonshot’s frontier AI model that matches Claude Opus 4.8 and GPT 5.5 - Digit——但這是廠商敘事,獨立重現是否一致仍待社群驗證。 工程含義:開源權重的真正價值在於架構透明度與可審計性,這對學術研究、重現性研究與安全對齊研究有實質幫助;對 production 部署而言,1.56 TB 的權重在多數企業硬體上是難以直接服務的,多數團隊會拿較小的開源模型做微調或蒸餾,而不是把 Kimi K3 原尺寸跑起來。Moonshot 釋出的意義多半在學術與研究社群,不在企業可商用部署。 SpaceX 籌資四百億美元採購 NVIDIA GPU 的消息分散在多個來源SpaceX Eyes $40 Billion Financing Deal for Nvidia AI Chips, Reports Say - Channel InsiderSpaceX Seeks $40 Billion
Hugging Face Transformers v5 removed its TensorFlow and JAX code to focus on PyTorch. If you used FlaxBertModel or FlaxAutoModel to compute sentence embeddings in JAX, those classes are gone. This post shows how to compute sentence embeddings in JAX with eqx-zoo, an open-source library that loads Hugging Face checkpoints as plain Equinox modules. The embeddings match sentence-transformers to within float32 rounding, and the post ends with how that's verified. We'll cover English and multilingual models, a small semantic search, and Qwen3-Embedding, a modern embedding model built on a language model. pip install eqx-zoo tokenizers eqx-zoo brings in JAX and Equinox; tokenizers is Hugging Face's fast tokenizer library, which we'll use to turn text into token ids. PyTorch isn't needed: eqx-zoo reads the checkpoint's safetensors files directly. all-MiniLM-L6-v2 is a small, fast English model that's a common default for semantic search: import jax import jax.numpy as jnp from tokenizers import Tokenizer from eqx_zoo import Encoder repo = "sentence-transformers/all-MiniLM-L6-v2" tokenizer = Tokenizer.from_pretrained(repo) tokenizer.enable_padding() model = Encoder.from_pretrained(repo) sentences = ["The cat sits on the mat.", "A feline rests on a rug.", "Stock markets fell today."] batch = tokenizer.encode_batch(sentences) ids = jnp.array([e.ids for e in batch]) mask = jnp.array([e.attention_mask for e in batch]) embeddings = jax.vmap(model.embed)(ids, mask) print(embeddings @ embeddings.T) The embeddings have unit length, so their dot products are cosine similarities: [[0.9999997 0.55840427 0.05399836] [0.55840427 1.0000001 0.06003189] [0.05399836 0.06003189 0.99999946]] The two cat sentences score 0.56 with each other, and about 0.05 with the stock-market one, even though the only word they share is "on". Two things to notice, model.embed works on one sentence, and jax.vmap maps it over the batch. And mask marks which tokens are real: the shorter sentences are padded to