Skip to content

Importing the spreadsheet history ​

A one-time tool that reads a download of the old spreadsheet and fills the local database with its history, then proves nothing was lost on the way and shows what the app's reconcile would have done with the same bank lines.

First real run

This tool was written and tested on the fictional download that the fixture command builds (the Addams household). Its first run on a real spreadsheet was on 5 December 2026, and the check passed. The layout rules below still came from reading the spreadsheet's structure, so the review list, the check and the dry-run flag are what to trust, not this page: read the output before you trust any of it.

What it does, and what it never does ​

  • Reads one .xlsx file, plus (optionally) a household file and a bank lines file. Nothing is sent anywhere.
  • Writes only to the local D1 database on this computer (the file wrangler dev keeps under apps/worker/.wrangler). It refuses --remote and the like, and refuses to run while Cloudflare credentials are set in the shell. There is no switch to turn that off.
  • Keeps real files out of git. The download, the household file and every report must live outside every repository (the script refuses a path inside one), and .gitignore also covers the usual names.
  • Never writes to the spreadsheet, the bank or the live app. The compare is a dry run. The local database is the only target there is. The import itself is not a go-live path: the checked local data reaches the real app only through the separate export below, which writes a file and prints commands for you to run.
  • Never deletes. A re-run archives the previous import's rows and writes new ones (ADR 0017), and refuses to do even that when it would set aside work done in the app since (see "Running it again").

Recent months from the Sheet, older history from the bank ​

The old months of the Sheet were built by hand before this design, so they hold lumped cells and marks the bank doesn't agree with. The import therefore loads only recent months from the Sheet and builds the older history from the bank file:

  • Start month. IMPORT_START_MONTH=YYYY-MM in the env file (or all for every tab, the way the import first worked: with all the bank file only feeds the compare and adds nothing). Without it the import loads the month of the download's day and the one before it (a download from 5 December starts in November), plus every later tab (the planned months). Month tabs before the start month are left out, counted as such in the report, and need not be readable.
  • Opening balance. The start month's tab already carries the balance from the month before; the report says it ("Opening balance on the day before it: …"). When that tab has no carried balance the month before's last end-of-day balance is used, and when the two disagree the report says so. The one-time check still compares every day of the loaded months with the file's balances.
  • The bank file (BANK_LINES_FILE) runs through the app's own reconcile matching against the Sheet's entries from the start month on. A line a Sheet entry already stands for adds nothing. Every other line becomes an entry, the way the reconcile would add it (its placement day, posted and confirmed, or pending on the day of the download): every line before the start month (the older history), and any line since that the Sheet has no entry for. Merchants come from the aliases, owners from the aliases, the card rules and the household, an envelope from the alias when it has one, no tags and no hand-written notes (the note is the merchant, as the reconcile writes it). They sit on a tab of their own in the report ("Bank file"), and the check's balances (which belong to the Sheet's month tabs) leave them out. They are never linked to recurring items.
  • The compare covers the lines from the start month on only, against the Sheet's own marks. Older lines are history, not differences.
  • What the CSV needs: a header row naming date, description and amount (any case; a CHECK # column is ignored), and optionally status (posted or pending; blank is posted) and id. Export it from as far back as the history should go (the import takes whatever the file holds).

Transfers (the trust, savings, the mortgage) are read through the Accounts tab and the household file's money movement rows. Where there are none, a bank line for a transfer loads as an ordinary merchant, and the report says so: fill those in and run the import again.

Steps ​

  1. Download the spreadsheet as Excel. In the spreadsheet, choose File > Download > Microsoft Excel (.xlsx). Pick this one on purpose: it is the only download that keeps every tab in one file and the look of each cell (dark fill, yellow fill, underline), the notes on cells and the formulas. CSV and PDF downloads lose all of that, and CSV is one tab at a time.

  2. Move the file out of Downloads to a folder that is not inside any git repository, for example ~/.config/budget-bob/. Do not put it in this repository, even temporarily.

  3. Make the env file. Copy scripts/import/import.env.example to ~/.config/budget-bob/import.env and fill it in: IMPORT_FILE (the download), HOUSEHOLD_FILE, and BANK_LINES_FILE (the bank CSV: older history, gap fills and the compare). REPORT_DIR defaults to ~/.config/budget-bob/reports (created with mode 0700; every report is mode 0600). The tool only changes a folder it made itself: an existing REPORT_DIR that holds other files, or an empty one other people can read, is refused. To check that the download holds every month you expect, add IMPORT_FIRST_MONTH and IMPORT_LAST_MONTH (YYYY-MM, for example 2025-09 and 2026-12): a month in that range with no tab fails the check (months before IMPORT_START_MONTH are not looked for). IMPORT_START_MONTH picks the first month to load (see above).

  4. Make the household file. Copy scripts/import/household.example.json to ~/.config/budget-bob/household.json and fill in what the spreadsheet keeps in its script and not on a tab: the people (id, name, owner tag, role; a child has no role), the bank's words on a statement line, the money movement words, the last 4 of the checking account, the time zone. What is missing is reported, never guessed.

  5. Make the bank lines file. The spreadsheet keeps no bank transactions, so this is a CSV from the bank's own download with a header row naming date, description and amount, and optionally status (posted or pending; blank means posted) and id. Dates are YYYY-MM-DD or MM/DD/YYYY; amounts are signed (money out is negative; (20.00) and $1,234.50 are fine). A line that can't be read is listed by row number and skipped.

  6. Start from a fresh migrated database. The seed script puts the Addams household in; do not load that and then import over it. Wipe and migrate only:

    sh
    rm -rf apps/worker/.wrangler/state/v3/d1
    npm run db:migrate:local -w @home-budget/worker
  7. Preview first. Stop wrangler dev if it is running (it holds the local database open). The preview reads everything, runs the check, review and compare and writes the reports, but writes nothing to the database:

    sh
    npm run import:run -- --no-write
  8. Load it.

    sh
    npm run import:run

    If the check at the end says FAIL, the rows are loaded: fix the cause and run again (a run archives the earlier one) before you use the app with this data. Or give the run the option --rollback-on-fail (after the -- in the npm command): when the check fails, for any reason (the file, or the rows as the database holds them), nothing is saved and the earlier run's rows stay live; the reports still say why.

  9. Read the result (below). The screen shows the first 25 items of each list; the full lists are in the report files in the report folder.

Other commands: npm run import:check (the file against the last load, writes nothing to the database), npm run import:compare (only the compare), and npm run import:fixture -- --out <folder> [--mismatch] (writes the fictional download, household file and bank lines file, to try the whole thing on).

What you get ​

The import report: for every tab the import reads, rows in the file = loaded + rejected + left out on purpose, and each rejected or left-out row with its reason. A cell the reader could not place at all (no address in the file) is counted and fails the check; a stray cell far outside any budget sheet stops the run with a message. Tabs the import does not read (the Sheet's own report tabs) are listed as "not read" with their row counts, so they are said, not hidden.

The one-time check ends in one line, PASS or FAIL, and the exit code is non-zero on FAIL:

  1. Every row of every tab the import reads is accounted for, and the counts add up to what the file has. The count of a month tab is taken from the cells the file really has in its amount rows and below its totals, so a cell the reader never looked at (one in a column past the month's last day, say) is counted and rejected as "outside the grid" rather than missed.
  2. What the database holds from this run is what the plan loaded: counts per kind and the entries' amounts added up; then each entry on its own (its day, amount, owner, status and envelope parts, and that a split's parts add up to minus the amount); then the balances worked out again, day by day, from the rows the database holds. An entry written on the wrong day, with a lost owner or lost parts, is caught even when every total still agrees.
  3. For each month tab, the end-of-day balance on every day (the opening balance plus every entry up to that day, envelope placeholders included because the spreadsheet counts them) is compared with the balance the file shows. A difference is printed in cents with the entries behind that day. The check fails, rather than passing with nothing checked, when the file has no month tab it could read, when no entries were loaded, when a month tab has no end-of-day balances at all (a download that kept formulas without saved values: open and re-save it in the spreadsheet), or when a day has no balance (blank, an error value such as #REF!, not a whole number of cents) on a tab that has others; the days are listed. A month that doesn't open where the one before closed is said, but is not a failure by itself.
  4. Nothing was left unread. The check also fails when a list tab (Settings, Aliases, Recurring, Cards, Accounts, Envelopes) is missing, or is there but its header row isn't found (a renamed header), or the Envelopes tab lacks one of its three tables; when a setting the app needs is given by neither the file nor the household file; when a tab's name looks like a month but isn't read as one (Oct 2025 (old), Dec-2026, 12/2026: rename it "October 2025"); and when a month is missing between the first and last month tab (or from the IMPORT_FIRST_MONTH to IMPORT_LAST_MONTH range, when you set one).

The last line says exactly what was checked. PASS: ... means the file and the database were both checked. PASS (database not checked): ... (a preview with --no-write, or import:check before anything was loaded) means only the file was; it is not a statement about the database. The exit code is 0 for both, 1 for FAIL.

The review list is what needs a person's eye, printed after every run: tags that look like a known tag, splits that don't add up, two owner tags on one entry, notes and bank lines that match no merchant (or a suspect one such as a lone "and"), and cells with a fill colour it doesn't know. Nothing in it was changed or guessed.

The reconcile compare runs the app's own bank reconcile once, as a dry run, over the Sheet's imported entries (not the ones the bank file added) and the bank lines, and says what it would do with every one in plain words: matched, added, amount differs, not at bank, or didn't post. Where the download kept the cell marks, each outcome is set beside the mark the spreadsheet gave the cell (dark fill = cleared, underline = added by reconcile, yellow = amount changed to the bank's) and every difference is listed; where it did not, the outcomes come in month-tab order to compare by eye. The compare ends with Bank lines: N in the file, N accounted for; if they don't match it fails. npm run import:compare exits 1 if it found a difference or the bank lines don't add up, and 3 if the file keeps no marks on its cells (nothing could be compared automatically: it prints every outcome to read by eye); npm run import:run prints the compare but its exit code follows the check alone.

Exit codes: 0 fine, 1 the check failed (or the compare found a difference, or a re-run was refused, see below), 2 it could not run (a guard, a missing file, a database that isn't migrated or that another program holds), 3 the compare had nothing to compare with.

Running it again ​

Every row an import writes has an id starting imp-<run>-. A re-run archives every active imp- row (never deleting) and writes the new file's rows under the next run number, so nothing is doubled and a changed file replaces the old one. Rows the app or you made have other ids and are not archived. The same holds for the pieces that have no id: a setting an import wrote is marked [import imp-N] in its notes, and what the import wrote (a setting's value, a weekly amount) is recorded in the audit log; those are updated, and one you made yourself is kept and listed. A setting or weekly amount an earlier import wrote that the new file no longer has can't be deleted (Settings and weekly amounts are never deleted); the run lists it.

A re-run refuses to throw away work done in the app. Archiving the earlier import's rows would put aside anything changed on top of them, so before it archives anything the run looks, and stops (exit 1, nothing changed, with the reasons in words) when:

  • an imported entry was changed in the app after the import (its updated time is not its created time);
  • something the app made points at an imported row: an entry that points at an imported recurring item, a roll state on an imported entry, a bank pull log line on an imported account;
  • an imported setting, or a weekly envelope amount, no longer has the value the import wrote (or the audit log has no record of what it wrote, so it can't be told).

To go ahead anyway, add --force-rerun (after the -- in the npm command). Nothing is deleted even then: the earlier rows are archived, and the run prints what it set aside.

The whole load is one transaction, and it reads what it needs (the latest run, the people and envelopes the plan is built from, and the checks above) after it holds the database's write lock: if the database refuses any row, nothing is saved. If another program holds the database (wrangler dev does while it runs), the run waits a few seconds, then says to stop it and try again, without changing anything.

Loading it into the real app ​

The import only ever writes the local database. Once its check says PASS, a second command turns that local data into one SQL file that you load into the real app's database, with your own wrangler commands. The tool never runs wrangler, never opens a connection and never reads a Cloudflare credential (a shell that has any set is refused, like for the import).

Not yet run against a real Cloudflare account

The export and its checks are tested on the fictional household and on a freshly migrated copy in memory. Wrangler's --json output shape, whether d1 execute --file stops cleanly when a statement fails, and Time Travel on this database are unconfirmed here (each is marked below). Tell Claude what the screen says at the first real step that differs.

What the export does ​

  • Checks again, first. It re-runs the one-time check on the rows as the local database holds them now (it does not trust an old report). Anything but PASS (or a database with no import in it) stops it, with the check's own words.
  • Refuses what isn't the import's. An active row whose id isn't imp-… in entries, recurring, aliases, cards, accounts, envelope moves or money movements that isn't from the latest run (the demo seed, an older run that was switched back on, or something made in the local app), a person with a demo login (dev-…), a local database that is behind this repository's migrations, or a table the export hasn't decided about. Entries that were edited in the local app after the import are only told, not refused: the check already proved the facts that matter, and the edit is your own.
  • Loads the dump into a fresh copy first. In memory, on a database that has only had the Worker's migrations applied, foreign keys on, with the same guard triggers and checks the real database has. A row that wouldn't load, a row that points at nothing, or a count that doesn't match stops it before anything is written.
  • Writes three files into a new upload-<time> folder inside your report folder (so outside every repository, mode 0700, files 0600): household-data.sql, manifest.json and counts.sql. It never overwrites a folder.

What goes up: people, settings, recurring items, envelopes, weekly amounts, envelope moves, entries and their parts, aliases, money movements, cards and accounts, in that order (parents before children), as one INSERT per line, data only (no schema, no migrations ledger, no transaction statements). Only active rows go of the tables an import re-run archives rows in (entries, recurring, aliases, cards, accounts, envelope moves, money movements, and the parts of active entries): an earlier run's rows are history, not data. People, settings, envelopes and weekly amounts have no run id and go as they are, so a leftover row there goes up too: the export can't tell it from yours.

What stays out, on purpose:

  • Every person's access_subject goes up empty (so does any local login you attached for trying the app). You link people in the real app yourself, after the load (below). The demo's dev-… logins are refused outright.
  • The sealed SimpleFIN value (it is sealed with the local key and means nothing there). Connect the bank under Settings in the real app.
  • The logs and job state (audit_log, pull_log, reconcile_runs, job_health) and the roll state: they are this computer's own history. The real app writes its own.

Text with a semicolon, --, /* or a control character is written as hex (CAST(X'…' AS TEXT)), so a tool that splits a file on ; or strips comments can't misread a bank memo.

Before the first load ​

  1. The real app exists and is deployed in production mode (npm run config:generate -w @home-budget/worker -- --mode production writes apps/worker/wrangler.generated.jsonc; deploy.md). ✅ grep '"name"' apps/worker/wrangler.generated.jsonc says home-budget, not home-budget-demo. Loading into the demo's database by mistake is the one wrong turn here.
  2. The check passes: npm run import:run ends PASS. Stop wrangler dev first (it holds the local database).
  3. The local database has every migration the repository has: npm run db:migrate:local -w @home-budget/worker says nothing to apply. (The export refuses a local database that is behind.)

First load ​

  1. Export. From the repository root:

    sh
    npm run import:export

    ✅ It says the check passes and the dump loads into a freshly migrated copy, lists the rows per table, names the folder, and prints eight numbered steps with your paths filled in. Run those, in order. They are explained here; the printed ones are the ones to copy.

  2. Migrate the real database first. The dump writes every column the latest migrations add (the real database was missing migration 0005, entries.posted_on, when this was written), and the "before" check in the next step fails when the migrations differ:

    sh
    cd apps/worker
    npx wrangler d1 migrations apply DB --remote -c wrangler.generated.jsonc

    ✅ It lists what it will apply and asks to confirm: y. Each ends with ✅. (--remote matters: without it you change a throwaway local copy.)

  3. Ask it what it holds, and check it is empty. counts.sql only reads:

    sh
    npx wrangler d1 execute DB --remote -c wrangler.generated.jsonc --yes --json \
      --file <folder>/counts.sql > <folder>/remote-before.json
    cd ../.. && npm run import:verify-upload -- <folder>/manifest.json <folder>/remote-before.json --before

    ✅ PASS: the real database is migrated and empty. and the dump file's checksum is the one the export wrote. This is also the safety net against the wrong database: the demo's database holds people and entries, so it is never "empty". ❌ A DIFFERENT line means the real database already holds rows: stop, and read "Repeat load" below. Unconfirmed: that wrangler prints only JSON to the file with --json (the check skips lines before the first [ or {, and tells you plainly when it can't read the file). If it can't, or says it found no answers, run the questions in counts.sql one at a time with --command "<one statement>" (and --json), or without --json and compare by eye with manifest.json, and tell Claude what it printed. Unconfirmed: that a --file run with --json returns every SELECT's rows.

  4. Note the way back. Time Travel keeps the database's history (30 days on the paid plan, 7 on free; see the operations runbook). Write down the bookmark before the load:

    sh
    cd apps/worker && npx wrangler d1 time-travel info DB -c wrangler.generated.jsonc

    ✅ It prints The current bookmark is '…'. Keep that line somewhere outside the repository.

  5. Load it. This is the command that changes the real database:

    sh
    npx wrangler d1 execute DB --remote -c wrangler.generated.jsonc --file <folder>/household-data.sql

    ✅ It asks you to confirm (y) and ends with a summary of the statements run. ❌ If it stops partway, do not run it again: whether D1 undoes a half-run file is unconfirmed. Restore the bookmark from step 4 (below), then start again from step 3.

  6. Ask again and compare.

    sh
    npx wrangler d1 execute DB --remote -c wrangler.generated.jsonc --yes --json \
      --file <folder>/counts.sql > <folder>/remote-after.json
    cd ../.. && npm run import:verify-upload -- <folder>/manifest.json <folder>/remote-after.json

    ✅ Every table says ok, the two money totals match, the migrations match, and the last line says PASS. The totals (all entry amounts, all envelope parts) catch what a count can't, such as one changed amount. ❌ Any DIFFERENT or FAIL: don't use the real app with this data. Restore the bookmark and tell Claude the line.

  7. Link each person. The dump leaves access_subject empty, so nobody can sign in yet. For each person, once, the same way as the demo (step 12 in deploy.md; <id> is the person's id from SELECT id, role FROM people):

    sh
    npx wrangler d1 execute DB --remote -c wrangler.generated.jsonc \
      --command "UPDATE people SET access_subject = '<sub>' WHERE id = '<id>'"

    ✅ 1 row changed each. Then sign in: ✅ the dashboard shows the household's own numbers. The Settings tab's reconcile_mode is dry-run (the import never switches anything on): leave it there until you have compared a run with the bank. Connect the bank under Settings.

  8. Delete the files. The folder holds your household's data in the clear:

    sh
    rm -r <folder>

    ✅ The folder is gone. (Keep nothing of it in a repository, a chat or a ticket.) The report folder's other files are the import's own reports; they hold data too.

Repeat load, and the final load on switch day ​

The real database refuses deletes (every table has a trigger for it) and the dump never drops anything, so an occupied database can't be loaded again as it is. To load a newer export (the Sheet changed, or the import was run again), put the database back to the moment before the first load, then do the first-load steps again from step 3:

sh
cd apps/worker
npx wrangler d1 time-travel restore DB --bookmark=<the bookmark from step 4> -c wrangler.generated.jsonc

✅ It says it will overwrite all data in the database and asks to confirm; afterwards it prints the bookmark that undoes the restore. (Wrangler documents this command; not tried on this database.) The bookmark is from after the migrations were applied, so the tables are still there.

A restore throws away everything made in the real app since the bookmark

Only repeat the load before anybody uses the real app. After that the real app is the source of truth and the import is over: don't restore over it. The final load on switch day is the same procedure as the first one, with a fresh bookmark, on a database nobody has used yet. If the real app has been used, ask first.

What the export checks, and what it can't ​

  • Can: that the data is the import that passed its check; that it loads, in order, into a database that has only had the migrations; that the file you load is the file it wrote (size and sha256, rechecked by import:verify-upload); that the real database ends with the same row counts, the same two money totals and the same migrations.
  • Can't: read anything on the real database itself except what you paste back in remote-*.json; know whether you ran the load against the right database (check the name in step 1 of "Before the first load"); see rows the app made on the real database before the load (the "before" check says so when there are any: counts differ).
  • Left to a person: the people's logins, the bank connection, the backup and Access setup (deploy.md, the operations runbook).

How it reads the download ​

  • Month tabs (named like "December 2026") are a grid with one column per day of the month, the day numbers in row 1, one amount per cell below, and a few summary rows under the amounts: a markers row, the opening balance plus money in, money out, and the end-of-day balance. The first amount cell of the first column is the balance carried over, not an entry. The summary rows are found by their formulas; if the download kept values only, at the old fixed rows; if neither, the tab is listed as unreadable and counted as rejected.
  • A month tab's cells past the month's last day (a column with no day), amounts that are not a whole number of cents (a fraction of a cent) or too large to count, and cells below the totals are rejected with the cell's address and why. A second tab for a month the file already has is rejected too (two would load twice).
  • A cell's note is the entry's note. Its look gives the status: a dark fill is cleared (posted), a dark fill with an underline is cleared and added by reconcile (posted, from the bank, confirmed), an underline alone is pending, a yellow fill means the amount was changed to the bank's (posted, confirmed), and no mark is charged, or planned if the day is after the day the file was saved.
  • Envelope placeholders (amounts the spreadsheet puts in the grid to hold back an envelope's weekly money) are left out on purpose: the app works out the envelope reserve itself. The check still counts them in the balances.
  • List tabs (aliases, recurring items, settings, cards, accounts, envelope moves) are found by their header names wherever they sit on the tab; a tab or table that isn't found fails the check (it would otherwise be a silent gap). A time of day in a Settings cell (quiet_hours_start) is read whether it is typed as text or formatted as a time. An account's "as of" is read as wall-clock time in the household time zone and stored as the UTC moment (a day with no time becomes noon that day); without a time zone in the household file it is read as UTC, and the report says so. An amount typed as text accepts 1,234.50, $20, (20.00) and -3; a comma that is not a thousands separator (12,50, 1,2,3) is rejected, never guessed. The settings that live in the spreadsheet's script, not on a tab, come from the household file; the settings the app needs that neither gave are listed.
  • Reconcile mode: when the Settings tab has a reconcile_mode row, the app is given dry-run whatever that row says, and the report notices say when the Sheet's was different. The import never switches anything on. When the tab has no such row, nothing is written for it: the check fails (the app needs the setting), and the pages won't open until it is set.
  • The day of the download is the day the file says it was saved (in the household time zone), or IMPORT_AS_OF in the env file, and decides which unmarked cells are planned and which are charged.

Known limits ​

  • Bank history is thin on purpose: entries built from the bank file have no tags, no hand-written notes and no recurring link, and an envelope only when the alias names one. Transfers need the Accounts tab and money movement rows (above). A line right at the start month's edge is matched to a Sheet entry within the reconcile's few days, so it may be history on one side and a match on the other, never both.
  • The bank's STATUS words: posted and pending (any case) are read; any other word rejects that row, listed by row number, so nothing is dropped silently.
  • Run on a real download once (see the top of this page): what it found there is in the report, not in this page.
  • A yellow cell becomes "amount changed" without the earlier amount: the download keeps the new amount only.
  • Fill colours: plain colours, theme colours (looked up in the file's theme, with their tint) and indexed colours (the standard palette, or the file's own) are worked out to a colour, then read as plain, dark (cleared) or yellow (amount changed). A colour the import can't read as cleared or changed (another shade, or a theme or palette entry the file doesn't have) is ignored: the cell loads with no mark, so a cell the spreadsheet showed as cleared would load as charged. Every such cell is counted and named in the import report's notices, the review list and the check's notes, so look there first. A pale yellow is read as yellow.
  • Hidden rows and columns and merged cells are not looked at: a hidden row's amounts are read like any other, and only the top-left cell of a merge holds a value. If the real download hides or merges cells in a month grid, say so before trusting a run.
  • A download that was never opened and saved again may hold formulas with no saved value; the file reader counts them and the import report says so. Open the file in the spreadsheet and download it again.
  • Comment threads are never read as a note. When a cell's note slot holds a thread (the download writes it as a [Threaded comment] placeholder followed by every comment and reply, which can carry other people's names and email addresses), the entry loads with no note and the review list names the cell by its address, never by its words. Only that placeholder wording is recognised, and it was written from how the format is documented, not from a real download: if a thread still shows up as a note on the review list's "no merchant" items, tell us what its first line says. Resolve or delete the thread in the Sheet before the real upload.
  • A setting or weekly amount that an earlier import wrote can be changed but never removed.
  • Imported accounts carry a placeholder bank account id (import-<role>) until the bank is connected and the real one is set.
  • The app's pages open only for a person whose login matches people.access_subject, and the import adds people without one. The local stub login knows two subjects, dev-gomez (an Admin) and dev-morticia (a Member), so to look at imported data locally, give an Admin and a Member of the household those subjects from apps/worker: npx wrangler d1 execute DB --local --command "UPDATE people SET access_subject = 'dev-gomez' WHERE id = '<admin id>'" (and dev-morticia for the Member), then follow the local steps in apps/worker/CLAUDE.md. Local only; never in production, where real subjects are set.
  • Only xlsx files that Excel and the spreadsheet's download produce are supported: no encrypted files, no macros, no zip64, and the reader refuses a file that unpacks past 100 MB, a tab with a cell past row 50,000 or column 1,000, and an XML character that isn't a real one.