Skip to content

LLMフィードバックループのためのバリデーション強化 - #2

Open
4kk11 wants to merge 2 commits into
mainfrom
claude/llm-validation-loop
Open

LLMフィードバックループのためのバリデーション強化#2
4kk11 wants to merge 2 commits into
mainfrom
claude/llm-validation-loop

Conversation

@4kk11

@4kk11 4kk11 commented Apr 5, 2026

Copy link
Copy Markdown
Owner

Background

  • LLMに直接archilang YAMLを書かせ、validate → エラーフィードバック → 再生成のループで品質を収束させる方針
  • 現状のauto-fixは2ルールのみ、fix-hintsはLLMが修正YAMLを生成するには情報不足
  • validate JSONにも空間的コンテキストがなく、LLMが配置関係を把握できない

Summary

  • auto-fix 2→7ルール拡充 (+5ルール)
    • OPENING_OVERLAP: 重なる開口部のoffsetを自動調整
    • EQUIPMENT_OVERLAP: 同一壁の設備をoffset連番で再配置
    • EQUIPMENT_OPENING_WALL_OVERLAP: 設備をドア/窓から離す
    • EQUIPMENT_DOOR_CLEARANCE_BLOCKED: クリアランスゾーン外に移動
    • EQUIPMENT_OUT_OF_BOUNDS: 部屋bounding rect内にクランプ
  • fix-hints LLM向け強化
    • UNREACHABLE_ROOM: BFS最短到達パス+不足ドア一覧を提示
    • SKIPPED_OPENING: 各部屋の隣接部屋+共有壁情報を提示
    • UNKNOWN_ROOM_REF: 有効room IDリストを提示
    • 全hintに構造化 details フィールド追加
  • validate JSON context ブロック追加
    • 各部屋の grid_rect + adjacent_to リスト
    • adjacency_graph(壁共有ベースの物理的隣接グラフ)
  • 計画ドキュメント: docs/plan-llm-validation-loop.md

claude added 2 commits April 5, 2026 00:22
Pivot from Graph-CAD graph-to-yaml approach to direct LLM YAML generation
with validate feedback loop. Plan covers 4 phases: auto-fix expansion
(2→7 rules), fix-hints enhancement for LLM, JSON output enrichment,
and skill integration.

https://claude.ai/code/session_017rppwCngGYq9Q2C9Hqypbm
auto-fix: expand from 2 to 7 rules
- OPENING_OVERLAP: adjust offset to eliminate overlap
- EQUIPMENT_OVERLAP: sequential offset placement
- EQUIPMENT_OPENING_WALL_OVERLAP: shift away from door/window
- EQUIPMENT_DOOR_CLEARANCE_BLOCKED: move outside clearance zone
- EQUIPMENT_OUT_OF_BOUNDS: clamp within room bounds

fix-hints: LLM-oriented enhancement
- UNREACHABLE_ROOM: BFS shortest path to entrance with missing door list
- SKIPPED_OPENING: list adjacent rooms with shared wall info
- UNKNOWN_ROOM_REF: include valid room IDs
- All hints include structured `details` for programmatic consumption

validate JSON: add context block
- rooms with grid_rect and adjacent_to list
- adjacency_graph (wall-based physical adjacency)

https://claude.ai/code/session_017rppwCngGYq9Q2C9Hqypbm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants