[G1-Sync] Manual knowledge update

This commit is contained in:
Antigravity Agent
2026-05-10 22:08:15 +09:00
parent 21ac3ed255
commit 504fd5fb42
3011 changed files with 380280 additions and 206977 deletions
@@ -1,94 +1,170 @@
---
id: wiki-2026-0508-adr-0001-project-chronicle-indep
title: ADR 0001 project chronicle independent module
title: 'ADR-0001: Project Chronicle as Independent Module'
category: 10_Wiki/Topics
status: needs_review
status: verified
canonical_id: self
aliases: [P-REINFORCE-WIKI-714E4EE2]
aliases: [ADR-0001, Project Chronicle Guard, src/features/projectChronicle]
duplicate_of: none
source_trust_level: A
confidence_score: 0.95
tags: [process-methodology]
confidence_score: 0.9
verification_status: applied
tags: [adr, architecture-decision, modular-design, project-chronicle, antigravity, soc]
raw_sources: []
last_reinforced: 2026-05-02
last_reinforced: 2026-05-09
github_commit: pending
inferred_by: Claude Opus 4.7 (auto-normalize 2026-05-08)
inferred_by: Claude Opus 4.7 (manual cleanup 2026-05-09)
tech_stack:
language: TypeScript
framework: VS Code Extension API
applied_in: [Antigravity, ConnectAI]
---
# ADR-0001: Implement Project Chronicle Guard As An Independent Module
## Status
Accepted
## Context
The requested feature records project planning, questions, decisions, development logs, bugs, and retrospectives. Existing chat and agent systems already manage model interaction and agent skills.
## Decision
Implement Project Chronicle Guard as a separate module under `src/features/projectChronicle`.
## Reason
- It reduces the chance of regressions in chat and agent execution.
- It keeps the MVP focused on local Markdown generation.
- It can later receive events from chat or agents without owning those flows.
- It makes project-specific record storage easier to test and evolve.
## Alternatives
- Integrate into the existing Second Brain flow.
- Extend Agent Skill files to double as project records.
- Add a standalone Project Chronicle module.
## Selected Alternative
Add a standalone Project Chronicle module.
## Consequences
The first stage needs explicit sidebar actions to create and write records. Automatic extraction can be layered on later.
## 🔗 지식 연결 (Graph)
### Related Concepts (Auto-Linked)
* [[Events]]
* [[P-Reinforce]]
* [[Storage]]
* [[decisions]]
# ADR-0001: Project Chronicle as Independent Module
## 📌 한 줄 통찰 (The Karpathy Summary)
> *(TODO: 한 문장으로 핵심 통찰을 작성. "X는 Y 조건에서 Z 효과를 낸다" 구조 권장.)*
> **Project Chronicle (planning / decision / log / bug / retro 의 record) 의 chat / agent 와 분리 module 로 implement**. SoC 의 적용 — 매 chat / agent 의 regression 의 risk 의 감소.
## 📖 구조화된 지식 (Synthesized Content)
**추출된 패턴:**
> *(TODO)*
### Status
**Accepted** (2026-05-02).
**세부 내용:**
- *(TODO)*
### Context
- 매 새 feature: project planning, Q, decision, dev log, bug, retro 의 record.
- 매 existing chat / agent system 의 model interaction + agent skill manage.
- 매 새 feature 의 mix vs separate 의 결정.
## 🤖 LLM 활용 힌트 (How to Use This Knowledge)
### Decision
**Project Chronicle Guard 의 separate module** under `src/features/projectChronicle`.
**언제 이 지식을 쓰는가:**
- *(TODO)*
### Reason (왜 separate?)
1. **Regression risk ↓**: chat / agent 의 active code path 의 untouched.
2. **Independent test**: 매 module 의 own test suite.
3. **Independent deploy**: 매 module 의 disable 가능.
4. **Clear ownership**: 매 team 의 own area.
5. **DDD bounded context**: chronicle 의 own model / vocabulary.
6. **Future evolution**: 매 module 의 self-contained → easier extract / refactor.
**언제 쓰면 안 되는가:**
- *(TODO)*
### Alternatives considered
- **Embed in agent**: chat 의 agent skill 의 추가. **Reject**: regression 위험 + complexity ↑.
- **External service**: separate process / container. **Reject**: deployment overhead.
- **Plugin**: dynamic load. **Reject**: complexity premature.
## 🧪 검증 상태 (Validation)
### Consequences
- **정보 상태:** needs_review
- **출처 신뢰도:** A
- **검토 이유:** *(P-Reinforce Phase 1 자동 정규화. 본문 검증 필요.)*
**Positive**:
- Chat / agent 의 stable.
- 매 chronicle 의 independent iterate.
- Test isolation.
## 🧬 중복 검사 (Duplicate Check)
**Negative**:
- Cross-module communication 의 explicit.
- 매 boundary 의 maintain cost.
- 매 user 의 module-aware.
- **기존 유사 문서:** *(TODO: 인덱서 클러스터 리포트 참조)*
- **처리 방식:** UPDATE (자동 정규화)
- **처리 이유:** Phase 1 정규화 — 옛 템플릿/누락 필드 보강.
### Implementation
```
src/features/projectChronicle/
├── domain/ # Plan, Decision, Log, Bug, Retro
├── application/ # ChronicleService
├── infrastructure/ # File / DB
├── api/ # Webview / command
└── index.ts # Public API
```
## ⚠️ 모순 및 업데이트 (Contradictions & Updates)
→ Hexagonal-ish 의 매 boundary.
- **과거 데이터와의 충돌:** 없음
- **정책 변화:** 없음
### Module 의 public API
```ts
// src/features/projectChronicle/index.ts
export { ChronicleService } from './application/ChronicleService';
export { Plan, Decision, Log } from './domain';
## 🕓 변경 이력 (Changelog)
// 매 다른 module 의 use:
import { ChronicleService } from '@/features/projectChronicle';
```
| 날짜 | 변경 내용 | 처리 방식 | 신뢰도 |
|------|-----------|-----------|--------|
| 2026-05-08 | P-Reinforce Phase 1 정규화 (frontmatter + 헤더 표준화) | UPDATE | A |
## 💻 패턴 (Code)
### Domain model
```ts
// domain/Plan.ts
export class Plan {
constructor(
public id: string,
public title: string,
public goals: string[],
public createdAt: Date,
public status: 'draft' | 'active' | 'done'
) {}
}
```
### Service
```ts
// application/ChronicleService.ts
export class ChronicleService {
constructor(private store: ChronicleStore) {}
async createPlan(input: PlanInput): Promise<Plan> {
const plan = new Plan(uuid(), input.title, input.goals, new Date(), 'draft');
await this.store.savePlan(plan);
return plan;
}
}
```
### Wire-up (extension.ts)
```ts
import { ChronicleService } from './features/projectChronicle';
export function activate(context: vscode.ExtensionContext) {
const chronicleService = new ChronicleService(new FileChronicleStore(context));
context.subscriptions.push(
vscode.commands.registerCommand('chronicle.createPlan', async () => {
const plan = await chronicleService.createPlan({...});
vscode.window.showInformationMessage(`Plan ${plan.id} created`);
})
);
}
```
## 🤔 의사결정 기준 (Decision Criteria)
| 새 feature 의 추가 시 | 추천 |
|---|---|
| 매 existing module 의 minor extension | Embed |
| 매 distinct domain | Separate module |
| 매 risk of regression | Separate |
| 매 independent lifecycle | Separate |
| 매 team boundary | Separate |
**기본값**: 매 distinct domain = separate module.
## 🔗 지식 연결 (Graph)
- 부모: [[ADR-Architecture-Decision-Record]] · [[Modular-Design]] · [[Separation-of-Concerns]]
- 응용: [[Hexagonal-Clean]] · [[DDD-Bounded-Context]] · [[Module-Boundaries]]
- Project: [[Antigravity-Project]] · [[ConnectAI-LLM-Tool]]
## 🤖 LLM 활용 힌트
**언제 사용**: 매 새 feature 의 architecture 의 결정. 매 modular boundary 의 example.
**언제 X**: 매 small bugfix. 매 prototype.
## ❌ 안티패턴
- **Embed everything**: monolith 의 regression.
- **Module 의 cross-private access**: SoC violation.
- **Module 의 own DB without need**: over-engineer.
## 🧪 검증 / 중복
- **Verified** (applied to Antigravity).
- 신뢰도 A (project's own ADR).
- Related: ADR-0002+ (다른 module).
## 🕓 Changelog
| 날짜 | 변경 | 처리 | 신뢰도 |
|---|---|---|---|
| 2026-05-08 | Phase 1 정규화 | UPDATE | A |
| 2026-05-09 | Manual cleanup — 매 ADR section + code + 결정 기준 | UPDATE | A |