Skip to content

fix(research): restore feedback track ux on current dev#341

Merged
jerry609 merged 7 commits into
devfrom
pr/research-feedback-track-ux
Mar 11, 2026
Merged

fix(research): restore feedback track ux on current dev#341
jerry609 merged 7 commits into
devfrom
pr/research-feedback-track-ux

Conversation

@jerry609

Copy link
Copy Markdown
Owner

Summary

  • restore the research feedback track UX changes on top of current dev
  • keep @radix-ui/react-popover in runtime dependencies and preserve the Vitest alias config
  • switch SqlAlchemyResearchStore schema bootstrap back to Base.metadata.create_all(...) for the current baseline

Validation

  • pytest tests/unit/test_paper_repo_persistence.py -q
  • git diff --cached --check

林杰 and others added 7 commits March 11, 2026 15:29
…adix popover import; add @radix-ui/react-popover dep
Closes #304

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Closes #305

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Research page crashed with "Module not found: Can't resolve
'@radix-ui/react-popover'" because SearchBox.tsx imports popover.tsx
which depends on this package.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 11, 2026 09:30
@vercel

vercel Bot commented Mar 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
paper-bot Ready Ready Preview, Comment Mar 11, 2026 9:33am

@coderabbitai

coderabbitai Bot commented Mar 11, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 03048482-0db9-4b54-974e-40b515b4c82c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch pr/research-feedback-track-ux

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@jerry609
jerry609 merged commit ee3d693 into dev Mar 11, 2026
7 checks passed
@gemini-code-assist

Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on refining the user experience for managing research feedback and improving the underlying architecture for better maintainability and performance. It introduces a more robust system for handling paper preferences and saved states, ensuring that user interactions are accurately reflected and persisted. Additionally, it includes minor performance enhancements and UI improvements to streamline the research workflow.

