AETERNAE AI RESEARCH LLC INDEPENDENT RESEARCH
ÆAETERNAERESEARCH
Sign inRequest access
Æ / PUBLIC MALWARE INTELLIGENCE

Follow the evidence.

Published file metadata, source observations, indicators, and research history in one bounded catalog.

1,308Reachable catalog records
5 / 55Current catalog page
24Maximum records per page
0Samples downloaded by this page

Feed collection status

Sources represented on this page. Publication and observation dates describe the content; successful batch dates describe local collection. A recent batch does not certify complete coverage or current provider availability.

1 sources: 0 stale, 0 needing attention, 0 paused, 0 unverified.

Review source update dates and status
  • intelligence_src_6dc544294b7f21f98aRecent successful batchLast successful batch: Last attempt:

Stale means older than twice the recorded collection interval, with a minimum of one hour; without an interval, the threshold is 24 hours. Cached content remains available while a feed is stale, paused, or unverified.

Clear filters
1,308 MATCHING RECORDSMETADATA ONLY / SOURCE ATTRIBUTION PRESERVED
REPORT1 SOURCE

AI Cost Governance in AWS Billing: What It Counts, What It Blocks

TL;DR AI cost governance is a new, free part of AWS Billing and Cost Management. It shows spend on Bedrock, Quick and Kiro within minutes and lets you set budgets on it. For FinOps and platform teams who are tired of finding out about AI spend on the invoice. Launched 1 Dec 2026 in all commercial Regions except GovCloud (US) and China. Dashboard and budgets cost nothing. Action-enabled budgets follow normal AWS Budgets pricing. Watch the limits: hard blocking is Bedrock only, account level only, and it is an SCP deny, not a throttle. User and group budgets are preview and alert only. My view: turn on the dashboard today, and add a blocking budget to non-production accounts first. Contents What launched What is and isn't counted How blocking works User and group budgets (preview) Pulling the data from code What this means for you Related posts Sources What launched On 1 December 2026 AWS announced AI cost governance in Billing and Cost Management. It is two things: an AI cost dashboard (open AI Costs in the console) and a new AI cost budget type in AWS Budgets. The pitch is that one request to an AI service can fan out into many model invocations, so spend moves faster than normal cloud spend. The old loop was bill, month end, surprise. This one is minutes. Item What AWS says Services covered Amazon Bedrock, AWS Quick, Kiro Freshness Within minutes of usage Dashboard data starts 25 Nov 2026 (user guide) Budget periods Daily, weekly or monthly, resetting at 00:00 UTC Budget scope Whole organisation, selected linked accounts, or users and groups (preview) Hard stop Bedrock only, account level only, from the management account Price Dashboard and budgets: no additional cost. Action-enabled budgets: AWS Budgets pricing Regions All commercial Regions except GovCloud (US) and China You can break spend down by account, Region, service, model and IAM principal. The product page also lists provider and token type for Bedrock. Per the dashboard guide, model, provider and IAM principal are Bedrock-only dimensions. Kiro and Quick break down by account, Region, usage type and the user dimensions. What is and isn't counted This is where FinOps people should slow down. The dashboard is not "all your AI spend". Per the dashboard guide: Included: Bedrock token-priced model inference, Kiro credits used through credit pooling, and Quick agent hours. Quick hours included in your subscription show as $0. Only overage hours carry a cost. Not included: Quick subscriptions, Kiro seats and credit packs, and Bedrock Provisioned Throughput. Also out of budgets: the budget guide says non-token Bedrock inference and Guardrails aren't tracked in AI cost budgets either. Two cost metrics are on offer. Public On-Demand Cost prices usage at list rates. Estimated Contracted Cost uses your most recently billed rate, including negotiated discounts. Both exclude Reserved Instance and Savings Plans discounts, tax, credits and refunds. And the numbers are estimates. The guide says they can differ from your final bill and from Cost Explorer. For billed figures, it points you to Cost Explorer. Treat the dashboard as an early-warning gauge and the invoice as the record. How blocking works The headline feature is stopping Bedrock spend at a limit. The mechanism is not magic. Per the blocking guide, AWS Budgets creates a service control policy (SCP) tagged budgets:managed, and flips it to a deny when spend hits 100 percent. The requirements: Account-level budget, created from the Organizations management account. All features enabled in Organizations, and SCPs turned on at the root. The budget covers only Bedrock, with All models, and the only filter is linked account (up to 100 accounts). The AWSServiceRoleForBudgetsActionExecution service-linked role is allowed. When the limit is hit, the SCP denies bedrock:InvokeModel* (so Converse and ConverseStream too), bedrock:CreateModelI

First reported Dec 01, 2026 18:18 UTCCatalog metadata updated Dec 01, 2026 18:22 UTCOpen evidence record
REPORT1 SOURCE

Claude Managed Agents on Bedrock (Preview): What Runs Where, What's Missing

TL;DR Claude Managed Agents for Amazon Bedrock: AWS runs the agent loop and the session history, your tools (bash, file edits) run in your own AWS account. For teams that want long-running Claude agents without writing the loop, and want IAM, CloudTrail and CloudWatch around them. Preview, announced 1 December 2026, in 14 Regions including Ireland and London. Price: no extra charge in preview. You pay for model tokens and the AWS resources underneath. GA pricing is not stated. Watch: IAM role credentials only, no web search or web fetch built in, and AgentCore Gateway as the only MCP route. My view: worth a proof of concept, not yet worth betting a production design on. Contents What launched How it works Where tools run, and why that matters What the preview leaves out What this means for you Related posts Sources What launched On 1 December 2026 AWS announced Claude Managed Agents for Amazon Bedrock in preview. Anthropic built it and tunes it for Claude. AWS operates it. The launch post lists the sort of work it is aimed at: modernising legacy systems, managing security incidents, running research experiments and gathering audit evidence. The Bedrock user guide describes the model simply. You define an agent, create a session, and send the session messages. The service runs the loop and calls the model. The tools run in an environment you own. Item What the docs say Status Preview, under the AWS "Beta Service" terms. API, IAM action names and endpoints can change before GA Announced 1 December 2026 Regions 14: us-east-1, us-east-2, us-west-2, ca-central-1, sa-east-1, eu-central-1, eu-west-1, eu-west-2, eu-north-1, ap-south-1, ap-northeast-2, ap-southeast-1, ap-southeast-2, ap-northeast-1 Endpoint https://bedrock.<region>.amazonaws.com/anthropic/v1 Auth SigV4, signing service bedrock, IAM role credentials only. IAM user or root credentials get HTTP 403 Headers anthropic-version: 2023-06-01 and anthropic-beta: managed-agents-2026-04-01 Price No additional charge in preview. GA pricing: not stated Terms Third-Party Content from Anthropic, same terms as Anthropic models on Bedrock The API follows Anthropic's own Managed Agents API, which is in beta on the Claude API. Anthropic's docs list Bedrock as one of the places it is available, and say some features and session behaviour differ there. The AWS guide spells out those differences, and I cover them below. One oddity. Anthropic's product page still says Managed Agents is currently available on Claude Platform on AWS, and quotes its own price of $0.08 per session hour on top of tokens. That is Anthropic's pricing for its own service. It is not the Bedrock price, and I would not read it across. How it works The guide defines six concepts. Four matter day to day. Agent. A versioned definition: model, system prompt, tools, skills, MCP servers, and the IAM role its sessions run as. Every change creates a new version. Environment. Where the tools run. Either a sandbox on AgentCore Runtime in your account (one container per session) or a self-hosted machine. There is no environments API. The session names the runtime ARN directly. Session. A stateful conversation between one agent and one environment. It keeps history across messages. Events. What you send (user.message, user.interrupt) and what comes back (agent messages, tool calls, status changes). You can list them or stream them over SSE. The turn ends when session.status_idle arrives, and its stop_reason tells you why. The guide is blunt that an idle session is not proof the task worked. Read the tool results. Here is the agent-create call from the first-agent tutorial. It is copied from the docs and the JSON is syntax-checked, but I have not run it or deployed anything. { "name": "first-agent", "execution_identity": { "type": "aws_role", "role_arn": "arn:aws:iam::111122223333:role/ClaudeManagedAgentsSessionRole" }, "model": "us.anthropic

First reported Dec 01, 2026 18:18 UTCCatalog metadata updated Dec 01, 2026 18:22 UTCOpen evidence record
REPORT1 SOURCE

CloudWatch Omni Agent Experiments, Agent Cost and SLOs: A CI Gate for Your Agents

TL;DR CloudWatch Omni now has agent experiments (a pass/fail release gate for agents), agent cost (estimated spend per agent, model or session) and SLOs. For teams running agents in production who want regressions caught in CI and cost visible before the bill. Announced 1 Dec 2026. Agent cost is in preview. Available in the 12 Regions Omni supports. Pricing: standard CloudWatch rates plus a query charge above an allowance. Evaluations bill at AgentCore Evaluations rates, which I have not read. My view: the experiments gate is the interesting part. Wire it into one pipeline first. Contents What launched Agent experiments Agent cost (preview) SLOs What this means for you Related posts Sources What launched On 1 December 2026 AWS announced three additions to CloudWatch Omni: agent experiments, agent cost visibility (in preview) and Service Level Objectives. I covered Omni itself, and the Systems Manager angle, in an earlier post. This one is only about the new agent features. Item Detail Experiments Test an agent version against a dataset, score with evaluators, get a verdict Agent cost Preview. Estimated cost by agent, model, session or attribute SLOs Availability and latency goals, error budgets, burn-rate alerts Regions Same as Omni: 12 Regions, including us-east-1, us-east-2, us-west-2, eu-west-1, eu-west-2 and eu-central-1 (list) Alert targets Per the launch post, burn-rate and error-budget alerts can trigger AWS DevOps Agent or partner agents such as ResolveAI The full Region list also includes ca-central-1, sa-east-1, ap-south-1, ap-southeast-1, ap-southeast-2 and ap-northeast-1. Agent experiments The Experiments docs describe an experiment as a recorded set of runs for one agent. Each run tests one agent version against one dataset version, scores every case with the evaluators you declare, and, if you attach a rule, ends in a verdict: Passed, Failed or Did not finish. The part I like is the control run. You compare a run with an earlier run on the same dataset version, and Omni pairs them case by case. So the question is not only "is the pass rate high enough" but "did a case that passed last time fail now". There are three ways to start a run: From your code with the SDK. The experiments run command calls your agent wherever it runs (an HTTPS endpoint or an AgentCore Runtime), scores the cases and exits with the verdict. Needs Python 3.10 or later. From your own evaluation code. The console generates a Python script that reports your results. Your code does the calling and scoring. On Omni. A hosted run for agents on AgentCore Runtime, started in the web UI or with experiments start. The exit codes are what make it a CI gate. 0 means passed (or no rule), 1 means a check failed, 2 means did not finish, 3 means a usage, setup or API error. One trap from the docs: a run with no rule has no verdict and exits 0, so a pipeline treats it as passing. Rules A rule has case checks (does each test case pass) and run checks (does the whole run pass). Run checks include pass rate, not-scored rate, evaluator averages, and control-relative checks such as regressed cases and fixed cases. This is the sample rule file from the docs: { "name": "release-gates", "caseCriteria": [ { "evaluator": { "evaluatorId": "Builtin.Correctness", "threshold": { "minScore": 0.8 } } }, { "evaluator": { "evaluatorId": "Builtin.GoalSuccessRate", "threshold": { "passLabels": ["Yes"] } } } ], "gates": [ { "metric": { "passRate": {} }, "bound": { "min": 0.95 } }, { "metric": { "notScoredRate": {} }, "bound": { "max": 0.02 } }, { "metric": { "evaluatorAverage": { "evaluatorId": "Builtin.Helpfulness" } }, "bound": { "min": 0.7 } }, { "metric": { "regressedCases": {} }, "bound": { "max": 0 } } ] } Copied from the docs example and checked for valid JSON. I have not run it. And the run command from the same page, with placeholders in angle brac

