sensor: 上流CodeGraph 49c11fc..7639c78(368コミット)を取り込む(0.71.0) - #3
Merged
Merged
Conversation
scripts/upstream-sync.mjs による3-way merge。auto-merge 139 / 新規 490 / 衝突70を解決(改名だけの衝突は自動、ほかは手で決着)。上流の新しい行へ Latticeの命名を当てる改名を後から一括で適用した。 主な決着(sensor/UPSTREAM.json conflict_policy に理由つきで記録): - DB migration: 上流の9-11を13-15へ。CURRENT_SCHEMA_VERSION 15。 - EXTRACTION_VERSION 28(両側より上)。kernel EDGE_KINDS は invokes, navigates。 - 状態置き場は .lattice/sensor 固定。上流のWSL別置き場は採らない。 - callers/callees は上流の定義別実装にLatticeの契約(--exact-path・ exactResolution・edgeKind/valueRef/valueWrite)を足す。root adapterは did-you-mean付きの not found を「記号無し」と読む。 - 合成段階の一時表へLatticeの edges.confidence/resolved_by を通す。 - C/C++の呼び出し位置の識別子を値参照にしない(TSとkernel)。 - ui/ はソースとして取り込み、viewerのbuild・配布はしない。 残り: sensor 5159件中5件失敗(explore予算2ファイル・ui-steps順序)。 synced_at はまだ進めない(--mark-synced 前)。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
残っていた失敗を直し、root・sensorの全検査を通した。 - 未解決参照の読み出しを挿入順に固定する(ORDER BYなしで索引の選択に よって順が変わり、手順表示の同位置の参照が入れ替わっていた)。 - explore予算の試験2件を、Latticeの差(値参照の辺、ツール名の長さ)に 合わせて較正する。配られる本文は上流と同一であることを確かめた。 - 上流の新しいsensor文書へLatticeの命名を当て、上流名を残さない契約を保つ。 名前に上流名を含む文書はpath_mapで写す。 - 上流追従後の一括改名を scripts/upstream-rename.mjs として置く。 - CHANGELOG、版 0.71.0。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- gitの一覧(追跡・未追跡)とgit statusの変更検知で .lattice/ を除外する。 FS走査と監視は既に isLatticeStateDir で除外していたが、git経由の一覧は runが置くscriptを索引し、上流の新しい変更検知で「追加」と数えた。実行中の 再compileが索引を古いと判定し、managed runのfindingをSTALE_FINDINGで拒んだ (PR #3のmacOS CI)。回帰テスト lattice-state-dir-scope を足す。 - viewerのtrailの置き場を常に / 区切りにする(Windowsで \ が混じり拒否)。 - 工場のWindows runnerはPowerShell 7のみ: watcher試験は pwsh を使う。 単体bundleの試験は配布しないので実行対象から外す。1.4MBを索引する試験に30秒。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
工場のWindows runnerで、書いたばかりの1.4MBの.jsを最初に読むだけで34秒かかる (statSync 0ms、初回readFileSync 34,152ms、2回目1ms)。製品の処理ではない。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
概要
ADR 0155(上流追従は全量3-way merge)に沿って、前回の同期点(2026-08-03、49c11fc)から上流main 7639c78までの368コミット(fix 191 / feat 56 / perf 3)を取り込む。週次の
upstream checkは8月から失敗し続けていた。取り込み
scripts/upstream-sync.mjs: auto-merge 139、新規 490、衝突 70(すべて解決)、記録済み方針 5。scripts/upstream-rename.mjsとして追加)。sensor/UPSTREAM.jsonの conflict_policy / skip / notes / path_map に記録した。synced_atを 7639c78 へ進めた。Latticeの契約として守ったもの
.lattice/sensorに固定する。上流のWSL用の別置き場は採らない。callers/callees: 上流の定義別の実装を採り、Latticeの--exact-path・exactResolution・edgeKind/valueRef/valueWriteを足した。root のsensor-adapterは、上流の「did you mean」付きの not found を「記号無し」と読む。番号の衝突
CURRENT_SCHEMA_VERSIONは 15。EXTRACTION_VERSIONは 28(両側より上)。既存の索引は開いた時点で段階的に更新され、手動の再索引は要らない。EDGE_KINDSはinvokes,navigatesの順(src/types.tsと一致)。ABIは3のまま。取り込みの途中で見つけて直したもの
edges.confidence/resolved_byを持たず、SQLの列数不一致で失敗していた。検証
npm run ci全体が成功した。hooks-cli.test.mjsは、開発環境のCODEX_HOMEを外して回した(既知のテスト隔離漏れ、main でも再現する)。🤖 Generated with Claude Code