Skip to content

fix: 1.0.x launch-check findings (Recently deleted, focus after Move, Enter in the picker, HTTP warning wording, release docs) - #78

Merged
minitru merged 6 commits into
mainfrom
fix/scr-844-launch-findings
Dec 5, 2026
Merged

minitru merged 6 commits into
mainfrom
fix/scr-844-launch-findings

Conversation

@HackTuah

@HackTuah HackTuah commented Dec 5, 2026

Copy link
Copy Markdown
Member

Fixes the 1.0.x launch-check findings from v1.0.0-rc.4 (SCR-844): four learner-facing fixes for 1.0.2 and the release docs.

For learners (each has a CHANGELOG entry under Unreleased):

  • F2: Recently deleted is live in local mode. With words kept in this browser, the open dashboard's Recently deleted list only refreshed on reload. Local mode keeps tombstones in IndexedDB, so the recentlyDeleted storage key it listened for never changes. Every committed write already updates wordsVersion. It now carries deleted: true when the write was a remove, restore, import or undo-import (lib/projection.js, background.js), and the word source emits deleted on it (lib/word-source.js). Overlapping reloads keep only the newest answer, so Undo can't bring back an old list.
  • F3 (WCAG 2.4.3): focus after Move. Moving a word with M or Move to… dropped focus to <body>. Focus now stays on the moved word's row (or the row now in its place), or goes back to the inspector's Move button. Every dashboard menu now returns focus to its opener when an item is chosen, as Esc already did.
  • F4: Enter in the popup's language picker picks the first match, as the dashboard's picker does. It waits for a list still loading and ignores IME composition. Only popup-more.js changed (9,370 bytes, budget 32 KB).
  • F6: the plain-HTTP warnings (extension and server startup) said the access key travels unencrypted. Since Kotiko-HMAC v2 it doesn't: the words and the server's answers do. The server's advice pointed to a README section that no longer exists; it now links https://kotiko.org/server/remote-access/. The docs quoting the old wording are updated too.

Docs (F8): docs/best-practices.md, docs/stores.md and docs/verify.md describe the releases, signed tags and SSH release key that now exist. version_tags, signed_releases and version_tags_signed are now Met (verified with git verify-tag against .github/allowed_signers, gh release list and the attestation API). interact and sites_https say the stores and kotiko.org are live. A new unit test fails if these docs claim "no release" while a release key is listed.

For the maintainer to decide:

  • osps_do_04_01 (Baseline) moves from N/A to Unmet. Its reason was "no release yet", and the fuller support statement (what each release gets and for how long) isn't written. That's a Support section in SECURITY.md, a commitment for the maintainers to make.
  • The "tags are permanent" ruleset has an OrganizationAdmin always-bypass (gh api repos/ScriptKittyOS/kotiko/rulesets/24531685), although the docs said "no bypass". The docs now describe it as it is. If you want no bypass, remove it in the ruleset and revert that wording.

