Repository navigation
test(core): cover how a bot's read kinds are kept (#261) - #276
Merged
juancguerrerodev merged 3 commits intoDec 6, 2026
Merged
juancguerrerodev merged 3 commits into
juancguerrerodev merged 3 commits into
Conversation
Contributor
|
Thanks! A small ask for the next ones: the issues say to take one at a time, so newcomers joining this week find some left. 🦀 |
juancguerrerodev
force-pushed
the
test/core-read-kinds-261
branch
from
December 6, 2026 09:10
51f01f6 to
bd13ab9
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 #261.
Adds a
describe("read kinds")block topackages/core/test/bots.test.tscoveringnormalizeReadKinds,encodeReadKindsanddecodeReadKindsfrompackages/core/src/bots.ts, which until now were only reached through the stores that use them. Canonical order and duplicate dropping, the four values thekindsCHECK inpackages/core/src/schema.tsallows, decoding of empty and unknown values, and an encode/decode round trip. Tests only;bots.tsis unchanged.Vision fit
Principle 7, small, typed and tested: the read-kind provenance a bot writes on its notes and cards now has direct tests for the pure helpers, including every subset in every order against the four CHECK values.
Non-negotiables
Checklist
acceptedproposal.-instead of,fails 3, and decoding without normalizing fails 1.pnpm check:privacy,pnpm typecheck,pnpm lint,pnpm testandnode scripts/guard/check.mjs --patterns scripts/guard/patterns.txt. Run locally:pnpm --filter @hermit/core exec vitest run test/bots.test.ts(11/11) and the full@hermit/coresuite (44 files, 809 tests).@hermit/coretypecheck in this filtered local install reports pre-existing implicit-any errors in unrelated files, identical on a clean tree; 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.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/core/src/bots.tsis unchanged.AI agents
describeblock and ran the vitest suites and the three mutation checks above, in a session directed by the author.