<?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: 朱连兴</title>
    <description>The latest articles on DEV Community by 朱连兴 (@annest).</description>
    <link>https://dev.to/annest</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%2F4240030%2F1a6a0dbd-31d7-4893-9669-8860719f1909.jpg</url>
      <title>DEV Community: 朱连兴</title>
      <link>https://dev.to/annest</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/annest"/>
    <language>en</language>
    <item>
      <title>Why Our Radar Reports Heart Rate About 18 BPM High, and Why We Publish It</title>
      <dc:creator>朱连兴</dc:creator>
      <pubDate>Mon, 30 Nov 2026 23:23:51 +0000</pubDate>
      <link>https://dev.to/annest/why-our-radar-reports-heart-rate-about-18-bpm-high-and-why-we-publish-it-on9</link>
      <guid>https://dev.to/annest/why-our-radar-reports-heart-rate-about-18-bpm-high-and-why-we-publish-it-on9</guid>
      <description>&lt;p&gt;AnBei is a 60 GHz mmWave breathing and heart-rate recorder for children's rooms. Its heart-beat number reads roughly 18 beats per minute high in absolute terms. We put that sentence in the product documentation instead of hiding it behind a calibration constant. This post explains where the bias comes from and why we chose trends over absolutes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two motions, one phase signal
&lt;/h2&gt;

&lt;p&gt;The radar does not see a heart. It sees the chest wall moving. Breathing displaces the surface 4–12 mm; the cardiac component is 0.1–0.5 mm, roughly one to two orders of magnitude smaller. Both are encoded in the phase of the returned signal, and both arrive summed.&lt;/p&gt;

&lt;p&gt;The standard approach is band separation:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;breathing band: roughly 0.1–0.5 Hz (6–30 breaths/min)&lt;/li&gt;
&lt;li&gt;cardiac band: roughly 0.8–2 Hz (48–120 beats/min)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Then you pick the dominant peak in each band and convert to a rate. On a cooperative adult lying still, this works well enough. On a child, with faster breathing and smaller chest excursions, it works less well.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the 18 BPM comes from
&lt;/h2&gt;

&lt;p&gt;Three effects stack up:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Respiratory harmonics land in the cardiac band.&lt;/strong&gt; Breathing is not a pure sinusoid. Its second and third harmonics can fall at 0.8–1.5 Hz — exactly where the heart-beat peak is supposed to be. When the cardiac peak is weak, the harmonic wins, and the reported rate is a multiple of the breathing rate rather than a heart rate.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Phase unwrapping errors.&lt;/strong&gt; Large motion — rolling over, a parent leaning in — produces phase jumps. If the unwrap is imperfect, the residual shows up as a low-frequency artifact that biases the spectral estimate.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Distance and SNR.&lt;/strong&gt; At 1.5 m the cardiac displacement is already near the noise floor. Averaging over a longer window improves the estimate but smears real variability, and it does not remove the harmonic contamination.&lt;/p&gt;

&lt;p&gt;The result is not random noise around the true value. It is a &lt;strong&gt;systematic offset&lt;/strong&gt;, mostly upward, because the harmonic and artifact contributions rarely pull the estimate lower than the true rate.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why not just subtract 18?
&lt;/h2&gt;

&lt;p&gt;Because the offset is not a constant. It varies with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;breathing rate (which moves the harmonics)&lt;/li&gt;
&lt;li&gt;posture and chest geometry&lt;/li&gt;
&lt;li&gt;body motion during the night&lt;/li&gt;
&lt;li&gt;distance and angle&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A single subtracted constant would make some nights look accurate and others worse. Worse, it would imply a precision the sensor does not have. A calibrated medical device earns the right to report absolute BPM; a consumer recorder does not.&lt;/p&gt;

&lt;p&gt;So the product reports:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;breathing rate&lt;/strong&gt; with an accuracy of about ±2 breaths per minute under the stated conditions&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;heart-beat rate&lt;/strong&gt; as a trend, with the absolute offset disclosed&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;night-to-night comparison&lt;/strong&gt; for the same bed and the same child, which is what parents actually ask ("is this week steadier than last week?")&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What "trend only" means in the data model
&lt;/h2&gt;

&lt;p&gt;Practically, this changes the schema. We store the per-night series, not a single nightly number, and comparisons are made between nights rather than against a population norm. The UI shows a band, not a point estimate with implied precision.&lt;/p&gt;

&lt;p&gt;It also means we mark windows as invalid instead of smoothing them:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;child sitting up or moving&lt;/li&gt;
&lt;li&gt;more than one person in the bed&lt;/li&gt;
&lt;li&gt;out of slant range&lt;/li&gt;
&lt;li&gt;occlusion in the RF path (net, canopy, rail)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Averaging an invalid window into the nightly curve is how you manufacture false confidence.&lt;/p&gt;

&lt;h2&gt;
  
  
  Boundaries
&lt;/h2&gt;

&lt;p&gt;AnBei is a recording device, not a medical device. It does not diagnose, does not detect apnoea, does not measure blood oxygen, and is not a substitute for supervision. Children aged 0–3 must always have a caregiver in the same room. If a child shows any abnormality, seek medical attention.&lt;/p&gt;

&lt;p&gt;The honest engineering position is that contact-free cardiac sensing at 1.5 m with a 60 GHz radar is a trend instrument. Publishing the 18 BPM offset costs us a marketing line and buys us something more useful: users who read the curve correctly.&lt;/p&gt;

</description>
      <category>hardware</category>
      <category>sensors</category>
      <category>signal</category>
      <category>embedded</category>
    </item>
    <item>
      <title>Mounting a 60 GHz Radar in a Child's Room: Geometry, Occlusion, and What It Cannot See</title>
      <dc:creator>朱连兴</dc:creator>
      <pubDate>Sun, 29 Nov 2026 20:45:16 +0000</pubDate>
      <link>https://dev.to/annest/mounting-a-60-ghz-radar-in-a-childs-room-geometry-occlusion-and-what-it-cannot-see-1h9f</link>
      <guid>https://dev.to/annest/mounting-a-60-ghz-radar-in-a-childs-room-geometry-occlusion-and-what-it-cannot-see-1h9f</guid>
      <description>&lt;p&gt;AnBei is a 60 GHz mmWave breathing and heart-rate recorder for children's rooms. The sensor measures a child's breathing and heart-beat motion without contact. But almost every disappointing field result I have seen came down to one of two things: the geometry was wrong, or something was in the way. This post is the mounting checklist we ended up with — the parts that are physics, not marketing.&lt;/p&gt;

&lt;h2&gt;
  
  
  The measurement is tiny
&lt;/h2&gt;

&lt;p&gt;At 60 GHz the wavelength is about 5 mm. Breathing moves the chest wall 4–12 mm; the heartbeat component is roughly 0.1–0.5 mm. The radar does not measure those displacements directly. It measures phase shift in the returned signal, and the phase is much more sensitive than the range resolution — which is why sub-millimetre motion is detectable at all.&lt;/p&gt;

&lt;p&gt;That sensitivity is also the problem. Anything that changes the RF path looks like motion.&lt;/p&gt;

&lt;h2&gt;
  
  
  Geometry: a cone, not a room
&lt;/h2&gt;