Highlights

  • Refactored Backend Dependency Initialization: Implemented lazy initialization for SqlAlchemyResearchStore, SqlAlchemyMemoryStore, and TrackRouter instances in the Python API routes, converting them to optional global variables accessed via getter functions. This improves dependency management and potentially startup performance.
  • Enhanced Paper Feedback State Management: Introduced a comprehensive system for managing paper feedback, including new 'unsave', 'unlike', and 'undislike' actions. The backend now correctly tracks the 'effective' state of feedback (e.g., if a paper is currently liked or saved) and applies this to feed ranking and display. This ensures a more accurate and responsive user experience for managing paper preferences.
  • Updated Frontend Feedback Interactions: Refactored frontend components (PaperCard, FeedTab, SearchResults) to utilize the new feedback state logic. User interactions like liking, disliking, and saving papers now correctly toggle their respective states and are reflected accurately in the UI, providing a more intuitive and consistent experience.
  • Asynchronous OpenAlex API Calls: Converted several OpenAlex API calls within the discover_from_seed endpoint to be asynchronous, improving the responsiveness and efficiency of paper discovery operations.
  • Improved Track Display Logic: Enhanced the TrackPills component to ensure that the currently active track remains visible, even when the number of tracks exceeds the maximum visible limit, improving navigation for users with many tracks.
  • Standardized Frontend Error Handling: Standardized error handling across several frontend components to use a centralized getErrorMessage utility, leading to more consistent and user-friendly error messages.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • src/paperbot/api/routes/research.py
    • Refactored store and router initialization to use lazy-loaded getter functions.
    • Updated all API endpoints to call the new lazy-loaded getter functions for _research_store, _memory_store, and _track_router.
    • Modified PaperFeedbackRequest to include new feedback actions like 'unlike', 'undislike', and 'unsave'.
    • Added current_action to PaperFeedbackResponse and updated feedback processing logic.
    • Converted OpenAlex API calls in discover_from_seed to be asynchronous.
    • Added await openalex.close() to the finally block in discover_from_seed.
  • src/paperbot/application/services/anchor_service.py
    • Introduced helper functions and dictionaries for normalizing and collapsing effective feedback actions.
    • Added ordering by timestamp and ID to feedback queries.
    • Updated the discover method to use collapsed effective feedback actions for calculating feedback signals.
  • src/paperbot/context_engine/engine.py
    • Applied minor whitespace formatting changes.
    • Modified build_context_pack to conditionally use list_effective_paper_feedback from the research store.
  • src/paperbot/infrastructure/stores/research_store.py
    • Imported defaultdict and Iterable, and implemented FeedbackPort.
    • Added internal dictionaries and static methods for normalizing, grouping, and collapsing feedback actions.
    • Changed list_tracks ordering to ResearchTrackModel.id.
    • Updated add_paper_feedback to use normalized actions and handle 'unsave' by updating PaperReadingStatusModel.saved_at.
    • Added list_effective_paper_feedback method to retrieve collapsed feedback states.
    • Modified list_paper_feedback and list_paper_feedback_ids to use normalized feedback actions.
    • Enhanced list_saved_papers to correctly track save/unsave states across tracks.
    • Expanded the list of feedback actions considered in list_track_feed.
    • Updated list_track_feed to use effective feedback states for is_saved, is_liked, is_disliked flags and feedback boost calculations.
    • Added canonical_paper_id to the _feedback_to_dict output.
  • tests/unit/test_anchor_service.py
    • Imported _collapse_effective_feedback_actions for testing.
    • Added SessionProvider and Base.metadata.create_all to test_anchor_service_raises_for_unknown_track.
    • Added test_collapse_effective_feedback_actions_ignores_toggled_off_state.
    • Added test_cleared_feedback_does_not_contribute_to_anchor_personalization.
  • tests/unit/test_context_engine_personalized_mode.py
    • Modified test_global_mode_disables_personalization_boosts to compare global and personalized scores, asserting a significant difference.
  • tests/unit/test_feed_ranking.py
    • Applied minor formatting to PaperFeedbackModel instantiations.
    • Added test_track_feed_restores_saved_state_after_preference_is_cleared to verify save state persistence.
    • Added test_track_feed_keeps_save_and_like_as_independent_flags to test independent feedback flags.
  • tests/unit/test_paper_judge_persistence.py
    • Imported PaperReadingStatusModel.
    • Added test_unsave_removes_saved_state_from_library to verify unsave functionality.
    • Added test_feedback_ids_follow_effective_toggle_state to test effective feedback state tracking.
  • tests/unit/test_research_feedback_state.py
    • Added new test file to validate feedback state management in the API and store, including toggling actions and persistence of saved states.
  • web/src/components/research/FeedTab.tsx
    • Imported new feedback utility types and functions.
    • Added is_saved, is_liked, is_disliked properties to FeedItem type.
    • Refactored FeedTabProps to use a single onFeedbackAction callback.
    • Updated toPaper function to derive preferenceAction from new feedback flags.
    • Modified PaperCard props to use the unified onFeedbackAction.
  • web/src/components/research/PaperCard.tsx
    • Imported new feedback utility types and functions.
    • Added is_liked, is_disliked, and feedback_action properties to Paper type.
    • Introduced derivePreferenceAction helper function.
    • Updated PaperCardProps to use a single onFeedbackAction callback.
    • Refactored state management for isSaved and preferenceAction based on derived properties.
    • Rewrote handleSave, handleLike, and handleDislike to use runSaveAction and runPreferenceAction with toggle logic.
    • Updated action buttons to use the unified onFeedbackAction.
  • web/src/components/research/ResearchDashboard.tsx
    • Removed mergeTracksStable utility and local fetch helpers.
    • Standardized error handling to use getErrorMessage from @/lib/fetch.
    • Updated refreshTracks to directly set tracks instead of merging.
  • web/src/components/research/ResearchDiscoveryPage.tsx
    • Removed mergeTracksStable utility and local fetch helpers.
    • Standardized error handling to use getErrorMessage from @/lib/fetch.
    • Updated refreshTracks to directly set tracks.
  • web/src/components/research/ResearchPageNew.tsx
    • Imported new feedback utility types and functions, removed mergeTracksStable and local fetch helpers.
    • Standardized error handling to use getErrorMessage from @/lib/fetch.
    • Updated refreshTracks to directly set tracks.
    • Modified handleFeedback to accept PaperFeedbackRequestAction and return PaperFeedbackAction | null.
    • Updated the API call in handleFeedback to expect current_action in the response and use new feedback utility functions.
    • Added communityRadarHref and a button to navigate to the Community Radar.
  • web/src/components/research/SearchResults.tsx
    • Imported new feedback utility types.
    • Modified SearchResultsProps to use a single onFeedbackAction callback.
    • Updated PaperCard props to use the unified onFeedbackAction.
  • web/src/components/research/TrackPills.test.ts
    • Added new test file for getVisibleTracks function.
  • web/src/components/research/TrackPills.tsx
    • Added getVisibleTracks function to ensure the active track is always visible.
    • Integrated getVisibleTracks into the TrackPills component.
  • web/src/lib/paper-feedback.test.ts
    • Added new test file for paper-feedback utility functions.
  • web/src/lib/paper-feedback.ts
    • Added new utility file defining types and functions for consistent feedback state management (e.g., normalizePaperFeedbackAction, toggleSaveFeedbackAction).
  • web/vitest.config.ts
    • Added resolve.alias for @ to point to ./src.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request is a substantial and well-executed effort to restore and refactor the research feedback track UX, making feedback actions stateful (e.g., like/unlike, save/unsave). The changes span both the backend and frontend, and the inclusion of comprehensive tests is commendable. My review focuses on improving maintainability and robustness by addressing code duplication, encapsulation, a potential UX regression in list ordering, and suggesting a more idiomatic way to handle a feature check.

