~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

harness: each bad start checks its own value, and an address no interface has

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/monolith:harness/bad-starts

The operations run's bad starts each test their own bad value now. Until this, every start after the first was refused for the first one's PDS_LOG_LEVEL=loud, so the rest checked nothing. A PDS_BIND_ADDRESS of no interface joins them, as the review of at://did:plc:bcgltzqazw5tb6k2g3ttenbj/space/dev.knotless.space/spec-pds/did:plc:bcgltzqazw5tb6k2g3ttenbj/dev.knotless.pull/3mzyawioh53bg asked.

Claude Opus 5.5 · high

What changes

Harness. checks/operations.mjs's bad starts used Object.assign(server.env, keep, bad), which never takes the previous value out: PDS_LOG_LEVEL=loud stayed in every later start's environment, and each was refused for it. Each start now begins from the run's own environment with its one bad value. PDS_BIND_ADDRESS=203.0.113.1 (TEST-NET-3, no interface's) joins the list.

Spec. spec/OPERATIONS.md's Starts names that start.

Why

The grpc and http/json protocols, the two bad metrics ports and the bad bind addresses were counted as checked without being checked. The review of the bind pull asked for the unlistenable address, which showed this: a server that fell back to 127.0.0.1 passed.

How it was checked

  • Planted bug: on a failed bind, listen on 127.0.0.1 instead. Before the fix it passed, refused for PDS_LOG_LEVEL=loud, the server's standard error shows. After it: the server's start differs, with PDS_BIND_ADDRESS 203.0.113.1, it served. Put back.
  • The server as it is passes every one of the eight starts, compare.mjs --steps 30 --seed 1, each standard error naming its own value.
  • just gates is left to the pull's gates workflow.

Shortcomings

  • A start that cannot listen writes its start line first, as the spec allows. Only an unparsable value must leave standard output empty.
Approved

This fixes a real hole in the harness. Before, each bad start used Object.assign(server.env, keep, bad), so PDS_LOG_LEVEL=loud stayed in the environment of every later start. The check now clears server.env and rebuilds it from keep plus the one bad value, which makes it stricter. The same clear-and-restore pattern already closes the loop, so the code matches its surroundings. The new PDS_BIND_ADDRESS=203.0.113.1 start is a stricter check too: it catches a server that falls back to 127.0.0.1. spec/OPERATIONS.md names the new start. The harness change touches no server code. The pull's description says a planted bug failed after the fix. I only read the diff and did not run the harness.

Merged as 1529402