File size: 6,860 Bytes
813575d
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
{"instruction": "Extract user preferences from conversation and save to memory", "ilang_request": "[PROTOCOL:I-Lang|v=3.0]\n[SCAN:@CONV|whr=preference,habit,decision]\n  =>[CLSF|typ=fact,preference,lesson]\n  =>[FMT|fmt=ilang]\n  =>[WRIT:@LOCAL|path=.ilang/memory.md,mode=append]", "ilang_response": "::FACT{id:MEM-001|conf:confirmed|src:conversation}\n  User prefers tabs over spaces in all languages\n::FACT{id:MEM-002|conf:confirmed|src:conversation}\n  User deploys to Cloudflare Workers, not traditional VPS\n::PREF{id:MEM-003|conf:confirmed}\n  Output format: concise, no verbose explanations\n::DECIDED{id:MEM-004|conf:confirmed}\n  Database: PostgreSQL over MongoDB for this project\n  Reason: transaction requirements", "category": "memory_extraction"}
{"instruction": "Build user soul profile from onboarding questions", "ilang_request": "[PROTOCOL:I-Lang|v=3.0]\n[DRFT:@SOUL|mode=onboarding]\n  =>[SCAN:@CONV|whr=identity,role,expertise]\n  =>[FMT|fmt=ilang]\n  =>[WRIT:@LOCAL|path=.ilang/soul.md]", "ilang_response": "::GENE{identity|conf:confirmed|scope:global}\n  T:full_stack_developer\n  T:startup_founder\n  T:ship_first_optimize_later\n  A:over_planning⇒waste\n\n::GENE{communication|conf:confirmed}\n  T:conclusions_first\n  T:code_over_explanation\n  T:chinese_for_discussion|english_for_code\n  A:walls_of_text⇒rewrite_shorter", "category": "soul_extraction"}
{"instruction": "Detect and resolve conflicting memories", "ilang_request": "[PROTOCOL:I-Lang|v=3.0]\n[READ:@LOCAL|path=.ilang/memory.md]\n  =>[SCAN|whr=conflict,contradiction]\n  =>[EVAL|sty=conflict_resolution]\n  =>[FMT|fmt=ilang]\n  =>[WRIT:@LOCAL|path=.ilang/memory.md]", "ilang_response": "::CONFLICT{id:CR-001|between:MEM-012,MEM-089}\n  MEM-012: User prefers React for all frontend\n  MEM-089: User chose Vue for client-X project\n  Resolution: React is default preference, Vue exception for client-X\n::RESOLVED{id:CR-001|action:keep_both|note:context_dependent}\n::MUTATION{id:MEM-012|old:all_frontend|new:default_choice}", "category": "conflict_resolution"}
{"instruction": "Apply memory decay to outdated entries", "ilang_request": "[PROTOCOL:I-Lang|v=3.0]\n[READ:@LOCAL|path=.ilang/memory.md]\n  =>[FILT|whr=age>90d,conf<0.5]\n  =>[EVAL|sty=decay_assessment]\n  =>[FMT|fmt=ilang]\n  =>[WRIT:@LOCAL|path=.ilang/memory.md]", "ilang_response": "::DECAY{id:MEM-034|reason:stale|age:127d}\n  Original: User uses Heroku for deployment\n  Status: Contradicted by MEM-089 (switched to Cloudflare Workers)\n  Action: Archive\n::DECAY{id:MEM-041|reason:low_confidence|conf:0.3}\n  Original: User might prefer dark mode\n  Status: Never confirmed\n  Action: Remove", "category": "memory_decay"}
{"instruction": "Generate context briefing for new session", "ilang_request": "[PROTOCOL:I-Lang|v=3.0]\n[READ:@LOCAL|path=.ilang/soul.md]\n  =>[READ:@LOCAL|path=.ilang/memory.md]\n  =>[FILT|whr=conf>0.7,relevance=high]\n  =>[SHRT|len=500]\n  =>[FMT|fmt=ilang]\n  =>[OUT]", "ilang_response": "::BRIEFING{session:new|timestamp:2026-04-30}\n::IDENTITY{role:full_stack_dev|style:ship_first}\n::ACTIVE_PROJECT{name:payment-api|stack:Node+PostgreSQL+CF_Workers}\n::RECENT_DECISIONS\n  D1: JWT auth over session cookies\n  D2: Stripe over custom payment\n::PREFERENCES\n  P1: Concise output, no verbose\n  P2: Tabs, not spaces\n  P3: TypeScript strict mode\n::LESSONS\n  L1: Always check CF Worker size limit before deploy\n  L2: PostgreSQL JSONB over separate tables for metadata\n::END{BRIEFING}", "category": "briefing"}
{"instruction": "Migrate memory to a new AI tool", "ilang_request": "[PROTOCOL:I-Lang|v=3.0]\n[READ:@LOCAL|path=.ilang/soul.md]\n  =>[READ:@LOCAL|path=.ilang/memory.md]\n  =>[FMT|fmt=ilang]\n  =>[OUT|target=new_tool_context]", "ilang_response": "::MIGRATION{from:claude_code|to:cursor|timestamp:2026-04-30}\n::SOUL_TRANSFER\n  ::GENE{identity|conf:confirmed}\n    T:full_stack_developer\n    T:startup_founder\n  ::GENE{coding|conf:confirmed}\n    T:typescript_strict\n    T:tabs_not_spaces\n    T:test_before_commit\n::MEMORY_TRANSFER{entries:47|filtered:12_stale}\n  ::FACT{database:PostgreSQL|conf:confirmed}\n  ::FACT{deploy:cloudflare_workers|conf:confirmed}\n  ::DECIDED{auth:JWT|conf:confirmed}\n::END{MIGRATION}", "category": "migration"}
{"instruction": "Record a lesson learned from debugging session", "ilang_request": "[PROTOCOL:I-Lang|v=3.0]\n[SCAN:@CONV|whr=lesson,mistake,fix,debug]\n  =>[CLSF|typ=lesson]\n  =>[FMT|fmt=ilang]\n  =>[WRIT:@LOCAL|path=.ilang/memory.md,mode=append]", "ilang_response": "::LESSON{id:LSN-023|conf:confirmed|src:debug_session}\n  Context: CF Worker returned 524 timeout\n  Root cause: Subrequest to external API exceeded 30s limit\n  Fix: Add Promise.race with 25s timeout wrapper\n  Rule: Always wrap external calls in timeout on edge runtime\n::GENE_UPDATE{debugging|mutation:add}\n  T:timeout_wrap_external_calls|when:edge_runtime", "category": "lesson_recording"}
{"instruction": "Save a critical decision with full context", "ilang_request": "[PROTOCOL:I-Lang|v=3.0]\n[SCAN:@CONV|whr=decision,chose,decided]\n  =>[CLSF|typ=decision]\n  =>[FMT|fmt=ilang]\n  =>[WRIT:@LOCAL|path=.ilang/memory.md,mode=append]", "ilang_response": "::DECIDED{id:DEC-015|conf:confirmed|timestamp:2026-04-30}\n  Topic: Authentication strategy\n  Choice: JWT with refresh tokens\n  Rejected: Session cookies, OAuth-only\n  Reasoning: Stateless needed for CF Workers edge deployment\n  Tradeoff: Must handle token revocation separately\n::FACT{auth_strategy:JWT_refresh|conf:confirmed}", "category": "decision_recording"}
{"instruction": "Check for uncommitted memory changes at session start", "ilang_request": "[PROTOCOL:I-Lang|v=3.0]\n[SCAN:@LOCAL|path=.ilang/|whr=uncommitted]\n  =>[EVAL|sty=dirty_check]\n  =>[DECI|if=dirty,then=commit_push]\n  =>[OUT]", "ilang_response": "::DIRTY_CHECK{path:.ilang/|result:dirty}\n::UNCOMMITTED{files:2}\n  .ilang/memory.md: 3 new entries since last commit\n  .ilang/soul.md: 1 GENE mutation\n::ACTION{type:auto_save}\n  git add .ilang/\n  git commit -m 'auto-save: 3 memories + 1 gene mutation'\n  git push\n::STATUS{saved:true|entries:4}", "category": "auto_save"}
{"instruction": "Update behavioral gene based on repeated user correction", "ilang_request": "[PROTOCOL:I-Lang|v=3.0]\n[SCAN:@CONV|whr=correction,wrong,fix_this]\n  =>[EVAL|sty=pattern_detection]\n  =>[FMT|fmt=ilang]\n  =>[WRIT:@LOCAL|path=.ilang/soul.md,mode=merge]", "ilang_response": "::PATTERN_DETECTED{correction_count:3|topic:error_handling}\n  Correction 1: 'Stop using try-catch for flow control'\n  Correction 2: 'I said no bare catches'\n  Correction 3: 'Always use typed errors'\n::GENE_MUTATION{gene:coding|type:add}\n  T:typed_errors_always|conf:confirmed\n  T:no_bare_catch|conf:confirmed\n  A:try_catch_flow_control⇒forbidden\n::CONFIDENCE{old:0.5|new:1.0|reason:3x_user_correction}", "category": "gene_mutation"}