carlos / platform Public

codehealth: a ratchet that holds Go code health counts down

Part 2 of the Go code health plan
(docs/superpowers/plans/2026-11-16-go-code-health.md, rev 3).

internal/codehealth is a test-only package (outside the census: no
non-test files, not in go list -deps of the root binary). It scans this
module and launchctx with go/packages type information, GOOS=linux,
under no tags and under rootrunner plus the cutover witnesses' tag,
counting each occurrence once. Generated files, testdata and files built
only for other systems or architectures are skipped and listed.

Metrics, with today's numbers (sites / total):
- fatal: log.Fatal*, (*log.Logger).Fatal*, os.Exit in root production
  files: 473 / 1091
- sleep: time.Sleep in test files: 812 / 1006
- db-no-context: one classifier (a dbOps method whose signature is
  identical to database/sql DB/Tx/Conn/Stmt's), production files:
  751 / 935
- host-context: context.Background/TODO in internal/host production
  files: 124 / 169
- func-lines: functions over 300 code lines: 44
- file-lines: files over 3,000 code lines: 8
- release-importers: a total: 65

.amadan/code-health.tsv is the record, generated from today's tree.
TestCodeHealth (in make test) fails on a site above its record and logs
sites below it. make code-health-record only lowers and drops; MOVE
carries an allowance to a renamed or moved site and writes
"# moved-from:". .amadan/ci.d/60-code-health-record compares the record
with the merge base's copy and fails on an added or raised line without
a new "# raised:" or a valid transfer.

AGENTS.md gains "Writing Go here", each rule naming its guard or
ratchet metric; .amadan/README.md lists the two new checks.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 705737c60aaa1e3b9a2cb5e6d76bb853a5603b74 parent 4a81517
37 files changed, +4,230 −4
  • .amadan/README.md +34 −3
  • .amadan/ci.d/60-code-health-record +76 −0
  • .amadan/code-health.tsv +2,255 −0
  • AGENTS.md +38 −0
  • Makefile +14 −1
  • internal/codehealth/codehealth_test.go +178 −0
  • internal/codehealth/fixtures_test.go +158 −0
  • internal/codehealth/ratchet_test.go +223 −0
  • internal/codehealth/record_test.go +338 −0
  • internal/codehealth/scan_test.go +568 −0
  • internal/codehealth/testdata/fixture/consoledb/consoledb.go +19 −0
  • internal/codehealth/testdata/fixture/gen.go +7 −0
  • internal/codehealth/testdata/fixture/go.mod +3 −0
  • internal/codehealth/testdata/fixture/imp/a/a.go +5 −0
  • internal/codehealth/testdata/fixture/imp/b/b.go +6 −0
  • internal/codehealth/testdata/fixture/imp/b/b2.go +5 −0
  • internal/codehealth/testdata/fixture/imp/c/c.go +4 −0
  • internal/codehealth/testdata/fixture/imp/c/c_test.go +9 −0
  • internal/codehealth/testdata/fixture/internal/host/host.go +8 −0
  • internal/codehealth/testdata/fixture/internal/host/host_test.go +10 −0
  • internal/codehealth/testdata/fixture/internal/host/queue_default.go +8 −0
  • internal/codehealth/testdata/fixture/internal/host/queue_rootrunner.go +8 −0
  • internal/codehealth/testdata/fixture/internal/host/sub/sub.go +6 −0
  • internal/codehealth/testdata/fixture/internal/hostops/ops.go +6 −0
  • internal/codehealth/testdata/fixture/internal/release/release.go +3 −0
  • internal/codehealth/testdata/fixture/internal/release/sub/sub.go +6 −0
  • internal/codehealth/testdata/fixture/main.go +35 −0
  • internal/codehealth/testdata/fixture/main_arm64.go +5 −0
  • internal/codehealth/testdata/fixture/main_darwin.go +5 −0
  • internal/codehealth/testdata/fixture/main_ext_test.go +11 −0
  • internal/codehealth/testdata/fixture/main_test.go +19 −0
  • internal/codehealth/testdata/fixture/other/other.go +13 −0
  • internal/codehealth/testdata/fixture/store/store.go +63 −0
  • internal/codehealth/testdata/fixture/store/store_test.go +13 −0
  • internal/codehealth/testdata/lines/go.mod +3 −0
  • internal/codehealth/testdata/lines/lines.go +55 −0
  • internal/codehealth/testdata/lines/lines_test.go +13 −0

CI cancelled — superseded by a newer push — run details

diff --git a/.amadan/README.md b/.amadan/README.md
index 70ba2d65b..97ea99a0e 100644
--- a/.amadan/README.md
+++ b/.amadan/README.md
@@ -33,15 +33,17 @@ no longer exists.
| `minio-contract` | `30-minio-contract` | MinIO on loopback, no container |
| `gofmt` | `10-gate` | repo-wide, via `make test` — see below |
-Three checks have no ancestor; the deleted workflow never ran them. They
-were added on 2026-11-16 after a code audit found the gate could not see
-them.
+Five checks have no ancestor; the deleted workflow never ran them. The
+first three were added on 2026-11-16 after a code audit found the gate
+could not see them, and the code-health ratchet's two on 2026-11-17.
| added | here | |
|---|---|---|
| tagged vet | `10-gate` | `go vet -tags rootrunner,carlos_cutover_witness ./...`, via `make test`: the root-runner tests are type-checked, not run |
| `staticcheck` | `40-staticcheck` | `make staticcheck`: v0.8.2, bug checks only; `staticcheck.conf` names the families still off |
| `govulncheck` | `50-govulncheck` | `make govulncheck`: v1.8.0 over this module and `launchctx`; fails only on vulnerabilities the code calls, less the exceptions file; see below |
+| code-health gate | `10-gate` | `TestCodeHealth` (`internal/codehealth`), via `make test`: the code against `.amadan/code-health.tsv`; see below |
+| code-health record | `60-code-health-record` | the record against the merge base's copy; see below |
## `govulncheck`: what turns it red
@@ -77,6 +79,35 @@ rather than getting `--unshare-net`) and `vuln.go.dev` for the database,
which is fetched fresh on every run. If either is unreachable the step
fails; it does not pass on an empty answer.
+## The code-health ratchet: what turns it red
+
+`.amadan/code-health.tsv` records every known offence of a few kinds
+(`log.Fatal` in the CLI, sleeps in tests, database calls with no
+context, long functions and files, and more; its header lists them and
+says how they are counted). Two checks hold it, and a count can only
+go down:
+
+- **`TestCodeHealth`**, in `make test`, scans the tree with type
+ information and fails when the code has more at a site than the
+ record allows, or an offence at a site with no line. Fewer passes.
+ `make code-health-record` then lowers the record; it never adds or
+ raises a line. A moved site keeps its allowance with
+ `MOVE='<old>:<new>'`.
+- **`60-code-health-record`** compares the record with the merge base's
+ copy and fails on a line that is new or higher there unless it ends in
+ a new `# raised: <reason>`, or is a `# moved-from:` transfer within the
+ old site's allowance. So a raise is always a visible, reviewed edit.
+
+The second step needs main's history, which the runner's shallow clone
+lacks: it fetches main from `origin` (readable without credentials) and,
+the first time on a workspace, unshallows the clone. Its header says
+how it finds the base, and why it uses HEAD's parent on main.
+
+The scan takes about 20 s on a warm build cache, at `GOMAXPROCS=4`. It
+type-checks every package under two tag sets, so a cold cache costs
+the compiles the gate's vet and test jobs also need. That is why it
+runs inside `10-gate` and not as a step of its own.
+
## `gofmt`: ported by widening it, not by reproducing it
This section is the reason it was safe to delete the workflow, so it is
diff --git a/.amadan/ci.d/60-code-health-record b/.amadan/ci.d/60-code-health-record
new file mode 100755
index 000000000..0b43517e8
--- /dev/null
+++ b/.amadan/ci.d/60-code-health-record
@@ -0,0 +1,76 @@
+#!/bin/sh
+# The code-health record may only go down (the Go code health plan,
+# docs/superpowers/plans/2026-11-16-go-code-health.md, Part 2).
+#
+# The gate (TestCodeHealth, in 10-gate's make test) compares the code with
+# .amadan/code-health.tsv. This step compares the record with the merge
+# base's copy, so the record cannot be raised to fit the code: a line that
+# is new, or higher than at the merge base, fails here unless it carries a
+# new "# raised: <reason>" or is a valid "# moved-from:" transfer (its
+# count plus what the old site keeps is no more than the old site's
+# allowance at the merge base). Lowered and dropped lines need nothing.
+# The rule is TestRecordAgainstBase's, in internal/codehealth; this step
+# only finds the base and hands it over.
+#
+# Finding the base. amadan CI checks out a shallow clone (depth 1) of the
+# commit being built and tells the job only its commit and branch, so main
+# and the history between are usually missing. The step fetches main from
+# origin, which the job can read without credentials, into FETCH_HEAD. In
+# a shallow clone the fetch is --unshallow, which takes the whole history
+# once per runner workspace; the runner keeps a clone that is no longer
+# shallow as it is. The base is then the merge base of HEAD and main. On
+# main itself HEAD is that merge base, and the base is HEAD's parent: the
+# main that each merge landed on. If the fetch fails the step fails; it
+# does not pass on a base it could not read.
+set -eu
+. .amadan/go-toolchain.sh
+
+record=.amadan/code-health.tsv
+scratch=$(mktemp -d "${TMPDIR:-/tmp}/code-health-record-XXXXXX")
+trap 'rm -rf "$scratch"' EXIT
+
+if [ "$(git rev-parse --is-shallow-repository)" = true ]; then
+ git fetch -q --unshallow origin main
+else
+ git fetch -q origin main
+fi
+main=$(git rev-parse --verify 'FETCH_HEAD^{commit}')
+head=$(git rev-parse --verify 'HEAD^{commit}')
+base=$(git merge-base "$head" "$main") || {
+ echo "no merge base between HEAD ($head) and main ($main)" >&2
+ exit 1
+}
+if [ "$base" = "$head" ]; then
+ base=$(git rev-parse --verify 'HEAD^1^{commit}') || {
+ echo "HEAD ($head) is on main and has no parent to compare with" >&2
+ exit 1
+ }
+ echo "code-health record: HEAD is on main; comparing with its parent $base"
+else
+ echo "code-health record: comparing with the merge base $base (main is $main)"
+fi
+
+if ! git cat-file -e "$base:$record" 2>/dev/null; then
+ echo "code-health record: $record does not exist at $base, so there is nothing to compare."
+ echo "This is the branch that adds it."
+ exit 0
+fi
+git show "$base:$record" >"$scratch/base.tsv"
+
+out=$scratch/test.log
+set +e
+CODEHEALTH_BASE="$scratch/base.tsv" \
+ go test ./internal/codehealth/ -run '^TestRecordAgainstBase$' -count=1 -v >"$out" 2>&1
+status=$?
+set -e
+cat "$out"
+if [ "$status" -ne 0 ]; then
+ exit "$status"
+fi
+# The test skips without CODEHEALTH_BASE, and a skipped test exits 0: the
+# PASS line is what says the comparison ran.
+if ! grep -q '^--- PASS: TestRecordAgainstBase (' "$out"; then
+ echo "TestRecordAgainstBase did not PASS: it was skipped, filtered out or renamed." >&2
+ exit 1
+fi
+echo "code-health record: no line went up without a reason"
diff --git a/.amadan/code-health.tsv b/.amadan/code-health.tsv
new file mode 100644
index 000000000..4249e8d09
--- /dev/null
+++ b/.amadan/code-health.tsv
@@ -0,0 +1,2255 @@
+# The code-health ratchet's record (internal/codehealth; the Go code
+# health plan, docs/superpowers/plans/2026-11-16-go-code-health.md, Part 2).
+#
+# Each line is metric, package, function, callee, count, tab-separated, and
+# may end with a comment. A site is one offence's place: the package (its
+# directory, "_test" added for an external test package), the enclosing
+# function (for file-lines, the file) and what it calls. The count is how
+# many the site may have: calls, or for func-lines and file-lines code lines
+# (blank and comment-only lines not counted). release-importers is one total.
+#
+# The scan covers this module and launchctx with type information, for
+# GOOS=linux, twice: with no tags and with the gate's (rootrunner and the
+# cutover witnesses'). A site seen in both counts once. Generated files,
+# testdata and files built only for other systems or architectures are not
+# scanned; go test ./internal/codehealth/ -run '^TestCodeHealth$' -v lists
+# them, with every count and the line metrics' physical lengths.
+#
+# - The gate (TestCodeHealth, in make test) fails when the code has more at a
+# site than its line allows, or an offence at a site with no line. Fewer is
+# fine: the gate says so, and the record can be lowered.
+# - make code-health-record lowers lines to what the code has and drops the
+# sites that are gone. It never adds a line or raises one.
+# - A site that moved (a rename, or a move to another package) keeps its
+# allowance with make code-health-record MOVE='<old>:<new>', each side
+# "package function callee"; ";" separates several. The new line says
+# "# moved-from: <old>", and its count plus what is left at the old site
+# can never exceed the old allowance.
+# - Anything else that adds or raises a line is a hand edit ending in
+# "# raised: <reason>". CI's 60-code-health-record step compares this file
+# with the merge base's copy and fails on an added or raised line without
+# a new "# raised:" or a valid "# moved-from:".
+#
+# The metrics:
+# fatal log.Fatal*, (*log.Logger).Fatal* and os.Exit in the root package's production files
+# sleep time.Sleep in test files
+# db-no-context database calls with no context (dbOpWithoutContext) in production files
+# host-context context.Background and context.TODO in internal/host production files
+# func-lines functions over 300 code lines (blank and comment-only lines not counted)
+# file-lines files over 3,000 code lines, counted the same way
+# release-importers packages whose production files import internal/release
+#
+# metric package function callee count
+fatal . RunStatus log.Fatal 4
+fatal . RunStatus os.Exit 1
+fatal . accountsCommand os.Exit 1
+fatal . accountsSubdomainCommand os.Exit 1
+fatal . applyPipelinePut log.Fatal 1
+fatal . appsCommand os.Exit 1
+fatal . appsSourceCommand log.Fatal 1
+fatal . assetsCommand log.Fatal 1
+fatal . attachUnclaimedHost log.Fatalf 2
+fatal . authCommand os.Exit 2
+fatal . billingError log.Fatalf 1
+fatal . buildCommandRoot os.Exit 3
+fatal . checkAccountID log.Fatalf 2
+fatal . checkEnvironmentFlag log.Fatal 1
+fatal . checkEnvironmentFlag log.Fatalf 1
+fatal . checkIfVersionGiven log.Fatal 1
+fatal . configCommand os.Exit 1
+fatal . configError os.Exit 2
+fatal . createAccountInBucket log.Fatal 1
+fatal . createAccountInBucket log.Fatalf 2
+fatal . createAccountViaConsole log.Fatalf 1
+fatal . dbCommand os.Exit 2
+fatal . dbFlags log.Fatalf 2
+fatal . domainsCommand log.Fatal 1
+fatal . economicsCommand os.Exit 1
+fatal . emailCommand os.Exit 1
+fatal . envCommand os.Exit 1
+fatal . failDeployDNSGuidance log.Fatal 1
+fatal . fatalConfigWrite os.Exit 1
+fatal . featuresCommand log.Fatal 1
+fatal . fleetsCommand log.Fatal 1
+fatal . fleetsCommand os.Exit 1
+fatal . fleetsSignedInSession log.Fatal 2
+fatal . gateCommand log.Fatal 1
+fatal . gateHosts log.Fatalf 2
+fatal . gitShortHead log.Fatal 1
+fatal . instancesDirectMode log.Fatal 1
+fatal . instancesDirectMode log.Fatalf 1
+fatal . instancesDoorKeyCommand log.Fatal 1
+fatal . ledgerAPISession log.Fatal 2
+fatal . ledgerCommand os.Exit 1
+fatal . linkCommand log.Fatal 1
+fatal . linkRefused log.Fatal 1
+fatal . linkSession log.Fatal 2
+fatal . linksCommand log.Fatal 1
+fatal . loadListing log.Fatal 4
+fatal . mailerCommand os.Exit 1
+fatal . main os.Exit 1
+fatal . migrationPlan log.Fatalf 8
+fatal . mintDirectVersion log.Fatal 3
+fatal . mintDirectVersion log.Fatalf 1
+fatal . newShipStop os.Exit 1
+fatal . offerCreateApp log.Fatal 2
+fatal . offerCreateApp log.Fatalf 2
+fatal . openStore log.Fatal 2
+fatal . pipelineSignedInSession log.Fatal 2
+fatal . pointerRebinder log.Fatalf 2
+fatal . printListingJSON log.Fatal 1
+fatal . proofCommand log.Fatal 1
+fatal . publicKey log.Fatal 1
+fatal . randomTemporaryLabel log.Fatalf 1
+fatal . ratelimitCommand log.Fatal 1
+fatal . ratelimitHosts log.Fatalf 2
+fatal . refuseForwardRoute os.Exit 1
+fatal . refuseForwardTargets log.Fatal 2
+fatal . refuseForwardTargets os.Exit 1
+fatal . relayCommand os.Exit 2
+fatal . releaseSigner log.Fatal 4
+fatal . replicaReqFromFlags log.Fatal 2
+fatal . requireAPISession log.Fatal 1
+fatal . requireAPISession log.Fatalf 1
+fatal . requireAssetsAPISession log.Fatal 2
+fatal . requireBillingAPISession log.Fatal 2
+fatal . requireDBAPISession log.Fatal 2
+fatal . requireDeployAPISession log.Fatal 2
+fatal . requireEnvConsoleSession log.Fatal 1
+fatal . requireEnvConsoleSession log.Fatalf 1
+fatal . requireFeaturesAPISession log.Fatal 2
+fatal . requireGateAPISession log.Fatal 2
+fatal . requireMailAPISession log.Fatal 2
+fatal . requirePlanAPISession log.Fatal 2
+fatal . requireRatelimitAPISession log.Fatal 2
+fatal . requireRelayAPISession log.Fatal 2
+fatal . requireRestartAPISession log.Fatal 2
+fatal . requireRetentionAPISession log.Fatal 2
+fatal . requireScheduleAPISession log.Fatal 2
+fatal . requireSidecarsAPISession log.Fatal 1
+fatal . requireSidecarsAPISession log.Fatalf 1
+fatal . requireSignedInApps log.Fatal 1
+fatal . requireSignedInApps log.Fatalf 1
+fatal . requireSteeringAPISession log.Fatal 2
+fatal . requireStoreAPISession log.Fatal 2
+fatal . resolveAccount log.Fatal 2
+fatal . resolveAccount log.Fatalf 1
+fatal . resolvedAccount log.Fatal 2
+fatal . resolvedApp log.Fatal 2
+fatal . roleArgs os.Exit 2
+fatal . runAccountsCreate log.Fatal 1
+fatal . runAccountsCreate log.Fatalf 2
+fatal . runAccountsList log.Fatal 1
+fatal . runAccountsListRegistry log.Fatal 3
+fatal . runAccountsMigrate log.Fatal 8
+fatal . runAccountsMigrate log.Fatalf 6
+fatal . runAccountsPlan log.Fatalf 1
+fatal . runAccountsSubdomain log.Fatalf 1
+fatal . runAdd log.Fatal 4
+fatal . runAdd log.Fatalf 16
+fatal . runAnalytics log.Fatalf 3
+fatal . runAppsBuildProbe log.Fatal 4
+fatal . runAppsBuildProbe log.Fatalf 4
+fatal . runAppsCreate log.Fatal 4
+fatal . runAppsCreate log.Fatalf 10
+fatal . runAppsDelete log.Fatal 4
+fatal . runAppsDelete log.Fatalf 3
+fatal . runAppsKeep log.Fatal 2
+fatal . runAppsKeep log.Fatalf 1
+fatal . runAppsList log.Fatal 2
+fatal . runAppsList log.Fatalf 1
+fatal . runAppsPlace log.Fatal 4
+fatal . runAppsPlace log.Fatalf 3
+fatal . runAppsRegion log.Fatal 4
+fatal . runAppsRegion log.Fatalf 2
+fatal . runAppsRestore log.Fatal 4
+fatal . runAppsRestore log.Fatalf 2
+fatal . runAppsSet log.Fatal 11
+fatal . runAppsSet log.Fatalf 1
+fatal . runAppsShow log.Fatal 6
+fatal . runAppsSourcePull log.Fatal 5
+fatal . runAppsSourcePull log.Fatalf 1
+fatal . runAppsTTL log.Fatal 2
+fatal . runAppsTTL log.Fatalf 2
+fatal . runAssetsPurge log.Fatalf 2
+fatal . runAssetsPurge os.Exit 1
+fatal . runAssetsStatus log.Fatalf 1
+fatal . runAvailability log.Fatalf 1
+fatal . runCanaryDeploy log.Fatal 2
+fatal . runCanaryDeploy log.Fatalf 13
+fatal . runCanaryList log.Fatalf 2
+fatal . runCanaryRemove log.Fatal 1
+fatal . runCanaryRemove log.Fatalf 4
+fatal . runChannels log.Fatal 4
+fatal . runChannelsDigests log.Fatal 5
+fatal . runChannelsResign log.Fatal 7
+fatal . runConsole log.Fatal 2
+fatal . runConsole os.Exit 3
+fatal . runDBPull log.Fatalf 1
+fatal . runDBPull os.Exit 2
+fatal . runDBQuery log.Fatalf 1
+fatal . runDBQuery os.Exit 1
+fatal . runDemoSnapshot log.Fatal 2
+fatal . runDeploy log.Fatal 10
+fatal . runDeploy log.Fatalf 25
+fatal . runDevbox log.Fatal 1
+fatal . runDevbox os.Exit 1
+fatal . runDomainBuyVerb log.Fatal 5
+fatal . runDomainsAttach log.Fatal 1
+fatal . runDomainsAttach log.Fatalf 1
+fatal . runDomainsDetach log.Fatal 1
+fatal . runDomainsDetach log.Fatalf 1
+fatal . runDomainsList log.Fatalf 1
+fatal . runDomainsPaths log.Fatal 1
+fatal . runDomainsPaths log.Fatalf 1
+fatal . runDomainsPlacements log.Fatal 2
+fatal . runDomainsPlacements log.Fatalf 2
+fatal . runDomainsPlacements os.Exit 1
+fatal . runDomainsVerify log.Fatal 1
+fatal . runDomainsVerify log.Fatalf 3
+fatal . runDomainsVerify os.Exit 1
+fatal . runDrainCallTop os.Exit 1
+fatal . runEconomicsBackhaul log.Fatal 2
+fatal . runEconomicsBackhaul log.Fatalf 1
+fatal . runEconomicsBill log.Fatal 3
+fatal . runEconomicsBill log.Fatalf 4
+fatal . runEmailCredentialsCreate log.Fatal 1
+fatal . runEmailCredentialsCreate log.Fatalf 2
+fatal . runEmailCredentialsList log.Fatalf 2
+fatal . runEmailCredentialsRevoke log.Fatal 1
+fatal . runEmailCredentialsRevoke log.Fatalf 2
+fatal . runEmailDomainsAdd log.Fatal 1
+fatal . runEmailDomainsAdd log.Fatalf 3
+fatal . runEmailDomainsRemove log.Fatal 1
+fatal . runEmailDomainsRemove log.Fatalf 2
+fatal . runEmailEnable log.Fatalf 2
+fatal . runEmailEvents log.Fatalf 3
+fatal . runEmailEventsPush log.Fatalf 3
+fatal . runEmailPause log.Fatalf 2
+fatal . runEmailRotate log.Fatalf 2
+fatal . runEmailStatus log.Fatalf 2
+fatal . runEmailStatus os.Exit 1
+fatal . runEmailSubmission log.Fatalf 2
+fatal . runEmailTest log.Fatal 1
+fatal . runEmailTest log.Fatalf 2
+fatal . runEnvAdopt log.Fatal 1
+fatal . runEnvAdopt log.Fatalf 1
+fatal . runEnvDigest log.Fatalf 1
+fatal . runEnvDigest os.Exit 1
+fatal . runEnvEffective log.Fatal 5
+fatal . runEnvEnvironments log.Fatal 4
+fatal . runEnvExecDelivery log.Fatal 5
+fatal . runEnvExecDelivery log.Fatalf 3
+fatal . runEnvFork log.Fatal 1
+fatal . runEnvFork log.Fatalf 1
+fatal . runEnvRelease log.Fatal 1
+fatal . runEnvRelease log.Fatalf 1
+fatal . runEnvSet log.Fatal 4
+fatal . runEnvSet log.Fatalf 2
+fatal . runEnvSync log.Fatal 4
+fatal . runEnvUnset log.Fatal 5
+fatal . runEnvUnset log.Fatalf 1
+fatal . runErrors log.Fatalf 3
+fatal . runExplain log.Fatalf 3
+fatal . runExplain os.Exit 2
+fatal . runFeaturesList log.Fatalf 1
+fatal . runFeaturesSet log.Fatal 1
+fatal . runFeaturesSet log.Fatalf 3
+fatal . runFleetsAddBox log.Fatal 1
+fatal . runFleetsAddBox log.Fatalf 3
+fatal . runFleetsCreate log.Fatal 3
+fatal . runFleetsCreate log.Fatalf 2
+fatal . runFleetsDetachBox log.Fatal 1
+fatal . runFleetsDetachBox log.Fatalf 3
+fatal . runFleetsDrain log.Fatal 1
+fatal . runFleetsDrain log.Fatalf 3
+fatal . runFleetsList log.Fatalf 1
+fatal . runFleetsManagedAdd log.Fatal 2
+fatal . runFleetsRotateToken log.Fatal 1
+fatal . runFleetsRotateToken log.Fatalf 3
+fatal . runFleetsSecretsKey log.Fatal 4
+fatal . runFleetsSecretsKey log.Fatalf 3
+fatal . runFleetsShow log.Fatal 3
+fatal . runFleetsTagBox log.Fatal 3
+fatal . runFleetsTagBox log.Fatalf 3
+fatal . runGateClear os.Exit 1
+fatal . runGateList log.Fatalf 1
+fatal . runGateSet log.Fatal 1
+fatal . runGateSet log.Fatalf 1
+fatal . runGateSet os.Exit 1
+fatal . runGeo log.Fatalf 3
+fatal . runGeo os.Exit 1
+fatal . runHistory log.Fatal 1
+fatal . runIngressDrainTop os.Exit 1
+fatal . runInstances log.Fatal 2
+fatal . runInstancesBackups os.Exit 1
+fatal . runInstancesCreate log.Fatal 1
+fatal . runInstancesCreate log.Fatalf 6
+fatal . runInstancesDelete log.Fatal 1
+fatal . runInstancesDelete log.Fatalf 2
+fatal . runInstancesDoorKeyCreate log.Fatalf 1
+fatal . runInstancesDoorKeyList log.Fatalf 1
+fatal . runInstancesDoorKeyRevoke log.Fatal 1
+fatal . runInstancesDoorKeyRevoke log.Fatalf 1
+fatal . runInstancesEnable log.Fatal 4
+fatal . runInstancesEnable log.Fatalf 7
+fatal . runInstancesImport log.Fatalf 2
+fatal . runInstancesImport os.Exit 3
+fatal . runInstancesImportVerb log.Fatalf 1
+fatal . runInstancesImportVerb os.Exit 1
+fatal . runInstancesLabel log.Fatal 1
+fatal . runInstancesLabel log.Fatalf 1
+fatal . runInstancesList log.Fatalf 1
+fatal . runInstancesRetry log.Fatal 2
+fatal . runInstancesRetry log.Fatalf 2
+fatal . runInstancesSet log.Fatal 7
+fatal . runInstancesSetAssets log.Fatal 1
+fatal . runInstancesSetAssets log.Fatalf 2
+fatal . runInstancesSetChannel log.Fatal 2
+fatal . runInstancesSetEnvironment log.Fatal 1
+fatal . runInstancesSetEnvironment log.Fatalf 2
+fatal . runInstancesSetPages log.Fatal 1
+fatal . runInstancesSetPages log.Fatalf 2
+fatal . runInstancesSetUpstreams log.Fatal 1
+fatal . runInstancesSetUpstreams log.Fatalf 1
+fatal . runInstancesUpdate log.Fatal 3
+fatal . runKeygen log.Fatal 4
+fatal . runKeygen log.Fatalf 1
+fatal . runLedgerAppend log.Fatal 2
+fatal . runLedgerAppend log.Fatalf 3
+fatal . runLedgerBlob log.Fatal 2
+fatal . runLedgerBlob log.Fatalf 3
+fatal . runLedgerHead log.Fatal 3
+fatal . runLedgerHead log.Fatalf 1
+fatal . runLedgerList log.Fatal 1
+fatal . runLedgerList log.Fatalf 1
+fatal . runLedgerPublish log.Fatal 2
+fatal . runLedgerPublish log.Fatalf 1
+fatal . runLedgerVerify log.Fatal 2
+fatal . runLedgerVerify log.Fatalf 1
+fatal . runLinkCreate log.Fatal 1
+fatal . runLinkPublish log.Fatal 1
+fatal . runLinkRemove log.Fatal 1
+fatal . runLinkRotate log.Fatal 1
+fatal . runLinkStatus log.Fatal 1
+fatal . runLinkUnpublish log.Fatal 2
+fatal . runLinksList log.Fatal 2
+fatal . runLogs log.Fatalf 1
+fatal . runMailerServe os.Exit 1
+fatal . runManagedFleetCommand log.Fatal 2
+fatal . runMove os.Exit 1
+fatal . runOpsHost log.Fatal 2
+fatal . runPipelineAdd log.Fatal 2
+fatal . runPipelineAdd log.Fatalf 2
+fatal . runPipelineInit log.Fatal 1
+fatal . runPipelineRemove log.Fatal 2
+fatal . runPipelineRemove log.Fatalf 1
+fatal . runPipelineSet log.Fatal 2
+fatal . runPipelineSet log.Fatalf 1
+fatal . runPipelineShow log.Fatal 3
+fatal . runPromote log.Fatal 9
+fatal . runProof log.Fatal 3
+fatal . runProofGet log.Fatal 2
+fatal . runProofKeygen log.Fatal 2
+fatal . runProtection log.Fatalf 3
+fatal . runRatelimitClear os.Exit 1
+fatal . runRatelimitSet log.Fatal 1
+fatal . runRatelimitSet os.Exit 2
+fatal . runRatelimitShow os.Exit 1
+fatal . runRegistryChildTop log.Fatal 1
+fatal . runRelayAdopted log.Fatalf 3
+fatal . runRelayDisable log.Fatalf 2
+fatal . runRelayEnable log.Fatalf 2
+fatal . runRelayKeygen log.Fatalf 2
+fatal . runRelayRotate log.Fatal 1
+fatal . runRelayRotate log.Fatalf 1
+fatal . runRelayServe log.Fatalf 2
+fatal . runRelayStatus log.Fatalf 2
+fatal . runReleases log.Fatal 4
+fatal . runReleasesAuthorize log.Fatal 8
+fatal . runReleasesAuthorize log.Fatalf 1
+fatal . runReleasesRetention log.Fatal 2
+fatal . runReleasesRetention log.Fatalf 6
+fatal . runRemove log.Fatal 4
+fatal . runRestart log.Fatalf 4
+fatal . runRestartScoped log.Fatalf 1
+fatal . runRollback log.Fatal 6
+fatal . runRoute log.Fatal 17
+fatal . runRoute log.Fatalf 18
+fatal . runRoute os.Exit 2
+fatal . runRouteBacking log.Fatalf 2
+fatal . runRouteGrant log.Fatal 1
+fatal . runRouteGrant log.Fatalf 6
+fatal . runRouteHibernate log.Fatalf 8
+fatal . runRouteReplication log.Fatalf 3
+fatal . runRouteUnit log.Fatalf 2
+fatal . runRoutes log.Fatalf 1
+fatal . runRun log.Fatal 2
+fatal . runRun os.Exit 5
+fatal . runScheduleLs log.Fatalf 1
+fatal . runScheduleRm log.Fatal 1
+fatal . runScheduleRm log.Fatalf 1
+fatal . runScheduleRun log.Fatal 1
+fatal . runScheduleRun log.Fatalf 1
+fatal . runScheduleSet log.Fatalf 3
+fatal . runSecretsFingerprint log.Fatal 2
+fatal . runSecretsGenkey log.Fatal 1
+fatal . runSecretsSet log.Fatal 6
+fatal . runSecretsSet log.Fatalf 4
+fatal . runSecretsUnset log.Fatal 5
+fatal . runServicesCreate log.Fatal 7
+fatal . runServicesCreate log.Fatalf 3
+fatal . runServicesList log.Fatalf 1
+fatal . runServicesRevoke log.Fatal 1
+fatal . runServicesRevoke log.Fatalf 2
+fatal . runServicesRotate log.Fatal 2
+fatal . runServicesRotate log.Fatalf 2
+fatal . runShip log.Fatal 23
+fatal . runShipRootfs log.Fatal 13
+fatal . runShipRootfs log.Fatalf 2
+fatal . runShipRootfs os.Exit 3
+fatal . runSidecarsCreate log.Fatal 1
+fatal . runSidecarsCreate log.Fatalf 1
+fatal . runSidecarsEnable log.Fatal 3
+fatal . runSidecarsEnable log.Fatalf 11
+fatal . runSidecarsList log.Fatalf 1
+fatal . runSidecarsLogs log.Fatal 1
+fatal . runSidecarsLogs log.Fatalf 1
+fatal . runSidecarsRm log.Fatal 1
+fatal . runSidecarsRm log.Fatalf 1
+fatal . runSidecarsWake log.Fatal 1
+fatal . runSidecarsWake log.Fatalf 1
+fatal . runSkills log.Fatalf 4
+fatal . runSteering log.Fatal 2
+fatal . runSteering log.Fatalf 1
+fatal . runStoreApply log.Fatalf 2
+fatal . runStoreApprovals log.Fatalf 2
+fatal . runStoreApprove log.Fatalf 1
+fatal . runStoreCreate log.Fatalf 2
+fatal . runStoreDecline log.Fatal 1
+fatal . runStoreDecline log.Fatalf 3
+fatal . runStoreGrant log.Fatalf 3
+fatal . runStoreRotate log.Fatalf 3
+fatal . runStoreScanEnforce log.Fatal 1
+fatal . runStoreScanEnforce log.Fatalf 1
+fatal . runStoreScanRequest log.Fatal 2
+fatal . runStoreScanRequest log.Fatalf 1
+fatal . runStoreScanSimple log.Fatalf 1
+fatal . runStoreScanStatus log.Fatalf 1
+fatal . runStoreStatus log.Fatalf 3
+fatal . runSystemAntivirus log.Fatalf 2
+fatal . runSystemBoxRole log.Fatalf 1
+fatal . runSystemCancelActivation log.Fatal 2
+fatal . runSystemCancelActivation log.Fatalf 2
+fatal . runSystemDemos os.Exit 4
+fatal . runSystemDemosReports os.Exit 4
+fatal . runSystemGeoipOff log.Fatalf 2
+fatal . runSystemGeoipPublish log.Fatalf 1
+fatal . runSystemGeoipPublish os.Exit 1
+fatal . runSystemGeoipStatus log.Fatalf 3
+fatal . runSystemGroupAbandon os.Exit 1
+fatal . runSystemGroupCancelDrain os.Exit 1
+fatal . runSystemGroupCloseLost os.Exit 1
+fatal . runSystemGroupPlan os.Exit 1
+fatal . runSystemGroupProbeAbandon os.Exit 1
+fatal . runSystemGroupProbeCloseLost os.Exit 1
+fatal . runSystemGroupProbeResume os.Exit 1
+fatal . runSystemGroupProbeStart os.Exit 1
+fatal . runSystemGroupProbeStatus os.Exit 1
+fatal . runSystemGroupRemove os.Exit 1
+fatal . runSystemGroupReplace os.Exit 1
+fatal . runSystemGroupResume os.Exit 1
+fatal . runSystemGroupReturn os.Exit 1
+fatal . runSystemGroupRole log.Fatalf 1
+fatal . runSystemGroupRoll os.Exit 1
+fatal . runSystemGroupRollback os.Exit 1
+fatal . runSystemGroupStatus os.Exit 1
+fatal . runSystemHostsUsedStatus log.Fatalf 1
+fatal . runSystemHostsUsedStatus os.Exit 1
+fatal . runSystemLayout log.Fatal 1
+fatal . runSystemLayout log.Fatalf 5
+fatal . runSystemLegacyRoutesAssign log.Fatalf 3
+fatal . runSystemLegacyRoutesAssign os.Exit 1
+fatal . runSystemLifetimesCutover log.Fatalf 1
+fatal . runSystemLifetimesCutover os.Exit 1
+fatal . runSystemManagedFleets log.Fatal 4
+fatal . runSystemPDFStatus log.Fatal 1
+fatal . runSystemPDFStatus os.Exit 1
+fatal . runSystemRollback log.Fatal 2
+fatal . runSystemRollback log.Fatalf 2
+fatal . runSystemSeedsFloorPublish log.Fatalf 2
+fatal . runSystemSeedsFloorPublish os.Exit 1
+fatal . runSystemStatus log.Fatalf 3
+fatal . runSystemUpdate log.Fatal 3
+fatal . runSystemUpdate log.Fatalf 6
+fatal . runUpdate log.Fatal 3
+fatal . runUpdate log.Fatalf 5
+fatal . runVersionTarget log.Fatal 7
+fatal . scanTarget log.Fatalf 1
+fatal . scheduleCommand log.Fatal 1
+fatal . secretsCommand os.Exit 1
+fatal . secretsEnvelopeV2Env log.Fatalf 1
+fatal . secretsPubKey log.Fatal 1
+fatal . secretsPubKeyAPI log.Fatal 3
+fatal . servicesCommand os.Exit 1
+fatal . servicesSignedInSession log.Fatal 2
+fatal . sidecarsCommand log.Fatal 1
+fatal . sidecarsCommand log.Fatalf 1
+fatal . signingKey log.Fatal 1
+fatal . storeCommand os.Exit 1
+fatal . storeScanCommand os.Exit 1
+fatal . systemAntivirusCommand os.Exit 2
+fatal . systemCommand os.Exit 1
+fatal . systemDemosCommand os.Exit 1
+fatal . systemEdgeCommand os.Exit 2
+fatal . systemFallback os.Exit 1
+fatal . systemGeoipCommand os.Exit 2
+fatal . systemGroupFallback os.Exit 1
+fatal . systemGroupProbeFallback os.Exit 1
+fatal . systemLayoutCommand os.Exit 2
+fatal . systemManagedFleetsCommand log.Fatal 1
+fatal . systemManagedFleetsCommand os.Exit 1
+fatal . systemOneVerbCommand os.Exit 1
+fatal . systemPDFCommand os.Exit 2
+fatal . systemRolesFallback os.Exit 1
+fatal . verifyMigratedPointers log.Fatalf 7
+sleep . (*dbfE2E).scriptBox time.Sleep 1
+sleep . (*ixConsole).sessionRows time.Sleep 1
+sleep . (*pipeInput).Stop time.Sleep 1
+sleep . TestAPISessionShipSurvivesSlowServer time.Sleep 1
+sleep . TestDBForwardPullInterruptedLeavesNothing time.Sleep 1
+sleep . TestDBForwardTwentyOneMinuteRead time.Sleep 3
+sleep . TestDevboxServeStopsBothOnError time.Sleep 1
+sleep . TestE2EDBThroughConsole time.Sleep 2
+sleep . TestE2ELogsThroughConsole time.Sleep 1
+sleep . TestFdInputStops time.Sleep 1
+sleep . TestFdInputStopsOnAPTYWhoseInputVanishes time.Sleep 1
+sleep . TestFdOutputWaitsOnAFullTerminal time.Sleep 1
+sleep . TestFleetAppServesThroughTheHub time.Sleep 2
+sleep . TestFollowRunCtrlCOnceCancelsTwiceExits time.Sleep 2
+sleep . TestFollowRunCtrlCWhileARequestIsInFlight time.Sleep 2
+sleep . TestImportBeginOutlastsTheJSONClient time.Sleep 1
+sleep . TestImportUploadStreamsTheFile time.Sleep 1
+sleep . TestMoveOfflineAgainstTheRealDoors time.Sleep 1
+sleep . TestMoveOfflineFlipStepsOverAPoolBox time.Sleep 2
+sleep . TestMoveOfflineNamesRegionsThroughTheRealDoors time.Sleep 1
+sleep . TestMoveOfflineStageAgainstTheRealDoors time.Sleep 2
+sleep . TestSessionJoinsItsStdinReader time.Sleep 1
+sleep . TestSessionRestoreFailure time.Sleep 1
+sleep . TestSessionRestoresTheTerminalOnEveryExit time.Sleep 1
+sleep . TestStoreProvisionUsesLongWalkClient time.Sleep 1
+sleep . TestWatchRolloutFallbackGetsTheRemainingTime time.Sleep 1
+sleep . TestWatchVersionSucceedsWhenHeaderMatches time.Sleep 1
+sleep . TestWatchVersionSweepsTargetsConcurrently time.Sleep 1
+sleep . dbfE2EFixture time.Sleep 1
+sleep . newDBFE2E time.Sleep 1
+sleep . waitStopping time.Sleep 1
+sleep ._test TestEndToEndSmoke time.Sleep 1
+sleep ._test TestTenantInheritsActivationSocket time.Sleep 1
+sleep cmd/console TestHACapacityStartsWithoutClaims time.Sleep 1
+sleep cmd/console TestRecordViewBackstopRebuildsAtStart time.Sleep 1
+sleep cmd/console_test TestHostsUsedScanAWSExpiresALostSnapshot time.Sleep 1
+sleep cmd/moveprobe (*probe).wait time.Sleep 1
+sleep cmd/moveprobe TestMoveprobeLaunchContract time.Sleep 1
+sleep cmd/moveprobe TestMoveprobeWorkerOutlivesMain time.Sleep 2
+sleep cmd/moveprobe TestReadyCoalescesTheStoreCheck time.Sleep 2
+sleep cmd/moveprobe TestReadyFailsWhereTold time.Sleep 4
+sleep cmd/moveprobe TestReadyFollowsTheWorkersLastWrite time.Sleep 2
+sleep cmd/moveprobe TestReportCountsRowsByRegion time.Sleep 2
+sleep cmd/moveprobe killWorkers time.Sleep 1
+sleep cmd/moveprobe newFixture time.Sleep 1
+sleep cmd/rootfswitness TestServeOverTheSocketAndDrainOnSIGTERM time.Sleep 1
+sleep cmd/rootfswitness TestWorkerLogsAndExitsOnSIGTERM time.Sleep 1
+sleep cmd/zddprobe getOverUnix time.Sleep 1
+sleep internal/activator (*consumerRig).sweepUntilGone time.Sleep 1
+sleep internal/activator (*fakeWorkerBackend).RootfsWorkerGone time.Sleep 1
+sleep internal/activator (*genLog).wait time.Sleep 1
+sleep internal/activator (*haSvc).stopForTest time.Sleep 1
+sleep internal/activator (*latencyStore).wait time.Sleep 1
+sleep internal/activator (*simProc).Stop time.Sleep 1
+sleep internal/activator (*simWorld).jitter time.Sleep 1
+sleep internal/activator (*slowStore).Put time.Sleep 1
+sleep internal/activator TestABlockingAfterSettledDoesNotBlockStop time.Sleep 1
+sleep internal/activator TestACancelledFirstWakeRecordsNothing time.Sleep 1
+sleep internal/activator TestACancelledLegacyStartIsMarkedAndItsStopClearsTheQueuedJob time.Sleep 1
+sleep internal/activator TestACrashInsideAReplaceWorkerObservationIsCoalesced time.Sleep 1
+sleep internal/activator TestADeclinedFlatSeedRunsThePinnedFile time.Sleep 1
+sleep internal/activator TestADeclinedSweepDoesNotCycleOntoAHeldBuild time.Sleep 2
+sleep internal/activator TestADeclinedUncapturedWorkerIsNotRespawnedOntoAHeldBuild time.Sleep 2
+sleep internal/activator TestADeclinedWorkerIsNotConvergedOntoAHeldBuild time.Sleep 1
+sleep internal/activator TestAFailedWorkerFirstWakeFallsBackOnlyOnceItsCgroupIsEmpty time.Sleep 1
+sleep internal/activator TestAFailedWorkerFirstWakeFallsBackToTheGoodBuild time.Sleep 1
+sleep internal/activator TestAFallbackWakeRecordsTheFailureBeforeItPublishes time.Sleep 1
+sleep internal/activator TestAFirstWakeEndedAfterItsExecReportsThatItRan time.Sleep 3
+sleep internal/activator TestAFirstWakeWithNoTimeForAVerdictBootsTheGoodBuild time.Sleep 1
+sleep internal/activator TestAGateRefusalOnAShortWindowAbandonsRatherThanGoingUntried time.Sleep 1
+sleep internal/activator TestAHeldWakesReaskNeverOutlastsTheWait time.Sleep 1
+sleep internal/activator TestALateLeaseKillNeverReachesTheNextRun time.Sleep 2
+sleep internal/activator TestALiveExecGateGatesAWorkerSpawnFromTheLiveLink time.Sleep 1
+sleep internal/activator TestALiveExecGateGatesTheFlatLiveLinkSpawn time.Sleep 1
+sleep internal/activator TestALiveExecGateGatesTheLegacySidecarStart time.Sleep 1
+sleep internal/activator TestALostCmdResponseStopsTheCmdRoleBeforeReplicationCloses time.Sleep 1
+sleep internal/activator TestANestedStopKeepsTheLeaseOverAReturnedSidecarItCannotProve time.Sleep 1
+sleep internal/activator TestAParentRestoreRetryIsJoinedByTheEntrysStop time.Sleep 1
+sleep internal/activator TestAPendingTransitionRacesARefusal time.Sleep 1
+sleep internal/activator TestAPlannedClaimedWakeRefusesAtTheLaunchRecordingNothing time.Sleep 1
+sleep internal/activator TestAPlannedWakeWhoseLeaseIsLostExecsNothing time.Sleep 1
+sleep internal/activator TestAPlannedWakeWhoseNestedStartIsUncertain time.Sleep 1
+sleep internal/activator TestAPlannedWorkerFirstWakeSettlesAtItsReadiness time.Sleep 1
+sleep internal/activator TestAPlannedWorkerRefusedAtItsPublicationAttemptsNoSpawn time.Sleep 1
+sleep internal/activator TestAPlannedWorkerRefusedForPublicationRecordsNothing time.Sleep 1
+sleep internal/activator TestARetiredRunsFailedStopIsSettledBySweeps time.Sleep 1
+sleep internal/activator TestARunEndedDuringASwitchWaitNeverStarts time.Sleep 2
+sleep internal/activator TestARunWaitsForAPendingSwitch time.Sleep 1
+sleep internal/activator TestASessionLeaseKillHoldsOnlyTheTTYUnit time.Sleep 1
+sleep internal/activator TestASizePassDuringPlannedWakeCompletionLeavesTheRouteAlone time.Sleep 1
+sleep internal/activator TestAStopDuringTheStartWaitsForIt time.Sleep 1
+sleep internal/activator TestAStopKeepsTheLeaseUntilAnInFlightSidecarStartReturns time.Sleep 1
+sleep internal/activator TestAStopThatReadsTheJoinDuringTheRestartsCleanupWaitsForIt time.Sleep 1
+sleep internal/activator TestASupersededWorkerAttemptRestoresOnlyWhatProvablyNeverRan time.Sleep 1
+sleep internal/activator TestAWorkerFallbackPublishesOnlyWhenReleased time.Sleep 1
+sleep internal/activator TestAWorkerFallbackWithoutOwnershipSpawnsNothing time.Sleep 1
+sleep internal/activator TestAWorkerStartFallbackAsksTheGate time.Sleep 1
+sleep internal/activator TestAWorkerStartIsGatedAfterItsCgroupPreparation time.Sleep 1
+sleep internal/activator TestAbandonedAgentWritesNothing time.Sleep 2
+sleep internal/activator TestActivatorMarksOnlyTheWakingRequestWoke time.Sleep 1
+sleep internal/activator TestActivatorRequestDuringStopRewakes time.Sleep 1
+sleep internal/activator TestActivatorWakeCoalesces time.Sleep 1
+sleep internal/activator TestAnArmedBoxNeverRecyclesAnUncapturedWorkerFromTheLiveLink time.Sleep 2
+sleep internal/activator TestAnIntentionalStopInsideTheWindowRecordsNothing time.Sleep 1
+sleep internal/activator TestAnOwnedCallNeverTakesBackAFenceReplacedWhileItWaited time.Sleep 1
+sleep internal/activator TestAsleepRowRunsReleaseBeforeServing time.Sleep 1
+sleep internal/activator TestBeforeExecRunsBeforeAPlannedBoot time.Sleep 1
+sleep internal/activator TestBeforeExecRunsBeforeAPlannedFallback time.Sleep 1
+sleep internal/activator TestBinaryObserverCompletesFromCgroupEvidenceAfterAFailedForeignStop time.Sleep 1
+sleep internal/activator TestClaimSpawnKernelChild time.Sleep 1
+sleep internal/activator TestCleanupBudgetDoesNotLimitNormalOperation time.Sleep 1
+sleep internal/activator TestDisabledForSkipsDueAndAlwaysOn time.Sleep 1
+sleep internal/activator TestDrainHoldStats time.Sleep 1
+sleep internal/activator TestDriftFeedsTheSchedulerInsteadOfStopping time.Sleep 1
+sleep internal/activator TestExecBackendDoesNotNormalizeSquatterSocket time.Sleep 2
+sleep internal/activator TestExecBackendStartPassesControlSocketInEnvAndStartsPurgeListener time.Sleep 1
+sleep internal/activator TestExecBackendStartWithNilCacheStillBindsControlSocket time.Sleep 1
+sleep internal/activator TestExecBackendWorkerDoesNotExecWhenTheHookFails time.Sleep 1
+sleep internal/activator TestFirstWakeWindowStartsAfterTheRelease time.Sleep 1
+sleep internal/activator TestForwardTargetSingleFlight time.Sleep 1
+sleep internal/activator TestHALostLeaseRecoversOnlyAfterFreshAcquire time.Sleep 1
+sleep internal/activator TestHALostRestartOutsidePoolForwardsAfterOwedRelease time.Sleep 1
+sleep internal/activator TestHASleepRequestCounts time.Sleep 1
+sleep internal/activator TestHandoverWaitsForAnOldStart time.Sleep 1
+sleep internal/activator TestHealthWaitStopsProbingWhenCancelled time.Sleep 1
+sleep internal/activator TestHeldAdmissibleMatchesAdmit time.Sleep 1
+sleep internal/activator TestHeldE2EAsleepNoWake time.Sleep 1
+sleep internal/activator TestHeldE2EResumeAcrossSleep time.Sleep 1
+sleep internal/activator TestHibernatingRootfsLeaseLossKillsItsRun time.Sleep 1
+sleep internal/activator TestHibernatingRootfsLeaseLossKillsItsSession time.Sleep 2
+sleep internal/activator TestHibernatingRootfsTickFallbackKillsItsRun time.Sleep 1
+sleep internal/activator TestImportRollbackFencedDuringThePendingRecord time.Sleep 1
+sleep internal/activator TestIncumbentNeverIdlesThroughAMigration time.Sleep 1
+sleep internal/activator TestJoinOpsWaitsForAResizeInFlight time.Sleep 1
+sleep internal/activator TestLogListenerCloseShutsTheConnectionAndWaitsForTheTee time.Sleep 2
+sleep internal/activator TestLogListenerTeesOneConnectionAndRefusesASecond time.Sleep 1
+sleep internal/activator TestMoveTicketsPausePoints time.Sleep 1
+sleep internal/activator TestNoWakeOnceShutdownHasBegun time.Sleep 2
+sleep internal/activator TestNoWriteAfterMarker time.Sleep 2
+sleep internal/activator TestObserveKeepsARootfsHandleWhileTheReportedGroupIsPopulated time.Sleep 4
+sleep internal/activator TestOwedReleasesAreRetiredOnceTheirRecordsExpire time.Sleep 1
+sleep internal/activator TestPendingStrictCleanupOwnsTheGroup time.Sleep 3
+sleep internal/activator TestPlacedChildLaunchesRefuseEveryRuntime time.Sleep 1
+sleep internal/activator TestPlan11PinRootProcessChecksTheGrantStart time.Sleep 1
+sleep internal/activator TestPlan11RootWatchWithoutHandleIsNotExit time.Sleep 1
+sleep internal/activator TestPlatformPublishesDuringASnapshot time.Sleep 1
+sleep internal/activator TestPoolWithdrawalReconcileRetriesAdmissionAfterRestart time.Sleep 1
+sleep internal/activator TestProbeWakeEndsAtTheCutDeadline time.Sleep 1
+sleep internal/activator TestRecoveryProbeCoalescesTheSamePolicyAndRefusesOthers time.Sleep 1
+sleep internal/activator TestReleaseKeepsRunningWhileTheLeaseRenews time.Sleep 1
+sleep internal/activator TestReleaseLeaseLossUnprovenLeavesTheHold time.Sleep 1
+sleep internal/activator TestReleaseOpConsumersReadTheRecord time.Sleep 1
+sleep internal/activator TestReleaseStartSplitsEachStreamApart time.Sleep 1
+sleep internal/activator TestReplaceWorkerFallsBackToTheGoodBuild time.Sleep 1
+sleep internal/activator TestReplaceWorkerInHoldModeStaysDown time.Sleep 1
+sleep internal/activator TestReplaceWorkerNeverExecsBesideAnUnprovenOldChild time.Sleep 1
+sleep internal/activator TestReplaceWorkerRestartFailureRespawnsTheServingBuild time.Sleep 1
+sleep internal/activator TestResidentLeaseLossKillsARunWhoseStartIsInFlight time.Sleep 1
+sleep internal/activator TestResidentLeaseLossKillsASessionWhoseStartIsInFlight time.Sleep 1
+sleep internal/activator TestResidentLeaseLossKillsAnAttachedRun time.Sleep 1
+sleep internal/activator TestResidentLeaseLossKillsTheSessionBesideTheRun time.Sleep 1
+sleep internal/activator TestResidentNotRestartedWhenRetiredFencedOrShutDown time.Sleep 1
+sleep internal/activator TestResidentQueuedRestartDuringWakeIsWatched time.Sleep 1
+sleep internal/activator TestResidentRequestAndTickRaceOneWake time.Sleep 1
+sleep internal/activator TestResidentStartCeilingIsFour time.Sleep 3
+sleep internal/activator TestResidentStartsAtBootWithNoRequest time.Sleep 2
+sleep internal/activator TestRespawnShedsARacedChildBeforeTheLeaseIsReleased time.Sleep 1
+sleep internal/activator TestRetireExceptKeepsTheHeldProbeEntry time.Sleep 1
+sleep internal/activator TestRetiringCopyRefusedInBegin time.Sleep 1
+sleep internal/activator TestRootfsRunPollsAndStopsTheRootfsUnit time.Sleep 1
+sleep internal/activator TestRootfsWorkerStartRacesStop time.Sleep 1
+sleep internal/activator TestRootfsWorkerStopAnswers time.Sleep 1
+sleep internal/activator TestRootfsWorkerStopKeepsALingeringHandle time.Sleep 1
+sleep internal/activator TestRootfsWorkersStopAtLeaseLoss time.Sleep 1
+sleep internal/activator TestRootfsWorkersStopFirstAndProven time.Sleep 1
+sleep internal/activator TestRunCmdAfterSettledRunsOnceOnEveryPath time.Sleep 1
+sleep internal/activator TestShutdownCancelsAnInFlightRespawnInsteadOfWaiting time.Sleep 1
+sleep internal/activator TestShutdownDrainsAPendingStopThatExitsMidShutdown time.Sleep 1
+sleep internal/activator TestShutdownDrainsReleaseOps time.Sleep 4
+sleep internal/activator TestShutdownStopsARespawnFromOutlivingTheLease time.Sleep 1
+sleep internal/activator TestSidecarHADutyLifecycle time.Sleep 2
+sleep internal/activator TestSlowResidentGateNeverStallsTheSweeper time.Sleep 2
+sleep internal/activator TestStagedIdentityWakeRunsReleaseFirst time.Sleep 1
+sleep internal/activator TestStartAdmittedPreparedInputsAndRestoreOutsideProbeWindow time.Sleep 1
+sleep internal/activator TestStartGenExeFlatExecsTheRecordedFile time.Sleep 1
+sleep internal/activator TestStartStagedNeverExecsARuntimeRowOffItsPath time.Sleep 1
+sleep internal/activator TestStartupHeldRequestRefusesStaleUpstream time.Sleep 1
+sleep internal/activator TestStatelessStatefulWakeHashesOneCapture time.Sleep 1
+sleep internal/activator TestStopAndSettleDrainsBothStreams time.Sleep 1
+sleep internal/activator TestStopClosesListenersAfterDoneWithNoSecondStopCall time.Sleep 1
+sleep internal/activator TestStopScheduledAfterTheInterlockClearStillWaitsForTheShed time.Sleep 2
+sleep internal/activator TestStopWaitsOutAnInFlightRespawn time.Sleep 1
+sleep internal/activator TestStrictCleanupGivesUpButStaysRefused time.Sleep 1
+sleep internal/activator TestStrictCleanupIsRetriedAndRefusesUntilItSucceeds time.Sleep 2
+sleep internal/activator TestSuspectWindowEndReadsOnce time.Sleep 1
+sleep internal/activator TestSwapHoldReleasesItsCallerWhileTheStopIsPending time.Sleep 1
+sleep internal/activator TestSwapReleaseLeaseLossRacesTheSweep time.Sleep 2
+sleep internal/activator TestSwapWitnessAgentRestartMidSwap time.Sleep 2
+sleep internal/activator TestTTYTerminalResizesAndHangsUp time.Sleep 1
+sleep internal/activator TestTakeWithinTheWakeBound time.Sleep 1
+sleep internal/activator TestTheExecGateIsAskedAtEachCgroupStart time.Sleep 3
+sleep internal/activator TestTheExecGateIsAskedAtTheBackendsLaunchPoint time.Sleep 2
+sleep internal/activator TestThePlanCheckAtTheExecRefusesWithoutRecording time.Sleep 1
+sleep internal/activator TestTheSweepRetriesAnAttachedSessionsFailedSettle time.Sleep 1
+sleep internal/activator TestTrioPublishedWithinOneSecond time.Sleep 1
+sleep internal/activator TestUnitProcDoesNotExitOnTerminalStateWhileTheCgroupIsPopulated time.Sleep 1
+sleep internal/activator TestUnitTenantWakeServesHeldRequest time.Sleep 1
+sleep internal/activator TestUnprovenReleaseOnAnAwakeIncumbentIsRetried time.Sleep 1
+sleep internal/activator TestWakeSlotHealthWindowStartsAtAdmission time.Sleep 1
+sleep internal/activator TestWakeSlotQueuedFirstWakeStillExecsTheCandidate time.Sleep 1
+sleep internal/activator TestWakeSlotsBoundConcurrentWakes time.Sleep 1
+sleep internal/activator TestWakeWorkerWaitsOutAFirstWakeFallback time.Sleep 1
+sleep internal/activator TestWorkerCapturedBuildSurvivesARestageOfItsReusedName time.Sleep 1
+sleep internal/activator TestWorkerConvergeRespawnIsRateLimitedPerSweep time.Sleep 1
+sleep internal/activator awaitChildFile time.Sleep 1
+sleep internal/activator awaitWithdrawal time.Sleep 1
+sleep internal/activator drainAppLines time.Sleep 1
+sleep internal/activator genParentRecoveryControl time.Sleep 1
+sleep internal/activator nextTick time.Sleep 1
+sleep internal/activator pinnedSettled time.Sleep 1
+sleep internal/activator raceTicks time.Sleep 1
+sleep internal/activator readPinPaths time.Sleep 1
+sleep internal/activator retireAwait time.Sleep 1
+sleep internal/activator runLeaseService time.Sleep 1
+sleep internal/activator settle time.Sleep 1
+sleep internal/activator slowFirstCheck time.Sleep 1
+sleep internal/activator spawnFlat time.Sleep 1
+sleep internal/activator startAndReachControlSocket time.Sleep 1
+sleep internal/activator waitBackground time.Sleep 1
+sleep internal/activator waitE2E time.Sleep 1
+sleep internal/activator waitFor time.Sleep 1
+sleep internal/activator waitForFileWhere time.Sleep 1
+sleep internal/activator waitProbe time.Sleep 1
+sleep internal/activator waitUntil time.Sleep 1
+sleep internal/agentsock waitFor time.Sleep 1
+sleep internal/appconfig TestSyncExecOptedInAddrRouteMaterializesFile time.Sleep 1
+sleep internal/applog (*slowStore).Get time.Sleep 1
+sleep internal/assetcache TestEvictionRacesFillsGetsAndRetain time.Sleep 1
+sleep internal/awsmanaged TestAWSFleetKeyFailures time.Sleep 1
+sleep internal/cgroup TestGenKernelGenerationRefusedBesideAFlatMember time.Sleep 1
+sleep internal/cgroup TestShimKernelExecBeforeAcknowledgement time.Sleep 2
+sleep internal/cgroup TestStrictKernelChild time.Sleep 2
+sleep internal/cgroup TestStrictKernelSupervisor time.Sleep 1
+sleep internal/cgroup TestVerifyPlacementKernelChild time.Sleep 1
+sleep internal/cgroup exitedProbe time.Sleep 1
+sleep internal/cgroup strictKernelAwait time.Sleep 1
+sleep internal/cgroup waitShimHeld time.Sleep 1
+sleep internal/console (*channelSim).createAroundSwitchOn time.Sleep 1
+sleep internal/console (*claimCase).quiesce time.Sleep 1
+sleep internal/console (*claimCase).systemJob time.Sleep 1
+sleep internal/console (*dbFx).waitIdle time.Sleep 1
+sleep internal/console (*dbfFixture).admitWithin time.Sleep 1
+sleep internal/console (*dbfHeldWriter).Write time.Sleep 1
+sleep internal/console (*demoAPIExpiryBody).Read time.Sleep 1
+sleep internal/console (*reportCDP).wait time.Sleep 1
+sleep internal/console (*slowCountingStore).Get time.Sleep 1
+sleep internal/console (*slowGetStore).Get time.Sleep 1
+sleep internal/console (*slowStore).hold time.Sleep 1
+sleep internal/console (*syncBuffer).waitFor time.Sleep 1
+sleep internal/console (*twoConsoles).lapse time.Sleep 1
+sleep internal/console TestAPIDBNeverWritesWithoutADeadline time.Sleep 1
+sleep internal/console TestAPIPromoteRetryResignsThePointer time.Sleep 1
+sleep internal/console TestARefusedAttemptAddsNoStoreRequest time.Sleep 1
+sleep internal/console TestAnIssuedWriteLosesToTheMarkerAndRetries time.Sleep 1
+sleep internal/console TestAnalyticsMemoCoalescesConcurrentMisses time.Sleep 2
+sleep internal/console TestBackfillAppPlacementsHoldsTheAppLock time.Sleep 1
+sleep internal/console TestBackupsDoorRacesReaderStart time.Sleep 1
+sleep internal/console TestBackupsForBounds time.Sleep 1
+sleep internal/console TestCapacityCloudWatchWireAndRecovery time.Sleep 1
+sleep internal/console TestChangeAndRenewalReturnUnderTimeout time.Sleep 1
+sleep internal/console TestConcurrentSamePublish time.Sleep 1
+sleep internal/console TestConfigPutRacesReplacement time.Sleep 1
+sleep internal/console TestCopiesShipManifestBudgetStartsAfterLock time.Sleep 1
+sleep internal/console TestDBForwardMinio time.Sleep 1
+sleep internal/console TestDBReadAdmissionBounds time.Sleep 1
+sleep internal/console TestDBReadsParityWithTheInRegionDoor time.Sleep 1
+sleep internal/console TestDemoClaimDevAcceptance time.Sleep 4
+sleep internal/console TestDemoClaimOffCompatibility time.Sleep 1
+sleep internal/console TestDemoClaimTransferJobLoop time.Sleep 2
+sleep internal/console TestDemoJobsEventDispatch time.Sleep 1
+sleep internal/console TestDemoJobsIdleNoWrites time.Sleep 2
+sleep internal/console TestDemoReportBrowser time.Sleep 1
+sleep internal/console TestDemoSourceToLiveAndUpdate time.Sleep 2
+sleep internal/console TestDoorKeyResignPassCoversEveryApp time.Sleep 1
+sleep internal/console TestDoorKeyResignRefreshesExpiry time.Sleep 1
+sleep internal/console TestDoorKeyRevokeIsNotOverwrittenByARacingRenewal time.Sleep 1
+sleep internal/console TestEveryRefusalWritesOneRefusedRow time.Sleep 1
+sleep internal/console TestFailedInvalidationStillRefuses time.Sleep 1
+sleep internal/console TestFinishSeedReReadsTheStoreUnderItsLock time.Sleep 1
+sleep internal/console TestFleetBackupsMemoised time.Sleep 1
+sleep internal/console TestFleetFloorInterleavings time.Sleep 1
+sleep internal/console TestG3StatusReadersRetainUncertainRows time.Sleep 1
+sleep internal/console TestHACapacityRunner time.Sleep 1
+sleep internal/console TestHomeStartSupersededAtTheLastMoment time.Sleep 2
+sleep internal/console TestLongPollWakesOnDrain time.Sleep 1
+sleep internal/console TestMemoPanicReachesEveryReader time.Sleep 2
+sleep internal/console TestMemoWaiterHonoursItsDeadline time.Sleep 1
+sleep internal/console TestNeverPostsUnsigned time.Sleep 1
+sleep internal/console TestOwnedBindingIsRecheckedUnderTheLock time.Sleep 1
+sleep internal/console TestPDFDoorEngineTimeout time.Sleep 1
+sleep internal/console TestPDFDoorIdleClientTimeoutOrder time.Sleep 1
+sleep internal/console TestPDFDoorIdleEngineAfterClientEOF time.Sleep 3
+sleep internal/console TestPDFDoorIdleProgress time.Sleep 2
+sleep internal/console TestPDFDoorSlowDownload time.Sleep 1
+sleep internal/console TestPDFDoorSlowUpload time.Sleep 1
+sleep internal/console TestPlan9Fix1BatchRefusesContextRolledBackTransaction time.Sleep 1
+sleep internal/console TestPlan9Fix2OuterStoreInsideViewRefused time.Sleep 1
+sleep internal/console TestPlan9RollbackCASConflictIsAConflictAndNotRetried time.Sleep 1
+sleep internal/console TestPublishRacingUnlink time.Sleep 1
+sleep internal/console TestRelayLostAfterPickupEndsTheRunAsLost time.Sleep 1
+sleep internal/console TestRemoteInstancesListIgnoresPreviousTenantSample time.Sleep 1
+sleep internal/console TestRemoteInstancesListIgnoresSuccessorSample time.Sleep 2
+sleep internal/console TestRestoreAfterManagedEnrolment time.Sleep 1
+sleep internal/console TestRunRelayHoldsNoUnitAcrossACutover time.Sleep 1
+sleep internal/console TestRunRelayRequestBudget time.Sleep 1
+sleep internal/console TestSecondUploadIsRefusedBeforeItsBodyIsRead time.Sleep 1
+sleep internal/console TestSpliceAppliesBackpressure time.Sleep 1
+sleep internal/console TestStartBillingSyncPassChecksThenSyncs time.Sleep 1
+sleep internal/console TestStartScanDrainRebuildsBeforeItsFirstTick time.Sleep 1
+sleep internal/console TestStartupCheckGatesCreates time.Sleep 1
+sleep internal/console TestStoreWalkLocksExcludePerApp time.Sleep 1
+sleep internal/console TestStoreWalkLocksKeepEntryWhileWaitersQueue time.Sleep 1
+sleep internal/console TestSystemDoorsRefuseAPreLayoutMoveWhileABoxIsNested time.Sleep 2
+sleep internal/console TestSystemDoorsRefuseBelowTheFleetForwardFloor time.Sleep 3
+sleep internal/console TestSystemDoorsRefuseBelowTheRegionalFloor time.Sleep 3
+sleep internal/console TestSystemDoorsRefuseBelowTheRootfsFloor time.Sleep 3
+sleep internal/console TestSystemOperatorRollsSignedReleases time.Sleep 2
+sleep internal/console TestSystemStatusAndRollback time.Sleep 2
+sleep internal/console TestTheSessionOutlivesTheServersReadTimeout time.Sleep 2
+sleep internal/console TestTodaysFleetWithNoLayoutFieldKeepsRollbackAndUpdate time.Sleep 2
+sleep internal/console TestVerifyReaderPublishedSafely time.Sleep 1
+sleep internal/console TestWorkersLoopAcrossTheCutover time.Sleep 1
+sleep internal/console demoE2EStart time.Sleep 1
+sleep internal/console demoProtectionWait time.Sleep 1
+sleep internal/console firstRootfsShipWaitsForAnInFlightCreate time.Sleep 1
+sleep internal/console haWait time.Sleep 1
+sleep internal/console ixWaitEvents time.Sleep 1
+sleep internal/console j4Submission time.Sleep 1
+sleep internal/console newInstanceApp time.Sleep 1
+sleep internal/console package-level time.Sleep 2
+sleep internal/console perfIdle time.Sleep 1
+sleep internal/console runBox time.Sleep 1
+sleep internal/console runState time.Sleep 1
+sleep internal/console runWorkerUntilRan time.Sleep 1
+sleep internal/console slowReplica.LTXFiles time.Sleep 1
+sleep internal/console waitBillingSync time.Sleep 1
+sleep internal/console waitCount time.Sleep 1
+sleep internal/console waitFor time.Sleep 1
+sleep internal/console waitForPolicy time.Sleep 1
+sleep internal/console waitForStoreLockQueue time.Sleep 1
+sleep internal/console waitForWaiter time.Sleep 1
+sleep internal/console waitHomeStart time.Sleep 1
+sleep internal/console waitHubState time.Sleep 1
+sleep internal/console waitJob time.Sleep 1
+sleep internal/console waitMemberWaiters time.Sleep 1
+sleep internal/console waitPerfRequests time.Sleep 1
+sleep internal/console waitSecond time.Sleep 1
+sleep internal/console waitStoreProvisionQueued time.Sleep 1
+sleep internal/console waitUntilNotSweeping time.Sleep 1
+sleep internal/dbdoor TestRestoreAsOfWithSecondResolutionTimes time.Sleep 2
+sleep internal/dbdoor pause time.Sleep 2
+sleep internal/dbreads (*inProcWorkers).dial time.Sleep 2
+sleep internal/dbreads TestAProbeSkippedWhileTheUnitLingersRunsOnceItIsGone time.Sleep 1
+sleep internal/dbreads TestElectionOneOwnerAcrossTwoAgents time.Sleep 1
+sleep internal/dbreads TestProbeOnTheThirdConnection time.Sleep 1
+sleep internal/dbreads TestRunPassesOnANudge time.Sleep 2
+sleep internal/dbreads TestWorkerExitsWhenTheAgentGoesMidRestore time.Sleep 1
+sleep internal/dbreads slowPicked.Put time.Sleep 1
+sleep internal/dbreads waitFor time.Sleep 1
+sleep internal/demobuild TestMain time.Sleep 1
+sleep internal/demobuild TestRootBuildBudgetReconcile time.Sleep 2
+sleep internal/demobuild demoBuildKernelHelper time.Sleep 1
+sleep internal/demobuild rootrunnerBuild time.Sleep 1
+sleep internal/demobuild rootrunnerCaptureBuild time.Sleep 1
+sleep internal/devbox TestListDialsConcurrently time.Sleep 1
+sleep internal/domains_test TestFreshResolverTimeoutBoundsTheWholeLookup time.Sleep 1
+sleep internal/edge (*BackhaulHolderScene).CancelHeldRequest time.Sleep 1
+sleep internal/edge (*demoCDP).wait time.Sleep 1
+sleep internal/edge (*hubSim).dial time.Sleep 1
+sleep internal/edge (*markLog).want time.Sleep 1
+sleep internal/edge (*rpMover).ServeHTTP time.Sleep 1
+sleep internal/edge (*slowStore).Get time.Sleep 1
+sleep internal/edge (*wsScene).fullExchange time.Sleep 1
+sleep internal/edge (*wsScene).noHijack time.Sleep 1
+sleep internal/edge (*wsScene).waitChannel time.Sleep 1
+sleep internal/edge (*wsScene).waitServing time.Sleep 1
+sleep internal/edge TestAppSocketProxyFollowsTheCurrentGeneration time.Sleep 1
+sleep internal/edge TestAppSocketProxyWaitsForAGeneration time.Sleep 1
+sleep internal/edge TestArmDoorServesOverTheSocketAndClosesIt time.Sleep 1
+sleep internal/edge TestAwakeThrottleClosesAndRefusesUpgrades time.Sleep 1
+sleep internal/edge TestBackhaulRefusesAtInflightCap time.Sleep 1
+sleep internal/edge TestBackstopReleasesOnRequestEnd time.Sleep 1
+sleep internal/edge TestBurstNoticeBudgetAtDispatch time.Sleep 1
+sleep internal/edge TestBurstNoticeDepartedPeerStopsAtDispatch time.Sleep 1
+sleep internal/edge TestBurstPeerCurrentNeverPrunesWithAnOlderSnapshot time.Sleep 1
+sleep internal/edge TestCacheOlderSpecificVariantShadowsNewerGeneralUntilItExpires time.Sleep 1
+sleep internal/edge TestCanceledHolderDoesNotConfirmNearThreshold time.Sleep 2
+sleep internal/edge TestCertMirrorLoopBackfillsOnTheIssuer time.Sleep 2
+sleep internal/edge TestCertMirrorLoopPollsAndStops time.Sleep 1
+sleep internal/edge TestChallengeReadThroughIsSingleFlighted time.Sleep 1
+sleep internal/edge TestCloseHeldHostAtAnEventBoundary time.Sleep 1
+sleep internal/edge TestCloseIngressClosesPartialHeadersWithoutAnAnswer time.Sleep 1
+sleep internal/edge TestDemoBannerBrowser time.Sleep 2
+sleep internal/edge TestDevboxServesTheWildcardAndDrains time.Sleep 1
+sleep internal/edge TestDoorKeyMirrorRunPollsUntilStopped time.Sleep 1
+sleep internal/edge TestDrainConnectionsThroughServeHTTP time.Sleep 1
+sleep internal/edge TestEndConnectionDrainCannotUndoANewIngressDrain time.Sleep 1
+sleep internal/edge TestFirstFingerprintObservationReloads time.Sleep 1
+sleep internal/edge TestForwardDialGate time.Sleep 4
+sleep internal/edge TestHeldDialsReleaseAfterHold time.Sleep 1
+sleep internal/edge TestHeldLongLegResetsShortCount time.Sleep 2
+sleep internal/edge TestHeldPassThroughDelayedBodyNoPings time.Sleep 1
+sleep internal/edge TestHeldResumeSendsLastEventID time.Sleep 1
+sleep internal/edge TestHeldSwapReopensAtOnce time.Sleep 1
+sleep internal/edge TestHomeMapHostsAndWakeOnChange time.Sleep 3
+sleep internal/edge TestHomeMapServedSetsWaitForDNSPointing time.Sleep 1
+sleep internal/edge TestHomeMapServedWakeFiresOnACustomDomain time.Sleep 2
+sleep internal/edge TestHomeMapWildcardParents time.Sleep 1
+sleep internal/edge TestMoveHoldReleasesThroughTheFrontForward time.Sleep 1
+sleep internal/edge TestMoveTakenUpgradeStillSwitches time.Sleep 1
+sleep internal/edge TestPassedLoginOutlivesTheBodyDeadline time.Sleep 1
+sleep internal/edge TestProbedDelayedProbeServedWithinR time.Sleep 1
+sleep internal/edge TestProbedHoldSurvivesReload time.Sleep 1
+sleep internal/edge TestProberClampsNonPositiveInterval time.Sleep 1
+sleep internal/edge TestRateBackstopRefusesWithoutWake time.Sleep 1
+sleep internal/edge TestReplicaDialHoldEndsAndRefuses time.Sleep 1
+sleep internal/edge TestReplicaRequestsCrossingDrainServedBySurvivor time.Sleep 1
+sleep internal/edge TestReplicaStreamingAndUpgradeLossUpgrade time.Sleep 1
+sleep internal/edge TestReservationRacesTheSwap time.Sleep 1
+sleep internal/edge TestShutdownEndsPendingHeader time.Sleep 2
+sleep internal/edge TestSingleCopyDialHoldWaitsForRestart time.Sleep 1
+sleep internal/edge TestSlowHolderResponseIsNotAborted time.Sleep 1
+sleep internal/edge TestSlowHolderResponseIsNotAbortedAfterHeaderDisconnect time.Sleep 1
+sleep internal/edge TestStaticPeriodicSweepThroughTheHandler time.Sleep 2
+sleep internal/edge TestStreamedInitiatorIsNotReplayedAfterTheDeadline time.Sleep 1
+sleep internal/edge TestSweepLoopRunsOnItsTicker time.Sleep 1
+sleep internal/edge TestSyncReplacesChangedSpecWithoutAGap time.Sleep 1
+sleep internal/edge TestSyncStopsVanishedHosts time.Sleep 1
+sleep internal/edge TestTagCacheHashesAColdFileOnceForOverlappingRequests time.Sleep 1
+sleep internal/edge TestTrustedChildIsNeeded time.Sleep 1
+sleep internal/edge TestTunnelForwardsHoldMarkerAndSkipsCache time.Sleep 1
+sleep internal/edge TestTunnelWebSocketHubRestart time.Sleep 1
+sleep internal/edge TestTunnelWebSocketMaximumLoad time.Sleep 1
+sleep internal/edge TestTunnelledPageviewsAreCountedOnceAtTheHub time.Sleep 1
+sleep internal/edge TestWarmGateCheckIsNotPostponedByWakes time.Sleep 1
+sleep internal/edge TestWarmLoopDoesNotSpinOnADueProbeAfterLosingTheLease time.Sleep 3
+sleep internal/edge TestWarmLoopOrdersOnceAPendingHostPoints time.Sleep 1
+sleep internal/edge TestWarmWakeDuringACappedBacklogRunsNoPass time.Sleep 2
+sleep internal/edge TestWarmWakeIgnoresAHostAlreadyWaitingOnDNS time.Sleep 1
+sleep internal/edge TestWarmWakeIgnoresAHostInBackoff time.Sleep 1
+sleep internal/edge TestWarmWakeOnANonIssuerRunsNoPass time.Sleep 1
+sleep internal/edge TestWarmWakeWithNothingNewRunsNoPass time.Sleep 2
+sleep internal/edge TestWildcardRefreshIsSerialized time.Sleep 1
+sleep internal/edge demoUXBrowser time.Sleep 1
+sleep internal/edge heldReservation.swept time.Sleep 1
+sleep internal/edge heldStreamLifecycleSim time.Sleep 2
+sleep internal/edge laWaitFor time.Sleep 1
+sleep internal/edge listenLater time.Sleep 1
+sleep internal/edge moveCutTrailerRound time.Sleep 1
+sleep internal/edge replicaAwait time.Sleep 1
+sleep internal/edge runRestartWitness time.Sleep 3
+sleep internal/edge startDevboxOn time.Sleep 1
+sleep internal/edge startRetireLoad time.Sleep 1
+sleep internal/edge tickUntil time.Sleep 2
+sleep internal/edge waitChannelNot time.Sleep 1
+sleep internal/edge waitCount time.Sleep 1
+sleep internal/edge waitFor time.Sleep 1
+sleep internal/edge waitForTunnelState time.Sleep 1
+sleep internal/edge waitInFlight time.Sleep 1
+sleep internal/edge waitOpen time.Sleep 1
+sleep internal/edge waitParents time.Sleep 1
+sleep internal/edge waitServed time.Sleep 1
+sleep internal/edge waitWoke time.Sleep 1
+sleep internal/edge wantCause time.Sleep 1
+sleep internal/edge_test TestPlacementCanceledDialRealWiring time.Sleep 1
+sleep internal/edge_test TestSlowHolderResponseIsNotAbortedThroughEdge time.Sleep 1
+sleep internal/edge_test TestSlowHolderTwentySecondHeadersKeepForwarding time.Sleep 1
+sleep internal/edge_test TestTwoBoxFleetEndToEnd time.Sleep 2
+sleep internal/edge_test waitBody time.Sleep 1
+sleep internal/edge_test waitChannel time.Sleep 1
+sleep internal/edge_test waitHubSawEnd time.Sleep 1
+sleep internal/edge_test waitProbe time.Sleep 1
+sleep internal/geo TestSwappableNeverLooksUpAClosedReader time.Sleep 1
+sleep internal/grouprollaws waitGone time.Sleep 1
+sleep internal/host (*coldRootHarness).keepControlHost time.Sleep 1
+sleep internal/host (*coldRootHarness).restartSophie time.Sleep 1
+sleep internal/host (*coldRootHarness).waitLeo time.Sleep 1
+sleep internal/host (*coldRootHarness).waitReplica time.Sleep 1
+sleep internal/host (*e2eWorld).requireSourceSchedulerQuiet time.Sleep 1
+sleep internal/host (*egressUnderClaimsWitness).check time.Sleep 2
+sleep internal/host (*gvisorFixture).bisectVariant time.Sleep 1
+sleep internal/host (*gvisorFixture).exercise time.Sleep 1
+sleep internal/host (*gvisorFixture).waitFinished time.Sleep 1
+sleep internal/host (*gvisorLifecycle).guest time.Sleep 1
+sleep internal/host (*gvisorLifecycle).waitRunDead time.Sleep 1
+sleep internal/host (*ingressRootFixture).awaitServing time.Sleep 1
+sleep internal/host (*ixrTermReader).line time.Sleep 1
+sleep internal/host (*largeBoxAgent).awaitListening time.Sleep 1
+sleep internal/host (*largeBoxAgent).awaitTLS time.Sleep 1
+sleep internal/host (*largeBoxAgent).waitEvent time.Sleep 1
+sleep internal/host (*nestedBox).stop time.Sleep 1
+sleep internal/host (*poFixture).envPinGone time.Sleep 1
+sleep internal/host (*slowDoor).begin time.Sleep 1
+sleep internal/host TestAdoptionSurvivesBoxLossWithoutAnotherAdmissionOrRelease time.Sleep 1
+sleep internal/host TestAgentNoCensusShutdownBudget time.Sleep 1
+sleep internal/host TestAgentRetriesAPartialIdentity time.Sleep 1
+sleep internal/host TestAgentRewritesSelfRefUntilItStops time.Sleep 2
+sleep internal/host TestApplyAsksNoIngressDrainWhenItWillNotRestartTheEdge time.Sleep 1
+sleep internal/host TestApplyStaleTupleIsRefusedAgainstTheRequestsTuple time.Sleep 1
+sleep internal/host TestArmAlwaysRecordsTheServingVersion time.Sleep 1
+sleep internal/host TestArmScheduleFiresOnceTimersWithNoDeployStore time.Sleep 1
+sleep internal/host TestCanaryPointerReadWhenTheTicksIndexPollFails time.Sleep 1
+sleep internal/host TestCapturedEnvPinLivesWithItsWake time.Sleep 1
+sleep internal/host TestClaimAckRefreshProductionClient time.Sleep 1
+sleep internal/host TestColdPlacementRootAgent time.Sleep 1
+sleep internal/host TestColdPlacementRootRunner time.Sleep 2
+sleep internal/host TestConvergeLegCyclesARootAdoptedInstanceOnARealActivator time.Sleep 1
+sleep internal/host TestCoordinatorFleetTransientRenewal time.Sleep 3
+sleep internal/host TestCoordinatorHangingConsoleDoesNotDelayFastTick time.Sleep 1
+sleep internal/host TestDeclaresPrefixBeforeBindIsUnknown time.Sleep 2
+sleep internal/host TestDeclaresPrefixFailedReadIsNotRetriedAtOnce time.Sleep 2
+sleep internal/host TestDeclinedBoxKeepsAHeldBuildOffARealActivator time.Sleep 1
+sleep internal/host TestDeclinedBoxRefusesAHeldBuildAtLaunch time.Sleep 1
+sleep internal/host TestDeclinedBoxRefusesAHeldCapturedIdentityAtLaunch time.Sleep 1
+sleep internal/host TestDeliveryDoesNotHoldTheInstanceAwake time.Sleep 1
+sleep internal/host TestDepartureAckDoesNotBlockRecord time.Sleep 1
+sleep internal/host TestDepartureInventoryNudgeCoalesces time.Sleep 1
+sleep internal/host TestDispatchSidecarWakesBoundsConcurrency time.Sleep 1
+sleep internal/host TestDrainReleaseLogCatchesEveryUncleanStop time.Sleep 1
+sleep internal/host TestDrainRerunJoinsTheRunningMove time.Sleep 1
+sleep internal/host TestDrainWaitsForQuiescence time.Sleep 1
+sleep internal/host TestFirstArmingWaitsForTheActivationLock time.Sleep 1
+sleep internal/host TestFleetOwnerCheckCoalescesConcurrentMisses time.Sleep 2
+sleep internal/host TestGroupMetricChronyHelper time.Sleep 1
+sleep internal/host TestHADrainWaitPublished time.Sleep 2
+sleep internal/host TestHADutyBeforeEveryProducer time.Sleep 1
+sleep internal/host TestHairpinAdmissionSynchronization time.Sleep 1
+sleep internal/host TestHeldHandoverLostLeaseMinio time.Sleep 1
+sleep internal/host TestHeldHandoverTwoBoxMinio time.Sleep 1
+sleep internal/host TestHousekeeperStopReleasesTheLeaseAndReturns time.Sleep 1
+sleep internal/host TestInstallRenameWaitsForTheFloorLock time.Sleep 1
+sleep internal/host TestInteractiveWorkerBridgesAndEndsAfterTheLastOutput time.Sleep 1
+sleep internal/host TestInteractiveWorkerEndWaitsForTheSettlement time.Sleep 1
+sleep internal/host TestInteractiveWorkerHangsUpThenStops time.Sleep 1
+sleep internal/host TestInteractiveWorkerKeepsAnExitThatCameFirst time.Sleep 1
+sleep internal/host TestInteractiveWorkerKeystrokesResetTheIdleTimer time.Sleep 1
+sleep internal/host TestInteractiveWorkerLaunchErrorWaitsForTheSettlement time.Sleep 2
+sleep internal/host TestLinkLoopFollowsRegistry time.Sleep 1
+sleep internal/host TestMovesHoldsAreMainWithTheSwitchOff time.Sleep 1
+sleep internal/host TestOfflineSealHappyPath time.Sleep 1
+sleep internal/host TestOfflineSealerRefreshNeverRenewsTheTombstone time.Sleep 1
+sleep internal/host TestOfflineStageRoundDeletesNothingOnceTheMoveLeftStaging time.Sleep 1
+sleep internal/host TestPlan11Rev3ObservesRealInitTenant time.Sleep 1
+sleep internal/host TestPlan14GenerationBackendUnitPayload time.Sleep 1
+sleep internal/host TestPlan14GenerationContainedRunningRootRunner time.Sleep 1
+sleep internal/host TestPlan14GenerationRunningTenantPinRootRunner time.Sleep 1
+sleep internal/host TestPlan14LifecycleControlProcessPayload time.Sleep 1
+sleep internal/host TestRecoveryAnswersTheInterruptedPromoteNotTheRePromote time.Sleep 1
+sleep internal/host TestRegistryEgressSourceWritesNothing time.Sleep 1
+sleep internal/host TestRelayWorkerStartsNothingBeforeThePickupAck time.Sleep 2
+sleep internal/host TestRestoreWaitsForTheFloorLock time.Sleep 1
+sleep internal/host TestRetentionLoopIsAPlatformBoxJob time.Sleep 1
+sleep internal/host TestRootDBReadAdmissionWithRealUnits time.Sleep 1
+sleep internal/host TestRootDBReadPayload time.Sleep 6
+sleep internal/host TestRootEgressFlatProcessFalsifiedRow time.Sleep 1
+sleep internal/host TestRootEgressKernelProof time.Sleep 3
+sleep internal/host TestRootExecStopProbe time.Sleep 5
+sleep internal/host TestRootG2LostLeaseResponses time.Sleep 3
+sleep internal/host TestRootG2PoolIngress time.Sleep 1
+sleep internal/host TestRootGVisorClaimSnapshot time.Sleep 2
+sleep internal/host TestRootGVisorModeDrain time.Sleep 1
+sleep internal/host TestRootGVisorOOM time.Sleep 1
+sleep internal/host TestRootHATerminateRelease time.Sleep 1
+sleep internal/host TestRootIngressDrainOrderAutoRestart time.Sleep 1
+sleep internal/host TestRootIngressDrainOrderRestart time.Sleep 1
+sleep internal/host TestRootIngressDrainOrderVerbAsk time.Sleep 1
+sleep internal/host TestRootInstanceStopExecStop time.Sleep 5
+sleep internal/host TestRootRebootClaimUnitMigrationPhase1 time.Sleep 1
+sleep internal/host TestRootRebootClaimUnitMigrationPhase2 time.Sleep 1
+sleep internal/host TestRootRebootIngressDrainOrderPhase1 time.Sleep 1
+sleep internal/host TestRootRunnerNestedUnitsAreSampled time.Sleep 3
+sleep internal/host TestRootSandboxUpdateFromOldBox time.Sleep 5
+sleep internal/host TestRootSyscallFilterRuntimes time.Sleep 1
+sleep internal/host TestRunCancelledAfterLaunch time.Sleep 1
+sleep internal/host TestRunInterruptedWhileItsStopIsRetriedEndsAt125 time.Sleep 1
+sleep internal/host TestRunSeesACancelByRereadingTheRecord time.Sleep 1
+sleep internal/host TestRunscRetryBackoff time.Sleep 1
+sleep internal/host TestScheduledTickWakesASleepingInstanceAndItHibernatesAgain time.Sleep 3
+sleep internal/host TestSidecarHADepartureRootLifecycle time.Sleep 2
+sleep internal/host TestSidecarWakeLegAfterAnAgentRestartReplaysNothing time.Sleep 1
+sleep internal/host TestSleepingInstanceRearmsItsNextDeliveryBeforeReturning time.Sleep 3
+sleep internal/host TestStatelessStatefulRealDeclarationRecoveryAndConfigSwap time.Sleep 1
+sleep internal/host TestSystemLegRetouchesUntilRootAnswers time.Sleep 2
+sleep internal/host TestT7WaitsOutAPublicationsRollback time.Sleep 1
+sleep internal/host TestTerminationInboxCapRestart time.Sleep 1
+sleep internal/host TestTerminationWorkerIndependentOfQueue time.Sleep 1
+sleep internal/host TestTheRelayLoopTicksAndStopsWithTheContext time.Sleep 2
+sleep internal/host TestTheWorkerServingWriteIsCheapAndKeepsTheNewest time.Sleep 1
+sleep internal/host TestTwoBoxFleetEndToEnd_RealLostBox time.Sleep 1
+sleep internal/host TestWorkerBootPassWakesConcurrently time.Sleep 1
+sleep internal/host awaitApplyLockFree time.Sleep 1
+sleep internal/host coldRootProductionWiring time.Sleep 1
+sleep internal/host coldRootSealedWake time.Sleep 1
+sleep internal/host dbreadWaitFor time.Sleep 1
+sleep internal/host dbreadsTestWorker time.Sleep 1
+sleep internal/host departureRootThird time.Sleep 1
+sleep internal/host departureRootWait time.Sleep 1
+sleep internal/host egressFlatAgent time.Sleep 1
+sleep internal/host egressHoldsAfterSize time.Sleep 1
+sleep internal/host egressServingBy time.Sleep 1
+sleep internal/host egressStandInAgent time.Sleep 1
+sleep internal/host egressTargetNetnsAt time.Sleep 2
+sleep internal/host egressUnitTenant time.Sleep 1
+sleep internal/host egressWithin time.Sleep 1
+sleep internal/host g2LossNoDemand time.Sleep 3
+sleep internal/host g2LossSlow time.Sleep 7
+sleep internal/host g2PeerEvidence time.Sleep 1
+sleep internal/host g2Tenant time.Sleep 1
+sleep internal/host g2Wait time.Sleep 1
+sleep internal/host g2WaitPeer time.Sleep 1
+sleep internal/host gvisorCaptureUnit time.Sleep 1
+sleep internal/host hairpinAgentWait time.Sleep 1
+sleep internal/host hairpinKernelWitness time.Sleep 1
+sleep internal/host hairpinMaintenanceRestart time.Sleep 1
+sleep internal/host ingressRootAwaitAdmission time.Sleep 1
+sleep internal/host ingressRootAwaitDrainActive time.Sleep 1
+sleep internal/host ingressRootWatchDepartures time.Sleep 1
+sleep internal/host init time.Sleep 2
+sleep internal/host instanceStopTenant time.Sleep 1
+sleep internal/host ixrPayload time.Sleep 2
+sleep internal/host ixrRootfsRun time.Sleep 1
+sleep internal/host lifecycleAgent time.Sleep 7
+sleep internal/host lifecycleAgentReinstall time.Sleep 1
+sleep internal/host lifecycleCrashDiagnostic time.Sleep 1
+sleep internal/host lifecycleLaunch time.Sleep 1
+sleep internal/host lifecycleReinstall time.Sleep 1
+sleep internal/host lifecycleRun time.Sleep 1
+sleep internal/host lifecycleStartAgent time.Sleep 2
+sleep internal/host lifecycleVerifyRetiredPins time.Sleep 1
+sleep internal/host linkWait time.Sleep 1
+sleep internal/host newColdRootHarness time.Sleep 1
+sleep internal/host plan14InstalledClaimLaunch time.Sleep 2
+sleep internal/host privateTmpGone time.Sleep 1
+sleep internal/host replicaHealthFixture time.Sleep 1
+sleep internal/host replicaHostWait time.Sleep 1
+sleep internal/host rootFilesSeedLifetime time.Sleep 1
+sleep internal/host round time.Sleep 1
+sleep internal/host runLargeBoxAgent time.Sleep 1
+sleep internal/host statefulToStatelessSwitch time.Sleep 3
+sleep internal/host statelessReleaseHeldProductionWiring time.Sleep 2
+sleep internal/host terminateRootLaunch time.Sleep 1
+sleep internal/host testColdPlacementRequestBudget time.Sleep 1
+sleep internal/host testHAIngressStartupForwards time.Sleep 1
+sleep internal/host testLargeBoxColdControl time.Sleep 2
+sleep internal/host testPoolWithdrawalLiveAgentTicks time.Sleep 2
+sleep internal/host waitDeclared time.Sleep 1
+sleep internal/host waitDrives time.Sleep 1
+sleep internal/host waitFor time.Sleep 1
+sleep internal/host waitForCond time.Sleep 1
+sleep internal/host waitForTunnelState time.Sleep 1
+sleep internal/host waitInventoryRound time.Sleep 1
+sleep internal/host waitSocket time.Sleep 1
+sleep internal/host waitUntil time.Sleep 1
+sleep internal/host withSuspectMetricBackend time.Sleep 1
+sleep internal/hostbox TestPlan9Fix1StopInventoryOpenWaitsForBusyDatabase time.Sleep 1
+sleep internal/hostexec until time.Sleep 1
+sleep internal/hostfiles TestPlatformRelayStagesTheLatestBodyWithoutBlockingItsCaller time.Sleep 2
+sleep internal/hostfiles TestRunPublishesATouchedFileAfterTheDeadline time.Sleep 1
+sleep internal/hostfiles TestRunRepairsAtMostOncePerPollAndLogsTheTransitionOnce time.Sleep 1
+sleep internal/hostfiles TestRunRescansOnOverflow time.Sleep 1
+sleep internal/hostfiles TestRunRetriesAFailingScanOncePerPollAndLogsItOnce time.Sleep 1
+sleep internal/hostfiles TestRunScansOnceAfterARepairThenStopsPolling time.Sleep 2
+sleep internal/hostfiles TestRunSkipsAPathPastTheCapAndLogsItOnce time.Sleep 1
+sleep internal/hostfiles TestWatcherSeesAFileInADirectoryCreatedAfterItStarted time.Sleep 1
+sleep internal/hostfiles eventually time.Sleep 1
+sleep internal/instancectl TestALegacyStartDelayedPastItsCancellationNeverSubmitsAfterAStop time.Sleep 2
+sleep internal/instancectl TestAStartWhoseRequestEndsWhileWaitingForTheLockLaysNothingOut time.Sleep 2
+sleep internal/instancectl TestAStuckJoinDelaysNoOtherHost time.Sleep 1
+sleep internal/instancectl TestAStuckStopAnswersAndTheNextStopDoesNotHang time.Sleep 1
+sleep internal/instancectl TestAnEndedRequestTakesNoHoldAndLaysNothingOut time.Sleep 2
+sleep internal/instancectl TestCmdStatusLongPollsUntilDone time.Sleep 1
+sleep internal/instancectl TestDemoClaimSnapshotDescendant time.Sleep 1
+sleep internal/instancectl TestDemoClaimSnapshotHostileHelper time.Sleep 1
+sleep internal/instancectl TestDemoClaimSnapshotSoftInitialization time.Sleep 1
+sleep internal/instancectl TestOtherVerbsPassThroughDuringALegacyStop time.Sleep 1
+sleep internal/instancectl TestSizeSerializesWithOtherSliceWrites time.Sleep 1
+sleep internal/instancectl TestTTYAndCmdLocksAreSeparate time.Sleep 1
+sleep internal/instancectl TestTTYStatusLongPoll time.Sleep 1
+sleep internal/instanceexec TestInitReapsOrphans time.Sleep 1
+sleep internal/instanceexec TestStopMainContinuesAStoppedMain time.Sleep 1
+sleep internal/instanceexec TestStopMainRefusesAnotherCgroup time.Sleep 1
+sleep internal/instanceexec TestTTYTenantOwnsTheTerminal time.Sleep 2
+sleep internal/instanceexec init time.Sleep 1
+sleep internal/instanceexec rootrunnerLifecycleGuest time.Sleep 1
+sleep internal/instanceexec runHelper time.Sleep 4
+sleep internal/instanceexec startInit time.Sleep 1
+sleep internal/instanceexec stopChild time.Sleep 1
+sleep internal/interactive TestDialRefusalCarriesStatusAndBody time.Sleep 1
+sleep internal/interactive TestReceiveRefusesTruncatedFrames time.Sleep 1
+sleep internal/lease TestAcquireDeadlineStartsBeforeRemoteRequest time.Sleep 1
+sleep internal/lease TestAcquireLateSuccessGrantsNoHandle time.Sleep 1
+sleep internal/lease TestAnOwedReleaseIsRetiredOnceItsRecordHasExpired time.Sleep 1
+sleep internal/lease TestBlockedRenewalDeadlinePrecedesTakeover time.Sleep 1
+sleep internal/lease TestDarkHostCannotReclaimAfterFailover time.Sleep 1
+sleep internal/lease TestHealthyReleaseDoesNotSignalLost time.Sleep 1
+sleep internal/lease TestMirrorPrefixAReceiptsReadNeverBlocksTheFirstFailure time.Sleep 2
+sleep internal/lease TestMirrorPrefixParallelMatchesSerial time.Sleep 1
+sleep internal/lease TestPauseGapLatchesLossWithoutRenewing time.Sleep 1
+sleep internal/lease TestPauseLimitKeepsAHealthyHolder time.Sleep 1
+sleep internal/lease TestPausedHolderDoesNotRenewOnResume time.Sleep 3
+sleep internal/lease TestRenewAttemptDeadlineSpentBeforeWrite time.Sleep 1
+sleep internal/lease TestRenewAttemptStall time.Sleep 1
+sleep internal/lease TestRenewDeadlineStartsBeforeRemoteRequest time.Sleep 2
+sleep internal/lease TestRenewalExpiryStartsAtItsCheck time.Sleep 2
+sleep internal/lease TestRootPausedHolderStopWitness time.Sleep 2
+sleep internal/lease TestRootRenewalAgainstRealS3 time.Sleep 1
+sleep internal/lease pausedHolderChild time.Sleep 2
+sleep internal/lease pausedWitnessChild time.Sleep 1
+sleep internal/lease waitDescriptors time.Sleep 1
+sleep internal/lease_test TestCheckpointReplicatorWritesOnlyL0AndTheLease time.Sleep 1
+sleep internal/lease_test TestFailedMarkerIsAnObligationExpiryNeverDischarges time.Sleep 1
+sleep internal/lease_test TestNoReplicaWriteAfterTheMarker time.Sleep 1
+sleep internal/lease_test TestStagingMirrorSignsOnlyAtSignAt time.Sleep 1
+sleep internal/lease_test TestUnsettledMarkerIsHeldForALeaseTerm time.Sleep 1
+sleep internal/lease_test TestUnsettledMarkerKeepsALateWriteOutOfTheSuccessorsHistory time.Sleep 1
+sleep internal/lease_test TestWriteFenceFiresAfterAnEarlierLoss time.Sleep 1
+sleep internal/lease_test TestWriteFenceReleaseKeepsItsDeadlineBehindAHungUpload time.Sleep 2
+sleep internal/lease_test TestWriteFenceTripsWithFailingUploads time.Sleep 1
+sleep internal/lease_test delayPutAck time.Sleep 1
+sleep internal/mailer TestMailerConcurrencyLimit time.Sleep 1
+sleep internal/mailer TestMailerPerSenderInFlight time.Sleep 2
+sleep internal/mailer TestMailerThirdSendWaitsForASlot time.Sleep 1
+sleep internal/mailsubmit TestSocketForwarderErrors time.Sleep 1
+sleep internal/maintenanceexec TestBlockedIOOverflowFailureAndLeaseLoss time.Sleep 1
+sleep internal/maintenanceexec TestChildFixture time.Sleep 2
+sleep internal/maintenanceexec TestExpiredLeaseStillTerminatesProcess time.Sleep 1
+sleep internal/moves/archive TestVerifyReleasesTheProducerOnEarlyMismatch time.Sleep 1
+sleep internal/ops TestWriteMemoryDropInSizesFromTheConfigUnderTheLock time.Sleep 1
+sleep internal/pageindex (*sim).pause time.Sleep 1
+sleep internal/perf_test TestLateSpanDoesNotTouchRecordedSample time.Sleep 1
+sleep internal/perf_test TestPanicIsRecordedAndReraised time.Sleep 1
+sleep internal/perf_test TestServerTimingCarriesAppAndSpans time.Sleep 1
+sleep internal/perf_test TestTimeDoerSpanCoversASlowBody time.Sleep 2
+sleep internal/perf_test TestTimeDoerSpansAndCountsEachCall time.Sleep 1
+sleep internal/provision (*appOverlapStore).Get time.Sleep 1
+sleep internal/provision (*overlapStore).Get time.Sleep 1
+sleep internal/proxyproto TestCloseDuringPendingParse time.Sleep 1
+sleep internal/proxyproto TestTrustedCallerDeadlineSurvivesParse time.Sleep 1
+sleep internal/proxyproto TestTrustedHeaderDeadlineCleared time.Sleep 1
+sleep internal/proxyproto TestTrustedHeaderDeadlineFromAccept time.Sleep 1
+sleep internal/registrar/openprovider_test TestRegisterTimeoutIsIndeterminate time.Sleep 1
+sleep internal/registry TestClaimReviewTimerWritersWaitForOtherConnection time.Sleep 1
+sleep internal/relay TestServeEndsAllocationsOnDisable time.Sleep 1
+sleep internal/relay TestServeHeartbeatIsHonestAboutAFailedRead time.Sleep 1
+sleep internal/relay TestServeWritesHeartbeatAndStops time.Sleep 1
+sleep internal/relay TestWatchMastersReloadsOnChange time.Sleep 1
+sleep internal/relay waitFor time.Sleep 1
+sleep internal/relay waitHeartbeat time.Sleep 1
+sleep internal/release TestARepeatOrRetryNeverCreatesARecord time.Sleep 1
+sleep internal/release TestConcurrentRetriesNeverShareAStamp time.Sleep 1
+sleep internal/release TestDigestMarkerLifecycle time.Sleep 1
+sleep internal/release TestFileSHA256CachedSeesEveryChange time.Sleep 1
+sleep internal/release TestPlan14ReleaseExclusionWaitBudget time.Sleep 1
+sleep internal/release TestPromoteRetryRenewsPromotedAt time.Sleep 1
+sleep internal/release TestRetryCopiesTheHeadDigest time.Sleep 1
+sleep internal/release TestSignSystemIdentityPublishesCreateOnly time.Sleep 1
+sleep internal/release TestSystemPromoteKeepsWholeReleaseInHistoryAndRollbackRestoresIt time.Sleep 2
+sleep internal/release TestVerifyStagedStillRefusesAChangedCopy time.Sleep 1
+sleep internal/release TestWriteKeepsAnIdenticalRecordAndReplacesAnother time.Sleep 1
+sleep internal/rollout (*lockProbe).check time.Sleep 1
+sleep internal/rollout TestAConfigDeliveredToASleeperClearsTheOlderPendingAttempt time.Sleep 1
+sleep internal/rollout TestACrashedReleaseRecoversAsABinaryAttemptDoes time.Sleep 1
+sleep internal/rollout TestAFailedCanaryHaltsTheCohort time.Sleep 1
+sleep internal/rollout TestAFailedConfigAttemptBacksOffWithItsRowUnreadable time.Sleep 1
+sleep internal/rollout TestAFailedConfigAttemptRetriesWithBackoff time.Sleep 1
+sleep internal/rollout TestAReleaseOntoTheServingBuildMakesNoSwap time.Sleep 1
+sleep internal/rollout TestARetryAllowanceComesBackOnlyWhenNothingRan time.Sleep 1
+sleep internal/rollout TestARetryAllowanceIsSpentWhenAWorkerAttemptMayHaveRun time.Sleep 1
+sleep internal/rollout TestASleepersConfigNeedsNoAttempt time.Sleep 1
+sleep internal/rollout TestASleepersPendingConfigIsNoAttemptAfterItWakes time.Sleep 1
+sleep internal/rollout TestAcksAreWrittenNewestLastPerHost time.Sleep 1
+sleep internal/rollout TestAnAbandonedAttemptStillNewestWaitsBeforeItRunsAgain time.Sleep 1
+sleep internal/rollout TestAnInstallDuringAnUnstableEntryStillSupersedes time.Sleep 1
+sleep internal/rollout TestCloseJoinsACoalescedWorkerAttempt time.Sleep 2
+sleep internal/rollout TestCloseJoinsAPlannedWakeWhoseEventArrivesAfterShutdown time.Sleep 1
+sleep internal/rollout TestCloseJoinsAnAttemptCancelledByShutdown time.Sleep 2
+sleep internal/rollout TestClosingTheAckWriterWritesWhatIsPending time.Sleep 2
+sleep internal/rollout TestReplicaSwapUnknownHaltsUntilProof time.Sleep 1
+sleep internal/rollout TestReplicaSwapUnknownHaltsWithoutOutcome time.Sleep 1
+sleep internal/rollout TestRetryHostRunsACanaryThroughAHalt time.Sleep 1
+sleep internal/rollout TestSimSeedsEndTheirGoroutines time.Sleep 1
+sleep internal/rollout settle time.Sleep 2
+sleep internal/rollout waitFor time.Sleep 1
+sleep internal/rootaws TestOneSlowChunkInOneReadSucceeds time.Sleep 1
+sleep internal/rootaws TestPausingReaderSucceeds time.Sleep 1
+sleep internal/rootaws TestTrickleBodySucceeds time.Sleep 1
+sleep internal/runs TestChunkerFlushesOnTheTickAndAtTheSizeLimit time.Sleep 1
+sleep internal/runs TestChunkerGivesUpWhenItsContextEnds time.Sleep 1
+sleep internal/runs TestChunkerRejoinsEachStreamWhenBothWriteAtOnce time.Sleep 1
+sleep internal/runs TestChunkerReportsTheLastSeqThatLanded time.Sleep 1
+sleep internal/schedule TestBusyHostDoesNotStarveAnotherHostsTimer time.Sleep 1
+sleep internal/schedule TestHostGateDrainWaitsForInFlightWork time.Sleep 1
+sleep internal/schedule TestOneSlowHostDoesNotBlockTheOthersOrRefire time.Sleep 1
+sleep internal/sim/litestreamfacts TestFact_R5_1_L0ExpiryAndAFreshBox time.Sleep 1
+sleep internal/sim/litestreamfacts TestFact_R5_3_SnapshotRetention time.Sleep 2
+sleep internal/sim/litestreamfacts TestGate_AnchoredLineageThroughStore time.Sleep 2
+sleep internal/sim/litestreamfacts waitFor time.Sleep 1
+sleep internal/termfence TestConfirmConcurrentCallersShareOneDescribe time.Sleep 1
+sleep internal/termfence TestConfirmConcurrentFirstCallsBuildOneClient time.Sleep 1
+sleep internal/termfence TestConfirmLeaderCancellation time.Sleep 1
+sleep internal/tunnelclient TestLoopDrain time.Sleep 1
+sleep scripts/stateless-replicas-drill TestReplicaDrillInput time.Sleep 1
+db-no-context cmd/moveprobe (*app).fired (*sql.DB).Exec 1
+db-no-context cmd/moveprobe (*app).handleArmOnce (*sql.DB).QueryRow 1
+db-no-context cmd/moveprobe (*app).meta (*sql.DB).QueryRow 1
+db-no-context cmd/moveprobe (*app).settleFileKey (*sql.DB).Exec 1
+db-no-context cmd/moveprobe (*app).settlePlatformKey (*sql.DB).Exec 1
+db-no-context cmd/moveprobe boot (*sql.DB).Exec 1
+db-no-context cmd/moveprobe insertSeq (*sql.DB).Exec 1
+db-no-context internal/activator buildEmptySQLiteDB (*sql.DB).Exec 1
+db-no-context internal/activator buildEmptySQLiteDB (*sql.DB).QueryRow 1
+db-no-context internal/console (*Server).advancePurchaseEffects console.sqlHandle.Exec 1
+db-no-context internal/console (*Server).registeredPurchase console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).ARRSnapshots console.sqlHandle.Query 1
+db-no-context internal/console (*Store).AcceptInvite console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).AccountAnyBySqid console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).AccountByID console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).AccountBySqid console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).AccountCLITokens console.sqlHandle.Query 1
+db-no-context internal/console (*Store).AccountDays console.sqlHandle.Query 1
+db-no-context internal/console (*Store).AccountPlan console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).AccountTiers console.sqlHandle.Query 1
+db-no-context internal/console (*Store).Accounts console.sqlHandle.Query 1
+db-no-context internal/console (*Store).AccountsFor console.sqlHandle.Query 1
+db-no-context internal/console (*Store).AccountsPage console.sqlHandle.Query 1
+db-no-context internal/console (*Store).AccountsPage console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).AddAlertConnectorVerify console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).AddDomainRegistration console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).AddMember console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).AdoptManifestOwner (*sql.Tx).Exec 1
+db-no-context internal/console (*Store).AdoptManifestOwner (*sql.Tx).QueryRow 1
+db-no-context internal/console (*Store).AdoptManifestOwner console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).AdoptOrphanedSending console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).AlertConnector console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).AlertConnectorTarget console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).AlertConnectors console.sqlHandle.Query 1
+db-no-context internal/console (*Store).AlertCutover (*sql.Tx).Exec 1
+db-no-context internal/console (*Store).AlertCutover (*sql.Tx).QueryRow 1
+db-no-context internal/console (*Store).AlertCutover console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).AlertIncidentRuleOff console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).AlertRuleNoise console.sqlHandle.Query 1
+db-no-context internal/console (*Store).AlertRuleSettings console.sqlHandle.Query 2
+db-no-context internal/console (*Store).AlertSeen console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).AlertStepInputs console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).AlertStepInputs console.sqlHandle.Query 2
+db-no-context internal/console (*Store).AlertUnsubscribes console.sqlHandle.Query 1
+db-no-context internal/console (*Store).AppAccounts console.sqlHandle.Query 1
+db-no-context internal/console (*Store).AppCount console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).AppFlags console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).AppLife console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).AppNameState console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).AppRegion console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).AppRows console.sqlHandle.Query 1
+db-no-context internal/console (*Store).ApproveCLIAuth console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).ApproveLinkAuth console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).AppsFor console.sqlHandle.Query 1
+db-no-context internal/console (*Store).AppsIn console.sqlHandle.Query 1
+db-no-context internal/console (*Store).AppsIncludingTrashIn console.sqlHandle.Query 1
+db-no-context internal/console (*Store).AppsWithActionSince console.sqlHandle.Query 1
+db-no-context internal/console (*Store).BackfillOpsMemberships (*sql.Tx).Exec 2
+db-no-context internal/console (*Store).BackfillOpsMemberships (*sql.Tx).Query 3
+db-no-context internal/console (*Store).BackfillOpsMemberships console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).BeginAllocation console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).BeginBillingOp (*sql.Tx).Exec 2
+db-no-context internal/console (*Store).BeginBillingOp (*sql.Tx).QueryRow 1
+db-no-context internal/console (*Store).BeginBillingOp console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).BeginBillingRetirement console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).BeginCancellingRetirement (*sql.Tx).Exec 2
+db-no-context internal/console (*Store).BeginCancellingRetirement console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).BeginMigration console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).BeginRetirement console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).BillingFacts console.sqlHandle.Query 1
+db-no-context internal/console (*Store).BillingFunnel console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).BillingHouse console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).BillingProblem console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).BillingProblems console.sqlHandle.Query 1
+db-no-context internal/console (*Store).BillingRetiring console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).BillingRetiring console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).BindClaimAppIdentity console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).BindClaimAppOperation console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).CLIAuthByUserCode console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).CLIPrincipal console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).CLIPrincipal console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).CLITokenAddress console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).CLITokenAddress console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).CLITokens console.sqlHandle.Query 1
+db-no-context internal/console (*Store).CapStates console.sqlHandle.Query 1
+db-no-context internal/console (*Store).ClaimAppID console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).ClearLapse console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).ClearLaunchSponsorship console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).ClearStepUp console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).CloseBillingProblem console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).CloseBillingProblemsByReason console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).CommitAlertStep (*sql.Tx).Exec 1
+db-no-context internal/console (*Store).CommitAlertStep console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).CompleteGettingStarted console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).CompleteGettingStarted console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).ConfirmAlertConnector console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).ConfirmAlertConnectorByToken (*sql.Tx).Exec 3
+db-no-context internal/console (*Store).ConfirmAlertConnectorByToken (*sql.Tx).QueryRow 1
+db-no-context internal/console (*Store).ConfirmAlertConnectorByToken console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).ConfirmChange (*sql.Tx).Exec 1
+db-no-context internal/console (*Store).ConfirmChange console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).ConfirmMoveLog console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).ConvertRetirementKind console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).CountPendingInvites console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).CreateAccount (*sql.Tx).Exec 2
+db-no-context internal/console (*Store).CreateAccount console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).CreateConfirmation console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).CreateDomainPurchase console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).CreateEmailChallenge console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).CreateInvite console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).CreateSessionVia console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).DeferConnectorOutbox console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).DeleteAccount (*sql.Tx).Exec 3
+db-no-context internal/console (*Store).DeleteAccount (*sql.Tx).QueryRow 1
+db-no-context internal/console (*Store).DeleteAccount console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).DeleteAlertConnector console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).DeleteCapState console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).DeleteChange (*sql.Tx).Exec 2
+db-no-context internal/console (*Store).DeleteChange console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).DeleteRevokedOperatorConnector (*sql.Tx).Exec 1
+db-no-context internal/console (*Store).DeleteRevokedOperatorConnector console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).DeleteSession console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).DenyCLIAuth console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).DiscoverableBillingAccounts console.sqlHandle.Query 1
+db-no-context internal/console (*Store).DomainContact console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).DomainPurchase console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).DoorKeyApps console.sqlHandle.Query 1
+db-no-context internal/console (*Store).DropLegacyMailCounts console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).DropOutbox console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).DropUnconfirmedMoveLog console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).DueOutbox console.sqlHandle.Query 1
+db-no-context internal/console (*Store).EdgeProofSeen console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).EndBillingDiscovery (*sql.Tx).Exec 2
+db-no-context internal/console (*Store).EndBillingDiscovery console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).EndBillingDiscovery console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).EndBillingRetirement console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).EnsureAccount (*sql.Tx).Exec 1
+db-no-context internal/console (*Store).EnsureAccount console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).EnsureDefaultPlans console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).EnsureUser console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).Events console.sqlHandle.Query 1
+db-no-context internal/console (*Store).FinishOutbox (*sql.Tx).Exec 1
+db-no-context internal/console (*Store).FinishOutbox (*sql.Tx).QueryRow 1
+db-no-context internal/console (*Store).FinishOutbox console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).FinishOutbox console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).FinishRestoreRow console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).FirstSnapshotDay console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).FlagRestoreCheck (*sql.Tx).QueryRow 1
+db-no-context internal/console (*Store).FlagRestoreCheck console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).FreshStepUp console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).GettingStartedMarks console.sqlHandle.Query 1
+db-no-context internal/console (*Store).GrantAt console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).GrantToken console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).HasApp console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).HasAppIn console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).HasOwners console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).HasPayment console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).HasTrashedAppIn console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).HoldConnectorOutbox console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).HoldEmailChallenge (*sql.Tx).QueryRow 1
+db-no-context internal/console (*Store).HoldEmailChallenge console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).HoldMoveLog console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).InteractiveEndRecorded console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).IsOperator console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).LapseItems console.sqlHandle.Query 1
+db-no-context internal/console (*Store).LastAccount console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).LastIncarnation console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).LatestEURRates console.sqlHandle.Query 1
+db-no-context internal/console (*Store).LatestEURRates console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).LifetimeHosts console.sqlHandle.Query 1
+db-no-context internal/console (*Store).LinkedApps console.sqlHandle.Query 1
+db-no-context internal/console (*Store).LinksForAccount console.sqlHandle.Query 1
+db-no-context internal/console (*Store).LiveAppCount console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).LiveAppsCreated console.sqlHandle.Query 1
+db-no-context internal/console (*Store).LiveBillingAccounts console.sqlHandle.Query 1
+db-no-context internal/console (*Store).LiveDomainPurchases console.sqlHandle.Query 1
+db-no-context internal/console (*Store).LiveEmailChallenge console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).LivePlacesNamed console.sqlHandle.Query 1
+db-no-context internal/console (*Store).MarkBillingDiscovery console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).MarkClaimAppRetired console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).MarkConnectorNeedsReentry console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).MarkEdgeProofSeen console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).MarkExecuted console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).MarkLapse console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).MarkOpApplied (*sql.Tx).Exec 1
+db-no-context internal/console (*Store).MarkOpApplied (*sql.Tx).QueryRow 1
+db-no-context internal/console (*Store).MarkOpApplied console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).MarkPlanPublished console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).MarkRetirementRestorable console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).MemberConfirms console.sqlHandle.Query 1
+db-no-context internal/console (*Store).Members console.sqlHandle.Query 1
+db-no-context internal/console (*Store).MembershipTransition console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).MoveLogDue console.sqlHandle.Query 1
+db-no-context internal/console (*Store).MoveLogPending console.sqlHandle.Query 1
+db-no-context internal/console (*Store).MovePageAttempt console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).NearestCaps console.sqlHandle.Query 1
+db-no-context internal/console (*Store).NewAlertToken console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).NewPeoplePerDay console.sqlHandle.Query 1
+db-no-context internal/console (*Store).NewestPeople console.sqlHandle.Query 1
+db-no-context internal/console (*Store).NewestRetirement console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).NonHomeAppRegions console.sqlHandle.Query 1
+db-no-context internal/console (*Store).NonTerminalCheckoutIntentsAfter console.sqlHandle.Query 1
+db-no-context internal/console (*Store).NoteOpSent console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).NotePriceBook console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).NotePriceBook console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).OpenBillingProblemReasons console.sqlHandle.Query 1
+db-no-context internal/console (*Store).OperatorAccountBySqid console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).OperatorCounts console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).OperatorPerson console.sqlHandle.Query 1
+db-no-context internal/console (*Store).OperatorPerson console.sqlHandle.QueryRow 2
+db-no-context internal/console (*Store).Operators console.sqlHandle.Query 1
+db-no-context internal/console (*Store).Owners console.sqlHandle.Query 1
+db-no-context internal/console (*Store).PaymentCursor console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).Payments console.sqlHandle.Query 1
+db-no-context internal/console (*Store).Payments console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).PaymentsReconciledAt console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).PeekEmailLink console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).PendingChange console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).PendingForHost console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).PendingInviteAddress console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).PendingInviteFor console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).PendingInvites console.sqlHandle.Query 1
+db-no-context internal/console (*Store).PendingMigrations console.sqlHandle.Query 1
+db-no-context internal/console (*Store).PeoplePage console.sqlHandle.Query 1
+db-no-context internal/console (*Store).PeoplePage console.sqlHandle.QueryRow 2
+db-no-context internal/console (*Store).PersonWouldBeNew console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).PlansToPublish console.sqlHandle.Query 1
+db-no-context internal/console (*Store).PurchasesToday console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).PurgeCLIAuth console.sqlHandle.Exec 2
+db-no-context internal/console (*Store).PurgeDueApps console.sqlHandle.Query 1
+db-no-context internal/console (*Store).PurgeExpired console.sqlHandle.Exec 3
+db-no-context internal/console (*Store).PurgeMoveLogIncarnation console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).PutBillingOpState console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).PutCapState console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).PutCheckoutIntent (*sql.Tx).Exec 1
+db-no-context internal/console (*Store).PutCheckoutIntent (*sql.Tx).QueryRow 1
+db-no-context internal/console (*Store).PutCheckoutIntent console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).PutDailySnapshot (*sql.Tx).Exec 3
+db-no-context internal/console (*Store).PutDailySnapshot console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).PutEURRates (*sql.Tx).Exec 1
+db-no-context internal/console (*Store).PutEURRates console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).PutRestoreCheck console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).QueueMoveLog console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).ReapAccount (*sql.Tx).Exec 3
+db-no-context internal/console (*Store).ReapAccount (*sql.Tx).QueryRow 1
+db-no-context internal/console (*Store).ReapAccount console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).RecentAlertIncidents console.sqlHandle.Query 1
+db-no-context internal/console (*Store).RecordCapNotice console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).RecordPayment (*sql.Tx).Exec 1
+db-no-context internal/console (*Store).RecordPayment (*sql.Tx).QueryRow 1
+db-no-context internal/console (*Store).RecordPayment console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).RecordStepUp console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).RematchPayments (*sql.Tx).Exec 1
+db-no-context internal/console (*Store).RematchPayments (*sql.Tx).Query 1
+db-no-context internal/console (*Store).RematchPayments console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).RemoveDemoHoldingMember console.sqlHandle.Exec 2
+db-no-context internal/console (*Store).RemoveMember console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).ResetGettingStarted console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).ResolveBillingProblem console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).ResolveSignIn (*sql.Tx).Exec 3
+db-no-context internal/console (*Store).ResolveSignIn console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).RestoreAppRow console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).RestoreCheck console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).RestoringAppsIn console.sqlHandle.Query 1
+db-no-context internal/console (*Store).ResumeAlertConnector console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).RetryMoveLog console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).Revoke console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).RevokeAccountToken console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).RevokeInvite console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).RevokeLink (*sql.Tx).Exec 2
+db-no-context internal/console (*Store).RevokeLink (*sql.Tx).QueryRow 1
+db-no-context internal/console (*Store).RevokeLink console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).RevokeServicePrincipal console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).Role console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).RotateLinkToken (*sql.Tx).Exec 3
+db-no-context internal/console (*Store).RotateLinkToken (*sql.Tx).QueryRow 1
+db-no-context internal/console (*Store).RotateLinkToken console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).RotateServicePrincipal console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).SaveBillingSync (*sql.Tx).Exec 2
+db-no-context internal/console (*Store).SaveBillingSync console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).SealedAlertTargets console.sqlHandle.Query 1
+db-no-context internal/console (*Store).SeedOperatorAlertConnectors console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).ServicePrincipals console.sqlHandle.Query 1
+db-no-context internal/console (*Store).SessionAddress console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).SessionInfo console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).SessionMethodID console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).SetAccountDisabled console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).SetAccountKept console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).SetAccountPlan console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).SetAccountThrottle console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).SetAccountTier console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).SetAlertRule (*sql.Tx).Exec 4
+db-no-context internal/console (*Store).SetAlertRule (*sql.Tx).QueryRow 1
+db-no-context internal/console (*Store).SetAlertRule console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).SetAlertSeen console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).SetAppStar console.sqlHandle.Exec 2
+db-no-context internal/console (*Store).SetBillingCustomer console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).SetBillingCustomer console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).SetBillingHouse console.sqlHandle.Exec 2
+db-no-context internal/console (*Store).SetClaimAppPlacement console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).SetConnectorHealth (*sql.Tx).Exec 2
+db-no-context internal/console (*Store).SetConnectorHealth (*sql.Tx).QueryRow 1
+db-no-context internal/console (*Store).SetConnectorHealth console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).SetConnectorHealth console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).SetDomainContact console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).SetGettingStartedMark (*sql.Tx).Exec 2
+db-no-context internal/console (*Store).SetGettingStartedMark console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).SetGrantToken console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).SetLastAccount console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).SetMigrationMarkedETag console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).SetMovePageAttempt console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).SetOperator console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).SetPaymentCursor console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).SetPaymentsReconciled console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).SettleMoveLog console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).SignInMethodsFor console.sqlHandle.Query 1
+db-no-context internal/console (*Store).SigningKey console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).SigningKey console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).Snooze console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).Snoozed console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).StallRestoreCheck (*sql.Tx).QueryRow 1
+db-no-context internal/console (*Store).StallRestoreCheck console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).StarredLifetimes console.sqlHandle.Query 1
+db-no-context internal/console (*Store).StartLaunchSponsorship (*sql.Tx).Exec 1
+db-no-context internal/console (*Store).StartLaunchSponsorship (*sql.Tx).Query 1
+db-no-context internal/console (*Store).StartLaunchSponsorship console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).StashPendingAction console.sqlHandle.Exec 2
+db-no-context internal/console (*Store).TakeConfirmation (*sql.Tx).Exec 1
+db-no-context internal/console (*Store).TakeConfirmation (*sql.Tx).QueryRow 1
+db-no-context internal/console (*Store).TakeConfirmation console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).TakeEmailCode (*sql.Tx).Exec 4
+db-no-context internal/console (*Store).TakeEmailCode (*sql.Tx).QueryRow 1
+db-no-context internal/console (*Store).TakeEmailCode console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).TakeEmailLink (*sql.Tx).Exec 1
+db-no-context internal/console (*Store).TakeEmailLink (*sql.Tx).QueryRow 1
+db-no-context internal/console (*Store).TakeEmailLink console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).TemporaryAppRows console.sqlHandle.Query 1
+db-no-context internal/console (*Store).TouchLastSeen console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).TransferOwnership (*sql.Tx).Exec 2
+db-no-context internal/console (*Store).TransferOwnership (*sql.Tx).QueryRow 1
+db-no-context internal/console (*Store).TransferOwnership console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).TrashedAppsIn console.sqlHandle.Query 1
+db-no-context internal/console (*Store).UnsubscribeAlertConnector (*sql.Tx).Exec 3
+db-no-context internal/console (*Store).UnsubscribeAlertConnector (*sql.Tx).QueryRow 1
+db-no-context internal/console (*Store).UnsubscribeAlertConnector console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).UseAlertToken console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).allocationsOrdered console.sqlHandle.Query 1
+db-no-context internal/console (*Store).appIdentity console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).appLinkID console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).appLives console.sqlHandle.Query 1
+db-no-context internal/console (*Store).appPlacementRow console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).backfillAppLifetimes (*sql.Tx).Exec 1
+db-no-context internal/console (*Store).backfillAppLifetimes (*sql.Tx).Query 1
+db-no-context internal/console (*Store).backfillAppLifetimes console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).backfillCredentialIDs console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).backfillCredentialIDs console.sqlHandle.Query 1
+db-no-context internal/console (*Store).backfillMailSenderCounts console.sqlHandle.Exec 2
+db-no-context internal/console (*Store).backfillMailSenderCounts console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).billingAccountWhere console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).billingOpWhere console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).billingOpsWhere console.sqlHandle.Query 1
+db-no-context internal/console (*Store).changed console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).checkoutIntentWhere console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).claimRawAdoptAppPolicy console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).claimRawDeleteLapseItem console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).claimRawDoorKeyAdvanceRevision (*sql.Tx).Exec 1
+db-no-context internal/console (*Store).claimRawDoorKeyAdvanceRevision (*sql.Tx).QueryRow 1
+db-no-context internal/console (*Store).claimRawDoorKeyAdvanceRevision console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).claimRawDoorKeyInsert (*sql.Tx).Exec 1
+db-no-context internal/console (*Store).claimRawDoorKeyInsert (*sql.Tx).QueryRow 1
+db-no-context internal/console (*Store).claimRawDoorKeyInsert console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).claimRawDoorKeyRevoke (*sql.Tx).Exec 1
+db-no-context internal/console (*Store).claimRawDoorKeyRevoke console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).claimRawDoorKeysLive (*sql.Tx).Query 1
+db-no-context internal/console (*Store).claimRawDoorKeysLive (*sql.Tx).QueryRow 1
+db-no-context internal/console (*Store).claimRawDoorKeysLive console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).claimRawNewAppToken console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).claimRawNewServicePrincipalScoped (*sql.Tx).Exec 1
+db-no-context internal/console (*Store).claimRawNewServicePrincipalScoped (*sql.Tx).QueryRow 1
+db-no-context internal/console (*Store).claimRawNewServicePrincipalScoped console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).claimRawPendingChangesFor (*sql.Tx).Query 1
+db-no-context internal/console (*Store).claimRawPendingChangesFor console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).claimRawProposeChange (*sql.Tx).Exec 2
+db-no-context internal/console (*Store).claimRawProposeChange console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).claimRawPutLapseItem console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).claimRawRecordActivity console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).claimRawRecordAppPolicy console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).claimRawResignAppPolicy console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).claimRawRevokeCLIToken console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).claimRawRevokeCLITokenValue console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).claimRawSetAppBuildProbe console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).claimRawSetAppControlPlane console.sqlHandle.Exec 2
+db-no-context internal/console (*Store).claimRawSetAppPlacement console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).claimRawSyncedAppPolicy console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).claimRawTrashAppRow console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).cliAuthPurpose console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).compareDomainPurchase console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).controlPlaneAppsIn console.sqlHandle.Query 1
+db-no-context internal/console (*Store).ed25519Key console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).ed25519Key console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).eurRatesFetchedAt console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).feed console.sqlHandle.Query 1
+db-no-context internal/console (*Store).hasClaimedSource console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).insertEmailChallenge (*sql.Tx).Exec 1
+db-no-context internal/console (*Store).linkPrincipalLive console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).linkRow console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).linkedAppHomes console.sqlHandle.Query 1
+db-no-context internal/console (*Store).linksNeedingSync console.sqlHandle.Query 1
+db-no-context internal/console (*Store).markLinkSynced console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).migrate console.sqlHandle.Exec 2
+db-no-context internal/console (*Store).migrateAlerts console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).migrateAppHAPool console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).migrateAppPolicy console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).migrateAppStars console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).migrateAppsKey (*sql.Tx).Exec 1
+db-no-context internal/console (*Store).migrateAppsKey console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).migrateAppsKey console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).migrateBilling console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).migrateBilling6b console.sqlHandle.Exec 3
+db-no-context internal/console (*Store).migrateBillingAccounts console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).migrateBillingMoney console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).migrateBillingOperations console.sqlHandle.Exec 3
+db-no-context internal/console (*Store).migrateBillingSnapshots console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).migrateCLIAuth console.sqlHandle.Exec 5
+db-no-context internal/console (*Store).migrateClaimAppIdentity (*sql.DB).Exec 2
+db-no-context internal/console (*Store).migrateClaimAppIdentity (*sql.DB).Query 1
+db-no-context internal/console (*Store).migrateDemo console.sqlHandle.Exec 2
+db-no-context internal/console (*Store).migrateDemoAlertAdmissions console.sqlHandle.Exec 2
+db-no-context internal/console (*Store).migrateDemoAlertAdmissions console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).migrateDemoAlerts console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).migrateDemoClaims console.sqlHandle.Exec 3
+db-no-context internal/console (*Store).migrateDemoJobs console.sqlHandle.Exec 3
+db-no-context internal/console (*Store).migrateDemoJobs console.sqlHandle.QueryRow 2
+db-no-context internal/console (*Store).migrateDemoReports console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).migrateDemoServing console.sqlHandle.Exec 2
+db-no-context internal/console (*Store).migrateDemoServing console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).migrateDomains console.sqlHandle.Exec 2
+db-no-context internal/console (*Store).migrateDoorKeys console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).migrateEmailSignin console.sqlHandle.Exec 2
+db-no-context internal/console (*Store).migrateGettingStarted console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).migrateLinks console.sqlHandle.Exec 2
+db-no-context internal/console (*Store).migrateManaged console.sqlHandle.Exec 4
+db-no-context internal/console (*Store).migrateOperatorPages console.sqlHandle.Exec 2
+db-no-context internal/console (*Store).migratePendingChanges console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).migratePlanGrace console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).migratePlanLapse console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).migratePlanSeats console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).migrateStepUp console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).moveApp (*sql.Tx).Exec 2
+db-no-context internal/console (*Store).moveApp (*sql.Tx).QueryRow 9
+db-no-context internal/console (*Store).moveApp console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).newCLIAuth console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).openBillingProblemTx console.sqlExecer.Exec 1
+db-no-context internal/console (*Store).pendingRetirements console.sqlHandle.Query 1
+db-no-context internal/console (*Store).pollCLIAuth (*sql.Tx).Exec 3
+db-no-context internal/console (*Store).pollCLIAuth (*sql.Tx).QueryRow 1
+db-no-context internal/console (*Store).pollCLIAuth console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).renameAppIn (*sql.Tx).Exec 3
+db-no-context internal/console (*Store).renameAppIn (*sql.Tx).QueryRow 5
+db-no-context internal/console (*Store).renameAppIn console.sqlHandle.Begin 1
+db-no-context internal/console (*Store).restoreChecksWhere console.sqlHandle.Query 1
+db-no-context internal/console (*Store).revokedLinkPrincipal console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).revokedLinksHoldingApps console.sqlHandle.Query 1
+db-no-context internal/console (*Store).setState console.sqlHandle.Exec 1
+db-no-context internal/console (*Store).setState console.sqlHandle.QueryRow 1
+db-no-context internal/console (*Store).sqlDatabaseID (*sql.DB).QueryRow 1
+db-no-context internal/console (*Store).takePendingActionByHash (*sql.Tx).Exec 1
+db-no-context internal/console (*Store).takePendingActionByHash (*sql.Tx).QueryRow 1
+db-no-context internal/console (*Store).takePendingActionByHash console.sqlHandle.Begin 1
+db-no-context internal/console (*launchRule).apply (*sql.Tx).Exec 1
+db-no-context internal/console Open (*sql.DB).Exec 1
+db-no-context internal/console OpenGated console.sqlHandle.Exec 4
+db-no-context internal/console acceptInviteTx (*sql.Tx).Exec 2
+db-no-context internal/console acceptInviteTx (*sql.Tx).QueryRow 1
+db-no-context internal/console addMemberTx (*sql.Tx).Exec 1
+db-no-context internal/console alertSeenFiring (*sql.Tx).Query 1
+db-no-context internal/console billingSetPlan (*sql.Tx).QueryRow 1
+db-no-context internal/console bumpDoorKeyRevision (*sql.Tx).Exec 1
+db-no-context internal/console bumpDoorKeyRevision (*sql.Tx).QueryRow 1
+db-no-context internal/console claimSQLCensus (*sql.DB).Query 4
+db-no-context internal/console confirmsFor (*sql.Tx).Query 1
+db-no-context internal/console consumeSeatAuthorisationTx (*sql.Tx).Exec 1
+db-no-context internal/console deleteAlertConnectorTx (*sql.Tx).Exec 3
+db-no-context internal/console deleteBound (*sql.Tx).Exec 1
+db-no-context internal/console executedAtZero (*sql.Tx).QueryRow 1
+db-no-context internal/console holdsAddressTx console.sqlQueryRower.QueryRow 1
+db-no-context internal/console inheritRefundTax console.sqlQueryer.QueryRow 1
+db-no-context internal/console initSQLReceipts (*sql.DB).Exec 5
+db-no-context internal/console initSQLReceipts (*sql.DB).QueryRow 2
+db-no-context internal/console insertAlertConnector interface.Exec 1
+db-no-context internal/console insertAlertIncidentTx (*sql.Tx).QueryRow 1
+db-no-context internal/console insertAlertOutbox (*sql.Tx).Exec 1
+db-no-context internal/console insertAppRow console.appExecer.Exec 1
+db-no-context internal/console lastOwnerGuard (*sql.Tx).QueryRow 2
+db-no-context internal/console launchRuleOn console.sqlQueryRower.QueryRow 1
+db-no-context internal/console linkApproverHolds (*sql.Tx).QueryRow 1
+db-no-context internal/console loadPendingChange (*sql.Tx).QueryRow 1
+db-no-context internal/console lookupSignIn console.sqlQueryRower.QueryRow 1
+db-no-context internal/console matchPayment console.sqlQueryer.QueryRow 3
+db-no-context internal/console memberCountOn console.sqlQueryRower.QueryRow 1
+db-no-context internal/console migrateSignInMethods console.sqlExecer.Exec 1
+db-no-context internal/console mintLinkTx (*sql.Tx).Exec 2
+db-no-context internal/console mintLinkTx (*sql.Tx).QueryRow 1
+db-no-context internal/console openGated (*sql.DB).Exec 1
+db-no-context internal/console putBillingState console.sqlExecer.Exec 1
+db-no-context internal/console readAlertToken interface.QueryRow 1
+db-no-context internal/console removeDemoHoldingMemberWrite (*sql.Tx).Exec 3
+db-no-context internal/console removeDemoHoldingMemberWrite (*sql.Tx).Query 1
+db-no-context internal/console removeDemoHoldingMemberWrite (*sql.Tx).QueryRow 4
+db-no-context internal/console removeMemberTx (*sql.Tx).Exec 3
+db-no-context internal/console revokeAccountLinksTx (*sql.Tx).Exec 2
+db-no-context internal/console revokeAllDoorKeys (*sql.Tx).Exec 1
+db-no-context internal/console revokeClaimDoorKeys (*sql.Tx).Exec 2
+db-no-context internal/console seedOperatorAlertConnectors (*sql.Tx).Exec 2
+db-no-context internal/console seedOperatorAlertConnectors (*sql.Tx).QueryRow 1
+db-no-context internal/console setBillingPlanTx (*sql.Tx).QueryRow 2
+db-no-context internal/console spendAlertToken (*sql.Tx).Exec 1
+db-no-context internal/console validateDemoConfig console.sqlHandle.QueryRow 1
+db-no-context internal/console writeAlertIncident (*sql.Tx).Exec 2
+db-no-context internal/dbdoor/dbdoortest Replicate (*sql.DB).Exec 2
+db-no-context internal/host (*demoWorker).beginDemoServing (*sql.DB).QueryRow 1
+db-no-context internal/host openDemoTraffic (*sql.DB).Exec 1
+db-no-context internal/hostbox NewJournalService (*sql.DB).Exec 4
+db-no-context internal/hostbox NewJournalService (*sql.DB).QueryRow 2
+db-no-context internal/hostbox OpenLaunchJournal (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).AccountBySqid (*sql.DB).QueryRow 1
+db-no-context internal/registry (*Registry).Accounts (*sql.DB).Query 1
+db-no-context internal/registry (*Registry).AddFleetBox (*sql.DB).Begin 1
+db-no-context internal/registry (*Registry).AddFleetBox (*sql.Tx).Exec 1
+db-no-context internal/registry (*Registry).AddFleetBox (*sql.Tx).QueryRow 1
+db-no-context internal/registry (*Registry).AddManagedFleetBox (*sql.DB).Begin 1
+db-no-context internal/registry (*Registry).AddManagedFleetBox (*sql.Tx).Exec 1
+db-no-context internal/registry (*Registry).AddManagedFleetBox (*sql.Tx).QueryRow 1
+db-no-context internal/registry (*Registry).AdvanceDutyTimer (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).AlwaysOnWorkers (*sql.DB).Query 1
+db-no-context internal/registry (*Registry).ArtifactHosts (*sql.DB).Query 1
+db-no-context internal/registry (*Registry).ClaimHomeLink (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).ClearFleetBoxDraining (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).ClearHomeLinkRotatePending (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).ClearNextDueIf (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).ClearReplicaAssignment registry.txer.Exec 1
+db-no-context internal/registry (*Registry).CloseImportGate registry.txer.Exec 2
+db-no-context internal/registry (*Registry).CommitImport registry.txer.Exec 2
+db-no-context internal/registry (*Registry).CompareDemoMoved (*sql.DB).Exec 2
+db-no-context internal/registry (*Registry).CompareSeedGate (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).CountTimers (*sql.DB).QueryRow 1
+db-no-context internal/registry (*Registry).CreateFleet (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).Delete (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).DeleteAccount (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).DeleteAlias (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).DeleteEmptyManagedFleet (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).DeleteForward (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).DeleteHomeLink registry.txer.Exec 2
+db-no-context internal/registry (*Registry).DeleteHomeLinkApp registry.txer.Exec 1
+db-no-context internal/registry (*Registry).DeleteIfHold (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).DeleteIfHoldWithTimers (*sql.DB).Begin 1
+db-no-context internal/registry (*Registry).DeleteIfHoldWithTimers (*sql.Tx).Exec 2
+db-no-context internal/registry (*Registry).DeleteIfUnchanged (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).DeleteImportJournal registry.txer.Exec 1
+db-no-context internal/registry (*Registry).DeleteLinkForward (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).DeletePath (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).DeleteReplicaAssignment registry.queryer.QueryRow 1
+db-no-context internal/registry (*Registry).DeleteReplicaAssignment registry.txer.Exec 1
+db-no-context internal/registry (*Registry).DeleteSeedRoute (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).DeleteTimer (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).DeleteTimerOwnedRegistration (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).DeleteTimerRegistration (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).DeleteTimersExcept (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).DeleteWildcardDomain (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).DemoMoved (*sql.DB).QueryRow 1
+db-no-context internal/registry (*Registry).DueInstances (*sql.DB).Query 1
+db-no-context internal/registry (*Registry).EarliestTimers (*sql.DB).Query 1
+db-no-context internal/registry (*Registry).Fingerprint (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).Fingerprint (*sql.DB).Query 9
+db-no-context internal/registry (*Registry).Fingerprint (*sql.DB).QueryRow 1
+db-no-context internal/registry (*Registry).FireTimerNow (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).FireTimerNowRegistration (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).FleetChannelAuth (*sql.DB).Query 1
+db-no-context internal/registry (*Registry).Get (*sql.DB).QueryRow 1
+db-no-context internal/registry (*Registry).GetTimer (*sql.DB).QueryRow 1
+db-no-context internal/registry (*Registry).HADuty (*sql.DB).QueryRow 1
+db-no-context internal/registry (*Registry).HandHold (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).HoldRows (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).HoldRows (*sql.DB).Query 1
+db-no-context internal/registry (*Registry).HomeLink (*sql.DB).QueryRow 1
+db-no-context internal/registry (*Registry).HomeLinkAppByName (*sql.DB).QueryRow 1
+db-no-context internal/registry (*Registry).HomeLinkApps (*sql.DB).Query 1
+db-no-context internal/registry (*Registry).ImportJournalHosts (*sql.DB).Query 1
+db-no-context internal/registry (*Registry).ImportJournals (*sql.DB).Query 1
+db-no-context internal/registry (*Registry).InstallLifetimeIf (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).LinkForwards (*sql.DB).Query 1
+db-no-context internal/registry (*Registry).LinkSeen (*sql.DB).Query 1
+db-no-context internal/registry (*Registry).List (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).List (*sql.DB).Query 1
+db-no-context internal/registry (*Registry).ListAccountNamespaces (*sql.DB).Query 1
+db-no-context internal/registry (*Registry).ListAliases (*sql.DB).Query 1
+db-no-context internal/registry (*Registry).ListFleets (*sql.DB).Query 1
+db-no-context internal/registry (*Registry).ListPaths (*sql.DB).Query 1
+db-no-context internal/registry (*Registry).ListRegional (*sql.DB).Query 1
+db-no-context internal/registry (*Registry).ListWildcardDomains (*sql.DB).Query 1
+db-no-context internal/registry (*Registry).MarkFleetBoxLabelled (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).MarkFleetBoxLabelled (*sql.DB).QueryRow 1
+db-no-context internal/registry (*Registry).MarkTimerFired (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).MaterializeTimerRegistration (*sql.DB).Begin 1
+db-no-context internal/registry (*Registry).MaterializeTimerRegistration (*sql.Tx).Exec 2
+db-no-context internal/registry (*Registry).MaterializeTimerRegistration (*sql.Tx).QueryRow 2
+db-no-context internal/registry (*Registry).NextFenceGeneration registry.queryer.QueryRow 1
+db-no-context internal/registry (*Registry).NextFenceGeneration registry.txer.Exec 1
+db-no-context internal/registry (*Registry).PruneTimers (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).PutAccount (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).PutForward registry.queryer.QueryRow 1
+db-no-context internal/registry (*Registry).PutForward registry.txer.Exec 1
+db-no-context internal/registry (*Registry).PutHomeLink registry.txer.Exec 3
+db-no-context internal/registry (*Registry).PutHomeLinkApp registry.queryer.QueryRow 2
+db-no-context internal/registry (*Registry).PutHomeLinkApp registry.txer.Exec 2
+db-no-context internal/registry (*Registry).PutLinkChannel registry.txer.Exec 2
+db-no-context internal/registry (*Registry).ReleaseHold (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).ReleaseHoldSeq (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).ReplaceRegionalSet (*sql.DB).Begin 1
+db-no-context internal/registry (*Registry).ReplaceRegionalSet (*sql.Tx).Exec 2
+db-no-context internal/registry (*Registry).ReplaceReplicaAssignment registry.txer.Exec 1
+db-no-context internal/registry (*Registry).ReplaceTimers (*registry.claimTransaction).Exec 2
+db-no-context internal/registry (*Registry).ReplaceTimers (*registry.claimTransaction).QueryRow 1
+db-no-context internal/registry (*Registry).RepointPlatformSocket registry.txer.Exec 1
+db-no-context internal/registry (*Registry).ResetLinkSeen (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).ResidentInstances (*sql.DB).Query 1
+db-no-context internal/registry (*Registry).RestoreImportRoute registry.txer.Exec 2
+db-no-context internal/registry (*Registry).RevokeLinkChannel registry.txer.Exec 2
+db-no-context internal/registry (*Registry).RotateHomeLinkKey (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SeedStateless (*sql.DB).Begin 1
+db-no-context internal/registry (*Registry).SeedStateless (*sql.Tx).Exec 1
+db-no-context internal/registry (*Registry).SeedStateless (*sql.Tx).QueryRow 1
+db-no-context internal/registry (*Registry).SetAccount (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetAccountNamespaces (*sql.DB).Begin 1
+db-no-context internal/registry (*Registry).SetAccountNamespaces (*sql.Tx).Exec 2
+db-no-context internal/registry (*Registry).SetAliasCertExpiresAt (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetAliasDNSStatus (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetArgs (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetAssets (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetBacking (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetBuildState (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetCaps (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetCaps (*sql.DB).QueryRow 1
+db-no-context internal/registry (*Registry).SetCertExpiresAt (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetChannel (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetChannels (*sql.DB).Begin 1
+db-no-context internal/registry (*Registry).SetChannels (*sql.Stmt).Exec 1
+db-no-context internal/registry (*Registry).SetChannels (*sql.Tx).Prepare 1
+db-no-context internal/registry (*Registry).SetChannelsAndEnvironments (*sql.DB).Begin 1
+db-no-context internal/registry (*Registry).SetChannelsAndEnvironments (*sql.Stmt).Exec 1
+db-no-context internal/registry (*Registry).SetChannelsAndEnvironments (*sql.Tx).Prepare 1
+db-no-context internal/registry (*Registry).SetDBPath (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetDBPath (*sql.DB).QueryRow 1
+db-no-context internal/registry (*Registry).SetDNSStatus (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetEnvironment (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetEnvironments (*sql.DB).Begin 1
+db-no-context internal/registry (*Registry).SetEnvironments (*sql.Stmt).Exec 1
+db-no-context internal/registry (*Registry).SetEnvironments (*sql.Tx).Prepare 1
+db-no-context internal/registry (*Registry).SetFleetAssignment (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetFleetBoxDraining (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetFleetBoxDraining (*sql.DB).QueryRow 1
+db-no-context internal/registry (*Registry).SetFleetBoxIf (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetFleetBoxStatus (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetFleetBoxTags (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetFleetBoxToken (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetFleetSecretsKey (*sql.DB).Begin 1
+db-no-context internal/registry (*Registry).SetFleetSecretsKey (*sql.Tx).Exec 2
+db-no-context internal/registry (*Registry).SetFleetSecretsKey (*sql.Tx).QueryRow 1
+db-no-context internal/registry (*Registry).SetGate (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetGoodBuild (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetGoodBuild (*sql.DB).QueryRow 1
+db-no-context internal/registry (*Registry).SetHA (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetHibernate (*sql.DB).Exec 2
+db-no-context internal/registry (*Registry).SetHold (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetHoldIf (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetHoldIfSeq (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetHomeLinkState (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetHomeLinkUnlinkPending (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetInstancePaths registry.queryer.QueryRow 1
+db-no-context internal/registry (*Registry).SetInstancePaths registry.txer.Exec 1
+db-no-context internal/registry (*Registry).SetLinkSeen (*sql.DB).Exec 2
+db-no-context internal/registry (*Registry).SetManagedFleetBucket (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetNextDue (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetPages (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetPlacement (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetPolicy (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetProvisioned (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetRateLimit (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetReplica (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetReplicas (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetReplication (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetSeed (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetSeedSource (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetServingMode (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetServingVersion (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetStatus (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetStatusNamed (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetSteering (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetTimerStatus (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetTimerStatusRegistration (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetTunnel (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetUnit (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetUpdateSettings (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetUpstreams (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetVersions (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SetWorkerLimits (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SnapshotFingerprint (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SnapshotFingerprint (*sql.DB).Query 4
+db-no-context internal/registry (*Registry).SnapshotFingerprint (*sql.DB).QueryRow 1
+db-no-context internal/registry (*Registry).SnapshotTo (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).SwapForImport registry.txer.Exec 2
+db-no-context internal/registry (*Registry).UpsertAlias (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).UpsertFleet (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).UpsertPath (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).UpsertTimer (*registry.claimTransaction).QueryRow 1
+db-no-context internal/registry (*Registry).UpsertTimerRegistration (*sql.DB).Begin 1
+db-no-context internal/registry (*Registry).UpsertTimerRegistration (*sql.Tx).QueryRow 3
+db-no-context internal/registry (*Registry).UpsertWildcardDomain (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).accountsTableIsLegacy (*sql.DB).Query 1
+db-no-context internal/registry (*Registry).activeLinkMap (*sql.DB).Query 1
+db-no-context internal/registry (*Registry).freshFleetsConn (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).migrate (*sql.DB).Exec 11
+db-no-context internal/registry (*Registry).migrateAccounts (*sql.DB).Exec 4
+db-no-context internal/registry (*Registry).migrateClaimOwnership (*sql.DB).Exec 2
+db-no-context internal/registry (*Registry).migrateFenceGenerations (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).migrateFleets (*sql.DB).Exec 8
+db-no-context internal/registry (*Registry).migrateHADuties (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).migrateHAIdentityHistory (*sql.DB).QueryRow 1
+db-no-context internal/registry (*Registry).migrateHAJournal (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).migrateHomeLink (*sql.DB).Exec 3
+db-no-context internal/registry (*Registry).migrateImportJournal (*sql.DB).Exec 2
+db-no-context internal/registry (*Registry).migrateLinks (*sql.DB).Exec 1
+db-no-context internal/registry (*Registry).queryTimers (*sql.DB).Query 1
+db-no-context internal/registry (*Registry).readCols (*sql.DB).Query 1
+db-no-context internal/registry (*Registry).replaceLegacyTimers (*sql.DB).Begin 1
+db-no-context internal/registry (*Registry).replaceLegacyTimers (*sql.Tx).Exec 2
+db-no-context internal/registry (*Registry).setReplicaAssignment registry.queryer.QueryRow 1
+db-no-context internal/registry (*Registry).setReplicaAssignment registry.txer.Exec 1
+db-no-context internal/registry (*Registry).upsertLegacyTimer (*sql.DB).Exec 1
+db-no-context internal/registry bumpHomeLinkConnGen registry.txer.Exec 1
+db-no-context internal/registry carryAliasesTx registry.txer.Exec 1
+db-no-context internal/registry fingerprintHomeLink (*sql.DB).Query 2
+db-no-context internal/registry forwardAt registry.queryer.QueryRow 1
+db-no-context internal/registry getRouteTx registry.queryer.QueryRow 1
+db-no-context internal/registry hashImportJournal (*sql.DB).Query 1
+db-no-context internal/registry insertRouteTx registry.txer.Exec 1
+db-no-context internal/registry linkAdmits registry.queryer.QueryRow 1
+db-no-context internal/registry scanJournal registry.queryer.QueryRow 1
+db-no-context internal/registry upsertRoute registry.txer.Exec 1
+db-no-context internal/registry upsertTimer interface.Exec 1
+db-no-context scripts/region-ha-g2/fixture openDB (*sql.DB).Exec 1
+host-context internal/host (*ClaimProducers).finish context.Background 1
+host-context internal/host (*ClaimWakeAssembly).Build context.Background 3
+host-context internal/host (*agentRootfs).probe context.Background 1
+host-context internal/host (*assetPolicy).Publish context.Background 1
+host-context internal/host (*assetPolicy).loadDeclarations context.Background 1
+host-context internal/host (*configGuard).Bypassed context.Background 1
+host-context internal/host (*cutRun).releaseLease context.Background 1
+host-context internal/host (*demoTrafficStore).transaction context.Background 1
+host-context internal/host (*demoWorker).applyDemoServing context.Background 1
+host-context internal/host (*drainDriver).start context.Background 1
+host-context internal/host (*fixedAdmission).beginDepartureWork context.Background 1
+host-context internal/host (*fixedAdmission).pageHairpinLocked context.Background 1
+host-context internal/host (*ingressDrain).run context.Background 1
+host-context internal/host (*mailSwitchCache).State context.Background 1
+host-context internal/host (*mailSwitchCache).storeNow context.Background 1
+host-context internal/host (*movesProbeAttempts).CurrentAttempt context.Background 1
+host-context internal/host (*movesWorker).abortClaim context.Background 1
+host-context internal/host (*movesWorker).sourceRound context.Background 1
+host-context internal/host (*relocationProbeAttempts).CurrentAttempt context.Background 1
+host-context internal/host (*rollbackRun).returning context.Background 1
+host-context internal/host (*runsWorker).pickupOwned context.Background 1
+host-context internal/host (*runscReadiness).retry context.Background 1
+host-context internal/host (*sessionRun).bridge context.Background 2
+host-context internal/host (*systemApplier).clearGroupHairpin context.Background 1
+host-context internal/host (*systemApplier).layoutReversalReasons context.Background 2
+host-context internal/host RunAgent context.Background 1
+host-context internal/host RunDrainCall context.Background 1
+host-context internal/host RunGroupMaintenance context.Background 1
+host-context internal/host RunInstanceControl context.Background 5
+host-context internal/host RunSystemApply context.Background 1
+host-context internal/host RunSystemBoxPublishRecord context.Background 1
+host-context internal/host RunSystemEdge context.Background 1
+host-context internal/host RunSystemFiles context.Background 1
+host-context internal/host RunSystemGuardArm context.Background 3
+host-context internal/host RunSystemGuardExec context.Background 2
+host-context internal/host RunSystemInstallChannel context.Background 1
+host-context internal/host RunSystemJournalMigrate context.Background 1
+host-context internal/host RunSystemProxyAllowsPrev context.Background 1
+host-context internal/host RunSystemRunscEnsure context.Background 1
+host-context internal/host adoptLoop context.Background 1
+host-context internal/host agentEntry context.Background 2
+host-context internal/host armDBReads context.Background 1
+host-context internal/host armHAPlacement context.Background 1
+host-context internal/host armInteractivePass context.Background 1
+host-context internal/host armMovesPass context.Background 1
+host-context internal/host armRunsPass context.Background 1
+host-context internal/host boundedCall context.Background 1
+host-context internal/host boxRecordLoop context.Background 1
+host-context internal/host checkedUnitRestart context.Background 4
+host-context internal/host closeReplicaCoordinator context.Background 1
+host-context internal/host configGenLoop context.Background 1
+host-context internal/host configSyncLoop context.Background 1
+host-context internal/host configureGroupHairpinClient context.Background 2
+host-context internal/host createClaimEdgeMask context.Background 1
+host-context internal/host domainsLoop context.Background 2
+host-context internal/host edgeFenceStatusReport context.Background 1
+host-context internal/host edgesFileLoop context.Background 2
+host-context internal/host egressStatusProbe context.Background 1
+host-context internal/host errshipLoop context.Background 1
+host-context internal/host execSandboxStatusReport context.Background 1
+host-context internal/host fastConvergeLoop context.Background 1
+host-context internal/host finalCheckpoint context.Background 1
+host-context internal/host fleetBindingHook context.Background 1
+host-context internal/host heldStageAuthority context.Background 1
+host-context internal/host heldStageCheck context.Background 1
+host-context internal/host ingressDrainEntry context.Background 1
+host-context internal/host instancesLoop context.Background 1
+host-context internal/host joinAgentShutdown context.Background 1
+host-context internal/host linkLoop context.Background 1
+host-context internal/host logshipLoop context.Background 1
+host-context internal/host materializeHook context.Background 1
+host-context internal/host memwatchLoop context.Background 1
+host-context internal/host metricsLoop context.Background 1
+host-context internal/host mintMeshKeyLoop context.Background 1
+host-context internal/host movesReadRoute context.Background 1
+host-context internal/host nestedGate context.Background 1
+host-context internal/host newInteractiveWorker context.Background 1
+host-context internal/host newReplicaDeployWorker context.Background 1
+host-context internal/host newScheduleDeps context.Background 1
+host-context internal/host newServingParkRuntime context.Background 1
+host-context internal/host package-level context.Background 1
+host-context internal/host parkRecoveryJournal context.Background 1
+host-context internal/host parkRevertJournal context.Background 1
+host-context internal/host platformUnitRestarts context.Background 1
+host-context internal/host productionRootRestartChecks context.Background 1
+host-context internal/host proofObserver.observe context.Background 2
+host-context internal/host proofRoot.stillLive context.Background 1
+host-context internal/host publishResidentFleetBindings context.Background 1
+host-context internal/host quiesceLegacyClaimJournals context.Background 1
+host-context internal/host readIdentity context.Background 1
+host-context internal/host readRootFloorBinary context.Background 1
+host-context internal/host recordRootProgram context.Background 1
+host-context internal/host recoverRootExecution context.Background 2
+host-context internal/host registrySnapshotLoop context.Background 1
+host-context internal/host releaseHousekeeperLease context.Background 1
+host-context internal/host releaseOwnLease context.Background 1
+host-context internal/host resolveHost context.Background 1
+host-context internal/host restartBoundUnit context.Background 4
+host-context internal/host retentionLoop context.Background 1
+host-context internal/host rollbackUnitRestart context.Background 5
+host-context internal/host rootInstallationHostApp context.Background 3
+host-context internal/host rootJudgeMovesPrevWithSource context.Background 1
+host-context internal/host rootMigration.census context.Background 1
+host-context internal/host rootRefreshAndJudgeMovesPrev context.Background 1
+host-context internal/host rootRefreshAndJudgeSeedsPrev context.Background 1
+host-context internal/host rootRestartChecks.finish context.Background 1
+host-context internal/host rootRestartRouteWith context.Background 2
+host-context internal/host runAdoptUnderRootRelease context.Background 3
+host-context internal/host runAdoptWithEnsureSystemUnits context.Background 1
+host-context internal/host runAgent context.Background 12
+host-context internal/host sampleDepartures context.Background 1
+host-context internal/host scheduleHostEscrowed context.Background 1
+host-context internal/host seedDataOpener context.Background 1
+host-context internal/host serveReplicaHealth context.Background 1
+host-context internal/host socketServing context.Background 1
+host-context internal/host startHousekeeper context.Background 1
+host-context internal/host statusLoop context.Background 1
+host-context internal/host steeringLoop context.Background 1
+host-context internal/host sweepStagedVersions context.Background 1
+host-context internal/host tunnelLoop context.Background 1
+host-context internal/host usageLoop context.Background 1
+host-context internal/host validateServingParkRecord context.Background 2
+host-context internal/host wireRawSecretPages context.Background 1
+host-context internal/host withEffectiveMovesFloorLock context.Background 2
+func-lines . TestFleetAppServesThroughTheHub - 408
+func-lines . runDeploy - 331
+func-lines . runRoute - 519
+func-lines cmd/console serve - 370
+func-lines internal/activator (*Service).doWakeOnce - 567
+func-lines internal/analytics Prune - 343
+func-lines internal/appconfig SyncExecWithCallbacks - 320
+func-lines internal/console (*Server).handleAPIInstanceCreate - 769
+func-lines internal/console (*Server).handleAPIShip - 378
+func-lines internal/console (*Store).migrate - 389
+func-lines internal/console TestDemoProtectionsSourceToLimitAndTakedown - 412
+func-lines internal/console TestDemoSourceToLiveAndUpdate - 383
+func-lines internal/console TestHAP2ProductionDoors - 321
+func-lines internal/domains ReconcileAliasesReport - 364
+func-lines internal/edge (*Edge).ServeHTTP - 421
+func-lines internal/edge TestDemoAPIAliasBoundary - 360
+func-lines internal/edge TestRegionalNameNeverLeavesItsRegion - 332
+func-lines internal/edge TestTunnelWebSocketEndToEnd - 327
+func-lines internal/host (*ClaimWakeAssembly).Build - 421
+func-lines internal/host TestPagingIsRateLimited - 509
+func-lines internal/host TestPlan12RecoveryRestoreSourceDatabase - 334
+func-lines internal/host TestRootEgressKernelProof - 371
+func-lines internal/host TestRootG2PoolIngress - 302
+func-lines internal/host TestRootInstanceStopExecStop - 441
+func-lines internal/host TestRootSandboxUpdateFromOldBox - 355
+func-lines internal/host hairpinKernelWitness - 305
+func-lines internal/host newColdRootHarness - 340
+func-lines internal/host plan14InstalledClaimLaunch - 870
+func-lines internal/host plan14RequiredArtifactsRootRunner - 374
+func-lines internal/host plan14TimerIntention - 315
+func-lines internal/host rootFilesSeedIsolatedWitness - 308
+func-lines internal/host runAgent - 685
+func-lines internal/host runFilesSeedPreparationWithLive - 390
+func-lines internal/host runServingParkPeerNamespace - 538
+func-lines internal/host testRootMigrationBootstrap - 364
+func-lines internal/hostbox ColdHandover.Run - 310
+func-lines internal/objstore TestDeliveredContractMinio - 325
+func-lines internal/provision Reconcile - 811
+func-lines internal/provision rootReadArchivedChain - 400
+func-lines internal/registry (*Registry).dispatchRemote - 361
+func-lines internal/registry (*Registry).haJournal - 358
+func-lines internal/release PassFilter - 399
+func-lines internal/release adoptHost - 494
+func-lines internal/team TestFixture - 421
+file-lines . apimode.go - 4199
+file-lines . apimode_test.go - 3485
+file-lines internal/activator activator.go - 3778
+file-lines internal/activator activator_test.go - 5499
+file-lines internal/console server.go - 4220
+file-lines internal/host agent.go - 3214
+file-lines internal/provision reconcile_test.go - 3094
+file-lines internal/registry registry_test.go - 3261
+release-importers internal/release - - 65
diff --git a/AGENTS.md b/AGENTS.md
index 022fca76c..f61269b17 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -304,6 +304,44 @@ anything.
GOPROXY=off`; go commands may need the sandbox disabled ("read-only file
system" from the toolchain is the tell).
+## Writing Go here (Paul, 2026-11-17)
+
+These come from the 2026-11-16 code audit (#1123) and the code-health
+plan (`docs/superpowers/plans/2026-11-16-go-code-health.md`). Each
+names what holds it. "The ratchet" is `TestCodeHealth` in
+`internal/codehealth`: the counts in `.amadan/code-health.tsv` can only
+go down (its header and `.amadan/README.md` say how).
+
+- **Network calls carry a deadline; AWS clients come from
+ `internal/rootaws`.** `TestAWSClientsAreBounded` (internal/rootaws)
+ fails an AWS client in the root binary that skips the bounded
+ transport; `TestEveryEdgeServerSetsIdleTimeout` (internal/edge) fails
+ an edge `http.Server` without its timeouts.
+- **A function that has a `ctx` passes it on.** A detached
+ `context.Background()` carries a comment saying why. The ratchet holds
+ database calls with no context (`db-no-context`, every package) and
+ `context.Background`/`TODO` in internal/host (`host-context`).
+- **New CLI commands return errors; they do not call `log.Fatal`.** The
+ ratchet holds `log.Fatal*` and `os.Exit` in the root package
+ (`fatal`).
+- **New tests wait on a signal or a seam, not `time.Sleep`.** The
+ ratchet holds test sleeps (`sleep`).
+- **Errors are compared with `errors.Is`/`errors.As`** and wrapped with
+ `%w` when a caller might branch on them; never match `err.Error()`
+ text. No guard yet: review holds this one.
+- **A function past 300 lines of code, or a file past 3,000, is split by
+ concern** in the branch that would grow it. Comments and blank lines
+ are not counted, so a safety explanation never costs anything, and
+ deleting comments to fit is not a split. The ratchet holds both
+ (`func-lines`, `file-lines`).
+
+When the ratchet fails, fix the code. A rename or a move to another
+package keeps its allowance with `make code-health-record
+MOVE='<old>:<new>'`. A deliberate raise is a hand edit ending in
+`# raised: <reason>`, which CI's `60-code-health-record` step checks
+against the merge base. After removing offences, `make
+code-health-record` lowers the record; it never adds or raises a line.
+
## Console mockups use the kit (Paul, 2026-11-08)
Console mockups and new console UI are drawn in the real console, not in
diff --git a/Makefile b/Makefile
index e72155ec7..c59f749db 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ LDFLAGS := -s -w -X github.com/carlosframework/platform/internal/version.Build=$
GOOS ?=
GOARCH ?=
-.PHONY: test build build-console fmt staticcheck govulncheck census-card census-propose console-mockup-kit parity-doc
+.PHONY: test build build-console fmt staticcheck govulncheck census-card census-propose code-health-record console-mockup-kit parity-doc
# The build gate: vet, format, tests. `.amadan/ci.d/10-gate` runs this same
# target, so what CI checks and what you check are one definition.
@@ -132,3 +132,16 @@ census-card:
census-propose:
@if [ -z '$(NAME)' ] || [ -z '$(CLAIMS)' ]; then echo "usage: make census-propose NAME=<branch> CLAIMS=<file>" >&2; exit 2; fi; \
CARLOS_CENSUS_PROPOSE='$(NAME)'; export CARLOS_CENSUS_PROPOSE; $(CENSUS_CLAIMS); $(CENSUS_RUN)
+
+# The code-health ratchet's record, .amadan/code-health.tsv (its header
+# says how the ratchet works): lowers every line to what the code has and
+# drops the sites that are gone. It never adds or raises a line, and it
+# writes nothing while the code is above the record anywhere; it says
+# which sites. MOVE='<old>:<new>' first carries a site's allowance to its
+# new name, each side "package function callee", ";" between pairs.
+code-health-record:
+ @out=$$(mktemp "$${TMPDIR:-/tmp}/code-health.XXXXXX") || exit 1; \
+ trap 'rm -f "$$out"' EXIT; \
+ CODEHEALTH_RECORD=1 CODEHEALTH_MOVE='$(MOVE)' go test ./internal/codehealth/ -run '^TestCodeHealthRecord$$' -count=1 -v >"$$out" 2>&1; rc=$$?; \
+ if [ $$rc -eq 0 ]; then sed -n '/^--- code-health-record ---$$/,/^--- end code-health-record ---$$/p' "$$out" | sed '1d;$$d'; \
+ else grep -v '^=== RUN' "$$out" >&2; fi; exit $$rc
diff --git a/internal/codehealth/codehealth_test.go b/internal/codehealth/codehealth_test.go
new file mode 100644
index 000000000..0cddb40aa
--- /dev/null
+++ b/internal/codehealth/codehealth_test.go
@@ -0,0 +1,178 @@
+package codehealth
+
+import (
+ "cmp"
+ "fmt"
+ "io"
+ "os"
+ "path/filepath"
+ "slices"
+ "strings"
+ "testing"
+ "time"
+)
+
+// repoTree is the tree the ratchet covers: this module and launchctx.
+func repoTree(t *testing.T) tree {
+ root, err := filepath.Abs(filepath.Join("..", ".."))
+ if err != nil {
+ t.Fatal(err)
+ }
+ return tree{root: root, modules: []string{".", "launchctx"}, limits: treeLimits}
+}
+
+func readRecord(t *testing.T, path string) record {
+ data, err := os.ReadFile(path)
+ if err != nil {
+ t.Fatal(err)
+ }
+ rec, err := parseRecord(data)
+ if err != nil {
+ t.Fatalf("%s: %v", path, err)
+ }
+ return rec
+}
+
+func scanRepo(t *testing.T) *scanResult {
+ start := time.Now()
+ res, err := scanTree(repoTree(t))
+ if err != nil {
+ t.Fatal(err)
+ }
+ t.Logf("scanned in %s", time.Since(start).Round(time.Millisecond))
+ return res
+}
+
+// report writes the line metrics' code and physical lengths (a report,
+// never compared) and what the scan did not read.
+func report(w io.Writer, res *scanResult, listSkipped bool) {
+ var keys []siteKey
+ for k := range res.physical {
+ keys = append(keys, k)
+ }
+ slices.SortFunc(keys, func(a, b siteKey) int {
+ return cmp.Or(cmp.Compare(a.metric, b.metric), cmp.Compare(res.counts[b], res.counts[a]), cmp.Compare(a.String(), b.String()))
+ })
+ fmt.Fprintf(w, "line metrics (code lines, then physical):\n")
+ for _, k := range keys {
+ fmt.Fprintf(w, " %-10s %5d %5d %s %s\n", k.metric, res.counts[k], res.physical[k], k.pkg, k.fn)
+ }
+ fmt.Fprintf(w, "release-importers: %s\n", strings.Join(res.importers, " "))
+ if !listSkipped {
+ fmt.Fprintf(w, "not scanned: %d files built only for other systems, architectures or tags, or generated\n"+
+ "(go test ./internal/codehealth/ -run '^TestCodeHealth$' -v lists them)\n", len(res.skipped))
+ return
+ }
+ var skipped []string
+ for file, why := range res.skipped {
+ skipped = append(skipped, file+": "+why)
+ }
+ slices.Sort(skipped)
+ fmt.Fprintf(w, "not scanned (%d files):\n %s\n", len(skipped), strings.Join(skipped, "\n "))
+}
+
+// TestCodeHealth is the ratchet's gate. It fails when the code has more
+// offences at a site than .amadan/code-health.tsv allows, naming the site,
+// and when the record is not in its one sorted form. Fewer than the record
+// passes, logging the lower number, so two branches that each remove a
+// different offence both pass, and so does main after both.
+func TestCodeHealth(t *testing.T) {
+ data, err := os.ReadFile(recordPath)
+ if err != nil {
+ t.Fatal(err)
+ }
+ rec, err := parseRecord(data)
+ if err != nil {
+ t.Fatalf(".amadan/code-health.tsv: %v", err)
+ }
+ if string(rec.format()) != string(data) {
+ t.Errorf(".amadan/code-health.tsv is not in its sorted form, or its header is out of date: make code-health-record rewrites it")
+ }
+ res := scanRepo(t)
+ var b strings.Builder
+ report(&b, res, true)
+ t.Log(b.String())
+ totals := map[string]int{}
+ sites := map[string]int{}
+ for k, n := range res.counts {
+ totals[k.metric] += n
+ sites[k.metric]++
+ }
+ for _, m := range metrics {
+ t.Logf("%-17s %6d at %4d sites %s", m.name, totals[m.name], sites[m.name], m.what)
+ }
+ over, under := compare(rec, res.counts)
+ for _, d := range under {
+ t.Logf("below the record: %s (make code-health-record lowers it)", d)
+ }
+ if len(over) == 0 {
+ return
+ }
+ b.Reset()
+ for _, d := range over {
+ fmt.Fprintf(&b, "\n %s", d)
+ }
+ t.Errorf("the code is above .amadan/code-health.tsv at %d sites:%s\n"+
+ "Each is a new offence, or more at an old site. Fix it (AGENTS.md, \"Writing Go here\"). If it moved\n"+
+ "(a rename, another package): make code-health-record MOVE='<old>:<new>'. A deliberate raise is a\n"+
+ "hand edit ending in \"# raised: <reason>\", which CI's 60-code-health-record step checks.", len(over), b.String())
+}
+
+// TestCodeHealthRecord is make code-health-record: it lowers the record
+// to the code and drops sites that are gone, applying any MOVE pairs
+// first. It never adds or raises a line. It runs only when the make
+// target asks for it, and prints between two marker lines, which the
+// target shows.
+func TestCodeHealthRecord(t *testing.T) {
+ if os.Getenv("CODEHEALTH_RECORD") != "1" {
+ t.Skip("run by make code-health-record")
+ }
+ moves, err := parseMoves(os.Getenv("CODEHEALTH_MOVE"))
+ if err != nil {
+ t.Fatal(err)
+ }
+ rec := readRecord(t, recordPath)
+ res := scanRepo(t)
+ out, err := lower(rec, res.counts, moves)
+ if err != nil {
+ t.Fatal(err)
+ }
+ fmt.Println("--- code-health-record ---")
+ for _, mv := range moves {
+ fmt.Printf("moved %s to %s\n", mv.old, mv.new)
+ }
+ _, under := compare(rec, res.counts)
+ for _, d := range under {
+ if _, kept := out[d.key]; !kept {
+ fmt.Printf("dropped %s %s (was %d)\n", d.key.metric, d.key, d.allowed)
+ } else {
+ fmt.Printf("lowered %s %s: %d to %d\n", d.key.metric, d.key, d.allowed, d.code)
+ }
+ }
+ report(os.Stdout, res, false)
+ if err := os.WriteFile(recordPath, out.format(), 0o644); err != nil {
+ t.Fatal(err)
+ }
+ fmt.Printf("wrote .amadan/code-health.tsv: %d lines, %d lowered or dropped\n", len(out), len(under))
+ fmt.Println("--- end code-health-record ---")
+}
+
+// TestRecordAgainstBase is CI's 60-code-health-record step: it compares
+// the record with the merge base's copy (CODEHEALTH_BASE names it) and
+// fails on an added or raised line that carries neither a new
+// "# raised: <reason>" nor a valid "# moved-from:" transfer. It reads the
+// two files only; the gate compares the record with the code.
+func TestRecordAgainstBase(t *testing.T) {
+ path := os.Getenv("CODEHEALTH_BASE")
+ if path == "" {
+ t.Skip("run by .amadan/ci.d/60-code-health-record")
+ }
+ base, head := readRecord(t, path), readRecord(t, recordPath)
+ problems, notes := checkAgainstBase(base, head)
+ for _, n := range notes {
+ t.Logf("accepted: %s", n)
+ }
+ if len(problems) > 0 {
+ t.Errorf("the record went up against the merge base:\n %s", strings.Join(problems, "\n "))
+ }
+}
diff --git a/internal/codehealth/fixtures_test.go b/internal/codehealth/fixtures_test.go
new file mode 100644
index 000000000..952d07b3b
--- /dev/null
+++ b/internal/codehealth/fixtures_test.go
@@ -0,0 +1,158 @@
+package codehealth
+
+import (
+ "fmt"
+ "path/filepath"
+ "slices"
+ "strings"
+ "testing"
+)
+
+func scanFixture(t *testing.T, dir string, lim limits) *scanResult {
+ t.Helper()
+ root, err := filepath.Abs(filepath.Join("testdata", dir))
+ if err != nil {
+ t.Fatal(err)
+ }
+ res, err := scanTree(tree{root: root, modules: []string{"."}, limits: lim})
+ if err != nil {
+ t.Fatal(err)
+ }
+ return res
+}
+
+// sameCounts fails with every difference between the scan and want.
+func sameCounts(t *testing.T, got, want map[siteKey]int) {
+ t.Helper()
+ var diffs []string
+ for k, n := range want {
+ if got[k] != n {
+ diffs = append(diffs, fmt.Sprintf("%s %s: got %d, want %d", k.metric, k, got[k], n))
+ }
+ }
+ for k, n := range got {
+ if _, ok := want[k]; !ok {
+ diffs = append(diffs, fmt.Sprintf("%s %s: got %d, want none", k.metric, k, n))
+ }
+ }
+ slices.Sort(diffs)
+ if len(diffs) > 0 {
+ t.Errorf("the scan differs from the fixture's expectations:\n %s", strings.Join(diffs, "\n "))
+ }
+}
+
+// TestScanFixture runs the scanner over testdata/fixture, which holds what
+// each call metric counts and what it ignores; the comments there say
+// which is which. Everything the scan finds must be listed here.
+func TestScanFixture(t *testing.T) {
+ res := scanFixture(t, "fixture", treeLimits)
+ k := func(metric, pkg, fn, callee string) siteKey { return siteKey{metric, pkg, fn, callee} }
+ want := map[siteKey]int{
+ // Root-package production code only; an alias, a Logger method and
+ // a seam's reference count; a string, a comment, another type's
+ // Fatal, a test file, a generated file, a darwin file and another
+ // package do not.
+ k("fatal", ".", "package-level", "os.Exit"): 1,
+ k("fatal", ".", "main", "log.Fatal"): 1,
+ k("fatal", ".", "main", "log.Fatalf"): 1,
+ k("fatal", ".", "main", "(*log.Logger).Fatalln"): 1,
+ k("fatal", ".", "main", "os.Exit"): 1,
+ k("fatal", ".", "run", "log.Fatal"): 2,
+
+ // Test files only, an alias included, an external test package
+ // under its own name; production sleeps and a local sleep do not.
+ k("sleep", ".", "TestSleeps", "time.Sleep"): 2,
+ k("sleep", "._test", "TestExternal", "time.Sleep"): 1,
+
+ // internal/host and below, production files, the !rootrunner file
+ // and the rootrunner one both, host.go once though both
+ // configurations read it; not internal/hostops, not tests.
+ k("host-context", "internal/host", "Run", "context.Background"): 1,
+ k("host-context", "internal/host", "todo", "context.TODO"): 1,
+ k("host-context", "internal/host", "queue", "context.Background"): 1,
+ k("host-context", "internal/host", "queue", "context.TODO"): 1,
+ k("host-context", "internal/host/sub", "Run", "context.Background"): 1,
+
+ // The database classifier: database/sql's DB, Tx and Stmt, a
+ // promoted *sql.DB method, console's sqlQueryer.QueryRow and
+ // sqlHandle.Begin shapes, an interface{} spelling; none of the
+ // context-taking calls, Ping, or another type's Exec and Query.
+ k("db-no-context", "store", "Calls", "(*sql.DB).Query"): 1,
+ k("db-no-context", "store", "Calls", "(*sql.DB).QueryRow"): 1,
+ k("db-no-context", "store", "Calls", "(*sql.DB).Exec"): 2,
+ k("db-no-context", "store", "Calls", "(*sql.DB).Prepare"): 1,
+ k("db-no-context", "store", "Calls", "(*sql.DB).Begin"): 1,
+ k("db-no-context", "store", "Calls", "(*sql.Tx).Exec"): 1,
+ k("db-no-context", "store", "Calls", "(*sql.Tx).Prepare"): 1,
+ k("db-no-context", "store", "Calls", "(*sql.Stmt).Exec"): 1,
+ k("db-no-context", "store", "Calls", "(*sql.Stmt).QueryRow"): 1,
+ k("db-no-context", "store", "Calls", "store.Queryer.QueryRow"): 1,
+ k("db-no-context", "store", "Calls", "store.handle.Begin"): 1,
+ k("db-no-context", "store", "Calls", "store.oldStyle.Exec"): 1,
+ // The same calls after a move to another package still count.
+ k("db-no-context", "consoledb", "Get", "(*sql.DB).QueryRow"): 1,
+ k("db-no-context", "consoledb", "Get", "consoledb.sqlQueryer.QueryRow"): 1,
+ k("db-no-context", "consoledb", "Get", "store.Queryer.QueryRow"): 1,
+
+ // imp/a, imp/b (aliased, two files) and release's own subpackage;
+ // not imp/c, which imports it only in a test.
+ k("release-importers", "internal/release", "-", "-"): 3,
+ }
+ sameCounts(t, res.counts, want)
+ if got := strings.Join(res.importers, " "); got != "imp/a imp/b internal/release/sub" {
+ t.Errorf("importers %q", got)
+ }
+ for file, why := range map[string]string{
+ "gen.go": "generated",
+ "main_darwin.go": "built only for other systems or tags",
+ // On amd64 the go command leaves it out; on arm64 the scanner
+ // does. Either way it is not counted, and it is listed.
+ "main_arm64.go": "",
+ } {
+ got, ok := res.skipped[file]
+ if !ok || (why != "" && got != why) {
+ t.Errorf("skipped[%s] = %q, want %q", file, got, why)
+ }
+ }
+ for file := range res.skipped {
+ if strings.Contains(file, "queue_") {
+ t.Errorf("%s is listed as not scanned, but one configuration reads it", file)
+ }
+ }
+}
+
+// TestScanLines runs the line metrics over testdata/lines with a function
+// limit of 5 code lines and a file limit of 25.
+func TestScanLines(t *testing.T) {
+ res := scanFixture(t, "lines", limits{fn: 5, file: 25})
+ want := map[siteKey]int{
+ {"func-lines", ".", "long", "-"}: 7,
+ {"func-lines", ".", "raw", "-"}: 6,
+ {"func-lines", ".", "(*T).Long", "-"}: 6,
+ {"func-lines", ".", "G.Long", "-"}: 6,
+ {"func-lines", ".", "TestLong", "-"}: 6,
+ // lines.go has 33 code lines; lines_test.go is short.
+ {"file-lines", ".", "lines.go", "-"}: 33,
+ }
+ sameCounts(t, res.counts, want)
+ // Physical length is reported beside code lines, never compared.
+ if p := res.physical[siteKey{"func-lines", ".", "long", "-"}]; p != 7 {
+ t.Errorf("long's physical length %d, want 7", p)
+ }
+ if p := res.physical[siteKey{"file-lines", ".", "lines.go", "-"}]; p <= 33 {
+ t.Errorf("lines.go's physical length %d, want more than its 33 code lines", p)
+ }
+}
+
+func TestCodeLines(t *testing.T) {
+ src := "package p\n\n// c\nvar x = 1 // c\n/* a\nb */ var y = `r\ns`\n/* only */\n"
+ got := codeLines([]byte(src))
+ var lines []int
+ for l := range got {
+ lines = append(lines, l)
+ }
+ slices.Sort(lines)
+ if fmt.Sprint(lines) != "[1 4 6 7]" {
+ t.Errorf("code lines %v, want [1 4 6 7]", lines)
+ }
+}
diff --git a/internal/codehealth/ratchet_test.go b/internal/codehealth/ratchet_test.go
new file mode 100644
index 000000000..392501d57
--- /dev/null
+++ b/internal/codehealth/ratchet_test.go
@@ -0,0 +1,223 @@
+package codehealth
+
+import (
+ "strings"
+ "testing"
+)
+
+var (
+ sleepA = siteKey{"sleep", "internal/edge", "TestA", "time.Sleep"}
+ sleepB = siteKey{"sleep", "internal/edge", "TestB", "time.Sleep"}
+ dbOld = siteKey{"db-no-context", "internal/console", "(*Store).Get", "(*sql.DB).QueryRow"}
+ dbNew = siteKey{"db-no-context", "internal/consoledb", "(*Store).Get", "(*sql.DB).QueryRow"}
+ dbOther = siteKey{"db-no-context", "internal/consoledb", "(*Store).List", "(*sql.DB).QueryRow"}
+ release = siteKey{"release-importers", "internal/release", "-", "-"}
+)
+
+func rec(lines ...recordLine) record {
+ r := record{}
+ for _, l := range lines {
+ r[l.key] = l
+ }
+ return r
+}
+
+func at(k siteKey, n int, comment ...string) recordLine {
+ return recordLine{key: k, count: n, comment: strings.Join(comment, "")}
+}
+
+// Two branches each remove a different sleep from a site the record allows
+// three. Each lowers its record to two; the identical edits merge cleanly,
+// and main, with one sleep left against a record of two, still passes.
+func TestTwoIndependentDecreases(t *testing.T) {
+ main := rec(at(sleepA, 3))
+ for _, branch := range []string{"a", "b"} {
+ lowered, err := lower(main, map[siteKey]int{sleepA: 2}, nil)
+ if err != nil {
+ t.Fatalf("branch %s: %v", branch, err)
+ }
+ if lowered[sleepA].count != 2 {
+ t.Fatalf("branch %s lowered to %d", branch, lowered[sleepA].count)
+ }
+ if problems, _ := checkAgainstBase(main, lowered); len(problems) > 0 {
+ t.Fatalf("branch %s: %v", branch, problems)
+ }
+ }
+ merged := rec(at(sleepA, 2))
+ over, under := compare(merged, map[siteKey]int{sleepA: 1})
+ if len(over) != 0 || len(under) != 1 || under[0].code != 1 || under[0].allowed != 2 {
+ t.Fatalf("main after both: over %v, under %v", over, under)
+ }
+}
+
+// The gate fails on a site above its line and on a site with no line, even
+// when another site went down by the same amount.
+func TestGateFailsAboveTheRecord(t *testing.T) {
+ r := rec(at(sleepA, 2), at(sleepB, 2))
+ over, _ := compare(r, map[siteKey]int{sleepA: 3, sleepB: 1})
+ if len(over) != 1 || over[0].key != sleepA || over[0].code != 3 || over[0].allowed != 2 {
+ t.Fatalf("over %v", over)
+ }
+ over, _ = compare(r, map[siteKey]int{sleepA: 1, sleepB: 2, dbNew: 1})
+ if len(over) != 1 || over[0].key != dbNew || over[0].allowed != 0 {
+ t.Fatalf("over %v", over)
+ }
+}
+
+// make code-health-record lowers, drops what is gone, and never adds or
+// raises: it refuses instead, and returns nothing to write.
+func TestRecordOnlyLowers(t *testing.T) {
+ r := rec(at(sleepA, 3, "# raised: kept as it was"), at(sleepB, 2), at(release, 65))
+ out, err := lower(r, map[siteKey]int{sleepA: 2, release: 64}, nil)
+ if err != nil {
+ t.Fatal(err)
+ }
+ if len(out) != 2 || out[sleepA].count != 2 || out[release].count != 64 || out[sleepA].comment != "# raised: kept as it was" {
+ t.Fatalf("lowered to %v", out)
+ }
+ for name, counts := range map[string]map[siteKey]int{
+ "a new site": {sleepA: 3, sleepB: 2, release: 65, dbNew: 1},
+ "a raised site": {sleepA: 4, sleepB: 2, release: 65},
+ "a raised total": {sleepA: 3, release: 66},
+ } {
+ out, err := lower(r, counts, nil)
+ if err == nil || out != nil {
+ t.Errorf("%s: wrote %v", name, out)
+ } else if !strings.Contains(err.Error(), "nothing was written") {
+ t.Errorf("%s: %v", name, err)
+ }
+ }
+ // The refusal names the sites that went away, which is what MOVE needs.
+ _, err = lower(rec(at(dbOld, 2)), map[siteKey]int{dbNew: 2}, nil)
+ if err == nil || !strings.Contains(err.Error(), "db-no-context "+dbOld.String()+" (2)") {
+ t.Fatalf("refusal does not offer the gone site: %v", err)
+ }
+}
+
+func TestRecordMove(t *testing.T) {
+ r := rec(at(dbOld, 3), at(release, 65))
+ moves, err := parseMoves(dbOld.String() + ":" + dbNew.String())
+ if err != nil {
+ t.Fatal(err)
+ }
+ // All of it moved.
+ out, err := lower(r, map[siteKey]int{dbNew: 3, release: 65}, moves)
+ if err != nil {
+ t.Fatal(err)
+ }
+ if _, ok := out[dbOld]; ok || out[dbNew].count != 3 || out[dbNew].comment != "# moved-from: "+dbOld.String() {
+ t.Fatalf("moved to %v", out)
+ }
+ // Part of it moved (a function split): both keep what they have.
+ out, err = lower(r, map[siteKey]int{dbOld: 1, dbNew: 2, release: 65}, moves)
+ if err != nil || out[dbOld].count != 1 || out[dbNew].count != 2 {
+ t.Fatalf("split: %v %v", out, err)
+ }
+ // Never more than the old allowance.
+ for name, counts := range map[string]map[siteKey]int{
+ "more than the allowance": {dbNew: 4, release: 65},
+ "the old site keeps too many": {dbOld: 2, dbNew: 2, release: 65},
+ "nothing at the new site": {release: 65},
+ } {
+ if out, err := lower(r, counts, moves); err == nil {
+ t.Errorf("%s: wrote %v", name, out)
+ }
+ }
+ bad := map[string]string{
+ "a total": release.String() + ":internal/x - -",
+ "no such old site": "internal/x F (*sql.DB).Exec:" + dbNew.String(),
+ "not three fields": dbOld.String() + ":internal/consoledb Get",
+ "onto a line": dbOld.String() + ":" + dbOld.String(),
+ }
+ for name, s := range bad {
+ moves, err := parseMoves(s)
+ if err == nil {
+ _, err = lower(r, map[siteKey]int{dbNew: 1, dbOld: 1, release: 65}, moves)
+ }
+ if err == nil {
+ t.Errorf("%s: MOVE %q accepted", name, s)
+ }
+ }
+ if _, err := parseMoves("a b c"); err == nil {
+ t.Error("a MOVE with no colon parsed")
+ }
+}
+
+// The CI step: added or raised lines need a new raised comment or a valid
+// transfer; lowered and dropped lines need nothing.
+func TestRecordAgainstBaseRules(t *testing.T) {
+ base := rec(at(sleepA, 3), at(sleepB, 2, "# raised: an old reason"), at(dbOld, 3), at(release, 65))
+ cases := []struct {
+ name string
+ head record
+ ok bool
+ }{
+ {"unchanged", base, true},
+ {"lowered and dropped", rec(at(sleepA, 1), at(release, 60)), true},
+ {"an added line", rec(at(sleepA, 3), at(sleepB, 2, "# raised: an old reason"), at(dbOld, 3), at(release, 65), at(dbOther, 1)), false},
+ {"an added line, raised", rec(at(sleepA, 3), at(dbOther, 1, "# raised: a fixture needs it")), true},
+ {"a raised line", rec(at(sleepA, 4)), false},
+ {"a raised line, with a reason", rec(at(sleepA, 4, "# raised: the probe waits for a kernel event")), true},
+ {"a raised line keeping the base's reason", rec(at(sleepB, 3, "# raised: an old reason")), false},
+ {"a raised line, a new reason", rec(at(sleepB, 3, "# raised: a second, new reason")), true},
+ {"a raised total", rec(at(release, 66)), false},
+ {"a raised total, with a reason", rec(at(release, 66, "# raised: the new leaf package is not split yet")), true},
+ {"a whole move", rec(at(dbNew, 3, "# moved-from: "+dbOld.String())), true},
+ {"a split move", rec(at(dbOld, 1), at(dbNew, 1, "# moved-from: "+dbOld.String()), at(dbOther, 1, "# moved-from: "+dbOld.String())), true},
+ {"a move taking more", rec(at(dbNew, 4, "# moved-from: "+dbOld.String())), false},
+ {"a split keeping too many", rec(at(dbOld, 2), at(dbNew, 2, "# moved-from: "+dbOld.String())), false},
+ {"a move from nowhere", rec(at(dbNew, 1, "# moved-from: internal/x F (*sql.DB).QueryRow")), false},
+ {"a move onto a base line", rec(at(dbOld, 4, "# moved-from: "+dbOld.String())), false},
+ }
+ for _, c := range cases {
+ problems, _ := checkAgainstBase(base, c.head)
+ if ok := len(problems) == 0; ok != c.ok {
+ t.Errorf("%s: problems %v, want ok=%v", c.name, problems, c.ok)
+ }
+ }
+ // A moved-from line already at the base is an old transfer: unchanged,
+ // it needs nothing; raised, it is a raise like any other.
+ moved := rec(at(dbNew, 3, "# moved-from: "+dbOld.String()))
+ if problems, _ := checkAgainstBase(moved, moved); len(problems) > 0 {
+ t.Errorf("an unchanged old transfer: %v", problems)
+ }
+ if problems, _ := checkAgainstBase(moved, rec(at(dbNew, 4, "# moved-from: "+dbOld.String()))); len(problems) == 0 {
+ t.Error("an old transfer raised again passed")
+ }
+}
+
+func TestRecordFormat(t *testing.T) {
+ r := rec(at(release, 65), at(sleepB, 2), at(dbNew, 3, "# moved-from: "+dbOld.String()), at(sleepA, 1, "# raised: why"))
+ data := r.format()
+ back, err := parseRecord(data)
+ if err != nil {
+ t.Fatal(err)
+ }
+ if string(back.format()) != string(data) {
+ t.Fatal("format does not round-trip")
+ }
+ // Lines come in the metrics table's order, then by site.
+ body := data[strings.Index(string(data), "# metric\t"):]
+ var order []string
+ for _, line := range strings.Split(string(body), "\n")[1:] {
+ if line != "" {
+ order = append(order, strings.SplitN(line, "\t", 3)[2])
+ }
+ }
+ if strings.Join(order, ",") != "TestA\ttime.Sleep\t1\t# raised: why,TestB\ttime.Sleep\t2,(*Store).Get\t(*sql.DB).QueryRow\t3\t# moved-from: "+dbOld.String()+",-\t-\t65" {
+ t.Errorf("order %q", order)
+ }
+ for name, line := range map[string]string{
+ "unknown metric": "sleeps\tp\tF\ttime.Sleep\t1",
+ "zero": "sleep\tp\tF\ttime.Sleep\t0",
+ "four fields": "sleep\tp\tF\t1",
+ "a bare comment": "sleep\tp\tF\ttime.Sleep\t1\t# why",
+ "an empty raise": "sleep\tp\tF\ttime.Sleep\t1\t# raised: ",
+ "a moved total": "release-importers\tinternal/release\t-\t-\t1\t# moved-from: a b c",
+ "twice": "sleep\tp\tF\ttime.Sleep\t1\nsleep\tp\tF\ttime.Sleep\t2",
+ } {
+ if _, err := parseRecord([]byte(line + "\n")); err == nil {
+ t.Errorf("%s: parsed", name)
+ }
+ }
+}
diff --git a/internal/codehealth/record_test.go b/internal/codehealth/record_test.go
new file mode 100644
index 000000000..4d074f4e1
--- /dev/null
+++ b/internal/codehealth/record_test.go
@@ -0,0 +1,338 @@
+package codehealth
+
+import (
+ "bytes"
+ "cmp"
+ "fmt"
+ "maps"
+ "slices"
+ "strconv"
+ "strings"
+)
+
+// recordHeader opens .amadan/code-health.tsv. The record is always written
+// in one form (this header, then the lines sorted), so the gate can insist
+// on it and two branches' edits merge line by line.
+const recordHeader = `# The code-health ratchet's record (internal/codehealth; the Go code
+# health plan, docs/superpowers/plans/2026-11-16-go-code-health.md, Part 2).
+#
+# Each line is metric, package, function, callee, count, tab-separated, and
+# may end with a comment. A site is one offence's place: the package (its
+# directory, "_test" added for an external test package), the enclosing
+# function (for file-lines, the file) and what it calls. The count is how
+# many the site may have: calls, or for func-lines and file-lines code lines
+# (blank and comment-only lines not counted). release-importers is one total.
+#
+# The scan covers this module and launchctx with type information, for
+# GOOS=linux, twice: with no tags and with the gate's (rootrunner and the
+# cutover witnesses'). A site seen in both counts once. Generated files,
+# testdata and files built only for other systems or architectures are not
+# scanned; go test ./internal/codehealth/ -run '^TestCodeHealth$' -v lists
+# them, with every count and the line metrics' physical lengths.
+#
+# - The gate (TestCodeHealth, in make test) fails when the code has more at a
+# site than its line allows, or an offence at a site with no line. Fewer is
+# fine: the gate says so, and the record can be lowered.
+# - make code-health-record lowers lines to what the code has and drops the
+# sites that are gone. It never adds a line or raises one.
+# - A site that moved (a rename, or a move to another package) keeps its
+# allowance with make code-health-record MOVE='<old>:<new>', each side
+# "package function callee"; ";" separates several. The new line says
+# "# moved-from: <old>", and its count plus what is left at the old site
+# can never exceed the old allowance.
+# - Anything else that adds or raises a line is a hand edit ending in
+# "# raised: <reason>". CI's 60-code-health-record step compares this file
+# with the merge base's copy and fails on an added or raised line without
+# a new "# raised:" or a valid "# moved-from:".
+#
+# The metrics:
+`
+
+// recordPath is the record, from this package's directory.
+const recordPath = "../../.amadan/code-health.tsv"
+
+// A recordLine is one line of the record.
+type recordLine struct {
+ key siteKey
+ count int
+ comment string // "", "# raised: ..." or "# moved-from: ..."
+}
+
+func (l recordLine) raised() bool { return strings.HasPrefix(l.comment, "# raised: ") }
+
+// movedFrom returns the site a "# moved-from:" comment names.
+func (l recordLine) movedFrom() (siteKey, bool) {
+ rest, ok := strings.CutPrefix(l.comment, "# moved-from: ")
+ if !ok {
+ return siteKey{}, false
+ }
+ k, err := parseSite(l.key.metric, rest)
+ return k, err == nil
+}
+
+// parseSite reads "package function callee".
+func parseSite(metric, s string) (siteKey, error) {
+ f := strings.Fields(s)
+ if len(f) != 3 {
+ return siteKey{}, fmt.Errorf("%q is not \"package function callee\"", s)
+ }
+ return siteKey{metric, f[0], f[1], f[2]}, nil
+}
+
+type record map[siteKey]recordLine
+
+func parseRecord(data []byte) (record, error) {
+ rec := record{}
+ for i, raw := range strings.Split(string(data), "\n") {
+ if raw == "" || strings.HasPrefix(raw, "#") {
+ continue
+ }
+ f := strings.Split(raw, "\t")
+ if len(f) < 5 || len(f) > 6 {
+ return nil, fmt.Errorf("line %d: want 5 tab-separated fields and an optional comment, got %d", i+1, len(f))
+ }
+ m, ok := metricNamed(f[0])
+ if !ok {
+ return nil, fmt.Errorf("line %d: no metric %q", i+1, f[0])
+ }
+ n, err := strconv.Atoi(f[4])
+ if err != nil || n < 1 {
+ return nil, fmt.Errorf("line %d: count %q is not a whole number above 0", i+1, f[4])
+ }
+ l := recordLine{key: siteKey{f[0], f[1], f[2], f[3]}, count: n}
+ if len(f) == 6 {
+ l.comment = f[5]
+ _, moved := l.movedFrom()
+ if !(l.raised() && len(strings.TrimSpace(strings.TrimPrefix(l.comment, "# raised: "))) > 0) && !moved {
+ return nil, fmt.Errorf("line %d: a comment is \"# raised: <reason>\" or \"# moved-from: <package function callee>\", not %q", i+1, l.comment)
+ }
+ if moved && m.total {
+ return nil, fmt.Errorf("line %d: %s is a total; a total cannot be moved", i+1, m.name)
+ }
+ }
+ if _, dup := rec[l.key]; dup {
+ return nil, fmt.Errorf("line %d: %s %s is listed twice", i+1, l.key.metric, l.key)
+ }
+ rec[l.key] = l
+ }
+ return rec, nil
+}
+
+// metricIndex orders metrics as the metrics table does.
+func metricIndex(name string) int {
+ return slices.IndexFunc(metrics, func(m metric) bool { return m.name == name })
+}
+
+func (rec record) sorted() []recordLine {
+ var lines []recordLine
+ for _, l := range rec {
+ lines = append(lines, l)
+ }
+ slices.SortFunc(lines, func(a, b recordLine) int {
+ return cmp.Or(cmp.Compare(metricIndex(a.key.metric), metricIndex(b.key.metric)),
+ cmp.Compare(a.key.pkg, b.key.pkg), cmp.Compare(a.key.fn, b.key.fn), cmp.Compare(a.key.callee, b.key.callee))
+ })
+ return lines
+}
+
+// format writes the record in its one form.
+func (rec record) format() []byte {
+ var b bytes.Buffer
+ b.WriteString(recordHeader)
+ for _, m := range metrics {
+ fmt.Fprintf(&b, "# %-17s %s\n", m.name, m.what)
+ }
+ b.WriteString("#\n# metric\tpackage\tfunction\tcallee\tcount\n")
+ for _, l := range rec.sorted() {
+ fmt.Fprintf(&b, "%s\t%s\t%s\t%s\t%d", l.key.metric, l.key.pkg, l.key.fn, l.key.callee, l.count)
+ if l.comment != "" {
+ b.WriteString("\t" + l.comment)
+ }
+ b.WriteString("\n")
+ }
+ return b.Bytes()
+}
+
+// A difference is a site whose count in the code is not its record's.
+type difference struct {
+ key siteKey
+ code, allowed int
+}
+
+func (d difference) String() string {
+ return fmt.Sprintf("%s %s: %d in the code, the record allows %d", d.key.metric, d.key, d.code, d.allowed)
+}
+
+// compare sets the code's counts against the record: over is every site
+// above its line (or with none), under every line above the code.
+func compare(rec record, counts map[siteKey]int) (over, under []difference) {
+ for k, n := range counts {
+ if allowed := rec[k].count; n > allowed {
+ over = append(over, difference{k, n, allowed})
+ }
+ }
+ for k, l := range rec {
+ if n := counts[k]; n < l.count {
+ under = append(under, difference{k, n, l.count})
+ }
+ }
+ order := func(a, b difference) int {
+ return cmp.Or(cmp.Compare(metricIndex(a.key.metric), metricIndex(b.key.metric)), cmp.Compare(a.key.String(), b.key.String()))
+ }
+ slices.SortFunc(over, order)
+ slices.SortFunc(under, order)
+ return over, under
+}
+
+// A move is one MOVE pair.
+type move struct{ old, new string }
+
+func parseMoves(s string) ([]move, error) {
+ var out []move
+ for _, pair := range strings.Split(s, ";") {
+ if strings.TrimSpace(pair) == "" {
+ continue
+ }
+ old, new, ok := strings.Cut(pair, ":")
+ if !ok || strings.Contains(new, ":") {
+ return nil, fmt.Errorf("MOVE pair %q is not <old>:<new>", pair)
+ }
+ out = append(out, move{strings.TrimSpace(old), strings.TrimSpace(new)})
+ }
+ return out, nil
+}
+
+// lower is make code-health-record: it applies the moves, lowers every
+// line to the code's count, and drops sites that are gone. It refuses,
+// changing nothing, when the result would still leave the code above the
+// record anywhere, since it can never add or raise a line itself.
+func lower(rec record, counts map[siteKey]int, moves []move) (record, error) {
+ out := record{}
+ for k, l := range rec {
+ out[k] = l
+ }
+ for _, mv := range moves {
+ var old recordLine
+ found := false
+ for k, l := range out {
+ if k.String() == strings.Join(strings.Fields(mv.old), " ") {
+ old, found = l, true
+ break
+ }
+ }
+ if !found {
+ return nil, fmt.Errorf("MOVE: the record has no site %q", mv.old)
+ }
+ newKey, err := parseSite(old.key.metric, mv.new)
+ if err != nil {
+ return nil, fmt.Errorf("MOVE: %v", err)
+ }
+ if m, _ := metricNamed(old.key.metric); m.total {
+ return nil, fmt.Errorf("MOVE: %s is a total; a total cannot be moved", m.name)
+ }
+ if _, exists := out[newKey]; exists {
+ return nil, fmt.Errorf("MOVE: %s already has a line; a move goes to a site with none", newKey)
+ }
+ moved, left := counts[newKey], counts[old.key]
+ if moved == 0 {
+ return nil, fmt.Errorf("MOVE: the code has no %s offence at %s", old.key.metric, newKey)
+ }
+ if moved+left > old.count {
+ return nil, fmt.Errorf("MOVE: %s would hold %d and %s keeps %d, more than the %d %s allows; a move never raises",
+ newKey, moved, old.key, left, old.count, old.key)
+ }
+ out[newKey] = recordLine{key: newKey, count: moved, comment: "# moved-from: " + old.key.String()}
+ }
+ for k, l := range out {
+ if n := counts[k]; n < l.count {
+ if n == 0 {
+ delete(out, k)
+ continue
+ }
+ l.count = n
+ out[k] = l
+ }
+ }
+ if over, _ := compare(out, counts); len(over) > 0 {
+ var b strings.Builder
+ b.WriteString("the code is above the record, which this command never raises; nothing was written:\n")
+ for _, d := range over {
+ fmt.Fprintf(&b, " %s\n", d)
+ }
+ var gone []string
+ for _, l := range rec.sorted() {
+ if counts[l.key] == 0 && !l.key.isTotal() {
+ gone = append(gone, fmt.Sprintf(" %s %s (%d)", l.key.metric, l.key, l.count))
+ }
+ }
+ if len(gone) > 0 {
+ b.WriteString("sites the record allows that the code no longer has, if one of those moved:\n")
+ b.WriteString(strings.Join(gone, "\n") + "\n")
+ b.WriteString(" make code-health-record MOVE='<old package function callee>:<new package function callee>'\n")
+ }
+ b.WriteString("a deliberate raise is a hand edit ending in \"# raised: <reason>\"")
+ return nil, fmt.Errorf("%s", b.String())
+ }
+ return out, nil
+}
+
+func (k siteKey) isTotal() bool {
+ m, _ := metricNamed(k.metric)
+ return m.total
+}
+
+// checkAgainstBase is the CI step's rule: every line of head that is new
+// or higher than in base needs a new "# raised:" comment or a valid
+// "# moved-from:" transfer. A transfer is valid when the site it names has
+// a line in base, the moved line is new, and what the old site keeps plus
+// every line moved from it in this change is no more than its base
+// allowance. It returns what fails, and notes on what was accepted.
+func checkAgainstBase(base, head record) (problems, notes []string) {
+ transfers := map[siteKey][]recordLine{}
+ for _, h := range head.sorted() {
+ b, inBase := base[h.key]
+ if inBase && h.count <= b.count {
+ continue
+ }
+ what := fmt.Sprintf("%s %s: %d", h.key.metric, h.key, h.count)
+ if inBase {
+ what += fmt.Sprintf(", up from %d", b.count)
+ } else {
+ what += ", a new line"
+ }
+ newComment := !inBase || h.comment != b.comment
+ switch old, moved := h.movedFrom(); {
+ case h.raised() && newComment:
+ notes = append(notes, what+": "+h.comment)
+ case moved && !inBase:
+ transfers[old] = append(transfers[old], h)
+ case h.raised() || moved:
+ problems = append(problems, what+": its comment is the merge base's; a raise needs a new \"# raised: <reason>\"")
+ default:
+ problems = append(problems, what+": needs \"# raised: <reason>\" or a moved-from transfer")
+ }
+ }
+ for _, old := range slices.SortedFunc(maps.Keys(transfers), func(a, b siteKey) int { return cmp.Compare(a.String(), b.String()) }) {
+ lines := transfers[old]
+ b, ok := base[old]
+ if !ok {
+ for _, l := range lines {
+ problems = append(problems, fmt.Sprintf("%s %s: moved from %s, which has no line at the merge base", l.key.metric, l.key, old))
+ }
+ continue
+ }
+ total := head[old].count
+ var names []string
+ for _, l := range lines {
+ total += l.count
+ names = append(names, fmt.Sprintf("%s (%d)", l.key, l.count))
+ }
+ if total > b.count {
+ problems = append(problems, fmt.Sprintf("%s %s: allowed %d at the merge base, but it keeps %d and %s took %d between them; a move never raises",
+ old.metric, old, b.count, head[old].count, strings.Join(names, ", "), total-head[old].count))
+ continue
+ }
+ notes = append(notes, fmt.Sprintf("%s %s moved to %s (allowed %d at the merge base)", old.metric, old, strings.Join(names, ", "), b.count))
+ }
+ return problems, notes
+}
diff --git a/internal/codehealth/scan_test.go b/internal/codehealth/scan_test.go
new file mode 100644
index 000000000..8ffec1f75
--- /dev/null
+++ b/internal/codehealth/scan_test.go
@@ -0,0 +1,568 @@
+// Package codehealth is the code-health ratchet (Go code health plan,
+// docs/superpowers/plans/2026-11-16-go-code-health.md, Part 2). It scans
+// the tree with type information, counts a fixed set of offences, and
+// compares them with the record in .amadan/code-health.tsv, which may only
+// go down.
+//
+// The package is test-only, so nothing links it and it is outside the
+// census. This file is the scanner; record_test.go reads and writes the
+// record; codehealth_test.go holds the gate and the two commands
+// (make code-health-record, and the CI step that compares the record with
+// the merge base's).
+package codehealth
+
+import (
+ "bytes"
+ "fmt"
+ "go/ast"
+ "go/build/constraint"
+ "go/scanner"
+ "go/token"
+ "go/types"
+ "os"
+ "path/filepath"
+ "slices"
+ "strings"
+ "sync"
+
+ "golang.org/x/tools/go/packages"
+)
+
+// A metric is one thing the ratchet counts.
+type metric struct {
+ name string
+ // total: one number for the whole tree, not one per site.
+ total bool
+ // lines: the count is a length, so the same site seen twice (one
+ // function built under two tags) is its longer copy, not the sum.
+ lines bool
+ what string
+}
+
+// metrics is every metric, in the order the record lists them.
+var metrics = []metric{
+ {name: "fatal", what: "log.Fatal*, (*log.Logger).Fatal* and os.Exit in the root package's production files"},
+ {name: "sleep", what: "time.Sleep in test files"},
+ {name: "db-no-context", what: "database calls with no context (dbOpWithoutContext) in production files"},
+ {name: "host-context", what: "context.Background and context.TODO in internal/host production files"},
+ {name: "func-lines", lines: true, what: "functions over 300 code lines (blank and comment-only lines not counted)"},
+ {name: "file-lines", lines: true, what: "files over 3,000 code lines, counted the same way"},
+ {name: "release-importers", total: true, what: "packages whose production files import internal/release"},
+}
+
+func metricNamed(name string) (metric, bool) {
+ for _, m := range metrics {
+ if m.name == name {
+ return m, true
+ }
+ }
+ return metric{}, false
+}
+
+// A siteKey is a site's identity: the package it is in (its directory
+// from the repo root, "_test" appended for an external test package), the
+// enclosing function (or, for file-lines, the file) and the callee. None
+// of the three holds a space or a colon, which is what lets
+// "package function callee" name a site in MOVE.
+type siteKey struct {
+ metric, pkg, fn, callee string
+}
+
+func (k siteKey) String() string { return k.pkg + " " + k.fn + " " + k.callee }
+
+// The line limits. A site is a function or file longer than these, in
+// code lines.
+type limits struct{ fn, file int }
+
+var treeLimits = limits{fn: 300, file: 3000}
+
+// The two build configurations, both GOOS=linux: what production builds
+// (no tags) and the gate's tags, so a `!rootrunner` production file and
+// the rootrunner tests are both seen. A site seen in both is counted once.
+// The second tag is spelled in two halves: TestCutoverWitnessControlsAreTagged
+// allows its full name only in the files that build with it.
+var tagSets = [][]string{nil, {"rootrunner", "carlos_cutover" + "_witness"}}
+
+// A tree is what one scan covers: modules (directories holding a go.mod,
+// relative to root) and the limits for the line metrics.
+type tree struct {
+ root string
+ modules []string
+ limits limits
+}
+
+// A scanResult is the scan's answer.
+type scanResult struct {
+ counts map[siteKey]int
+ // physical is the physical length of each line-metric site, printed as
+ // a report and never compared.
+ physical map[siteKey]int
+ // skipped names each file the scan did not read and why: built only for
+ // other systems, architectures or tags, or generated.
+ skipped map[string]string
+ // importers lists the packages counted by release-importers.
+ importers []string
+}
+
+// scanTree loads every module under both configurations and counts.
+func scanTree(tr tree) (*scanResult, error) {
+ type job struct {
+ module string
+ tags []string
+ pkgs []*packages.Package
+ err error
+ }
+ var jobs []*job
+ for _, mod := range tr.modules {
+ for _, tags := range tagSets {
+ jobs = append(jobs, &job{module: mod, tags: tags})
+ }
+ }
+ sqlSigs, err := loadSQLSignatures(tr.root)
+ if err != nil {
+ return nil, err
+ }
+ var wg sync.WaitGroup
+ for _, j := range jobs {
+ wg.Go(func() { j.pkgs, j.err = load(filepath.Join(tr.root, j.module), j.tags) })
+ }
+ wg.Wait()
+
+ s := &scanState{
+ tree: tr,
+ sqlSigs: sqlSigs,
+ result: &scanResult{counts: map[siteKey]int{}, physical: map[siteKey]int{}, skipped: map[string]string{}},
+ seen: map[string]bool{},
+ lengths: map[string]int{},
+ importers: map[string]bool{},
+ scanned: map[string]bool{},
+ ignored: map[string]bool{},
+ }
+ for _, j := range jobs {
+ if j.err != nil {
+ return nil, fmt.Errorf("loading %s with tags %v: %w", j.module, j.tags, j.err)
+ }
+ modPath := ""
+ for _, p := range j.pkgs {
+ if p.Module != nil && p.Module.Main {
+ modPath = p.Module.Path
+ break
+ }
+ }
+ for _, p := range j.pkgs {
+ s.pkg(p, modPath, j.tags)
+ }
+ }
+ s.finish()
+ return s.result, nil
+}
+
+// load is one go/packages load: tests included, with types, for linux.
+// GOARCH is left as it is; files whose inclusion depends on it are skipped
+// (archNeutral), so amd64 and arm64 machines count the same.
+func load(dir string, tags []string) ([]*packages.Package, error) {
+ cfg := &packages.Config{
+ Mode: packages.NeedName | packages.NeedFiles | packages.NeedSyntax | packages.NeedTypes |
+ packages.NeedTypesInfo | packages.NeedImports | packages.NeedModule,
+ Dir: dir,
+ Tests: true,
+ Env: append(os.Environ(), "GOOS=linux", "CGO_ENABLED=0", "GOWORK=off"),
+ }
+ if len(tags) > 0 {
+ cfg.BuildFlags = []string{"-tags=" + strings.Join(tags, ",")}
+ }
+ pkgs, err := packages.Load(cfg, "./...")
+ if err != nil {
+ return nil, err
+ }
+ var errs []string
+ packages.Visit(pkgs, nil, func(p *packages.Package) {
+ for _, e := range p.Errors {
+ errs = append(errs, e.Error())
+ }
+ })
+ if len(errs) > 0 {
+ return nil, fmt.Errorf("%d package errors, first: %s", len(errs), errs[0])
+ }
+ return pkgs, nil
+}
+
+// dbOps are the database calls the classifier knows, each with the
+// context-taking call that replaces it.
+var dbOps = map[string]string{
+ "Query": "QueryContext",
+ "QueryRow": "QueryRowContext",
+ "Exec": "ExecContext",
+ "Prepare": "PrepareContext",
+ "Begin": "BeginTx",
+}
+
+// loadSQLSignatures reads database/sql's own DB, Tx, Conn and Stmt and
+// returns, for each name in dbOps, the signatures those types give it.
+func loadSQLSignatures(root string) (map[string][]string, error) {
+ cfg := &packages.Config{Mode: packages.NeedName | packages.NeedTypes, Dir: root,
+ Env: append(os.Environ(), "GOOS=linux", "CGO_ENABLED=0", "GOWORK=off")}
+ pkgs, err := packages.Load(cfg, "database/sql")
+ if err != nil {
+ return nil, err
+ }
+ if len(pkgs) != 1 || pkgs[0].Types == nil || len(pkgs[0].Errors) > 0 {
+ return nil, fmt.Errorf("could not load database/sql: %v", pkgs)
+ }
+ sigs := map[string][]string{}
+ for _, typ := range []string{"DB", "Tx", "Conn", "Stmt"} {
+ obj := pkgs[0].Types.Scope().Lookup(typ)
+ if obj == nil {
+ return nil, fmt.Errorf("database/sql has no %s", typ)
+ }
+ mset := types.NewMethodSet(types.NewPointer(obj.Type()))
+ for i := range mset.Len() {
+ fn := mset.At(i).Obj().(*types.Func)
+ if _, ok := dbOps[fn.Name()]; ok {
+ sig := signatureString(fn.Signature())
+ if !slices.Contains(sigs[fn.Name()], sig) {
+ sigs[fn.Name()] = append(sigs[fn.Name()], sig)
+ }
+ }
+ }
+ }
+ if len(sigs) != len(dbOps) {
+ return nil, fmt.Errorf("database/sql gave signatures for %d of the %d calls", len(sigs), len(dbOps))
+ }
+ return sigs, nil
+}
+
+// dbOpWithoutContext is the database classifier, and the only place its
+// rule lives. A call is a database operation without a context when its
+// callee is a method named in dbOps whose signature is identical to a
+// database/sql DB, Tx, Conn or Stmt method of that name. That covers
+// those types' own methods and any other type or interface with the same
+// method (console's sqlQueryer.QueryRow and sqlHandle.Begin), wherever it
+// lives, without a list of receivers. If a form turns up that this
+// misses, change it here, with a fixture.
+func dbOpWithoutContext(fn *types.Func, sqlSigs map[string][]string) bool {
+ refs := sqlSigs[fn.Name()]
+ if len(refs) == 0 || fn.Signature().Recv() == nil {
+ return false
+ }
+ return slices.Contains(refs, signatureString(fn.Signature()))
+}
+
+// signatureString writes a signature's parameter and result types, with
+// full package paths and without names or receiver, so two signatures
+// compare equal as text. `interface{}` is written as `any`.
+func signatureString(sig *types.Signature) string {
+ var b strings.Builder
+ tuple := func(t *types.Tuple, variadic bool) {
+ for i := range t.Len() {
+ if i > 0 {
+ b.WriteString(", ")
+ }
+ typ := t.At(i).Type()
+ if variadic && i == t.Len()-1 {
+ b.WriteString("...")
+ typ = typ.(*types.Slice).Elem()
+ }
+ b.WriteString(strings.ReplaceAll(types.TypeString(types.Unalias(typ), nil), "interface{}", "any"))
+ }
+ }
+ b.WriteString("(")
+ tuple(sig.Params(), sig.Variadic())
+ b.WriteString(") (")
+ tuple(sig.Results(), false)
+ b.WriteString(")")
+ return b.String()
+}
+
+// scanState is one scan in progress.
+type scanState struct {
+ tree tree
+ sqlSigs map[string][]string
+ result *scanResult
+ // seen holds each occurrence already counted (metric, file, offset), so
+ // a file read in both configurations, or in a package and its test
+ // variant, counts once.
+ seen map[string]bool
+ // lengths holds each line-metric occurrence's length by the same key.
+ lengths map[string]int
+ importers map[string]bool
+ scanned map[string]bool // files read
+ ignored map[string]bool // files a load left out
+}
+
+// add counts one occurrence. For a line metric n is the length.
+func (s *scanState) add(m string, file string, offset int, key siteKey, n, physical int) {
+ id := fmt.Sprintf("%s\x00%s\x00%d", m, file, offset)
+ if s.seen[id] {
+ return
+ }
+ s.seen[id] = true
+ mt, _ := metricNamed(m)
+ if mt.lines {
+ // The same function under two tags is two declarations with one
+ // identity: keep the longer.
+ if n > s.result.counts[key] {
+ s.result.counts[key] = n
+ s.result.physical[key] = physical
+ }
+ return
+ }
+ s.result.counts[key] += n
+}
+
+// pkg scans one loaded package.
+func (s *scanState) pkg(p *packages.Package, modPath string, tags []string) {
+ for _, f := range p.IgnoredFiles {
+ s.ignored[f] = true
+ }
+ if p.Name == "main" && strings.HasSuffix(p.ID, ".test") {
+ return // the generated test main
+ }
+ dir, err := filepath.Rel(s.tree.root, p.Dir)
+ if err != nil || strings.HasPrefix(dir, "..") {
+ return
+ }
+ dir = filepath.ToSlash(dir)
+ name := dir
+ if strings.HasSuffix(p.Name, "_test") {
+ name = dir + "_test"
+ }
+ for _, f := range p.Syntax {
+ file := p.Fset.File(f.Pos()).Name()
+ rel, err := filepath.Rel(s.tree.root, file)
+ if err != nil || strings.HasPrefix(rel, "..") {
+ continue // generated by the go command, outside the tree
+ }
+ rel = filepath.ToSlash(rel)
+ if slices.Contains(strings.Split(rel, "/"), "testdata") {
+ continue
+ }
+ src, err := os.ReadFile(file)
+ if err != nil {
+ continue
+ }
+ if ast.IsGenerated(f) {
+ s.result.skipped[rel] = "generated"
+ continue
+ }
+ if !archNeutral(file, src, tags) {
+ s.result.skipped[rel] = "built only for some architectures"
+ continue
+ }
+ s.scanned[file] = true
+ s.file(p, f, file, rel, src, dir, name, modPath)
+ }
+}
+
+// file scans one file of package p.
+func (s *scanState) file(p *packages.Package, f *ast.File, file, rel string, src []byte, dir, pkgName, modPath string) {
+ test := strings.HasSuffix(file, "_test.go")
+ fset := p.Fset
+ code := codeLines(src)
+ count := func(from, to int) int {
+ n := 0
+ for l := from; l <= to; l++ {
+ if code[l] {
+ n++
+ }
+ }
+ return n
+ }
+ tf := fset.File(f.Pos())
+
+ if n := len(code); n > s.tree.limits.file {
+ s.add("file-lines", file, 0, siteKey{"file-lines", dir, filepath.Base(file), "-"}, n, tf.LineCount())
+ }
+
+ if !test && modPath != "" {
+ for _, imp := range f.Imports {
+ if strings.Trim(imp.Path.Value, "\"`") == modPath+"/internal/release" {
+ s.importers[pkgName] = true
+ }
+ }
+ }
+
+ for _, decl := range f.Decls {
+ fn := "package-level"
+ if fd, ok := decl.(*ast.FuncDecl); ok {
+ fn = funcName(fd)
+ from, to := fset.Position(fd.Pos()).Line, fset.Position(fd.End()).Line
+ if n := count(from, to); n > s.tree.limits.fn {
+ s.add("func-lines", file, tf.Offset(fd.Pos()), siteKey{"func-lines", pkgName, fn, "-"}, n, to-from+1)
+ }
+ }
+ ast.Inspect(decl, func(n ast.Node) bool {
+ id, ok := n.(*ast.Ident)
+ if !ok {
+ return true
+ }
+ obj, ok := p.TypesInfo.Uses[id].(*types.Func)
+ if !ok || obj.Pkg() == nil {
+ return true
+ }
+ obj = obj.Origin()
+ for _, m := range s.offences(obj, test, dir) {
+ s.add(m, file, tf.Offset(id.Pos()), siteKey{m, pkgName, fn, calleeName(obj)}, 1, 0)
+ }
+ return true
+ })
+ }
+}
+
+// offences names the metrics a use of fn counts towards, in a file of the
+// package in dir.
+func (s *scanState) offences(fn *types.Func, test bool, dir string) []string {
+ path, name := fn.Pkg().Path(), fn.Name()
+ recv := fn.Signature().Recv()
+ var out []string
+ if !test && dir == "." {
+ switch {
+ case path == "log" && strings.HasPrefix(name, "Fatal"),
+ path == "os" && name == "Exit" && recv == nil:
+ out = append(out, "fatal")
+ }
+ }
+ if test && path == "time" && name == "Sleep" {
+ out = append(out, "sleep")
+ }
+ if !test && (dir == "internal/host" || strings.HasPrefix(dir, "internal/host/")) &&
+ path == "context" && (name == "Background" || name == "TODO") {
+ out = append(out, "host-context")
+ }
+ if !test && dbOpWithoutContext(fn, s.sqlSigs) {
+ out = append(out, "db-no-context")
+ }
+ return out
+}
+
+// finish adds the totals and the list of files no configuration read.
+func (s *scanState) finish() {
+ if n := len(s.importers); n > 0 {
+ s.result.counts[siteKey{"release-importers", "internal/release", "-", "-"}] = n
+ }
+ for imp := range s.importers {
+ s.result.importers = append(s.result.importers, imp)
+ }
+ slices.Sort(s.result.importers)
+ for file := range s.ignored {
+ if s.scanned[file] {
+ continue
+ }
+ rel, err := filepath.Rel(s.tree.root, file)
+ if err != nil {
+ continue
+ }
+ s.result.skipped[filepath.ToSlash(rel)] = "built only for other systems or tags"
+ }
+}
+
+// funcName is a declaration's name as the record writes it: F, T.M or
+// (*T).M, type parameters left out.
+func funcName(fd *ast.FuncDecl) string {
+ if fd.Recv == nil || len(fd.Recv.List) == 0 {
+ return fd.Name.Name
+ }
+ typ := fd.Recv.List[0].Type
+ ptr := false
+ if star, ok := typ.(*ast.StarExpr); ok {
+ typ, ptr = star.X, true
+ }
+ switch t := typ.(type) {
+ case *ast.IndexExpr:
+ typ = t.X
+ case *ast.IndexListExpr:
+ typ = t.X
+ }
+ recv := "?"
+ if id, ok := typ.(*ast.Ident); ok {
+ recv = id.Name
+ }
+ if ptr {
+ return "(*" + recv + ")." + fd.Name.Name
+ }
+ return recv + "." + fd.Name.Name
+}
+
+// calleeName is a function's name as the record writes it: pkg.F,
+// pkg.T.M or (*pkg.T).M, with the package's name rather than its path.
+func calleeName(fn *types.Func) string {
+ recv := fn.Signature().Recv()
+ if recv == nil {
+ return fn.Pkg().Name() + "." + fn.Name()
+ }
+ typ, ptr := recv.Type(), false
+ if pt, ok := typ.(*types.Pointer); ok {
+ typ, ptr = pt.Elem(), true
+ }
+ name := "interface"
+ if n, ok := types.Unalias(typ).(*types.Named); ok && n.Obj().Pkg() != nil {
+ name = n.Obj().Pkg().Name() + "." + n.Obj().Name()
+ }
+ if ptr {
+ return "(*" + name + ")." + fn.Name()
+ }
+ return name + "." + fn.Name()
+}
+
+// codeLines returns the set of lines (1-based) in src that hold code: at
+// least one token that is not a comment. A token spanning lines (a raw
+// string) marks each of them.
+func codeLines(src []byte) map[int]bool {
+ fset := token.NewFileSet()
+ tf := fset.AddFile("", -1, len(src))
+ var sc scanner.Scanner
+ sc.Init(tf, src, nil, 0) // comments are skipped
+ lines := map[int]bool{}
+ for {
+ pos, tok, lit := sc.Scan()
+ if tok == token.EOF {
+ break
+ }
+ if tok == token.SEMICOLON && lit == "\n" {
+ continue // inserted at a line end: that line has code already
+ }
+ line := tf.Line(pos)
+ for i := 0; i <= strings.Count(lit, "\n"); i++ {
+ lines[line+i] = true
+ }
+ }
+ return lines
+}
+
+// arches are the GOARCH values a file name can end in.
+var arches = []string{"386", "amd64", "arm", "arm64", "loong64", "mips", "mipsle", "mips64",
+ "mips64le", "ppc64", "ppc64le", "riscv64", "s390x", "wasm"}
+
+// archNeutral reports whether file is built the same on amd64 and arm64
+// under linux and tags. The scan leaves GOARCH as the machine has it, so a
+// file that depends on it would count differently on a laptop and in CI;
+// such files are skipped and listed instead. There are none today.
+func archNeutral(file string, src []byte, tags []string) bool {
+ base := strings.TrimSuffix(strings.TrimSuffix(filepath.Base(file), ".go"), "_test")
+ for _, a := range arches {
+ if strings.HasSuffix(base, "_"+a) {
+ return false
+ }
+ }
+ var expr constraint.Expr
+ for line := range bytes.Lines(src) {
+ text := strings.TrimSpace(string(line))
+ if strings.HasPrefix(text, "package ") {
+ break
+ }
+ if constraint.IsGoBuild(text) {
+ expr, _ = constraint.Parse(text)
+ break
+ }
+ }
+ if expr == nil {
+ return true
+ }
+ on := func(arch string) func(string) bool {
+ return func(tag string) bool {
+ return tag == "linux" || tag == "unix" || tag == "gc" || tag == arch ||
+ strings.HasPrefix(tag, "go1.") || slices.Contains(tags, tag)
+ }
+ }
+ return expr.Eval(on("amd64")) == expr.Eval(on("arm64"))
+}
diff --git a/internal/codehealth/testdata/fixture/consoledb/consoledb.go b/internal/codehealth/testdata/fixture/consoledb/consoledb.go
new file mode 100644
index 000000000..00750f115
--- /dev/null
+++ b/internal/codehealth/testdata/fixture/consoledb/consoledb.go
@@ -0,0 +1,19 @@
+// Package consoledb is where store's calls went after a move to another
+// package: the metric follows them.
+package consoledb
+
+import (
+ "database/sql"
+
+ "fixture.test/store"
+)
+
+type sqlQueryer interface {
+ QueryRow(query string, args ...any) *sql.Row
+}
+
+func Get(db *sql.DB, q sqlQueryer, sq store.Queryer) {
+ db.QueryRow("q") // counted here as it was in store
+ q.QueryRow("q") // its own narrow interface: counted
+ sq.QueryRow("q") // store's interface, from another package: counted
+}
diff --git a/internal/codehealth/testdata/fixture/gen.go b/internal/codehealth/testdata/fixture/gen.go
new file mode 100644
index 000000000..fe58cef66
--- /dev/null
+++ b/internal/codehealth/testdata/fixture/gen.go
@@ -0,0 +1,7 @@
+// Code generated by the fixture. DO NOT EDIT.
+
+package main
+
+import "log"
+
+func generated() { log.Fatal("a generated file: not counted") }
diff --git a/internal/codehealth/testdata/fixture/go.mod b/internal/codehealth/testdata/fixture/go.mod
new file mode 100644
index 000000000..8bd7db9d8
--- /dev/null
+++ b/internal/codehealth/testdata/fixture/go.mod
@@ -0,0 +1,3 @@
+module fixture.test
+
+go 1.26
diff --git a/internal/codehealth/testdata/fixture/imp/a/a.go b/internal/codehealth/testdata/fixture/imp/a/a.go
new file mode 100644
index 000000000..814916279
--- /dev/null
+++ b/internal/codehealth/testdata/fixture/imp/a/a.go
@@ -0,0 +1,5 @@
+package a
+
+import "fixture.test/internal/release"
+
+func V() int { return release.V() }
diff --git a/internal/codehealth/testdata/fixture/imp/b/b.go b/internal/codehealth/testdata/fixture/imp/b/b.go
new file mode 100644
index 000000000..79a7f9b60
--- /dev/null
+++ b/internal/codehealth/testdata/fixture/imp/b/b.go
@@ -0,0 +1,6 @@
+package b
+
+import rel "fixture.test/internal/release"
+
+// Imported under another name, and in two files: one importer.
+func V() int { return rel.V() }
diff --git a/internal/codehealth/testdata/fixture/imp/b/b2.go b/internal/codehealth/testdata/fixture/imp/b/b2.go
new file mode 100644
index 000000000..dc001b741
--- /dev/null
+++ b/internal/codehealth/testdata/fixture/imp/b/b2.go
@@ -0,0 +1,5 @@
+package b
+
+import "fixture.test/internal/release"
+
+func W() int { return release.V() }
diff --git a/internal/codehealth/testdata/fixture/imp/c/c.go b/internal/codehealth/testdata/fixture/imp/c/c.go
new file mode 100644
index 000000000..65d18001b
--- /dev/null
+++ b/internal/codehealth/testdata/fixture/imp/c/c.go
@@ -0,0 +1,4 @@
+// Package c imports release only in a test file: not counted.
+package c
+
+func V() int { return 1 }
diff --git a/internal/codehealth/testdata/fixture/imp/c/c_test.go b/internal/codehealth/testdata/fixture/imp/c/c_test.go
new file mode 100644
index 000000000..d4450f1a4
--- /dev/null
+++ b/internal/codehealth/testdata/fixture/imp/c/c_test.go
@@ -0,0 +1,9 @@
+package c
+
+import (
+ "testing"
+
+ "fixture.test/internal/release"
+)
+
+func TestV(t *testing.T) { _ = release.V() }
diff --git a/internal/codehealth/testdata/fixture/internal/host/host.go b/internal/codehealth/testdata/fixture/internal/host/host.go
new file mode 100644
index 000000000..624c401ba
--- /dev/null
+++ b/internal/codehealth/testdata/fixture/internal/host/host.go
@@ -0,0 +1,8 @@
+package host
+
+import "context"
+
+// Read under both configurations, counted once.
+func Run() context.Context { return context.Background() }
+
+func todo() context.Context { return context.TODO() }
diff --git a/internal/codehealth/testdata/fixture/internal/host/host_test.go b/internal/codehealth/testdata/fixture/internal/host/host_test.go
new file mode 100644
index 000000000..8f27310f5
--- /dev/null
+++ b/internal/codehealth/testdata/fixture/internal/host/host_test.go
@@ -0,0 +1,10 @@
+package host
+
+import (
+ "context"
+ "testing"
+)
+
+func TestRun(t *testing.T) {
+ _ = context.Background() // a test file: not counted
+}
diff --git a/internal/codehealth/testdata/fixture/internal/host/queue_default.go b/internal/codehealth/testdata/fixture/internal/host/queue_default.go
new file mode 100644
index 000000000..b4fb2994e
--- /dev/null
+++ b/internal/codehealth/testdata/fixture/internal/host/queue_default.go
@@ -0,0 +1,8 @@
+//go:build !rootrunner
+
+package host
+
+import "context"
+
+// A production file the gate's tags drop: counted all the same.
+func queue() context.Context { return context.Background() }
diff --git a/internal/codehealth/testdata/fixture/internal/host/queue_rootrunner.go b/internal/codehealth/testdata/fixture/internal/host/queue_rootrunner.go
new file mode 100644
index 000000000..ed1735d68
--- /dev/null
+++ b/internal/codehealth/testdata/fixture/internal/host/queue_rootrunner.go
@@ -0,0 +1,8 @@
+//go:build rootrunner
+
+package host
+
+import "context"
+
+// Built only with the gate's tags: counted.
+func queue() context.Context { return context.TODO() }
diff --git a/internal/codehealth/testdata/fixture/internal/host/sub/sub.go b/internal/codehealth/testdata/fixture/internal/host/sub/sub.go
new file mode 100644
index 000000000..41389ae38
--- /dev/null
+++ b/internal/codehealth/testdata/fixture/internal/host/sub/sub.go
@@ -0,0 +1,6 @@
+// Package sub is inside internal/host: counted.
+package sub
+
+import "context"
+
+func Run() context.Context { return context.Background() }
diff --git a/internal/codehealth/testdata/fixture/internal/hostops/ops.go b/internal/codehealth/testdata/fixture/internal/hostops/ops.go
new file mode 100644
index 000000000..268314207
--- /dev/null
+++ b/internal/codehealth/testdata/fixture/internal/hostops/ops.go
@@ -0,0 +1,6 @@
+// Package hostops only shares internal/host's prefix: not counted.
+package hostops
+
+import "context"
+
+func Run() context.Context { return context.Background() }
diff --git a/internal/codehealth/testdata/fixture/internal/release/release.go b/internal/codehealth/testdata/fixture/internal/release/release.go
new file mode 100644
index 000000000..02d55f2b4
--- /dev/null
+++ b/internal/codehealth/testdata/fixture/internal/release/release.go
@@ -0,0 +1,3 @@
+package release
+
+func V() int { return 1 }
diff --git a/internal/codehealth/testdata/fixture/internal/release/sub/sub.go b/internal/codehealth/testdata/fixture/internal/release/sub/sub.go
new file mode 100644
index 000000000..21d9bcff8
--- /dev/null
+++ b/internal/codehealth/testdata/fixture/internal/release/sub/sub.go
@@ -0,0 +1,6 @@
+// Package sub is release's own subpackage, and imports it: counted.
+package sub
+
+import "fixture.test/internal/release"
+
+func V() int { return release.V() }
diff --git a/internal/codehealth/testdata/fixture/main.go b/internal/codehealth/testdata/fixture/main.go
new file mode 100644
index 000000000..8ae550f25
--- /dev/null
+++ b/internal/codehealth/testdata/fixture/main.go
@@ -0,0 +1,35 @@
+// The root package's production code: what the fatal metric counts.
+package main
+
+import (
+ "log"
+ lg "log"
+ "os"
+ "time"
+)
+
+// exit is a seam. The reference to os.Exit counts, at package level.
+var exit = os.Exit
+
+type logger struct{}
+
+// Fatal is not log's, so it is not counted.
+func (logger) Fatal(string) {}
+
+func main() {
+ log.Fatal("counted")
+ lg.Fatalf("counted through the alias %d", 1)
+ log.New(os.Stderr, "", 0).Fatalln("(*log.Logger).Fatalln, counted")
+ os.Exit(2)
+ logger{}.Fatal("not log's")
+ _ = "log.Fatal in a string is not a call"
+ // log.Fatal in a comment is not a call.
+ log.Print("not fatal")
+ run()
+}
+
+func run() {
+ log.Fatal("one")
+ log.Fatal("two")
+ time.Sleep(time.Millisecond) // a sleep in production code: not counted
+}
diff --git a/internal/codehealth/testdata/fixture/main_arm64.go b/internal/codehealth/testdata/fixture/main_arm64.go
new file mode 100644
index 000000000..62269d3b0
--- /dev/null
+++ b/internal/codehealth/testdata/fixture/main_arm64.go
@@ -0,0 +1,5 @@
+package main
+
+import "log"
+
+func arm64Only() { log.Fatal("built only for arm64: not scanned on any machine, listed") }
diff --git a/internal/codehealth/testdata/fixture/main_darwin.go b/internal/codehealth/testdata/fixture/main_darwin.go
new file mode 100644
index 000000000..d982cf7db
--- /dev/null
+++ b/internal/codehealth/testdata/fixture/main_darwin.go
@@ -0,0 +1,5 @@
+package main
+
+import "log"
+
+func darwinOnly() { log.Fatal("built only for darwin: not scanned, listed") }
diff --git a/internal/codehealth/testdata/fixture/main_ext_test.go b/internal/codehealth/testdata/fixture/main_ext_test.go
new file mode 100644
index 000000000..ed6a70bde
--- /dev/null
+++ b/internal/codehealth/testdata/fixture/main_ext_test.go
@@ -0,0 +1,11 @@
+package main_test
+
+import (
+ "testing"
+ "time"
+)
+
+// An external test package's sleeps count under "._test".
+func TestExternal(t *testing.T) {
+ time.Sleep(time.Millisecond)
+}
diff --git a/internal/codehealth/testdata/fixture/main_test.go b/internal/codehealth/testdata/fixture/main_test.go
new file mode 100644
index 000000000..93eb70ee9
--- /dev/null
+++ b/internal/codehealth/testdata/fixture/main_test.go
@@ -0,0 +1,19 @@
+package main
+
+import (
+ "log"
+ "testing"
+ "time"
+ tm "time"
+)
+
+func sleep(time.Duration) {}
+
+func TestSleeps(t *testing.T) {
+ time.Sleep(time.Millisecond) // counted
+ tm.Sleep(time.Millisecond) // counted, through the alias
+ sleep(time.Millisecond) // not time's
+ if false {
+ log.Fatal("a test file: not counted as fatal")
+ }
+}
diff --git a/internal/codehealth/testdata/fixture/other/other.go b/internal/codehealth/testdata/fixture/other/other.go
new file mode 100644
index 000000000..936555063
--- /dev/null
+++ b/internal/codehealth/testdata/fixture/other/other.go
@@ -0,0 +1,13 @@
+// Package other is not the root package and not internal/host: nothing
+// here counts.
+package other
+
+import (
+ "context"
+ "log"
+)
+
+func Run() context.Context {
+ log.Fatal("not the root package")
+ return context.Background()
+}
diff --git a/internal/codehealth/testdata/fixture/store/store.go b/internal/codehealth/testdata/fixture/store/store.go
new file mode 100644
index 000000000..540d20145
--- /dev/null
+++ b/internal/codehealth/testdata/fixture/store/store.go
@@ -0,0 +1,63 @@
+// Package store holds every database call form the classifier has to
+// see, and the context-taking ones it must not count.
+package store
+
+import (
+ "context"
+ "database/sql"
+)
+
+// Queryer is a narrow interface offering only database/sql's QueryRow, as
+// console's sqlQueryer does: counted.
+type Queryer interface {
+ QueryRow(query string, args ...any) *sql.Row
+}
+
+// handle offers Begin as *sql.DB does, beside BeginTx, as console's
+// sqlHandle does: its Begin is counted.
+type handle interface {
+ Begin() (*sql.Tx, error)
+ BeginTx(ctx context.Context, opts *sql.TxOptions) (*sql.Tx, error)
+}
+
+// oldStyle spells the variadic interface{}: the same signature, counted.
+type oldStyle interface {
+ Exec(query string, args ...interface{}) (sql.Result, error)
+}
+
+// shell has an Exec and a Query that are not database/sql's: not counted.
+type shell struct{}
+
+func (shell) Exec(cmd string) error { return nil }
+func (shell) Query(q string) []string { return nil }
+
+// Store embeds *sql.DB, so its promoted methods are *sql.DB's.
+type Store struct{ *sql.DB }
+
+func Calls(ctx context.Context, db *sql.DB, tx *sql.Tx, stmt *sql.Stmt, conn *sql.Conn, q Queryer, h handle, o oldStyle, s Store) {
+ db.Query("q")
+ db.QueryRow("q")
+ db.Exec("q")
+ db.Prepare("q")
+ db.Begin()
+ tx.Exec("q")
+ tx.Prepare("q")
+ stmt.Exec()
+ stmt.QueryRow()
+ q.QueryRow("q")
+ h.Begin()
+ o.Exec("q")
+ s.Exec("q")
+
+ // With a context, or not a database call: none of these count.
+ db.QueryContext(ctx, "q")
+ db.ExecContext(ctx, "q")
+ db.BeginTx(ctx, nil)
+ h.BeginTx(ctx, nil)
+ tx.QueryRowContext(ctx, "q")
+ stmt.ExecContext(ctx)
+ conn.ExecContext(ctx, "q")
+ db.Ping()
+ shell{}.Exec("ls")
+ shell{}.Query("q")
+}
diff --git a/internal/codehealth/testdata/fixture/store/store_test.go b/internal/codehealth/testdata/fixture/store/store_test.go
new file mode 100644
index 000000000..6891b1785
--- /dev/null
+++ b/internal/codehealth/testdata/fixture/store/store_test.go
@@ -0,0 +1,13 @@
+package store
+
+import (
+ "database/sql"
+ "testing"
+)
+
+func TestCalls(t *testing.T) {
+ var db *sql.DB
+ if db != nil {
+ db.Exec("a test file: not counted")
+ }
+}
diff --git a/internal/codehealth/testdata/lines/go.mod b/internal/codehealth/testdata/lines/go.mod
new file mode 100644
index 000000000..32f6e41f8
--- /dev/null
+++ b/internal/codehealth/testdata/lines/go.mod
@@ -0,0 +1,3 @@
+module lines.test
+
+go 1.26
diff --git a/internal/codehealth/testdata/lines/lines.go b/internal/codehealth/testdata/lines/lines.go
new file mode 100644
index 000000000..e9f913665
--- /dev/null
+++ b/internal/codehealth/testdata/lines/lines.go
@@ -0,0 +1,55 @@
+// Package lines is the line metrics' fixture, scanned with a function
+// limit of 5 code lines and a file limit of 25.
+package lines
+
+// long has 7 code lines, the signature and closing brace included:
+// counted.
+func long() int {
+ a := 1
+ a++
+ a++
+ a++
+ return a
+}
+
+// commented has 5 code lines among comments and blank lines: not counted,
+// though it is 12 lines long.
+func commented() int {
+ // one
+
+ // two
+ a := 1
+ /* three
+ four */
+ a++
+
+ return a
+}
+
+// raw is 6 code lines: each line of a raw string is code. Counted.
+func raw() string {
+ return `a
+b
+c
+d`
+}
+
+type T struct{}
+
+// Long is a pointer method of 6 code lines: counted as (*T).Long.
+func (t *T) Long() int {
+ a := 1
+ a++
+ a++
+ return a
+}
+
+type G[K comparable] struct{}
+
+// Long on a generic type is G.Long: 6 code lines, counted.
+func (g G[K]) Long() int {
+ a := 1
+ a++
+ a++
+ return a
+}
diff --git a/internal/codehealth/testdata/lines/lines_test.go b/internal/codehealth/testdata/lines/lines_test.go
new file mode 100644
index 000000000..fcee16fb9
--- /dev/null
+++ b/internal/codehealth/testdata/lines/lines_test.go
@@ -0,0 +1,13 @@
+package lines
+
+import "testing"
+
+// A test function is measured too: 6 code lines, counted.
+func TestLong(t *testing.T) {
+ a := 1
+ a++
+ a++
+ _ = a
+}
+
+// A short file: not counted as a file.