&lt;p&gt;The usable volume is a cone, not "wherever the sensor can see".&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Height:&lt;/strong&gt; 1.4–1.6 m above the floor, on the wall at the head of the bed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Angle:&lt;/strong&gt; about 45° downward, aimed at the child's chest, not the mattress centre.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Slant range:&lt;/strong&gt; ≤ 1.5 m from the sensor to the chest surface.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Two failure modes dominate:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Too low.&lt;/strong&gt; A sensor lying on a bedside table looks horizontally across the room. The chest wall moves toward and away from the sensor along the line of sight — from the side, the radial component collapses and the phase signal with it. People report "it sees presence but not breathing". That is exactly what a horizontal placement produces.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Too far.&lt;/strong&gt; Phase noise grows with range. At 2.5–3 m the heartbeat component is buried; you may still get a breathing rate, but it will be unstable.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Occlusion: RF is not magic
&lt;/h2&gt;

&lt;p&gt;Every one of these attenuates or scatters the signal enough to break the measurement:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;bed rails and side rails&lt;/li&gt;
&lt;li&gt;mosquito nets and bed canopies&lt;/li&gt;
&lt;li&gt;thick curtains or a wardrobe door left open in the path&lt;/li&gt;
&lt;li&gt;a wall between sensor and bed (60 GHz does not penetrate drywall usefully)&lt;/li&gt;
&lt;li&gt;a ceiling fan or air conditioner blowing across the path&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The practical rule: if you can draw a straight line from the sensor face to the child's chest and that line crosses anything, expect degraded or missing readings. This is also why "just put it behind the headboard" does not work.&lt;/p&gt;

&lt;h2&gt;
  
  
  When a reading is invalid
&lt;/h2&gt;

&lt;p&gt;The device reports a value; that does not mean the value means anything. Readings are only meaningful when the child is:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;lying in bed,&lt;/li&gt;
&lt;li&gt;not moving (rolling over invalidates the current sample),&lt;/li&gt;
&lt;li&gt;alone in the bed,&lt;/li&gt;
&lt;li&gt;within the slant-range limit.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Sitting up, walking around, being held, or sharing the bed with a parent all produce numbers that should be discarded rather than averaged. A recording product should mark those windows as invalid instead of smoothing them into the nightly curve.&lt;/p&gt;

&lt;h2&gt;
  
  
  The offset you have to be honest about
&lt;/h2&gt;

&lt;p&gt;Our heart-beat estimate runs about 18 beats per minute high in absolute terms. That is a known bias of the phase-based extraction at this range, not a calibration we can fix by multiplying by a constant — the bias is not stable across subjects and postures.&lt;/p&gt;

&lt;p&gt;So the product only claims trends: &lt;em&gt;this week versus last week, for the same bed and the same child&lt;/em&gt;. Absolute BPM is shown with that caveat, and we do not use it to classify anything.&lt;/p&gt;

&lt;p&gt;Breathing rate is tighter — within about ±2 breaths per minute under the conditions above.&lt;/p&gt;

&lt;h2&gt;
  
  
  A mounting checklist
&lt;/h2&gt;

&lt;p&gt;Before trusting a single night of data:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Sensor at 1.4–1.6 m, 45° down, aimed at the chest.&lt;/li&gt;
&lt;li&gt;Slant range measured, not estimated — ≤ 1.5 m.&lt;/li&gt;
&lt;li&gt;Nothing in the line of sight: no net, no canopy, no rail, no glass, no wall.&lt;/li&gt;
&lt;li&gt;One person in the bed, lying still during the calibration window.&lt;/li&gt;
&lt;li&gt;Record a baseline night, then compare night-to-night on the same setup.&lt;/li&gt;
&lt;li&gt;Treat any night with a changed layout as a new baseline.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Boundaries
&lt;/h2&gt;

&lt;p&gt;AnBei is a recording device, not a medical device. It does not diagnose, does not detect apnoea, does not measure blood oxygen, and is not a substitute for supervision. Children aged 0–3 must always have a caregiver in the same room. If a child shows any abnormality, seek medical attention.&lt;/p&gt;

&lt;p&gt;The engineering point is narrower than the marketing usually is: a 60 GHz radar in a child's room is a geometry problem first and a signal-processing problem second. Get the cone right and the occlusion wrong, and you get nothing. Get both right, and the phase data is genuinely usable for overnight trends.&lt;/p&gt;

</description>
      <category>hardware</category>
      <category>sensors</category>
      <category>embedded</category>
      <category>iot</category>
    </item>
    <item>
      <title>Reading a Child's Breathing with 60 GHz: What the Radar Actually Measures</title>
      <dc:creator>朱连兴</dc:creator>
      <pubDate>Sun, 29 Nov 2026 06:18:51 +0000</pubDate>
      <link>https://dev.to/annest/reading-a-childs-breathing-with-60-ghz-what-the-radar-actually-measures-2943</link>
      <guid>https://dev.to/annest/reading-a-childs-breathing-with-60-ghz-what-the-radar-actually-measures-2943</guid>
      <description>&lt;h1&gt;
  
  
  Reading a Child's Breathing with 60 GHz: What the Radar Actually Measures
&lt;/h1&gt;

&lt;p&gt;We build a small device for children's rooms. It is called AnBei, and it does one thing: it records breathing and heart-beat counts overnight, then shows the trend to the parents.&lt;/p&gt;

&lt;p&gt;This post is about the signal chain, not a sales pitch. No product link, no pricing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why 60 GHz
&lt;/h2&gt;

&lt;p&gt;A 60 GHz wave has a wavelength of about 5 mm. When it hits a chest, it reflects back. If the chest moves by one millimetre, the round-trip phase shifts by roughly 144 degrees. That is a large, measurable change.&lt;/p&gt;

&lt;p&gt;Breathing moves the chest wall by 4–12 mm. The heart moves it by only 0.1–0.5 mm. Both are within reach of the same radar — but the heart signal is twenty to forty times smaller, which is why it is much harder to read.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: find where the person is
&lt;/h2&gt;

&lt;p&gt;We use FMCW: the transmit frequency rises linearly with time. The returning signal is always slightly "older" than the one being sent. That frequency difference converts directly into distance.&lt;/p&gt;

&lt;p&gt;The device first determines where the child is on the bed, then locks onto that range bin. Everything after that is measured at that one distance.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: amplify to the micrometre scale
&lt;/h2&gt;

&lt;p&gt;At the locked distance, we track phase over time. A 60 GHz wave travelling 1 mm out and 1 mm back changes phase by 4πΔd/λ. With λ ≈ 5 mm, a 0.1 mm chest movement becomes a readable signal.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: separate the two signals
&lt;/h2&gt;

&lt;p&gt;The raw signal contains both rhythms: breathing is slow (3–5 seconds per cycle), the heart is fast (0.7–1 second). A band-pass filter separates them into two curves.&lt;/p&gt;

&lt;p&gt;This also explains the product's hard limit: when a person moves, whole-body displacement swamps the tiny chest signal. Readings are only valid while lying still. That is physics, not a software shortcut.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it cannot do
&lt;/h2&gt;

&lt;p&gt;This matters more than the technical details:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It is &lt;strong&gt;not a medical device&lt;/strong&gt;. No diagnosis, no treatment.&lt;/li&gt;
&lt;li&gt;It does &lt;strong&gt;not&lt;/strong&gt; measure blood oxygen, and does &lt;strong&gt;not&lt;/strong&gt; detect apnoea.&lt;/li&gt;
&lt;li&gt;It does &lt;strong&gt;not&lt;/strong&gt; prevent choking or sudden infant death, and it does not alarm or rescue anyone.&lt;/li&gt;
&lt;li&gt;It does &lt;strong&gt;not&lt;/strong&gt; replace supervision. For children aged 0–3, a caregiver must be in the same room.&lt;/li&gt;
&lt;li&gt;It does not measure temperature, and cannot tell whether a child kicked off the blanket.&lt;/li&gt;
&lt;li&gt;It supports one person only. Two children in one bed produce mixed data.&lt;/li&gt;
&lt;li&gt;60 GHz does not pass through walls, bed rails, or mosquito nets — mounting geometry decides whether you get data or noise.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  On accuracy
&lt;/h2&gt;

