Repository navigation
Description
Summary
The v0.10.0 audit found ~190 documentation overclaims across 60+ files. v0.10.1 fixed the highest-priority ones — README.md, cmd/objectfs/doc.go (the binary's own --help), docs/architecture/overview.md, docs/DESIGN_PRINCIPLES.md, benchmarks/README.md, mkdocs.yml, docs-platform/index.md, OBJECTFS.md (bannered), and the SDK telemetry stubs — and added two gates: TestNoDocumentRestatesTheCurrentVersion and the config-docs admission gate.
This issue is the remainder, re-verified against main rather than copied from the audit. 19 files, and the count is much lower than 190 because the largest offenders are already fixed. What is left still includes documents a new user reads first.
Pattern 1 — a performance number nothing measured
"4.6x throughput improvement" appears in 21 places across 9 files. It is attributed to BBR congestion control, sometimes to CargoShip, sometimes to both. No benchmark in this repo produces it, and the code cannot: internal/network is reachable — client.go:108-111 calls network.NewDialer(algo) and network.NewMonitor(algo) — but bbr.go's own exported surface (NewBBRDialer, NewCUBICDialer, BestAvailableDialer, IsBBRAvailable, DefaultBBRConfig) has zero callers outside the package. So what runs is newPlatformDialer setting a socket option; the BBR controller the number is attributed to is not in any path.
| file | occurrences |
|---|---|
docs/CARGOSHIP_MODULARIZATION_REQUEST.md |
6 |
docs/index.md |
4 |
ROADMAP.md |
3 |
docs/ARCHITECTURE_EVOLUTION.md, docs/PLATFORM_STRATEGY.md |
2 each |
docs/VISION.md, docs/s3-acceleration.md, docs/features/multipart-uploads.md, RELEASE_NOTES_v0.1.0.md |
1 each |
Note the phrasings: "proven 4.6x", "4.6x+ throughput improvement", "Validate performance improvements match CargoShip's 4.6x gains". Even read charitably as CargoShip's measured figure on its workload, it is presented as ObjectFS's. docs/s3-acceleration.md:136 states it as a property of a ranked optimization list.
Fix: delete the number everywhere. If a throughput claim is wanted, it has to come from benchmarks/ with a named bucket, region, object size, and a reproducible command — the standard docs-platform/index.md:82-89 already sets after its hardcoded chart was removed: "if this page ever shows a number again it will name bucket, region, and object size, [or] it will say nothing about throughput rather than invent it."
Pattern 2 — README_CROSS_PLATFORM.md documents a build that no longer exists
The whole file (153 lines) is wrong as of v0.10.1:
- "macOS with cgofuse (Recommended for Research)" →
go build -tags cgofuse. The tag is gone, along with thewinfsp/cgofusedependency. It also never compiled:filesystem.gocarried no build constraint, so under the tagOpenFilewas declared twice. - "Windows (Research Labs) — Uses
winfsp/cgofusewith WinFsp." Windows is explicitly unsupported. Every file ininternal/fusecarries//go:build linux || darwin. - Linux section tells users to
apt-get install libfuse-dev. Not needed — go-fuse is pure Go with no cgo.
Fix: delete the file. Platform support is one section of README.md and internal/fuse/doc.go now, and a separate document guaranteed to drift from them is how this happened.
Pattern 3 — documented APIs and CLI invocations that do not exist
docs/performance-metrics.md(610 lines) documentsmetrics.NewDetailedPerformanceMetricsWithOptions(...), which does not exist — no such symbol repo-wide. AndNewDetailedPerformanceMetrics(internal/metrics/detailed.go:147) has the signature(maxTrackedFiles int, trackFiles bool), not the doc's zero-arg form. Both examples in "Quick Start" fail to compile. The constructor also has no non-test caller, so the entire subsystem is unreachable from a mount.docs-platform/playground/index.mdshowsobjectfs mount s3://... /mnt/demo,objectfs list-mounts,objectfs status /mnt/demoas runnable in an interactive playground. There are no subcommands —cmd/objectfs/main.go:81takes exactly two positional arguments. B1-1: Add mount / unmount / version subcommands to CLI #134 addsmount/unmount/version;list-mountsandstatusare not planned anywhere.docs-platform/guide/getting-started.md(397 lines) instructscurl -sSL https://get.objectfs.io | shand an apt repo athttps://packages.objectfs.io. Neither domain is referenced anywhere in the build, release workflow, or packaging scripts. A getting-started guide whose first step is a nonexistent domain is the single worst place for this. It also lists "Windows with WSL2" as a supported prerequisite.
Pattern 4 — documented features that are dead code
Verified by import graph, not by inference:
| package | reachable from a mount? |
|---|---|
internal/cost |
no — zero importers outside itself |
internal/archive |
no — zero importers outside itself |
pkg/api |
no — zero importers outside itself |
internal/metrics detailed collector |
no — no non-test caller of the constructor |
internal/analytics |
yes, from internal/cache/multilevel.go:11 |
internal/network |
yes, from internal/storage/s3/client.go — but see Pattern 1 for what part |
docs/index.md presents four of these as features of the shipping product: "Archive access for TAR.ZST files without extraction", "ML-based cost optimization and real-time tracking", "Production-ready health monitoring and auto-remediation", plus the BBR figure. Two of the four have no code path.
Each needs one of: wire it up, mark it clearly as unreleased/experimental, or delete the doc. Not a fourth option.
Also outstanding
- "POSIX-compliant" survives in 6 files, 9 uncorrected instances:
docs/VISION.md:5,40,351,docs/index.md:11,docs/DESIGN_PRINCIPLES.md:15("✅ Full POSIX compliance"),internal/adapter/doc.go:7, andOBJECTFS.md:56,61,179(bannered at:19as false, but the body still says it — a banner is weaker than a correction). Against 10 of ~40 VFS operations. docs/VISION.md:120claims HIPAA/FISMA/SOC 2 compliance. There is no auth code in the repo. This is the same claim removed fromdocs-platform/index.md:45in v0.10.1 for legal-exposure reasons; it should come out here for the same reason. It sits under a forward-looking heading, which is a defense — but "Compliance (HIPAA, FISMA, SOC 2)" as a bullet does not read as aspirational to a procurement reviewer.docs/index.mdis the mkdocs landing page and is the densest remaining file: the 4.6x claim ×4, "POSIX-compliant", two dead-code features, and "(v0.5.0)" version tags on features in a v0.10.x codebase.
Approach
Do this as one sweep per pattern, not one commit per file — the patterns are what make it a class rather than 19 unrelated edits.
Suggested order, cheapest and highest-impact first:
- Delete
README_CROSS_PLATFORM.mdand the 21 4.6x claims. Mechanical, removes the two most concretely false things. - Fix or delete
docs/index.mdanddocs-platform/guide/getting-started.md— the two entry-point documents. - Resolve the four dead-code packages: decide wire/mark/delete per package, then make the docs match.
docs/performance-metrics.md: correct the constructor signature and state plainly that the subsystem has no caller yet, or delete.- Remaining "POSIX-compliant" instances and the VISION.md compliance bullet.
Gate this, or it recurs
v0.10.1's two gates (version claims, config-docs admission) each caught things while being written — the version test found three stale claims on its first run and four more when the pattern was widened. The equivalent here is a test that extracts Go symbols and CLI invocations from fenced code blocks in docs/ and asserts each exists. That catches every Pattern 3 item mechanically, at authoring time.
A performance-claim gate is harder — a number in prose cannot be checked against a benchmark — so the durable rule is procedural: a throughput figure in documentation must cite a file in benchmarks/ and the parameters it ran with. Worth writing into CONTRIBUTING.md, where it will be read by whoever adds the next one.
Activity
scttfrdmn commentedon Aug 2, 2026
Both halves of the gate this issue asked for are in, along with the last of the four content patterns.
The gate
internal/config/docs_symbols_test.go— extracts Go symbols and CLI invocations from fenced code blocks and asserts each exists:TestDocumentedGoSymbolsExistpkg.Symbolin a Go block, where that same block imports the ObjectFS package, must be exported by it (go/ast)TestDocumentedCLIInvocationsAreRunnableobjectfscommand line must use flagsmain.godeclares, and no subcommand — there are noneTestCLIFlagsMatchTheBinarymain.gosilentlyThe admission rule was measured, not guessed, because that is precisely where the existing
docs_test.gofailed: 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 real tree:lowercase.Uppercasein every Go block — 93 hits, 3 real.s3.Clientis the AWS SDK,cache.Getis a method on a local variable,errors.Isis the standard library. Unusable.*s3.Clientis the AWS SDK's type.Every assertion was verified by mutation — five plants (
objectfs mount --turbo,s3.NewDefaultConfigWithProfile,s3.NewNonexistentThing, apkg/memmonitorimport,flag.Bool("debug")→("verbose")), all caught with correct line numbers, all reverted.Two implementation notes worth recording, since both were live bugs in the prototype:
^```(bash|sh|)[^\n]*\n(.*?)^```gets out of phase, because a closing fence followed by a newline also matches as an empty-language opener. That made the first draft silently missOBJECTFS.md's threeobjectfs configinvocations — a gate reporting success while checking nothing.parser.ParseDiris unusable here, and its deprecation reason is the behavior this gate wants: it ignores build tags, andinternal/fuseis//go:build linux || darwin, so a symbol documented for Linux must not be reported missing because the test runs on a Mac. Rewritten onos.ReadDir+parser.ParseFilerather than suppressing SA1019.The procedural half is in
CONTRIBUTING.md: a throughput, latency, or speedup figure must cite the benchmark by file and function, the parameters, and a runnable command. Rule rather than test because a number in prose cannot be compared to a benchmark automatically — which is exactly why "4.6x" survived nine files.Eleven defects on the first run, all real, zero false positives
Two were not cosmetic:
cache.GetPredictiveCacheis not a misspelling — the statistic is genuinely unreachable. ThePredictiveCachea mount builds is wrapped inMultiLevelCache.initializeLevelsand stored as an opaquetypes.Cache; prediction accuracy and prefetch efficiency are computed on every read of every mount and discarded at unmount. Filed as cache: the predictive cache a mount builds has no reachable statistics #223.pkg/clientwithMount/GetHealth/ListObjects/Unmount. Replaced with the realadapter.New/Start/Stop, compiled before publishing, and annotated with theinternal/restriction that makes the honest statement: running the binary is currently the only supported way to use ObjectFS from another program.The last content pattern
docs-platform/guide/index.md:28was the final "POSIX compliance" in the repository. Correcting it meant reading the page, which found six more claims — each checked against code:main.goregistersSIGHUPalongsideSIGINT/SIGTERMand treats any signal as shutdown —SIGHUPunmounts the filesystemRBAC/Authorize/Authenticateoutside testsinternal/distributedimports itTwo defects worse than a dead link, found in the same sweep
pip install objectfsinstalls somebody else's package. Neither SDK has ever been published — no workflow here publishes them — andobjectfsis taken on PyPI by an unrelated "Simple Python VFS module" from 2015. The documented command did not fail; it succeeded with different software, which is indistinguishable from success until an import fails.@objectfs/sdkat least 404s.setup.py's classifier andpackage.json'slicense, the two fields a licence scanner reads. The Javapom.xmlhad it right, so the three shipped manifests disagreed with each other and two withLICENSE.Plus the two broken tables of contents markdownlint had been failing on all along (
OBJECTFS.mdlisted 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 deadobjectfs.iodomains across six files,mkdocs.yml'ssite_urlamong them. The MD051 failures are instructive on their own: the hook only reports files a commit touches, so a defect in a file nobody edits is a defect nobody sees.What this does not cover
Verified green:
go build ./...,go vet ./...,gofmt -lclean,golangci-lint run --new-from-merge-base=main→ 0 issues, fullgo test -race -timeout 20m ./..., andpre-commit runon every staged file.scttfrdmn commentedon Aug 2, 2026
All four content patterns swept and the gate that stops the pattern recurring is in place. The two items that remain are tracked separately: #208 (24 internal links pointing at files that do not exist — a different mechanism, since a link target is a path rather than a symbol) and #223 (unreachable predictive-cache statistics, found by this gate).
docs: three mechanical gates, and the 90 claims they found false (#225)