Compare commits

..
Author SHA1 Message Date
poli0981andClaude Opus 5.5 56d9b6eba9 fix(review): focus after a delete, the webkit WebRTC alias, one new folder, a sturdier harness
A second adversarial review, of the review-fix commits themselves, found
six problems. All are fixed here.

- Focus after a delete: a delete from the duplicate panel, or from the trash
  button of a row that did not have focus, left keyboard focus on <body>.
  The dialog cannot hand focus back to a button that went with what it
  deleted. `confirmDelete` now says where the delete was asked for: the
  tree gets focus back, and the panel moves it to the next copy's button,
  else to its close button. Checking for <body> was not enough: after a
  dialog closes, focus sits on its button until the browser's next
  rendering update, so a control in a closed dialog, or a detached one,
  now counts as lost too. Confirmed in the harness for all three paths.
- Import step 04: confirming the safety backup removed both of its buttons
  and dropped focus. A phase change now hands focus back to the heading.
- WebRTC: both gates matched `\bRTCPeerConnection\b`, which no word
  boundary lets match `webkitRTCPeerConnection`, an alias Chrome still
  ships. Prefixed aliases now count. The evasion comment in guard.mjs no
  longer claims to cover every way of hiding a member name.
- New folder: Chrome fires onCreated before create() resolves, so the live
  event could insert the folder first and newFolder then inserted a second
  row with the same id. It now inserts only when the folder is not already
  there, with a test that loses the race on purpose.
- Screenshot harness: `wxt build` empties .output first, and re-listing it
  threw inside the request handler, which ended the process. It now answers
  404 or 503 and recovers once the build is back.
- The duplicate summary uses one wrapper key instead of two fragments glued
  together in markup (docs/07 §2); Japanese gets its own separator again.
- Docs: the popup's tabId and `tabs.getCurrent` (docs/02 §6, 08 §2), the
  new-folder race (03 §3), focus after deletes and import phases (06 §5).
  SonarCloud's scan job now also receives the generated .wxt/, so
  tsconfig.json's `extends` and the `@/` alias resolve (12 §2.5).
- Tests for edit/tree-keys.ts, which had none, and for the focus helpers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 03:39:53 +07:00
poli0981andClaude Opus 5.5 d346a3fa6b fix(scripts): serve the harness from a file index, and a linear CSV number test
SonarCloud's quality gate failed PR #27 on two findings in new code.

- S2083 (blocker): the screenshot harness built the file path from the
  request and then checked it stayed inside the build. The check held, but
  taint analysis cannot see a prefix test, so the harness now lists the
  build once and serves only files from that index; a request can name a
  file only by looking it up. It re-lists once on a miss, so a rebuild
  while it runs still works. Probed: valid files 200; `..`, `%2e%2e`,
  `%2F` and `%5C` traversals 404; a malformed escape 400.
- S8786: `^\s*\d*\s*$` in the CSV sanitizer let two `\s*` compete for the
  same blanks. `^\d*$` on the trimmed value means the same and is linear.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 03:12:18 +07:00
poli0981andClaude Opus 5.5 69c6a91018 docs: sync for the review fixes; regenerate the screenshots
- docs/03 §3: one bulk command at a time, focus that stays on a rendered
  row, the search that remembers closed folders, the new-folder path.
- docs/05 §9: the 500-row window around the focus replaces the growing
  prefix; measured numbers in place of the old "not done".
- docs/06: rename focus, the pinned failure toast, step-heading focus and
  the import's live region, dialog naming, the new component names.
- docs/02 layout, docs/07 plurals (eighteen since v1.1.0), docs/08 §3 CSP
  with default-src 'none' and the wider bundle gate, docs/09 §7 typed
  diagnostics, docs/12 the Sonar job split and the ops build job's plain
  `npm ci`, docs/15 decision rows and the review's backlog.
- README and PRIVACY say what the CSP refuses instead of "any request".
- capture/: the README set regenerated by `screenshots.mjs --shoot` from
  neutral sample data, lowercase names as the harness writes them; the
  1.0.0 shots are gone. store/screenshots/: 1280×800 dark candidates.
- CHANGELOG [1.1.0] Fixed; CLAUDE.md size figures.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 03:06:09 +07:00
poli0981andClaude Opus 5.5 b712583e58 fix(security): typed diagnostics, wider gates, default-src 'none', Sonar job split
Findings 5–9 of the security review of 1.1.0. None broke the zero-network
or permission promises of the shipped build; each made a claim stronger
than the code behind it.

- Diagnostics: every DiagEvent string field is now a union of fixed values
  (import phases, FileFormat, the ErrorKeys describeError returns, the two
  edit actions, the three storage issues), and error names pass an
  allowlist, logged as 'other' otherwise. `@ts-expect-error` cases keep a
  title from compiling instead of trusting review.
- guard.mjs: optional-chained computed access on globals, `Reflect`, and
  member names assembled from strings or templates (`el['inner' + 'HTML']`)
  all got past it.
- check-manifest.mjs: the bundle is scanned for the same identifiers as the
  source, as bare words — `fetch.call`, aliases, RTCPeerConnection and
  importScripts shipped unseen — and every src/href in the built pages must
  exist inside the package.
- CSP: `default-src 'none'` closes everything unlisted. Every directive the
  pages use is listed, so nothing changes for them; the harness pages load
  with no violation.
- screenshots.mjs: listens on 127.0.0.1 only, checks `OUT + sep` rather than
  a bare prefix, decodes paths safely, and runs Chrome asynchronously — the
  synchronous exec blocked the very server Chrome was waiting on, so
  `--shoot` hung forever.
- SonarCloud: coverage runs in a job with no secret; the scan job installs
  nothing and receives lcov as an artifact. A job's secrets are readable by
  every step on its runner.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 03:05:51 +07:00
poli0981andClaude Opus 5.5 2a84749d57 fix(ui): act on the 1.1.0 UI review — focus, bulk lock, windowed tree, toasts
The adversarial review of the 1.1.0 UI found fifteen problems that the unit
tests and svelte-check could not see; all but one were reproduced in the
built harness first.

- Edit tree: F2 and New folder now focus and select the rename box (Svelte's
  autofocus only acts when nothing else has focus, which was never the case
  here), and Enter or Esc returns focus to the tree. A folder created during
  a search is inserted at once and every folder above it is opened as the
  user's own, so clearing the search no longer hides it and locks the keys.
  A focused row that leaves the screen hands focus to its nearest visible
  folder (edit/focus-repair.ts), and a rename whose row is hidden is
  dropped. A folder closed during a search stays closed until the text
  changes. Right arrow on an empty folder does nothing.
- One bulk command at a time: sort and keep-first now lock every other
  write in the session itself, not just the toolbar, and only the command
  that set `busy` clears it.
- #edit mounts a 500-row window around the focus (edit/row-window.ts) with
  "Show earlier" / "Show more": End on 20k rows mounted all of them.
- Failures get a pinned toast slot; later toasts still show and announce.
- Import: the preview's new/dup badges show again (`$state.raw` — a deep
  proxy broke the WeakMap lookups, already broken in 1.0.x), each step's
  heading takes focus, and one live region announces the outcome.
- Dialogs name their close button "Dismiss" and are described by their
  body, so the counts are read with the title.
- 375 px: the edit toolbar wraps; titles keep their room before the domain.
- Wording: untitled items named by their address in dialogs; plurals for
  show-more and the duplicate summary; a diagnostics copy failure says so;
  the Move dialog's filter is labelled as a folder filter; the Japanese
  notices spell ブラウザ and フォルダ like the rest of the dictionary.
- The logo pulse stops after two cycles (WCAG 2.2.2), and the popup
  switches only the Manager tab it brings forward.
- Back under the size limits: EditSession is three layers (edit-view,
  edit-commands, edit-session); RowActions, RenameInput, ImportProgress,
  ImportAnnouncer and StatusBar are their own components; the tree's key
  handling lives in edit/tree-keys.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 03:05:20 +07:00
poli0981andClaude Opus 5.5 83f49077c6 fix(import): a Replace backup that matches what it deletes, the right roots, and depth Chrome can keep
From the v1.1.0 adversarial review (data integrity):

- Replace re-reads the tree once the backup is on disk. If anything changed
  while the save dialog was open (or while the user checked Downloads on the
  fallback path), the picker path writes the fresh snapshot to the same file
  and checks again (up to 3 times); the fallback path stops with BACKUP_STALE.
  Before, a bookmark added meanwhile inside an existing folder was deleted with
  no copy anywhere.
- Roots resolve by folderType among this device's roots; a signed-in account's
  own roots (Chrome 134+, syncing) are never emptied or written. Replace backs
  up and clears exactly the three destinations.
- An empty Mobile root, which desktop Chrome leaves out of getTree, is found
  with bookmarks.get('3'), so Mobile content stops landing under Other. The
  fake now hides it the same way.
- Plans report writeDepth; past MAX_WRITE_DEPTH (90) the import is refused with
  TOO_DEEP before any backup — Chrome re-reads its own bookmarks file with a
  200-level JSON nesting limit, two levels per folder.
- The suggested backup name carries seconds, and a picked file that never
  received a backup is removed again.
- Edit tab: a stale "created" event for an id the view already holds is
  dropped, and the duplicate finder never pairs a node with itself — together
  they made "Keep first" delete the only copy. Sort re-plans from the folder's
  children at confirm time.
- Netscape: an unescaped <h3> inside a bookmark title no longer turns the
  bookmark into an empty folder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 02:13:17 +07:00
poli0981andClaude Opus 5.5 f011940bf3 fix(review): credit everything the build compiles in, close three sanitizer leaks, sync the spec
From the v1.1.0 adversarial review (security) and the docs pass:

- clsx (MIT) ships too — the Svelte runtime imports it — and wxt's browser
  module as well as @wxt-dev/browser. All four are now credited in About,
  PRIVACY, README and both notice files, and wxt.config.ts fails the build when
  code from any uncredited package would ship; tests/unit/third-party.test.ts
  keeps the notices in step with that list.
- Sanitizer, CSV: default-deny. A title with an unquoted comma — the row that
  makes the extension report CSV_ROW_MISMATCH — shifted a file: path and free
  text into columns no rule rewrote, and the host-only check passed them.
- Sanitizer, HTML: unknown attributes (Firefox POST_DATA, any DATA-*) are
  rewritten; only dates, root markers and the charset line are kept.
- Sanitizer: a value-level leak check over CSV fields, attribute values and
  JSON strings, and a refusal that prints counts only — it used to print the
  leaked words and ask for them in a public issue.
- BM_ENV_ERROR_CODES joins the per-locale message check, with the four fixed
  keys describeError maps; the popup no longer logs crashes nothing can read.
- docs 00/02/03/05/06/07/08/09/11/13 describe v1.1.0 (diagnostics moved to
  09 §7; 13 §3 points at store/listing.* instead of a drifting copy); tokens
  and gen-icons comments corrected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 02:06:34 +07:00
poli0981andClaude Opus 5.5 c32d920097 chore(release): 1.1.0
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 01:36:19 +07:00
poli0981andClaude Opus 5.5 04775ea9c4 docs(changelog): the rest of 1.1.0 — sort, reorder, the redesign, diagnostics, the write lock
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 01:35:00 +07:00
poli0981andClaude Opus 5.5 be2bc06fc9 docs(legal): clarify all four documents, disclose what is compiled in, and give each purpose its own address
No LEGAL_VERSION bump: every change clarifies, corrects or removes an
obligation (docs/14 §3.1, new "contact details → No" row and a table of what
version 1 means).

- All four documents: version/date header and a copyright line.
- EULA clause 3 becomes a non-binding note — GPL-3.0 §10 forbids adding
  restrictions; clause 6 gives legal@ and dmca@.
- DISCLAIMER describes Replace as it now behaves, and adds the name/fork
  notice with takedown@ and dmca@.
- PRIVACY describes the in-memory diagnostics log, the Chrome Web Store's own
  role, and that opening a bookmark is the browser's request, not ours;
  contact privacy@.
- THIRD_PARTY_NOTICES lists the Svelte runtime and WXT's browser shim (MIT),
  which the build always compiled in; the notices now ship as
  THIRD_PARTY_NOTICES.txt and check:manifest requires the file.
