<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ahmed Alsharqwi</title>
    <description>The latest articles on DEV Community by Ahmed Alsharqwi (@ahmed_alsharqwi_54618cbb4).</description>
    <link>https://dev.to/ahmed_alsharqwi_54618cbb4</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4275959%2Ff3f72dad-bf82-470a-b3fc-81e52f45d74e.png</url>
      <title>DEV Community: Ahmed Alsharqwi</title>
      <link>https://dev.to/ahmed_alsharqwi_54618cbb4</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ahmed_alsharqwi_54618cbb4"/>
    <language>en</language>
    <item>
      <title>Can 75 years of weather judge a proverb? Building Proverb Court with Kiro</title>
      <dc:creator>Ahmed Alsharqwi</dc:creator>
      <pubDate>Tue, 01 Dec 2026 09:05:05 +0000</pubDate>
      <link>https://dev.to/ahmed_alsharqwi_54618cbb4/can-75-years-of-weather-judge-a-proverb-building-proverb-court-with-kiro-1ln1</link>
      <guid>https://dev.to/ahmed_alsharqwi_54618cbb4/can-75-years-of-weather-judge-a-proverb-building-proverb-court-with-kiro-1ln1</guid>
      <description>&lt;p&gt;This post is written as part of the Kiroween 2026 hackathon. My entry, Proverb Court, is in the Frankenstein category: Egyptian folklore, the Coptic calendar and 76 years of reanalysis weather data, stitched into one app.&lt;/p&gt;

&lt;h2&gt;
  
  
  The question
&lt;/h2&gt;

&lt;p&gt;Every Egyptian winter someone quotes the months. «طوبة تخلي الشابة كركوبة»: Touba, the fifth Coptic month, which lands in the middle of the Egyptian winter, makes a young woman hunch over from the cold. «أمشير أبو الزعابيب الكتير ياخد العجوزة ويطير»: Amshir, the next month, is the father of the gales that carry an old woman off. Britain has its own: rain on St Swithin's Day means forty more wet days, an east wind on Candlemas sticks until May, and March comes in like a lion and goes out like a lamb.&lt;/p&gt;

&lt;p&gt;These sayings are confident. I wanted to know how often the weather agrees with them. The catch is that "Touba is the coldest month" can mean several things, and a number only means something next to what chance would give.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the app does
&lt;/h2&gt;

&lt;p&gt;You pick a saying, a place and a definition of what the saying means. Then you place a bet, true or false, before you see anything. Proverb Court tests the definition against the daily weather record and stamps a verdict. Four verdicts appear in results: supported, not supported under this definition, inconclusive, or not testable with this data. The engine also has a fifth label, partially supported, for rate rules; no shipped result uses it.&lt;/p&gt;

&lt;p&gt;Every verdict ships with the definition, the years tested, the chance baseline and a 95% interval. Seven sayings are on trial in five places: Cairo, Alexandria, Aswan, Winchester and London. Each verdict has an evidence view, with every tested year as a tick and three 25-year eras on one scale. You can compare the same saying across places, move a definition threshold and watch the statistics recompute in the browser, and share a verdict card with a QR code back to the claim.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it found
&lt;/h2&gt;

&lt;p&gt;Touba as the coldest month is supported. In Cairo it was the coldest month in 53 of 75 years, 70.7% (95% interval 59.6 to 79.8), against a chance baseline of 1 in 12, or 8.3%. Alexandria 66.7%, Aswan 62.7%.&lt;/p&gt;

&lt;p&gt;Amshir is not supported under either definition, in any of the three cities. Under the primary reading, days with gusts of 50 km/h or more, Amshir tops the gale count in Cairo in only 13 of 75 years, 17.3% (10.4 to 27.4). That is 2.1 times chance, but the decision bar we declared for this claim type was 50% plus a 2x lift over chance, published with the pinned definitions, and another month tops that ranking in about five years out of six. Under the secondary reading, mean wind, Cairo gives 3 of 75, or 4.0%.&lt;/p&gt;

&lt;p&gt;Baba, cold arriving with the Coptic month Paopi, is supported 75 years out of 75 in all three cities, against a 50% baseline. That one is climatologically expected. The app shows its definition and its number rather than presenting it as a discovery.&lt;/p&gt;

&lt;p&gt;Three sayings come out inconclusive, and that is the interesting part. St Swithin's Day in Winchester: 24 years had a wet 15 July, none of them followed by 20 or more wet days in the next 40, against a 7.9% base rate, with the 95% interval for the difference running from -16.2 to +6.5 points. It includes zero. The Candlemas east-wind rhyme in London: only 4 of 76 years had an easterly Candlemas, the following 89 days averaged 21.9% easterly against 19.7% otherwise, a difference of +2.2 points with an interval of -9.8 to +14.3. March in like a lion in London: the lamb finish came 7 times in 25 years, 28.0% (14.3 to 47.6), against a third.&lt;/p&gt;

&lt;p&gt;Baramhat is not testable at all. «برمهات روح الغيط وهات» is about the harvest, not the weather. The app says so and shows no number.&lt;/p&gt;

&lt;h2&gt;
  
  
  The disclosure, stated per claim
&lt;/h2&gt;

&lt;p&gt;None of the definitions here was pre-registered, and the app's methodology page says so claim by claim. C3, G1, UK1 and UK2 were frozen after analysis, not pre-registered. C1 and C2 were pinned after an exploratory look. Exploratory runs on 30 November, inside the hackathon window, showed Touba at about 70% and Amshir at about 8% under a mean-wind definition before those two definitions were pinned, and C2's primary interpretation then changed from mean wind to gusts, because the proverb is about violent gusts, not sustained wind. No exploratory output shipped as a verdict: every fixture was regenerated from the raw ERA5 pulls.&lt;/p&gt;

&lt;p&gt;What the test suite proves, and what it does not: tests/claims_consistency.test.js re-derives every stored verdict from the frozen rules and the shipped statistics. That proves the verdicts reproduce from the published rules. It does not prove the order in which they were frozen, and the git history cannot prove that either, because the claims and the verdicts were committed together. I would rather write that sentence than let a passing test stand in for something it does not show.&lt;/p&gt;

&lt;h2&gt;
  
  
  An independent check
&lt;/h2&gt;

&lt;p&gt;A second pipeline, written from scratch in Python from the documented statistical definitions rather than translated from my JavaScript, reproduces all 16 frozen verdict entries exactly. It also caught a real bug: three defects in the JavaScript Student-t helpers inflated the t quantiles, which made the Candlemas interval too wide. The fix is pinned by tests against published Student-t values, and the verdict did not change. The corrected bounds are disclosed in the repo.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the data comes from
&lt;/h2&gt;

&lt;p&gt;The weather is ERA5 reanalysis via Open-Meteo (CC BY 4.0), not station records. It is daily, 1950 to 2025: 76 dataset years, and 75 complete Coptic years for the Egyptian claims. Reanalysis is a model on a 0.25 degree grid, about 25 km, so it is a good guide to patterns and a weaker one to what one thermometer read on one day. Every results screen says so, and the footer links Open-Meteo and the CC BY 4.0 licence.&lt;/p&gt;

&lt;p&gt;One more gap, disclosed rather than hidden: a refetch of Aswan reproduced gust and precipitation exactly, but came back about 0.77 °C cooler on every day, so the original pull's configuration could not be fully reconstructed. The committed files are the frozen source of truth, and the provenance note says the exact original parameters are not recoverable.&lt;/p&gt;

&lt;h2&gt;
  
  
  How Kiro fit in
&lt;/h2&gt;

&lt;p&gt;I built Proverb Court with Kiro CLI, version 3.8.0, headless sessions with a Builder ID login. Fourteen sessions are logged in KIRO_USAGE_LOG.md, from 23:10 on 30 November to 00:13 on 1 December (Cairo time). Two of them, sessions 5 and 7, were killed at the sandbox limit mid-run but still wrote their files. The monthly quota ran out at 00:21 Cairo on 1 December, and everything after that is hand work, which the log marks as hand work.&lt;/p&gt;

&lt;p&gt;Spec first. Kiro wrote the design and the task plan from the requirements before it wrote code: requirements in EARS form (R0 to R17), 13 correctness properties, a 202-line design, and a 186-line task list in six phases, each task mapped to a requirement. Kiro flagged a bug in its own task plan during the calendar-engine session: the spot-check Coptic date was wrong. 1950-01-01 is 1666/4/23, not 1666/5/17.&lt;/p&gt;

&lt;p&gt;Codegen. Kiro wrote the four engine modules (calendar, intervals, metrics, verdicts), the verdict runner, the claims for Baba, Baramhat, St Swithin's, Candlemas and lion and lamb, and their tests. It also caught a schema bug that made the Touba claim return 0 of 75 years: the ranking needed a "lowest" direction and was defaulting to "highest".&lt;/p&gt;

&lt;p&gt;Steering and hooks. The repo has one steering file and one hook that runs the full test suite on save. Both were written by hand after the quota ran out, distilled from conventions the build had already settled into, and the log says so. The hook has not yet run inside a live Kiro session. The no-JavaScript summary spec, added around 10:20 on 1 December, is hand work too.&lt;/p&gt;

&lt;p&gt;Tests. 157 tests, run with node --test. The seeded-random property tests in tests/generative.test.js (calendar round-trip, Wilson interval bounds, Wilson monotonicity) were written by hand after the quota, not generated by Kiro.&lt;/p&gt;

&lt;p&gt;No custom agents, no MCP servers, no Kiro powers. A plain "not used" is more useful to a judge than a stretched claim.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would do next
&lt;/h2&gt;

&lt;p&gt;More sayings, more places, and a printed-collection check of every wording. The wordings are attested from Egyptian press, and from Inwards' Weather Lore (1893) for the Candlemas rhyme, not from a printed collection, and the claims files say exactly that.&lt;/p&gt;

&lt;p&gt;Try it: &lt;a href="https://ahmedalsharqwi2-gif.github.io/proverb-court/app/" rel="noopener noreferrer"&gt;https://ahmedalsharqwi2-gif.github.io/proverb-court/app/&lt;/a&gt;. Code: &lt;a href="https://github.com/ahmedalsharqwi2-gif/proverb-court" rel="noopener noreferrer"&gt;https://github.com/ahmedalsharqwi2-gif/proverb-court&lt;/a&gt;. Built for Kiroween 2026.&lt;/p&gt;

</description>
      <category>kiro</category>
      <category>kiroween</category>
      <category>hackathon</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
