Skip to content

Knowledge: read what was imported (puzzles, analyses, exercises) - #28

Merged
cjus merged 1 commit into
mainfrom
claude/knowledge-read
Nov 13, 2026
Merged

cjus merged 1 commit into
mainfrom
claude/knowledge-read

Conversation

@cjus

@cjus cjus commented Nov 13, 2026

Copy link
Copy Markdown
Owner

The read half of the draft-1 knowledge extension (cjus/chessdb#2), after #27 (import). Optional additions only: a read capability 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 carries position, 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 is unspecified rather 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.
  • Reads answer from complete imports only; every result has sources (licence, attribution) and each item names its source by checksum.
  • Opaque cursors; limit 1 to 100 (20 default); invalid params -32602.

Checks: fmt, clippy --workspace -D warnings, cargo test --workspace, cargo doc -D warnings, cargo deny pass locally; the spec's JSON examples are parsed against the types; new conformance session knowledge/read-refusals (the example node skips it).

🤖 Generated with Claude Code

…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
cjus marked this pull request as ready for review November 13, 2026 22:49
@cjus
cjus merged commit 4517dce into main Nov 13, 2026
2 checks passed
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