Repository navigation
test(boost): cover every error code, its notice and codeOfWire (#260) - #279
Merged
juancguerrerodev merged 6 commits intoDec 6, 2026
Merged
juancguerrerodev merged 6 commits into
juancguerrerodev merged 6 commits into
Conversation
juancguerrerodev
force-pushed
the
test/boost-error-codes-260
branch
from
December 6, 2026 09:10
bc8cbdf to
d4b0ed9
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 #260.
Creates
packages/boost/test/errors.test.tscovering, over every code inBOOST_CODESrather than a copied list:BoostError's code, name, message prefix, outcome and update flag;boostNoticefor the update codes,stopped, and every other code; that every keyboostNoticecan return exists in bothpackages/copy/locales/en.jsonandes-419.json; andcodeOfWireoverWIRE_ERRORS, includingcancelledtostoppedand an unknown code toprotocol. Tests only;packages/boost/srcis unchanged.Vision fit
Principle 7, small, typed and tested: when a Boost turn fails, the outcome the phone shows, whether it offers "Update Hermit Boost", and the copy keys behind both are now walked for every code, so a code added later is covered too.
Non-negotiables
Checklist
acceptedproposal.stoppedoutcome toclosedfails 2 of the new tests, droppingprofile_mismatchfrom the update codes fails 2, and mapping wirecancelledtoprotocolfails 1.pnpm check:privacy,pnpm typecheck,pnpm lint,pnpm testandnode scripts/guard/check.mjs --patterns scripts/guard/patterns.txt. Run locally:pnpm --filter @hermit/boost exec vitest run test/errors.test.ts(7/7) and the full@hermit/boostsuite (5 files, 92 tests).@hermit/boosttypecheck in this filtered local install reports module resolution errors in the@hermit/modeldependency chain, none in the new test file; CI runs the full 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 every keyboostNoticecan return 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/boost/srcis unchanged.@hermit/boostdoes not depend on@hermit/copy; the locale check reads the JSON files directly.AI agents