Repository navigation
fix(a8n-attached): file identity を BigInt stat で比較し project 再読を最終観測に (#390) - #392
Merged
Merged
Conversation
…s last observation (#390)
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #390。PR #379 の CodeRabbit 再レビュー指摘への対応。
変更
hostPathsEqual:statSync(path, { bigint: true })で dev/ino を比較。file identifier がNumber.MAX_SAFE_INTEGERを超える filesystem での誤同一視(誤った project pin の受理)を防ぐ。zero-inode 判定は0n。revalidateTarget: project attestation を最終 census の後に移動。census は process identity のみを見るため自身の await 中の project 切替を検出できず、従来は project 読み取り後の census が最後の観測だった。現在は census → version → census → project read の順で、最後の観測が project identity になる。残余の project-read → dispatch ウィンドウは feat(scripting-adapters): host script 内での project identity 再確認(mutation dispatch の TOCTOU 狭隘化) #385 の host-side guard(withHostProjectGuard、mutation と同一 ExtendScript 評価内でapp.project.file.fsNameを再検査)が塞ぐ。検証
attached-session.test.mjs26/26 pass(fake/mock レベル)。新規 test: fixture のproject.info()と注入 probe の呼び出し順を記録し、revalidate 中のイベント列が[probe, census, project]ではなく[probe, probe, project](最終 census の後に project read)であることを assert。