Skip to content

追加分析を根拠付き論点へ再設計し、PDF CMapを同梱 - #29

Merged
ivgtr merged 2 commits into
mainfrom
fix/additional-analysis-issues-cmaps
Oct 7, 2026
Merged

ivgtr merged 2 commits into
mainfrom
fix/additional-analysis-issues-cmaps

Conversation

@ivgtr

@ivgtr ivgtr commented Oct 6, 2026 •

Copy link
Copy Markdown
Owner

変更内容

  • 固定の「解釈・短期・中期・長期」を、結論/根拠/条件付きの読み/限界/次の確認点を持つ重要論点へ変更。通常2〜4件、根拠不足なら少数または0件
  • PDFで再照合した確定事実と、点検済みの会社説明・観測指標を入力へ渡す。表示根拠・ページ・差額/残額/進捗/CF合計はコードで構成し、推論と区別
  • 期間・主体・範囲・単位・条件を揃え、EPS、上限・下限、概算、曖昧な組を計算から除外。保存根拠の差替えと、閉じる/同じ結果の再表示での遅い応答・保存読込の上書きを防止
  • 論点ごとにページ引用をまとめ、ID詳細は展開式へ。入力不足・未整理原文とAPIの使用量/打切りを区別。1要求・60秒・最大8,192出力token
  • PDF.js 5.4.394のCMap 168個+LICENSEをbuild/watch/ZIPへ同梱。拡張内部URLを使用し、追加ホスト権限・CSP緩和・CMapの外部公開は不要
  • 指紋v100/追加分析v3へ更新し、旧抽出・旧形式のキャッシュを再利用しない

検証

  • 全1,221 tests/39 files、type-check、lint、production build成功
  • 公開HEAD 2b486d0のチェック/workflow実行は0件。PRは競合なし(Ready for review)
  • 独立レビューの数量境界・原文別名・保存競合の指摘を修正し、再レビュー済み
  • 指定されたサーラPDFの実抽出+固定応答で、残額−368百万円、営業+投資CF−11,155百万円、前年営業CF差−9,743百万円を確認
  • 3論点の保存再検証とHTMLを確認。根拠はp1/p5/p6/p11/p12、重複を除いたページリンク5個
  • CMapは同版パッケージとバイト一致。watch再build、最終ZIP内168資産+LICENSEを確認。ZIP内CMapで同じ16ページPDFを再抽出し警告0
  • 最終ローカルZIP SHA-256: d4d129e0baa7781b4d28b2639c42a587f634f67f35adf237ea347da91bd959e1

レビュー対応(2b486d0)

  • Vitest内のVite起動を実buildStartの検査へ置換。全資産のバイト一致・監視対象・再出力を維持し、既定timeoutは変更しない
  • 通常build後の成果物検査を追加し、既存releaseのbuild直後にも実行。新規CIジョブや二重buildは追加しない
  • 全1,221 tests/39 files、type-check、lint、build、168 CMaps+LICENSEの成果物照合が成功。破損/欠落の拒否も確認
  • 指摘への返信後に再レビューを依頼し、Codexは同HEADに重大な指摘なし
  • 今回はテスト・成果物検査・文書・既存release検査への接続のみ変更。上記の実PDF/watch/ZIP確認は初回e470c1e9時の記録

検証境界

実API呼出しは0。固定応答は入力・計算・保存・表示の契約確認であり、実モデルの論点選択品質を検証したものではありません。ID照合は推論の意味の正しさを保証しません。

実Chromeの描画・拡張通信・フォーカスは未検証です。CMapで復元されたのはp3〜16の共通ヘッダーで、追加分析が薄かった全原因とは扱いません。通期予想と累計実績の差は会社の最終四半期予想ではありません。

再現手順と責務別の検証範囲: docs/additional-analysis.md

レビュー可能な状態です。バージョン番号の変更、マージ、リリースは行っていません。

@ivgtr
ivgtr marked this pull request as ready for review October 6, 2026 19:16
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-07T00:07:00.713348Z 2b486d0 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e470c1e9c0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/offscreen/pdf-cmaps.test.ts Resolved

ivgtr commented Oct 7, 2026

Copy link
Copy Markdown
Owner Author

@codex review

2b486d0 の再レビューをお願いします。指摘のCMapテストを実buildStartの高速な契約検査へ変更し、実ビルド成果物の照合を通常build後と既存releaseのZIP作成前へ分離しました。監視対象・再出力・全168 CMaps+LICENSEのバイト一致は維持しています。全1,221 tests、type-check、lint、buildと成果物検査が成功しています。

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: 2b486d0549

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ivgtr
ivgtr merged commit ef8e5a2 into main Oct 7, 2026
@ivgtr
ivgtr deleted the fix/additional-analysis-issues-cmaps branch October 7, 2026 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant