Repository navigation
Conversation
…essgui#656) A node that offers `explorer` answers what the sources' games played from a position: each move with its games, results and mean rating, and the strongest games that reached it. A position it doesn't hold is out of book, not an error. The spec, the types (ExplorerParams, ExplorerMove, ExplorerGame, ExplorerResult, FindExplorer, Capabilities::explorer), their tests and a conformance session. How a node comes to hold the positions is not in the draft yet. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…orer # Conflicts: # conformance/README.md # crates/cnp/src/knowledge.rs # spec/knowledge.md
…(draft-1, cjus/chessdb#73) knowledge/explorer's answer gains two optional fields, together or not at all: the position's ECO code and the opening's name, when a named line (Lichess's chess-openings) ends at the position, by whatever move order. Most positions have none; a client names those after the last named position along the moves it knows. An older node's answer, without them, still reads. Also merges main (space, the puzzleFacets clarification) into the branch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
Author
|
Added |
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
A proposed addition to the draft knowledge domain, for the opening explorer of Solrac's online data service (cjus/chessdb#48):
knowledge/explorer, behind a new capability switch,explorer.A client asks with a position; the node answers with what its sources' games played there:
position, asknowledge/analysesidentifies one;ecoandopening, the position's name, when a named line (Lichess'schess-openings) ends there: optional, together or not at all (added 2026-11-17, cjus/chessdb#73);games,whiteWins,draws,blackWins: the games that reached it, each counted once;moves: every move played from it, most played first, each with its games, results andelo(the mean rating of the games that played it);top: the strongest games that reached it, with their id, players, ratings, result, date and the move each played there;sources, as every read has.A position the node doesn't hold is out of book, not an error: no games, no moves.
Why this shape
It is the shape of the item
explorer-indexbuilds (cjus/chessdb,tools/explorer-index; until 2026-11-15 it wassolrac-explorer-indexin cjus/chessgui), so the service answers a position with one read and no reshaping. Carlos agreed the item's limits on 2026-11-14 (40 half-moves, 2 games, 8 strongest games).Changed together (rule 1)
spec/knowledge.md: the capability, the request, and "Not in draft 1" and "Changes".cnp::knowledge:Capabilities::explorer,ExplorerParams,ExplorerMove,ExplorerGame,ExplorerResult,FindExplorer.conformance/knowledge/explorer.jsonl, for nodes that offerknowledge.explorer.All optional: a node that doesn't offer
exploreris unchanged. Adding a field toCapabilitiesmeans a program that builds one by naming every field addsexplorerwhen it next moves its pin.Not in it
How a node comes to hold an explorer's positions. Today a node's knowledge comes from files a client hands it and it answers from complete imports only; an explorer's positions would come from a cache of the online service's answers, which cjus/chessdb#48 has not designed yet. No node implements this request. So this stays a draft until that is decided: it is here to fix the answer's shape, which the index builder already writes.
Checks
cargo fmt --check,cargo clippy --workspace --all-targets -- -D warnings,cargo test,RUSTDOCFLAGS=-D\ warnings cargo doc --workspace --no-depsandcargo deny checkpass locally on this commit.🤖 Generated with Claude Code