Skip to content

Fix the docs that told users to do impossible things - #850

Merged
scttfrdmn merged 1 commit into
mainfrom
fix/phase6-docs
Oct 11, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
fix/phase6-docs

Conversation

@scttfrdmn

Copy link
Copy Markdown
Contributor

Closes #849. Correctness audit 2026-10, Phase 6. #848 is split out as an operational
finding.

Every claim here was re-measured — against the live account, the filesystem, or an HTTP
request. Several items in the audit plan had already been fixed, and two did not
reproduce at all
; those are recorded rather than "fixed".

The reaper's onboarding command is rejected by CloudFormation

--parameter-overrides ReaperLambdaRoleArn=<reaper-lambda-role-arn>

The template declares ReaperAccountId, ReaperRoleNamePattern, RoleName, TagPrefix.
There is no ReaperLambdaRoleArn.

This is the step a customer runs to put an account under the TTL reaper — the backstop
that terminates expired instances when spored is dead. Not completing it means expired
instances keep billing.

The instruction predated #476, which replaced the exact role ARN with a name pattern for
a reason the template itself spells out: the reaper's role carries a random CloudFormation
suffix, so a trust naming it exactly breaks the moment that stack is recreated, for every
onboarded account at once. The "chicken-and-egg: deploy the Lambda, read its
FunctionRoleArn, then deploy the roles" paragraph followed from the ARN form and is gone —
a pattern-based trust does not reference a principal that must already exist, so the order
no longer matters.

The README's install commands 404

404  .../releases/latest/download/spawn_linux_amd64.deb

GoReleaser puts the version in the asset name (spawn_0.127.0_linux_amd64.deb), so a
version-less latest/download URL cannot exist. Replaced with a tag resolution and
verified end to end — the exact pipeline the README now gives:

resolved VER=0.127.0
200  .../releases/download/v0.127.0/spawn_0.127.0_linux_amd64.deb
200  .../releases/download/v0.127.0/spawn_0.127.0_linux_amd64.rpm

Every spore.host/docs link 404s

404  https://spore.host/docs            (prerequisites section)
404  https://spore.host/docs/tools/spawn (the "full reference" link)
200  https://docs.spore.host/tools/spawn

Three quickstarts cannot run

$ spawn launch --params examples/staging/reference-genome.yaml
a spore name is required: pass it positionally (spawn launch my-spore) or with --name my-spore

Two docs describing a repo that no longer exists

docs/spawn-audit-2026-07-11.md reads as a live prioritized report — "Phase 0 — Do now" —
and cites cmd/launch.go five times including its 4324-line count, plus
pkg/audit/context.go. Neither exists; cmd/launch.go was split up. A reader following its
own top-priority item finds nothing and cannot tell whether the finding was fixed, renamed,
or never real. Marked SUPERSEDED, kept rather than deleted because the reasoning is
still worth reading.

docs/dcv-streaming-design-review.md asserts as its central risk that idle detection "can
hang 'not idle' forever" and bills forever, with "unbounded grace" in its capability
table. pkg/agent/agent.go defines const dcvGraceTimeout = 8 * time.Minute and bounds
exactly that. Corrected in place and annotated at each of the three claims — the analysis
stays, because it is why the bound exists, and deleting the question makes the answer look
arbitrary.

Gate

TestDocsDoNotCitePathsThatDoNotExist makes the choice explicit: a doc either is current,
in which case its backticked paths resolve, or it says it is history. No third state where
it quietly describes a repo that has moved on.

Scoped deliberately: libs/ is excluded because it is a separate repository (which was the
only source of false positives — two of the three initial findings), and prose like "the cmd
directory" is not matched because it is not a claim about a specific file.

Two compiling reverts: unmarking the superseded doc, and adding a dangling path to a current
one. Both fail with the paths named.