- security@ (SECURITY.md), code@ (CoC, issue chooser), README Contact table;
  contact@ retired. links.test.ts now scans all of src/ for an address.
- README: new formats and features, Sonar/CWS badges, verify:full, the
  screenshot harness. Store listings EN/VI/JA follow.
- docs/15 decision rows, next direction and backlog; CLAUDE.md Phase 7, the
  TS 7 / TS 6 alias rule and --ignore-scripts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 01:33:50 +07:00
poli0981andClaude Opus 5.5 1e7924f9a2 fix(i18n): say what is compiled in, localize the save dialog, and tidy VI/JA wording
- About no longer claims "no runtime libraries at all": the build compiles in
  the Svelte runtime and WXT's one-line browser shim, both MIT (sC2.1).
- The backup save dialog's file-type label was hardcoded English.
- VI: a browser tab is "tab", an in-app section is "thẻ", consistently. JA:
  the katakana middle dot instead of "·".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 01:28:06 +07:00
poli0981andClaude Opus 5.5 ee8a3621b0 feat(diagnostics): a local log to copy into bug reports, and one writer across tabs
- browser/diagnostics.ts: an in-memory ring buffer of 200 allowlisted events —
  import phases, failure codes (logged where every failure is described, by
  code, never by detail text), bulk edits, storage read failures, uncaught
  errors by name only. Page-relative times, no storage, no network. About →
  "Copy diagnostics" copies it with the version, locale, theme and Chrome major.
- browser/write-lock.ts: Web Locks, ifAvailable — a second Manager tab trying
  to import, sort or delete duplicates while another writes is refused at once
  with WRITE_LOCKED, before anything is touched. The import takes the lock after
  opening the save picker, so the click's activation still holds.
- The settings store reads the UI language through browser/ (uM15); progress
  reports the first create, so a slow start no longer looks like a hang (uL9).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 01:26:34 +07:00
poli0981andClaude Opus 5.5 74928526e9 feat(ui): a technical redesign of every surface, and the import report says what and where
Every surface moves to the v1.1 design system: a header with the brand mark,
a route crumb and icon tabs with a sliding indicator; an IDE-style status bar
(local only · bookmarks, storage · version · licence · Settings · About);
numbered mono step labels on #import and #export; readout stats; mode and
format cards; marching-ants drop zone; striped progress; slide-in toasts; the
popup as launcher tiles over a live readout. Emoji glyphs are gone in favour of
the self-drawn icon set; all motion sits behind prefers-reduced-motion.

Behaviour fixed on the way:
- The Start button counts what will really be imported (a preview plan), and
  Replace asks first, with the exact numbers it will delete and write (T4).
- The report counts bookmarks and folders separately, what was skipped and
  reused, and where it all went — after a cancel or failure too (uM10, uM11).
- The backup hint names the file as the user saved it, not as suggested.
- Failure toasts stay until dismissed; export says "download started" and
  keeps a failure's technical detail on screen.
- The popup routes an open Manager over a BroadcastChannel (refused while an
  import writes), and no longer counts the three permanent roots as folders.
- Read-only previews and the export picker drop the role="tree" they never
  implemented; both render 500 children at a time; "Everything" shows
  indeterminate on a partial selection; the drop zone stops flickering.
- Per-route document titles; the status bar stays at the bottom of the window.
- The Move-to dialog no longer renders every folder while closed.

The Import tab's strings move to <lang>-import.ts so each locale file stays
under the size limit. scripts/screenshots.mjs serves the built extension with
a fake chrome and the production CSP, for visual QA and store screenshots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 01:22:46 +07:00
poli0981andClaude Opus 5.5 fe984bd61c feat(edit): sort A→Z, drag to reorder, batched live sync, and a tab inside the size rule
EditTab's state and commands move to stores/edit-session.svelte.ts (an
injectable bookmarks API, tested against the in-memory fake); the component is
markup and wiring, 481 → 290 lines. New:

- Sort A→Z per folder (edit/sort.ts): folders first, natural, case- and
  accent-insensitive, stable; planned first so the confirmation states how many
  items move; moves only what is out of place, with indices valid for
  chrome.bookmarks.move; a refusal part-way says how far it got and re-reads.
