feat(cli): add inspect chunks note-level retrieval view - #1249
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2761a1fdcc
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
2761a1f to
c9e7148
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c9e7148b70
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
c9e7148 to
94695b7
Compare
|
Amendment (94695b7): the chunks view now conveys indexing status via a derived |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 94695b7167
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
94695b7 to
da8cd03
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: da8cd03084
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
cff15bf to
6e2a8a2
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6e2a8a26b8
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
6e2a8a2 to
61c302c
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 61c302c7f9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
61c302c to
f22d09c
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f22d09c02e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
f22d09c to
5d845a0
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5d845a07b8
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Signed-off-by: phernandez <paul@basicmachines.co>
5d845a0 to
0177f50
Compare
Phase 1+2 PR A of #1155 (retrieval inspector; scope decision on the issue). This PR is the
note-level half — no retrieval-path changes; the execution trace +
inspect queryfollowsas PR B.
What's new
bm inspect chunks <identifier>andPOST /v2/projects/{id}/inspect/chunks: view anynote exactly as the index sees it —
produced (chunk key, ordinal, text, source hash);
ready | pending | stale | orphaned—staleis derived by recomputing chunk recordsfrom the current search rows (pure functions from
semantic_chunking, no embeddingcalls) and diffing stored hashes;
orphanedmeans the stored(embedding_model, vector_index)no longer matches the configured identity — i.e. therows retrieval cannot see (the Vector search silently degrades when configured index has no ready manifest rows #1236 condition, made visible per note);
a freshness problem?" in one command.
Design per the reviewed plan: module-level service functions (no service class), public
repository read methods (plain portable SQL, both backends), POST-with-body identifier
resolution following the
/knowledge/resolveprecedent, and the CLI--jsonoutput beingthe API Pydantic schema serialized verbatim — one machine contract, locked by a
round-trip-and-revalidate test. Auto-JSON when piped; rich/plain interactively.
Verification
timestamp normalization) — plus the chunk-inspection suite re-run on real Postgres.
just typecheck,just lintclean. Live smoke output in the review thread shape:entity + observation + relation rows each showing their chunks with status.
🤖 Generated with Claude Code
https://claude.ai/code/session_01CPdSXDbYyhyZ1TwgFnpEv8