&lt;p&gt;We publish the known bias rather than a marketing number: heart-rate absolute values run about 18 beats per minute high, so we treat them as a trend only. Breathing is within about 2 breaths per minute. What is useful is comparing this week with last week on the same device.&lt;/p&gt;

&lt;h2&gt;
  
  
  Mounting
&lt;/h2&gt;

&lt;p&gt;Mount it on the wall above the bed head, 1.4–1.6 m high, with a 45-degree bracket pointing down at the mattress, within 1.5 m of the chest. Flat on a bedside table does not work: the beam is horizontal and chest movement is perpendicular to it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where this fits
&lt;/h2&gt;

&lt;p&gt;Four product lines, one radar platform:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Line&lt;/th&gt;
&lt;th&gt;Room&lt;/th&gt;
&lt;th&gt;Question it answers&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;AnNest&lt;/td&gt;
&lt;td&gt;living room&lt;/td&gt;
&lt;td&gt;fall detection (camera-based)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AnXin&lt;/td&gt;
&lt;td&gt;elder's room&lt;/td&gt;
&lt;td&gt;presence via WiFi signal disturbance&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AnMai&lt;/td&gt;
&lt;td&gt;elder's room&lt;/td&gt;
&lt;td&gt;breathing and heart rate trends&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;AnBei&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;child's room&lt;/td&gt;
&lt;td&gt;breathing and heart rate trends&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;AnBei is the same hardware as AnMai, repositioned for a different buyer and a much stricter set of boundaries.&lt;/p&gt;




&lt;p&gt;AnBei is not a medical device. It is not for diagnosis, apnoea detection, or SIDS prevention. It does not measure blood oxygen and does not replace supervision. Children aged 0–3 must always have a caregiver in the same room. If a child shows any abnormality, seek medical attention promptly.&lt;/p&gt;

</description>
      <category>radar</category>
      <category>iot</category>
      <category>sensors</category>
      <category>hardware</category>
    </item>
    <item>
      <title>Designing a documentation bot that is allowed to say 'I don't know'</title>
      <dc:creator>朱连兴</dc:creator>
      <pubDate>Sun, 29 Nov 2026 02:17:21 +0000</pubDate>
      <link>https://dev.to/annest/designing-a-documentation-bot-that-is-allowed-to-say-i-dont-know-56b6</link>
      <guid>https://dev.to/annest/designing-a-documentation-bot-that-is-allowed-to-say-i-dont-know-56b6</guid>
      <description>&lt;p&gt;We put a "ask our docs anything" box in front of a support form and spent three weeks learning the same lesson over and over: &lt;strong&gt;the hard part is not answering. The hard part is refusing to answer.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A retrieval bot that guesses is worse than a support form that fails. The form at least fails visibly. The bot fails with a paragraph of confident prose, and the customer acts on it. Every design decision below came from a real miss.&lt;/p&gt;

&lt;h2&gt;
  
  
  Abstention is the feature
&lt;/h2&gt;

&lt;p&gt;The first version scored chunks by similarity, took the top three, and asked the model to answer. It answered &lt;em&gt;everything&lt;/em&gt;. Some of those answers were assembled from three unrelated documents that each mentioned a similar word. A user asking "can I export invoices as CSV" got a tidy explanation of the CSV import format, because "CSV" appeared in both.&lt;/p&gt;

&lt;p&gt;So the contract changed. The model is given a task it can decline:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;answer only from the quoted passages&lt;/li&gt;
&lt;li&gt;if the passages do not contain the answer, say so and hand off&lt;/li&gt;
&lt;li&gt;never blend passages that describe different features&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The threshold matters more than the prompt. We moved from "always answer" to three outcomes keyed on retrieval score:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;score&lt;/th&gt;
&lt;th&gt;action&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;high&lt;/td&gt;
&lt;td&gt;answer, with the source sentence quoted&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;middling&lt;/td&gt;
&lt;td&gt;show the closest passages and ask a clarifying question&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;low&lt;/td&gt;
&lt;td&gt;no answer, straight to the contact form&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The middling band is doing most of the work. It is where the bot says "here is what I found, is this the thing you mean?" instead of inventing a fourth possibility. Users are remarkably good at picking from two wrong options and telling you the right one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Chunk by heading, and keep the title attached
&lt;/h2&gt;

&lt;p&gt;Splitting on token count destroys meaning. A paragraph from the middle of a page about refund timing reads like a universal policy once it is detached from its heading. We chunk on headings and prepend the document title plus heading path to every chunk before embedding. It is unglamorous and it fixed a whole class of wrong answers where the right text was retrieved but interpreted as applying to the wrong plan tier.&lt;/p&gt;

&lt;p&gt;Overlap between chunks also matters, but less than people think. Half a sentence of overlap stops boundary truncation. More than that mostly adds duplicates to the top-k and squeezes out the one passage that mattered.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quote the sentence, do not paraphrase it
&lt;/h2&gt;

&lt;p&gt;Every answer ships with the passage it came from, verbatim, collapsed under the answer. Two things happen:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Users stop trusting the bot blindly and start checking — which is the correct relationship.&lt;/li&gt;
&lt;li&gt;We can audit failures without guessing. When an answer is wrong, the citation tells us whether retrieval failed or the document itself is wrong or stale.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That second point is the real payoff. Without citations, "the bot was wrong" is not a bug report. With citations, it is a documentation patch with a file and a paragraph.&lt;/p&gt;

&lt;h2&gt;
  
  
  Log the misses and treat them as a backlog
&lt;/h2&gt;

&lt;p&gt;The most valuable artifact in the whole system is the list of questions it declined to answer. Ours is sorted by frequency and shows the closest passage that scored highest but fell below threshold. Every week that list turns into either a new doc page or a threshold adjustment, and the share of questions ending in handoff drops.&lt;/p&gt;

&lt;p&gt;This is the part that is easy to skip because it is not part of the "AI" work. It is also the only part that compounds.&lt;/p&gt;

&lt;h2&gt;
  
  
  Timezone is a feature, not a footnote
&lt;/h2&gt;

&lt;p&gt;The pattern that finally made this click for us was cross-border sellers: a buyer asks at 2am local time, and the person who knows the answer is asleep eight hours away. A self-serve link that answers the top twenty questions — and honestly defers the rest — covers the gap without pretending to be a person. The handoff is not a failure state. It is the queue for the next morning, pre-filtered.&lt;/p&gt;

&lt;h2&gt;
  
  
  Honest limits
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Stale docs get answered confidently.&lt;/strong&gt; The bot is exactly as current as the source. If nobody updates the page about shipping cutoffs, it will confidently describe last quarter's policy.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It is not a support agent.&lt;/strong&gt; It cannot look up an order, issue a refund, or check an account. Anything account-specific has to hand off, and pretending otherwise produces the worst possible failure: a plausible promise nobody can keep.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Low traffic domains stay thin.&lt;/strong&gt; With thirty questions a month, there is not enough volume to find the gaps, so the backlog loop never gets going.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The linking step itself is a five-minute job — upload the docs, get a URL your customers can ask. Everything above is what we had to get right afterwards, and it is all in service of one behaviour: knowing when to stop talking.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>support</category>
      <category>architecture</category>
      <category>documentation</category>
    </item>
    <item>
      <title>The tournament clock that survives a bar's Wi-Fi</title>
      <dc:creator>朱连兴</dc:creator>
      <pubDate>Sat, 28 Nov 2026 02:25:41 +0000</pubDate>
      <link>https://dev.to/annest/the-tournament-clock-that-survives-a-bars-wi-fi-3fn8</link>
      <guid>https://dev.to/annest/the-tournament-clock-that-survives-a-bars-wi-fi-3fn8</guid>
      <description>&lt;p&gt;A weekly poker league night is a distributed system that nobody calls a distributed system.&lt;/p&gt;

&lt;p&gt;There are 18 to 30 phones on a bar's Wi-Fi. There's a TV on the wall that everyone stares at. There's one person running the thing who is also, unfortunately, playing. And there's a four-hour clock that must not drift, must not double-eliminate anyone, and must keep working when the router does its 11pm thing.&lt;/p&gt;

&lt;p&gt;I built TT Poker (a tournament clock and check-in system for home games and club nights) and the interesting part was never the card logic. It was everything around it: state, clocks, flaky networks, and a TV nobody can touch.&lt;/p&gt;

&lt;p&gt;Here's what actually bit us, in the order it bit us.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. &lt;code&gt;setInterval&lt;/code&gt; is not a clock
&lt;/h2&gt;

&lt;p&gt;The first version counted blinds levels with a &lt;code&gt;setInterval(1000)&lt;/code&gt;. Over a four-hour night it drifted by more than two minutes, because every &lt;code&gt;tick&lt;/code&gt; is "at least 1000ms", never exactly. Worse, when the tab was backgrounded or the TV box's vendor cleaner suspended the browser, the interval simply stopped — and then fired a burst of catch-up ticks on resume, skipping a level entirely.&lt;/p&gt;

&lt;p&gt;The fix is boring and correct: store &lt;code&gt;levelStartedAt&lt;/code&gt; as a timestamp, and derive everything from it.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;elapsed&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;now&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;levelStartedAt&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;remaining&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;max&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;levelMs&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="nf"&gt;elapsed&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Render from a &lt;code&gt;requestAnimationFrame&lt;/code&gt; loop, but never &lt;em&gt;store&lt;/em&gt; the time from that loop. The clock is a function of two numbers, and the display is a projection of it. If the process dies and restarts, it recomputes the same answer.&lt;/p&gt;

&lt;p&gt;One caveat that cost us a night: &lt;code&gt;Date.now()&lt;/code&gt; on cheap hardware is not monotonic. If the box gets its time from the network and the network is wrong, your clock jumps. Any duration you &lt;em&gt;measure&lt;/em&gt; should use &lt;code&gt;performance.now()&lt;/code&gt;; only wall-clock labels (the timestamp you show humans) should use &lt;code&gt;Date.now()&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Time is a lie on the client
&lt;/h2&gt;

&lt;p&gt;Our first reconnect protocol sent "I was eliminated at 21:47:03" from each phone and let the server sort by timestamp. That produced a player being eliminated &lt;em&gt;before&lt;/em&gt; the hand that eliminated them, because two phones disagreed about the current minute by 90 seconds.&lt;/p&gt;

&lt;p&gt;Timestamps from clients are decoration. Ordering has to come from a single monotonic counter on the authority:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// every mutation carries the server's seq, not the client's clock&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;seq&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;418&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'eliminate'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;playerId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'p-27'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;by&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'p-12'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Phones can queue actions while offline and replay them on reconnect, but the server assigns &lt;code&gt;seq&lt;/code&gt; on receipt. If two offline phones both claim to have eliminated the same player, the second one gets a conflict, not a duplicate elimination.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Idempotency is a UI feature
&lt;/h2&gt;

&lt;p&gt;The person running the night is doing this on a laggy tablet, one-handed, while being dealt in. Double taps are not an edge case; they are the normal case.&lt;/p&gt;

&lt;p&gt;Every mutation gets a client-generated idempotency key:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sb"&gt;`${deviceId}:${localCounter++}`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The server keeps the last N keys and returns the previous result for a repeat instead of applying it twice. This single change removed an entire class of "why is table 2 showing 8 players when 9 people sat down" bugs. The button also disables on &lt;code&gt;pointerdown&lt;/code&gt;, not on the response — you can't rely on round-trip latency to protect you from a human tapping twice in 200ms.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. The TV is the hardest client
&lt;/h2&gt;

&lt;p&gt;A wall-mounted TV at three meters has different requirements from a phone at thirty centimeters:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Legibility beats density.&lt;/strong&gt; The clock is the only thing that must be readable from across a room. Everything else is secondary.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Integer scale, no fractional layout.&lt;/strong&gt; Non-integer scaling on a 1080p TV panel makes text shimmer. Compute a scale factor once per break, not per frame.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Don't animate.&lt;/strong&gt; These boxes are quad-core A53 class with 2GB of RAM. A CSS transition on a list of 30 rows is enough to drop frames and make the whole display feel broken. We removed all of it and the perceived quality went &lt;em&gt;up&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Assume it will be interrupted.&lt;/strong&gt; Vendor "cleaners" and Android's doze will kill a backgrounded browser. The TV client has to be a dumb view that can be reloaded at any moment and reconstruct itself from one state fetch.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  5. Put the authority on the box, not in the cloud
&lt;/h2&gt;

&lt;p&gt;We started cloud-first, because that's the default. It was wrong for this use case: a bar's uplink is the least reliable link in the room, and it's shared with 30 phones uploading photos.&lt;/p&gt;

&lt;p&gt;The current shape:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;phones ──(local Wi-Fi)──&amp;gt; TV box (authoritative state, SQLite)
                              │
                              └──(opportunistic)──&amp;gt; cloud (backup, cross-venue view)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The local box is the source of truth for the evening. The cloud is a replica that catches up when it can. If the internet dies mid-level, nobody notices. If the box dies, you lose the night — so state is appended to a local log and the whole thing can be replayed from it.&lt;/p&gt;

&lt;p&gt;The local state delta is tiny, around a kilobyte per mutation. You are not moving video; you are moving &lt;code&gt;{seq, type, payload}&lt;/code&gt;. That's the whole reason this can run on hardware that costs less than the beer.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Check-in should not require installing anything
&lt;/h2&gt;

&lt;p&gt;QR code on the TV, phone camera opens a URL, you're seated. No app, no account, no password. The join token is single-use and expires with the level.&lt;/p&gt;