- Drag to reorder: before/after/into zones (edit/move-target.ts planDrop, which
  converts between Chrome's pre-removal indices and onMoved's post-removal
  ones); dragend clears a cancelled drag.
- Live sync batched per frame, re-read once on bursts and after Chrome's own
  import or a wholesale reorder; handlers isolated so one exception cannot stop
  the tree following the browser. Duplicates are scanned only while shown.
- Bounded rendering: rows mount 500 at a time with "Show more", growing to keep
  the focused row in the DOM; explicit aria-setsize/posinset.
- Move-to is a real modal (shared Modal: focus in, Esc, focus returned, no
  cancel-after-confirm) with a filter; the menu key / Shift+F10 opens it, Ctrl+C
  copies a link, row buttons leave the tab order; loading state, focus follows a
  delete, a new folder clears a search that would hide it, resyncs keep
  expansion and focus, renames are trimmed and Esc never commits.
- Duplicate rows show the folder each copy lives in.

Also the v1.1 design foundation these use: new tokens (sunken/subtle surfaces,
--border-strong ≥ 3:1, mono stack, motion/shadow/z tokens, color-scheme,
accent-color, faint grid), a self-drawn SVG icon set with motion, and
tests/unit/styles/motion.test.ts, which fails any animation or moving
transition outside prefers-reduced-motion: no-preference.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 01:04:50 +07:00
poli0981andClaude Opus 5.5 3ea2e497f7 fix(core): a bare ? or # no longer defeats dedupe, and the export picker stops going quadratic
normalizeUrl trimmed the last character of a root URL to drop its slash, but
`x/?` and `x/#` serialize with the delimiter last, so the `?` was cut instead
and `x/?` never matched `x/`. Empty query and fragment are now removed first.
The default-port code was dead: the URL parser already drops default ports.

The export folder picker looked up each row's check state by walking the tree
from the roots - O(n) per visible row. checkStates builds the whole map in one
pass, once per selection change.

The seeded round-trip now asserts no warnings per tree as docs/11 §3 says.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 00:47:34 +07:00
poli0981andClaude Opus 5.5 ca7627edad feat(import): Chrome and Firefox bookmark files, a Merge that merges, restores that do not nest
Import Chrome's profile `Bookmarks` file and Firefox's JSON backup directly.
Each reader is held to a parity rule against its browser's own HTML exporter,
tested on Chromium/Firefox-faithful fixture pairs. One entry point,
parseBookmarkFile, sniffs by content (JSON first, parsed exactly once, routed
by shape); the picker loses its extension filter, which hid the extensionless
`Bookmarks` file. Firefox's internal root names are localized by the caller.

Merge finally reuses the folders a user already has, level by level, appending
new items (core/merge.ts) - 1.0.x planned it exactly like Replace. Root folders
are unwrapped by marker (core/route.ts), so restoring a backup no longer nests
Other and Mobile one level deeper each time, 1.0.x backups included. Replace
never dedupes, plans before the backup is taken, and refuses a backup the
import could not read back (BACKUP_EXCEEDS_LIMITS) before anything is written,
downloaded or deleted. The save dialog's late rejection is marked handled.

Also found: the seeded round-trip suite had compared 200 empty trees since
Phase 1 (xorshift32 seeded with 1-200 draws near zero first). makeRng now
scrambles the seed and every seeded suite checks its corpus is non-trivial.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 00:45:25 +07:00
poli0981andClaude Opus 5.5 915b2702fe fix(import): read every entry a file holds, and skip what Chrome would reject
Several shapes made v1.0.x import a smaller tree than the file held, with no
warning at all:

- a loose bookmark before the wrapper list (no </DT>) swallowed the whole
  list; with an explicit </DT> the bookmark "consumed" the next list;
- an unescaped <b> in one title re-opened around every later entry
  (dt > b > a, dl > b > dt) and hid them from a direct-children walk;
- a root list wrapped in <div>/<table> was invisible;
- PERSONAL_TOOLBAR_FOLDER="false" made a folder the bar.

