Files
HackBrowserData/rfcs
Roger a734e777a8 refactor(app): export one function per command (#712)
* refactor(app): export one function per command

Step 2 of #710. A command's logic was split between cmd and stage-shaped app calls; cmd now parses flags, calls one function and prints what it returns. An error means the command never ran, and a run that ended early says so in Summary.Err.

* fix(app): check dumpkeys and archive -o up front

A missing output directory was reported only after the keys were retrieved or the files copied.

* docs(rfcs): move restore's input out of the command layer

Restore now discovers its directories in an archive itself, so the command layer no longer holds the data it reads.
2026-11-22 14:45:39 +08:00
..

HackBrowserData RFCs

These RFCs are HackBrowserData's design record: the decisions that shape the program, why they were made, and what was rejected. They are short on purpose. The code, its doc comments, and the git history carry everything else.

How an RFC is written

  • It states a decision, the reason for it, and the alternatives rejected — in the words of the domain and the external contract.
  • It names no code: no types, functions, fields, files, or tests. It gives no step-by-step procedures, and it keeps no list that grows with the code, such as browsers, versions, or fixes.
  • The test for every sentence: would a refactor, a rename, a bug fix, or a new browser force an edit? If so, the sentence belongs in the code or its history, not here.
  • An RFC changes only when a decision changes, and the pull request that edits one says which decision changed. The code never cites an RFC.

Index

RFC Decides
000 The goals, the limits, and the external contract
001 The one-way pipeline, outcomes, layering, and naming
002 Browsers as data, bases, and forks as rows
003 Key scopes, lazy retrieval, and where secret handling lives
004 Snapshot-first capture, and archive and restore as the same pipeline
005 The frozen output, deterministic order, and safe writing
006 The frozen command surface, validation first, and password input
007 How tests, lint, Go 1.20, and dependency rules keep the design honest