❯ hailports — journal

an unproven all-clear is still a decision

a lane i thought was dead kept half-running because i trusted a negative report over the process table, and proving absence properly rewired how i verify every shutdown.

2026-11-27 · engineering journal · verification · agents · shutdown · observability · loops

what it looked like from the outside

for about a week the outbound lane on the box behaved like it was stopped. the dashboard showed no activity, the queue counter sat at zero, and the agent i run for nightly checks reported back with a clean summary: nothing running, nothing pending. everything i read on the surface agreed. it was the kind of quiet that reads as success when you built the thing to be quiet.

the tell was in the billing layer. small charges kept landing -- low-value, irregular, the kind i'd normally write off as noise from a legacy path. i almost did write them off. that's the trap with a system small enough to fit on one machine: the cost of being wrong about a stopped lane is a few dollars a day, which is exactly low enough to never trigger attention.

so the symptom wasn't an alarm. it was a discrepancy between two sources that should have agreed -- the agent's negative report and the ledger's positive one -- and the discrepancy only showed up if i bothered to join them. nothing in the stack does that join for me. i had assumed the all-clear was a fact. it was actually a claim from a component that doesn't have the authority to make it.

the wrong theory

my first theory fit the evidence comfortably: the lane had crashed mid-flight and the consumer was dead, leaving stale state somewhere that occasionally drained. this explained the zero process count, the empty queue, and the dribble of charges as cleanup noise. it was a comfortable theory because it required nothing from me except eventual cleanup. a dead process is a bug report; a deliberately running process is a decision i forgot i made.

the second thing i believed was that the agent's report was verification. it said no process, no orders, nothing queued, and i read that as three measurements. it wasn't. it was one inference, stated three ways, produced by a tool that greps for whatever keywords i gave it at setup -- a guessed list, months stale, never re-derived from the actual launcher. the agent was honest. it was also answering a question i hadn't asked correctly.

the deeper wrong belief was inherited, almost certainly, from how i'd closed lanes at work: someone writes a handoff summary, everyone downstream treats the summary as the state of the world. it works when there are other humans with their own process tables to contradict it. on a one-person stack, the summary is the only voice, and a single voice repeating a negative is not evidence. it's just quieter.

what actually settled it

the method that decided it took maybe fifteen minutes and should have been the first move. first, i stopped trusting keyword lists. i opened the launcher config and pulled the exact module name the system itself claims when it starts -- the string it announces, not the strings i remembered it by. then i grepped the live process table for that exact token. the process was there. it had been there the whole time, matching none of my guessed keywords.

second, i grepped the consumer's own source for the kill path it reads at startup -- not the kill file path from my handoff summary, the literal path in the code. the file it expected didn't exist. so the kill file that was supposed to stop the lane had never been written where the process actually looks, and the process, finding nothing, had kept going. absence of a kill signal is not a stop; it's a green light by default.

third, i re-ran the agent's check myself with the command and its output side by side. the agent had run a narrower grep and gotten a genuine empty result -- for the wrong pattern, against a process under a different name. every negative it reported was true and every one was irrelevant. the ledger's charges and the process table now told the same story: the lane had never stopped. it had only stopped being looked at correctly.

the fix

the fix stayed small. i flattened the position -- closed both legs in a single call rather than leg by leg -- and then verified the close with a fresh read of the process table and the position state, not by trusting the close request's own success response. the api saying ok is the beginning of verification, not the end. the fresh check came back empty, this time against the right token, and the charges stopped within a cycle.

then i changed the shutdown contract rather than the check. the lane now writes its own kill file at a path derived from the consumer's source, and startup treats a missing kill file as the suspicious state, not the normal one. the agent's nightly negative report must include the exact command it ran and a hash of the output. a claim of nothing without the command that found nothing is discarded, not summarized.

what i deliberately did not change: i didn't add a global watchdog, didn't refactor the lane structure, didn't build a dashboard for shutdown state. those are attractive because they feel like engineering, but the failure wasn't a missing system. it was a missing grep with the right string. the smallest durable fix was making the right check unavoidable, not building more machinery around the wrong one.

the rule i keep now

the rule is simple to state and expensive to have learned: absence is a measurement, and every measurement carries its command or it carries nothing. to prove a lane is stopped, i prove the process is gone -- grepping the module name from its launcher, never a remembered keyword -- and prove the kill file that lane actually reads exists at the path the consumer's own code declares. i never inherit a path from a handoff summary, including my own. any agent-reported negative without the command and its output attached gets treated as an unverified all-clear, which means it gets treated as a decision i haven't made yet, because that's exactly how it gets acted on anyway.

the rule: a negative report is only as good as the command behind it, so prove the process is gone and the kill path exists -- or assume the lane is still running.

related field guides

earlier entries

see the machine this came out of

the board is public. the scan is free. the playbook is the long version of entries like this one.

← journal · hailports