Article history: needs-review and superseded states (decision needed)

Đang mở
#94 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
12/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
documentation

Hướng nghiên cứu

The issue is blocked on five product decisions (needs-review effect, superseded retrieval, who can set states, verification interaction, confirmation wording) that are not yet settled in the thread. Retrieval lives in lib/db/queries/kb.ts (searchArticles, getKBContext) and would need its own tests. Do not start implementation until the decisions are recorded; done means the decisions are written here and the acceptance criteria are refined.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

backend enhancement frontend question

Copied from DeadantCo/answerLoops#84 · originally opened by sethr07 on 2026-11-20

Copied from https://github.com/answerLoops/answerLoops/issues/428 — originally opened by @NathanTarbert on 2026-10-21

Part of #423. This one needs a product decision before anyone builds it.

Problem

Today an article is either published (searchable and used for answers) or not. A reviewer cannot say "this answer looks stale, take another look" or "the official docs now cover this, use that instead" without unpublishing or deleting the article. Age alone must never classify content as wrong or silently drop it from retrieval.

Decisions needed

Please settle these in the comments before implementation starts:

  1. Needs review. Does flagging an article for re-review change anything for customers (stays live, or pulled from answers)? Recommendation: stays live, with a visible flag for the team.
  2. Superseded. When an article is marked superseded by another article or a documentation link, is it excluded from retrieval, or still used but ranked below its replacement? Recommendation: excluded from retrieval, with the replacement shown to the reviewer.
  3. Who can set these. Owners and admins only, or any reviewer?
  4. Interaction with verification. Does editing a verified article automatically flag it as needing review, or only show "changed since last verified"?
  5. Effect clarity. What exactly does the person taking the action see before confirming, so they know whether customers are affected?

Likely scope once decided

An article status separate from published, event types for the flag and supersede actions, a confirmation step that states the effect on answers, and a retrieval change only if superseded articles are excluded. Retrieval lives in lib/db/queries/kb.ts (searchArticles, getKBContext), so a retrieval change needs its own tests.

Acceptance criteria (to refine after the decisions)

  • The decisions above are recorded in this issue.
  • Flagging and superseding append events and are visible on the article.
  • The confirmation step states the effect on retrieval.
  • Retrieval behavior matches the decision and is covered by tests, including a regression test that unflagged articles are unaffected.
  • Docs describe each status.

Product-version stamps that flag review (option 2 of #453) are decided here: a version mismatch sets the needs-review state decided in this issue.

Start here: new to the project? Read CONTRIBUTING.md first. It covers the ground rules, running answerLoops locally, and how to open a pull request.

Ngôn ngữ chính
TypeScript
Star
0
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của DeadantCo/answerLoopsdev

Tất cả issue của DeadantCo/answerLoopsdev

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.