Files
HackBrowserData/rfcs
Roger 7e6f325508 refactor(app): per-stage inputs and per-dir planning (#689)
* refactor(app): per-command flags and per-stage inputs

One Options bag fed every stage and cmd patched restore's keys into it after validation; each stage now takes what it
reads, dir-level failures are their own type, and cmd prints what a run exported.

* refactor(app): group the plan by dir and profile

Execute now walks the plan's own shape instead of filtering a flat list and looking profiles up by name.

* refactor(app): file code by command and stage

Pure moves: each command's flags and validation sit beside its stage, and execute.go keeps only the runner.

* refactor: read the keychain password in cmd

Prompting and reading stdin are terminal work, so app now receives the password func; cobra already rejects both flags.

* refactor(app): plan each user data dir right before it runs

A run-wide Plan had to drop its extractors and rebuild them with the keychain; per-dir planning keeps one extractor.
2026-11-09 17:25:36 +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