Note: Security Review did not run due to the size of the PR.

Comment on lines +72 to +122
_FEEDBACK_ACTION_ALIASES = {
"not_relevant": "dislike",
"not-relevant": "dislike",
"not related": "dislike",
}
_FEEDBACK_GROUP_BY_ACTION = {
"save": "save_state",
"unsave": "save_state",
"like": "preference_state",
"unlike": "preference_state",
"dislike": "preference_state",
"undislike": "preference_state",
"skip": "preference_state",
"cite": "cite_state",
}
_FEEDBACK_EFFECTIVE_ACTIONS = {
"save": "save",
"unsave": None,
"like": "like",
"unlike": None,
"dislike": "dislike",
"undislike": None,
"skip": "skip",
"cite": "cite",
}


def _normalize_feedback_action(value: str) -> str:
normalized = (value or "").strip().lower().replace(" ", "_")
return _FEEDBACK_ACTION_ALIASES.get(normalized, normalized)


def _collapse_effective_feedback_actions(rows: list[PaperFeedbackModel]) -> list[str]:
effective_actions: list[str] = []
seen: set[tuple[int, str]] = set()
for row in rows:
paper_id = int(row.canonical_paper_id or row.paper_ref_id or 0)
if paper_id <= 0:
continue
normalized_action = _normalize_feedback_action(str(row.action or ""))
group = _FEEDBACK_GROUP_BY_ACTION.get(normalized_action, normalized_action)
state_key = (paper_id, group)
if state_key in seen:
continue
seen.add(state_key)

effective_action = _FEEDBACK_EFFECTIVE_ACTIONS.get(normalized_action, normalized_action)
if effective_action:
effective_actions.append(effective_action)
return effective_actions

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The constants (_FEEDBACK_ACTION_ALIASES, etc.) and helper functions (_normalize_feedback_action, _collapse_effective_feedback_actions) for handling feedback actions are duplicated from src/paperbot/infrastructure/stores/research_store.py. This duplication can lead to inconsistencies if the logic is updated in one place but not the other. To improve maintainability, this logic should be centralized. Since SqlAlchemyResearchStore is the owner of the feedback data, it's the ideal place for this logic. Consider removing the duplicated code from this file and importing the necessary functions/constants from research_store.py.

Comment on lines +1041 to +1042
normalized_action = research_store._normalize_feedback_action(req.action)
current_action = research_store._effective_feedback_action(normalized_action)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The route handler is calling internal methods of research_store (_normalize_feedback_action and _effective_feedback_action), which are intended for internal use as indicated by the leading underscore in their definitions within research_store.py. This breaks encapsulation and makes the code more brittle to future changes in the SqlAlchemyResearchStore class. It would be better to use a public API from the research_store. If a public method isn't available, consider adding one that encapsulates this logic, for example, get_effective_action(action: str) -> Optional[str].

stmt = stmt.order_by(
desc(ResearchTrackModel.is_active), desc(ResearchTrackModel.updated_at)
).limit(limit)
stmt = stmt.order_by(ResearchTrackModel.id).limit(limit)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The ordering for list_tracks has been changed from desc(ResearchTrackModel.is_active), desc(ResearchTrackModel.updated_at) to order_by(ResearchTrackModel.id). This means active tracks will no longer be prioritized at the top of the list, which might be a regression from a user experience perspective. If the intention is to have a stable but not necessarily user-friendly order, ordering by ID is fine. However, if users expect to see their active track first, the previous ordering was better. Please confirm if this change was intentional.

Suggested change
stmt = stmt.order_by(ResearchTrackModel.id).limit(limit)
stmt = stmt.order_by(desc(ResearchTrackModel.is_active), desc(ResearchTrackModel.updated_at)).limit(limit)

Comment on lines +916 to +932
list_effective_feedback = getattr(
self.research_store,
"list_effective_paper_feedback",
None,
)
if callable(list_effective_feedback):
feedback_rows = list_effective_feedback(
user_id=user_id,
track_id=int(routed_track["id"]),
limit=500,
)
else:
feedback_rows = self.research_store.list_paper_feedback(
user_id=user_id,
track_id=int(routed_track["id"]),
limit=500,
)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The use of getattr to dynamically check for the existence of list_effective_paper_feedback is a bit fragile and not the most idiomatic Python. Using hasattr is generally preferred for this type of check as it's more explicit about its intent. This would make the code clearer and slightly more robust.

Suggested change
list_effective_feedback = getattr(
self.research_store,
"list_effective_paper_feedback",
None,
)
if callable(list_effective_feedback):
feedback_rows = list_effective_feedback(
user_id=user_id,
track_id=int(routed_track["id"]),
limit=500,
)
else:
feedback_rows = self.research_store.list_paper_feedback(
user_id=user_id,
track_id=int(routed_track["id"]),
limit=500,
)
if hasattr(self.research_store, "list_effective_paper_feedback"):
feedback_rows = self.research_store.list_effective_paper_feedback(
user_id=user_id,
track_id=int(routed_track["id"]),
limit=500,
)
else:
feedback_rows = self.research_store.list_paper_feedback(
user_id=user_id,
track_id=int(routed_track["id"]),
limit=500,
)

@jerry609
jerry609 deleted the pr/research-feedback-track-ux branch March 12, 2026 03:08
jerry609 added a commit that referenced this pull request Mar 13, 2026
* fix: validate studio output dirs and add p2c module design docs

:wq

* feat(PaperToContext): M3
#140
Closes #140

* feat(p2c): implement ContextEngineBridge to inject user context into extraction Related to #157

* activate paper-scope memory read/write path. Raletd to #158

* fix(p2c): address Gemini code review issues from PR. Related to #157

* fix(p2c): address Gemini code review issues. Related to #158

* fix(p2c): sanitize XML tag content to prevent tag-escape prompt injection

* feat(memory): add FTS5 full-text search and sqlite-vec hybrid search. Related to #161

* feat(p2c): persist CodeMemory experiences to SQLite. Related to #162

* address Gemini code review issues from PR #224 and #225

* fix(memory): address Gemini code review issues from #153 epic audit

P0 fixes:
- Replace unbounded daemon threads with ThreadPoolExecutor(max_workers=2)
  for embedding writes; atexit + close() ensure graceful shutdown so
  in-flight embeddings are not lost on process exit
- Restore apprise>=1.9.0 and feedgen>=1.0.0 removed in epic branch,
  which would have broken Epic #179 push/RSS features on merge

P1 fixes:
- _escape_fts: replace double-quote-only escaping with a whitelist regex
  [A-Za-z0-9_+-] so FTS5 operators (*, NEAR, NOT, ^) cannot alter query
  semantics; empty queries now short-circuit to []
- _hybrid_merge: skip items with None/invalid id instead of defaulting
  to id=0, preventing silent score collisions across unrelated records
- ReproExperienceStore: add application-level dedup check + UNIQUE
  constraint (paper_id, pattern_type, content) + IntegrityError fallback
  to prevent duplicate experiences from accumulating across retries

Migration:
- 0022_repro_experience_dedup: adds uq_repro_exp_paper_type_content
  unique constraint to existing repro_code_experience table

Tests: 47 unit tests pass (+3 new tests covering the fixes above)

* fix: harden repro experience isolation and wire persistence into repro pipeline

Add user-scoped isolation for repro_code_experience and enforce dedup semantics with migration 0022_repro_experience_dedup.

Inject ReproExperienceStore through ReproAgent/Orchestrator/CodingAgent/GenerationNode and propagate user_id/pack_id in generation, verification, and debugging persistence paths.

Update /api/gen-code to accept user_id and extend unit tests for user isolation and persistence behavior.

* feat(memory): introduce memory decay mechanism (#163)

Add decay-aware scoring that combines relevance (confidence), recency
(exponential decay with 90-day half-life), and usage frequency to
re-rank search results. New memories default to expires_at = created_at
+ 365 days. search_memories() now auto-touches usage on hits.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat(memory): add cross-track batch search (#164)

Add search_memories_batch() that queries multiple scope_ids in a single
SQL call, eliminating the N+1 loop in build_context_pack(). Engine now
uses this batch method for cross-track memory retrieval.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat(context): implement layered context loading (#165)

Refactor build_context_pack() into 4 layer methods:
- Layer 0: user profile (cached with 5-min TTL, ~200 tokens)
- Layer 1: track context — tasks/milestones (~500 tokens)
- Layer 2: query-relevant + cross-track memories (~1000 tokens)
- Layer 3: paper-scoped memories (on-demand)

Return value adds context_layers metadata while remaining fully
backward-compatible.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* refactor(memory): align decay with OpenClaw patterns

- Use standard ln(2)/halfLifeDays lambda formula (matches OpenClaw
  temporal-decay.ts:toDecayLambda)
- Default half-life lowered to 30 days (was 90, now matches OpenClaw)
- Evergreen memories (global scope, preference kind) are immune to
  recency decay (inspired by OpenClaw isEvergreenMemoryPath)
- Add _to_decay_lambda() and _is_evergreen_memory() helpers
- Expand tests for lambda math, half-life precision, and evergreen logic

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(context): isolate layer0 cache and touch batch hits (#236)

* feat(memory): upgrade batch retrieval with hybrid and MMR options (#237)

* feat(context): add embedding fallback chain and token guard config (#238)

* fix(memory): bound batch hybrid candidates by scope_ids

* docs: update README with macOS python3 tips

* docs: update README with more badges

* docs: update README with deleting extra badges

* feat(search): add offline retrieval benchmark harness

Add a deterministic retrieval benchmark fixture, scorer, CLI, docs, and CI smoke gate for PaperSearchService.\n\nCloses #284\nRefs #283

* feat(context): add offline context-engine benchmark

Add deterministic fixtures, scoring, CLI, and smoke coverage for layered assembly, token guard, and advisory routing in ContextEngine.\n\nCloses #286\nRefs #283

* feat(memory): add scope isolation acceptance bench

Add an offline scope-isolation benchmark for memory retrieval paths, extend the metric collector with cross-user and cross-scope leak rates, and wire the new check into CI.\n\nCloses #285\nRefs #283

* feat(memory): add offline injection robustness detector

Add a deterministic prompt-injection pattern detector, labeled offline fixtures, an acceptance benchmark, and CI coverage for Injection Robustness L1.\n\nCloses #287\nRefs #283

* feat(memory): add offline performance benchmark harness

Add a deterministic synthetic benchmark for memory search latency baselines across 10k/100k/1M scales, plus docs and smokeable unit coverage.\n\nCloses #288\nRefs #283

* feat: add ROI benchmark for repro memory

Closes #289

Refs #283

* docs: add MemoryBench epic completion report

Refs #283

* docs: add runtime memory benchmark report

Refs #283

* Docs: update README with our new name (#290)

* docs: update README with macOS python3 tips

* docs: update README with more badges

* docs: update README with deleting extra badges

* docs: update README with new god name

---------

Co-authored-by: 林杰 <linjie@linjiedeMacBook-Air.local>
Co-authored-by: 林杰 <linjie@v8d1ef64c.dip.tu-dresden.de>
Co-authored-by: 林杰 <linjie@v8d1ef43e.dip.tu-dresden.de>
Co-authored-by: 林杰 <linjie@v8d1ef6c5.dip.tu-dresden.de>

* Fix: show friendly error when backend is unreachable (#291)

* docs: update README with macOS python3 tips

* docs: update README with more badges

* docs: update README with deleting extra badges

* docs: update README with new god name

---------

Co-authored-by: 林杰 <linjie@linjiedeMacBook-Air.local>
Co-authored-by: 林杰 <linjie@v8d1ef64c.dip.tu-dresden.de>
Co-authored-by: 林杰 <linjie@v8d1ef43e.dip.tu-dresden.de>
Co-authored-by: 林杰 <linjie@v8d1ef6c5.dip.tu-dresden.de>

* feat: improve memory ROI and effectiveness benchmarks

* fix: avoid importing missing data template in main

* fix: stabilize live memory roi benchmark

* feat: expand multi-session memory effectiveness benchmark

* feat: implement MemoryBench evaluation suite with 4 bench suites

Add comprehensive memory module evaluation aligned with LongMemEval
(ICLR 2025), LoCoMo (ACL 2024), Mem0, and Letta benchmarks.

- Retrieval Bench v2: IR metrics (Recall@5=0.873, MRR@10=0.731, nDCG@10=0.747)
  with 40 annotated queries across 5 question types and 5 memory dimensions
- Scope Isolation + CRUD: zero-leak verification across user x scope matrix,
  Mem0-aligned CRUD lifecycle (add/update/delete/dedup)
- Context Extraction: L0-L3 layer completeness, precision, token budget guard,
  TrackRouter accuracy (100%), graceful degradation
- Injection Robustness L1: offline pattern detection (0% pollution, 0% FP)
- Fixture dataset: 45 memories (2 users), 12 injection patterns
- Testing documentation with methodology, validity analysis, and results

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* docs: add MemoryBench quantitative results to README

Add evaluation results section with metrics from 4 bench suites:
- Retrieval quality (Recall@5=0.873, MRR@10=0.731, nDCG@10=0.747)
- Scope isolation + CRUD lifecycle (zero leaks, all CRUD pass)
- Context extraction (100% precision, 100% router accuracy)
- Injection robustness (0% pollution, 0% false positive)

Includes LoCoMo question-type breakdown and run instructions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat(AgentSwarm): add Claude/Codex workflow, workspace persistence, and human review UX (#296)

* feat(AgentSwarm): add Claude/Codex workflow, workspace persistence, and human review UX

- 添加 /api/agent-board 路由和 Swarm Commander/Dispatcher 基础架构

- 将生成的任务文件持久化到已配置的工作区

- 在工作区中为每个任务生成用户审核文档(reviews/<任务>-user-review.md)

- 添加代理看板 UI,包含看板、任务详细日志和人工审核操作

- 要求“全部运行”任务设置工作区,并添加 VS Code 打开操作

- 实现 Studio 存储和 SSE 任务的更新/插入/同步行为

- 为路由流程、持久化和超时处理添加单元/功能测试

- 更新 Studio 布局、PostCSS 配置、后端 URL 助手和锁定文件

Closes #197

* (fix)修改AI review问题

* refactor: share research fetch helpers (#295)

Co-authored-by: 林杰 <linjie@v8d1ef6c5.dip.tu-dresden.de>

* feat: add research/yearCombobox. Realted to #297

* refactor(research): dedupe fetch helpers across Research pages; fix Radix popover import; add @radix-ui/react-popover dep

* fix(web): move @radix-ui/react-popover to dependencies

* fix(research): keep track list order stable across activation

* refactor(research): share stable track merge helper

* fix(research): make paper feedback togglable

* feat(research): hide 'Open Discovery Workspace' behind feature flag

* feat(research): gate track memory button behind feature flag (#333)

* feat(research): gate track memory button behind feature flag

* fix(research): avoid reactivating already active track

* ci(vercel): add auto deploy workflow for dev branch

* feat: calm dashboard workspace (#334)

* feat: harden search and connector infrastructure (#339)

* refactor(infra): unify async request layer for connectors

Implements issue #262 by moving Arxiv/OpenAlex/PapersCool connectors onto the shared async transport with retry support, updating async call sites, and adding focused tests.

* perf(infra): batch OpenAlex ID lookups

Implements issue #267 by replacing per-ID OpenAlex work fetches with batched filter queries and adds focused coverage for the batched path.

* refactor(infra): unify Semantic Scholar client stack

Implements issue #266 by routing both the shared mixin and the scholar-tracking agent through the same SemanticScholarClient surface, removing the duplicated legacy API client path, and adding focused unification tests.

* feat(infra): harden SSE transport handling

Implements issue #263 by moving heartbeat, timeout, cancellation cleanup, and X-Accel-Buffering handling into the shared SSE wrapper and switching the streaming routes onto the common response helper with regression coverage.

* fix(infra): bound ARQ jobs and reuse event log

Implements issue #268 by adding timeout/max_tries metadata to worker functions, reusing the SqlAlchemyEventLog singleton inside the worker module, and covering both behaviors with focused tests.

* feat(search): add three-tier paper deduplicator (DOI/arxiv_id/rapidfuzz)

Replaces the identity-key-only dedup in PaperSearchService._fuse_with_rrf()
with a dedicated PaperDeduplicator that matches across DOI, arxiv_id (version-
stripped), and fuzzy title similarity via rapidfuzz. Merged papers accumulate
the best metadata (highest citations, longest abstract, union of identities).

Closes #317

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(search): prevent conflicting identity dedup merges

Refs #317

* fix(embeddings): add CJK character support to hash embedding tokenizer

Extends HashEmbeddingProvider regex to include CJK Unified Ideographs
(U+4E00–U+9FFF) and Extension A (U+3400–U+4DBF), enabling proper
embedding of Chinese text.

Closes #276

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(embeddings): extend hash tokenizer beyond Han-only CJK

Refs #276

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

* fix(research): restore feedback track ux on current dev (#341)

* refactor(research): dedupe fetch helpers across Research pages; fix Radix popover import; add @radix-ui/react-popover dep

* fix(web): preserve item order in research tracks selection

Closes #304

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* refactor(web): remove unused components

Closes #305

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(web): keep active research track visible

Refs #304

* fix(research): align paper feedback toggles with persisted state

Refs #324

* fix(web): add missing @radix-ui/react-popover dependency

Research page crashed with "Module not found: Can't resolve
'@radix-ui/react-popover'" because SearchBox.tsx imports popover.tsx
which depends on this package.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(research): restore feedback track ux on current dev

---------

Co-authored-by: 林杰 <linjie@v8d1ef6a5.dip.tu-dresden.de>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

* fix(web): resolve DeepCode Studio page issues

* fix(repro): improve memory and workflow correctness

* feat: add intelligence radar backend

* fix(api): block cross-user intelligence feed access

* fix(intelligence): avoid thread-unsafe refresh races

* refactor: enforce alembic-only store initialization

* fix(db): bootstrap sqlite schemas for lazy stores

* fix(stores): align ports with store interfaces

* fix(stores): align remaining port contracts

* fix(api): harden request boundaries and settings handling

* fix(api): stop trusting spoofable forwarded hosts

* fix(api): gate studio code execution by default

* fix(api): stream request-size checks safely

* feat(export): add Obsidian filesystem exporter

* feat(cli): add Obsidian export command

* feat(obsidian): finish configurable vault export workflow (#348)

* refactor(web): move workflow workbench out of dashboard

* ci(vercel): use --preview flag for dev deploy

* fix(ci): remove invalid Vercel preview flag

* fix(ci): keep Vercel secrets free of inline comments

* refactor: share candidate search boundary and simplify dashboard

* refactor(api): split paperscool search curate and ingest

* refactor(web): flatten dashboard brief snapshot

* refactor(web): reduce dashboard brief visual noise

* refactor(web): feature top dashboard signals

* fix(obsidian): harden export follow-ups

* fix(obsidian): tighten review follow-ups

* feat(web): add Obsidian handoff to Research workspace (#352)

* feat(web): add Obsidian handoff to Research workspace

* fix(web): address obsidian workspace review feedback

* feat: ship track-centric research context stack (#356)

* feat(api): add track context read model service

* feat(api): expose consolidated track context endpoint

* refactor(web): migrate research page to track context endpoint

* refactor(memory): wrap track-scoped memory access

* chore: document track-centric research model and stabilize tests

* docs: refresh readme screenshots

* fix(deps): align package manifests with runtime imports

* docs: refresh email push screenshot

* feat(research): close citation graph and obsidian export gaps (#360)

* feat(obsidian): add bidirectional vault sync

* fix(paper): improve saved papers table layout

* feat(openclaw): add paperbot plugin bridge

* fix(obsidian): address sync review feedback

* feat(web): flatten dashboard action bands

* refactor(web): condense dashboard next-up panel

* refactor(web): simplify dashboard around recommendations

* refactor(web): simplify dashboard surface and workflow copy

* feat(web): add dashboard queue actions

* fix(web): harden dashboard queue links and brief parsing

* fix(paper): unify unsave with feedback API

* fix(paper): scope saved papers per track

* fix: unblock dashboard build and e2e

* ci: add vercel pr preview automation

* fix: repair vercel preview workflow setup

* fix: run vercel build from repo root

* fix: skip preview smoke without bypass secret

* feat(auth): add multi-user authentication foundation. Related to #151

- Add User domain model and SQLAlchemy UserModel with soft-delete support
- Add SqlAlchemyUserStore with email/GitHub user CRUD, password auth, reset tokens
- Add JWT signing/verification (python-jose), bcrypt password hashing
- Add FastAPI auth dependencies: get_user_id (optional fallback) and get_current_user (strict)
- Add /api/auth routes: register, login, github/exchange, me, forgot/reset-password
- Add Alembic migrations for users and password_reset_tokens tables
- Add AUTH_OPTIONAL env var for gradual migration from legacy 'default' user
- Fix account lifecycle bugs: reactivate on OAuth re-login, reject inactive on password login
- Add auth API tests

* fix(auth): address code review feedback on PR #365

* feat(document): add explicit evidence indexing pipeline

* docs(benchmark): define document evidence eval contract

* feat(benchmark): add document evidence eval scaffold

* fix(api): restore py39 auth compatibility after dev rebase

* chore(logging): surface cleanup and FTS5 failures

* fix(paper): refine saved filters and cleanup code

* fix(paper): refine paper context cleanup and year filter

* feat(eval): support dedicated embedding benchmark providers

* feat(settings): add embedding endpoint configuration

* refactor(settings): align embedding endpoint ux with cc-switch

* refactor(settings): simplify embedding endpoint panel

* refactor(settings): tighten embedding layout on wide screens

* feat(studio): refine paper gallery icon animation and context
  workspace layout

* ci: disable native vercel git deploys

* docs: restore master demo gallery assets

* fix: unblock ci for merge-dev-into-master

* fix: address codeql alerts

* fix: harden agent board workspace path validation

---------

Co-authored-by: boyu <oor2020@163.com>
Co-authored-by: WenjingWang <jingnvx@outlook.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: 林杰 <linjie@linjiedeMacBook-Air.local>
Co-authored-by: 林杰 <linjie@v8d1ef64c.dip.tu-dresden.de>
Co-authored-by: Linjie-top <linjie666z@gmail.com>
Co-authored-by: 林杰 <linjie@v8d1ef43e.dip.tu-dresden.de>
Co-authored-by: 林杰 <linjie@v8d1ef6c5.dip.tu-dresden.de>
Co-authored-by: 林杰 <linjie@v8d1ef6a5.dip.tu-dresden.de>
Co-authored-by: 林杰 <linjie@v8d1ef4ea.dip.tu-dresden.de>
Co-authored-by: 林杰 <linjie@v8d1ef41f.dip.tu-dresden.de>
@jerry609
jerry609 removed the request for review from Copilot March 23, 2026 23:43
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