9148c358d0
Topic_Agent/Topic_Blog/Topics/Topics_Biz/Topics_Meeting/Topics_Rag의 마크다운 지식 문서를 Topic_General/Topic_Programming/Topic_Graphic/Topic_Business 4개 카테고리로 재분류. - 중복 제거: frontmatter의 status:duplicate/merged + duplicate_of/redirect_to 필드로 자기 자신을 중복으로 선언한 리다이렉트 stub 1032개 제거, 완전 동일 내용 파일 472개 제거, 동일 파일명·다른 내용 충돌 시 더 큰(완전한) 버전만 유지(162개 제거) — 총 1639개 중복 제거. - 분류: 폴더 단위로 명확한 항목(AI_and_ML/Coding/Architecture 등 → Programming, Comfyui/Visual_Effects → Graphic, Topics_Biz/Topics_Meeting/사업 등 → Business, Poetic_Blog_Writing/창의성/Game_Design 등 → General)은 폴더 우선순위로, 나머지 혼재 폴더(Topic_Agent/Topic_Blog/Topics 루트/Thinking & Reasoning/Other/UI_UX_Assets)는 title/tags 키워드 스코어링으로 파일 단위 분류(불명확한 경우 General로 폴백). 원본 폴더명은 "From_*" 서브폴더로 보존해 추적 가능성 유지. - 최종 배치: Programming 2784 / General 1608 / Graphic 285 / Business 249 = 4926개 문서. - 에이전트 운영 상태(.astra/.agent/.obsidian/sessions/memory/_company/docs/lessons/_shared/src)는 지식 콘텐츠가 아니므로 재분류 대상에서 제외하고 원위치 유지. - Topics/Topic_email(상위 보호 폴더 Topic_email과 파일명 100% 중복) 삭제 — 보호 폴더 자체는 미변경. - 완전히 비게 된 Topic_Agent/Topic_Blog/Topics_Biz/Topics_Rag 폴더 제거.
3.8 KiB
3.8 KiB
id, title, category, status, canonical_id, aliases, duplicate_of, source_trust_level, confidence_score, tags, raw_sources, last_reinforced, github_commit, inferred_by, tech_stack
| id | title | category | status | canonical_id | aliases | duplicate_of | source_trust_level | confidence_score | tags | raw_sources | last_reinforced | github_commit | inferred_by | tech_stack | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| wiki-2026-0508-connect-ai-architecture | Connect AI Architecture | 10_Wiki/Topics | needs_review | self |
|
none | A | 1.0 |
|
2026-04-29 | pending | Claude Opus 4.7 (auto-normalize 2026-05-08) |
|
Connect AI: Brain-GitHub 동기화 아키텍처
📌 한 줄 통찰 (The Karpathy Summary)
"지식의 파편은 기록하는 순간 흐르기 시작해야 하며, 로컬의 정교함과 클라우드의 영속성이 만나는 지점에 진정한 '제2의 뇌'가 존재한다." — 로컬 AI 워크스페이스와 GitHub 저장소를 실시간으로 동기화하여 지식의 유실을 방지하고 연속성을 확보하는 P-Reinforce의 핵심 아키텍처 레퍼런스.
📖 구조화된 지식 (Synthesized Content)
- 핵심 메커니즘: _safeGitAutoSync
- 트리거: Brain Pack 주입 완료 또는 P-Reinforce 구조화 완료 시 자동 호출.
- 동작 방식: 로컬의 변경사항을 감지하여
git add->commit->pull (ours strategy)->push과정을 일괄 처리. - 특이사항: 충돌 발생 시 로컬 지식을 우선시(
-X ours)하여 마스터의 최신 의도를 보호함.
- 설정 및 구성 (Configuration)
localBrainPath: 로컬 지식 폴더의 절대 경로 (기본값:~/.connect-ai-brain).secondBrainRepo: 클라우드 백업을 위한 GitHub 저장소 URL.
- 데이터 흐름 (Pipeline)
- Ingest: 웹/API를 통해
00_Raw/폴더에 데이터 유입. - Process: UI 피드백(매트릭스 애니메이션)과 함께 지식 저장.
- Sync: 백그라운드에서 GitHub 원격 저장소와 즉각적인 동기화 수행.
- Ingest: 웹/API를 통해
⚠️ 모순 및 업데이트 (Contradictions & Updates)
- 플랫폼 제약: 기존 레퍼런스는 Mac 경로(
/Users/jay/...)를 기준으로 작성되었으나, Antigravity 프로젝트는 이를 Windows 환경(E:/Wiki/...)에 맞게 동적으로 처리하도록 수정함. - 보안 정책: Zero Cloud API 원칙에 따라 모든 연산은 로컬에서 수행되지만, GitHub 동기화 시 개인 인증(Credential) 관리가 보안의 핵심 변수로 작용함.
🔗 지식 연결 (Graph)
- Raw Source: E:/Wiki/Wonseok_AI_original/ARCHITECTURE.md
🤖 LLM 활용
언제: 매 ConnectAI brain-GitHub sync 의 reference. 매 P-Reinforce 의 architecture review. 언제 X: 매 다른 project (project-specific).
💻 패턴
Git auto-sync (safeGitAutoSync)
#!/bin/bash
# 매 P-Reinforce / Brain Pack 후 자동 호출
cd "$LOCAL_BRAIN_PATH"
git add -A
git commit -m "auto: brain pack injection $(date +%Y-%m-%dT%H:%M)" --allow-empty
git pull --rebase -X ours origin main || git pull -X ours origin main
git push origin main
Conflict resolution policy
- Local 의 priority (ours strategy).
- 매 master 의 latest intent 의 protect.
- 매 manual review 의 ambiguous.
Pipeline (3-stage)
1. Ingest: 매 web / API → 00_Raw/.
2. Process: 매 UI feedback + 매 P-Reinforce skill.
3. Sync: 매 background GitHub push.
🤔 결정 기준
| 상황 | Policy |
|---|---|
| Local edit | Push to remote with ours |
| Conflict | Local wins (P-Reinforce intent) |
| Backup interval | Real-time on event |
| Recovery | Git history + clone |
❌ 안티패턴
- No conflict policy: 매 silent overwrite.
- No event trigger (manual only): 매 sync drift.
- No dry-run: 매 destructive.
🕓 변경 이력
| 날짜 | 변경 |
|---|---|
| 2026-05-08 | Phase 1 |
| 2026-05-10 | Manual cleanup — TODO 의 fill — sync mechanism + pipeline + 매 git code |