Rebuild run-001 from clean source mdx

This commit is contained in:
2026-04-03 12:08:13 +09:00
parent adef735228
commit 74197864ca
43 changed files with 1107 additions and 2687 deletions

View File

@@ -89,11 +89,10 @@ def validate_outputs(generated: dict, measurement: dict) -> tuple[str, list[str]
failures.append("Verify-DesignStructure")
actions.append("핵심 관계를 설명하는 시각적 관계도 블록을 본문 중심 구조로 유지한다.")
narrative_markers = ["DX와 BIM의 혼용 문제", "DX의 정의와 위치", "BIM과 핵심기술의 관계", "DX와 BIM 비교 핵심 포인트"]
if sum(1 for marker in narrative_markers if marker in visible_text) < 3:
narrative_markers = ["\uc6a9\uc5b4\uc758 \ud63c\uc6a9", "\ud63c\uc6a9 \ub300\ud45c \uc0ac\ub840", "\uc6a9\uc5b4 \uc815\uc758", "\uc6a9\uc5b4\uac04 \uc0c1\ud638\uad00\uacc4", "DX\uc640 BIM\uc758 \uad6c\ubd84", "\ud575\uc2ec \uc694\uc57d"]
if sum(1 for marker in narrative_markers if marker in visible_text) < 4:
failures.append("Verify-DesignNarrative")
actions.append("원문 주요 소제목과 읽기 순서가 유지되도록 본문 서사를 재구성한다.")
actions.append("\uc6d0\ubb38 \uc8fc\uc694 \uc18c\uc81c\ubaa9(\uc6a9\uc5b4\uc758 \ud63c\uc6a9, \uc0ac\ub840, \uc815\uc758, \uc0c1\ud638\uad00\uacc4, \ube44\uad50, \uc694\uc57d)\uacfc \uc77d\uae30 \uc21c\uc11c\uac00 \uac00\uc2dc \ud14d\uc2a4\ud2b8\uc5d0 \uc720\uc9c0\ub418\ub3c4\ub85d \uc7ac\uad6c\uc131\ud55c\ub2e4.")
if failures:
return "revise", sorted(set(failures)), list(dict.fromkeys(actions))
return "pass", [], []
@@ -179,10 +178,10 @@ def summarize_markdown_lines(text: str, limit: int = 8) -> list[str]:
def build_step_comment(title: str, artifact_path: Path, lines: list[str], verdict: str = "pass") -> str:
bullet_text = "\n".join(f"- {line}" for line in lines) if lines else "- ??? ???."
bullet_text = "\n".join(f"- {line}" for line in lines) if lines else "- ??? ??? ????."
return f"""?? ??
- {title} ???? ???? ??? ???.
- ??? ??: `{artifact_path.as_posix()}`
- {title} ?? ???? ?? ???? ?? run ???? ????.
- ?? ??: `{artifact_path.as_posix()}`
?? ??
{bullet_text}
@@ -383,6 +382,7 @@ def main() -> None:
"--input", str(input_file),
"--stage1a", str(stage1a),
"--stage1b", str(stage1b),
"--base-path", str(repo_root),
"--output-dir", str(output_dir),
]
completed = subprocess.run(cmd, cwd=str(DESIGN_AGENT_ROOT), capture_output=True, text=True)
@@ -457,7 +457,7 @@ KPI / 판정 결과
if 'width:100%; height:28px' in final_html_text:
status = "revise"
failures = sorted(set(failures + ["Verify-RenderedSidebarBadge"]))
actions = list(dict.fromkeys(actions + ["?? ? ? ?? ???? ??? ???? ??? ?? ?? sidebar ?? ??? ? ???? grid/fixed-width ???? ?????."]))
actions = list(dict.fromkeys(actions + ["???? ??? ????? ??? ??? ????? ?? grid/fixed-width ??? ?? ????."]))
retry_plan = None
if status != "pass" and iteration < args.max_iterations: