deuk-agent-flow 4.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/CHANGELOG.ko.md +223 -0
  2. package/CHANGELOG.md +227 -0
  3. package/LICENSE +184 -0
  4. package/README.ko.md +282 -0
  5. package/README.md +270 -0
  6. package/bin/deuk-agent-flow.js +50 -0
  7. package/bin/deuk-agent-rule.js +2 -0
  8. package/core-rules/AGENTS.md +153 -0
  9. package/core-rules/GEMINI.md +7 -0
  10. package/docs/architecture.ko.md +34 -0
  11. package/docs/architecture.md +33 -0
  12. package/docs/assets/architecture-v3.png +0 -0
  13. package/docs/how-it-works.ko.md +52 -0
  14. package/docs/how-it-works.md +71 -0
  15. package/docs/principles.ko.md +68 -0
  16. package/docs/principles.md +68 -0
  17. package/docs/usage-guide.ko.md +212 -0
  18. package/package.json +96 -0
  19. package/scripts/cli-args.mjs +200 -0
  20. package/scripts/cli-init-commands.mjs +1799 -0
  21. package/scripts/cli-init-logic.mjs +64 -0
  22. package/scripts/cli-prompts.mjs +104 -0
  23. package/scripts/cli-rule-compiler.mjs +112 -0
  24. package/scripts/cli-skill-commands.mjs +201 -0
  25. package/scripts/cli-telemetry-commands.mjs +599 -0
  26. package/scripts/cli-ticket-commands.mjs +2393 -0
  27. package/scripts/cli-ticket-index.mjs +298 -0
  28. package/scripts/cli-ticket-migration.mjs +320 -0
  29. package/scripts/cli-ticket-parser.mjs +209 -0
  30. package/scripts/cli-usage-commands.mjs +326 -0
  31. package/scripts/cli-utils.mjs +587 -0
  32. package/scripts/cli.mjs +246 -0
  33. package/scripts/lint-md.mjs +267 -0
  34. package/scripts/lint-rules.mjs +186 -0
  35. package/scripts/merge-logic.mjs +44 -0
  36. package/scripts/plan-parser.mjs +53 -0
  37. package/scripts/publish-dual-npm.mjs +141 -0
  38. package/scripts/smoke-npm-docker.mjs +102 -0
  39. package/scripts/smoke-npm-local.mjs +109 -0
  40. package/scripts/update-download-badge.mjs +107 -0
  41. package/templates/MODULE_RULE_TEMPLATE.md +11 -0
  42. package/templates/PROJECT_RULE.md +47 -0
  43. package/templates/TICKET_TEMPLATE.ko.md +44 -0
  44. package/templates/TICKET_TEMPLATE.md +44 -0
  45. package/templates/project-pilot/CONFORMANCE_GATE_TEMPLATE.md +23 -0
  46. package/templates/project-pilot/DRIFT_CHECKLIST.md +19 -0
  47. package/templates/project-pilot/FLOW_CONTRACT_TEMPLATE.md +26 -0
  48. package/templates/project-pilot/IMPLEMENTATION_MATRIX_TEMPLATE.md +30 -0
  49. package/templates/project-pilot/INTEGRATION_CONTRACT_TEMPLATE.md +26 -0
  50. package/templates/project-pilot/OWNER_MAP_TEMPLATE.md +15 -0
  51. package/templates/project-pilot/PROJECT_PILOT_RULE_TEMPLATE.md +34 -0
  52. package/templates/project-pilot/REFACTOR_CONTRACT_TEMPLATE.md +32 -0
  53. package/templates/project-pilot/REMEDIATION_PLAN_TEMPLATE.md +33 -0
  54. package/templates/rules.d/deukcontext-mcp.md +31 -0
  55. package/templates/rules.d/platform-coexistence.md +29 -0
  56. package/templates/skills/context-recall/SKILL.md +25 -0
  57. package/templates/skills/generated-file-guard/SKILL.md +25 -0
  58. package/templates/skills/project-pilot/SKILL.md +63 -0
  59. package/templates/skills/safe-refactor/SKILL.md +25 -0
@@ -0,0 +1,223 @@
1
+ # 변경 이력 (Changelog)
2
+
3
+ 이 프로젝트의 모든 주목할 만한 변경 사항은 이 파일에 기록됩니다.
4
+
5
+ **English:** [CHANGELOG.md](CHANGELOG.md)
6
+
7
+ 형식은 [Keep a Changelog](https://keepachangelog.com/ko/1.1.0/)를 기반으로 하며, 이 프로젝트는 [유의적 버전(Semantic Versioning)](https://semver.org/spec/v2.0.0.html)을 준수합니다.
8
+
9
+ ## [Unreleased]
10
+
11
+ ## [4.0.12] - 2026-05-07
12
+
13
+ ### 수정됨 (Fixed)
14
+
15
+ - **init:** 마이그레이션 중 AgentFlow spoke가 사라지지 않도록 설치된 legacy `CLAUDE.md` 표면은 `.bak` 없이 교체하고, 감지된 agent tool 표면이 없는 `.deuk-agent` 프로젝트에도 기본 root `AGENTS.md` 포인터를 설치하도록 수정했습니다.
16
+ - **skill:** registry뿐 아니라 온디스크 `.deuk-agent/skills/<id>/SKILL.md` 파일도 설치된 skill로 판정하여 `deuk-agent-flow skill list`가 마이그레이션된 skill 디렉터리 상태를 정확히 보여주도록 수정했습니다.
17
+ - **rules:** AgentFlow skill 상태 질문은 `deuk-agent-flow skill list`로 확인하도록 명시하고, core agent rules의 ticket 예시를 완전한 `deuk-agent-flow ticket ...` 명령으로 정규화했습니다.
18
+
19
+ ## [4.0.11] - 2026-05-07
20
+
21
+ ### 수정됨 (Fixed)
22
+
23
+ - **init/ticket:** 의도했던 month-only archive 정책을 복원했습니다. `init`가 예전의 깊은 archive 레이아웃을 canonical month bucket 레이아웃으로 정규화하고, 낡은 archive depth metadata 없이 archive shard index를 다시 쓰며, 새 비정규 import가 생기지 않도록 수정했습니다.
24
+
25
+ ## [3.3.3] - 2026-05-06
26
+
27
+ ### 수정됨 (Fixed)
28
+
29
+ - npm과 GitHub 첫 화면에서 영어/한국어 README를 바로 오갈 수 있도록 언어 전환 링크를 복구했습니다.
30
+ - README 문서 표에는 공개 문서 링크만 남기고, 내부 리서치와 성장 전략 문서는 npm/OSS 공개 표면에서 제외했습니다.
31
+
32
+ ## [3.3.2] - 2026-05-06
33
+
34
+ ### 포지셔닝 (Positioning)
35
+
36
+ - npm/GitHub에서 보이는 정체성을 **모든 레포를 위한 AI 코딩 에이전트 가드레일**로 재정리했습니다.
37
+ - `AGENTS.md`, Copilot instructions, Cursor rules, Claude skills, 에이전트 실행기, 일반 LLM/MCP 가드레일과 비교해 DeukAgentFlow가 더하는 티켓 생명주기, 범위 계약, 검증, 아카이브 가능한 기억을 README에 드러냈습니다.
38
+ - 다음 개선 방향으로 첫 실행 점검, CLI/RAG 재각인 신호, active ticket/phase/open ticket count/DeukAgentContext memory status를 보여주는 companion 표면을 명시했습니다.
39
+
40
+ ## [3.3.0] - 2026-05-02
41
+
42
+ ### 추가됨 (Added)
43
+
44
+ - **docs:** VS Code, Open VSX, GitHub, skill 기반 발견 루프를 포함한 AI 코딩 에이전트 가드레일 포지셔닝, 비전, 오가닉 유입 리서치 문서를 추가했습니다.
45
+ - **docs:** Karpathy식 skill, DeukAgentFlow, DeukAgentContext 심층 비교 문서를 추가했습니다. Skill은 행동 playbook, DeukAgentFlow는 workflow/permission control, DeukAgentContext는 ticketed engineering memory로 포지셔닝했습니다.
46
+ - **seo:** `andrej-karpathy-skills` 관련 아이디어 링크와 Claude Code, AGENTS.md, Cursor rules, agent skills, AI guardrails 검색 유입 키워드를 보강했습니다.
47
+
48
+ ### 변경됨 (Changed)
49
+
50
+ - **ticket:** 열린 티켓이 설정된 한도를 넘을 때 자동 정리 대신 사용자가 목록을 보고 결정할 수 있는 cleanup flow를 강화했습니다.
51
+ - **ticket:** 닫힌 티켓은 자동 아카이브할 수 있게 하고, 아카이브된 티켓은 년월 단위 버킷으로 정리되도록 했습니다.
52
+ - **docs:** README 문서 목록과 GitHub topic 가이드를 agent guardrail, instruction hub, skill registry, project memory 포지셔닝에 맞게 갱신했습니다.
53
+
54
+ ### 수정됨 (Fixed)
55
+
56
+ - **ticket:** 새 작업 진입 전에 정리 결정을 노출하여 열린 티켓 수가 의도한 운영 한도를 조용히 넘는 문제를 방지했습니다.
57
+
58
+ ## [3.2.0] - 2026-04-29
59
+
60
+ ### 추가됨 (Added)
61
+ - **agent:** 플랫폼 공존(Platform Coexistence) 및 모드 인지형(Mode-aware) 워크플로우 구현. (Plan Mode에서 TDW Phase 자동 매핑, `platform-coexistence.md` 규칙 추가, 수정 제어 및 `PROJECT_RULE.md` 포인터 연동 등)
62
+
63
+ ### 변경됨 (Changed)
64
+ - **agents:** Co-existence Protocol 및 Workflow Gate 기능 도입 (T-120).
65
+ - v3.1.0 아키텍처 원칙 및 사용법 문서 개선.
66
+
67
+ ## [3.1.0] - 2026-04-28
68
+
69
+ ### 추가됨 (Added)
70
+ - **arch:** 제로카피(Zero-Copy) 포인터 아키텍처 도입 (`PROJECT_RULE.md` 연동) 및 구조 간소화
71
+ - **cli:** 엄격한 Phase 기반 티켓 워크플로우 및 APC(Agent Permission Contract) 검증 기능 추가
72
+ - **cli:** `--plan-body` 옵션을 통한 채워진 Phase 1 티켓 본문 입력 기능 추가
73
+ - **ticket:** 티켓 아카이브 시 불필요한 토큰 낭비를 막는 Zero-Token 지식 증류(Knowledge Distillation) 구현
74
+ - **telemetry:** 로컬 환경에 최적화된 Telemetry CLI 추가
75
+ - **rules:** `PROJECT_RULE.md` 템플릿 추가 (AI 에이전트 폴백 가이드 포함) 및 이중 언어(한/영) 지원
76
+
77
+ ### 수정됨 (Fixed)
78
+ - **rules:** `PROJECT_RULE.md` 내 중복된 코어 룰 링크 제거 및 Frontmatter 렌더링 복구
79
+ - **telemetry:** 모델 및 설정에서 클라이언트 도구를 자동으로 감지하도록 수정
80
+ - **agent:** 티켓 탐색 중 에이전트 무한 루프 문제 해결
81
+
82
+ ### 변경됨 (Changed)
83
+ - **agent:** TDD 용어를 TDW (Ticket-Driven Workflow)로 변경 및 전역 `AGENTS.md`에서 낡은 규칙 제거
84
+ - **cli:** 상태 기반(State-driven) 경로 탐색 로직으로 구조 개편 및 상세한 사용 가이드 추가
85
+
86
+ ## [3.0.0] - 2026-04-25
87
+
88
+ ### 🚀 대규모 업데이트: Hub-Spoke 아키텍처
89
+ - **Canonical Rule Hub**: 모든 AI 에이전트의 단일 진실 공급원(SSOT)으로 `AGENTS.md` 도입.
90
+ - **Thin Spoke Pointers**: IDE별 룰(Cursor, Copilot 등)을 중앙 Hub를 가리키는 가벼운 포인터로 변경하여 중복 및 동기화 오류 제거.
91
+ - **Global CLI Proxy**: 로컬 워크스페이스 소스를 자동 감지하여 실행을 위임하는 프록시 도입으로 지연 없는(Zero-latency) 개발 환경 구축.
92
+
93
+ ### 🧹 제로 레거시 & 환경 정리
94
+ - **Auto-Purge**: `init` 실행 시 더 이상 사용되지 않는 레거시 `.cursorrules` 파일을 무조건 삭제.
95
+ - **Smart Backups**: 사용자 정의 규칙을 감지하여 삭제 대신 `.bak` 파일로 백업하는 로직 추가.
96
+ - **Submodule Scrubbing**: 비어 있는 서브모듈 디렉터리 스텁 및 `.gitmodules` 자동 정리 기능.
97
+
98
+ ### 🏗️ 리브랜딩 & 인프라스텍
99
+ - **Identity Overhaul**: "Zero-Latency, High-Signal AI Orchestration Protocol"로 리브랜딩.
100
+ - **Documentation v3**: 고품질 3D 인포그래픽 및 구조, 원리, 작동 방식 등 개념 가이드 전면 개편.
101
+ - **Domain Agnostic**: 도메인별 하드코딩을 제거하고 모든 기술 스택을 지원하도록 `bundle/AGENTS.md` 일반화.
102
+
103
+ ### ⚙️ CLI 개선 사항
104
+ - **Proxy Routing**: `bin/deuk-agent-rule.js`가 디렉터리를 탐색하여 로컬 스크립트를 찾아 실행하도록 수정.
105
+ - **Synchronized IO**: CLI의 안정성을 높이기 위해 핵심 로직을 동기적 파일 시스템 연산으로 리팩터링.
106
+ ## [2.4.6] - 2026-04-19
107
+
108
+ ### 수정됨 (Fixed)
109
+
110
+ - **cli:** 로컬 버전이 registry 버전 이상일 경우 업데이트 알림을 표시하지 않도록 수정 (로컬 개발 symlink 환경에서의 역방향 스팸 알림 해소)
111
+ - **ticket:** `NNN` 정규식을 최대 4자리로 제한하여 유닉스 타임스탬프가 티켓 순번으로 잘못 파싱되는 버그 수정 — 올바른 `NNN-topic-hostname` 포맷 생성 복원
112
+
113
+ ## [2.4.4] - 2026-04-19
114
+
115
+ ### 변경됨 (Changed)
116
+
117
+ - **rules:** 서브모듈 전용 규칙(DeukPack, C++, Unity)을 해당 워크스페이스의 `MODULE_RULE.md`로 이동하여 `AGENTS.md`를 일반화된 규약 중심으로 개편
118
+ - **templates:** `publish/` 소스에 맞춰 `bundle/` 내의 레거시 템플릿 정리
119
+
120
+ ## [2.4.3] - 2026-04-18
121
+
122
+ ### 변경됨 (Changed)
123
+ - **ticket:** 티켓 ID 포맷을 `NNN-topic-hostname` (예: `001-add-feature-joy-nucb`)으로 변경. 레거시 `ticket_NNN_hostname_topic` 형식 대체
124
+ - **ticket:** INDEX.json 파싱 시 기존 포맷과 신규 포맷 모두 역호환 지원
125
+
126
+ ## [2.4.2] - 2026-04-18
127
+
128
+ ### 수정됨 (Fixed)
129
+ - **ticket:** 파일명(File name)과 본문 내 티켓 ID 생성 로직 간의 불일치(Discrepancy) 해결 (단일 출처로 통합)
130
+
131
+ ## [2.4.1] - 2026-04-18
132
+
133
+ ### 추가됨 (Added)
134
+ - **cli:** NPM 최신 버전을 감지하여 터미널에 업데이트를 권고하는 알림 기능(Update Notifier) 추가
135
+
136
+ ### 수정됨 (Fixed)
137
+ - **ticket:** 티켓 생성 시 호스트명 슬러그가 8글자로 엄격히 제한되지 않던 버그 수정
138
+
139
+ ## [2.4.0] - 2026-04-18
140
+
141
+ ### 추가됨 (Added)
142
+
143
+ - **init:** 깔끔한 마이그레이션을 위한 구버전 템플릿 자동 정리 기능 추가
144
+ - **rules:** `AGENTS.md` 문서 내 티켓 검증 단계(TICKET VERIFICATION RULE) 규약 추가
145
+ - **ticket:** 티켓에 우선순위(Priority) 속성 추가
146
+ - **ticket:** 순차 번호 및 호스트네임 기반의 티켓 식별자(ID) 자동 생성 도입 (`NNN-hostname-topic` 포맷)
147
+ - **ticket:** 호스트네임 길이 제한(8자) 및 자동 순번 부여 로직 개선
148
+
149
+ ### 수정됨 (Fixed)
150
+
151
+ - **rules:** 전역 `npx` 캐시 이슈(과거 버전 실행 문제)를 우회하기 위해 로컬 최신 스크립트 호출을 강제/권장하도록 수정
152
+ - **scripts:** OSS 미러 저장소 동기화 시 잘못 표기되던 URL 예시 로그 메시지 정정
153
+
154
+ ### 변경됨 (Changed)
155
+
156
+ - **docs:** 리드미(README) 파일에 [Step 4] 티켓 검증 안내 추가
157
+ - **docs:** 전역 설치(Global Install) 권장 안내 및 운영체제(OS)별 권한 제약 명확화
158
+ - **rules:** 구현 아티팩트(`implementation_plan.md` 등) 내 티켓 번호 참조 의무화
159
+
160
+ ## [2.3.2] - 2026-04-17
161
+
162
+ ### 수정됨 (Fixed)
163
+
164
+ - **cli:** 배포 환경에서 하드코딩된 `yaml` 의존성 경로 문제(`ERR_MODULE_NOT_FOUND`) 해결
165
+ - **dependencies:** `yaml`을 명시적 의존성 목록에 추가
166
+
167
+ ## [2.3.1] - 2026-04-17
168
+
169
+ ### 변경됨 (Changed)
170
+
171
+ - **readme:** 체인지로그 및 자동화된 릴리즈 프로세스 가이드 추가
172
+
173
+ ## [2.3.0] - 2026-04-17
174
+
175
+ ### 추가됨 (Added)
176
+
177
+ - AI 파이프라인 연동 기반 및 선택적 동기화 시스템 고도화
178
+ - **cli:** ticket list 명령에 --submodule 필터 추가
179
+ - **cli:** 티켓 아카이브 및 리포트 워크플로를 모듈형 아키텍처로 복구
180
+ - **rules:** Unity Client, WebApp, C++ 서버 하이브리드 환경을 위한 룰 고도화
181
+ - **ticket:** 분산형 티켓 관리 및 공유 정책 구현
182
+ - **ticket:** V2 YAML Front-matter 및 카테고리화된 리스트로 업그레이드
183
+
184
+ ### 수정됨 (Fixed)
185
+
186
+ - **ticket:** LATEST.md를 폐기하고 ACTIVE_TICKET.md로 포인터 통일
187
+ - **ticket:** DeukAgentFlow 현재 진행 중인 티켓 안 나오던 문제 해결
188
+
189
+ ## [1.0.14] - 2026-04-02
190
+
191
+ ### 추가됨 (Added)
192
+
193
+ - **cli:** 병합 도구 및 배포 문서 동기화 스크립트 확장
194
+ - **rules:** 커밋 제목 내 'sync' 금지 구문 룰 추가
195
+ - **handoff:** 인덱스 기반 Handoff 워크플로 및 CLI 신설
196
+ - **architecture:** 제로-터치 NPM 번들 스캐폴딩으로 템플릿 아키텍처 개편
197
+
198
+ ### 수정됨 (Fixed)
199
+
200
+ - **cli:** 템플릿 생성기(init) 내부의 HTML 엔티티 문법 에러 핫픽스
201
+
202
+ ### 변경됨 (Changed)
203
+
204
+ - **docs:** 외부 공개용 릴리즈 가이드 및 동기화 스크립트 주석 갱신
205
+ - **docs:** 리드미(README)에 토큰 비용 차단 메커니즘 설정 및 제로 터치 스캐폴딩 문서 개편
206
+ ## [4.0.19] - 2026-05-08
207
+
208
+ ### 수정됨 (Fixed)
209
+
210
+ - **publish:** init 시 레거시 DeukAgentRules 포인터가 새 DeukAgentFlow managed block 옆에 남지 않도록 generated spoke 교체 경로를 복구했습니다.
211
+ - **telemetry:** release 검증의 architecture guard를 통과하도록 client label 정규화를 공용 `toSlug` 유틸로 통일했습니다.
212
+
213
+ ### 변경됨 (Changed)
214
+
215
+ - **docs:** 영문/한글 메인테이너 배포 섹션을 dual-package npm 배포 흐름과 통합 다운로드 배지 설명 기준으로 맞췄습니다.
216
+
217
+ ## [4.0.18] - 2026-05-08
218
+
219
+ ### 수정됨 (Fixed)
220
+
221
+ - **skills:** `init` 정리 단계가 `.deuk-agent/skills.json`과 `usage.json`을 오배치 파일로 이동시키던 회귀를 막고, 실제 Claude/Cursor 노출 파일도 `skill list`에 반영하도록 보강
222
+ - **telemetry:** 모델/클라이언트 표기를 정규화해 대소문자·공백 차이로 분석 결과가 분산되던 문제 수정
223
+ - **ticket:** active ticket 동기화가 가장 최근 open ticket 대신 오래된 open ticket을 유지해 `ticket continue`가 잘못된 티켓을 가리키던 문제 수정
package/CHANGELOG.md ADDED
@@ -0,0 +1,227 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [Unreleased]
8
+
9
+ ### Fixed
10
+
11
+ - **cli:** stop ticket discovery at the current agent-rule boundary instead of inheriting the parent workspace.
12
+
13
+ ## [4.0.12] - 2026-05-07
14
+
15
+ ### Fixed
16
+
17
+ - **init:** preserve AgentFlow spokes during migration by replacing installed legacy `CLAUDE.md` surfaces without creating `.bak` files, while still installing a default root `AGENTS.md` pointer for `.deuk-agent` projects without detected agent tool surfaces.
18
+ - **skill:** report installed skills from either the registry or on-disk `.deuk-agent/skills/<id>/SKILL.md` files so `deuk-agent-flow skill list` reflects migrated skill directories.
19
+ - **rules:** map AgentFlow skill-status questions to `deuk-agent-flow skill list` and use fully qualified `deuk-agent-flow ticket ...` command examples in the core agent rules.
20
+
21
+ ## [4.0.11] - 2026-05-07
22
+
23
+ ### Fixed
24
+
25
+ - **init/ticket:** restore the intended month-only archive policy by normalizing older deep archive layouts into the canonical month bucket layout, rebuilding archive shard indexes without obsolete archive-depth metadata, and preventing new non-canonical imports during `init`.
26
+
27
+ ## [3.3.3] - 2026-05-06
28
+
29
+ ### Fixed
30
+
31
+ - Restored the README language switch links so npm and GitHub readers can move between English and Korean documentation from the first screen.
32
+ - Published only public documentation links in the README tables while keeping internal research and growth notes out of the npm/OSS surface.
33
+
34
+ ## [3.3.2] - 2026-05-06
35
+
36
+ ### Positioning
37
+
38
+ - Reframed the npm/GitHub identity around **AI coding agent guardrails for every repo**, with ticketed scope, verification, and shared `AGENTS.md` workflows visible in package metadata.
39
+ - Added README comparison against `AGENTS.md`, Copilot instructions, Cursor rules, Claude skills, agent harnesses, and general guardrail frameworks to show where DeukAgentFlow sits in the ecosystem.
40
+ - Added a short "What's Next" section to set expectations for clearer first-run checks, compact CLI/RAG reminders, and visible companion surfaces for active ticket, phase, open-ticket count, and DeukAgentContext memory status.
41
+
42
+
43
+ ### Added
44
+
45
+ - AGENTS.md v12 + summary mandatory guard + PROJECT_RULE optimization
46
+ - **cli:** add 'ticket next' command for instant task discovery (T[#295](https://github.com/joygram/DeukAgentFlow/issues/295))
47
+ - **cli:** enforce required frontmatter keys in lint:md (T-118)
48
+ - harden ticket paths and add DeukPack RAG schemas
49
+ - **migration:** add summary/planLink/caution auto-enrichment for legacy tickets
50
+ - Phase 0 search limiter - max 2 MCP calls, skip when context sufficient
51
+ - replace legacy fill-in-the-blank rule check with Version Gating and Task Relevance check
52
+ - **rules:** enforce hard guardrails, add hotfix protocol and urgency response
53
+ - **rules:** harden document boundary workflow
54
+ - **spoke:** add fill-in completion template for rule enforcement
55
+ - **T-114:** 1-CALL ticket discovery rule + CLI max call limits
56
+ - **T-115:** HARD BLOCK on write tools without active ticket
57
+ - **T-116:** auto-close stale tickets on ticket create + Phase 4 NEVER skip
58
+ - **T-116:** smart close based on checklist + phase state
59
+ - **ticket:** enforce filled create flow and phase1 status guard
60
+ - **ticket:** enforce open ticket cleanup flow
61
+ - **ticket:** partition archive index by month
62
+
63
+
64
+ ### Fixed
65
+
66
+ - add Refactor Safety Guard and Halt-and-Replan hard rules
67
+ - agent degradation remediation — planLink, inline TDW, token optimization
68
+ - align ticket APC template with phase gate
69
+ - **docs:** correct frontmatter keys in AGENTS.md (remove fm_ prefix)
70
+ - **init:** deploy Antigravity spoke to project root AGENTS.md
71
+ - register legitimate DR-04/DR-05 exceptions and update PROJECT_RULE.md
72
+ - remove duplicate phase key in ticket template and repair broken tickets
73
+ - **rules:** announce active ticket at start
74
+ - **rules:** keep planlink free of progress checkboxes
75
+ - **rules:** make planlink capture agent analysis
76
+ - **rules:** separate ticket and plan content
77
+ - **spoke:** GLOBAL_AGENTS.md link text to actual filename AGENTS.md
78
+ - SSOT — init removes .deuk-agent/templates/ unconditionally (bundle is single source of truth)
79
+ - **T-116:** parallel-safe auto-close - only close activeTicketId, warn others
80
+ - **T-116:** replace auto-close with activeTicketId switch + warning
81
+ - **ticket:** honor project and submodule filters
82
+ - **ticket:** Sync close/archive status to frontmatter to prevent rebuild reversion
83
+
84
+
85
+ ### Changed
86
+
87
+ - add Dependency Integrity Guard (HARD RULE) to AGENTS.md
88
+ - add lite accessibility vision plan
89
+ - add skill positioning release notes
90
+ - add version frontmatter to AGENTS.md for rule loading optimization
91
+ - align bad examples with plan/archive convention
92
+ - archive bmt coordination ticket 142
93
+ - archive bmt frontmatter cleanup ticket 144
94
+ - archive bmt go ticket 140
95
+ - archive bmt java ticket 139
96
+ - archive bmt matrix ticket 133
97
+ - archive bmt rust ticket 141
98
+ - bump AGENTS.md to v15 and strengthen dependency guards
99
+ - clarify ticket creation flow
100
+ - document rationale for docs/plan and fix section numbering
101
+ - Enforce strict rules for Scope Creep Handling
102
+ - enhance main features and workflow intro for v3.2.0
103
+ - optimize AGENTS.md — merge Dependency Integrity into Refactor Guard, compress Scope Creep
104
+ - position agent guardrail growth loop
105
+ - **rules:** clarify phase one execution semantics
106
+ - **rules:** mandate enrich_frontmatter for all plan/report files (T-118)
107
+ - **spoke:** hard rule single directive
108
+ - update legacy path guidance to plan/archive layout
109
+
110
+ ## [3.3.0] - 2026-05-02
111
+
112
+ ### Added
113
+
114
+ - **docs:** add AI coding agent guardrail positioning, vision, and organic growth research for VS Code, Open VSX, GitHub, and skill-driven discovery.
115
+ - **docs:** add a deep comparison of Karpathy-style skills, DeukAgentFlow, and DeukAgentContext, positioning skills as behavior playbooks, DeukAgentFlow as workflow/permission control, and DeukAgentContext as ticketed engineering memory.
116
+ - **seo:** add related-project positioning for `andrej-karpathy-skills` plus discovery keywords for Claude Code, AGENTS.md, Cursor rules, agent skills, and AI guardrails.
117
+
118
+ ### Changed
119
+
120
+ - **ticket:** enforce a decision-first cleanup flow when open tickets exceed the configured limit, while allowing closed tickets to be archived automatically.
121
+ - **ticket:** organize archived tickets by year-month buckets to reduce active ticket repository clutter.
122
+ - **docs:** update README document indexes and GitHub topic guidance to emphasize the agent guardrail, instruction hub, skill registry, and project memory positioning.
123
+
124
+ ### Fixed
125
+
126
+ - **ticket:** prevent open ticket growth from silently exceeding the intended operating limit by surfacing cleanup decisions before new work proceeds.
127
+
128
+ ## [3.2.0] - 2026-04-28
129
+
130
+
131
+ ### Added
132
+
133
+ - **agent:** implement platform coexistence and mode-aware workflow
134
+
135
+
136
+ ### Changed
137
+
138
+ - **agents:** add Co-existence Protocol and Workflow Gate (T-120)
139
+ - update usage, architecture, and principles for v3.1.0
140
+
141
+ ## [3.1.0] - 2026-04-28
142
+
143
+
144
+ ### Added
145
+
146
+ - add ArchitectureGuard.test.mjs and create technical debt ticket T-103
147
+ - add first-class copilot and codex support
148
+ - **arch:** implement APC v3 and simplify repository structure
149
+ - **cli:** restrict --skip-phase0 based on MCP server status and update rules
150
+ - consolidate rule cleanup logic and enforce thin pointers for entry points
151
+ - enforce unidirectional AGENTS.md single source of truth
152
+ - enhance CLI reporting and add practical usage guide
153
+ - implement strict phase-driven ticket workflow with APC validation
154
+ - implement Zero-Copy architecture with absolute path pointing and frontmatter-based PROJECT_RULE.md
155
+ - implement zero-token knowledge distillation on ticket archive and cleanup dead code
156
+ - **rules:** add AI Agent fallback guide to PROJECT_RULE.md template
157
+ - **rules:** normalize canonical rules and decouple DeukPack rules
158
+ - **telemetry:** add local-first telemetry CLI and update AGENTS.md
159
+ - **ticket:** implement --plan-body for filled Phase 1 ticket body input and update project rules
160
+
161
+
162
+ ### Fixed
163
+
164
+ - auto-detect client tool from model and config in telemetry
165
+ - resolve agent loop on ticket navigation + archive 37 dead tickets
166
+ - **rules:** bilingual ko/en PROJECT_RULE.md template
167
+ - **rules:** remove redundant core rules link from PROJECT_RULE.md
168
+ - **rules:** restore frontmatter in PROJECT_RULE.md
169
+ - **rules:** restore mandatory ticket workflow and anti-shoveling rules
170
+ - **rules:** sync restored strict workflow AGENTS.md and unified templates
171
+
172
+
173
+ ### Changed
174
+
175
+ - add markdown lint policy and workflow docs
176
+ - **agent:** rename TDD to TDW, archive ticket 101, and remove DOMAIN_RULES
177
+ - AGENTS.md full cleanup - eliminate redundancy, unify English, remove dead rules
178
+ - finalize ticket 066 rule normalization
179
+ - modernize CLI architecture, implement state-driven path resolution, and comprehensive audit cleanup
180
+ - **rules:** decouple DeukPack rules and fix merge injection logic
181
+ - update principles and cli compiler to DeukAgentContext
182
+
183
+ ## [3.0.0] - 2026-04-25
184
+
185
+ ### 🚀 Major Breakthrough: Hub-Spoke Architecture
186
+ - **Canonical Rule Hub**: Introduced `AGENTS.md` as the single source of truth for all AI agents.
187
+ - **Thin Spoke Pointers**: IDE-specific rules (Cursor, Copilot, etc.) are now lightweight pointers to the central Hub, eliminating duplication and sync errors.
188
+ - **Global CLI Proxy**: Implemented a smart entry point that automatically detects and routes execution to local workspace sources, ensuring zero-latency development.
189
+
190
+ ### 🧹 Zero-Legacy & Cleanliness
191
+ - **Auto-Purge**: `init` now unconditionally deletes deprecated `.cursorrules` files.
192
+ - **Smart Backups**: Added logic to detect custom user rules and rename files to `.bak` instead of deletion.
193
+ - **Submodule Scrubbing**: Automatically cleans empty submodule directory stubs and scrubs `.gitmodules`.
194
+
195
+ ### 🏗️ Branding & Infrastructure
196
+ - **Identity Overhaul**: Rebranded as a "Zero-Latency, High-Signal AI Orchestration Protocol".
197
+ - **Documentation v3**: New high-end 3D visual infographics and overhauled conceptual guides (Architecture, Principles, How-it-works).
198
+ - **Domain Agnostic**: Generalized `bundle/AGENTS.md` to support any technology stack, removing domain-specific hardcoding.
199
+
200
+ ### ⚙️ CLI Enhancements
201
+ - **Proxy Routing**: `bin/deuk-agent-rule.js` performs directory traversal to find local scripts.
202
+ - **Synchronized IO**: Refactored core logic to use synchronous FS operations for rock-solid CLI stability.
203
+
204
+ ---
205
+
206
+ ## [2.4.0] - 2026-04-18
207
+ - add Codex CLI support (.codexrules) and apply globally
208
+ - implement ticket chaining (--chain) for automated ticket linkage
209
+ - improve submodule isolation logic
210
+ ## [4.0.19] - 2026-05-08
211
+
212
+ ### Fixed
213
+
214
+ - **publish:** restore generated spoke replacement during init so legacy DeukAgentRules pointers do not survive beside the new DeukAgentFlow managed block
215
+ - **telemetry:** switch client-label normalization to the shared `toSlug` utility so architecture guard tests pass during release validation
216
+
217
+ ### Changed
218
+
219
+ - **docs:** align the English and Korean maintainer publish sections around the dual-package npm flow and the combined downloads badge
220
+
221
+ ## [4.0.18] - 2026-05-08
222
+
223
+ ### Fixed
224
+
225
+ - **skills:** preserve `.deuk-agent/skills.json` and `usage.json` during init layout cleanup, and let `skill list` detect real Claude/Cursor exposure pointers even when registry state is stale
226
+ - **telemetry:** normalize model/client labels so analytics do not fragment across case and spacing variants
227
+ - **ticket:** prefer the newest open ticket when syncing the active ticket pointer so `ticket continue` follows the current work instead of an older open ticket
package/LICENSE ADDED
@@ -0,0 +1,184 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship made available under
36
+ the License, as indicated by a copyright notice that is included in
37
+ or attached to the work (an example is provided in the Appendix below).
38
+
39
+ "Derivative Works" shall mean any work, whether in Source or Object
40
+ form, that is based on (or derived from) the Work and for which the
41
+ editorial revisions, annotations, elaborations, or other modifications
42
+ represent, as a whole, an original work of authorship. For the purposes
43
+ of this License, Derivative Works shall not include works that remain
44
+ separable from, or merely link (or bind by name) to the interfaces of,
45
+ the Work and Derivative Works thereof.
46
+
47
+ "Contribution" shall mean, as submitted to the Licensor for inclusion
48
+ in the Work by the copyright owner or by an individual or Legal Entity
49
+ authorized to submit on behalf of the copyright owner. For the purposes
50
+ of this definition, "submitted" means any form of electronic, verbal,
51
+ or written communication sent to the Licensor or its representatives,
52
+ including but not limited to communication on electronic mailing lists,
53
+ source code control systems, and issue tracking systems that are managed
54
+ by, or on behalf of, the Licensor for the purpose of submitting and
55
+ discussing modifications to the Work, but excluding communication that
56
+ is conspicuously marked or designated in writing by the copyright owner
57
+ as "Not a Contribution."
58
+
59
+ "Contributor" shall mean Licensor and any Legal Entity on behalf of
60
+ whom a Contribution has been received by the Licensor and included
61
+ within the Work.
62
+
63
+ 2. Grant of Copyright License. Subject to the terms and conditions of
64
+ this License, each Contributor hereby grants to You a perpetual,
65
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
66
+ copyright license to reproduce, prepare Derivative Works of,
67
+ publicly display, publicly perform, sublicense, and distribute the
68
+ Work and such Derivative Works in Source or Object form.
69
+
70
+ 3. Grant of Patent License. Subject to the terms and conditions of
71
+ this License, each Contributor hereby grants to You a perpetual,
72
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
73
+ (except as stated in this section) patent license to make, have made,
74
+ use, offer to sell, sell, import, and otherwise transfer the Work,
75
+ where such license applies only to those patent claims licensable
76
+ by such Contributor that are necessarily infringed by their
77
+ Contribution(s) alone or by the combination of their Contribution(s)
78
+ with the Work to which such Contribution(s) was submitted. If You
79
+ institute patent litigation against any entity (including a cross-claim
80
+ or counterclaim in a lawsuit) alleging that the Work or any other
81
+ Contribution embodied in the Work constitutes patent or contributory
82
+ patent infringement, then any patent rights granted to You under
83
+ this License for that Work shall terminate as of the date such
84
+ litigation is filed.
85
+
86
+ 4. Redistribution. You may reproduce and distribute copies of the
87
+ Work or Derivative Works thereof in any medium, with or without
88
+ modifications, and in Source or Object form, provided that You
89
+ meet the following conditions:
90
+
91
+ (a) You must give any other recipients of the Work or Derivative
92
+ Works a copy of this License; and
93
+
94
+ (b) You must cause any modified files to carry prominent notices
95
+ stating that You changed the files; and
96
+
97
+ (c) You must retain, in the Source form of any Derivative Works
98
+ that You distribute, all copyright, patent, trademark, and
99
+ attribution notices from the Source form of the Work,
100
+ excluding those notices that do not pertain to any part of
101
+ the Derivative Works; and
102
+
103
+ (d) If the Work includes a "NOTICE" text file as part of its
104
+ distribution, You must include a readable copy of the
105
+ attribution notices contained within such NOTICE file, in
106
+ at least one of the following places: within a NOTICE text
107
+ file distributed as part of the Derivative Works; within
108
+ the Source form or documentation, if provided along with the
109
+ Derivative Works; or, within a display generated by the
110
+ Derivative Works, if and wherever such third-party notices
111
+ normally appear. The contents of the NOTICE file are for
112
+ informational purposes only and do not modify the License.
113
+ You may add Your own attribution notices within Derivative
114
+ Works that You distribute, alongside or as an addendum to
115
+ the NOTICE text from the Work, provided that such additional
116
+ attribution notices cannot be construed as modifying the License.
117
+
118
+ You may add Your own license statement for Your modifications and
119
+ may provide additional grant of rights to use, copy, modify, merge,
120
+ publish, distribute, sublicense, and/or sell copies of the Work,
121
+ and to permit persons to whom the Work is furnished to do so,
122
+ subject to the following conditions:
123
+
124
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
125
+ any Contribution intentionally submitted for inclusion in the Work
126
+ by You to the Licensor shall be under the terms and conditions of
127
+ this License, without any additional terms or conditions.
128
+ Notwithstanding the above, nothing herein shall supersede or modify
129
+ the terms of any separate license agreement you may have executed
130
+ with Licensor regarding such Contributions.
131
+
132
+ 6. Trademarks. This License does not grant permission to use the trade
133
+ names, trademarks, service marks, or product names of the Licensor,
134
+ except as required for reasonable and customary use in describing the
135
+ origin of the Work and reproducing the content of the NOTICE file.
136
+
137
+ 7. Disclaimer of Warranty. Unless required by applicable law or
138
+ agreed to in writing, Licensor provides the Work (and each
139
+ Contributor provides its Contributions) on an "AS IS" BASIS,
140
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
141
+ implied, including, without limitation, any conditions of TITLE,
142
+ NONINFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR
143
+ PURPOSE. You are solely responsible for determining the
144
+ appropriateness of using or reproducing the Work and assume any
145
+ risks associated with Your exercise of permissions under this License.
146
+
147
+ 8. Limitation of Liability. In no event and under no legal theory,
148
+ whether in tort (including negligence), contract, or otherwise,
149
+ unless required by applicable law (such as deliberate and grossly
150
+ negligent acts) or agreed to in writing, shall any Contributor be
151
+ liable to You for damages, including any direct, indirect, special,
152
+ incidental, or exemplary damages of any character arising as a
153
+ result of this License or out of the use or inability to use the
154
+ Work (including but not limited to damages for loss of goodwill,
155
+ work stoppage, computer failure or malfunction, or all other
156
+ commercial damages or losses), even if such Contributor has been
157
+ advised of the possibility of such damages.
158
+
159
+ 9. Accepting Warranty or Additional Liability. While redistributing
160
+ the Work or Derivative Works thereof, You may choose to offer,
161
+ and charge a fee for, acceptance of support, warranty, indemnity,
162
+ or other liability obligations and/or rights consistent with this
163
+ License. However, in accepting such obligations, You may offer such
164
+ conditions only on Your own behalf and on Your sole responsibility,
165
+ not on behalf of any other Contributor, and only if You agree to
166
+ indemnify, defend, and hold each Contributor harmless for any
167
+ liability incurred by, or claims asserted against, such Contributor
168
+ by reason of your accepting any such warranty or additional liability.
169
+
170
+ END OF TERMS AND CONDITIONS
171
+
172
+ Copyright 2025 Deukware and contributors
173
+
174
+ Licensed under the Apache License, Version 2.0 (the "License");
175
+ you may not use this file except in compliance with the License.
176
+ You may obtain a copy of the License at
177
+
178
+ http://www.apache.org/licenses/LICENSE-2.0
179
+
180
+ Unless required by applicable law or agreed to in writing, software
181
+ distributed under the License is distributed on an "AS IS" BASIS,
182
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
183
+ See the License for the specific language governing permissions and
184
+ limitations under the License.