&lt;p&gt;The failure mode we did not anticipate: everyone joins at once, in the same 90 seconds, and the box's Wi-Fi chip gives up. We now stagger check-in by table and treat the join endpoint as a rate-limited queue rather than a burst handler.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd tell someone starting today
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Treat the night as a state machine with an append-only log, and make every screen a projection of it.&lt;/li&gt;
&lt;li&gt;Never trust a client clock for ordering; never trust a client counter for idempotency alone.&lt;/li&gt;
&lt;li&gt;Design for the person running it being distracted. Every destructive action needs an undo that costs one tap.&lt;/li&gt;
&lt;li&gt;Measure your refresh budget on the worst hardware you intend to support, and then halve it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The card game is the easy part. The four hours of wall-clock time, thirty flaky phones, and one person who is also trying to play — that's the system.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>architecture</category>
      <category>javascript</category>
      <category>iot</category>
    </item>
    <item>
      <title>Putting a vision loop on a $40 TV box: thermal, doze, and what the datasheet omits</title>
      <dc:creator>朱连兴</dc:creator>
      <pubDate>Fri, 27 Nov 2026 02:20:19 +0000</pubDate>
      <link>https://dev.to/annest/putting-a-vision-loop-on-a-40-tv-box-thermal-doze-and-what-the-datasheet-omits-328p</link>
      <guid>https://dev.to/annest/putting-a-vision-loop-on-a-40-tv-box-thermal-doze-and-what-the-datasheet-omits-328p</guid>
      <description>&lt;p&gt;We put a camera-based monitor inside a TV box that someone's parents already own. The box plays television, sits in a plastic shell at the back of a cabinet, and is expected to keep watching a room for years without anyone touching it.&lt;/p&gt;

&lt;p&gt;The interesting engineering is not the model. It is everything the datasheet does not tell you about running a perception loop on hardware you do not control.&lt;/p&gt;

&lt;h2&gt;
  
  
  The hardware is a TV box, not an edge accelerator
&lt;/h2&gt;

&lt;p&gt;rk3528, four A53 cores, a vendor BSP whose NPU story begins and ends at "there is a driver." We never got a usable delegate out of it that survived a week of uptime, so the loop is CPU-only and designed backwards from that.&lt;/p&gt;

&lt;p&gt;Three decisions follow immediately:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Downscale before you think about accuracy.&lt;/strong&gt; Frames arrive at 1080p and get resized to 320×320. At that size a person is 40 pixels tall and a room-scale change is still obvious, but the per-frame cost drops by an order of magnitude.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Gate on motion, then classify.&lt;/strong&gt; A cheap frame-difference pass runs on every sampled frame; the heavier pass only runs when the difference crosses a threshold. In a living room that is maybe 3% of frames. Average load is what matters on a passively cooled box, not peak.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sample at 6–8 fps, not 30.&lt;/strong&gt; Nothing we care about happens in 33 milliseconds. Sampling slower also means the encoder stays available for whatever the TV is actually playing.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Thermal budget is a duty cycle, not a frame rate
&lt;/h2&gt;

&lt;p&gt;The first version ran inference continuously and the box throttled within twenty minutes. Sustained throughput fell below the burst number we had benchmarked, and the case got hot enough that we would not have shipped it to a stranger's living room.&lt;/p&gt;

&lt;p&gt;The fix was to budget a &lt;strong&gt;duty cycle&lt;/strong&gt; — a hard ceiling on milliseconds of compute per minute, enforced by the scheduler rather than hoped for — and to treat thermal headroom as a resource that inference borrows and must return. Peak FPS is a vanity metric here. The number that predicts whether a device survives a summer is sustained compute per hour.&lt;/p&gt;

&lt;h2&gt;
  
  
  Android will stop your service, and the vendor will help
&lt;/h2&gt;

&lt;p&gt;A long-running background service on an Android TV build is a negotiation, not a guarantee. Two things broke us repeatedly:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Doze and idle reclaim.&lt;/strong&gt; A foreground service with a notification is the documented answer, and it works until a vendor "cleaner" utility decides your process is junk and kills it on a schedule. We now run a supervisor that restarts the worker and counts restarts as a health metric. If restarts spike, we report that upward instead of silently recovering forever.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Wall clock is a liar.&lt;/strong&gt; Cheap boxes have no RTC battery. After a power cut the device wakes up believing it is 1970, then jumps forward when NTP lands. Any event ordering that trusts wall clock produces a timeline that reorders itself after every outage. Events carry a monotonic timestamp for ordering and a reconciled wall time for display, and we never sort by the second one.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The network is the least reliable component, so it must be optional
&lt;/h2&gt;

&lt;p&gt;2.4 GHz in a concrete apartment with a microwave and four neighbours is not a transport you block on. Every event is written to local storage first and flushed opportunistically. If the uplink is down for six hours, inference does not care; the queue drains later and the timeline is still correct because ordering never depended on arrival.&lt;/p&gt;

&lt;p&gt;This is also why the whole design keeps working when the internet does not: the perception loop, the storage, and the local dashboard are one unit. The cloud, when it exists, is a convenience for people who are not in the room.&lt;/p&gt;

&lt;h2&gt;
  
  
  Privacy as an architectural constraint, not a policy
&lt;/h2&gt;

&lt;p&gt;The camera stream never leaves the house. What leaves is a small event summary — a timestamp, a category, a confidence, a thumbnail-free status line. This is a stronger promise than an encryption claim because it is structural: there is no code path that uploads frames, so there is no configuration that can turn one on.&lt;/p&gt;

&lt;p&gt;It also changes the failure mode. When something is wrong, the system degrades toward &lt;em&gt;saying less&lt;/em&gt;, not toward &lt;em&gt;watching more&lt;/em&gt;. That is the direction you want a device in a bedroom to fail in.&lt;/p&gt;

&lt;h2&gt;
  
  
  Updates must be survivable by someone who cannot debug them
&lt;/h2&gt;

&lt;p&gt;The device is in a home where nobody will plug in a keyboard. An update that fails must leave a working device, so: signed payloads, a rollback slot, and a rule that a failed boot after update reverts instead of retrying forever. We also refuse to ship an update that changes the storage format without a migration that can run on 2 GB of RAM.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we would tell someone starting this today
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Design for sustained load. Burst benchmarks on passively cooled ARM are fiction.&lt;/li&gt;
&lt;li&gt;Put monotonic time in your event schema on day one. Retrofitting it is a data migration you cannot do.&lt;/li&gt;
&lt;li&gt;Write events locally before you try to send them. The network is the flakiest dependency and the easiest to make optional.&lt;/li&gt;
&lt;li&gt;Count your service restarts and surface them. Silent self-healing hides a device that is slowly dying.&lt;/li&gt;
&lt;li&gt;Decide what never leaves the device, and enforce it in code structure rather than in a settings page.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The model was the easy part. The hard part was making a $40 television box behave like an appliance that a family can forget about — and that is the part we ended up spending the year on.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;This is the design we shipped in AnNest: a TV box plus a camera that runs entirely on-device, built for people whose parents live alone in another country. Details at &lt;a href="https://annest.cn" rel="noopener noreferrer"&gt;annest.cn&lt;/a&gt;. No frames are uploaded, at any tier.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>edge</category>
      <category>android</category>
      <category>ai</category>
      <category>privacy</category>
    </item>
    <item>
      <title>Your agent doesn't need a browser — it needs an inbox with a TTL</title>
      <dc:creator>朱连兴</dc:creator>
      <pubDate>Thu, 26 Nov 2026 02:21:34 +0000</pubDate>
      <link>https://dev.to/annest/your-agent-doesnt-need-a-browser-it-needs-an-inbox-with-a-ttl-4013</link>
      <guid>https://dev.to/annest/your-agent-doesnt-need-a-browser-it-needs-an-inbox-with-a-ttl-4013</guid>
      <description>&lt;p&gt;Most "agent needs a browser" problems are not browser problems. They are inbox problems wearing a browser costume.&lt;/p&gt;

&lt;p&gt;An agent that has to sign up somewhere does not need to render a page, move a mouse, or solve a layout that changed at 3am. It needs one primitive: &lt;strong&gt;a mailbox it can open and read as an API call.&lt;/strong&gt; Everything else — the form, the click, the confirmation screen — is a human ceremony wrapped around "we sent you a code."&lt;/p&gt;

