Skip to content

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

Closed

Description

@scttfrdmn

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 the winfsp/cgofuse dependency. It also never compiled: filesystem.go carried no build constraint, so under the tag OpenFile was declared twice.
  • "Windows (Research Labs) — Uses winfsp/cgofuse with WinFsp." Windows is explicitly unsupported. Every file in internal/fuse carries //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) documents metrics.NewDetailedPerformanceMetricsWithOptions(...), which does not exist — no such symbol repo-wide. And NewDetailedPerformanceMetrics (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.md shows objectfs mount s3://... /mnt/demo, objectfs list-mounts, objectfs status /mnt/demo as runnable in an interactive playground. There are no subcommands — cmd/objectfs/main.go:81 takes exactly two positional arguments. B1-1: Add mount / unmount / version subcommands to CLI #134 adds mount/unmount/version; list-mounts and status are not planned anywhere.
  • docs-platform/guide/getting-started.md (397 lines) instructs curl -sSL https://get.objectfs.io | sh and an apt repo at https://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, and OBJECTFS.md:56,61,179 (bannered at :19 as false, but the body still says it — a banner is weaker than a correction). Against 10 of ~40 VFS operations.
  • docs/VISION.md:120 claims HIPAA/FISMA/SOC 2 compliance. There is no auth code in the repo. This is the same claim removed from docs-platform/index.md:45 in 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.md is 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:

  1. Delete README_CROSS_PLATFORM.md and the 21 4.6x claims. Mechanical, removes the two most concretely false things.
  2. Fix or delete docs/index.md and docs-platform/guide/getting-started.md — the two entry-point documents.
  3. Resolve the four dead-code packages: decide wire/mark/delete per package, then make the docs match.
  4. docs/performance-metrics.md: correct the constructor signature and state plainly that the subsystem has no caller yet, or delete.
  5. 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

  1. added this to the Future Work milestone on Aug 2, 2026
  2. added
    type: documentation
    priority: high
    area: docs
    on Aug 2, 2026
  3. scttfrdmn commented on Aug 2, 2026

    @scttfrdmn
    OwnerAuthor

    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:

    Test What it enforces
    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 precisely 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 real tree:

    • every lowercase.Uppercase in every Go block — 93 hits, 3 real. s3.Client is the AWS SDK, cache.Get is a method on a local variable, errors.Is is the standard library. Unusable.
    • file-scoped imports — 5 hits, 3 real. The two false ones are a method-signature listing where *s3.Client is the AWS SDK's type.
    • block-scoped — 3 hits, 3 real, 0 false. Chosen, with its one blind spot stated in the test rather than left to be discovered: a continuation block using a package imported by the block above it is not checked.

    Every assertion was verified by mutation — five plants (objectfs mount --turbo, s3.NewDefaultConfigWithProfile, s3.NewNonexistentThing, a pkg/memmonitor import, 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:

    • Fences must be paired by alternation, not matched by regex. ^```(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 miss OBJECTFS.md's three objectfs config invocations — a gate reporting success while checking nothing.
    • parser.ParseDir is unusable here, and its deprecation reason is the behavior this gate wants: it ignores build tags, and internal/fuse is //go:build linux || darwin, so a symbol documented for Linux must not be reported missing because the test runs on a Mac. Rewritten on os.ReadDir + parser.ParseFile rather 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.GetPredictiveCache is not a misspelling — the statistic is genuinely unreachable. The PredictiveCache a mount builds is wrapped in MultiLevelCache.initializeLevels and stored as an opaque types.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.
    • The playground's Go example was an entire fictional API — pkg/client with Mount/GetHealth/ListObjects/Unmount. Replaced with the real adapter.New/Start/Stop, compiled before publishing, and annotated with the internal/ 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:28 was the final "POSIX compliance" in the repository. Correcting it meant reading the page, which found six more claims — each checked against code:

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

    Two defects worse than a dead link, found in the same sweep

    • pip install objectfs installs somebody else's package. Neither SDK has ever been published — no workflow here publishes them — and objectfs is 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/sdk at least 404s.
    • Both SDKs declared themselves MIT against an Apache 2.0 project — setup.py's classifier and package.json's license, the two fields a licence scanner reads. The Java pom.xml had it right, so the three shipped manifests disagreed with each other and two with LICENSE.

    Plus the two broken tables of contents markdownlint had been failing on all along (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. 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

    • Compilation is deliberately not checked, only symbol existence. A doc snippet is an excerpt — it references variables declared in prose, elides error handling, shows signatures without receivers. Demanding it compile makes every honest excerpt fail, and then the gate gets switched off. Symbol existence is the largest subset of "does this work" an excerpt can be held to.
    • Internal link targets — 24 of them point at files that do not exist, tracked separately in docs: 24 internal links point at files that do not exist, and nothing checks them #208.

    Verified green: go build ./..., go vet ./..., gofmt -l clean, golangci-lint run --new-from-merge-base=main → 0 issues, full go test -race -timeout 20m ./..., and pre-commit run on every staged file.

  4. scttfrdmn commented on Aug 2, 2026

    @scttfrdmn
    OwnerAuthor

    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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: docspriority: hightype: documentation

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions