Repository navigation
Knowledge: read what was imported (puzzles, analyses, exercises) - #28
Merged
Merged
Conversation
…position's analyses, exercises by theme (draft-1, cjus/chessdb#2) knowledge/puzzles, knowledge/analyses and knowledge/exercises, from complete imports only, each result naming its sources (licence, attribution). Paged by opaque cursor. An analysis result says which position it is of, so a client applies it only to that position; a score's perspective is stated, unspecified when the source doesn't say. A read capability beside import. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
cjus
marked this pull request as ready for review
November 13, 2026 22:49
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.
The read half of the draft-1 knowledge extension (cjus/chessdb#2), after #27 (import). Optional additions only: a
readcapability and three methods.knowledge/puzzles: by theme and rating, easiest first; the result gives the position the solver is given (setup with the opponent's first move played) and the setup as the source gave it.knowledge/analyses: what the sources hold of a position, deepest first. The result carriesposition, the position as the node identifies it, so a client applies the answer only to the position it asked about.perspective(white,sideToMove,unspecified) says whose point of view a score is from; Lichess doesn't document it, so it isunspecifiedrather than guessed.knowledge/exercises: strategic exercises by theme; candidates keep the source file's points and order (a move can appear twice, as in the published STS files); every exercise names its source because scales differ.sources(licence, attribution) and each item names its source by checksum.Checks: fmt,
clippy --workspace -D warnings,cargo test --workspace,cargo doc -D warnings,cargo denypass locally; the spec's JSON examples are parsed against the types; new conformance sessionknowledge/read-refusals(the example node skips it).🤖 Generated with Claude Code