Skip to content

chore: the #96 retro: a key guard for agents on live sites, and release notes the check can read - #110

Merged
Kyu-seok merged 2 commits into
mainfrom
retro-96
Nov 23, 2026
Merged

Kyu-seok merged 2 commits into
mainfrom
retro-96

Conversation

@Kyu-seok

Copy link
Copy Markdown
Owner

Summary

Two things the 0.4.2 dogfooding pass (#96) showed the environment was missing. No change under src/.

 tools/
+├── dogfood-probe.mjs      # injected on a live site: stops and lists keys arriving outside the Field
+├── dogfood-probe.d.mts
 docs/
+├── release-notes/
+│   ├── 0.4.1.txt          # the v0.4.1 tag's message, verbatim
+│   └── 0.4.2.txt          # the draft from the #96 pass
 ├── release.md             # agent route: inject the probe first; steps 1 and 3: the notes are a file
 tests/
+├── unit/dogfood-probe.test.ts
 └── node/release-notes.test.ts   # reads docs/release-notes/<manifest version>.txt

What the probe does in the page, after __vimtextProbe.watch(field, { enterSends }):

on(keydown, capture)
  if focus is in VimText's command line      -> let it through
  if focus is in the Field
     and not (enterSends and the key is Enter) -> let it through
  stop the key, list it under leaks
state() -> text, selection, focused, shown Status Lines, leaks, focus moves

Evidence

  • Before: in the Release 0.4.2 (store upload): the fixes since 0.4.1 #96 pass, focus left Gmail's compose body mid-batch; the keys behind it ran Gmail's shortcuts and marked five conversations read (Gmail: focus left the compose body after u, once, and the keys that followed reached Gmail #108). Nothing in the agent route could stop a batch.
    After: tests/unit/dogfood-probe.test.ts, 5 passing in Chromium: a key after focus left the Field is cancelled, never reaches the page's listener and is listed once; Enter is stopped where it sends and Shift+Enter is not; a Notion-shaped block counts as focused through its editable root; keys pass while vimtext-status holds focus. Not yet used on a live site.
  • Before: release-notes.test.ts read section 1 of docs/store/announcements.md, still the 0.4.0 notes, so the 0.4.1 notes shipped unchecked and existed only in their tag.
    After: the test reads the file for manifest.json's version (2 passing): it must exist, be titled VimText <version> and hold no placeholder token.
  • The gate (npm run check) passed on the pushed tree in pre-push: 332 e2e tests, 598 unit and Node tests.

Merge Danger

Door: two-way

Tooling, tests and docs only; reverting the PR restores the old check.

Blast Radius: release

A version bump now fails npm test until docs/release-notes/<version>.txt exists. 0.4.2.txt is already here, so the pending bump on release-0.4.2 passes once rebased; its text is a draft to edit before tagging. The release workflow is unchanged: it still takes the notes from the tag message.

🤖 Generated with Claude Code

Kyu-seok and others added 2 commits November 24, 2026 00:41
…ops keys arriving outside the Field, and the agent route carries what the 0.4.2 pass learned

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… is cut from, and the check reads the one for the manifest's version

- docs/release-notes/<version>.txt holds a version's notes; the tag is cut
  with -F from it. 0.4.1.txt is the v0.4.1 tag's message, 0.4.2.txt the
  draft from the #96 pass.
- tests/node/release-notes.test.ts reads the file for manifest.json's
  version: it must exist, be titled with the version and hold no
  placeholder token. It read section 1 of docs/store/announcements.md,
  still the 0.4.0 notes, so the 0.4.1 notes shipped unchecked.
- docs/release.md steps 1 and 3 and CODING_STANDARDS' Mechanical line say so.

Owner-decision: #96
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@Kyu-seok
Kyu-seok merged commit 69a6243 into main Nov 23, 2026
1 check passed
@Kyu-seok
Kyu-seok deleted the retro-96 branch November 23, 2026 16:07
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.

1 participant