Skip to content

docs: three mechanical gates, and the 90 claims they found false - #225

Merged
scttfrdmn merged 7 commits into
mainfrom
docs/182-unmeasured-performance-claims
Aug 3, 2026
Merged

scttfrdmn merged 7 commits into
mainfrom
docs/182-unmeasured-performance-claims

Conversation

@scttfrdmn

Copy link
Copy Markdown
Owner

Closes #182, #208, #224.

Three documentation gates, each written before the defects it found were fixed, because that ordering is the point: correcting a cataloged list of wrong claims resets the clock, and the next wrong claim arrives next week. A fenced code block is a string as far as the compiler, vet, and lint are concerned; a link target is a path; a nav entry is YAML. None of the four gates already in this repository could see any of them.

The gates

gate checks first-run findings
internal/config/docs_symbols_test.go pkg.Symbol in fenced Go blocks against the packages that block imports; objectfs command lines against the flags main.go declares 11
internal/config/docs_links_test.go every relative markdown link resolves; VitePress routes in docs-platform/; no stub pages 45
TestMkDocsNavMatchesTheTree mkdocs.yml nav ↔ the tree, both directions 47 + 14 orphans

Plus internal/fuse/unimplemented_test.go, which pins the errno of every unimplemented operation by driving the real fuse.RawFileSystem — no mount, no macFUSE, no privileges.

Each gate found more than the issue that asked for it, and in each case the gap is the finding. #208 cataloged 24 dead links by walking docs/; walking every tracked markdown file found 45, because 13 SDK examples/ links and 8 root-absolute VitePress routes live outside that walk. Scoping a gate to where the defects are already known is how the next cluster stays invisible — the same shape as docs_test.go's nestedSectionNames, where five blocks of invented config keys passed the test written to catch them because its admission test skipped them.

That is why every gate here has an admission test asserting its own reach rather than its findings. It earned its place during development: a mutation that made the link regexp match nothing left the resolving test passing on zero links, green. Only the reach test caught it.

Every assertion in all three gates was verified to fail when the thing it asserts is broken, per the rule this PR adds to CONTRIBUTING.md.

What the gates found

Two defects worse than a dead link, in package metadata. pip install objectfs succeeded, with an unrelated "Simple Python VFS module" from 2015 by a different author — indistinguishable from success until an import fails, which is the worse of the two outcomes. @objectfs/sdk at least 404s. And both SDKs declared MIT in setup.py's classifier and package.json's license, the two fields a licence scanner reads, against an Apache 2.0 project; the Java pom.xml had it right, so three shipped manifests disagreed with each other and two disagreed with LICENSE.

No document claims a throughput figure any more. "4.6x" appeared 24 times across 10 files, attributed variously to BBR, to CargoShip, or to both. It is CargoShip's number for CargoShip's workload restated as a property of ObjectFS; nothing here measured it and no benchmark here can produce it. The mechanism it was credited to is not on the path — internal/network's BBR surface has no caller outside its own tests. CONTRIBUTING.md now states the rule that no test can enforce: cite the benchmark by file and function, the parameters, and a copy-pasteable command, or say nothing about throughput.

The last POSIX-compliance claim is gone, and reading that page found six more: hot configuration reloading (SIGHUP is registered alongside SIGINT/SIGTERM, so sending it unmounts the filesystem — a trap documented as a feature), RBAC, clusters and load balancing, S3 lifecycle management, Kubernetes persistent volumes, and compliance and governance. Each verified against the code before removal.

Two prose pointers into empty directories, written during the link sweep itself. OBJECTFS.md → docs/operations/monitoring.md, docs/features/multipart-uploads.md → docs/development/testing.md. Neither has ever existed; both are in prose rather than link syntax, so the gate cannot see them; both are mine, from days ago, while I was fixing 45 dead links. The six .gitkeep directories that made them look plausible are now deleted.

Cost accounting, found while checking price claims:

  • Every write was costed at a tenth of its price. internal/storage/s3 stored the Standard PUT rate as 0.0005 — what AWS charges per 1,000 requests — in a field the code divided by 1,000 again. internal/cost had it right, so what an operation cost depended on which package a caller reached for, and nothing flagged the 10× disagreement. Verified against the live Pricing API, which turned up two more: Glacier IR PUT 4× low, its GET 5× low.
  • Storage costs were 7.4% low, everywhere. Bytes→GB divided by 2³⁰ with a comment asserting the binary reading was correct. S3 bills decimal GB. The comment is why it survived — it made a wrong unit look considered. The tests could not catch it either: they passed 1024*1024*1024 bytes, called it "one GB", and asserted the per-GB rate came back, which holds under both divisors. The new tests state hand-computed dollar figures as literals.
  • Five copies of the rate card are now one. internal/awsrates, checked against the live AWS Pricing API by an integration test that re-reads 23 rates and fails on any difference. This is the prerequisite that makes Real AWS Pricing API integration — and the 10x-low Standard PUT rate the static tables disagree on #183 a single-site change.

docs/index.md gained a Not yet wired up table — cost tracking, archive access, the REST API, ML tier prediction, the Redis cache, multi-node coordination — verified by import graph, which is what caught the two subtler than "no importer": internal/analytics is imported by internal/cache, but the Predictor field is never set on the mount path; internal/cache/redis is selected by cache.NewFromConfig, but nothing calls it.

Verification

$ go build ./... && go vet ./... && gofmt -l .
$ go test -race -timeout 20m ./...          # 33 packages
exit 0
$ golangci-lint run --new-from-merge-base=main
0 issues.
$ pre-commit run --all-files
Passed

The live-API test is behind -tags=integration and needs AWS_PROFILE=aws AWS_REGION=us-west-2; it is not in the default run.

What these gates do not cover

Stated in each file rather than left to be discovered:

  • Compilation. A Go block whose symbols all exist may still not compile. The symbol gate checks names, not types.
  • Reference-style links ([text][label]). There are none today; the note is there so whoever adds the first one finds out from the file.
  • Anchor existence within a target file — that is markdownlint's MD051, already in pre-commit.
  • Prose pointers. `see docs/foo.md` in backticks is not a link and is not checked. Both defects above are this shape, and I do not have a gate for it that would not fire on every path-shaped string in the repository.
  • Performance claims, which is why that one is a rule in CONTRIBUTING.md and not a test.

"4.6x" appeared 24 times across 10 files — in the internal/storage/s3 package
doc, in docs/index.md's performance table, in the ROADMAP's success criteria,
in two 2025 strategy documents — attributed variously to BBR, to CargoShip, or
to both.

It is CargoShip's figure for CargoShip's workload, restated as a property of
ObjectFS. Nothing in this repository measured it and no benchmark here can
produce it. The mechanism it was credited to is not on the path either:
internal/network's BBR surface (NewBBRDialer, BestAvailableDialer,
IsBBRAvailable, DefaultBBRConfig) has no caller outside its own tests. What
runs is NewDialer(algo) → newPlatformDialer: a best-effort TCP_CONGESTION
socket option on Linux, a plain &net.Dialer{} everywhere else. The config knob
works. The attribution didn't.

A reader had no way to tell that number apart from something this project had
measured, which is the whole defect — a figure in prose has no way to be told
it is stale, and this one was never true here to begin with. Each site now
names the mechanism, or cites benchmarks/ and the parameters a real figure
would need to state: bucket, region, object size.

Three files that could not simply be corrected:

  - CHANGELOG.md's 0.1.0 entry keeps its figures under a banner recording that
    they were never measured. Same precedent as the withdrawn 0.10.0 entry
    above it: a changelog is a record of what was published, not a document to
    be quietly fixed.
  - ARCHITECTURE_EVOLUTION.md, PLATFORM_STRATEGY.md, and
    CARGOSHIP_MODULARIZATION_REQUEST.md are 2025 design sketches. They now open
    with banners recording where the code diverged, in both directions — the
    shared/aws-optimization module was never built; CargoShip does now export
    pkg/s3optimization but with different components and ObjectFS imports none
    of it; the BBR extraction requested from CargoShip is what ObjectFS ended
    up writing itself. The divergence is left visible: the Phase 1 layout
    proposed internal/filesystem + internal/protocols/fuse and what shipped is
    internal/vfs + internal/fuse, and saying so is more useful than a document
    that appears to have predicted itself.

docs/index.md also gained a "Not yet wired up" table, and the features in it
left the feature list above. Verified by import graph, not by reading code,
which is what caught the two subtler than "no importer": internal/analytics IS
imported by internal/cache, but the Predictor field is never set on the mount
path, so the size heuristic always runs; internal/cache/redis IS selected by
cache.NewFromConfig, but nothing calls NewFromConfig — adapter.go:149
constructs NewMultiLevelCache directly.

Its install and usage blocks are corrected too: no Homebrew tap, no .deb/.rpm,
no get.objectfs.io, and no subcommands — `objectfs mount ...`, which that page
showed as the first command, exits with an argument error. --cache-size and
--max-concurrency are real flags; --cache-type and --region are not.

One find not in #182: CLAUDE.md's architecture line still routed through
cgofuse, removed in v0.10.1, and skipped both layers the refactor added. It was
the last live cgofuse reference in the repo — every other surviving mention is
a correct historical note.

Patterns 1, 2, and 4 of #182. One commit per pattern rather than per file: the
pattern is what makes this a class rather than 19 unrelated edits.

Refs #182
Pattern 3 of #182 — a document maintained separately from the thing it
describes — plus the last of the "POSIX-compliant" claims.

docs/performance-metrics.md was 618 lines about one 600-line Go file and
got nine things wrong: a zero-argument constructor for a function taking
two, a NewDetailedPerformanceMetricsWithOptions that never existed, three
getters that do not exist, OpMkdir/OpRmdir/OpStatfs against the real
OpMkDir/OpRmDir/OpStatFS, an undeclared CacheSourceNone, a four-argument
RecordNetworkOperation, and two behaviors documented as working that are
not. Deleted rather than corrected, with a short section in the package
doc instead — short so that it can stay true, which a separately
maintained 618-line description of one file cannot be.

Two of the nine are code defects, not doc defects, and are recorded where
whoever wires the subsystem up will see them: P50/P95/P99Latency are
declared and never assigned, so anything serializing the struct publishes
zeros as percentiles; and LatencyHistogram is indexed by
int(latency.Milliseconds()) % 100, so 1 ms and 101 ms share a bucket.

The README's not-implemented table said only "not implemented" for six
operations, which tells a user nothing about what their tool prints. Those
errnos are go-fuse's, not ObjectFS's, and they are neither uniform nor
guessable — which is how `mv` came to be documented as ENOSYS on the
strength of a reasonable guess when the bridge returns ENOTSUP. The table
now names each one and internal/fuse/unimplemented_test.go drives the real
fuse.RawFileSystem to hold it there, so a go-fuse upgrade that changes a
default is something the suite reports rather than something the README
quietly gets wrong.

The locking row was wrong in a way that matters more: locks are not
refused, they are host-local. The mount never sets EnableLocks, so the
kernel does not ask ObjectFS to arbitrate and tracks them itself. flock
succeeds and means nothing to any other mount of the same bucket — two
hosts will both believe they hold the same exclusive lock.