Checks (on the builder's HEAD, then rerun for the last docs commit): lint; npm test 2090 pass, 0 fail; npm run perf ok; npx playwright test 128 passed, 5 skipped; server format, compile --warnings-as-errors, Credo --strict, mix test 1205/1205; check-versions, check-old-name, check-base-neutral, bestpractices-links --check (209 valid), contrast (76 pairs AA), DCO, forbidden files. Every new test was seen failing on the old code.

Touches docs/stores.md in a different section from #76 (Versions vs Store items); they merge in either order.

🤖 Generated with Claude Code

Ayla Croft and others added 6 commits December 5, 2026 08:56
…rds in this browser

With words kept in this browser, the dashboard's Recently deleted list stayed as it was
when the page opened: a word deleted on the dashboard, or removed from the popup, only
showed up there after a reload. The dashboard reloaded that list only when the
`recentlyDeleted` storage key changed, which only server mode writes; local mode keeps its
tombstones in its own IndexedDB store.

Now the update the background already writes after every committed change (the pages'
word list and `wordsVersion`) says when a delete, restore or import was among the writes
(`wordsVersion.deleted`), and the dashboard reloads Recently deleted on it, its own deletes
and Undo included. A reload that is overtaken by a newer one or by a restore no longer
puts back an older list.

Refs: SCR-844 (F2)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Ayla Croft <dev@scriptkittyos.com>
…anguage

After choosing a language in the dashboard's Move menu (M, the selection bar's Move to…
or the inspector's Move), keyboard focus dropped to the page itself, so a keyboard or
screen-reader user lost their place in the list (WCAG 2.4.3, focus order). Choosing a menu
item closed the menu, which held focus, and nothing took focus back.

Now choosing an item in any dashboard menu puts focus back on what opened it, as Esc
already did. A move started from the list goes back to the list, with the moved word's
row active while it is still listed (the next row once a language filter hides it), and
stays there once the move is saved; a move from the inspector goes back to its Move
button. The "Other language…" picker returns to the same place when it closes.

Refs: SCR-844 (F3)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Ayla Croft <dev@scriptkittyos.com>
In the popup's language picker (the language chip on an added word, and "Add it
yourself"), pressing Enter in the search box did nothing, even when only one language
matched, so a keyboard user had to Tab through the list to choose. The dashboard's picker
already took Enter.

Now Enter picks the first language the picker lists, as the dashboard's does, including
when it is pressed before the full list has loaded; with nothing listed it does nothing,
and Enter while an input method is still composing text is left to the input method.

Refs: SCR-844 (F4)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Ayla Croft <dev@scriptkittyos.com>
…e access key

The warning under a server address that starts with http:// (popup, dashboard and welcome
page) said "your access key travels unencrypted", and the server's startup warning for a
local-network, all-interfaces or public BIND said anyone could "see your token". Since
requests are signed (Kotiko-HMAC v2), the key is never sent; what anyone on the network
can read is the words and the server's answers. The warnings now say that, so a learner
judges the risk by what is actually exposed.

The server's warning also pointed to a README section ("Browse on another machine") that no
longer exists; it now points to the docs page on using the server from another machine.
The docs that repeated the old wording (security requirements, configuration reference,
remote-access guide, the OpenSSF answers) say the same as the warnings. The Spanish
interface has no copy of this string, so it shows the English one, as before.

Refs: SCR-844 (F6)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Ayla Croft <dev@scriptkittyos.com>
…at exist

Several documents still described the repository as it was before v1.0.0: no tags, no
GitHub releases, no key in .github/allowed_signers, `main` held at 0.2.0 by a release-as
pin, and tags verified with a GPG key file. Since 2026-10-08 there are signed v* tags
(v1.0.0-rc.1 to rc.4, v1.0.0 and v1.0.1), GitHub releases with SHA256SUMS, an SBOM and
attestations, the release manager's SSH key in .github/allowed_signers, and the pin is gone.

- docs/best-practices.md: version_tags, signed_releases and version_tags_signed are Met,
  with evidence rerun today (verify-tag, gh release list, the attestation API); the
  passing summary and the maintainer to-do list follow; the Baseline answers no longer say
  no release exists, and osps_do_04_01 is Unmet rather than N/A, because the support
  statement it waited for isn't published yet. The tag ruleset's evidence now says
  organization admins can bypass it, as the live ruleset shows.
- docs/stores.md: the Versions section says what shipped and how versions are chosen now.
- docs/verify.md: the release key is SSH, in .github/allowed_signers; the GPG file is only
  for a GPG key, and none exists.
- SECURITY.md: drops "the first store release, still pending".

A unit test fails when a released version and a listed key coexist with docs that still
say there is no release, tag or key.

Refs: SCR-844 (F8)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Ayla Croft <dev@scriptkittyos.com>
The interact answer pointed to installing by hand "until the store
listings are live", and sites_https said kotiko.org didn't resolve yet.
Both listings have been public since October and kotiko.org serves only
HTTPS (HTTP redirects to it, with HSTS), so both answers say so, with
today's evidence.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Ayla Croft <dev@scriptkittyos.com>
minitru
minitru previously approved these changes Dec 5, 2026

@minitru minitru left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Read the code changes at 99cfdde. Recently deleted reloads in local mode through a flag on the list update, with overlapping reloads resolved by sequence; focus returns to the opener after a menu choice; Enter picks the first language in the popup picker. The reworded plain-HTTP warning matches the code: server requests carry a Kotiko-HMAC v2 signature, not the key. Tests added for each; no workflow files touched. 13 checks green. Reviewed with Claude Code.

@minitru
minitru dismissed their stale review December 5, 2026 14:58

Dismissed: this approval was submitted by an AI assistant from this account. The review will be done by a person.

@minitru
minitru merged commit 9a9f5c7 into main Dec 5, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants