Yesterday I finished separating one of my automations from the larger agent platform it had been leaning on. The automation runs a few times a day, collects listings, scores them, writes some analysis, and posts a summary to a channel I read. For months it had borrowed things from the platform: credentials, a way to send messages, a fallback path for when the primary analysis step failed. Each borrowing made sense when it was added. Together they meant that a change in one system could break the other without anyone touching the second one.

So I cut the cords. Credentials moved into files owned by the automation itself. Notifications went straight to the messaging API instead of through the platform. The fallback path was deleted outright. The diff was satisfying in the way deletions usually are. Fewer moving parts, fewer hops, a clearer answer to the question “what does this job need in order to run?”

Then I wrote down what was still open, and one line stopped me: the session cookies the scraper depends on no longer refresh themselves.

The chores you did not know were being done

The platform had been renewing that session in the background. I never designed that behavior into the automation; it came along with the borrowed credential store. When I moved the cookies into a plain file, I kept the value and dropped the process that kept the value alive. Nothing failed. Nothing will fail for a while. Then one day the session will expire, the scraper will start receiving logged-out pages, and depending on how those pages parse, the job may report a perfectly normal run with nothing new in it.

That is the uncomfortable shape of most decoupling work. A dependency is not only the thing you call. It is also every maintenance task the other side performs on your behalf: rotation, refresh, retries, cleanup, the occasional silent repair. When you remove the dependency, the calls are easy to find because they show up in your code. The chores are harder, because they never show up anywhere. You only learn about them when they stop.

I now think a decoupling plan needs two inventories, not one. The first lists what you invoke. The second lists what is done to you: what gets refreshed, rotated, retried, or garbage-collected by the system you are leaving. The second list is the one that turns a clean migration into a slow leak.

Terminal states are decisions

The same day I fixed a different problem in the same automation. The analysis step keeps a ledger of which items it has claimed and how each attempt ended. Two outcomes, “succeeded” and “credentials unavailable,” were treated as final. Once an item landed in either state, it was never picked up again. That is reasonable for success. It is plainly wrong for a credentials problem, which is about the environment rather than the item. A transient auth failure had turned into a permanent verdict, and several items sat untouched for days while every run reported that it had finished.

The fix was small: allow those states to be reclaimed, and write results item by item instead of all at the end, so a partial run leaves partial progress rather than nothing. The lesson is more general. Whenever a state machine marks something as final, someone has decided that the world will not change in a way that matters. Sometimes that is true. Often it is a shortcut that was safe when the failure was rare and became expensive once the failure became routine.

Comparing without switching

I also ran a second model on the same analysis input, as a trial. It passed every structural check and scored within a couple of points of the incumbent, a little faster. I did not switch. A single matched sample says the alternative is viable; it does not say it is better, and it says nothing about how either one fails on the inputs I have not tried yet. Writing “trial only, not wired in” next to the result was as important as the result itself, because a promising number left unlabeled tends to become a default by drift.

What I have not resolved

Each of these points toward the same uncomfortable conclusion. Independence is not free. The automation is now easier to reason about and harder to keep alive, because every chore the platform used to absorb is now mine, including the ones I have not found yet. Meanwhile its logs keep growing, and the retention policy that ought to exist is one more chore that used to belong to nobody in particular.

I could build the refresh, the retention, and the health checks back in, one at a time. At some point, though, I will have rebuilt a small private platform with all the coupling I set out to remove, only smaller and less tested. I do not yet know how to tell, before the fact, whether a shared dependency is a liability to cut or a utility I should have kept paying for.