Every reader now classifies addresses before anything is written (core/
href.ts): blank -> MISSING_URL, unparseable -> INVALID_URL (chrome.bookmarks.
create rejects those mid-write, after a Replace has already cleared the
tree), Firefox place: -> PLACE_QUERIES_SKIPPED in browser-written formats
(kept in BM JSON and CSV, our restore formats). A DT that still yields
nothing is counted as UNREADABLE_ENTRIES instead of vanishing.

Also:
- empty titles stay empty (the URL fallback ruined favicon-only bars);
- the HTML node cap is counted on the raw text before DOMParser builds a
  DOM; the depth cap no longer rejects an empty list one level past it;
- root markers for Other and Mobile (UNFILED_/MOBILE_BOOKMARKS_FOLDER in
  HTML, "root" in BM JSON, version stays 1), and a 1.0.x full-tree backup
  is recognised by shape and marked on read;
- BM JSON dates go through the shared normalizer; url "" (which Chrome
  makes a folder) is skipped;
- CSV: an unclosed quote is CSV_UNCLOSED_QUOTE with its line instead of one
  cell eating the file; formula cells get one reversible guard quote; sep=
  lines and padding rows are skipped; folder lookup is a Map, not a scan;
- Markdown escapes every CommonMark-active character and collapses line
  breaks in titles (raw HTML used to pass through);
- shared WarningBag/NodeBudget/title rule, an iterative walkTree, an
  isBookmark type guard, a CSV dialect module, chromeTimeToSeconds and
  microsToSeconds for the JSON formats that follow;
- locales split warnings/errors into <lang>-notices.ts to stay under the
  size limit; every warning and error code must have a message (test).

Four new fixtures, golden serializer suites for HTML and BM JSON (docs/11
named one; neither existed), and docs/02, 04, 05, 07, 09, 11, 15 updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 00:07:06 +07:00
6 changed files with 13 additions and 38 deletions

No files matched your search

