<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Victor Laybats on Medium]]></title>
        <description><![CDATA[Stories by Victor Laybats on Medium]]></description>
        <link>https://medium.com/@laybats.victor?source=rss-7940ccc93d1d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*6RRJuIsYucnUWKk3</url>
            <title>Stories by Victor Laybats on Medium</title>
            <link>https://medium.com/@laybats.victor?source=rss-7940ccc93d1d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 16:05:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@laybats.victor/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Cheapest Day to Fly (and to Book), Measured on 21,037 Routes]]></title>
            <link>https://medium.com/@laybats.victor/cheapest-day-to-fly-and-to-book-measured-on-21-037-routes-589f90352f2f?source=rss-7940ccc93d1d------2</link>
            <guid isPermaLink="false">https://medium.com/p/589f90352f2f</guid>
            <category><![CDATA[travel-tips]]></category>
            <category><![CDATA[travel]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[flight]]></category>
            <category><![CDATA[budget-travel]]></category>
            <dc:creator><![CDATA[Victor Laybats]]></dc:creator>
            <pubDate>Fri, 23 Oct 2026 17:38:12 GMT</pubDate>
            <atom:updated>2026-10-27T19:23:24.858Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*etW9oJ5TLa-XmP19.png" /></figure><p>This story was created with the help of AI.</p><p>Snapshot of 23 October 2026. <a href="https://flareflights.com/cheapest-day-to-fly/">The live version of this study</a> recomputes every figure each day from the fares Flare observes.</p><h3>The short answer</h3><p>Departures on Tuesday carried the deepest discounts in the fares Flare found over the last 3 days: 14.3 % below the usual price on average, against 13.1 % for Friday departures. The gap between the best and the worst departure day is 1.2 points.</p><p>The day you book changes almost nothing. Across 21,037 routes followed every day since 5 June 2026, the lowest fare appeared on every weekday (10.6 % to 16.4 % of routes) and the average price index moves by only 0.4 points between the cheapest and the dearest booking day. There is no Tuesday effect in Flare’s data.</p><p>What does move prices is how far ahead you book: the deepest drops appear 31 to 60 days before departure (15.5 %), inside two weeks they shrink to 11.4 %. See <a href="https://flareflights.com/when-to-book-flights/">when to book flights</a>.</p><h3>Cheapest day to fly: departure day</h3><ul><li>Monday: 13.9 % below the usual price (6,630 fares)</li><li>Tuesday: 14.3 % (6,070 fares)</li><li>Wednesday: 13.3 % (6,139 fares)</li><li>Thursday: 14 % (6,061 fares)</li><li>Friday: 13.1 % (5,831 fares)</li><li>Saturday: 13.3 % (5,845 fares)</li><li>Sunday: 13.1 % (4,529 fares)</li></ul><p>Fares found by Flare in its last scans (290 departure markets, 41,105 fares, lots of less than 3 days), grouped by the weekday of departure.</p><h3>Cheapest day to book: the day the fare was seen</h3><ul><li>Monday: price index 103.2, lowest fare seen on 15.4 % of routes (14 % of observations)</li><li>Tuesday: 103.5, 16.4 % of routes (14.4 %)</li><li>Wednesday: 103.4, 14.5 % (14.4 %)</li><li>Thursday: 103.3, 14.1 % (14.4 %)</li><li>Friday: 103.4, 16.3 % (14.7 %)</li><li>Saturday: 103.6, 12.8 % (14 %)</li><li>Sunday: 103.5, 10.6 % (14.2 %)</li></ul><p>Lowest fare found each day on 21,037 routes, from 5 June 2026 to 23 October 2026, each route followed on at least 60 days. A share of minimums close to the share of observations means the weekday played no role.</p><h3>Booking day by departure country</h3><ul><li>Italy: cheapest booking day Wednesday, dearest Sunday, spread 1.1 index points (2,112 routes)</li><li>Spain: Monday, Sunday, 0.5 (1,742 routes)</li><li>Germany: Thursday, Monday, 0.9 (1,637 routes)</li><li>United Kingdom: Thursday, Wednesday, 0.7 (1,582 routes)</li><li>France: Monday, Tuesday, 0.9 (1,547 routes)</li><li>United States: Wednesday, Monday, 0.3 (1,363 routes)</li><li>Poland: Monday, Saturday, 6.5 (1,148 routes)</li></ul><p>Countries with at least 300 routes followed. A spread under 1 point is noise.</p><h3>How these numbers are measured</h3><p>Departure day: Flare keeps, for each departure market, the best fares its scanner found in the last 3 days. Each fare carries a price and the usual price of its route. The discount is 1 minus price over usual price, averaged by the weekday of the departure date.</p><p>Booking day: for every route, Flare records the lowest fare it found each day. For routes with at least 60 daily observations, each observation is divided by the route’s median price, then averaged by weekday. The index shown is the median of those averages across routes. The share of minimums counts the weekday on which each route’s single lowest fare was seen.</p><p><strong>Observations, not guarantees.</strong> Every number on this page is an observation from the fares Flare scans for its alerts. The usual price is Flare’s own reference for each route, measured from its daily scans, and a discount is how far below that reference a fare Flare found was. Nothing here is a quote or a guarantee: check the final price with the provider before paying.</p><h3>FAQ</h3><p>What is the cheapest day to fly?</p><p>In the fares Flare found over the last 3 days, departures on Tuesday were the furthest below their usual price (14.3 % on average), and Friday departures the least (13.1 %). The difference is real but small: 1.2 points. Booking in the right window matters more than the weekday.</p><p>Is it cheaper to book flights on a Tuesday?</p><p>Not in Flare’s data. Across 21,037 routes followed every day, the price index on Tuesdays is 103.5, against 103.2 on the cheapest booking day and 103.6 on the dearest one. Fares move when seats sell or a sale starts, not because of the weekday.</p><p>What is the cheapest day to buy flights?</p><p>No weekday stands out: the lowest fare of a route appeared on every weekday, from 10.6 % of routes to 16.4 %, close to the share of observations each weekday gets. Buy when the fare is below the usual price for that route, whatever the day.</p><p>Do flight prices go down after midnight?</p><p>Flare scans each market once a day, so it cannot measure hours. On the day scale, the booking day makes no measurable difference, which leaves little room for a midnight rule. Flare’s guide on <a href="https://flareflights.com/blog/2026-08-24-flight-prices-drop-after-midnight/">prices after midnight</a> explains why.</p><p>How often are these numbers updated?</p><p>With every refresh of the site, several times a day, from the latest lots and from the full price history. Sample sizes are printed next to each table.</p><h3>Catch the drop instead of guessing the day</h3><p>Flare watches fares from the airports near you and alerts you when one falls well below its usual price, whatever the weekday.</p><p><em>Originally published at </em><a href="https://flareflights.com/cheapest-day-to-fly/"><em>https://flareflights.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=589f90352f2f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How the WikiCards quizzes are made from Wikidata, and what broke]]></title>
            <link>https://medium.com/@laybats.victor/how-the-wikicards-quizzes-are-made-from-wikidata-and-what-broke-2f067234c00e?source=rss-7940ccc93d1d------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f067234c00e</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[wikidata]]></category>
            <category><![CDATA[trivia]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[open-data]]></category>
            <dc:creator><![CDATA[Victor Laybats]]></dc:creator>
            <pubDate>Fri, 23 Oct 2026 16:54:20 GMT</pubDate>
            <atom:updated>2026-10-28T03:33:45.397Z</atom:updated>
            <content:encoded><![CDATA[<p>This story was created with the help of AI.</p><p>Every question of the WikiCards quizzes comes from a fact stored in Wikidata, the free knowledge base behind Wikipedia, and every answer links back to its Wikidata item. Turning those facts into fair questions took more care than expected. Here is what went wrong, measured on 23 October 2026, and what we changed.</p><h3>Where the facts come from</h3><p>A collection script queries the Wikidata SPARQL service and Wikipedia once a month and freezes the result in a file: countries with their capital, continent, currency, official language, population, flag and locator map, rivers, peaks, chemical elements, literary works, paintings, films, Olympic Games, World Cup and championship winners, inventions, people, events and places.</p><p>On 23 October 2026 that file held 196 countries, 784 places, 619 people, 1,154 films, 258 literary works, 122 events, 120 rivers, 92 chemical elements, 91 paintings, 50 US states and 460 championship editions.</p><p>Every day the pages draw 20 questions from it with the date as random seed: the same set for everyone that day, a new one the next day, and each kind of question rotates through its whole stock before starting again.</p><h3>Pitfall 1: nearly one famous person in five had no English or French label</h3><p>Since 2024 Wikidata stores many proper names once, under a label for all languages called mul, instead of repeating them in each language. A query that asks for the English and the French label silently drops those items.</p><p>On a sample of the 200 most-read people of our card catalogue, 36 had no English or no French label, among them George Washington, Barack Obama, William Shakespeare and Novak Djokovic. The capital of Alaska, Juneau, had only the mul label, so Alaska vanished from the US states quiz.</p><p>The fix is to take the label of the language, then mul, then English.</p><h3>Pitfall 2: queries that scan a whole class time out</h3><p>The public SPARQL service stops a query after 60 seconds. Asking for every mountain with its elevation, or every novel with its author, ended in an HTTP 504 error or in a truncated JSON answer, depending on the load of the service.</p><p>The fix is to start from a list of known items instead of a whole class: our most-read Wikipedia cards, mapped to their Wikidata identifiers through the Wikipedia API, then queried by batches of 100 identifiers. The file is also written after each kind of fact, so one failure no longer loses the others.</p><h3>Pitfall 3: the Nile was 2,850 km long</h3><p>Many items carry several values for the same property. The Nile has a length of 6,650 km with a preferred rank, and also 2,850 km with a normal rank. The Amazon has 6,400 km with a preferred rank and four other values, from 3,690 to 6,992 km.</p><p>Taking the median of every value makes the longest river question wrong. We take the values of preferred rank when they exist, drop an item whose remaining values disagree by more than 12 %, and only ask which of four rivers is the longest when the first is at least 15 % longer than the second. The Nile and the Amazon, 4 % apart, are never the two candidates of the same question.</p><h3>Pitfall 4: true in Wikidata, unfair in a quiz</h3><p>Some facts are correct in the database and still make a bad question. Pop songs often record a single co-writer as composer: Wikidata gives RedOne as the composer of Poker Face, which he wrote with Lady Gaga. We removed music.</p><p>The discoverer property also applies to places: Persepolis would be credited to a Spanish diplomat. Discoveries with coordinates are left out.</p><p>Franchises keep their current name for past titles: Super Bowl XI, played in 1977, is won by the Las Vegas Raiders, who were the Oakland Raiders then. American leagues only use editions from 2000.</p><p>Wikidata lists Oceania twice, as Oceania and as Insular Oceania, which put Tuvalu on no continent. Both are merged. Capitals whose status is disputed internationally, Israel and Palestine, are never asked and are marked in the list of capitals.</p><p>Wrong answers are never a prefix of the right one, so Rugby never stands next to Rugby union.</p><h3>Pitfall 5: thumbnails at 320 pixels are refused</h3><p>Flags and locator maps are thumbnails from Wikimedia Commons. A width of 320 pixels returns an HTTP 400 error asking to use the listed thumbnail sizes, while 120, 250, 330 and 500 pixels are served. The quizzes use 330 pixels, and 120 for the flag gallery.</p><p>The result: sixteen quiz pages, twenty questions a day each, every answer with its source. <a href="https://playwikicards.com/trivia-questions/">Play today’s trivia questions</a>, or download <a href="https://github.com/laybatsvictor-cyber/ivryn-open-research/tree/main/datasets/wikicards-wikidata-trivia-facts">the cleaned fact set (CC0) on GitHub</a>. If you build on Wikidata, I would love to hear about the quirks I missed.</p><p><em>Originally published at </em><a href="https://playwikicards.com/how-the-quizzes-are-made/"><em>https://playwikicards.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f067234c00e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Production readiness matrix for n8n and AI workflows]]></title>
            <link>https://medium.com/@laybats.victor/production-readiness-matrix-for-n8n-and-ai-workflows-bb0e1218e028?source=rss-7940ccc93d1d------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb0e1218e028</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[workflow-automation]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[n8n]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Victor Laybats]]></dc:creator>
            <pubDate>Fri, 23 Oct 2026 14:30:20 GMT</pubDate>
            <atom:updated>2026-10-27T19:27:30.414Z</atom:updated>
            <content:encoded><![CDATA[<p>This story was created with the help of AI.</p><p>Open engineering artefact · version 1</p><p>Thirty-two checks for n8n workflows and AI agents, each expressed as inspectable evidence and a failure scenario that can be exercised before deployment.</p><h3>Evidence plus failure</h3><p>Every check asks for an artefact that can be inspected and a failure path that can be triggered. This keeps the matrix useful even when workflow tools, model providers and infrastructure change.</p><h3>Layered scope</h3><p>Rows marked all apply broadly. Rows marked n8n refer to platform-level review. Rows marked AI cover non-deterministic output, tool use and agent authority.</p><p><strong>Ownership and scope</strong></p><ul><li><strong>OWN-01 Named workflow owner</strong> (critical, scope all). Evidence: Owner, deputy and business approver are recorded. Failure test: No one has authority to decide during failure.</li><li><strong>OWN-02 Observable success condition</strong> (high, scope all). Evidence: A measurable output, acceptance rule and review window are written down. Failure test: A successful execution is mistaken for a useful outcome.</li><li><strong>OWN-03 Stop conditions</strong> (critical, scope all). Evidence: The workflow defines inputs and states that must block automation. Failure test: Automation continues through ambiguity or unsafe context.</li><li><strong>OWN-04 Dependency inventory</strong> (high, scope all). Evidence: APIs, models, credentials, queues, databases and human steps are listed. Failure test: A hidden dependency fails without an owner or fallback.</li></ul><p><strong>Inputs and data</strong></p><ul><li><strong>IN-01 Authenticated trigger</strong> (critical, scope all). Evidence: Public triggers use appropriate authentication or a documented public-access decision. Failure test: An unauthorized caller starts a sensitive workflow.</li><li><strong>IN-02 Schema validation</strong> (critical, scope all). Evidence: Required fields, types, sizes and allowed values are checked before processing. Failure test: Malformed input causes unsafe branching or downstream errors.</li><li><strong>IN-03 Untrusted-content boundary</strong> (critical, scope ai). Evidence: External text and files are treated as data, not instructions. Failure test: Injected content changes tool or model behavior.</li><li><strong>IN-04 Data minimization</strong> (high, scope all). Evidence: Only fields necessary for the workflow are collected and retained. Failure test: Sensitive data is exposed without operational need.</li><li><strong>IN-05 Authoritative source rule</strong> (high, scope all). Evidence: Conflicts between systems resolve to a named source of truth. Failure test: Different runs produce inconsistent decisions from conflicting data.</li></ul><p><strong>Execution and recovery</strong></p><ul><li><strong>FLOW-01 Idempotency key</strong> (critical, scope all). Evidence: Repeated triggers and retries cannot duplicate the external effect. Failure test: A timeout or replay creates duplicate records or messages.</li><li><strong>FLOW-02 Bounded retry policy</strong> (critical, scope all). Evidence: Only transient failures retry, with a cap, delay and terminal path. Failure test: A persistent failure loops, increases cost or repeats side effects.</li><li><strong>FLOW-03 Explicit timeout</strong> (high, scope all). Evidence: Every remote dependency has a timeout shorter than the workflow budget. Failure test: One call holds the workflow indefinitely.</li><li><strong>FLOW-04 Error workflow</strong> (critical, scope n8n). Evidence: Unhandled failures reach a tested error path with useful context. Failure test: The execution stops silently or alerts without diagnostic data.</li><li><strong>FLOW-05 Partial-failure policy</strong> (critical, scope all). Evidence: The design states when to stop, compensate, queue or continue. Failure test: Continue-on-error hides a missing critical step.</li><li><strong>FLOW-06 Dead-letter path</strong> (high, scope all). Evidence: Terminal failures are retained for bounded, authorized replay. Failure test: Failed work is lost or retried blindly.</li><li><strong>FLOW-07 Manual recovery runbook</strong> (high, scope all). Evidence: A person can identify state, avoid duplicates and resume safely. Failure test: Recovery requires ad hoc database or workflow edits.</li></ul><p><strong>AI behavior</strong></p><ul><li><strong>AI-01 Representative evaluation set</strong> (critical, scope ai). Evidence: Typical, edge, ambiguous and refusal cases are versioned. Failure test: A prompt change ships without behavioral comparison.</li><li><strong>AI-02 Structured output validation</strong> (critical, scope ai). Evidence: Model output is parsed against a strict schema before use. Failure test: Malformed or invented fields reach downstream actions.</li><li><strong>AI-03 Least-capability tools</strong> (critical, scope ai). Evidence: The agent receives only the tools and parameters required for its task. Failure test: A manipulated or mistaken choice has excessive impact.</li><li><strong>AI-04 Human approval for material actions</strong> (critical, scope ai). Evidence: External, financial, sensitive or irreversible actions require proportionate approval. Failure test: A plausible but wrong output directly changes external state.</li><li><strong>AI-05 Model and prompt version</strong> (high, scope ai). Evidence: Model, parameters, prompt and tool manifest are identifiable per execution. Failure test: A behavioral regression cannot be attributed or reproduced.</li><li><strong>AI-06 Cost and loop ceiling</strong> (critical, scope ai). Evidence: Token, step, time and tool-call ceilings stop runaway execution. Failure test: An agent loop consumes unbounded budget or API capacity.</li></ul><p><strong>Security and privacy</strong></p><ul><li><strong>SEC-01 Least-privilege credentials</strong> (critical, scope all). Evidence: Each credential exposes only necessary operations and environments. Failure test: A node compromise grants broad account access.</li><li><strong>SEC-02 Secret hygiene</strong> (critical, scope all). Evidence: Secrets stay in credential storage or controlled environment configuration. Failure test: Keys leak into workflow JSON, logs or error messages.</li><li><strong>SEC-03 Risky-node review</strong> (high, scope n8n). Evidence: Code, shell, file, database and community nodes receive explicit review. Failure test: A powerful node expands the attack surface unnoticed.</li><li><strong>SEC-04 Log redaction</strong> (critical, scope all). Evidence: Tokens, personal data and confidential payloads are removed or minimized in traces. Failure test: Debug evidence becomes a data leak.</li><li><strong>SEC-05 Retention and deletion rule</strong> (high, scope all). Evidence: Execution data has a documented retention period and deletion process. Failure test: Sensitive payloads remain indefinitely.</li></ul><p><strong>Operations</strong></p><ul><li><strong>OPS-01 Deployment version and rollback</strong> (critical, scope all). Evidence: A release is identifiable and a prior safe version can be restored. Failure test: An incident cannot be contained without rebuilding from memory.</li><li><strong>OPS-02 Health versus outcome metrics</strong> (high, scope all). Evidence: Availability, error rate, latency, cost and output quality are measured separately. Failure test: HTTP success hides wrong or low-quality output.</li><li><strong>OPS-03 Actionable alerts</strong> (high, scope all). Evidence: Alerts have severity, owner, destination, threshold and response expectation. Failure test: Noise masks a material failure.</li><li><strong>OPS-04 Synthetic failure test</strong> (critical, scope all). Evidence: Timeout, bad input, rate limit and downstream outage paths are exercised. Failure test: The fallback exists only on the canvas and fails when needed.</li><li><strong>OPS-05 Periodic access and audit review</strong> (high, scope n8n). Evidence: Credentials, webhooks, nodes, versions and inactive workflows are reviewed. Failure test: Old access and exposed triggers accumulate silently.</li></ul><h3>Use and limits</h3><p>The matrix is a review aid, not a security certification, warranty or substitute for a project-specific legal, privacy or compliance assessment. Not every check applies to every workflow, and risk determines how much evidence is proportionate.</p><p>A green execution status proves that the engine completed a path. It does not prove that the output was correct, authorized or useful.</p><h3>Primary references</h3><ul><li><a href="https://docs.n8n.io/hosting/securing/security-audit/">n8n security audit documentation</a></li><li><a href="https://docs.n8n.io/build/flow-logic/handle-errors-gracefully/">n8n error handling documentation</a></li><li><a href="https://www.nist.gov/itl/ai-risk-management-framework">NIST AI Risk Management Framework</a></li><li><a href="https://owasp.org/www-project-top-10-for-large-language-model-applications/">OWASP Top 10 for LLM applications</a></li></ul><p>Suggested citation: Victor Laybats (2026), “Production readiness matrix for n8n and AI workflows”, version 2026–08–14, <a href="https://victorlaybats.com/research/automation-readiness/2026-08-14/">https://victorlaybats.com/research/automation-readiness/2026-08-14/</a></p><h3>Related delivery constraint</h3><p>The <a href="https://victorlaybats.com/constraints/keep-existing-systems/">keep-existing-systems constraint</a> shows how the same evidence-first method avoids replacing working infrastructure without proof.</p><p><em>Originally published at </em><a href="https://victorlaybats.com/research/automation-readiness/2026-08-14/"><em>https://victorlaybats.com</em></a><em> on October 23, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb0e1218e028" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>