Did not reproduce — recorded, not "fixed"

  • --params is implemented. The plan listed it as unimplemented. The quickstarts' only
    problem was the missing spore name.
  • spawn cleanup --force is not a no-op that aborts without removing anything. It
    prints its deprecation notice and lists resources; the flag is ignored because cleanup
    executes by default now, which is what deprecating it meant.

Verification

make check, make check-docs, changelog gate, semgrep 0 findings, Tier 0 e2e with
-count=1, plus the live HTTP checks above.

Phase 6 of the audit. Several of the plan's items were already stale, so
each claim here was re-measured against the live account, the filesystem
or an HTTP request rather than taken on trust.

A live Lambda nothing in this repo can deploy. docs/infra-account.md
asked only one of the two questions — "code with no deployment", answer
none — and the inverse is not none. spawn-cost-history-collector is
invoked EVERY HOUR by an ENABLED EventBridge rule, was last modified
2026-02-20, and the only references to it anywhere in the repository are
its own go.mod, a .gitignore entry, a Dependabot entry and the
changelog. No deploy script, no Makefile target, no CFN or SAM template:
the source cannot reach the function that is running, and Dependabot has
been bumping a module that cannot be shipped. The existing gate reasons
outward from hardcoded Lambda names in Go source, and nothing in Go
source names this function. Tracked as #848.

The reaper's cross-account onboarding command could not work. It passed
--parameter-overrides ReaperLambdaRoleArn=..., and the template declares
no such parameter — ReaperAccountId, ReaperRoleNamePattern, RoleName,
TagPrefix — so CloudFormation rejects it outright. This is the step a
customer runs to put an account under the cost backstop. The instruction
predated #476, which deliberately replaced the exact role ARN with a
name PATTERN because the reaper's role carries a random suffix and a
trust naming it exactly breaks for every onboarded account at once. The
"chicken-and-egg, deploy the Lambda first to read its role ARN"
paragraph was stale for the same reason and is gone.

The README's .deb/.rpm commands 404'd: GoReleaser puts the version in
the asset name, so there is no version-less latest/download URL.
Replaced with a tag resolution and verified end to end — the exact
pipeline the README now gives resolves 0.127.0 and both assets return
200. Every spore.host/docs link 404'd too; the live host is
docs.spore.host (/docs 404, /docs/tools/spawn 404,
docs.spore.host/tools/spawn 200).

Three examples/README quickstarts could not run: `spawn launch --params
<file>` exits "a spore name is required".

docs/spawn-audit-2026-07-11.md is marked SUPERSEDED. It reads as a live
prioritized report — "Phase 0 — Do now" — and cites cmd/launch.go five
times including its line count, plus pkg/audit/context.go. Neither file
exists, so a reader following its own top-priority item finds nothing
and cannot tell whether the finding was fixed, renamed or never real.

docs/dcv-streaming-design-review.md's central risk is corrected in
place. Section 3, "Idle detection can hang 'not idle' forever", and the
table's "unbounded grace" are no longer true: pkg/agent/agent.go defines
dcvGraceTimeout = 8 * time.Minute and bounds exactly that. The analysis
stays, because it is why the bound exists and deleting the question
makes the answer look arbitrary.

TestDocsDoNotCitePathsThatDoNotExist makes the choice explicit: a doc is
either current, in which case its backticked paths resolve, or it says
it is history. libs/ is excluded as a separate repository, and prose
like "the cmd directory" is not matched because it is not a claim about
a specific file.

Two plan items did NOT reproduce and are not changed: --params is
implemented (it was reported unimplemented), and `spawn cleanup --force`
listed resources rather than aborting without removing anything.

Closes #849
@scttfrdmn scttfrdmn added this to the Correctness audit 2026-10 milestone Oct 11, 2026
@codecov

codecov Bot commented Oct 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@scttfrdmn
scttfrdmn merged commit eb15992 into main Oct 11, 2026
7 checks passed
@scttfrdmn
scttfrdmn deleted the fix/phase6-docs branch October 11, 2026 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs told users to run things that cannot work: a rejected CFN parameter, 404 install URLs, and three broken quickstarts

1 participant