ブランチ/タグ指定なし
main
feature/436
feature/pr-460-wip
feature/479
feature/150
feature/pr-474-wip
feature/149
feature/152
feature/450
feature/pr-472-wip
feature/439
feature/443
feature/485
feature/272
feature/279
feature/487
feature/451
feature/374
ai/recovery/issue-279-kofyff8r
ai/recovery/issue-414-4ki4y15_
feature/455
ai/recovery/pr-475-xh7l3rby
ai/recovery/pr-475-r9hul6ya
ai/recovery/pr-475-6muq2mhf
ai/recovery/issue-479-n7k8h8jk
feature/414
ai/recovery/issue-205-idew24v8
feature/484
feature/483
feature/97
feature/242
feature/445
ai/recovery/issue-479-7_zeuuw9
ai/recovery/issue-242-hhdxc839
feature/447
feature/404
feature/401
feature/454
feature/170
feature/273
feature/446
feature/440
feature/320
feature/437
feature/438
feature/448
feature/283
feature/435
feature/444
feature/442
feature/434
feature/428
feature/431
feature/424
feature/425
feature/426
feature/422
feature/055
feature/419
feature/416
feature/411
feature/406
feature/354
feature/399
feature/409
feature/405
feature/398
feature/386
feature/268
feature/034
feature/385
feature/351
feature/076
feature/389
feature/360
feature/332
feature/352
feature/383
feature/306
feature/378
feature/376
feature/371
feature/370
feature/361
feature/041
feature/358
feature/302
feature/090
feature/155
feature/346
feature/171
feature/047
feature/327
feature/063
feature/046
feature/314
feature/329
feature/317
feature/323
feature/200
feature/321
feature/318
feature/309
feature/294
feature/308
feature/312
feature/095
feature/264
feature/206
見つかりません。
ラベル
ラベルをクリア
ai:blocked
ai:effort:high
ai:effort:low
ai:effort:xhigh
ai:investigate
ai:mode:branch
ai:mode:pr
ai:model:astra
ai:model:luna
ai:model:terra
ai:needs-input
ai:ready
ai:revalidate
ai:revalidate
ai:review
ai:running
area/backend
area/frontend
duplicate
invalid
wontfix
既存 feature ブランチを Codex なしで全件テストし、合格した場合のみ PR を作成する
P
0
P
1
P
2
P
3
status
blocked
status
in-progress
status
ready
status
review
type
bug
type
enhancement
type
task
マイルストーン
項目なし
マイルストーンなし
担当者なし
通知
期日
期日は設定されていません。
依存先
#92 関聯タグ
miteruzo/btrc-hub
リファレンス: miteruzo/btrc-hub#65
新しいイシューから参照
ユーザーをブロックする
ユーザーをブロックすると、そのユーザーは、プルリクエストやイシューの作成、コメントの投稿など、リポジトリに対する操作ができなくなります。 ユーザーのブロックについて詳しくはこちらをご覧ください。
cos 類似度によるタグ推薦機能.
あんま要らない.
Codex 調査完了(変更は一切行っていません)。新規提案: 2 件。
Codex 調査提案 P-0005 (未承認・コード変更なし)
Similarity refresh destroys the previous results before calculation succeeds
Evidence:
backend/app/services/similarity/calc.rb:9atf05d8a4b3a132216b900c2d4b69001211b23e381Type: reliability
Certainty: confirmed
Reason: delete_all runs before loading associations and calculating similarities. Replacement rows are subsequently inserted in separate 1,000-row batches at lines 92–101, without a transaction or staging table.
Impact: A calculation failure leaves the table empty; an insertion failure leaves partial results. Concurrent runs can interleave deletion and insertion and encounter composite-primary-key conflicts.
Verification (NOT RUN): Not executed: In an isolated database with existing similarities, inject a failure before the first insert and another after the first batch. Inspect whether the original complete result set survives.
Proposed change (NOT IMPLEMENTED): Calculate replacement rows first, then serialize refreshes and atomically replace the table contents in a transaction.
※ 自動調査による候補です。現在のコードで再確認し、Issue 化・実装する場合は別途承認してください。
Codex 調査提案 P-0006 (未承認・コード変更なし)
Top-20 storage does not bound the quadratic calculation
Evidence:
backend/app/services/similarity/calc.rb:76atf05d8a4b3a132216b900c2d4b69001211b23e381Type: performance
Certainty: confirmed
Reason: The tag task passes every non-deprecated tag to this service. The nested loops visit every unordered tag pair, including pairs with no shared posts, and intersection_size scans their sorted post IDs. The 20-result limit only bounds retained results.
Impact: For T tags, each scheduled refresh evaluates T(T−1)/2 pairs. Large tag catalogs and popular tags can make the daily job expensive despite the small output per tag.
Verification (NOT RUN): Not executed: Profile isolated datasets with increasing tag counts and sparse co-occurrence. Compare pair counts and elapsed time when doubling the tag population.
Proposed change (NOT IMPLEMENTED): Accumulate intersections through a post-to-tags inverted index and calculate cosine scores only for pairs sharing a post; explicitly define whether zero-score fallback results are needed.
※ 自動調査による候補です。現在のコードで再確認し、Issue 化・実装する場合は別途承認してください。
Codex 調査提案 P-0019 (未承認・コード変更なし)
類似度テーブルの再生成が非原子的で、失敗時に既存結果を失う
Evidence:
backend/app/services/similarity/calc.rb:9atdda3d87073617bcb0993e22dfb693d4280530917Type: reliability
Certainty: confirmed
Reason: 計算開始時に similarity_model.delete_all を実行し、その後に全組合せの計算と1,000行単位の insert_all! を行う。既存結果の削除から最後の挿入までを保護するトランザクションや一括切替処理はない。backend/lib/tasks/calc_tag_similarities.rake もこの処理を直接呼ぶ。
Impact: 計算中は結果が空になり、途中の例外やプロセス停止では空または部分的な結果が残る。並行実行では複合主キーの重複による挿入失敗も起こり得る。
Verification (NOT RUN): 未実行。隔離環境で既存の類似度行を用意し、最初の挿入時に例外を発生させて、既存結果が保持されるか確認する。別途、2つの計算処理を同時に開始して競合を確認する。
Proposed change (NOT IMPLEMENTED): 計算完了後に、排他制御した短いトランザクション内で削除と全結果の挿入を行う。
※ 自動調査による候補です。現在のコードで再確認し、Issue 化・実装する場合は別途承認してください。
Codex 調査提案 P-0020 (未承認・コード変更なし)
保存件数を20件に制限しても計算量は全タグ対の二乗になる
Evidence:
backend/app/services/similarity/calc.rb:76atdda3d87073617bcb0993e22dfb693d4280530917Type: performance
Certainty: confirmed
Reason: ids の全ての組合せを二重ループで走査し、各対で投稿ID配列の積集合を計算する。上位20件への制限は計算後の push_topk にしか適用されず、共通投稿のないタグ対も計算する。タグ数Nに対してN(N−1)/2対を処理する。
Impact: タグ数の増加に伴い日次ジョブのCPU使用量と実行時間が急増する。10,000タグでは約5,000万対を評価し、各対で投稿配列を走査するため、保存行数が少なくても処理負荷は抑えられない。
Verification (NOT RUN): 未実行。隔離環境で投稿との関連数を一定に保ちながらタグ数を段階的に増やし、実行時間と評価対数を測定する。共起が疎なデータでも二乗で増えるか確認する。
Proposed change (NOT IMPLEMENTED): 投稿IDからタグIDへの転置索引で共起するタグ対だけの積集合件数を集計し、投稿件数による正規化後に上位20件を選ぶ。ゼロ類似度行が必要なら最後に補完する。
※ 自動調査による候補です。現在のコードで再確認し、Issue 化・実装する場合は別途承認してください。
あのさ,趣旨わかってる?
Codex 調査完了(変更は一切行っていません)。新規提案: 0 件。
保存済みの提案があれば、既に投稿した提案本文を参照してください。
Codex 調査完了(変更は一切行っていません)。新規提案: 0 件。
保存済みの提案があれば、既に投稿した提案本文を参照してください。