Skip to content

テキスト溢れ時の LLM 補正ルールを追加する #542

@kkeito-investigate

Description

@kkeito-investigate

背景/課題

テキスト溢れが起きた際、内容を枠内に収める自動補正が必要。

目的

LLM で本文・サブタイトル・ノートを枠内に収め、失敗時は本文を維持し警告を記録する。

スコープ

  • MappingStep の text_hint(max_lines / max_chars / max_chars_per_line)
  • body / subtitle / note の補正と再試行(上限 3 回)
  • ai_patch / warnings / capacity_warnings の記録

完了条件

  • 制約超過時に LLM 補正が実行される
  • 補正失敗時は本文を維持し、警告が残る
  • 単体テストで補正と失敗パターンを確認する

除外

  • 既存テンプレートやレイアウト定義の変更
  • LLM クライアント自体の実装変更

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions