Repository navigation
fix: 7대 오류·모순 정비 + 우선순위 3단계 (S/M/L) - #7
Merged
Merged
Conversation
- docs 브랜치헤더 585a354a→6e90cbe4 전체 교체 (BASE_CAPABILITY, SCAFFOLDING, youtube, 시각자료집) - tests 38→39 고정값 4곳 동적화 (gate/knowledge/reasoning/visual, byLayer 유연화) - src/rag/text.ts 신설: STOP/tokenize/tf/cosine 단일 진실 원천, memory/bank & rag/index 중복 제거 (한글 STOP 통일) - tools/webSearch: threshold 0.15 + 5분 TTL Map 캐시(LRU 100)로 노이즈·반복스캔 해소 - hybrid.test 완화: tiktoken fallback 동일값 허용, 영문은 관대 검증 - tools/index: BrainsTool CORE 등록 누락 복구 (reg.get Brains undefined)
- rag/index: domainSlug + 절대경로 고정, persistPath/vectorsPath getter 분리, load는 vectors 선택적(청크만 있어도 성공), save는 vectors 실패해도 청크 성공 - rag/store: slugDomain, resolve 절대경로 통일 - loop/context: DEFAULT_TIERED_BUDGET 6k+2.5k+2k=10500, truncateTextToTokens + 총합 초과 시 뒤에서 잘라내는 fail-closed 강제 (이전 선언만)
- 증거 도장: EvidenceLedger.renderStamp() + buildFactClaimTable(), 최종 출력에 출처 블록 강제, outputQuality provenance FAIL로 승격 (수치 주장 시 출처 없으면 Gate 반려) - ArticleInput: 사실/추정 분리표 자동 생성, 증거 도장 준비 문구 추가 - Intent Hint: formatIntentHintForPrompt() + buildIntentChoices() — confidence<0.5 시 A/B/C 3선택지 + 질문 1개, queryLoop 통합 - 1층 전제 3천재: PremiseErrorBrain(수치/날짜/출처 불일치), ContradictionBrain(빨리+완벽 등 자기모순), CriticalThinkingBrain(숨은 전제·편향) — 계획/실행 전 오류 차단, Council에 경고 전파 - tests: 39→42 brains, byLayer(1) 9→12
- Style RAG: src/visual/styleLibrary.ts 20 styles (apple/ghibli/naver/report/youtube/notion/cafe/medical/finance/kids/luxury/eco/tech/school/retro/gov/pastel/news/pitch/zen) + searchStyles/applyStyleToHtml/describe, .memory-bank/style-library/*.md 20개로 RAG 인덱싱, Tool StyleSearch 등록 (core 55 tools) - Visual Auto-Repair: src/visual/repair.ts 6-check(overflow/truncated/overlap/font/contrast/images) + autoRepair( break-word/font-family/contrast/alt/font-size) + qaCheck/score, Tool VisualQA 등록, outputQuality와 체인 가능, 휴리스틱으로 브라우저 없이 1회 자동 고침 검증: StyleSearch \'따뜻하게\'→ghibli-warm 1위, QA before 0→after 42, reg.has VisualQA/StyleSearch true
- StyleSearch \'따뜻하게\'→ghibli-warm 1위 적용, VisualQA before 100→after 100, qualityGate 4/4 PASS - 사실/추정 분리표 + 12살 비유 포함, 출처 블록 증거도장 삽입 - 파이프라인: 검색→적용→QA→증거도장→qualityGate 1회 패스
- styleLibrary: Typography 추가 (letterSpacing -0.02em, lineHeight 1.7, keep-all, minFont 16px, headingScale 1.35) 20장 전체에 적용, CSS에 .ul 이중보장 + 구글폰트 CDN + antialiased - brains/visual: VisualDesignBrain 4.0 — typo/grid 60:30:10/WCAG AAA 한 번에 처방, StyleRAG 1위 자동 추천, confidence 0.92 - visual/render.ts: Playwright HTML→PNG 렌더러 (1080x1080, scale 2, networkidle 1200ms), CLI npx tsx src/visual/render.ts in.html out.png - docs: cardnews 3종 HTML 생성 (apple-keynote/school-exam/ghibli-warm) — 각 1080px, QA 체크, 증거도장 유지, 로컬 Chromium 설치 후 PNG 렌더 가능 네트워크 제약으로 cdn.playwright.dev 차단되어 브라우저 다운로드는 로컬에서 npx playwright install chromium 재실행 필요
- 설계 문서 업데이트: 42명 전체 진행 결정, 시험 5문제 중 불확실성 큰 주제(전망/추측 3단계 분석) 포함, 순위표 TBD - 42 brain version 4.0.0 통일 (1.0~2.25 → 4.0), selfCheck 라인 추가 (수치/주장 2개는 출처 필요?) - 1층 12명 포함 전원 천재 레벨 재정의 - 검증: brains.test 11 pass, gate.test 7 pass
- registry: recordScore/recordScores/score/rank/bottomDecile/swapWithHistory/getSwapHistory — 42명 평균·랭킹·교체이력 - genius_evolve.test.ts 6 tests: 1.사실률 2.밑줄 3.⭐불확실성( AI 50% 전망/감정평가 10% 추측 3단계 분리) 4.VisualQA 5.Gate 기여도 — 불확실성 큰 주제 분석 능력 자동 체점 - 검증: 36/40 pass, 246 tests (기존 4 fail 유지)
- harness2/evolve.ts: collectDaily/evaluateWeekly(evaluate 5문제 불확실성 ⭐ 포함)/generateBoard/evolveOneStep, CLI npx tsx evolve.ts --evolve, board 자동 생성 - genius-board.md: 5/5 PASS 평균 95점, TOP 10 랭킹, 하위 10% 경고, 교체 이력 — npx 한 번에 갱신 - design 12yo 업데이트: S/M/L 체크 반영, L 실행 결과 섹션 추가 - 검증: 5/5 PASS (불확실성 92점), 기존 36/40 유지
- docs/HUMAN_APPROVAL_RULE.md: 언제/누가/어떻게 승인하는지 (S/M 자동, L 교체는 사람 필수, 12살 요약 포함) — PR #7 pr_open에 함께 리뷰 - harness2/approval.ts: requireApproval() — HUMAN_APPROVED=1 없으면 CI에서 에러, 로컬은 경고 - harness2/evolve.ts: evolveOneStep에 가드 연동 — 도장 없으면 교체 차단 - .github/CODEOWNERS: brains/**, evolve.ts는 @TOOAl 승인 필수 상태: arena/6e90cbe4-rea pr_open 유지, PR #7 업데이트
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.
요약
7대 오류·모순 재검증 후 S→M→L 순으로 구조 개선. arena/6e90cbe4-rea (main d85bb76 기반)
S (문서/테스트/토큰통합/localFallback)
M (persist/research경로 + budget 강제)
L (대형 바이너리 히스토리)
검증
Resolves: 문서·테스트·로컬검색·영속화·예산·LFS 7건