M6: Ship (encrypted secrets, per-workflow site access, releases, limits) — v1.0.0 #9

Merged
akib merged 17 commits from akib/m6-ship into main 2026-11-11 08:46:02 +00:00 AGit
Owner

M6: Ship (v1.0.0)

Implements docs/M6-PLAN.md. What was built, how it differs from the plan, and what still needs a person: docs/M6-NOTES.md.

New

  • Encrypted secrets (M6.1): passphrase protection (AES-GCM, PBKDF2 600k), key only in session storage. Locked runs that use secrets fail with secrets.locked. "No passphrase" mode works as before, with a warning.
  • Site access per workflow (M6.2): the store build asks for no site at install. Run or On asks for the sites the workflow uses ("Grant access"). Background runs without access fail with permission.missing naming the site. docs/PRIVACY.md explains every permission.
  • Safari (M6.3): the build leaves out unsupported APIs, and each missing API fails with a clear permission.missing (tested). The Safari build runs in CI. docs/SAFARI.md.
  • Releases (M6.4): release.yml on v*.*.* tags: check, build, Firefox lint, zips, GitHub release, and optional AMO signing / Chrome draft upload. npm run lint:firefox runs in CI. Store listing text and screenshots are in docs/store/.
  • Limits and performance (M6.5): Settings → Limits (runs, log lines, screenshots, blocks per run). Workflows over 150 blocks draw only the blocks in view, so 500 blocks open in about 2.4 s instead of 3.8–4.9 s.
  • Docs (M6.6): lesson 10 (the DevTools Protocol, example verified in Chromium), wiki gaps filled, CHANGELOG.md.
  • npm packages: blockflow-bridge, blockflow-mcp, blockflow-runner (the CLI; blockflow-cli on npm is unrelated). The runner bundles the extension at pack time.

Verification (this machine)

  • npm run check: 1141 unit/DOM tests
  • npm run e2e: 357 checks in 31 specs (Chromium 156)
  • m6-hosts on the BF_E2E_NO_HOSTS=1 build: 6 checks
  • npm run e2e:firefox: 52 checks (Firefox 159)
  • CLI e2e; build, build:firefox, build:safari; lint:firefox (0 errors, 7 warnings explained in docs/store/firefox.md)
  • The three packages packed, installed from the tarballs in an empty folder and run there. The runner used its bundled extension, passed and failed the right workflows and wrote JUnit.

Needs a person

  • Store accounts and API keys, the first uploads, the data-usage forms
  • The real browser permission prompt (docs/manual-test/M6-permissions.md)
  • Safari on a Mac
  • npm login and publishing
  • Tagging v1.0.0
  • Open decision: Firefox does not accept declarativeNetRequest as an optional permission (see M6-NOTES).

🤖 Generated with Claude Code

## M6: Ship (v1.0.0) Implements [docs/M6-PLAN.md](docs/M6-PLAN.md). What was built, how it differs from the plan, and what still needs a person: [docs/M6-NOTES.md](docs/M6-NOTES.md). ### New - **Encrypted secrets (M6.1)**: passphrase protection (AES-GCM, PBKDF2 600k), key only in session storage. Locked runs that use secrets fail with `secrets.locked`. "No passphrase" mode works as before, with a warning. - **Site access per workflow (M6.2)**: the store build asks for **no site at install**. Run or On asks for the sites the workflow uses ("Grant access"). Background runs without access fail with `permission.missing` naming the site. [docs/PRIVACY.md](docs/PRIVACY.md) explains every permission. - **Safari (M6.3)**: the build leaves out unsupported APIs, and each missing API fails with a clear `permission.missing` (tested). The Safari build runs in CI. [docs/SAFARI.md](docs/SAFARI.md). - **Releases (M6.4)**: `release.yml` on `v*.*.*` tags: check, build, Firefox lint, zips, GitHub release, and optional AMO signing / Chrome draft upload. `npm run lint:firefox` runs in CI. Store listing text and screenshots are in `docs/store/`. - **Limits and performance (M6.5)**: Settings → Limits (runs, log lines, screenshots, blocks per run). Workflows over 150 blocks draw only the blocks in view, so 500 blocks open in about 2.4 s instead of 3.8–4.9 s. - **Docs (M6.6)**: lesson 10 (the DevTools Protocol, example verified in Chromium), wiki gaps filled, `CHANGELOG.md`. - **npm packages**: `blockflow-bridge`, `blockflow-mcp`, `blockflow-runner` (the CLI; `blockflow-cli` on npm is unrelated). The runner bundles the extension at pack time. ### Verification (this machine) - `npm run check`: 1141 unit/DOM tests - `npm run e2e`: 357 checks in 31 specs (Chromium 156) - `m6-hosts` on the `BF_E2E_NO_HOSTS=1` build: 6 checks - `npm run e2e:firefox`: 52 checks (Firefox 159) - CLI e2e; `build`, `build:firefox`, `build:safari`; `lint:firefox` (0 errors, 7 warnings explained in `docs/store/firefox.md`) - The three packages packed, installed from the tarballs in an empty folder and run there. The runner used its bundled extension, passed and failed the right workflows and wrote JUnit. ### Needs a person - Store accounts and API keys, the first uploads, the data-usage forms - The real browser permission prompt (`docs/manual-test/M6-permissions.md`) - Safari on a Mac - `npm login` and publishing - Tagging `v1.0.0` - Open decision: Firefox does not accept `declarativeNetRequest` as an optional permission (see M6-NOTES). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
akib added 17 commits 2026-11-11 07:23:18 +00:00
docs/M6-PLAN.md breaks M6 into small, ordered tasks with exact files, interfaces, tests, commands and
definitions of done, so a smaller model can implement it: encrypted secrets (vault format, Host state,
locked runs), optional host access per workflow + PRIVACY.md, Safari guards and build, release workflow
and store material, configurable limits and a 500-block perf spec, docs (CDP lesson, CHANGELOG), 1.0.0.
Steps needing accounts, a Mac or a browser prompt are marked [HUMAN].

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Add src/browser/secretVault.ts (PBKDF2 + AES-GCM sealing of bf:secrets),
the bf:secrets-key storage.session key, and tests. Plain v1 maps still
work unchanged.
Host.secrets.all() decrypts bf:secrets when the session key is present,
secrets.state() reports plain/unlocked/locked. Engine fails a run
(secrets.locked) when secrets are locked and the workflow uses them.
Bridge secretNames() reads bf:secrets directly via the vault so it works
while locked. Adds secrets.test.ts and engineSecrets.test.ts, plus the
secrets.locked error code in the guide and Troubleshooting.md.
SecretsPage now handles the three vault states: plain (unencrypted, with
protect option), locked (names visible, values hidden, unlock form), and
unlocked (edit/add/delete, lock now, remove passphrase). The key lives in
storage.session only. Editor reads secret names via useSecretNames so it
works while locked. Exports toBase64/fromBase64 from the vault. Adds a
jsdom DOM test for the locked/unlocked/lock transitions.
Protect a secret, run a workflow with {{secret.loginPassword}} (passes),
drop the session key to simulate a restart (run fails locked, no steps),
unlock through the editor (run passes again).
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Manifest: no host_permissions at install (WXT's copies from runtime content scripts stripped), <all_urls>
optional. Editor: missing sites computed per workflow, Grant access note, Run and the On switch ask in the
same click. Page driver: no host access -> permission.missing naming the site.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
- Versions 1.0.0 (root and packages/*).
- CLI package renamed blockflow-runner (blockflow-cli on npm is unrelated); it bundles the automation
  build of the extension at pack time (scripts/pack.mjs), so it works without a checkout. READMEs,
  LICENSE, repository metadata for blockflow-bridge, blockflow-mcp and blockflow-runner.
- Canvas virtualisation only above 150 blocks: below that every block stays in the page (the virtualised
  canvas broke finding off-screen blocks in authoring, frames-recording and editor-ux).
- Status in README, IMPLEMENTATION, PLAN, Roadmap, Home; docs/M6-NOTES.md (what is left for a person).

Verified: npm run check (1141 tests); npm run e2e (357 checks, 31 specs, Chromium 156); m6-hosts on the
no-hosts build (6); npm run e2e:firefox (52, Firefox 159); CLI e2e; build, build:firefox, build:safari;
lint:firefox (0 errors); the three packages packed, installed in an empty folder and run there.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
akib merged commit a78f59ab47 into main 2026-11-11 08:46:02 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
akib/blockflow!9
No description provided.