&lt;p&gt;Once you model email as the interface, the signup flow collapses into three calls. And once you do that a few hundred times, you stop debugging selectors and start debugging something far more interesting: &lt;strong&gt;queue semantics&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The mental model that actually holds
&lt;/h2&gt;

&lt;p&gt;An inbox is a message queue with a hostile SLA. Messages arrive late, out of order, sometimes twice, sometimes never. Your consumer is a regex, which is a very optimistic parser. And the producer is a third party you do not control and cannot ask to be more careful.&lt;/p&gt;

&lt;p&gt;Treat it like a queue and the design questions become obvious:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;What is the message key?&lt;/strong&gt; The address itself. One address per logical signup, not one shared address for the whole fleet.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What is the TTL?&lt;/strong&gt; Verification codes die in minutes. An address that lives forever is an address that accumulates junk and eventually receives a code meant for a different run.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What is the ack?&lt;/strong&gt; Reading the message and extracting the code. If you cannot extract it, you have an unacked message, and you should fail loudly rather than poll forever.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Failure modes you will hit in the first week
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Concurrent runs sharing one inbox.&lt;/strong&gt; Two workers sign up for the same service at the same time. Two codes land. Worker A reads worker B's code, gets a 400, retries, and now you have two half-created accounts and an audit trail nobody can explain. Fix: address per run, full stop. Not per project, not per service — per run.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Retries that create duplicates.&lt;/strong&gt; The signup POST times out. The account was in fact created. Your retry creates a second one. The inbox now has two codes from two accounts and no way to tell them apart except arrival order, which is exactly the thing you cannot trust.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. The parse that works until it doesn't.&lt;/strong&gt; Verification emails are not a format, they are a genre. Real examples from one afternoon:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;Your code is 481920&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;481920 is your verification code&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Use code: K7F-2M9&lt;/code&gt; (alphanumeric, hyphenated)&lt;/li&gt;
&lt;li&gt;a code only in the &lt;strong&gt;subject line&lt;/strong&gt;, body says "see above"&lt;/li&gt;
&lt;li&gt;a code in an image (give up, use a different provider)&lt;/li&gt;
&lt;li&gt;a &lt;strong&gt;magic link&lt;/strong&gt; instead of a code, where the token is a query parameter on a URL that also appears three times in the HTML for tracking pixels&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A single &lt;code&gt;\d{6}&lt;/code&gt; regex covers maybe 70% of them and fails silently on the rest, which is the worst possible outcome. Write a small ordered list of patterns, return the first match &lt;strong&gt;with the pattern that matched&lt;/strong&gt;, and log which one fired. When something breaks in six weeks, that log line is the whole investigation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Preview truncation.&lt;/strong&gt; Many providers store a short preview and a full body separately. The code is in the part you did not fetch. If your client returns only one field, you will spend an evening convinced the code never arrived.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Late arrivals.&lt;/strong&gt; The mail server took 40 seconds. Your timeout was 30. The code arrives after you gave up, sits in the inbox, and gets picked up by the &lt;em&gt;next&lt;/em&gt; run on the same address. This is how you get a mysterious "code expired" on a run that never received anything.&lt;/p&gt;

&lt;h2&gt;
  
  
  The shape of the code
&lt;/h2&gt;

&lt;p&gt;The consumer is boring on purpose:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// one address per run, short TTL, poll with a real predicate&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;inbox&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;mail&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;createInbox&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;ttlMinutes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;15&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;signup&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;inbox&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;address&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;   &lt;span class="c1"&gt;// whatever the flow needs&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;msg&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;inbox&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;waitFor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;timeoutMs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;45_000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;match&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;subject&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;bodyText&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;pattern&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;extractCode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;msg&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;subject&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;msg&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;bodyText&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`no code matched; subject=${msg.subject}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Three properties matter more than the code itself:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;waitFor&lt;/code&gt; takes a &lt;strong&gt;predicate&lt;/strong&gt;, not a subject prefix. Prefixes lie; providers localise.&lt;/li&gt;
&lt;li&gt;The timeout is &lt;strong&gt;longer than the p95 delivery time&lt;/strong&gt; you measured, not longer than you feel is reasonable. Measure it once, write it down.&lt;/li&gt;
&lt;li&gt;The inbox is &lt;strong&gt;closed&lt;/strong&gt; when the run ends, whether it succeeded or not. Leaked inboxes are how failure mode 5 keeps happening.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Where this leaves you
&lt;/h2&gt;

&lt;p&gt;The interesting consequence is not that signup gets faster. It is that signup becomes &lt;strong&gt;idempotent-ish and observable&lt;/strong&gt;: every run has an address, every address has a lifetime, every code has a pattern that matched it, and every failure has a message you can read instead of a screenshot you can stare at.&lt;/p&gt;

&lt;p&gt;Browser automation optimises for looking like a human. A mailbox API optimises for being a queue. Only one of those survives a redesign of the signup page.&lt;/p&gt;

&lt;p&gt;I ended up building the mailbox side as an API for exactly this reason — create an address, wait for a message, read the code, discard the address. That is the whole product, and it is at &lt;a href="https://kakan.email" rel="noopener noreferrer"&gt;kakan.email&lt;/a&gt; if the shape of it is useful to you.&lt;/p&gt;

&lt;p&gt;Address as identity. Inbox as queue. TTL as the thing that keeps it honest.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>api</category>
      <category>automation</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Your support inbox is mostly a search problem wearing a costume</title>
      <dc:creator>朱连兴</dc:creator>
      <pubDate>Wed, 25 Nov 2026 02:21:46 +0000</pubDate>
      <link>https://dev.to/annest/your-support-inbox-is-mostly-a-search-problem-wearing-a-costume-309l</link>
      <guid>https://dev.to/annest/your-support-inbox-is-mostly-a-search-problem-wearing-a-costume-309l</guid>
      <description>&lt;p&gt;Your support inbox is mostly a search problem wearing a costume.&lt;/p&gt;

&lt;p&gt;I spent a week tagging tickets for a small SaaS product and the distribution was embarrassing: roughly two thirds of the questions had an answer that already existed in the docs, the FAQ, or a thread from eight months ago. Nobody was asking anything new. They just couldn't find the old answer, and a ticket form was the fastest path to a human who could.&lt;/p&gt;

&lt;p&gt;That reframing changed what I fixed. It's not a staffing problem, it's a retrieval problem.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why doc search keeps losing
&lt;/h2&gt;

&lt;p&gt;Documentation is usually organised by how the product is built: modules, settings pages, release notes. Customers ask by symptom: "it says pending but the money left my account", "the export is empty for one month only".&lt;/p&gt;

&lt;p&gt;Those two vocabularies barely overlap. Keyword search over feature-shaped docs does badly against symptom-shaped questions, and the customer gives up after one attempt and opens a ticket.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three things that actually moved the number
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Log the question verbatim, not the category.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Ticket categories are written by the support team and averaged into uselessness. The customer's own sentence is the query you have to answer. I keep a plain file of raw first-sentence questions and read it once a week. The same twelve phrasings show up over and over, and they tell you exactly which words the docs are missing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Write answer paragraphs that stand alone.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Most docs fail retrieval because the answer is spread across a page that assumes you read the previous section. "As mentioned above, set the flag before syncing" is unanswerable out of context.&lt;/p&gt;

&lt;p&gt;Rewrite the top twenty answers as self-contained paragraphs: restate the condition, state the action, state what the customer should see afterwards. Duplication across pages is fine. Retrieval does not respect your information architecture, and neither do readers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Answer the 2am question without a human.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Half the value is timezone coverage. A ticket form silently promises "someone will read this tomorrow"; an answer surface that responds immediately sets a very different expectation.&lt;/p&gt;

&lt;p&gt;The cheapest version I found: put the same docs behind a single link where a visitor can ask in their own words and get the relevant paragraph back, with the source page cited so they can verify it. Not a chatbot persona, not a ticket deflection funnel, just a lookup that talks.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;upload docs  -&amp;gt;  one public link  -&amp;gt;  visitor asks  -&amp;gt;  answer + cited page
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two properties matter more than the model: every answer must point at the source paragraph, and a miss must say "not in the docs" instead of inventing something plausible. A confident wrong answer costs more support time than no answer at all.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd measure
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Repeat-question rate: same underlying question asked twice within 30 days.&lt;/li&gt;
&lt;li&gt;Self-serve resolution: visitor got an answer and did not open a ticket within 24 hours.&lt;/li&gt;
&lt;li&gt;Miss rate: questions with no matching paragraph. This is your docs backlog, ranked for free.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That last one is the part I underrated. The misses are a to-do list written by your customers, in their own words, in priority order.&lt;/p&gt;




&lt;p&gt;I ended up building this as a small tool rather than gluing three services together: upload your docs, get one link, visitors ask and get the cited paragraph, pay per use instead of per seat. It's at &lt;a href="https://lookhere.help" rel="noopener noreferrer"&gt;lookhere.help&lt;/a&gt; if the shape matches your problem.&lt;/p&gt;

&lt;p&gt;But the diagnosis matters more than the tool. If two thirds of your inbox is already answered somewhere, you don't have a support volume problem. You have a document that nobody can query.&lt;/p&gt;

</description>
      <category>support</category>
      <category>saas</category>
      <category>documentation</category>
      <category>productivity</category>
    </item>
    <item>
      <title>The verification step is where agent pipelines quietly die</title>
      <dc:creator>朱连兴</dc:creator>
      <pubDate>Fri, 20 Nov 2026 02:31:33 +0000</pubDate>
      <link>https://dev.to/annest/the-verification-step-is-where-agent-pipelines-quietly-die-330c</link>
      <guid>https://dev.to/annest/the-verification-step-is-where-agent-pipelines-quietly-die-330c</guid>
      <description>&lt;p&gt;Every agent workflow follows the same optimistic arc. Log in, call an API, parse JSON, move on. Then at step four it hits a signup form that wants an email address.&lt;/p&gt;

&lt;p&gt;For a human that is thirty seconds. For a headless process it is a hard stop: something has to create a mailbox, wait for an SMTP delivery from a provider that has no reason to trust you, pull a six digit code out of HTML that changes every release, and get it back into the running job before the code expires.&lt;/p&gt;

&lt;p&gt;I wrote the same mailbox scraping loop twice before admitting the obvious: the inbox is infrastructure, and infrastructure belongs behind an interface.&lt;/p&gt;

&lt;p&gt;What it looks like when the mailbox is just another API call:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="no"&gt;POST&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;api&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;v1&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;mailbox&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s2"&gt;"label"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"signup-stripe"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s2"&gt;"address"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"q7k2@kakan.email"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"mbx_..."&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="no"&gt;POST&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;api&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;signup&lt;/span&gt;          &lt;span class="c1"&gt;# whatever you are onboarding to&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s2"&gt;"email"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"q7k2@kakan.email"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="no"&gt;GET&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;api&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;v1&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;mailbox&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;mbx_&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;latest&lt;/span&gt;
&lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s2"&gt;"subject"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Verify your email"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"code"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"418302"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Three calls. No browser, no human in the loop. The address is the identity, the inbox is the queue.&lt;/p&gt;

&lt;p&gt;Things that actually cost me time, in order:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Timing. Codes arrive in 2 to 30 seconds depending on the sender. Poll with backoff instead of sleeping ten seconds and hoping. Each provider has a different tolerance for polling, so keep the interval in config, not in a constant.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The code is not always the biggest number in the email. Some senders put order IDs, ticket numbers or timestamps above the verification code. A regex for six digits alone will bite you. Anchor on the sentence that mentions verification and keep a per-sender fallback.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Multipart bodies. The HTML part is prettier and usually where the code is styled, but the text/plain part is the one that survives template changes. Read plain first, fall back to HTML with tags stripped.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Disposability is a security decision, not a convenience. A throwaway inbox anyone can read is fine for a smoke test and wrong for anything holding a session token. Decide which one you are building before you pick a provider.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Cleanup. Inboxes leak. If nothing deletes them you end up with tens of thousands of dead addresses and a domain that starts appearing in abuse lists, which then hurts deliverability for the legitimate use too.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;None of this is exotic. It is unglamorous plumbing that every agent project re-implements because it sits outside the interesting part of the problem.&lt;/p&gt;

&lt;p&gt;The short version: stop writing an email client inside your agent. Make the mailbox a resource with a URL, a lifetime and a read endpoint, then let the agent treat it like any other API. That is what kakan.email is - a mailbox over HTTP with a create call, a read call and a TTL. It will not make your agent smarter. It just stops it from dying at step four.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>api</category>
      <category>devtools</category>
      <category>automation</category>
    </item>
    <item>
      <title>Hardware that stays quiet: no speaker, no LED, no verdict</title>
      <dc:creator>朱连兴</dc:creator>
      <pubDate>Sun, 15 Nov 2026 02:40:27 +0000</pubDate>
      <link>https://dev.to/annest/hardware-that-stays-quiet-no-speaker-no-led-no-verdict-3ie5</link>
      <guid>https://dev.to/annest/hardware-that-stays-quiet-no-speaker-no-led-no-verdict-3ie5</guid>
      <description>&lt;p&gt;Most IoT hardware wants to tell you something. Ours is deliberately mute.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The device in the room&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;There is no speaker, no screen, no status light that means anything to the person living there, no buzzer, no voice announcing a state, and no button to press. It plugs into a wall socket, listens to the WiFi field already in the room, and sends a small state packet upstream. It makes no sound and asks for nothing. The person being observed does not get an app, an account, a password, a wearable to charge, or a notification to dismiss.&lt;/p&gt;

&lt;p&gt;That asymmetry is the product. Every feature we could avoid asking of an 80-year-old, we avoided. A device that announces itself in a parent's home has already changed the relationship, regardless of how accurate its sensor is.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Where the judgement happens&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The box only sends a state. Every interpretation happens on the screen, in front of a person who has context the sensor does not have: whether she said she would be out, whether it is a holiday, whether the grandchildren visited. We say "this room changed", never "she got up". The unit of the product is a room, not a person. That grammar is deliberate — it is much harder to overclaim when the sentence stays about a place.&lt;/p&gt;

&lt;p&gt;So there is no LED that turns red, no "all fine" green, no safety score, no push notification, no daily digest email. Each of those would require the product to assert a reason for a change, and the signal contains no reasons. The board is a web page you open when you want to know, at annest.cn/live/, not an app that interrupts you.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The one habit that does change&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The person being observed changes nothing. The person watching changes one habit: instead of asking "did you get up today" on every call, you glance at two numbers — how long since the room last changed, and whether the link is alive — when you happen to think of it. The daily phone call stays the right thing; the board just means that call can be about something else. It is not a replacement for a caregiver.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What we keep, and what we refuse&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;We keep the current interval and a short recent window. We do not build a year-long portrait of someone's habits; a long-term profile would be useful for a score and useless for the one question we answer. The raw radio waveform never leaves the box; upstream is a state plus a timestamp, a few bytes. No camera, no microphone, no footage to leak or subpoena.&lt;/p&gt;

&lt;p&gt;We do not measure heart rate or breathing, do not claim to detect falls, and send no alerts of any kind. Not a medical device, no diagnosis, no emergency response — in an emergency, call 120. Distance: about 10 metres in the same room, about 5 metres through one ordinary interior wall; beyond that the board says "no signal", which is also an answer.&lt;/p&gt;

&lt;p&gt;Price, once: 499 CNY including the first month of service, then 30 CNY a month. This is the WiFi sensing unit only. The board shows a room, not a verdict about a person. Quiet hardware is not a missing feature list. It is the feature.&lt;/p&gt;

</description>
      <category>iot</category>
      <category>hardware</category>
      <category>product</category>
      <category>discuss</category>
    </item>
    <item>
      <title>Recalibrating a room-level sensor when the furniture moves</title>
      <dc:creator>朱连兴</dc:creator>
      <pubDate>Sat, 14 Nov 2026 17:36:59 +0000</pubDate>
      <link>https://dev.to/annest/recalibrating-a-room-level-sensor-when-the-furniture-moves-122k</link>
      <guid>https://dev.to/annest/recalibrating-a-room-level-sensor-when-the-furniture-moves-122k</guid>
      <description>&lt;p&gt;The most common field failure of a WiFi presence sensor is not a person. It is a bookshelf.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What the baseline actually is&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A room has a standing radio field: the router's beacons, the reflections off walls, the metal in a cabinet. Our unit listens passively and compares each interval against the quiet shape of that field. When a person walks through it, the received level shifts. That comparison is the whole detector. Which means the quiet shape is a piece of state the device has to maintain — and anything that changes the room changes that state.&lt;/p&gt;

&lt;p&gt;Move a bookshelf, bring in a metal filing cabinet, rotate a sofa, replace the router, or even leave a large suitcase in the wrong place, and the quiet shape is no longer quiet. A naive implementation reports continuous activity for hours. That is worse than reporting nothing, because a family would read it as "she is restless today".&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What we do instead&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;We treat large, persistent shifts in the baseline as a recalibration event, not as a burst of movement. The distinction we use is time: a person crosses the field and it returns; furniture changes the field and it stays changed. A slow-moving offset is absorbed into the new baseline; a short disturbance is reported as activity. When the shift is too large or too abrupt to classify confidently, the board shows "no signal" rather than guessing — the same state we use for a power cut or a dropped link.&lt;/p&gt;

&lt;p&gt;We also publish the maintenance cases plainly: replace the router or change the WiFi password and the box needs pairing again. That belongs in the manual's main text, not a footnote discovered after purchase.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Interference we do not hide&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A fan, a robot vacuum, and a pet all move the field. Placement guidance exists for exactly this: keep the unit away from things that move on their own. We do not ship a "pet filter" trained on a handful of labelled homes, because a filter that occasionally suppresses a person is worse than an honest limitation. Two units in one flat do not coordinate either — each reports its own room. Merging rooms would invite conclusions about a person moving between them, which the signal does not support.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The boundary stays put&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Four states: moving, still but present, no one, no signal. No state called "normal" — that would be a verdict. No score, no trend line, no "unusual day" flag. We do not measure heart rate or breathing, do not claim to detect falls, do not send alerts, and do not offer an emergency response. Not a medical device, no diagnosis — in an emergency, call 120. One box covers one room: about 10 metres in the same room, about 5 metres through one ordinary interior wall.&lt;/p&gt;

&lt;p&gt;The unit is 499 CNY including the first month of service, then 30 CNY a month. The public board at annest.cn/live/ reports from a real occupied flat, about once a second, not from a recorded loop. Calibration is boring work, but it is the difference between a display you can trust and one that quietly lies about an ordinary Tuesday.&lt;/p&gt;

</description>
      <category>iot</category>
      <category>wifi</category>
      <category>firmware</category>
      <category>showdev</category>
    </item>
    <item>
      <title>Why the dashboard is a web page and not an app</title>
      <dc:creator>朱连兴</dc:creator>
      <pubDate>Sat, 14 Nov 2026 17:12:24 +0000</pubDate>
      <link>https://dev.to/annest/why-the-dashboard-is-a-web-page-and-not-an-app-5k9</link>
      <guid>https://dev.to/annest/why-the-dashboard-is-a-web-page-and-not-an-app-5k9</guid>
      <description>&lt;p&gt;Almost every consumer IoT product ships an app. Ours ships a URL. That was not a cost decision — it came out of the same boundary document that decides what the device is allowed to claim.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;No install on either side&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The person being observed does not get an app, an account, a password, a pairing step, or a notification to dismiss. The person who cares opens a browser. That asymmetry is the whole product: everything we could avoid asking of an 80-year-old, we avoided. A native app would have introduced an update cycle, permission prompts, and a login screen into a house where none of those belong.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;No notification permission to grant&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;An app strongly implies push. Push implies the product has decided something is worth interrupting you for, which in turn implies it knows why the room changed. It does not. A web page makes the pull model natural: you open it when you want to know, read two numbers, close it. We also skipped a daily summary email, because a digest invites you to skim a verdict instead of reading timestamps — and it arrives whether you wanted it or not.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;No account system, no roles&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;One device, one family invite. We were asked for an admin panel and a permission hierarchy and left both out: a room-level state is the same fact for a son and a daughter, and building roles would imply there is richer data to protect. What the board shows is deliberately too small to need an access-control matrix. There is no footage to share or leak because there is no lens, and no audio because there is no microphone.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What actually travels upstream&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The raw radio waveform never leaves the box. Upstream goes a room-level state plus a timestamp, a few bytes per reading, roughly tens of kilobytes a day. The public board polls that stream at about 1 Hz and renders four states: moving, still but present, no one, no signal. That fourth state is a first-class part of the protocol, not an error toast — a stale "all fine" is the most dangerous thing a care display can show. After a reboot the counters start from zero; we do not backfill a tidy history across a gap.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Static delivery, boring ops&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A static page plus a small state endpoint is easy to cache, easy to audit, and easy to keep working on an old tablet or a cheap phone. There is no client-side model to version, no SDK to deprecate, no background service to drain a battery. When the link drops, the page says so plainly rather than rendering yesterday's number in a reassuring colour.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The limits, stated up front&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;One box covers one room: about 10 metres in the same room, about 5 metres through one ordinary interior wall. Beyond that you get "no signal", which is also an answer. A cat crossing the room looks like a person to this signal; we publish that instead of shipping a pet filter we cannot verify. We do not count people, identify anyone, score a routine, or flag an unusual day. We do not send alerts, do not measure heart rate or breathing, and do not claim to detect falls. Not a medical device, no diagnosis, no emergency response — in an emergency, call 120. Not a replacement for a caregiver or for the daily phone call; the board just means that call can be about something other than "did you get up today".&lt;/p&gt;

&lt;p&gt;The public board is at annest.cn/live/, reporting from a real occupied flat rather than a recorded loop. The unit is 499 CNY including the first month of service, then 30 CNY a month. Shipping a URL instead of an app removed far more failure modes than it added features.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>iot</category>
      <category>architecture</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
