GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix: hard link を L2 / index に載せず片名前書き込みの stale を塞ぐ (#416) by ymnao · Pull Request #601 · ymnao/scripta Conversation
Owner
概要hard link された md file を L2 ContentCache / InvertedIndex に載せないようにした。これで、片方の名前に書き込んだときにもう片方の名前の検索結果が stale になる問題を塞ぐ (#413 follow-up の Finding 2)。read に使った fd を fstat して Finding 1 (disabled workspace の L2) は #435 で解消済みのため、本 PR では扱わない。 関連 IssueCloses #416 移行 Stage
変更内容
動作確認
検証エビデンスリスク分類tier: medium — reasons なし (classify-risk.sh の出力は 実行した検証
レビュー指摘と対応
追跡先backlog delta: 起票 0 件 / 本 PR で close 1 件 (#416) / 現在 open 6 件
Draft 判定
🤖 Generated with Claude Code
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions- hard link は realpath でも O_NOFOLLOW でも alias と判別できず、app の in-place 書き込み (#100) で片方の名前だけが invalidate されるため、もう片方の posting / L2 が旧内容のまま valid に残っていた - 取り込み read の fd に fstat を 1 回足して nlink を取り、nlink === 1 のときだけ L2 admission / indexFile を許す (piggyback / idle fill / dark assert 再 index)。検査対象が読んだ object そのものなので path ベース stat の窓が無い - text は nlink によらず検索結果に出すので結果は落ちない。cache の無い純 scan 経路には fstat を足さない - 取り込み後に hard link が作られた場合の窓は受容として ADR-0011 / inverted-index / search.ts に記載 Co-Authored-By: Claude Opus 5.5 <[email protected]> - singleLink が立つのは ioPath 自身の O_NOFOLLOW fd read だけなので、冗長になった readFromVerifiedFd を削除し L2 admission を singleLink 1 変数にした - 分岐 3 の cache 有無による read helper の出し分けをやめ、常に nlink を取る形にした (fstat 1 回のために分岐とコメントを持たない) - readFileUtf8NoFollow を WithLinkCount への委譲にして open/close の骨格を 1 本にした - 残る窓の説明を search.ts の L2 admission コメントに集約し、他は参照にした。旧 helper 名のコメントと、根拠の不完全な「同期処理で stat できない」の記述を直した Co-Authored-By: Claude Opus 5.5 <[email protected]> …g 2) - ADR-0011 の「既 index の file には fstat が乗らない」は誤り (L2 miss なら分岐 3 で払う) なので「L2 hit には乗らない」に直し、hard link file が L2 / index の恩恵を受けない点を明記した - open-nofollow.ts のモジュールヘッダ「検索 hot path にコストは乗らない」を read 側の fstat 1 回と整合させた - dark assert の unreadable に nlink !== 1 も計上されることと、violation が立つ条件を doc に追記した - win32 probe に単一名 file の nlink 1 / hard link 両名前の nlink 2 を追加した。新規 test は win32 skip 配下にしかなく、NTFS で fix が効くかを何も測っていなかった Co-Authored-By: Claude Opus 5.5 <[email protected]> …ng 2) - 取り込み後に hard link が作られた残る窓は dark assert の再 index read が唯一検出できる経路だが、null を返すだけで posting が stale のまま残り、検索ごとに同じ violation が上がり続けていた - 検出した path に applyFsBatch の modify を流し、元の名前自身への event と同じ回収 (L2 evict + index invalidate) をする - レビュー 3 回 (simplify altitude / code-reviewer / simplify 2 周目) が同じ機構を指摘して収束したため、dev monitor 専用経路だが本 PR で直す Co-Authored-By: Claude Opus 5.5 <[email protected]> Uh oh!
There was an error while loading. Please reload this page.
ymnao
added a commit
that referenced
this pull request
* chore: v0.8.0 リリース準備 - package.json の version を 0.7.0 → 0.8.0 に上げる - CHANGELOG.md に v0.8.0 のエントリを追加する (#283 〜 #631、170 commit) - Electron 44 で macOS の最小要件が 13 (Ventura) に上がることを冒頭に明記する (同梱 Electron 44.5.1 の LSMinimumSystemVersion が 13.0) - リリース後、tap 側で Cask の depends_on macos を :ventura に上げてから autobump を手動実行する (docs/parity-checklist.md §11) Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs: v0.8.0 の CHANGELOG をコミットの実態に合わせて直す - hard link (#601) は検索結果の stale 対策で、ワークスペース外アクセスの封鎖では ないので Security から Fixed へ移す - 漏れていた #414 / #443 / #623 と CI actions の更新を足す - #461 の 3 経路 (別タブのファイルへの書き込み・rename 前パスの復活・ ウィンドウを閉じたときの保存漏れ) を分けて書く - #444 を wikilink がすべて未解決になる症状として、#622 を Fixed として書き直す - electron-builder の完全一致固定に出所 (#283) と理由を添える - [0.8.0] / [0.7.0] の参照リンク定義を足し、README の Electron 版を v44 に直す Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs: v0.8.0 の CHANGELOG の #623 / #443 の記述を実測条件と実際の UI に合わせる - #623 の「1 秒以上」に実測条件 (キャッシュ 1 万件・イベント 1000 件) を添え、 コミットに無い git checkout の例を外す - #443 の「すべて表示した」は実在しない UI 文言なので、打ち切りの通知が 出ないという実挙動で書く Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersNo reviewsUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. 413 follow-up: alias 系 staleness の残存窓 (disabled workspace の L2 / hard link)Uh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. | ||||||||||||||||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |