What breaks while you are not looking
By the end of this lesson you will have your checks running every Monday on the main branch with no commit needed, and Node pinned to one major version in both the file CI reads and the field your host reads.
Nothing in software stays working by default. This lesson is the list, so that the next one is arithmetic rather than an argument.
Six things, and none of them is your code changing
Your key expires or is rotated. Trial ends, card fails, key regenerated. The tool returns 401 on every request and looks completely broken.
The data changes shape. A field is added, renamed or starts arriving as a string. Backtest Strategies met a split ratio delivered as "4.000000/1.000000", and a 404 with a plain-text body. Neither of those is exotic and neither throws where you would expect.
A dependency breaks. 434 packages, and one of them ships a bad release or a security advisory that forces an upgrade you were not planning.
The platform changes. A Node version is retired, a build image updates, a free tier changes its terms.
A ticker stops existing. Delisted, renamed, merged. Backtest Strategies counted 32,854 delisted US common stocks against 18,012 live — this is not a rare event, it is the normal condition of a symbol list.
Certificates and domains expire, which is the most preventable and still happens constantly.
Every one of them is silent
That is the property they share. Your code did not change, your tests still pass locally, your repository looks exactly as it did. The tool is simply wrong or dead, and nothing announces it.
This is why the previous unit's monitoring is not paranoia. It is the only mechanism that turns a silent failure into a known one.
What you can actually do
- Pin the platform version — Node, the runtime, the build image. An unpinned version is a change you did not schedule.
- Run CI on a schedule, not only on push. A weekly build catches a dependency advisory and a platform change with no code change at all, and it is one line of cron in the workflow.
- Handle a missing symbol as normal, not as an error. A delisted ticker in your watchlist should show as delisted, not blank the panel.
- Validate the shape at the boundary. You have been doing this since Build Your First Tool; the value shows up years later when a field changes type and your parser says so instead of your chart quietly drawing nothing.
- Read the changelog when you upgrade something. Ten minutes, occasionally.
Budget the time, honestly
A small deployed tool costs roughly an hour a month of unglamorous maintenance: an advisory, a platform notice, a symbol that vanished.
That is not a lot, and it is not zero, and pretending it is zero is why most personal projects are dead. Knowing the number is what lets you decide honestly whether to keep it alive — and deciding to retire a tool is a legitimate outcome, as long as it is a decision rather than a slow accident.
The finance behind it
Why a delisted ticker is routine rather than exceptional: Why do "average returns" often look too good?
Try it now
Add a weekly scheduled CI run today. It costs one line, it catches two of the six failure modes with no effort from you, and it is the highest-leverage thing in this unit.
The prompt
Plan mode on, and paste:
Two changes that catch failures needing no commit. One: run the
checks workflow in .github/workflows/key-scan.yml every Monday and by
hand, as well as on pull requests. Its jobs only run for pull requests
that are not drafts; make the condition say plainly that a scheduled or
manual run counts, and give those runs a concurrency group of their own.
Two: Node is pinned in .nvmrc, which CI reads. In engines in
package.json, which the host reads, state the floor the store's
node:sqlite needs, ">=22.13.0", with no upper limit so a newer Node on
my own machine does not warn, and run npm install so the lockfile's
copy agrees. Change nothing else, run
npm test, npm run typecheck, npm run lint and npm run check:leak, and
show me the diff.
A good answer changes the workflow — a schedule, a workflow_dispatch and the two job conditions — and package.json, plus the one line in package-lock.json where npm keeps its own copy of the engines field. If engines already says >=22.13.0, as it does after Build a Dashboard, those two files stay as they are and the diff is the workflow alone. The condition names the event because a scheduled run has no pull request: written for pull requests only, it would rest on how GitHub compares a field that does not exist, and naming the event first makes the result certain.
Check it yourself
The first check runs on main, so commit first, then push and merge:
npm test && npm run typecheck
git status # the files you expect, and no .env file
git add -A
git commit -m "Checks every Monday on main; Node pinned for CI and the host alike"
gh workflow run key-scan.ymlstarts a run on main, and both jobs run rather than show as skipped.- In that run's log, the Node setup step installs the version
.nvmrcnames. - On your host, the next build log names a Node version of 22.13 or newer.
- A pull request opened after the change still runs both jobs, and a draft still runs none.
Compare with ours
# .github/workflows/key-scan.yml
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
schedule:
- cron: "17 6 * * 1" # Mondays 06:17 UTC; the top of the hour is GitHub's busiest
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
scan:
if: github.event_name != 'pull_request' || !github.event.pull_request.draft
The same condition goes on the checks job, and "engines": { "node": ">=22.13.0" } agrees with the 22 in .nvmrc: CI runs the major version .nvmrc names, and engines states the floor. A plain 22.x would let a host pick 22.12 or older, where the Build a Dashboard store's node:sqlite needs a flag and the first page fails; an upper limit such as <23 would make every install on a newer Node print a warning. A schedule runs only on the default branch. The full state at the end of this unit is on the starter's branch ref/ship-your-tool/u4.
Checkpoint
git status # nothing to commit: the change went in before the checks
git fetch origin
git log --oneline -1 origin/main -- .github/workflows/key-scan.yml # your commit, merged
Then answer this lesson's questions.