Also: the last four "POSIX-compliant" claims (OBJECTFS.md ×3,
docs/DESIGN_PRINCIPLES.md, internal/adapter's package doc, docs/VISION.md
×3); VISION.md's HIPAA/FISMA/SOC 2 bullet, removed rather than reworded
because ObjectFS holds no certification, adds no authorization layer, and
writes no audit log; and the two docs-platform pages' shell commands,
which opened with `curl -sSL https://get.objectfs.io | sh` and went on to
use six subcommands the binary does not have. That tree cannot build
(#214) and the commands were corrected anyway: a markdown page is read on
GitHub whether or not the site renders, and a wrong `curl | sh` is
something a reader will type.

Refs #182
The section committed in efa8bb8 says the two DetailedPerformanceMetrics defects are
"stated here rather than left for whoever wires it up to discover". #222 was filed after
that commit and is where they are now tracked, so name it — the reason the section exists
is that the next person finds it, and a pointer to the issue is where the decision (wire
them up, or delete four fields that cannot be computed) will be made.
Correcting the nineteen files #182 catalogued only resets the clock. A fenced code block is a
string as far as the compiler, vet, and lint are concerned, so nothing in the toolchain notices
when documentation names a package that was renamed or a subcommand that never existed — which
is how ~190 overclaims accumulated without anyone writing something they knew to be false.

internal/config/docs_symbols_test.go closes the two mechanical classes:

  TestDocumentedGoSymbolsExist         a pkg.Symbol in a Go block, where that same block imports
                                      the ObjectFS package, must be exported by it (go/ast)
  TestDocumentedCLIInvocationsAreRunnable  an objectfs command line must use flags main.go
                                      declares, and no subcommand — there are none
  TestCLIFlagsMatchTheBinary          the flag list above cannot drift from main.go silently

The admission rule was measured, not guessed, because that is exactly where the existing
docs_test.go failed: five blocks of invented config keys sailed through the test written to catch
them because its admission test skipped them. Three scopings run against the tree — every
lowercase.Uppercase gives 93 hits of which 3 are real (s3.Client is the AWS SDK, errors.Is is the
standard library), file-scoped imports give 5 of 3, block-scoped gives 3 of 3 with no false
positives. Block-scoped, with its one blind spot stated in the test.

Eleven defects on the first run, all real, all fixed here. Two were not cosmetic:
cache.GetPredictiveCache is not a misspelling — the statistic is genuinely unreachable through
types.Cache, now #223 — and the playground's pkg/client example was an entire fictional API,
replaced with the real adapter.New/Start/Stop and compiled before publishing.

Performance figures cannot be checked by a test, so that half is a rule in CONTRIBUTING.md:
cite the benchmark by file and function, the parameters, and a runnable command. The audit's
most-repeated false claim was uncheckable by construction, which is why it survived nine files.

Two adjacent defects fixed rather than noted: CONTRIBUTING.md told contributors to use
LocalStack, which this project has never used, and `make test` omitted -race while two documents
said every test runs with it — a local gate weaker than the CI gate it stands in for.

Refs #182, #223
…page found

docs-platform/guide/index.md:28 was the last "POSIX compliance" in the repository, deferred on
the chance #214 deletes that tree. Leaving a false claim because a file might be deleted is the
reasoning that lets claims survive, so it is corrected — and reading the rest of the page turned
up six more, each verified against the code rather than inferred:

  hot configuration reloading   main.go registers SIGHUP alongside SIGINT/SIGTERM and treats any
                                signal as shutdown, so SIGHUP *unmounts the filesystem*
  RBAC                          zero hits for RBAC/Authorize/Authenticate outside tests
  clusters, load balancing      nothing outside internal/distributed imports it
  S3 lifecycle management       no lifecycle API call exists in the tree
  Kubernetes PVs                no CSI driver, no chart, no manifest
  compliance and governance     no audit log

Its architecture diagram drew the distributed coordinator as a solid component and omitted both
layers of the v0.10.1 refactor; it now shows internal/fuse → internal/vfs with the coordinator
dashed, because that is what it is.

Two defects worse than a dead link, found while sweeping the same domain:

  - `pip install objectfs` installs somebody else's package. Neither SDK has ever been published,
    and the name is taken on PyPI by an unrelated 2015 VFS module. The command succeeded with
    different software, which is indistinguishable from success until an import fails.
    @objectfs/sdk at least 404s.
  - Both SDKs declared themselves MIT against an Apache 2.0 project, in setup.py's classifier and
    package.json's license — the two fields a licence scanner reads. The Java pom had it right, so
    the three manifests disagreed with each other and two with LICENSE.

Also: the two broken tables of contents markdownlint had been failing on (OBJECTFS.md listed eight
sections that were never written and omitted the one that exists; CONTRIBUTING.md's eight anchors
all miss because the headings start with emoji), and the dead objectfs.io domains across six
files, mkdocs.yml's site_url among them.

Refs #182, #208, #214
Issue 208 catalogued 24 dead relative links in docs/ and asked for the
checker first, on the grounds that fixing 24 links without one just resets
the clock. The checker found 45.

The extra 21 are the finding. #208 was written by walking docs/, and two
whole classes live outside that walk: 13 links into SDK examples/
directories that have never existed, and 8 root-absolute VitePress routes
with no page behind them. Scoping a gate to where the defects were already
known is how the next cluster stays invisible — the same shape as
docs_test.go's nestedSectionNames, where five blocks of invented config
keys passed the test written to catch them because its admission test
skipped them.

A Go test rather than lychee in CI, for three reasons in the file: no
network and no new tool, so pre-commit and CI check at identical fidelity;
it sits with the gates a contributor already satisfies, in the package
CONTRIBUTING.md names; and an exemption can carry its reason in code, as
docsExemptFromConfigSchema does.

Two documentation trees, two routing rules. docs-platform/ is VitePress,
where /guide/installation is served from guide/installation.md and /api/
from api/index.md; docs/ is MkDocs with relative links. The gate encodes
only the rule it knows and skips root-absolute links elsewhere rather than
guessing.

Three tests, because the resolving one is not self-guarding:

  TestDocumentedLinksResolve         — every relative link resolves
  TestLinkGateSeesEveryMarkdownFile  — the walk's reach, not its findings
  TestNoDocumentedLinkPointsIntoAnExampleDirectory — no stub pages

The reach test earns its place by mutation. Making the link regexp match
nothing left the resolving test passing on zero links and green; only the
reach test caught it. All five assertions were verified to fail when the
thing they assert is broken, per CONTRIBUTING.md.

The stub test guards the specific repair this gate's first run forced. The
cheap way to green 13 example links is 13 stub files — the docs equivalent
of the "Would update the Homebrew formula..." job v0.10.1 deleted — so it
fails if an examples/ directory appears holding files too small to run.

All 45 fixed the two ways #208 permits: point at the page that covers the
topic, or delete the link. Never by creating a page. Of note:

  performance-tuning.md was linked from four pages and never written —
  four authors each assumed it existed because the others linked it
  ml-training.md is the most misleading: there is no model to train, the
  Predictor internal/cache accepts is never set on the mount path
  docs/index.md lost its whole audience section, five persona links into
  an empty directory, though the persona: labels do exist on GitHub

Refs #208
…rooms

mkdocs.yml listed 50 nav entries. Three of them had a file.

The other 47 named pages under getting-started/, user-guides/, personas/,
features/, operations/, architecture/, development/, and api/ that were
never written, plus ROADMAP.md, which is at the repository root and so
outside docs_dir. And it ran the other way too: 14 of the 17 pages that do
exist were absent from the nav, including the four most substantial —
architecture/overview.md, features/read-ahead.md, multipart-uploads.md, and
s3-acceleration.md. One file both described a site nobody wrote and omitted
almost all of the one somebody did.

mkdocs build fails on an entry with no file, so this could never have built
a site. Nothing builds it: mkdocs is not installed here, no workflow runs
it, and Pages is off on the repository. A configuration for a build that
never runs has no way to be told it is wrong. That is the whole mechanism.

The link gate from 128ae6e cannot see this, and the reason is instructive
rather than incidental: a nav entry is a link target with a different
syntax. The gate walks markdown; nav: is YAML.

TestMkDocsNavMatchesTheTree checks both directions, because checking only
that entries resolve would leave the 14 orphans — and that is the half a
reader actually loses, since a page absent from the nav is a page nobody
finds. All four of its assertions were verified to fail when broken. The
first mutation is the one worth keeping: renaming a page fails on both
sides at once, so a half-finished rename is not a state the suite allows.

A line scan rather than a YAML parse, for a reason in the file: mkdocs.yml
carries !!python/name: tags for the emoji and superfences extensions, so
decoding it needs a custom resolver or unsafe mode, and a flat list of
`- Title: path.md` needs neither.

Also removed six directories under docs/ holding a .gitkeep and nothing
else — api, development, getting-started, operations, personas,
user-guides. An empty directory is worse here than no directory: three of
the six were targets of dead links #208 found, and the directory existing
is what made those links look plausible to whoever wrote them. Two prose
pointers into them survived the link sweep because prose is not a link, one
in OBJECTFS.md and one in features/multipart-uploads.md — both written
during that sweep, which is a fair demonstration of the point.

Closes #224
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.

Documentation still claims features that do not exist: 19 files, four systemic patterns

1 participant