Blog · A home network run like a small office

My first grocery rule would have nearly doubled what we buy

A sensible-sounding average fell apart when I replayed it against a year of real orders.

In this series · Chapter 11, GroceriesShow all 49 partsHide the list

1. Where it started

  1. 01Why I'm running my home like a small office
  2. 02What a read-only audit of my network found
  3. 03The first changes, and the ones I said no to
  4. 04Reuse first, build only what's missing
  5. 05Fifteen decisions before the first line of code

2. Remote access and keys

  1. 06One way in from outside
  2. 07An address that keeps itself up to date
  3. 08Where the passwords live
  4. 09Keys that can do one thing

3. Monitoring

  1. 10Is it my network or the internet provider?
  2. 11A watcher outside the house, and backups I've restored
  3. 12The drill that found the bug
  4. 13Alerts that only reach my phone when something needs me
  5. 14I had the monitor audit itself
  6. 15Teaching the hub to stop crying wolf

4. The network redesign

  1. 16"Don't take down my internet": the routine before every change
  2. 17The firewall upgrade, two days late
  3. 18Keeping the plan when the builder wanted to drop it
  4. 19Two Wi-Fi drops, and knowing when to stop
  5. 20The router at 90 percent
  6. 21Moving 40 gadgets without touching each one

5. The media server

  1. 22Bringing the media server back, and keeping it up
  2. 23The movie that stuttered on one TV

6. The control center

  1. 24An overnight prototype, and bars instead of dials
  2. 25A nice hub, tucked away in a drawer
  3. 26Instructions for a phone I don't own
  4. 27Three checks before anything goes live
  5. 28Buttons with a seatbelt
  6. 29Rewind: replaying a Wi-Fi outage
  7. 30"I just want a more sensible layout"

7. Security

  1. 31A security scoreboard that started at a D
  2. 32Who's knocking: a security tab in two evenings
  3. 33Matching every program to the public flaw lists
  4. 34A DNS log for the house
  5. 35A weekly scan that can't annoy anyone
  6. 36The week of the scary flaw list

8. A private AI assistant

  1. 37A private AI for the house that can't touch anything

9. How the work got done

  1. 38Keeping a non-developer in charge
  2. 39A house manual that rebuilds itself every night
  3. 40My AI assistant keeps blocking itself, and I'm glad
  4. 41What it cost, what's next, and what I'd bring to an office

10. After the rebuild

  1. 42The backup that filled its own disk
  2. 43Two messages, one second, wrong order
  3. 44My help tool said "fine" at 7 megabits

11. Groceries

  1. 45Reading our grocery orders until the store locked us out
  2. 46I was testing a cart button when I found out nobody wanted one
  3. 47My first grocery rule would have nearly doubled what we buy
  4. 48The third store was the cheapest on nothing
  5. 49The house AI's only grocery job is picking a picture

The plan sounded simple: work out how often we buy each item, and put it back on the list when it's due. Then I added a worry for my AI coding assistant on November 10. I hoped the plan was "considering how often we need these things," because I didn't want "a stockpile of groceries that we don't eat."

Every week 448% Usual gap 196% Yearly pace 103% We bought 100%

Replaying the year

Nothing had been built yet, so we tested the rules against history. We took the 142 items we'd bought at least four times in the last 12 months and asked how much each rule would have bought, compared with what we really bought.

  • Every staple, every week: 448 percent.
  • Each item's usual gap between purchases: 196 percent.
  • Each item's pace over the whole year: 103 percent.

The second rule was the plan I'd already accepted. It fails because we buy some things in bursts. Buy something three weeks in a row, then skip two months, and the typical gap still says weekly. The rule keeps ordering straight through the two quiet months.

The first real list was worse

With the pace rule in place, the first list on the test copy had 76 lines. The foods we buy in bursts all looked overdue at once. So a food now comes back on its own only if we buy it about once a month or more. Household and health items count from four times a year. Everything else waits for someone to add it. The same week dropped to 26 lines.

The smaller rules around it

  • A bigger pack counts as more on hand, so the item comes back later.
  • Ticking Have plenty holds an item back and slows its pace.
  • An item that's gone quiet, unbought for twice its usual time and at least 30 days, gets asked about instead of added.
  • Dinners use what's already open. A jar covers the dinners it can before another one gets bought.

How you could test a rule like this

Take a year of anything you buy repeatedly and replay the rule before you trust it. How much would it have bought, compared with what you really bought? A rule that sounds reasonable can be off by double, and you can find that out without buying anything.

A replay has a limit, though. A result of 103 percent means we'd buy what we bought last year, and that may already be too much. The history can't see that. Only someone standing in the kitchen can, which is what the Have plenty box is for.

Have something in mind?

Tell me what you're trying to do. I reply within two business days.

Get in touch