Documentation accuracy sweep: undocumented behavior and stale claims #74
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A collection of smaller doc/code divergences found while surveying for
1.0. Individually minor, collectively the difference between docs a user
can trust and docs they learn to ignore. Grouped here because they are all
"make the docs match the code" with no design decisions.
Excluded because they have their own issues: the remote-layout and privacy
claims (#67), the migration story (#68), and
snapshot list(#64).Items
internal/ui"fmt.Fprintf(os.Stdout, …)bypassinguiin:internal/cli/version.go:20-37(all ofversion);internal/cli/config.go:276-277,336,346,401(all ofconfig init/get/set);internal/cli/database.go:69,76,78,84,105(all ofdatabase delete, including its interactive prompt);internal/vaultik/info.go:18-36viav.stdoutf(vaultik.go:161-163);internal/vaultik/snapshot.go:610-684(thesnapshot listtable). All unstyled, uncolored, and ignoringw.Quiet().avgChunkSize: From config (typically 64KB)"internal/config/config.go:27,defaultChunkSize). README:365 is correct; ARCHITECTURE.md is stale by two orders of magnitude.internal/blobgen/writer.gouseszstd.EncoderLevelFromZstd, which collapses 1-19 into klauspost's 4 discrete levels. Validation accepts 1-19 (config.go:324-327) but only ~4 behaviors exist.VAULTIK_CPUPROFILEandVAULTIK_MEMPROFILEare undocumented (cmd/vaultik/main.go:14,30).RunWithAppunconditionally takes a process-wide lock in$XDG_DATA_HOME/vaultik(internal/cli/app.go:264-275) for every fx-backed command, sovaultik snapshot listfails while a backup runs. Either document it or scope the lock to mutating commands — note that scoping is a behavior change and should be its own issue if chosen.ls(internal/cli/snapshot.go:155) andrm(:292) are undocumented.age_secret_keyis a real config key (internal/config/config.go:132) but appears neither in the README reference nor indefaultConfigTemplate. Given the threat model, a key that places the private key on the backed-up host must be documented explicitly, with its consequences — or removed. See #73.fx.Newblock saysfx.Supply(config.ConfigPath(...)); the real type isconfig.Path(internal/cli/app.go:85).ARCHITECTURE.md,docs/DATAMODEL.md,docs/REPOSTRUCTURE.md, orconfig.example.yml. OnlyAGENTS.mdis linked (README:557).config.example.ymlis named in a user-facing error string (internal/config/config.go:41) but is undiscoverable from the README.Definition of done
routing five call sites through
ui— that refactor is a behaviorchange affecting
--quietand belongs in its own issue. File thatissue and link it. Do not do both here.
effect. If scoping it to mutating commands is the right answer, file
that separately as a behavior change.
either fixed in docs or explicitly deferred to a linked issue — none
silently dropped.
make fmtover all changed markdown;make checkgreen.