Files
final-wishes/docs/MAINTENANCE.md
Eric Bell d588e30b9b Add Cancel to revert unsaved changes in a section
Reverts the section (or print header) on screen to the last open/save
and leaves edit mode.

Closes #11

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 18:24:26 -05:00

8.6 KiB

Maintaining Final Wishes

For the owner. The executor's instructions are in docs/thumbdrive/README.txt.

What you have

One file, final-wishes.html: the app plus your data, encrypted with a passphrase (PBKDF2-SHA256, 600,000 iterations, AES-256-GCM). It runs in any browser, offline. There is no recovery if the passphrase is lost.

Thumbdrive layout

final-wishes.html     the encrypted guide
README.txt            copy of docs/thumbdrive/README.txt (fill in the blanks)
backups/              dated copies, final-wishes-YYYYMMDD.html

Fill in the two blanks in README.txt with where the passphrase and any printed copy are kept, never the passphrase itself.

First-time setup

Either route gives the same kind of file:

  • In a terminal: npm run seal encrypts data/seed.json (prompts twice for a passphrase, minimum 12 characters). To write straight to the drive: node build.js --data data/seed.json --out /mnt/f/final-wishes.html (WSL needs the drive mounted: sudo mount -t drvfs F: /mnt/f).
  • In the browser: npm run build, open dist/final-wishes.html, import a JSON file or start a new document, then Save. You will be asked to choose a passphrase.

Never write a seal over a file you want to keep. npm run seal builds from data/seed.json, not from your latest edits; use it only for the very first file. After that, edit in the page and Save.

After sealing, data/seed.json is still plaintext. Delete it (and see "Security clean-up" below). data/ and *.pdf are git-ignored on purpose.

Updating

  1. Open final-wishes.html from the drive, unlock, click Edit.
  2. Change things, Done editing, Save (or Ctrl/Cmd+S).
    • Chrome/Edge: pick the drive file once; later saves overwrite silently.
    • Firefox/Safari: a new final-wishes.html downloads. Copy it over the old one on the drive.
    • Cancel (next to Save, edit mode only) throws away the unsaved changes to the section on screen, back to how it was at the last open or save, and leaves edit mode. It asks first if anything changed. It works on the Print header page too. Other sections keep their unsaved edits. A section you added this session is removed. Deleting or moving sections is not undone by Cancel, and neither is a passphrase change.
  3. Saving updates "Last update" and the per-record dates. "Last update" is what the printed header shows. Editing the header settings themselves does not change it.
  4. If you changed the passphrase, the old file still opens with the old one until you save and replace it.

Images

Any record can hold pictures (scans of documents, photos of a safe's contents, a screenshot of where to click). They are another kind of field, so they have a label, a secret checkbox, reorder arrows and a delete button like any other field. In Edit mode, add one of three ways:

  • + Add image... in the record, then choose one or more files.
  • Drag and drop a file onto the record (adds a new field) or onto an existing image box (replaces that image).
  • Paste (Ctrl/Cmd+V) with the cursor inside the record (adds a new field), or with an image box selected (replaces it). Text pastes are unaffected.

What to expect:

  • Only PNG and JPEG are accepted. The type is checked from the file's contents, not its name. Anything else is refused with a message.
  • Images are shrunk so the longest side is at most 1600 px and re-encoded. This also removes camera metadata such as GPS location. A large PNG becomes a JPEG (transparency is lost); small PNGs stay PNG so screenshots stay sharp. Photos usually end up well under 1 MB; there is a hard limit of about 3 MB per image.
  • Pictures are stored inside the encrypted document, so they are protected by the passphrase like everything else, but they make final-wishes.html bigger and each save slower. Add what the executor needs, not everything you have.
  • Secret images are hidden in the viewer behind Show/Hide and are withheld ("[withheld]") from a masked print. A photo of an ID card is as sensitive as a password: a full "Include secrets" print contains it.
  • Click an image in the viewer to enlarge it. In print each image is scaled to fit the page (at most about 4 inches tall).
  • Dropping a file anywhere on the page never navigates away from unsaved work.

Upgrading the app (new version, same data)

Your data is stored encrypted inside each final-wishes.html; the app code sits beside it in the same file. A file therefore keeps running the version it was saved with until you move its data into a newer build:

  1. npm run build (or take a newer final-wishes.html build) and open dist/final-wishes.html.
  2. On the start screen choose Open your existing Final Wishes file, pick your current file and unlock it with its passphrase. The old file is only read, not changed.
  3. Click Save and give the result a new name (for example final-wishes-new.html) rather than the current one.
  4. Open the new file, unlock it, and look through it. Only then replace the old file (keep the old one in backups/).

Documents made by older versions keep working: anything a newer version added (such as the print header) falls back to a default until you set it.

Backups

  • Backup copy downloads final-wishes-YYYYMMDD.html to your Downloads folder. Move it into backups/.
  • Keep a second copy off the drive. The file is encrypted, so cloud storage or a second drive is reasonable. Thumbdrives fail without warning.
  • After any important change, open the copy once and unlock it to prove it works.

The passphrase (the real single point of failure)

  • Do not store it on the drive or in the same place as the drive.
  • Good options: a sealed envelope with your will in the fire safe, or with your attorney, plus a second person who knows where it is.
  • Make sure your executor knows the drive exists and where the passphrase is kept. The blanks in README.txt exist for this.
  • Use a few random words (12+ characters is enforced). Do not reuse the LastPass master password.

Printing

Print... offers "Withhold secrets" (safe overview) and "Include secrets" (full copy). Print on Letter paper with the browser's own "Headers and footers" turned off (that is separate from the document header below). A full copy is as sensitive as the passwords on it: store it in the fire safe and shred superseded copies. Page layout was checked by rendering pages in Chromium (Chrome/Edge); it has not been checked in Firefox or Safari, so look at a test print the first time.

The print header

Every printed page starts with a header line in larger bold type. It is part of the document, so it is saved with the rest and is encrypted too. Open Print header at the bottom of the sidebar to see a live preview, then Edit to change it:

  • Add as many fields as you like. Each is either Text (printed as written) or Last updated (an optional label such as Last update: followed by the document's last-update date).
  • Each field's alignment is Left, Right or Not aligned. At most one field can be left aligned and one right aligned; the other choice shows "(in use)" and is disabled.
  • Printed order is always: the left field, then the unaligned fields in the order listed, then the right field. List order only matters between unaligned fields. Use the arrows to reorder and the cross to remove.
  • Reset to default restores the title on the left and "Last update: date" on the right, which is also what a document with no header setting uses.
  • Keep the left and middle text short. If the line gets crowded, the left field wraps first; the right and middle fields never wrap.

Keep it current

Nothing in the app reminds you to review. Set a yearly reminder. Things that go stale: card expiry dates, account balances and metal values, advisors' contact details, anything marked TBD. The "Still to add" section lists known gaps.

Security clean-up (issue #8)

  • Destroy plaintext copies of the source material once the encrypted file is verified: abi-wishes.pdf, the Word version, and data/seed.json.
  • Rotate every password and PIN that appeared in the PDF (LastPass master password, computer PIN, ATM PIN, bank logins), since it existed in plaintext for years.
  • Treat the encrypted file like any sensitive file: an attacker who gets it can try passphrases offline forever, so the passphrase strength is all that protects it.

Limits

This is a guide, not a legal document. It does not replace a will, health care directive or powers of attorney, and the executor may still need those to be granted access to accounts.