+3 -11
View File
@@ -64,20 +64,12 @@ jobs:
working-directory: .output
run: sha256sum *-chrome.zip > SHA256SUMS.txt
# Staged in a plain directory: upload-artifact skips hidden paths by
# default, and `.output` is one. Left there, the upload found nothing and
# the first v1.1.0 tag run failed before any Release existed — the split
# into build and publish jobs had never run on a tag until then.
- name: Stage the release files
run: |
set -euo pipefail
mkdir dist
cp .output/*-chrome.zip .output/SHA256SUMS.txt dist/
- uses: actions/upload-artifact@v7
with:
name: release-${{ github.ref_name }}
path: dist/
path: |
.output/*-chrome.zip
.output/SHA256SUMS.txt
if-no-files-found: error
retention-days: 90
+4 -6
View File
@@ -8,8 +8,7 @@ This file is the entry point; the `docs/` suite is the specification.
>
> **BookmarkMagic is published on the Chrome Web Store and has real users**
> (v1.0.0 live by 2026-08-03; v1.0.1 live, confirmed on the listing
> 2026-10-28; v1.1.0 released on GitHub 2026-10-29, ⚠️ not yet submitted).
> Phases 0–7 are complete; the project is in **maintenance**.
> 2026-10-28). Phases 0–6 are complete; the project is in **maintenance**.
> That changes the rules of the game:
>
> - Every change now reaches installed users through a store review. It needs a
@@ -149,10 +148,9 @@ around a store, with Sort A→Z, drag to reorder and batched live sync; a
technical redesign of every surface; local diagnostics; a cross-tab write
lock; docs and legal synced (clarifications only — `LEGAL_VERSION` stays 1);
contact aliases per purpose.
**Exit:** ✔ v1.1.0 tagged and released 2026-10-29 (signed tag on `9040f84`,
checksum-verified zip). Still human-only: the docs/11 §5 manual pass on real
Chrome including the **1.0.1 → 1.1.0 upgrade over an existing profile** ⚠️,
then the zip uploaded to the store ⚠️.
**Exit:** `main` tag-ready with `verify:full` green; the human runs the
docs/11 §5 manual pass on real Chrome including the **1.0.1 → 1.1.0 upgrade
over an existing profile** ⚠️, then uploads the release zip to the store ⚠️.
## Working style
+4 -13
View File
@@ -17,18 +17,16 @@
> 5 users) on 2026-10-28. ⚠️ The exact approval date was never recorded — the
> owner can read it from the dashboard. Installed users are on 1.0.1.
>
> **v1.1.0 is RELEASED on GitHub, not yet on the store.** Tagged and
> released 2026-10-29 (signed tag on `9040f84`, checksum-verified zip). ⚠️ It
> still needs the owner's manual pass on real Chrome, including the 1.0.1 →
> 1.1.0 upgrade over an existing profile, and a hand upload to the store
> (`13 §1b`); until it clears review, installed users stay on 1.0.1. It raises
> **v1.1.0 is in preparation** on `release/1.1.0`: versioned, with its
> CHANGELOG section dated 2026-10-29, but not yet tagged, released or
> submitted. Until it clears review, installed users stay on 1.0.1. It raises
> the floor to Chrome 136 (`08 §7`); permissions are unchanged.
>
> The project is now in **maintenance**, not construction: every change from
> here reaches installed users through a store review, so it needs a version
> bump, a CHANGELOG entry and an update submission (`13 §1b`). Sequencing lives
> in `/CLAUDE.md`; what is still open is in §10 below.
> **Doc suite version:** 1.9 (2026-10-29 — v1.1.0 released on GitHub)
> **Doc suite version:** 1.8 (2026-10-29 — specs reconciled with `release/1.1.0`)
---
@@ -222,13 +220,6 @@ Derived identifiers (canonical across docs and code):
open: the exact approval date, and `13 §1b` step 10 against the published
build (install on a clean profile, re-run the upgrade check) — no result is
recorded for either.
12. ⚠️ **v1.1.0 to the store.** The GitHub Release exists and is verified
(`15`'s progress table). Still human-only: the `11 §5` manual pass on real
Chrome — the **1.0.1 → 1.1.0 upgrade over an existing profile** above all —
then the hand upload of the Release zip (`13 §1b`), with new screenshots
chosen from `store/screenshots/`. Also unverified outside the harness: the
account-storage roots of a signed-in profile and the hidden empty Mobile
root (`02 §4`), and the `MAX_WRITE_DEPTH` rationale against a real Chrome.
## 11. Reading order
+1 -1
View File
@@ -118,7 +118,7 @@ Four jobs, least privilege first (split 2026-10-28):
| Job | Token | Does |
|---|---|---|
| `build` "Gate + package" | `contents: read` | install, **every CI gate again** (a tag skips the branch triggers, and must never ship what a PR would have blocked), `zip`, `check:manifest`, the tag ↔ manifest version check, `SHA256SUMS.txt`; copies both files into a plain `dist/` and uploads that as the artifact `release-<tag>` — `upload-artifact` skips hidden paths such as `.output/` by default, which failed the first v1.1.0 tag run before any Release existed |
| `build` "Gate + package" | `contents: read` | install, **every CI gate again** (a tag skips the branch triggers, and must never ship what a PR would have blocked), `zip`, `check:manifest`, the tag ↔ manifest version check, `SHA256SUMS.txt`; uploads both files as the artifact `release-<tag>` |
| `publish` "GitHub Release" | `contents: write` | downloads the artifact, `sha256sum -c` it, creates the Release with `--verify-tag` (or re-uploads to an existing one). Installs nothing and runs no repository code — the only job that ever holds a write token |
| `store` "Publish to Chrome Web Store" | `contents: read` | only when the repo variable `CWS_AUTOPUBLISH` is `'true'`: `./node_modules/.bin/wxt submit` with the Release asset — the local binary, never `npx wxt`, which may fetch an unpinned package into an environment holding the four `CHROME_*` secrets (SonarCloud S6505/S8543) |
| `announce` | `contents: read` | Discord, only when `DISCORD_ANNOUNCE` is `'true'` |
-3
View File
@@ -191,9 +191,6 @@ to read carefully.
already seen, so a rejected 1.0.1 comes back as 1.0.2 — not as a re-upload.
3. Never delete or move the tag of a rejected version. It is a real, published
GitHub Release and moving it invalidates its checksum. Leave it and move on.
The one exception is a tag whose run failed **before** any Release existed —
nothing was published, so fix the workflow on `main` and re-point the tag,
as `v1.1.0` was (`15` decision log, 2026-10-29).
4. Note the rejection and its resolution in `15`'s decision log — it is the only
memory the project has of what the reviewers actually object to.
+1 -4
View File
@@ -25,9 +25,7 @@ Build-phase breakdown lives in `CLAUDE.md` (single source for sequencing).
| **v1.0.1 released** | ✔ 2026-08-03 | signed tag on `4654086`, GitHub Release with a `sha256sum -c`-verified zip; shipped manifest `1.0.1`, permissions unchanged. `announce` skipped (no `DISCORD_ANNOUNCE`), store publish skipped (no `CWS_AUTOPUBLISH`) |
| **v1.0.1 submitted** | ✔ 2026-08-03 | uploaded to the CWS dashboard by hand (`13 §1b` step 6) |
| **v1.0.1 published** | ✔ observed 2026-10-28 | listing shows version 1.0.1 (`Updated: August 3, 2026`), 5 users. ⚠️ Exact approval date not recorded; `13 §1b` step 10 (clean-profile install of the published build + upgrade re-check) has no recorded result |
| 7 — v1.1.0 | ✔ 2026-10-29 | PR-A toolchain/CI/Sonar (#26); PR-B import redesign, Chrome/Firefox formats, Merge reuse, Edit store + Sort A→Z + reorder, technical UI, diagnostics, docs/legal (#27); the second review's fixes, which missed the #27 merge (#28); the release workflow's artifact fix (#29) |
| **v1.1.0 released** | ✔ 2026-10-29 | signed tag on `9040f84`, GitHub Release with a `sha256sum -c`-verified zip (`104f020c…2dd6c94`, 94 091 bytes). Its manifest differs from 1.0.1's only in `version`, `minimum_chrome_version` (120 → 136) and the new CSP; permissions unchanged. The first tag run failed before publishing anything (`12 §2.3`); fixed in #29 and the tag moved while no Release existed. `announce` and store publish skipped (variables unset) |
| **v1.1.0 submitted** | ⚠️ pending | owner: the `11 §5` manual pass on real Chrome, including the **1.0.1 → 1.1.0 upgrade over an existing profile**, then upload the Release zip by hand (`13 §1b`) |
| 7 — v1.1.0 | in review 2026-10-29 | PR-A toolchain/CI/Sonar merged as #26; PR-B (import redesign, Chrome/Firefox formats, Merge reuse, Edit store + Sort A→Z + reorder, technical UI, diagnostics, docs/legal) on `release/1.1.0` |
**Verified on real browsers 2026-07-25:** Chrome and Brave, unpacked build.
Until that point every phase had been tested only against a hand-rolled
@@ -298,4 +296,3 @@ without one).
| 2026-10-29 | **The extension-page CSP gains `default-src 'none'`** — reversing the earlier "deliberately no default-src". Every directive the pages use is listed, so it changes nothing for them, and it closes what was left open (manifests, prefetch). WebRTC, which no CSP directive Chrome enforces governs, stays covered by the bundle and source scans | 08 §3 |
| 2026-10-29 | **Diagnostics allowlist enforced by types**: every `DiagEvent` string field is a union of fixed values, error names pass through an allowlist (`'other'` otherwise), and `@ts-expect-error` tests keep a title from compiling | 09 §7 |
| 2026-10-29 | **SonarCloud runs in two jobs**: coverage with no secret, then a scan that installs nothing and gets the lcov report as an artifact — a job's secrets are readable by every step on its runner | 12 §2.5 |
| 2026-10-29 | **The first `v1.1.0` tag run failed before publishing, and the tag was moved.** `upload-artifact` skips hidden paths, so the build job's `.output/*` matched nothing. Fixed in #29; since no Release or asset existed yet, `v1.1.0` was re-pointed at the fixed `main` (`9040f84`) rather than burning a version. `13 §7`'s rule — never move the tag of a published Release — is unchanged | 12 §2.3, 13 §7 |