First reported Dec 01, 2026 18:18 UTCCatalog metadata updated Dec 01, 2026 18:22 UTCOpen evidence record
REPORT1 SOURCE

Daybreak Red and Blue GPT-6 models on Amazon Bedrock: access, price, data rules

TL;DR OpenAI's Daybreak cyber models are now on Amazon Bedrock: Daybreak Red: GPT-6 Cyber, plus Daybreak Blue: GPT-6 Sol and GPT-6 Luna. For approved security teams only. You need OpenAI Daybreak enrolment first, then your AWS account team enables access. Launched 1 December 2026. Global Standard pricing per 1M tokens: Cyber $20 in / $100 out, Sol $2 / $10, Luna $0.10 / $0.50. Watch: Cyber needs a data retention choice (Private Safety Processing preview, or aws_review), and its price is 10x Sol. My view: start on Blue. Only ask for Red if exploit work is genuinely your job. Contents What launched Red versus Blue Access: two gates Pricing and limits Data handling and Private Safety Processing The Continuum link What this means for you Related posts Sources What launched On 1 December 2026 AWS said that eligible customers can now use three Daybreak models on Amazon Bedrock. Daybreak is OpenAI's cyber defence programme, which gives vetted defenders governed access to frontier models. OpenAI introduced GPT-6 Cyber itself on 5 November 2026. Bedrock is a second route to it. Model Tier What it is Bedrock model ID GPT-6 Cyber Daybreak Red Security-specialised variant of GPT-6 Astra openai.gpt-6-cyber GPT-6 Sol Daybreak Blue GPT-6 Sol with Daybreak Blue access openai.gpt-daybreak-blue-6-sol GPT-6 Luna Daybreak Blue GPT-6 Luna with Daybreak Blue access openai.gpt-daybreak-blue-6-luna Facts common to all three, per the model cards (Cyber, Blue Sol, Blue Luna): Launch date 1 December 2026, lifecycle "Active", end of life no sooner than 1 December 2027. Context window of 1,050,000 tokens. No fine-tuning. Both the bedrock-runtime and bedrock-mantle endpoints are supported, with the Responses and Chat Completions APIs. The announcement also says the models run on Bedrock's inference engine with zero-operator access enforced at the chip during inference. That is AWS's claim, and I haven't seen the detail behind it. Red versus Blue The split matters more than the model names. Daybreak Blue is the defensive tier. Per the launch post it is the starting point for most security teams: vulnerability discovery, detection engineering, incident response. The model cards say what each is for: Blue Sol: reviewing complex code changes, checking whether a patch addresses a finding, multistep incident investigations and responder handoffs. Blue Luna: summarising incoming security findings, extracting affected components, classifying reports for triage. High volume, small jobs. Daybreak Red is GPT-6 Cyber. AWS describes it for advanced, authorised work: vulnerability research, exploit reproduction, exploit chain analysis, mitigation development. The model card lists vulnerability discovery, exploit validation, and remediation and patch development. Some numbers, all from the vendors and not mine: AWS and OpenAI both quote 48.5% on ExploitGym (can the model exploit a specified vulnerability), against 32.1% for GPT-5.6 Cyber. OpenAI says it classifies GPT-6 Cyber as Critical for cybersecurity under its Preparedness Framework, up from High for GPT-5.6 Cyber. OpenAI says its researchers used the model to develop 948 Linux privilege escalation exploits and found 81 previously unknown high-severity Firefox vulnerabilities. I treat these as the labs' own benchmarks. Nobody outside has reproduced them as far as I've read. The classification is the more interesting line. A vendor telling you its own model is Critical is a reason to read the access controls closely. Access: two gates You pass two gates, in order. OpenAI Daybreak enrolment. Complete OpenAI's application form or ask your AWS account team. The model cards call this Trusted Access for Cyber. AWS access. Once approved, you work with your account team to request access on Bedrock. There is no self-service switch in the console that I could find in the docs I read. Bedrock also has a general trusted access programs m

First reported Dec 01, 2026 18:18 UTCCatalog metadata updated Dec 01, 2026 18:22 UTCOpen evidence record
REPORT1 SOURCE

DNS Cutover Evidence: Read Expected Records Before Declaring Propagation Delay

Short answer: before every verification attempt, read the records you expect and classify the result. If the expected record is missing, the customer still has a configuration problem; if it is present but verification fails, treat the result as propagation and retry with backoff. That split gives a game platform a useful rollback decision instead of a vague DNS timeout. For a live game hostname, this matters during a cutover when a tournament lobby, patch manifest, or regional gateway is moving between providers. I want an evidence trail for each attempt: what record we expected, what the authoritative read returned, and which verifier response followed. A retry loop that only calls verify cannot tell support whether the player is waiting on DNS or editing the wrong zone. How can a first read distinguish DNS propagation delay from a wrong record? The operational states look similar from a dashboard: verification is false. They are different for the person holding the pager. A missing value means the requested change has not reached the visible zone, or the customer placed it at the wrong name. A matching value followed by a failed verification means the read path and the verifier are seeing different DNS views, which is a propagation problem measured in minutes to hours. Those messages should not share a ticket template. Don't guess. Read first. This is also where a rollback path becomes practical. Keep the previous hostname target available until a successful read-and-verify pair has been observed from the checks that gate traffic. If the expected record disappears during the window, stop advancing the cutover and tell the customer exactly which name and value were absent. If it is present but verification remains negative, keep the old route eligible while the retry schedule runs. The same reasoning applies across providers, with different control surfaces and failure semantics. Cloudflare DNS offers a broad managed edge product and proxy controls; that is convenient when the traffic policy belongs beside DNS, but it couples a cutover runbook to Cloudflare-specific settings. Amazon Route 53 integrates tightly with AWS health checks and routing policies, which helps an AWS-heavy fleet but adds AWS identity and region concepts to an otherwise simple record change. Google Cloud DNS is a managed authoritative service with familiar zone and record-set resources, while the surrounding IAM and project boundaries can be the deciding operational cost. A self-hosted authoritative stack gives maximum control over timing and data placement, at the price of owning anycast, capacity, and on-call repair. Option Evidence you can collect Boundary to acknowledge Cloudflare DNS API reads plus provider dashboard state Proxy and DNS modes can be confused during a cutover Route 53 Change status and authoritative record reads AWS credentials and policy routing shape the runbook Google Cloud DNS Managed zone and record-set reads Project IAM becomes part of the rollback path Self-hosted authority Full query and deployment telemetry Your team owns fleet capacity and DNS operations A plain REST control plane One HTTP read before each verify call You still need an authoritative source and rollback policy The comparison is less about which service has the shortest API call and more about where deliverability evidence lives. Buy the authority when DNS operations are not your product; build the evidence state machine when the cutover itself is a product capability. Infrai fits a team that wants a plain REST API with no SDK to install, alongside one key and one bill covering 295 routes across 20 modules. An existing Go HTTP client can call it without maintaining a client-library version, and the verification worker and error-capture integration can share a credential configuration rather than introducing a separate service key for each step. The trade-off is that a common API doesn't replace your cutover policy; if you

First reported Dec 01, 2026 18:20 UTCCatalog metadata updated Dec 01, 2026 18:22 UTCOpen evidence record
REPORT1 SOURCE

AWS Continuum: Six Security Launches, What Is GA, and What Each Costs

TL;DR AWS Continuum is AWS's autonomous security service. On 1 December 2026 it grew to six pieces: code vulnerabilities, penetration testing, software supply chain, agents, threats and a web app. GA: penetration testing (continuous pentest and threat modelling) and code vulnerabilities. Preview: supply chain. Gated preview: agents, threats, web app. Pentest is $50 per task-hour, with a 2-month free trial of up to 400 task-hours a month. Code vulnerabilities is a monthly context fee plus $10 per inference unit. Do first: try continuous pentest on one pre-production pipeline, and read its fail-open default before trusting the gate. My view: pentest and code vulnerabilities are real products you can price today. The other four are sign-up forms for now. Contents What launched and what state it is in What each piece does What each one costs Continuous pentest GA in detail What this means for you Related posts Sources What launched and what state it is in Today, 1 December 2026, AWS put out six What's New posts for Continuum. Continuum itself is not new. It was announced in June 2026, and AWS Security Agent penetration testing was folded into it. What's new is the shape of the family and which parts are generally available. The AWS News Blog post from the re:Invent security announcements frames it as a loop: discover, prioritise, validate, remediate. Each piece runs its own autonomous loop from one shared picture of your environment, per the Continuum product page. Here is the status table. Everything in it comes from the launch posts and the product page. Piece Status Regions stated Announced Penetration testing (continuous pentest and threat modelling) GA 15 Regions; new console in US East (N. Virginia) and US West (Oregon) 1 Dec 2026 Code vulnerabilities GA US East (N. Virginia), US West (Oregon) GA post dated 22 Oct 2026 Code vulnerabilities in OpenAI Daybreak Integration launch See the AWS Region table (not stated in the post) 1 Dec 2026 Software supply chain Public preview (blocking); gated preview (runtime container images) US East (N. Virginia), US West (Oregon), Europe (Frankfurt) 1 Dec 2026 Threats Gated preview US East (N. Virginia), US West (Oregon), Europe (Frankfurt) 1 Dec 2026 Agents Gated preview US East (N. Virginia), US West (Oregon), Europe (Frankfurt), Europe (Ireland) 1 Dec 2026 Web app Gated preview US East (N. Virginia), US West (Oregon), Europe (Frankfurt), Europe (Ireland) 1 Dec 2026 Two things to read carefully. The Daybreak What's New post says Continuum "integrates" with OpenAI Daybreak. The News Blog post calls it general availability of Continuum for code vulnerabilities in Daybreak. I'd read that as the integration being generally available, but the What's New post does not use the word GA. "Gated preview" means you request access through the Continuum preview page. Open sign-up is not on offer. What each piece does Penetration testing. This is the old AWS Security Agent, renamed. It runs penetration tests that go after your application, and now also runs them from your CI/CD pipeline at deploy time. Threat modelling reads design documents or source code and uses the STRIDE framework. More on this below. Code vulnerabilities. It finds and validates code vulnerabilities, then delivers fixes as patches or pull requests, per the GA post. It builds a context graph from your repositories and your AWS environment, ranks issues by how close the attack path runs to your valuable systems, and runs the exploit in an isolated sandbox where it can reproduce one. Every fix needs a human to approve it. The post says autonomous fixes may come later. The Daybreak integration lets a developer pull a finding and its evidence into Codex. When Continuum proposes a patch, Codex can adapt it, build the code and run your existing tests before merge. Software supply chain (preview). The blocking part checks open-source packages and MCP servers before ins

First reported Dec 01, 2026 18:18 UTCCatalog metadata updated Dec 01, 2026 18:22 UTCOpen evidence record
REPORT1 SOURCE

IAM Agent and Workload Identity on EKS: Per-Pod SPIFFE Names, Preview Limits

TL;DR IAM can now give each agent or workload its own verifiable SPIFFE identity, on top of the IAM role it already uses. On EKS it is delivered through Pod Identity. Preview, announced 1 December 2026. All commercial Regions for IAM; EKS excludes Bahrain and UAE. No extra charge in preview, but X.509 certificates bill through AWS Private CA. Do first: pick one low-risk workload, give it its own service account, and write one bucket policy that names its identity. My view: the "which pod did this" question finally has a clean answer. Preview rules apply, so pilot it and don't build your estate on it yet. Contents What launched How it works Turning it on for a pod Limits and sharp edges What this means for you Related posts Sources What launched On 1 December 2026 AWS announced two linked previews. IAM got agent and workload identity, and EKS added support for it through Pod Identity. The idea is simple. A role says what a caller can do. It does not say which caller it is. Ten pods can share one role, and the only way to tell them apart afterwards is the role session name. This feature adds a name per workload to the role session, so policies and logs can see it. Item Detail Status Preview, docs say "subject to change" Identity standard SPIFFE, with names you choose in a trust domain you own Supported compute EKS, AgentCore Runtime, AgentCore Gateway Regions (IAM) All commercial Regions, usable where EKS and AgentCore exist Regions (EKS) All commercial except Middle East (Bahrain) and Middle East (UAE); not GovCloud (US) or China Price No additional charge during preview; post-preview pricing not stated Extra cost AWS Private CA charges if you issue X.509 certificates EKS agent version Pod Identity agent add-on v1.5.0-eksbuild.3 or later EKS Auto Mode AMI released 18 November 2026 or later I found no AWS News Blog post for this one. Everything here comes from the two launch posts, the IAM user guide and the EKS user guide page. I have not run any of it. How it works You set up a provider once. It is the issuer and sets the trust domain, for example corp.example.com. It can live in one account or cover a whole organisation. Then you create templates. A template builds a name for every workload in a group from attested facts, and carries an attestation policy that decides who gets a name at all. Per the IAM guide, with no attestation policy, no identity is issued. At runtime, the platform that runs the workload, not the workload, reports facts about it to STS. If they match the policy, STS builds the name and the role session carries it. For EKS the facts are cluster name and ARN, namespace, service account, pod name and UID, and node name. A workload ends up holding three kinds of credential, all short-lived: Credential Use it for Role session (SigV4) with identity attached Calling AWS. The SDK uses it with no code change on EKS JWT-SVID Bearer-token calls to your APIs and third parties X.509-SVID mTLS in a mesh or between services The identity is not an IAM principal. You name it in the Condition block, not in Principal. The two condition keys that matter are aws:OriginIdentity/Subject (the name) and aws:OriginIdentity/Issuer (the provider). The guide says to match both, because a name is only unique within its provider. The EKS page frames it as who versus what. The role is the what. The identity is the who. It sits on the existing Pod Identity association, so pods with and without it can run side by side. Turning it on for a pod The EKS guide's walkthrough scopes an S3 bucket to one service account. The steps, in short: Create a provider and a template in the IAM console. Enable workload identity on the Pod Identity association. Restart the pods, because identity is applied when a pod is created. Add a bucket policy that names the workload. The EKS guide also has a trust policy step for the role, which the IAM guide contra

First reported Dec 01, 2026 18:18 UTCCatalog metadata updated Dec 01, 2026 18:22 UTCOpen evidence record
REPORT1 SOURCE

AWS Assurance GA: Audit Readiness, APU Pricing and Where Audit Manager Fits

TL;DR AWS Assurance is a GA compliance service that collects evidence, scores audit readiness against frameworks like SOC 2, PCI DSS, NIST 800-53 and FedRAMP, and creates remediation tasks. Five Regions at launch: N. Virginia, Oregon, Sydney, Tokyo, Ireland. 60-day free trial. Pricing is $0.10 per Assurance Processing Unit plus $0.05 per GB-month of evidence. The formula scales with controls, frequency and resource count, so model it before you enable everything. Do first: pilot one framework on one project and read the APU usage after a week. My view: promising, and Audit Manager's maintenance mode makes it relevant now. The docs say it does not make you compliant. Contents What launched How it works What it costs Setup and the MCP server Where it sits next to Audit Manager, Security Hub and Config What this means for you Sources What launched On 1 December 2026 AWS announced general availability of AWS Assurance. It is described as an AI-powered compliance service for continuous monitoring and audit readiness. The pitch is simple: stop collecting evidence by hand, and stay audit-ready between audits. Item What the pages say Status Generally available, announced 2026-12-01 Regions us-east-1, us-west-2, ap-southeast-2, ap-northeast-1, eu-west-1 (Region list) Frameworks 15+ built in, 4,000+ controls, plus custom frameworks Resource coverage 600+ resource types, including AI agents on Amazon Bedrock AgentCore Assessment modes Daily (default) or Continuous, set per framework per project Free trial 60 days; the pricing page says it ends 01/30/2027 Interfaces Console for setup, an off-console web app for daily work, API/CLI/SDKs, and a hosted MCP server Managed frameworks listed in the user guide include NIST SP 800-53 R5, NIST SP 800-171, NIST CSF 1.1 and 2.0, PCI DSS v4.0, SOC 2 (Oct-2023), CIS Critical Security Controls, CIS AWS Foundations Benchmark, FedRAMP Moderate and High, CCCS Medium and CRI Profile 2.2. I did not see ISO 27001, HIPAA or GDPR in that table. You can bring those as custom frameworks (PDF, DOCX, XLSX, CSV or JSON, or natural-language controls), but check the list against your own audit scope first. The launch post also links a News Blog style announcement, but that URL returned a 404 when I tried it, so everything here is from the What's New post, product pages, FAQ and user guide. How it works The user guide and concepts page give a clear model. Environment: the top-level resource. It defines accounts, Regions, evidence storage and who can use the web app. Project: a group of resources you assess together, for example one application. Each project has its own frameworks, scores and tasks. Controls come in three types: Automated scan (AWS scans resources), Hybrid (scan what it can, you upload documents for the rest) and Document (policies and process records only). Atomic requirements: each control is split into specific checks. A control is fully met only when all are met, and a partly met requirement earns half credit. AI evaluator: judges whether evidence meets each requirement, sets the control status (Finished, Needs Attention, N/A, Not assessed) and creates tasks. Action Center: tasks with High, Medium or Low priority. Default due dates are 30 days, 3 months and 6 months. Document tasks are always High. Evidence for technical controls comes from direct API calls, AWS Config and CloudTrail, per the FAQ. Documents you upload are linked automatically to every control they support across enabled frameworks. That "collect once, map to many" idea is the part I care about most, because duplicate evidence work across SOC 2 and PCI is where the hours go. Continuous mode reassesses when it detects a change to an in-scope resource, or to evidence linked to a control. There is a cooldown of about 10 minutes per control, and Continuous mode replaces the daily run for that framework. What it costs Pricing per the pricing page as

First reported Dec 01, 2026 18:18 UTCCatalog metadata updated Dec 01, 2026 18:22 UTCOpen evidence record
REPORT1 SOURCE

How to Run IBM Granite-Docling v2 Locally (Docling Still Loads v1 by Default)

IBM released Granite-Docling v2 on November 30, 2026, and you can run the 2B model locally today: an 8 GB NVIDIA card, a Mac with MLX, or vLLM if you have a lot of PDFs. It converts a page image straight to structured markup that Docling turns into Markdown, it's Apache 2.0, and Docling 2.155.0 already ships a preset for it. There's one trap. If you upgrade Docling and run docling --pipeline vlm the way you did for v1, you still get v1. So here are the commands that actually load v2, my memory math, and a closer look at IBM's 96.5% benchmark number, which tells you less than it seems to. What Granite-Docling v2 is It's an image-text-to-text model. You give it one page as an image, and it gives back the whole page as structured markup: text, tables, formulas, code, pictures with captions, each with a bounding box. docling-core then turns that into Markdown, HTML or JSON. granite-docling-v2-2b shipped alongside a smaller sibling, granite-docling-v2-500m. The 2B is a finetune of Granite 4.0 1B with a 468M-parameter vision encoder bolted on. The name undersells it a little. The parameter table on the model card adds up to 2.48B, or 2.68B if you count the speculative decoding (MTP) heads that ship in the same checkpoint. On disk it's 5.37 GB of BF16 weights. Granite-Docling v2 vs v1: what changed Granite-Docling 258M (v1) Granite-Docling v2 2B Released Sept 17, 2025 Nov 30, 2026 Parameters 258M 2.48B (+208M MTP heads) LLM backbone Granite 165M Granite 4.0 1B Output format DocTags DocLang 0.9 Prompt Convert this page to docling. <doclang> Languages English, plus experimental Japanese, Arabic, Chinese 12 tagged (en, zh, ja, ko, ar, de, es, fr, it, nl, pl, pt) Pooled content 1−NED 79.4% 96.5% H100 throughput 12.9 pages/s 6.8 pages/s (10.1 with MTP) License Apache 2.0 Apache 2.0 Things the table hides: The output format changed. DocTags is gone, replaced by DocLang, an XML vocabulary now run by a working group under LF AI & Data (IBM, NVIDIA, Red Hat, ABBYY, HumanSignal). Every tag and every coordinate is a single token. If you wrote a DocTags parser for v1, it won't read v2 output. You can ask for part of a page. <doclang> [<table>] returns only tables, and <doclang> [<table>, <formula>] returns tables and formulas. That's handy if your RAG pipeline already handles prose and only struggles with tables. It won't chat. The card says it "does not follow free-form instructions or answer questions." The prompt syntax is strict too: one space after <doclang>, tasks separated by ,. Get the spacing wrong and quality drops. It's slower without speculative decoding. The bigger model alone does 6.8 pages/s against v1's 12.9. MTP gets it to 10.1, still below v1. If you want v1 speed, the 500M does 14.2 pages/s (18.5 with MTP) and scores 94.9%. Handwriting got much better, "though printed text remains more accurate," per the card. The 96.5% benchmark comes with a footnote IBM's headline number is 96.5% content 1−NED pooled across 16,205 pages from nine benchmarks. That beats every model on its list, including dots.mocr (94.6%), MinerU 2.5 Pro (94.4%), Nemotron 3.5 Parse (92.9%) and Chandra (90.3%). The footnote says the scores were measured against ground truth that IBM converted to DocLang and "revised by hand," and they are "not comparable" with official leaderboards. Two of the nine benchmarks, DocLayNet v2 and Creative Layouts, are IBM-internal held-out sets. The card isn't even consistent with itself: the accuracy-vs-speed chart caption says 20,502 pages from ten benchmarks. I don't think anyone is cheating. Comparing outputs in different formats is hard, and someone has to normalize them. But the target format is the one this model was trained to emit, and the ruler was set by the team that built the model. MinerU 2.5 Pro still wins on OmniDocBench 1.6 (97.2 vs 96.2), and dots.mocr wins on DocLayNet v1 and MDPBench. Treat

First reported Dec 01, 2026 18:20 UTCCatalog metadata updated Dec 01, 2026 18:22 UTCOpen evidence record
REPORT1 SOURCE

Accessible Modal Engineering: Lessons from Layout Thrashing and Focus Trap Fixes with TailwindCSS and shadcn/ui

Accessible Modal Engineering: Lessons from Layout Thrashing and Focus Trap Fixes with TailwindCSS and shadcn/ui 3 AM on-call pages are the worst. When your modals fail to close properly, trap focus in ways that break screen readers, or trigger layout thrashing that drops below 60fps, it's not just an annoyance—it's a silent killer of user trust, accessibility compliance, and overall system reliability. Senior engineers quickly recognize these patterns in production React applications. Modals are essential for confirmations and workflows, but subtle issues like incomplete focus management and JavaScript state-driven animations can derail everything. In one dashboard project I integrated components from patterns like those in AgriciDaniel/claude-seo, a modal that measured content height on open caused repeated reflows, making interactions feel unresponsive even on high-end devices. These failures violate WCAG 2.2 principles and manifest as complete navigation breakdowns for screen reader users. Radix Primitives deliver the logic foundation for accessible dialogs, while TailwindCSS v4 provides the styling layer and shadcn/ui supplies the composable patterns that keep components maintainable. The result is a modal that respects keyboard focus, ARIA attributes, and smooth animations without sacrificing performance. Reusable React Component Here's a complete, copy-paste-ready Modal component built with TypeScript and TailwindCSS v4 classes: 'use client'; import * as React from 'react'; import { X } from 'lucide-react'; interface ModalProps { isOpen: boolean; onClose: () => void; title: string; children: React.ReactNode; className?: string; } export function Modal({ isOpen, onClose, title, children, className }: ModalProps) { const dialogRef = React.useRef<HTMLDivElement>(null); const lastFocusRef = React.useRef<HTMLElement | null>(null); React.useEffect(() => { if (!isOpen) return; lastFocusRef.current = document.activeElement as HTMLElement; dialogRef.current?.focus(); const handleFocusTrap = (e: KeyboardEvent) => { if (e.key !== 'Tab') return; const focusable = dialogRef.current?.querySelectorAll( 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])' ); if (!focusable?.length) return; const first = focusable[0] as HTMLElement; const last = focusable[focusable.length - 1] as HTMLElement; if (e.shiftKey && document.activeElement === first) { e.preventDefault(); last.focus(); } else if (!e.shiftKey && document.activeElement === last) { e.preventDefault(); first.focus(); } }; document.addEventListener('keydown', handleFocusTrap); return () => { document.removeEventListener('keydown', handleFocusTrap); lastFocusRef.current?.focus(); }; }, [isOpen]); if (!isOpen) return null; return ( <div className="fixed inset-0 z-50 bg-black/60 flex items-center justify-center p-4" onClick={onClose} > <div ref={dialogRef} role="dialog" aria-modal="true" aria-labelledby="modal-title" className={`bg-white rounded-2xl shadow-2xl w-full max-w-lg overflow-hidden transition-all duration-300 ${className}`} tabIndex={-1} > <div className="flex items-center justify-between p-6 border-b"> <h2 id="modal-title" className="text-2xl font-semibold text-gray-900"> {title} </h2> <button onClick={onClose} className="text-gray-400 hover:text-gray-500 transition-colors p-2 -m-2" aria-label="Close modal" > <X className="w-5 h-5" /> </button> </div> <div className="p-6">{children}</div> </div> </div> ); } The implement

First reported Dec 01, 2026 18:18 UTCCatalog metadata updated Dec 01, 2026 18:22 UTCOpen evidence record
REPORT1 SOURCE

AWS Context Is GA: Shared Business Knowledge for Your Agents, Setup and Cost

TL;DR AWS Context builds a governed "context graph" over your data and documents, and exposes it to any agent through a hosted MCP server. For anyone whose agents give confident wrong answers because the business rules live in docs and people's heads. GA since 1 December 2026 in US East (N. Virginia), US West (Oregon) and Europe (Ireland). Price: $0.04 per agent unit for agent work, $5 per GB-month for graph storage outside supported AWS structured sources. Graph creation and storage for those sources is free (pricing page, 2026-12-01). Do first: create the sample Agent Context and point Claude Code or Kiro at it. My view: the right idea, and the meter is the thing to watch. Contents What launched How it works How agents consume it Setup, hands-on AWS Quick now consumes it What it costs What this means for you Related posts Sources What launched On 1 December 2026 AWS announced that AWS Context is generally available. The same day, AWS Quick gained the ability to consume agent context from it. The problem it targets is one most of us have hit. An agent can read your tables and still get the answer wrong, because it does not know that "active customer" means something specific, or that a risk figure should be weighted by loan size. AWS Context is a managed place to hold that knowledge so every agent shares it, instead of each agent's prompt carrying its own half-remembered copy. Item Detail Status Generally available, announced 2026-12-01 Regions US East (N. Virginia), US West (Oregon), Europe (Ireland) (docs) Cross-Region Not supported. Sources must be in the same Region as the Agent Context (docs) Limit on contexts Up to 20 Agent Contexts per account (docs) Access for agents Hosted MCP server and APIs Still in preview Ontologies, the feedback loop, and connections to SageMaker AI, streaming services, Databricks and Snowflake, per the launch post How it works The user guide is clear that AWS Context does not move your data. It indexes metadata and documents, builds the graph from them, and queries the source directly when an answer needs real rows. There are four resource types to know, all with their own ARNs (key resources): Agent Context: the thing your agents query. One bounded data estate. Connections: links to sources such as the Glue Data Catalog or a knowledge base. Reusable across Agent Contexts. Ontologies: your business concepts, rules and hierarchies. You can import OWL or RDF in Turtle format, or let the service draft a first cut. The features page lists ontologies as preview. Curation policies: the rule for what happens to every change. Apply it, hold it for human review, or discard it. That last one is the part I like. Every proposed change, whether from ingestion, analysis or agent feedback, becomes a changeset, and the policy decides whether agents ever see it (key concepts). Source support per the features page: Stage Sources GA Glue Data Catalog, S3 (general purpose and table buckets), Redshift, Aurora PostgreSQL-Compatible, RDS for Oracle, DynamoDB (the page lists one more analytics query service) Public preview RDS for PostgreSQL, MySQL, MariaDB and SQL Server, SageMaker AI, Kinesis, MSK, Data Firehose Documents (stage not stated) SharePoint, OneDrive, Google Drive, S3, Confluence, web crawler, ServiceNow, Zendesk, Box, Salesforce Note the gap: the launch post names Aurora and RDS, but the features page only puts Aurora PostgreSQL-Compatible and RDS for Oracle at GA. Check your engine before you plan around it. How agents consume it AWS hosts an MCP server at https://context-mcp.<region>.api.aws/mcp. It uses Streamable HTTP and serves every Agent Context in the Region. Each tool call names the context in an agentContextId argument (MCP server docs). The retrieval tools: Tool What it does context___SearchAgentContext Searches for entities context___TraverseAgentContext Returns an entity's ne

First reported Dec 01, 2026 18:18 UTCCatalog metadata updated Dec 01, 2026 18:22 UTCOpen evidence record
REPORT1 SOURCE

AgentCore Governance Week: Guardrail Partners, Fleet View, Strands Box and Bedrock Gateway

TL;DR Four agent-platform launches from 1 Dec 2026: third-party guardrails in AgentCore policy (GA), fleet view in AWS Agent Registry (GA, with preview parts), Strands Box on AgentCore runtime, and Bedrock Gateway plus smart routing (gated preview). Together they are AWS's answer to "who is running which agent, what can it touch, and what is it costing us". Pricing: policy is $0.000025 per authorization request. Registry has a free tier. Strands Box has no separate price I could find. Gateway and smart routing: pricing not stated. Do first: put policy in front of your gateway tools. Do second: turn on Registry auto-detection. Gateway and routing are a wait-and-request-access item. My view: the policy and registry pieces are worth adopting now. The rest I would watch. Contents What launched Third-party guardrails in AgentCore policy Fleet view in AWS Agent Registry Strands Box on AgentCore runtime Bedrock Gateway and smart routing What this means for you Related posts Sources What launched All four posts are dated 1 December 2026. They look unrelated until you line them up by the question each one answers. Launch Question it answers Status Third-party guardrails in AgentCore policy Is this prompt, response or tool call safe? GA Fleet view in AWS Agent Registry Which agents exist, and can I stop one? GA, with preview parts Strands Box on AgentCore runtime What can this agent do inside its own session? Status not stated in the post; Regions listed in the runtime docs Bedrock Gateway and smart routing Who may call which model, and what does it cost? Gated preview I went through the launch posts, the AgentCore docs and the AgentCore pricing page. I have not run any of this. Everything below is what the docs say. Third-party guardrails in AgentCore policy The launch post says you can now plug guardrail providers into AgentCore policy. Named in the post: Check Point Lakera Guard, Netskope AI Guardrails, Rubrik Agent Cloud, SentinelOne Prompt Security and Zscaler AI Guard, with CrowdStrike coming soon. The provider docs list Check Point, Netskope, Prompt Security, Rubrik and Zscaler. CrowdStrike is not in that table. How it works, per the docs: You keep your own account and licence with the provider. You store the provider API key in AgentCore Identity. You register the provider on a policy engine. Your policies call the provider's checks in a when guardrails condition, the same way they call Bedrock Guardrails checks. The provider returns a detection result. Your policy turns that into allow or deny. Enforcement sits outside the agent's code, so the agent cannot skip it. You can mix partner results with Amazon Bedrock Guardrails in the same engine. Things the docs are blunt about Fail closed. If the provider is unreachable, rejects the key or errors, the request is denied and a streamed response ends. The provider's uptime and rate limits are now part of your gateway's availability. Content leaves AWS. The content your policy defines is sent to the provider, under your agreement with them. Read their data-handling terms first. Streaming multiplies calls. Each evaluation of a streamed response sends all the text received so far. A long response means several provider calls. Check the provider's rate limits and pricing. Scores are non-deterministic. The same content can score differently on separate calls. A request near your threshold may pass once and fail the next time. No regex. Guardrails use ML scoring, not pattern matching. Regions The launch post says all Regions where AgentCore policy is supported, with one exception whose wording came through garbled on my read. The guardrails page shows AWS GovCloud (US-West) as "No" for everything. It also shows something useful for me in Ireland: Europe (Ireland) and Frankfurt have third-party providers but not Amazon Bedrock Guardrails checks. If you are in an EU Region, the partner route may be th

First reported Dec 01, 2026 18:18 UTCCatalog metadata updated Dec 01, 2026 18:22 UTCOpen evidence record
REPORT1 SOURCE

MCP InspectorでMCPサーバーをテストする方法

MCP Inspector を使うには、Web UI なら npx @modelcontextprotocol/inspector を実行し、スクリプトから操作できるクライアントが欲しい場合は --cli を付けます。あとはサーバー(stdio コマンドまたは HTTP URL)を指定して、ハンドシェイクを確認し、ツール・リソース・プロンプトを一覧表示して、ツールを1つ呼び出します。CLI は JSON と安定した終了コードを返すので、同じチェックをそのまま CI に組み込めます。 今すぐ Apidog を試す 以下では、実際のサーバーに対して各ステップを実行し、そのチェックをコーディングエージェントが保守する自動テストスイートに仕上げていきます。 MCP Inspector とは? MCP Inspector は、Model Context Protocol プロジェクトが提供する公式の開発者ツールで、MCP サーバーのテストとデバッグに使います。実際のクライアントと同じようにサーバーへ接続し、initialize ハンドシェイクを完了したうえで、ツールの一覧表示と実行、リソースの読み取り、プロンプトの取得ができるので、エージェントから見えるものをそのまま確認できます。 現在のリリースは v2 系です(2026年12月1日時点で npm では 2.17.0)。単一のパッケージ @modelcontextprotocol/inspector として提供され、操作方法は次の3つです: モード コマンド 適した用途 Web UI npx @modelcontextprotocol/inspector 手動でサーバーを調査する、スキーマを読む、ツール引数を試す CLI npx @modelcontextprotocol/inspector --cli スクリプト、CI ジョブ、コーディングエージェントへの迅速なフィードバック TUI npx @modelcontextprotocol/inspector --tui ターミナル内や SSH 経由での対話的なテスト 3つとも stdio(Inspector がサーバーを起動)、Streamable HTTP、SSE に対応しています。他のツールについてはベスト MCP インスペクターのまとめを参照してください。本記事では公式のものだけを扱います。 始める前に必要なもの 必要なものは3つです: サポート対象の Node.js。 2.17.0 は ^22.23.4 || ^24.22.1 || >=26.12.1 を宣言しています。古いパッチリリースでは EBADENGINE 警告が出ます(手元では Node 24.15 でも動作しました)。 MCP サーバー。 自作のものでも、公式の Everything リファレンスサーバー(@modelcontextprotocol/server-everything)でもかまいません。後者は17個のツール、4個のプロンプト、8個のリソースを公開しています。 jq(CLI をスクリプト化するため)。 初回接続時に npx がサーバーをダウンロードしている間にタイムアウトしないよう、両方のパッケージをローカルにインストールしておきます: npm i -D @modelcontextprotocol/inspector@2.17.0 @modelcontextprotocol/server-everything ステップ1:サーバーに対して MCP Inspector を起動する Web UI を起動する 対象を指定せずに Inspector を実行すると、Web UI が開きます: npx mcp-inspector 次のようなバナーが表示され、ブラウザが開きます: MCP Inspector Web is up and running at: http://127.0.0.1:6274?MCP_INSPECTOR_API_TOKEN=<token> Sandbox (MCP Apps): http://127.0.0.1:6275/sandbox Secrets: OS keychain ポート 6274 が UI を提供し、6275 は MCP Apps のサンドボックスです。トークンは起動ごとにランダムに生成され、すべての /api/* 呼び出しを保護するので、その URL は共有しないでください。シークレットは OS のキーチェーンに保存されます。キーチェーンのないヘッドレス環

First reported Dec 01, 2026 06:03 UTCCatalog metadata updated Dec 01, 2026 06:11 UTCOpen evidence record
REPORT1 SOURCE

单机SaaS的SQLite前向迁移:版本号、备份与自动回滚

单机 SaaS 的 SQLite 前向迁移:版本号、备份与自动回滚 一个付费小产品不需要 Postgres。它需要的是"改表结构"这件事别再靠人记。 我先说清适用边界,因为下面的做法在边界外会失效:单台机器、单个应用进程写库、数据库是本地磁盘上的一个文件、停机几十秒可以接受、数据量在几 GB 以内。 这五条中任何一条破了,结论都要改,最后一节会讲什么时候该换成 Postgres。 在这个边界内,这套模型围绕一条规则:任何迁移,在已经跑过它的数据库上重跑都必须安全。不是"记得只跑一次",是"跑两次也没事"。 三种真实咬人的失败 第一种最蠢也最常见:发了个新功能,代码要读一个新列,服务器上没有,凌晨两点 500。 第二种更麻烦:迁移脚本跑了两遍。第一遍建表成功,第二遍 CREATE TABLE 报"already exists",脚本 set -e 半路退出,进程没重启,站点挂在一个"表建好了、代码还是旧的"状态里。这种状态既不前进也不后退,只能人工判断。 第三种是我真踩过的:为了清理一个废弃字段,把 ALTER TABLE ... DROP COLUMN 和读新列的代码放在同一个发布里。部署后旧代码还在跑(旧的进程实例还没重启完),它读不到那个列,直接抛 no such column。问题不在 SQL,在发布窗口里新旧代码共存,而 schema 只允许一种形态。 三个失败指向同一件事:迁移不是一段 SQL,是一次有前置条件、有原子性要求、有回退路径的部署动作。 先决定用不用框架 SQLite 没有内置迁移机制,社区的方案大致四类。选之前先看清代价: 方案 外部依赖 事务粒度 重跑安全性 主要代价 手写 schema.sql,空库时整份执行 无 整份一个事务 差,重复执行会报错 老库升级无路径,只适合一次性初始化 knex / umzug 之类迁移库 中(一套 ORM 生态) 每个迁移可包事务 靠 knex_migrations 表记录 为几张表引入一层抽象,调试要穿透库 drizzle-kit 生成 diff 中(TS 工具链) 生成的 SQL 自行包事务 取决于是否人工审过 自动生成的 SQL 可能重建整表,需要逐条审 PRAGMA user_version 自建 零 每个迁移一个事务 强,靠整数与事务 要自己写三十行;没有回滚脚本 我选自建,理由不是"轻量优雅",而是它只依赖 SQLite 自己的语义:版本号在数据库文件头里,事务是 SQLite 的事务,没有第二套记录表需要先被创建。迁移库那套 knex_migrations 表本身要占一个引导版本("迁移 1 是建记录迁移的表"),在只有五个版本的项目里,这个特例比收益显眼。 如果项目已经有 ORM 和 CI、多人改 schema,选 umzug 这类更划算——收益在协作,不在单机。 版本号放文件头,写进同一个事务 SQLite 文件头有个整数,新库是 0: PRAGMA user_version; -- 0 启动时读它,和代码里的迁移列表比,只补跑缺的: const db = new Database(env.DB_PATH); db.pragma('journal_mode = WAL'); db.pragma('foreign_keys = ON'); db.pragma('busy_timeout = 5000'); const migrations = [ { version: 1, up: (db) => db.exec(`CREATE TABLE users (...)`) }, { version: 2, up: (db) => db.exec(`ALTER TABLE users ADD COLUMN tier TEXT`) }, // ... ]; function migrate(db) { const current = db.pragma('user_version', { simple: true }); for (const m of migrations) { if (m.version <= current) continue; db.transaction(() => { m.up(db); db.pragma(`user_version = ${m.version}`); })(); console.log(`[migrate] applied v${m.version}`); } } 这段能成立,靠三个 SQLite 的具体性质,值得逐条确认,因为其中两条在别的数据库上不成立: DDL 在事务里可回滚。 SQLite 的 CREATE TABLE、ALTER TABLE 都参与

First reported Dec 01, 2026 06:05 UTCCatalog metadata updated Dec 01, 2026 06:11 UTCOpen evidence record
REPORT1 SOURCE

Why Your AI Agents Need Database Version Control

What We Set Out to Build In 2026, according to McKinsey's State of AI report, 72% of organizations now use AI in at least one business function, up from 50% in prior years (McKinsey, 2024). Most of those organizations have a Git repository. Almost none of them have versioned their Postgres database. That gap is where production AI systems quietly fall apart. When we started building automated pipelines that read from live databases, the assumption was simple: the database is the source of truth, and the code that queries it is what needs versioning. That assumption held until it didn't. The first time a scoring pipeline returned results we couldn't reproduce, we spent two days tracing the issue before realizing the underlying table had been silently updated by a separate process. The code hadn't changed. The data had. That's the problem Gnomon is designed to solve. It brings Git-like version control to Postgres, giving AI pipelines a way to pin, branch, and diff database state the same way developers pin code commits. The core insight is that reproducibility in AI isn't just a model problem. It's a data infrastructure problem. What Happened When We Ignored It The failure mode is specific and repeatable. An orchestration pipeline reads from a contacts table to score leads. Overnight, a marketing import adds 4,000 new rows and updates 800 existing ones. The scoring logic hasn't changed. The model hasn't changed. But the distribution of inputs has shifted, and the outputs are now subtly wrong in ways that don't trigger any error. No exception is raised. No alert fires. The pipeline completes successfully and writes bad scores to production. This is data drift, and it's distinct from model drift. Model drift happens when the world changes and your model's assumptions no longer hold. Data drift happens when the records your system reads change without any record of what they looked like before. You can't diff a Postgres table the way you diff a file. You can't roll back to yesterday's state without a full backup restore. And you certainly can't run two experiments against the same historical snapshot without purpose-built tooling. Git doesn't help here. Git tracks text files. A Postgres table is a mutable, relational structure with foreign keys, indexes, and live writes happening concurrently. You can't commit a table to a repository and expect meaningful diffs. Tools like pg_dump give you snapshots, but they're not queryable, they don't branch, and they don't integrate with the kind of automated pipelines that AI systems run continuously. I made this mistake myself when building the first version of our Autonomous SDR pipeline. We used a flat three-agent architecture: research, scoring, and writing all reported to a single orchestrator. It worked on 5 leads. At 50, the scorer sat idle waiting on research that had nothing to do with scoring. Splitting into discrete components with explicit handoff contracts between them cut processing time and made each stage independently testable. That's why every ForgeWorkflows blueprint uses explicit inter-agent schemas. We learned the hard way that implicit data passing doesn't hold up when volume increases. The same principle applies to database state: if you can't inspect what a pipeline received as input, you can't debug what it produced as output. The honest caveat here is that Gnomon isn't a fit for every team. If your AI pipeline reads from a database that changes infrequently, or if your data volume is small enough that full snapshots are cheap, the operational overhead of a versioning layer may not be worth it. Gnomon adds a write path to your database operations. That means more infrastructure to maintain, more failure points to monitor, and a learning curve for engineers who haven't worked with branching data models before. The tool earns its complexity only when reproducibility is genuinely blocking you. For teams building on n8n, this surfaces as a specific arc

First reported Dec 01, 2026 06:06 UTCCatalog metadata updated Dec 01, 2026 06:11 UTCOpen evidence record
REPORT1 SOURCE

34 篇藏起来的笔记,怎么变成 12 篇文章

34 篇藏起来的笔记,怎么变成 12 篇文章 大多数博客没有发布问题,只有库存问题。 我的 Markdown 目录已经涨到 49 篇,但首页上能被索引、能看见的文章只有 12 篇。另外 34 篇是笔记:有用的碎片、旧的学习记录、写了一半的指南,还有一份早该下线的过期快照。加起来大约 9.8 万字,读者找不到。 直觉做法是把 34 篇全发出去。那会是个错误:很多短到撑不起一篇,若干篇互相重叠,还有一些只是某个更大主题的支撑材料。原样发布,文章数会增加,站点会更薄。 边界:这套流程适用于单人维护、内容以 Markdown 文件存在、构建可验证数量与索引状态的站点。如果内容在 CMS 里、有多人协作、或者旧 URL 有大量外部反链,流程要加两样东西——权限沟通与重定向表,后面会讲。 先盘点,别先写 第一步不是写,是数。我把 feed 数据与文章目录都当事实来源,建了一张表,字段是: 字段 用途 分类 看出哪些簇可能合并 标题 判断是否重复主题 字数 判断能否独立成篇(<800 基本不行) 是否可索引 决定它在搜索里的现状 是否在首页 决定读者是否看得到 源文件路径 删除时的操作对象 盘点结果分三组:12 篇已在首页的可索引文章、5 个公开但 noindex 的页面(3 篇 Markdown + 2 个 PDF)、34 篇隐藏笔记。 34 篇覆盖 13 个分类,最大簇是 JavaScript 约 2.4 万字,最小是一篇 React Native 引擎笔记约 1200 字。分类计数不是计划,但它是地图:它显示哪里合并能产出真文章,哪里该直接删。 判定矩阵:合并、删除、保留、转会员 这是整个流程里最该先做完的一步。34 篇不是都要救,我用四个判定: 判定 条件 处理 合并 同一读者任务下有 2 篇以上,单篇 <1500 字 合成一篇,补新导语与结论 删除 已被新版取代、纯链接清单、含私人信息、不适合公开的旧稿 直接删,Git 历史即备份 保留 能独立回答一个完整问题,≥1500 字 改标题与描述,不动正文 转会员 内容有独立价值但需要门槛 单独处理,不参与免费合并 删除清单必须在动笔前写出来,而且要写成"标题 + 理由"两列。那条"过期快照"是 6 月的作品集,已被 9 月版本取代,把两份带日期的清单拼在一起,只会得到一篇让读者困惑的文章。 合并项目必须有删除清单,否则每一篇笔记都会获得它不配拥有的第二次生命。 按读者任务聚类,不按文件名 34 篇变成 12 个产出:11 篇新文章,第 12 个是一篇既有 Git 文章吸收了命令脑图。 产出 合并了什么 为什么是一组 开发者工具箱 IT 工具清单、代码片段、求助笔记 找工具的人要一份可搜索的参考 AI 应用开发路线 学习路线、大模型笔记、项目笔记、领域分析 同一条学习路径的四个阶段 Web3 与合约入门 Solidity、钱包、合约笔记 从 EVM 基础到第一个合约 小程序与 Taro Taro、小程序、Hermes 笔记 读者在做一个跨端产品 Cesium 与 Web GIS 二维 GIS、三维场景 同一个制图任务 Node.js 进阶 概念、项目、命令速查 一条递进 服务端工程基础 操作系统、接口权限、认证加密 一套后端地基 Vue 3 与类型系统 Vue 笔记、类型笔记 类型在 Vue 项目里用,不在旁边 正则与知识地图 正则手册、JS 脑图 查表 + 地图才构成参考 Git 文档(增强) 既有文章 + 命令脑图 脑图是支撑材料,不是文章 AI 前端与趋势 前端笔记、趋势笔记 同一个职业问题 个人随笔 生活记录、作品集回顾 保留为个人页,noindex 三个模式值得单独说: 工具清单变成了文章,而不是链接

First reported Dec 01, 2026 06:03 UTCCatalog metadata updated Dec 01, 2026 06:11 UTCOpen evidence record
REPORT1 SOURCE

Comment utiliser MCP Inspector pour tester votre serveur MCP

Pour utiliser MCP Inspector, exécutez npx @modelcontextprotocol/inspector pour l’interface web ou ajoutez --cli pour un client scriptable, pointez-le vers votre serveur (une commande stdio ou une URL HTTP), puis vérifiez le handshake, listez les outils, ressources et prompts, et appelez un outil. La CLI renvoie du JSON et des codes de sortie stables, de sorte que les mêmes vérifications s’intègrent directement dans la CI. Essayez Apidog aujourd'hui Ci-dessous, vous exécuterez chaque étape sur un serveur réel, puis transformerez les vérifications en une suite automatisée maintenue par votre agent de codage. Qu’est-ce que MCP Inspector ? MCP Inspector est l’outil de développement officiel du projet Model Context Protocol pour tester et déboguer les serveurs MCP. Il se connecte à un serveur comme le ferait un vrai client, effectue le handshake initialize et vous permet de lister et d’appeler des outils, de lire des ressources et de récupérer des prompts, afin que vous voyiez exactement ce qu’un agent verra. La version actuelle est la branche v2 (2.17.0 sur npm au 1er décembre 2026). Elle est livrée sous forme d’un seul paquet, @modelcontextprotocol/inspector, avec trois façons de la piloter : Mode Commande Idéal pour Interface web npx @modelcontextprotocol/inspector Explorer un serveur manuellement, lire les schémas, essayer des arguments d’outil CLI npx @modelcontextprotocol/inspector --cli Scripts, jobs CI, retour rapide pour les agents de codage TUI npx @modelcontextprotocol/inspector --tui Tests interactifs dans un terminal ou via SSH Tous les trois prennent en charge stdio (l’Inspector démarre votre serveur), Streamable HTTP et SSE. Pour d’autres outils, consultez notre sélection des meilleurs inspecteurs MCP ; ce guide se limite à l’outil officiel. Ce qu’il vous faut avant de commencer Il vous faut trois choses : Node.js sur une version prise en charge. La version 2.17.0 déclare ^22.23.4 || ^24.22.1 || >=26.12.1. Les anciennes versions correctives émettent un avertissement EBADENGINE (cela fonctionnait quand même sur Node 24.15 chez nous). Un serveur MCP. Le vôtre, ou le serveur de référence officiel Everything (@modelcontextprotocol/server-everything), qui expose 17 outils, 4 prompts et 8 ressources. jq pour scripter la CLI. Installez les deux paquets localement pour que la première connexion n’expire pas pendant que npx télécharge le serveur : npm i -D @modelcontextprotocol/inspector@2.17.0 @modelcontextprotocol/server-everything Étape 1 : lancer MCP Inspector contre votre serveur Démarrer l’interface web Exécutez l’Inspector sans cible pour ouvrir l’interface web : npx mcp-inspector Il affiche une bannière comme celle-ci et ouvre votre navigateur : MCP Inspector Web is up and running at: http://127.0.0.1:6274?MCP_INSPECTOR_API_TOKEN=<token> Sandbox (MCP Apps): http://127.0.0.1:6275/sandbox Secrets: OS keychain Le port 6274 sert l’interface ; le port 6275 correspond au bac à sable MCP Apps. Le jeton est aléatoire à chaque lancement et protège chaque appel /api/*, donc ne partagez pas cette URL. Les secrets vont dans le trousseau du système d’exploitation ; sur une machine sans interface graphique qui n’en possède pas, ils basculent vers ~/.mcp-inspector/secrets.json, non chiffré sauf si vous fournissez une clé. Dans l’interface, choisissez un transport, saisissez la commande ou l’URL, puis connectez-vous. Ou connectez-vous directement depuis la CLI Pour un serveur stdio, placez la commande du serveur après --cli. Pour un serveur distant, passez --transport et --server-url : # stdio: the Inspector spawns the server npx mcp-inspector --cli npx mcp-server-everything --method initialize --format json # Streamable HTTP npx mcp-inspector --cli --transport http \ --server-url http://localhost:3001/mcp --

First reported Dec 01, 2026 06:03 UTCCatalog metadata updated Dec 01, 2026 06:11 UTCOpen evidence record
REPORT1 SOURCE

DigitalOcean Droplets vs. ENTRONYX Public Cloud: a list-price comparison (November 2026)

This note compares published list prices for DigitalOcean Droplets and ENTRONYX CLOUD Public Cloud instances, with a focus on US regions and on Frankfurt am Main. It is not a benchmark and it does not measure CPU, disk or network performance. DigitalOcean figures are taken from the provider's website as of 30 November 2026. ENTRONYX prices are net list prices as of the same date; the company publishes both EUR and USD. Where a US price is marked approximately, it is the Frankfurt list price multiplied by the published location factor of 1.50 and rounded; the configurator may differ by one cent. ND2 and NP0 US starting prices are printed on the ENTRONYX site. I work on this comparison for ENTRONYX CLOUD. The figures that favour DigitalOcean are included on purpose. What was compared On the DigitalOcean side: Basic Regular Droplets, and the Regular (non-Premium) CPU-Optimized and General Purpose Droplets. On the ENTRONYX side: the shared-vCPU NP series and the dedicated-vCPU ND series. ENTRONYX US locations are Northern Virginia (iad1) and New York/New Jersey (nyc1). DigitalOcean lists a wider US set, including NYC1–3, SFO2/3, ATL1, RIC1, MKC1 and MEM1, plus TOR1 in Canada, and no regional surcharge on the Droplet prices used here. Shared vCPU Plan vCPU RAM Local disk Transfer / month Price / month Region DigitalOcean Basic Regular 2 shared 4 GiB 80 GiB SSD 4,000 GiB (team-pooled) $24.00 US and other listed regions DigitalOcean Basic Premium AMD 2 shared 4 GiB 80 GiB NVMe 4,000 GiB $28.00 as published (SFO2 without Premium AMD) ENTRONYX NP2 2 shared, AMD EPYC 4 GB 80 GB NVMe 20 TB per instance €19.99 / $23.19 Frankfurt ENTRONYX NP2 2 shared 4 GB 80 GB NVMe 2 TB per instance ≈ €29.99 / $34.79 (× 1.50) iad1, nyc1 DigitalOcean Basic Regular 4 shared 8 GiB 160 GiB SSD 5,000 GiB $48.00 as above DigitalOcean Basic Premium AMD 4 shared 8 GiB 160 GiB NVMe 5,000 GiB $56.00 as above ENTRONYX NP3 4 shared 8 GB 160 GB NVMe 20 TB €35.99 / $41.75 Frankfurt ENTRONYX NP3 4 shared 8 GB 160 GB NVMe 3 TB ≈ €53.99 / $62.63 (× 1.50) iad1, nyc1 Entry size, one shared vCPU: Plan RAM Local disk Transfer Price / month Region DigitalOcean Basic Regular 512 MiB 10 GiB SSD 500 GiB $4.00 as published DigitalOcean Basic Regular 1 GiB 25 GiB SSD 1,000 GiB $6.00 as published DigitalOcean Basic Regular 2 GiB 50 GiB SSD 2,000 GiB $12.00 as published ENTRONYX NP0 1 GB 20 GB NVMe 20 TB EU / 1 TB US €5.99 / $6.95 (FRA); €8.99 / $10.43 (US, on site) FRA, iad1, nyc1 ENTRONYX NP1 2 GB 40 GB NVMe 20 TB EU / 1 TB US €11.99 / $13.91 (FRA); ≈ $20.87 (US, × 1.50) FRA, iad1, nyc1 DigitalOcean is cheaper at the starter sizes, in Frankfurt and in the US, and the $6 and $12 Droplets include more local disk than NP0 and NP1. NP2 and NP3 undercut the Basic Regular list price only in Frankfurt. Dedicated vCPU Plan vCPU RAM Local disk Transfer / month Price / month Region DigitalOcean CPU-Optimized Regular (c-2) 2 dedicated 4 GiB 25 GiB SSD 4,000 GiB $42.00 US and other listed regions DigitalOcean General Purpose Regular (g-2vcpu-8gb) 2 dedicated 8 GiB 25 GiB SSD 4,000 GiB $63.00 as above ENTRONYX ND2 2 dedicated, cpuset, AMD EPYC 8 GB 80 GB NVMe 20 TB €38.80 / $45.01 Frankfurt ENTRONYX ND2 2 dedicated 8 GB 80 GB NVMe 1 TB €58.20 / $67.51 (on site) iad1, nyc1 DigitalOcean CPU-Optimized Regular (c-4) 4 dedicated 8 GiB 50 GiB SSD 5,000 GiB $84.00 as above DigitalOcean General Purpose Regular (g-4vcpu-16gb) 4 dedicated 16 GiB 50 GiB SSD 5,000 GiB $126.00 as above ENTRONYX ND3 4 dedicated 16 GB 160 GB NVMe 30 TB €77.60 / $90.02 Frankfurt ENTRONYX ND3 4 dedicated 16 GB 160 GB NVMe 2 TB ≈ €116.40 / $135.03 (× 1.50) iad1, nyc1 ND2 and ND3 include 3.2 times the local disk of the DigitalOcean dedicated plans at the same core count (80 GB vs 25 GiB, 160 GB vs 50 GiB).

First reported Dec 01, 2026 06:04 UTCCatalog metadata updated Dec 01, 2026 06:11 UTCOpen evidence record
REPORT1 SOURCE

年卡只该履约一次:支付回调的幂等设计

年卡只该履约一次:支付回调的幂等设计 在小站卖一张年卡,看起来简单得不像工程问题:一个价格、一个商品、不限席位、不自动续费。收银台、卡片、税费、票据都归支付服务商管。你要做的只有一件事——收到回调,把钱变成权限。 风险全在这一句里。回调不是函数调用,它是别人系统发来的、会被重试的、可能重复的、可能乱序的公共网络消息,而且它是"某个陌生人付了钱"的唯一信号。 先划边界:下面这套适用于单机、单进程写库、自建订单表、年卡这类一次性商品。如果你要的是自动续费、按比例折算、多档升级,那属于订阅计费,该交给服务商的订阅对象,别自己算。本文的模型在"一次付款换一年权限"这个形态内成立。 一个真实的重复扣款候选 我最早那版处理器是"先查后写": const existing = db.prepare('SELECT 1 FROM orders WHERE order_no = ?').get(event.data.orderNo); if (existing) return res.json({ ok: true }); insertOrder(event); grantEntitlement(event.email); 测试环境一次都没出问题,因为测试是串行点一次。上线第一周遇到服务商的两条并发投递:两个连接同时 SELECT,都得到"不存在",都插入成功一条,都授予了一次权益。虽然 order_no 当时没有唯一约束,钱也只扣了一次,但权益被延长了两年,用户以为自己买了两张。 根因不是 SQL 写错,是把判重放进了应用层的检查里。检查和写入之间存在窗口,任何"先查再写"的幂等实现都有这个窗口,只是并发低的时候看不见。 改成唯一约束裁决之后,同一类 bug 再没出现过。下面是完整模型。 交易形态决定了履约的四条不变量 产品是单一年卡:十二个月、不自动续费、国内一个价、海外一个价。没有订阅对象、没有折算、没有升级路径。履约因此被压成四件事: 一条订单存在,带服务商订单号、买家邮箱、金额和状态; 订单状态是 paid,恰好一次,哪怕三个一模一样的回调同时到达; 该邮箱有一条权益,到期时间是付款后一年; 收据或欢迎邮件发出去;发两次可接受,扣两次钱不行。 后面所有设计,都是为了让这四条在重放、并发和乱序之下仍然成立。 四条幂等路径,以及为什么选唯一约束 "保证只处理一次"有四种常见写法,差别在谁来做裁决: 做法 判定依据 并发安全 主要代价 先查后写 应用层 SELECT 否,检查与写入之间有窗口 并发双投递必然重复,只在低并发下看着对 幂等键表(event_id) 事件级去重表 是,靠唯一索引 多一张表;同一订单的多个事件仍需二次归并 唯一约束 + 冲突返回 数据库约束 是,冲突即重复 幂等键必须稳定(订单号,不能是自增 ID) 条件更新状态机 WHERE status = 'pending' 部分,只保证单次迁移 只适合状态推进,不适合"首次创建" 我选第三种:让订单行本身成为幂等键。order_no 来自服务商,同一笔支付永远同一个号,重试、重放、对账回填都用它。处理器不问"见过吗",而是尝试插入,让约束回答。 第一、三种的差别不是性能,是正确性的归属:前者把正确性放在会被并发打断的应用逻辑里,后者放在数据库的原子操作里。单机 SQLite 也有真约束,没有理由不用。 先验签,再解析 第一条规则:签名验证之前,请求体里的任何字段都不可信。回调端点是个公开 URL,谁都能 POST,载荷里有邮箱和金额。先解析后验签,一个"格式合法但来路不明"的请求体就能创建一条订单,把对账报表弄脏。 验证是非对称的:服务商用私钥签名,你用固定在磁盘上的公钥

First reported Dec 01, 2026 06:06 UTCCatalog metadata updated Dec 01, 2026 06:11 UTCOpen evidence record
REPORT1 SOURCE

从公开数据源读出基金的真实持仓

从公开数据源读出基金的真实持仓 大多数基金应用乐意给你一条业绩曲线。它们很少给你的,是买之前真正要紧的东西:这只基金持了哪些股票、各占多少、这些仓位在增还是在减。 我做 FundScope 就是为了几秒钟回答这个问题:输入基金代码,拿到最新净值、完整持仓表、仓位权重环形图、市值柱状图,并把实时行情叠在个股上。免费层不用登录,不用框架,不用构建。 有意思的部分不是图表,是数据层:一个 Node 代理站在浏览器和一组公开、略带敌意的接口之间,把它们收成一个稳定的 JSON 形状。 边界先说清:这套做法适用于公开可访问、无需登录、允许匿名读取的数据源,且数据本身不是实时交易信号。如果数据源有官方 API 与授权条款,优先用它;如果数据涉及付费或需要登录,抓取不在讨论范围。 四种取数方式,只有一种能直接给浏览器 公开数据通常以四种形态存在,它们的解析成本和稳定性完全不同: 形态 例子 浏览器能否直连 解析成本 稳定性 规范 JSON API 官方开放接口 通常可以(需 CORS) 低 高,有文档 JSONP jsonpgz({...}) 不能,fetch 拿不到值 低(切括号) 中,无版本 HTML 页面 持仓表格 不能,CORS + 客户端解析 高(等于无文档 API) 低,改版即坏 GBK / 非 UTF-8 文本 行情 ~ 分隔串 不能,编码错乱 中(显式解码) 中,字段顺序固定 浏览器一个都处理不好:JSONP 给你一段脚本而不是一个值;HTML 解析放在客户端意味着上游每次小改版都打坏用户的浏览器,而你没法在服务端修;GBK 在 res.text() 下直接变乱码。所以浏览器从不直连上游,它连我自己的 API,这层做四件事:取、解码、归一、缓存。 浏览器 ──► GET /api/fund/holdings?code=000001 │ ▼ Node + Express ├─ 内存缓存(5 分钟) ├─ 上游请求(估值 / 归档 / 行情) ├─ 解码 + 解析 + 归一 └─ 稳定 JSON 契约 这层代理也是配额、限流和会员校验落脚的地方。这里只谈数据本身。 JSONP:把响应体当文本切括号 估值接口返回这样一段: // https://fundgz.example.com/js/000001.js jsonpgz({"fundcode":"000001","name":"...","jzrq":"2026-11-25", "dwjz":"1.2345","gsz":"1.2400","gszzl":"0.45","gztime":"2026-11-25 15:00"}); fetch 加 res.json() 会直接抛。正确做法是当文本取回,找第一个 ( 和最后一个 ): async function fetchEstimate(code) { const res = await fetch(`https://fundgz.example.com/js/${code}.js`, { headers: { Referer: 'https://example.com/' }, signal: AbortSignal.timeout(8000), }); const text = await res.text(); const start = text.indexOf('('); const end = text.lastIndexOf(')'); if (start < 0 || end < start) throw new Error('UNEXPECTED_JSONP'); return JSON.parse(text.slice(start + 1, end)); } 三个细节比解析本身重要: 必须有超时。 公开接口会挂住,没有 AbortSignal 时一个慢请求会拖住整个代理的连接池。 必须有体积上限。 一个被篡改或异常的上游可能返回几十 MB,先读 content-length 再决定是否继续。 保留原始载荷几分钟。 一次渲染错乱要排查时,不用重新打上游。 Referer 有时是必需的——不少公开接口按来源做最粗的防盗链。这不是"伪装",而是这类接口对匿名调用的既有约定;但它也意味着你的代理不能假装自己是一个普通用户在做高频请求,限流仍然要做。 HTML 表格:把页面当成没有版本号的 API 持仓归档接口返回整页,没有 JSON 版本。解析器实际上是一个没有文档的

First reported Dec 01, 2026 06:04 UTCCatalog metadata updated Dec 01, 2026 06:11 UTCOpen evidence record
REPORT1 SOURCE

子域名还是子路径:一个产品与博客同域并存的取舍

子域名还是子路径:一个产品与博客同域并存的取舍 博客在 GitHub Pages 上,产品是需要服务器的 Node 进程。两者不可能同主机,于是问题变成:产品在读者眼里长什么样——app.example.com,还是 example.com/app? 同一个应用,两种形态我都跑过。子域名版花了一个下午;子路径版花了一个下午,外加一周去找所有"路径前缀漏出来"的地方,但也让我把 Web 应用怎么串起来看得更清楚。 先划边界:这套对比适用于一个静态博客 + 一个自托管 Node 应用、单个域名、单台服务器、博客不打算拆成多个子站。如果产品要独立品牌、独立团队、独立发布节奏,子域名几乎是唯一答案,不用看完。 一张表定生死 维度 子域名 app.example.com 子路径 example.com/app DNS 新增一条 A 记录,博客不动 裸域改指服务器,博客靠反代兜住 证书 一张独立证书 一张覆盖裸域 + www 的证书,续期要与反代共存 Nginx 一个 server 块 一个 location + 一条尾斜杠 + 一条兜底重定向 应用改动 无,路由原样 前缀渗透到路由、静态资源、API base、同源判断 Cookie 按主机隔离,天然不串 与博客共享域,Path/Domain 要显式管 搜索 独立站点,独立权重与抓取预算 继承博客权重,一个属性覆盖两边 故障域 产品挂了不影响博客 反代或证书出错,全站一起挂 回滚成本 低,改 DNS 即可 高,DNS + 前缀 + 旧链接重定向 上手时间 半天 半天上线,一周收尾 这张表里真正决定成败的是第 5 行和第 7 行:前缀不是配置问题,是代码里散落的假设问题;子路径把两个系统的可用性绑在了一起。 子域名:三样东西,没有隐藏成本 一条 DNS: app A 203.0.113.10 TTL 600 一张该主机名的证书: certbot certonly --webroot -w /var/www/html -d app.example.com 一个 server 块: server { listen 443 ssl http2; server_name app.example.com; ssl_certificate /etc/letsencrypt/live/app.example.com/fullchain; ssl_certificate_key /etc/letsencrypt/live/app.example.com/privkey; location / { proxy_pass http://127.0.0.1:3000; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } } 应用完全不知道自己跑在子域名上:app.get('/api/me') 照样匹配,/js/app.js 照样解析,Cookie 默认属于该主机,也不会串到博客。 两件事仍然值得做: 不要暴露 Node 端口。 防火墙只放 80 和 443;外网 curl http://203.0.113.10:3000 能通,就是一个发现项。 转发协议头。 没有 X-Forwarded-Proto,应用分不清 HTTPS 和 HTTP,结果要么设了不安全的 Cookie,要么在重定向里打转。 子域名的隐性代价只有一个:SEO 权重分离。它在搜索引擎眼里是另一个站点,要自己攒外链、自己争抓取预算。产品是独立实体时这是优点;产品只是同一份出版物的一栏时,这是持续的损耗。 子路径:一行反代,一周修补 反向代理部分是一行,代价在一个容易漏看的字符: location ^~ /app/ { proxy_pass http://127.0.0.1:3000/; # 尾斜杠会剥掉 /app } location = /app { return 301 /app/; } 尾斜杠在,/app/api/me 到 Express 就是 /api/me;不在,Express 看到的是 /app/api/me,所有路由 404。location = /app 那条重定向也必要:不带斜杠的 /app 命中另一条规则,页面里所有相对链接都会往上错一层。 然后应用代码必须配合。四个漏点,按出问题的顺序: 1. 服务端路由。 每个挂载都要前缀: const BASE = config.basePath; // 子路径模式是 '/app',否则是 '' app.use(

First reported Dec 01, 2026 06:06 UTCCatalog metadata updated Dec 01, 2026 06:11 UTCOpen evidence record
REPORT1 SOURCE

三套缓存策略,让 CDN 不用再手动刷新

三套缓存策略,让 CDN 不用再手动刷新 小站迟早会遇到同一句对话:"我换了 Logo,浏览器还是显示旧的。"常见答案三个:等一天、手动加 ?v=2、去 CDN 刷新。三个都是同一个错误的症状——把全部静态文件当成一个缓存问题。 它们不是。静态内容至少分三类,每类需要不同契约: HTML 必须立刻反映发布; 构建产物(JS、CSS)只要 URL 随内容变,就可以永久缓存; 人替换的图片没有内容哈希,只能靠协商缓存验证。 先划边界:这套策略适用于静态站点或 SSR 页面的静态外壳、资源由自己的 nginx 提供、CDN 只做边缘缓存。如果页面内容本身按用户变化(个性化推荐、登录态内容),它属于"私有响应",不该走这套公开缓存,第五节会单独说。 三种失效策略,代价完全不同 "让用户拿到新版本"只有三条路,选哪条决定你的发布流程长什么样: 策略 生效速度 带宽成本 发布流程 主要风险 短 TTL 分钟到小时级 高,反复重下 无 发布后有一段"新旧混合"窗口 手动刷新 CDN 秒级 低 依赖人的操作,容易漏 忘了刷、刷错 zone、边缘节点未全部生效 URL 随内容变化 秒级,且自动 低,只下新文件 构建期生成 版本号与长缓存必须同时上线 我选第三条,因为它把"失效"从运维动作变成了 URL 的属性。目标不是"最大缓存"或"零缓存",而是:URL 就是字节的身份。 两个方向的代价都真实发生过 全部短缓存。 给 JS 和 HTML 设 max-age=3600,意味着用户可能用着昨天的代码去调今天的 API,长达一小时。在响应结构带版本号的数据接口上,这不是性能问题,是正确性问题。 全部永久缓存。 给文件名永不变的文件加 immutable,等于把一个 bug 钉在原地一整年。我踩过一次:一个单字符 CSS 修复(overflow: hidden 改成 auto),因为文件名没变、immutable 已生效,一半用户看不到,最后靠支持脚本引导用户清缓存。解法不是"记得刷新",是让文件名变。 干脆关掉缓存。 到处 no-store 看起来最安全,实际最贵:1 MB 的图表库每次导航都重下,没有 304,移动用户为自己已经有的字节付费。 第一层:HTML 永远协商 HTML 是入口,也是最可能在发布时变化的东西。它不该在不问源站的情况下被缓存直接返回: location ~* \.html$ { add_header Cache-Control "no-cache, must-revalidate" always; etag on; if_modified_since exact; } no-cache 不是"不存",是"存,但用之前必须验证"。配合 ETag,验证是一次条件请求,通常得到一个没有响应体的 304。发布改变了它就拿到新页面,中间每次导航只付一个空响应。 if_modified_since exact 防一个隐蔽 bug:有些代理和客户端会发送被截断或取整的时间戳,宽松比较会对一个真的变了的文件返回 304。精确匹配避免"两个时间戳落在同一秒"而返回旧页面。 这条策略的代价要说清:每次导航多一个 RTT。在 4G 上大约 100–300 毫秒,且发生在首屏之前。对小站可接受,因为 304 能被 CDN 边缘直接回答(边缘回源一次后本地就有 ETag)。如果连这个 RTT 都不能接受,唯一出路是给 HTML 一个很短的 s-maxage(如 60 秒)再配合部署时刷新——但那又回到了手动流程,取舍要自己认。 给看板供数的 JSON 用同一策略。一个 data.json 配一小时 TTL,就是发布之后看板说谎一小时。 第二层:内容哈希进文件名,而不是查询串 最稳的做法是让哈希进入路径: <link rel="stylesheet" href="/css/site.a1b2c3d4.css"> <script src="/js/app.a1b2c3d4.js"></script> 于是响应头可以绝对: location ~* \.[a-f0-9]{8}

First reported Dec 01, 2026 06:03 UTCCatalog metadata updated Dec 01, 2026 06:11 UTCOpen evidence record
REPORT1 SOURCE

从 50 分到 99 分:静态博客首屏性能重建全过程

从 50 分到 99 分:静态博客首屏性能重建全过程 静态站点本该天生快。我的不是。 HTML 在构建时生成,没有 React 或 Vue 的包,每篇文章就是磁盘上的一个文件。但 PageSpeed Insights 给首页的移动端 Performance 打了 50 分,桌面端 82 分;移动端 LCP 4.7 秒,CLS 0.877,Speed Index 8.4 秒。我在本机打开时觉得挺快,那是对着缓存和本地回环测出来的错觉,不是第一次访问的读者在手机网络上的体验。 真正解决问题靠的不是某一项优化,而是改了首屏的产出方式:不再用 JavaScript 拼首屏、不再让同步 CSS 挡住渲染、不再拿加载遮罩盖住已经渲染好的内容,也不再拿分数当目标——它只是症状。 三种首屏产出方式,只有一种适合静态站 "首屏由谁产出"决定了性能上限,调优只能在这个上限内做文章: 方式 首屏来源 首次绘制依赖 适合场景 主要代价 运行时拼装 客户端请求 JSON 后渲染 脚本、网络、模板全部就绪 内容强个性化、需要实时数据 首屏等于一串 Promise,慢网下白屏 服务端渲染 每次请求现算 HTML 服务端响应 + 关键资源 登录态内容、频繁变化 需要常驻服务与缓存策略,TTFB 敏感 构建期产出 + 运行时增强 构建写死首屏,脚本只做增强 一个 HTML 响应 内容型站点、列表页、文章页 构建要承担更多逻辑,动态部分需降级 第三种是我最后采用的。它的关键不是"静态",而是脚本不再拥有首次绘制:脚本挂了页面仍可读,JSON 慢了前六张卡片仍在。 先测,别先改 第一步不是打开 CSS 文件,而是看网络时间线,问一个更朴素的问题:JavaScript 跑起来之前,屏幕上有什么? 答案是几乎什么都没有。 首页 HTML 里其实带着一份静态文章列表,但一条规则在 JavaScript 可用时立刻把它藏了: html.js .static-home-feed { display: none !important; } 真正的列表是运行时拼的:加载模板、请求 feed JSON、请求侧栏 JSON、请求友链 JSON、渲染卡片,等一串 Promise 落地后再插入页脚。手机网络下的时间线大致是: 时间点 发生了什么 后果 2.8s 七个同步 CSS 仍挡着渲染 首次绘制被推迟 2.9–4.0s 横幅脚本去请求友链 JSON 横幅进入关键路径 3.9–4.2s feed 与侧栏 JSON 完成 页脚还在等 3.9s Cookie 提示成为 LCP 候选 正文还没出现 5.1–5.4s 首页模板作为独立请求再拉一次 多一次串行请求 5.4s feed JSON 又请求了三次 重复初始化 6.7s 第三次请求完成 卡片才稳定 桌面端更夸张:分数 82,实测 LCP 超过 11 秒。这正是模拟分的陷阱——页面不是"CSS 稍微大了点",而是最大可见元素被一串依赖推迟插入。 任何带客户端 feed 的静态站都要注意:只发一个空壳的静态构建,在浏览器看来不是静态站,而是后缀叫 .html 的小型客户端应用。 测量口径必须写清楚,否则数字不可比: 设备:移动端模拟(Moto G Power 一类),4× CPU 降速; 网络:Slow 4G,约 1.6 Mbps,150ms RTT; 缓存:每次冷启动,禁用扩展与本地缓存; 次数:同一 URL 连跑 5 次取中位数,单次值波动可达 20%; Lab 与 Field 分开看:Lighthouse 用于回归,Search Console 的 28 天真实用户数据用于趋势。 我最初就是只看了本机回环,把"我觉得快"当成了基线。没有测量口径的性能数字,连自己都骗不过。 先修 HTML,再修 JavaScript 收益最高的改动,是把首屏从运行时搬回构建期。 构建现在直接把前六张文章卡片、页脚、顶部横幅、Cookie 提示写进 HTML。运行时脚本还在,但它不再拥有首次绘制。 这一步同时改善 LCP 和 CLS:桌面端 LCP 候选变成第一张

First reported Dec 01, 2026 06:04 UTCCatalog metadata updated Dec 01, 2026 06:11 UTCOpen evidence record
REPORT1 SOURCE

Cara Menggunakan MCP Inspector untuk Menguji Server MCP Anda

Cara Menggunakan MCP Inspector: Dari Web UI ke Smoke Test CI Untuk menggunakan MCP Inspector, jalankan npx @modelcontextprotocol/inspector untuk web UI atau tambahkan --cli untuk klien yang dapat dikendalikan skrip, arahkan ke server Anda (perintah stdio atau URL HTTP), lalu periksa handshake, daftarkan tool, resource, dan prompt, serta panggil satu tool. CLI mengembalikan JSON dan kode keluar yang stabil, sehingga pemeriksaan yang sama bisa langsung dipakai di CI. Coba Apidog hari ini Di bawah ini Anda akan menjalankan setiap langkah terhadap server sungguhan, lalu mengubah pemeriksaan tersebut menjadi rangkaian pengujian otomatis yang dipelihara oleh coding agent Anda. Apa Itu MCP Inspector? MCP Inspector adalah tool developer resmi dari proyek Model Context Protocol untuk menguji dan men-debug server MCP. Tool ini terhubung ke server seperti klien sungguhan, menyelesaikan handshake initialize, dan memungkinkan Anda mendaftar serta memanggil tool, membaca resource, dan mengambil prompt, sehingga Anda dapat melihat persis apa yang akan dilihat agen. Rilis saat ini adalah lini v2 (2.17.0 di npm per 1 Desember 2026). Dirilis sebagai satu paket, @modelcontextprotocol/inspector, dengan tiga cara menjalankannya: Mode Perintah Cocok untuk Web UI npx @modelcontextprotocol/inspector Menjelajahi server secara manual, membaca skema, mencoba argumen tool CLI npx @modelcontextprotocol/inspector --cli Skrip, job CI, umpan balik cepat untuk coding agent TUI npx @modelcontextprotocol/inspector --tui Pengujian interaktif di terminal atau lewat SSH Ketiganya mendukung stdio (Inspector menjalankan server Anda), Streamable HTTP, dan SSE. Untuk tool lain, lihat kumpulan inspector MCP terbaik kami; panduan ini hanya membahas yang resmi. Yang Anda Perlukan Sebelum Memulai Ada tiga hal yang Anda perlukan: Node.js pada lini yang didukung. 2.17.0 mendeklarasikan ^22.23.4 || ^24.22.1 || >=26.12.1. Rilis patch yang lebih lama akan mendapat peringatan EBADENGINE (namun tetap berjalan di Node 24.15 bagi kami). Sebuah server MCP. Milik Anda, atau server referensi Everything resmi (@modelcontextprotocol/server-everything), yang menyediakan 17 tool, 4 prompt, dan 8 resource. jq untuk membuat skrip CLI. Instal kedua paket secara lokal agar koneksi pertama tidak timeout saat npx mengunduh server: npm i -D @modelcontextprotocol/inspector@2.17.0 @modelcontextprotocol/server-everything Langkah 1: Jalankan MCP Inspector terhadap server Anda Mulai web UI Jalankan Inspector tanpa target untuk membuka web UI: npx mcp-inspector Perintah ini mencetak banner seperti berikut dan membuka browser Anda: MCP Inspector Web is up and running at: http://127.0.0.1:6274?MCP_INSPECTOR_API_TOKEN=<token> Sandbox (MCP Apps): http://127.0.0.1:6275/sandbox Secrets: OS keychain Port 6274 melayani UI; 6275 adalah sandbox MCP Apps. Token dibuat acak setiap peluncuran dan menjaga setiap panggilan /api/*, jadi jangan bagikan URL tersebut. Secret disimpan di keychain OS; pada mesin headless tanpa keychain, secret dialihkan ke ~/.mcp-inspector/secrets.json, tanpa enkripsi kecuali Anda menyediakan kunci. Di UI, pilih transport, masukkan perintah atau URL, lalu hubungkan. Atau hubungkan langsung dari CLI Untuk server stdio, letakkan perintah server setelah --cli. Untuk server jarak jauh, berikan --transport dan --server-url: # stdio: the Inspector spawns the server npx mcp-inspector --cli npx mcp-server-everything --method initialize --format json # Streamable HTTP npx mcp-inspector --cli --transport http \ --server-url http://localhost:3001/mcp --method initialize --format json --method initialize adalah probe koneksi saja: ia menyelesaikan handshake, mencetak serverInfo, protocolVersion, dan capabilities, lalu terputus. Server Everything melaporkan protokol 2025-11-25. Jika server Anda menerima flag yang juga didefinisikan Inspector (seperti --

First reported Dec 01, 2026 06:03 UTCCatalog metadata updated Dec 01, 2026 06:11 UTCOpen evidence record

A filename, label, or report mention alone does not establish maliciousness. Observation dates describe cited sources; collection dates describe this local metadata catalog. No malware samples are stored, fetched, or executed by these pages.