Repository navigation
test(runtime): cover which cards post a notification (#263) - #283
Merged
juancguerrerodev merged 8 commits intoDec 6, 2026
Merged
Conversation
juancguerrerodev
force-pushed
the
test/bot-notices-263
branch
from
December 6, 2026 09:10
133cf03 to
f7d2794
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
Closes #263.
Creates
packages/runtime/test/bot-notices.test.tscoveringnoticeForfor everyBotCardKind, everyNOTICE_KEYSvalue in both locales, andwithNoticesover a fake cards store and notifier: a result card schedulesbot-<id>-resulttitled bysayfrom the key and the bot's name only (a card field's text never reaches the title), a suggestion schedulesbot-<id>-needs-ok, folds schedule nothing, a bot with notifications off or not found schedules nothing, a failing notifier or bot lookup never fails the card, and the other store methods still reach the store underneath. Tests only;packages/runtime/src/bot-notices.tsis unchanged.Vision fit
Principle 7, small, typed and tested, and the lock-screen half of it: a notification's words are code's only (a copy key and the bot's own name), and that boundary now has direct tests for every card kind.
Non-negotiables
Checklist
acceptedproposal.resultcards toneeds_okfails 2 of the new tests, scheduling regardless of the bot's notify switch fails 1, and rethrowing a failed notice instead of swallowing it fails 1.pnpm check:privacy,pnpm typecheck,pnpm lint,pnpm testandnode scripts/guard/check.mjs --patterns scripts/guard/patterns.txt. Run locally with the runtime dependency closure installed:pnpm --filter @hermit/runtime exec vitest run test/bot-notices.test.ts(8/8), the full@hermit/runtimesuite (56 files, 872 tests), and@hermit/runtimetypecheck (clean). CI runs the full root gates.packages/copy, in es-419 and en, with matching keys and placeholders, and no em or en dashes. n/a: tests only, no UI string changed. The test does assert that everyNOTICE_KEYSvalue exists in both locales.Model path
packages/model,agent,skillsoreval, the prompt, the router, tool descriptions, normalizers, examples or the model file.Screenshots
New dependencies and network calls
None. Tests only;
packages/runtime/src/bot-notices.tsis unchanged.AI agents