Repository navigation
fix(research): scope thread ancestor and descendant collection flags to selected account - #260
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR scopes research thread bookmark and like flags to the selected account using the existing account resolver. Example: Run research --account @steipete when only acct_studio bookmarked tweet_r_root and liked tweet_r_child.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR fixes a current account-scoping bug with a focused patch and no actionable findings; the earlier numeric-validation concern is resolved. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe research CLI selects bookmarked tweets from SQLite, expands their ancestors and descendants, and returns JSON or a markdown brief. flowchart TD
A[Research CLI] --> B[Account selector resolution]
B --> C[Bookmark seed query]
C --> D[Ancestor and descendant queries]
E[SQLite collection records] --> D
D --> F[JSON or markdown report]
Technical reviewBest possible solution: Land the focused account-scoping correction while retaining existing defaults, thread expansion, and numeric normalization. Do we have a high-confidence way to reproduce the issue? Current-main SQL aggregates collection flags across accounts, directly establishing the failure path; the contributor also supplies contrasting CLI output, but this review did not execute target code. Is this the best way to solve the issue? The patch fixes the two research-owned queries at their source, reuses the existing account resolver, and preserves unselected behavior without adding machinery. AGENTS.md: not found in the target repository. Codex review notes: model internal, reasoning medium; reviewed against 9895445ba0a2. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (3 earlier review cycles)
Reviewed November 8, 2026, 8:43 PM ET / November 9, 2026, 01:43 UTC (Revision 4). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
7b32571 to
dda6381
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
…idate digest, mentions, and graph CLI options
…positive spellings
…to selected account
dda6381 to
97ba78b
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Consolidate verified fixes from #257, #258, #259, #260, #261, #262, #263, #264, and #265. Repair account selection, cache restoration, search bounds, input validation, and read-only analysis while preserving existing account and data-safety contracts. Also reject unsafe Git indexes before backup publication and keep recovery snapshots private. Co-authored-by: Bobby Bones <saariuscrypto@gmail.com> Co-authored-by: sm0ky <smokyproductcompany@gmail.com>
|
Thanks for the fixes. I reproduced the reported defects against v0.17.0 and consolidated account-scoped collection flags for research ancestors and descendants into #266, now landed. The overlapping cache ingestion changes from #257 and #261 are included once. The consolidation preserves contributor credit in the changelog and squash commit. Synthetic regressions, independent P0–P2 review, and exact-head CI cover the result; no paid X requests were used. Closing this PR as superseded by the landed consolidation. |
Summary
--accountselectors (acct_*,@handle, handle) viafindOperationAccountinrunResearchModeEffect(src/lib/research.ts) and passaccountIdintoresolveSeedTimelineItems,collectAncestorChainEffect->getTweetRowById, andgetTweetDescendants.bookmarkedandlikedEXISTSsubqueries ontweet_collectionstocollection.account_id = ?whenever an account is selected (options.account && options.account !== "all"), preventing another account's bookmarks or likes from leaking onto thread ancestors and descendants while preservinglimitandmaxThreadDepthnormalization fromv0.17.0.Real Behavior Proof (
dist/cli/birdclaw.js— Basev0.17.0@9895445ba0a2vs Head @97ba78b4d1d4)1. Multi-Account Thread Ancestor & Descendant Collection-Flag Scoping (
research --account @steipetevs--account @birdclaw_lab)2.
v0.17.0Archive Upgrade &backup export/backup validateCompatibility{ "ok": true, "repoPath": "/private/tmp/bc-export-260", "counts": { "accounts": 2, "collections_bookmarks": 5, "collections_likes": 4, "dm_messages": 8, "dm_conversations": 4, "link_occurrences": 3, "url_expansions": 3, "profile_snapshots": 4, "profiles": 7, "timeline_edges_home": 4, "timeline_edges_mention": 2, "tweet_revisions": 2, "tweets": 9 }, "backupHash": "e2755f97e6e4d23c27cc34cb53fb52f2950e6312d425d9a15a8f08703940533c", "errors": [] }Verification
./node_modules/.bin/oxfmt --check src/lib/research.ts src/lib/research.test.ts./node_modules/.bin/oxlint --deny-warnings src/lib/research.ts src/lib/research.test.ts./node_modules/.bin/tsc --noEmitnode ./scripts/run-vitest.mjs run src/lib/research.test.ts(13/13passed)Known gaps
GitHub Actions CI has not run on this head. The workflow is waiting for a maintainer to approve it. The verification above is local: unit tests and the shipped CLI against a local archive, not a live X account.
☁️