Skip to content

post: local-first AI 엔지니어링 1·2편 발행 — 노션 아티클 동기화·시리즈 등록 - #67

Merged
developjik merged 2 commits into
mainfrom
docs/local-first-series-1-2
Nov 23, 2026
Merged

developjik merged 2 commits into
mainfrom
docs/local-first-series-1-2

Conversation

@developjik

@developjik developjik commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

요약

노션에 이미 발행한 엔지니어링 아티클 1편·2편을 블로그 포스트로 옮겨 시리즈로 묶었습니다. 원고는 drafts/local-first-ai-engineering.md, work/article2.md 두 파일이고, 문장은 그대로 두고 블로그 포맷으로만 변환했습니다.

편 제목 파일
1 클라우드 서버 없이 브라우저가 로컬 Rust 데몬과 직접 대화하는 이유 — local-first AI 엔지니어링 원칙 3가지 src/content/posts/local-first-ai-engineering.mdx
2 왜 코드·스펙 에이전트에서 임베딩과 벡터DB를 버렸는가 — 재귀 CTE·suspect 컬럼·FTS5 trigram으로 바꾼 검색 설계 src/content/posts/why-not-embeddings.mdx

변환 내용

  • 노션 callout(4개) → 인용 블록(>) — 사이트에 callout 컴포넌트가 없어 .prose blockquote 스타일을 그대로 씁니다. 내부 <br /> 목록은 마크다운 목록/불릿으로 풀었습니다.
  • HTML 태그 정리 — <code> → 백틱, <b> → **, <i> → *. <callout>·<br /> 잔여 태그 없음.
  • 내부 링크 — 2편 머리의 노션 1편 링크(app.notion.com/p/Rust-...)를 /posts/local-first-ai-engineering으로 바꾸고, 1편 끝에 "다음 편" 링크를 추가했습니다. 두 글 모두 상단에 시리즈 안내 한 줄을 둡니다.
  • frontmatter — date: 2026-11-23, 기존 태그 어휘(AI·아키텍처·Rust·TypeScript·에이전트)만 사용, series: local-first-ai, seriesPart: 1/2. 본문 H1은 기존 123편과 동일하게 제목을 반복합니다.
  • 들어내지 않은 것 — 코드블록(SQL/Rust/TS/jsonc), 표, 수치, 링크는 원문 그대로입니다. 줄 단위 diff로 확인했고 제거된 줄은 노션 전용 요소(이탤릭 리드, callout 래퍼)뿐입니다.

확인이 필요한 판단 두 가지

  1. 시리즈 등록 (src/lib/posts.ts) — SERIES 레지스트리에 local-first-ai(로컬 우선 AI 엔지니어링, accent #a8557a)를 추가했습니다. 예정 편수를 3편(프론트엔드·UI 검증)으로 잡아 goal: 3이라 지금은 "연재 중 · 2/3"으로 표시되고, 2편으로 완결하려면 goal: 2로 바꾸면 됩니다. 이 항목이 없으면 프론트매터의 series는 무시되고 시리즈 페이지(/series/local-first-ai)·EP 배지·이전/다음 편 내비가 생기지 않습니다. 시리즈로 묶는 게 싫으면 이 항목과 두 글의 series/seriesPart만 빼면 됩니다.
  2. 제목에 부제 추가 — 노션 제목을 그대로 앞에 두고 — 부제만 붙였습니다(사이트 기존 관례). 노션과 글자 단위로 일치시키려면 부제를 지우면 됩니다.

검증

  • 이 작업 환경에는 Node.js가 없어 pnpm build를 돌릴 수 없었습니다(설치 시도 중 확인). 대신 @mdx-js/mdx + remark-gfm으로 두 파일을 컴파일 검증했고 둘 다 통과했습니다(기존 spec-studio-build-log.mdx도 같은 조건에서 통과). frontmatter YAML 파싱과 표 열 수(2열/3열)도 확인했습니다.
  • 따라서 실제 Astro 빌드 검증은 이 PR의 CI가 처음입니다. CI(pnpm build)가 초록이면 배포 준비 완료입니다.
  • README의 포스트 수(122→125편)와 시리즈 수(10→11종)도 갱신했습니다(직전 머지에서 이미 1편 어긋나 있던 것 포함).

머지는 직접 하시면 됩니다. CI 결과는 이 PR에서 확인하고, 실패하면 로그 보고 바로 고치겠습니다.

- 1편: 클라우드 서버 없이 브라우저가 로컬 Rust 데몬과 직접 대화하는 이유 (local-first-ai-engineering)
- 2편: 왜 코드·스펙 에이전트에서 임베딩과 벡터DB를 버렸는가 (why-not-embeddings)
- 노션 callout → 인용 블록, <code>/<b>/<i> → 마크다운, 1편↔2편 내부 링크(/posts/...), 없던 이미지·태그 정리
- series local-first-ai 레지스트리 등록(완결 2편), README 포스트·시리즈 수 갱신
@vercel

vercel Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
developjik-dev Ready Ready Preview Nov 23, 2026 11:59am UTC
developjik-nextra-blog Ready Ready Preview Nov 23, 2026 11:59am UTC

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T11:53:43.408489Z b9f1828 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@devin-ai-integration devin-ai-integration Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note

Newer findings are available below. Devin Review posted a newer report on this PR, in addition to the findings presented here.

Devin Review found 4 potential issues.

Devin Review

Comment on lines +312 to +324
```sql
-- trigram: the default unicode61 tokenizer folds a run
-- of CJK characters into ONE token, so a substring
-- query like 커밋 could never match 커밋 메시지.
CREATE VIRTUAL TABLE IF NOT EXISTS messages_fts USING fts5(
content,
session_id UNINDEXED,
message_id UNINDEXED,
tokenize = 'trigram'
);
```

이건 추측이 아니라 실제로 겪은 버그다. `unicode61`은 한글 연속 구간을 하나의 토큰으로 접는다. 그래서 "커밋"으로 "커밋 메시지를 남겼다"를 찾지 못한다. trigram 토크나이저는 문자 3개 창을 전부 색인해서 MATCH를 부분 문자열 검색으로 바꾼다.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 한국어 검색 예제의 결과가 설명과 반대임

SQLite에서 unicode61 MATCH는 커밋 메시지를 남겼다를 찾았지만, trigram MATCH는 2자인 커밋에 0건을 반환했습니다. 재색인했다에서 색인했을 찾는 예라면 3자 부분 검색과 2자 LIKE 폴백을 구분해 설명할 수 있습니다.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Comment on lines +102 to +106
| 질문 | 실제 호출 |
| --- | --- |
| A를 바꾸면 어디가 깨지는가 | `graph_walk start=[sym] edgeType=references direction=in` |
| B까지 어떻게 닿는가 | `graph_walk direction=out depth=n` |
| 이 둘 사이 전체 | `direction=both` |

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 최단 경로 예제가 노드와 거리만 반환함

앞의 CTE는 사이클을 막는 데 경로 문자열을 쓰지만, 최종 결과에는 노드 ID와 최소 깊이만 남깁니다. 호출 표에서 도달 가능 노드와 최단 경로를 구분하면 독자가 결과를 경로로 오해하지 않습니다.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

else score = 4; // 본문에만
```

FTS5 토크나이저는 `unicode61`에 `tokenchars '_.$#@-'`를 얹었다. `walkGraph`, `auth.client.ts`, `@developjik/sqlite-graph-mcp`가 한 토큰으로 남게 하려는 것이다. 기본 토크나이저로는 이 중 상당수가 쪼개져서 prefix 검색이 어긋난다.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 FTS5가 스코프 패키지 이름을 두 토큰으로 나눔

예시 설정의 tokenchars에는 /가 없습니다. SQLite에서 @developjik/sqlite-graph-mcp는 @developjik과 sqlite-graph-mcp로 색인됩니다.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Comment thread README.md Resolved

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 new potential issue.

Devin Review

Comment thread src/lib/posts.ts
Comment on lines +105 to +106
// 1·2편 발행, 3편(프론트엔드·UI 검증) 예정
goal: 3,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 PR 설명과 실제 시리즈 목표 편수가 다름

PR 설명의 목표는 2편이지만, 시리즈 상세 페이지는 3편을 기준으로 연재 상태를 표시합니다. README에 명시한 3편 계획을 PR 설명에도 반영하면 혼동을 줄일 수 있습니다.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

This branch was successfully deployed

1 active deployment
Preview – developjik-nextra-blog — 50d3af4a Deployed Nov 23, 2026 by vercel[bot]
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.

1 participant