You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
ilang-ai
committed
Upgrade .dna.md schema and conflict resolution
- CORE/PROJECT separation: global genes no longer mix with project overrides
- Conditional genes: T:minimal|when:simple + T:full_detail|when:complex
- Five conflict types with explicit resolution rules
- Progress auto-summarize every 10 entries
- User transparency three modes: quiet/explain/audit
- Schema version bumped to 2.0
- Synonymous trait merging rule added
Published by: Claude (automated)
@@ -181,26 +216,29 @@ Before doing ANY other work, start the onboarding conversation:
181
216
testing:cross_model
182
217
git:searchable
183
218
seo:discoverability_enabled
219
+
transparency:quiet
184
220
}
185
221
186
222
::DECAY{
187
223
tentative_unseen_30d=>remove
188
224
repeated_3x=>confirm
189
225
explicit_rejection=>anti_pattern
226
+
inactive_project_60d=>archive
227
+
progress_10_items=>summarize
190
228
}
191
229
192
230
::END{DNA}
193
231
```
194
232
195
233
Schema rules:
196
-
-Structured, not natural language
197
-
-T (trait) and A (anti-pattern) with confidence level per gene
198
-
-FACT: hard data, low compression
199
-
- LESSONS: project-specific traps, accumulate over time
200
-
- PROGRESS: milestone-based, not time-based
201
-
-RUNTIME: current mode settings
202
-
-Target: under 500 tokens for core profile. If lessons and progress accumulate beyond this, split into core imprint (portable, under 500) and project overlay (project-specific, can grow)
203
-
-Compression: 90% smaller than natural language equivalent
234
+
-CORE holds global behavioral genes that travel across projects. Each gene can have `when:` conditions for context-dependent behavior.
235
+
-FACT holds verifiable environment data, not preferences.
236
+
-PROJECT holds repo-specific overrides. Must not pollute CORE. Archived after 60 days of inactivity.
237
+
- LESSONS holds cross-project traps. Can be promoted from project-specific to cross-project.
238
+
- PROGRESS is milestone-only. Every 10 entries, auto-summarize older ones into a single `::PROGRESS_SUMMARY{}` block and remove originals.
239
+
-Target: CORE under 500 tokens. PROJECT and PROGRESS can grow beyond this.
240
+
-Compression: 90% smaller than natural language equivalent.
241
+
-Synonymous traits must be merged: `minimal_output`, `concise_output`, `short_answer` all become one canonical trait.
Save on milestones only: feature completed, bug resolved, credential obtained, architecture decided. Casual chat: do not save. Append without announcing to `::PROGRESS{}`.
265
303
304
+
When `::PROGRESS{}` reaches 10 entries, auto-summarize the oldest ones into a single `::PROGRESS_SUMMARY{}` block and remove the originals. Keep the file lean.
305
+
266
306
### 9. Testing
267
307
268
308
Based on `model_access`: 3+ models = cross-validate across models. 2 = write and review split. 1 = mandatory self-test. Suggest cross-testing naturally.
@@ -275,6 +315,18 @@ If `discoverability:yes`: keyword-rich commits, README as landing page, complete
275
315
276
316
When discoverability enabled, all output is naturally structured for AI search engines (GEO). No separate audit.
277
317
318
+
## User Transparency
319
+
320
+
Three modes, stored in `::RUNTIME{transparency:}`:
321
+
322
+
**Quiet** (default): Read and update `.dna.md` without announcing. The user works normally and the profile improves in the background.
323
+
324
+
**Explain**: When the user asks "why did you do it this way?", explain which preferences or lessons influenced the decision. Use plain language, not internal terms.
325
+
326
+
**Audit**: When the user asks to see their profile, show the full `.dna.md` contents. Support editing, diffing, and reverting. The user owns this file.
327
+
328
+
Do not ask the user which mode they want. Start in Quiet. Switch to Explain or Audit when the user's question naturally calls for it.
329
+
278
330
## Portability
279
331
280
332
`.dna.md` is plain text. Works across Claude Code, Codex, Cursor, Copilot, Gemini, and any SKILL.md-compatible agent. Switch tools, the file comes with you.
0 commit comments