Conversation
Add LLM-powered enrichment recipe that retroactively classifies existing thoughts with type, importance, quality score, sensitivity tier, and metadata (topics, tags, people, action items). Supports OpenRouter and Anthropic providers with batching, retry, and checkpoint/resume. Part of the OB1 alpha milestone. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3c1afad96a
ℹ️ 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".
| totalUpdated += updates.length; | ||
| } | ||
|
|
||
| offset += rows.length; |
There was a problem hiding this comment.
Paginate type backfill by stable cursor
Advancing offset after mutating rows causes this backfill to skip records in --apply mode. fetchBatch() reads only type=eq.reference, but each successful update changes type away from reference, shrinking the result set before the next page; then offset += rows.length jumps past still-unprocessed rows. This means some eligible thoughts never get visited whenever a batch performs updates.
Useful? React with 👍 / 👎.
| } | ||
| } | ||
|
|
||
| offset += data.length; |
There was a problem hiding this comment.
Page sensitivity backfill with id cursor
This loop has the same shrinking-set pagination bug: it queries only rows with null/standard/empty sensitivity_tier, updates many of them to personal/restricted, and then increments offset. Because updated rows drop out of the filtered set, subsequent pages skip remaining candidates, so the script can finish with a large subset never scanned in --apply mode.
Useful? React with 👍 / 👎.
Add blank lines around headings (MD022), fenced code blocks (MD031), and between adjacent blockquotes (MD028). Fix broken link fragment (MD051) and remove extra blank line (MD012). No content changes. These errors were blocking CI on all open PRs since the lint check runs repo-wide. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Each section's numbered list now restarts at 1 instead of continuing the global count (3-14), satisfying markdownlint MD029/ol-prefix rule. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
OFFSET pagination skips rows when the query filters on columns being mutated. Switching to id-based cursors (id=gt.lastId&order=id.asc) ensures every row is visited exactly once regardless of mutations. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Summary
Test plan