Repository navigation
Fix the docs that told users to do impossible things - #850
Merged
Merged
Conversation
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
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #849.
Correctness audit 2026-10, Phase 6. #848 is split out as an operationalfinding.
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
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
sporedis dead. Not completing it means expiredinstances 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
GoReleaser puts the version in the asset name (
spawn_0.127.0_linux_amd64.deb), so aversion-less
latest/downloadURL cannot exist. Replaced with a tag resolution andverified end to end — the exact pipeline the README now gives:
Every
spore.host/docslink 404sThree quickstarts cannot run
Two docs describing a repo that no longer exists
docs/spawn-audit-2026-07-11.mdreads as a live prioritized report — "Phase 0 — Do now" —and cites
cmd/launch.gofive times including its 4324-line count, pluspkg/audit/context.go. Neither exists;cmd/launch.gowas split up. A reader following itsown 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.mdasserts as its central risk that idle detection "canhang 'not idle' forever" and bills forever, with "unbounded grace" in its capability
table.
pkg/agent/agent.godefinesconst dcvGraceTimeout = 8 * time.Minuteand boundsexactly 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
TestDocsDoNotCitePathsThatDoNotExistmakes 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 theonly 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"
--paramsis implemented. The plan listed it as unimplemented. The quickstarts' onlyproblem was the missing spore name.
spawn cleanup --forceis not a no-op that aborts without removing anything. Itprints 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,semgrep0 findings, Tier 0 e2e with-count=1, plus the live HTTP checks above.