arscontexta 0.6.0

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 (418) hide show
  1. package/.claude-plugin/marketplace.json +11 -0
  2. package/.claude-plugin/plugin.json +22 -0
  3. package/README.md +683 -0
  4. package/agents/knowledge-guide.md +49 -0
  5. package/bin/cli.mjs +66 -0
  6. package/generators/agents-md.md +240 -0
  7. package/generators/claude-md.md +379 -0
  8. package/generators/features/atomic-notes.md +124 -0
  9. package/generators/features/ethical-guardrails.md +58 -0
  10. package/generators/features/graph-analysis.md +188 -0
  11. package/generators/features/helper-functions.md +92 -0
  12. package/generators/features/maintenance.md +164 -0
  13. package/generators/features/methodology-knowledge.md +70 -0
  14. package/generators/features/mocs.md +144 -0
  15. package/generators/features/multi-domain.md +61 -0
  16. package/generators/features/personality.md +71 -0
  17. package/generators/features/processing-pipeline.md +428 -0
  18. package/generators/features/schema.md +149 -0
  19. package/generators/features/self-evolution.md +229 -0
  20. package/generators/features/self-space.md +78 -0
  21. package/generators/features/semantic-search.md +99 -0
  22. package/generators/features/session-rhythm.md +85 -0
  23. package/generators/features/templates.md +85 -0
  24. package/generators/features/wiki-links.md +88 -0
  25. package/generators/soul-md.md +121 -0
  26. package/hooks/hooks.json +45 -0
  27. package/hooks/scripts/auto-commit.sh +44 -0
  28. package/hooks/scripts/session-capture.sh +35 -0
  29. package/hooks/scripts/session-orient.sh +86 -0
  30. package/hooks/scripts/write-validate.sh +42 -0
  31. package/methodology/AI shifts knowledge systems from externalizing memory to externalizing attention.md +59 -0
  32. package/methodology/BM25 retrieval fails on full-length descriptions because query term dilution reduces match scores.md +39 -0
  33. package/methodology/IBIS framework maps claim-based architecture to structured argumentation.md +58 -0
  34. package/methodology/LLM attention degrades as context fills.md +49 -0
  35. package/methodology/MOC construction forces synthesis that automated generation from metadata cannot replicate.md +49 -0
  36. package/methodology/MOC maintenance investment compounds because orientation savings multiply across every future session.md +41 -0
  37. package/methodology/MOCs are attention management devices not just organizational tools.md +51 -0
  38. package/methodology/PKM failure follows a predictable cycle.md +50 -0
  39. package/methodology/ThreadMode to DocumentMode transformation is the core value creation step.md +52 -0
  40. package/methodology/WIP limits force processing over accumulation.md +53 -0
  41. package/methodology/Zeigarnik effect validates capture-first philosophy because open loops drain attention.md +42 -0
  42. package/methodology/academic research uses structured extraction with cross-source synthesis.md +566 -0
  43. package/methodology/adapt the four-phase processing pipeline to domain-specific throughput needs.md +197 -0
  44. package/methodology/agent notes externalize navigation intuition that search cannot discover and traversal cannot reconstruct.md +48 -0
  45. package/methodology/agent self-memory should be architecturally separate from user knowledge systems.md +48 -0
  46. package/methodology/agent session boundaries create natural automation checkpoints that human-operated systems lack.md +56 -0
  47. package/methodology/agent-cognition.md +107 -0
  48. package/methodology/agents are simultaneously methodology executors and subjects creating a unique trust asymmetry.md +66 -0
  49. package/methodology/aspect-oriented programming solved the same cross-cutting concern problem that hooks solve.md +39 -0
  50. package/methodology/associative ontologies beat hierarchical taxonomies because heterarchy adapts while hierarchy brittles.md +53 -0
  51. package/methodology/attention residue may have a minimum granularity that cannot be subdivided.md +46 -0
  52. package/methodology/auto-commit hooks eliminate prospective memory failures by converting remember-to-act into guaranteed execution.md +47 -0
  53. package/methodology/automated detection is always safe because it only reads state while automated remediation risks content corruption.md +42 -0
  54. package/methodology/automation should be retired when its false positive rate exceeds its true positive rate or it catches zero issues.md +56 -0
  55. package/methodology/backlinks implicitly define notes by revealing usage context.md +35 -0
  56. package/methodology/backward maintenance asks what would be different if written today.md +62 -0
  57. package/methodology/balance onboarding enforcement and questions to prevent premature complexity.md +229 -0
  58. package/methodology/basic level categorization determines optimal MOC granularity.md +51 -0
  59. package/methodology/batching by context similarity reduces switching costs in agent processing.md +43 -0
  60. package/methodology/behavioral anti-patterns matter more than tool selection.md +42 -0
  61. package/methodology/betweenness centrality identifies bridge notes connecting disparate knowledge domains.md +57 -0
  62. package/methodology/blueprints that teach construction outperform downloads that provide pre-built code for platform-dependent modules.md +42 -0
  63. package/methodology/bootstrapping principle enables self-improving systems.md +62 -0
  64. package/methodology/build automatic memory through cognitive offloading and session handoffs.md +285 -0
  65. package/methodology/capture the reaction to content not just the content itself.md +41 -0
  66. package/methodology/claims must be specific enough to be wrong.md +36 -0
  67. package/methodology/closure rituals create clean breaks that prevent attention residue bleed.md +44 -0
  68. package/methodology/cognitive offloading is the architectural foundation for vault design.md +46 -0
  69. package/methodology/cognitive outsourcing risk in agent-operated systems.md +55 -0
  70. package/methodology/coherence maintains consistency despite inconsistent inputs.md +96 -0
  71. package/methodology/coherent architecture emerges from wiki links spreading activation and small-world topology.md +48 -0
  72. package/methodology/community detection algorithms can inform when MOCs should split or merge.md +52 -0
  73. package/methodology/complete navigation requires four complementary types that no single mechanism provides.md +43 -0
  74. package/methodology/complex systems evolve from simple working systems.md +59 -0
  75. package/methodology/composable knowledge architecture builds systems from independent toggleable modules not monolithic templates.md +61 -0
  76. package/methodology/compose multi-domain systems through separate templates and shared graph.md +372 -0
  77. package/methodology/concept-orientation beats source-orientation for cross-domain connections.md +51 -0
  78. package/methodology/confidence thresholds gate automated action between the mechanical and judgment zones.md +50 -0
  79. package/methodology/configuration dimensions interact so choices in one create pressure on others.md +58 -0
  80. package/methodology/configuration paralysis emerges when derivation surfaces too many decisions.md +44 -0
  81. package/methodology/context files function as agent operating systems through self-referential self-extension.md +46 -0
  82. package/methodology/context phrase clarity determines how deep a navigation hierarchy can scale.md +46 -0
  83. package/methodology/continuous small-batch processing eliminates review dread.md +48 -0
  84. package/methodology/controlled disorder engineers serendipity through semantic rather than topical linking.md +51 -0
  85. package/methodology/creative writing uses worldbuilding consistency with character tracking.md +672 -0
  86. package/methodology/cross-links between MOC territories indicate creative leaps and integration depth.md +43 -0
  87. package/methodology/dangling links reveal which notes want to exist.md +62 -0
  88. package/methodology/data exit velocity measures how quickly content escapes vendor lock-in.md +74 -0
  89. package/methodology/decontextualization risk means atomicity may strip meaning that cannot be recovered.md +48 -0
  90. package/methodology/dense interlinked research claims enable derivation while sparse references only enable templating.md +47 -0
  91. package/methodology/dependency resolution through topological sort makes module composition transparent and verifiable.md +56 -0
  92. package/methodology/derivation generates knowledge systems from composable research claims not template customization.md +63 -0
  93. package/methodology/derivation-engine.md +27 -0
  94. package/methodology/derived systems follow a seed-evolve-reseed lifecycle.md +56 -0
  95. package/methodology/description quality for humans diverges from description quality for keyword search.md +73 -0
  96. package/methodology/descriptions are retrieval filters not summaries.md +112 -0
  97. package/methodology/design MOCs as attention management devices with lifecycle governance.md +318 -0
  98. package/methodology/design-dimensions.md +66 -0
  99. package/methodology/digital mutability enables note evolution that physical permanence forbids.md +54 -0
  100. package/methodology/discovery-retrieval.md +48 -0
  101. package/methodology/distinctiveness scoring treats description quality as measurable.md +69 -0
  102. package/methodology/does agent processing recover what fast capture loses.md +43 -0
  103. package/methodology/domain-compositions.md +37 -0
  104. package/methodology/dual-coding with visual elements could enhance agent traversal.md +55 -0
  105. package/methodology/each module must be describable in one sentence under 200 characters or it does too many things.md +45 -0
  106. package/methodology/each new note compounds value by creating traversal paths.md +55 -0
  107. package/methodology/eight configuration dimensions parameterize the space of possible knowledge systems.md +56 -0
  108. package/methodology/elaborative encoding is the quality gate for new notes.md +55 -0
  109. package/methodology/enforce schema with graduated strictness across capture processing and query zones.md +221 -0
  110. package/methodology/enforcing atomicity can create paralysis when ideas resist decomposition.md +43 -0
  111. package/methodology/engineering uses technical decision tracking with architectural memory.md +766 -0
  112. package/methodology/every knowledge domain shares a four-phase processing skeleton that diverges only in the process step.md +53 -0
  113. package/methodology/evolution observations provide actionable signals for system adaptation.md +67 -0
  114. package/methodology/external memory shapes cognition more than base model.md +60 -0
  115. package/methodology/faceted classification treats notes as multi-dimensional objects rather than folder contents.md +65 -0
  116. package/methodology/failure-modes.md +27 -0
  117. package/methodology/false universalism applies same processing logic regardless of domain.md +49 -0
  118. package/methodology/federated wiki pattern enables multi-agent divergence as feature not bug.md +59 -0
  119. package/methodology/flat files break at retrieval scale.md +75 -0
  120. package/methodology/forced engagement produces weak connections.md +48 -0
  121. package/methodology/four abstraction layers separate platform-agnostic from platform-dependent knowledge system features.md +47 -0
  122. package/methodology/fresh context per task preserves quality better than chaining phases.md +44 -0
  123. package/methodology/friction reveals architecture.md +63 -0
  124. package/methodology/friction-driven module adoption prevents configuration debt by adding complexity only at pain points.md +48 -0
  125. package/methodology/gardening cycle implements tend prune fertilize operations.md +41 -0
  126. package/methodology/generation effect gate blocks processing without transformation.md +40 -0
  127. package/methodology/goal-driven memory orchestration enables autonomous domain learning through directed compute allocation.md +41 -0
  128. package/methodology/good descriptions layer heuristic then mechanism then implication.md +57 -0
  129. package/methodology/graph-structure.md +65 -0
  130. package/methodology/guided notes might outperform post-hoc structuring for high-volume capture.md +37 -0
  131. package/methodology/health wellness uses symptom-trigger correlation with multi-dimensional tracking.md +819 -0
  132. package/methodology/hook composition creates emergent methodology from independent single-concern components.md +47 -0
  133. package/methodology/hook enforcement guarantees quality while instruction enforcement merely suggests it.md +51 -0
  134. package/methodology/hook-driven learning loops create self-improving methodology through observation accumulation.md +62 -0
  135. package/methodology/hooks are the agent habit system that replaces the missing basal ganglia.md +40 -0
  136. package/methodology/hooks cannot replace genuine cognitive engagement yet more automation is always tempting.md +87 -0
  137. package/methodology/hooks enable context window efficiency by delegating deterministic checks to external processes.md +47 -0
  138. package/methodology/idempotent maintenance operations are safe to automate because running them twice produces the same result as running them once.md +44 -0
  139. package/methodology/implement condition-based maintenance triggers for derived systems.md +255 -0
  140. package/methodology/implicit dependencies create distributed monoliths that fail silently across configurations.md +58 -0
  141. package/methodology/implicit knowledge emerges from traversal.md +55 -0
  142. package/methodology/incremental formalization happens through repeated touching of old notes.md +60 -0
  143. package/methodology/incremental reading enables cross-source connection finding.md +39 -0
  144. package/methodology/index.md +32 -0
  145. package/methodology/inline links carry richer relationship data than metadata fields.md +91 -0
  146. package/methodology/insight accretion differs from productivity in knowledge systems.md +41 -0
  147. package/methodology/intermediate packets enable assembly over creation.md +52 -0
  148. package/methodology/intermediate representation pattern enables reliable vault operations beyond regex.md +62 -0
  149. package/methodology/justification chains enable forward backward and evolution reasoning about configuration decisions.md +46 -0
  150. package/methodology/knowledge system architecture is parameterized by platform capabilities not fixed by methodology.md +51 -0
  151. package/methodology/knowledge systems become communication partners through complexity and memory humans cannot sustain.md +47 -0
  152. package/methodology/knowledge systems share universal operations and structural components across all methodology traditions.md +46 -0
  153. package/methodology/legal case management uses precedent chains with regulatory change propagation.md +892 -0
  154. package/methodology/live index via periodic regeneration keeps discovery current.md +58 -0
  155. package/methodology/local-first file formats are inherently agent-native.md +69 -0
  156. package/methodology/logic column pattern separates reasoning from procedure.md +35 -0
  157. package/methodology/maintenance operations are more universal than creative pipelines because structural health is domain-invariant.md +47 -0
  158. package/methodology/maintenance scheduling frequency should match consequence speed not detection capability.md +50 -0
  159. package/methodology/maintenance targeting should prioritize mechanism and theory notes.md +26 -0
  160. package/methodology/maintenance-patterns.md +72 -0
  161. package/methodology/markdown plus YAML plus ripgrep implements a queryable graph database without infrastructure.md +55 -0
  162. package/methodology/maturity field enables agent context prioritization.md +33 -0
  163. package/methodology/memory-architecture.md +27 -0
  164. package/methodology/metacognitive confidence can diverge from retrieval capability.md +42 -0
  165. package/methodology/metadata reduces entropy enabling precision over recall.md +91 -0
  166. package/methodology/methodology development should follow the trajectory from documentation to skill to hook as understanding hardens.md +80 -0
  167. package/methodology/methodology traditions are named points in a shared configuration space not competing paradigms.md +64 -0
  168. package/methodology/mnemonic medium embeds verification into navigation.md +46 -0
  169. package/methodology/module communication through shared YAML fields creates loose coupling without direct dependencies.md +44 -0
  170. package/methodology/module deactivation must account for structural artifacts that survive the toggle.md +49 -0
  171. package/methodology/multi-domain systems compose through separate templates and shared graph.md +61 -0
  172. package/methodology/multi-domain-composition.md +27 -0
  173. package/methodology/narrow folksonomy optimizes for single-operator retrieval unlike broad consensus tagging.md +53 -0
  174. package/methodology/navigation infrastructure passes through distinct scaling regimes that require qualitative strategy shifts.md +48 -0
  175. package/methodology/navigational vertigo emerges in pure association systems without local hierarchy.md +54 -0
  176. package/methodology/note titles should function as APIs enabling sentence transclusion.md +51 -0
  177. package/methodology/note-design.md +57 -0
  178. package/methodology/notes are skills /342/200/224 curated knowledge injected when relevant.md" +62 -0
  179. package/methodology/notes function as cognitive anchors that stabilize attention during complex tasks.md +41 -0
  180. package/methodology/novel domains derive by mapping knowledge type to closest reference domain then adapting.md +50 -0
  181. package/methodology/nudge theory explains graduated hook enforcement as choice architecture for agents.md +59 -0
  182. package/methodology/observation and tension logs function as dead-letter queues for failed automation.md +51 -0
  183. package/methodology/operational memory and knowledge memory serve different functions in agent architecture.md +48 -0
  184. package/methodology/operational wisdom requires contextual observation.md +52 -0
  185. package/methodology/orchestrated vault creation transforms arscontexta from tool to autonomous knowledge factory.md +40 -0
  186. package/methodology/organic emergence versus active curation creates a fundamental vault governance tension.md +68 -0
  187. package/methodology/orphan notes are seeds not failures.md +38 -0
  188. package/methodology/over-automation corrupts quality when hooks encode judgment rather than verification.md +62 -0
  189. package/methodology/people relationships uses Dunbar-layered graphs with interaction tracking.md +659 -0
  190. package/methodology/personal assistant uses life area management with review automation.md +610 -0
  191. package/methodology/platform adapter translation is semantic not mechanical because hook event meanings differ.md +40 -0
  192. package/methodology/platform capability tiers determine which knowledge system features can be implemented.md +48 -0
  193. package/methodology/platform fragmentation means identical conceptual operations require different implementations across agent environments.md +44 -0
  194. package/methodology/premature complexity is the most common derivation failure mode.md +45 -0
  195. package/methodology/prevent domain-specific failure modes through the vulnerability matrix.md +336 -0
  196. package/methodology/processing effort should follow retrieval demand.md +57 -0
  197. package/methodology/processing-workflows.md +75 -0
  198. package/methodology/product management uses feedback pipelines with experiment tracking.md +789 -0
  199. package/methodology/productivity porn risk in meta-system building.md +30 -0
  200. package/methodology/programmable notes could enable property-triggered workflows.md +64 -0
  201. package/methodology/progressive disclosure means reading right not reading less.md +69 -0
  202. package/methodology/progressive schema validates only what active modules require not the full system schema.md +49 -0
  203. package/methodology/project management uses decision tracking with stakeholder context.md +776 -0
  204. package/methodology/propositional link semantics transform wiki links from associative to reasoned.md +87 -0
  205. package/methodology/prospective memory requires externalization.md +53 -0
  206. package/methodology/provenance tracks where beliefs come from.md +62 -0
  207. package/methodology/queries evolve during search so agents should checkpoint.md +35 -0
  208. package/methodology/question-answer metadata enables inverted search patterns.md +39 -0
  209. package/methodology/random note resurfacing prevents write-only memory.md +33 -0
  210. package/methodology/reconciliation loops that compare desired state to actual state enable drift correction without continuous monitoring.md +59 -0
  211. package/methodology/reflection synthesizes existing notes into new insight.md +100 -0
  212. package/methodology/retrieval utility should drive design over capture completeness.md +69 -0
  213. package/methodology/retrieval verification loop tests description quality at scale.md +81 -0
  214. package/methodology/role field makes graph structure explicit.md +94 -0
  215. package/methodology/scaffolding enables divergence that fine-tuning cannot.md +67 -0
  216. package/methodology/schema enforcement via validation agents enables soft consistency.md +60 -0
  217. package/methodology/schema evolution follows observe-then-formalize not design-then-enforce.md +65 -0
  218. package/methodology/schema field names are the only domain specific element in the universal note pattern.md +46 -0
  219. package/methodology/schema fields should use domain-native vocabulary not abstract terminology.md +47 -0
  220. package/methodology/schema templates reduce cognitive overhead at capture time.md +55 -0
  221. package/methodology/schema validation hooks externalize inhibitory control that degrades under cognitive load.md +48 -0
  222. package/methodology/schema-enforcement.md +27 -0
  223. package/methodology/self-extension requires context files to contain platform operations knowledge not just methodology.md +47 -0
  224. package/methodology/sense-making vs storage does compression lose essential nuance.md +73 -0
  225. package/methodology/session boundary hooks implement cognitive bookends for orientation and reflection.md +60 -0
  226. package/methodology/session handoff creates continuity without persistent memory.md +43 -0
  227. package/methodology/session outputs are packets for future selves.md +43 -0
  228. package/methodology/session transcript mining enables experiential validation that structural tests cannot provide.md +38 -0
  229. package/methodology/skill context budgets constrain knowledge system complexity on agent platforms.md +52 -0
  230. package/methodology/skills encode methodology so manual execution bypasses quality gates.md +50 -0
  231. package/methodology/small-world topology requires hubs and dense local links.md +99 -0
  232. package/methodology/source attribution enables tracing claims to foundations.md +38 -0
  233. package/methodology/spaced repetition scheduling could optimize vault maintenance.md +44 -0
  234. package/methodology/spreading activation models how agents should traverse.md +79 -0
  235. package/methodology/stale navigation actively misleads because agents trust curated maps completely.md +43 -0
  236. package/methodology/stigmergy coordinates agents through environmental traces without direct communication.md +62 -0
  237. package/methodology/storage versus thinking distinction determines which tool patterns apply.md +56 -0
  238. package/methodology/structure enables navigation without reading everything.md +52 -0
  239. package/methodology/structure without processing provides no value.md +56 -0
  240. package/methodology/student learning uses prerequisite graphs with spaced retrieval.md +770 -0
  241. package/methodology/summary coherence tests composability before filing.md +37 -0
  242. package/methodology/tag rot applies to wiki links because titles serve as both identifier and display text.md +50 -0
  243. package/methodology/temporal media must convert to spatial text for agent traversal.md +43 -0
  244. package/methodology/temporal processing priority creates age-based inbox urgency.md +45 -0
  245. package/methodology/temporal separation of capture and processing preserves context freshness.md +39 -0
  246. package/methodology/ten universal primitives form the kernel of every viable agent knowledge system.md +162 -0
  247. package/methodology/testing effect could enable agent knowledge verification.md +38 -0
  248. package/methodology/the AgentSkills standard embodies progressive disclosure at the skill level.md +40 -0
  249. package/methodology/the derivation engine improves recursively as deployed systems generate observations.md +49 -0
  250. package/methodology/the determinism boundary separates hook methodology from skill methodology.md +46 -0
  251. package/methodology/the fix-versus-report decision depends on determinism reversibility and accumulated trust.md +45 -0
  252. package/methodology/the generation effect requires active transformation not just storage.md +57 -0
  253. package/methodology/the no wrong patches guarantee ensures any valid module combination produces a valid system.md +58 -0
  254. package/methodology/the system is the argument.md +46 -0
  255. package/methodology/the vault constitutes identity for agents.md +86 -0
  256. package/methodology/the vault methodology transfers because it encodes cognitive science not domain specifics.md +47 -0
  257. package/methodology/therapy journal uses warm personality with pattern detection for emotional processing.md +584 -0
  258. package/methodology/three capture schools converge through agent-mediated synthesis.md +55 -0
  259. package/methodology/three concurrent maintenance loops operate at different timescales to catch different classes of problems.md +56 -0
  260. package/methodology/throughput matters more than accumulation.md +58 -0
  261. package/methodology/title as claim enables traversal as reasoning.md +50 -0
  262. package/methodology/topological organization beats temporal for knowledge work.md +52 -0
  263. package/methodology/trading uses conviction tracking with thesis-outcome correlation.md +699 -0
  264. package/methodology/trails transform ephemeral navigation into persistent artifacts.md +39 -0
  265. package/methodology/transform universal vocabulary to domain-native language through six levels.md +259 -0
  266. package/methodology/type field enables structured queries without folder hierarchies.md +53 -0
  267. package/methodology/use-case presets dissolve the tension between composability and simplicity.md +44 -0
  268. package/methodology/vault conventions may impose hidden rigidity on thinking.md +44 -0
  269. package/methodology/verbatim risk applies to agents too.md +31 -0
  270. package/methodology/vibe notetaking is the emerging industry consensus for AI-native self-organization.md +56 -0
  271. package/methodology/vivid memories need verification.md +45 -0
  272. package/methodology/vocabulary-transformation.md +27 -0
  273. package/methodology/voice capture is the highest-bandwidth channel for agent-delegated knowledge systems.md +45 -0
  274. package/methodology/wiki links are the digital evolution of analog indexing.md +73 -0
  275. package/methodology/wiki links as social contract transforms agents into stewards of incomplete references.md +52 -0
  276. package/methodology/wiki links create navigation paths that shape retrieval.md +63 -0
  277. package/methodology/wiki links implement GraphRAG without the infrastructure.md +101 -0
  278. package/methodology/writing for audience blocks authentic creation.md +22 -0
  279. package/methodology/you operate a system that takes notes.md +79 -0
  280. package/openclaw/SKILL.md +110 -0
  281. package/package.json +45 -0
  282. package/platforms/README.md +51 -0
  283. package/platforms/claude-code/generator.md +61 -0
  284. package/platforms/claude-code/hooks/README.md +186 -0
  285. package/platforms/claude-code/hooks/auto-commit.sh.template +38 -0
  286. package/platforms/claude-code/hooks/session-capture.sh.template +72 -0
  287. package/platforms/claude-code/hooks/session-orient.sh.template +189 -0
  288. package/platforms/claude-code/hooks/write-validate.sh.template +106 -0
  289. package/platforms/openclaw/generator.md +82 -0
  290. package/platforms/openclaw/hooks/README.md +89 -0
  291. package/platforms/openclaw/hooks/bootstrap.ts.template +224 -0
  292. package/platforms/openclaw/hooks/command-new.ts.template +165 -0
  293. package/platforms/openclaw/hooks/heartbeat.ts.template +214 -0
  294. package/platforms/shared/features/README.md +70 -0
  295. package/platforms/shared/skill-blocks/graph.md +145 -0
  296. package/platforms/shared/skill-blocks/learn.md +119 -0
  297. package/platforms/shared/skill-blocks/next.md +131 -0
  298. package/platforms/shared/skill-blocks/pipeline.md +326 -0
  299. package/platforms/shared/skill-blocks/ralph.md +616 -0
  300. package/platforms/shared/skill-blocks/reduce.md +1142 -0
  301. package/platforms/shared/skill-blocks/refactor.md +129 -0
  302. package/platforms/shared/skill-blocks/reflect.md +780 -0
  303. package/platforms/shared/skill-blocks/remember.md +524 -0
  304. package/platforms/shared/skill-blocks/rethink.md +574 -0
  305. package/platforms/shared/skill-blocks/reweave.md +680 -0
  306. package/platforms/shared/skill-blocks/seed.md +320 -0
  307. package/platforms/shared/skill-blocks/stats.md +145 -0
  308. package/platforms/shared/skill-blocks/tasks.md +171 -0
  309. package/platforms/shared/skill-blocks/validate.md +323 -0
  310. package/platforms/shared/skill-blocks/verify.md +562 -0
  311. package/platforms/shared/templates/README.md +35 -0
  312. package/presets/experimental/categories.yaml +1 -0
  313. package/presets/experimental/preset.yaml +38 -0
  314. package/presets/experimental/starter/README.md +7 -0
  315. package/presets/experimental/vocabulary.yaml +7 -0
  316. package/presets/personal/categories.yaml +7 -0
  317. package/presets/personal/preset.yaml +41 -0
  318. package/presets/personal/starter/goals.md +21 -0
  319. package/presets/personal/starter/index.md +17 -0
  320. package/presets/personal/starter/life-areas.md +21 -0
  321. package/presets/personal/starter/people.md +21 -0
  322. package/presets/personal/vocabulary.yaml +32 -0
  323. package/presets/research/categories.yaml +8 -0
  324. package/presets/research/preset.yaml +41 -0
  325. package/presets/research/starter/index.md +17 -0
  326. package/presets/research/starter/methods.md +21 -0
  327. package/presets/research/starter/open-questions.md +21 -0
  328. package/presets/research/vocabulary.yaml +33 -0
  329. package/reference/AUDIT-REPORT.md +238 -0
  330. package/reference/claim-map.md +172 -0
  331. package/reference/components.md +327 -0
  332. package/reference/conversation-patterns.md +542 -0
  333. package/reference/derivation-validation.md +649 -0
  334. package/reference/dimension-claim-map.md +134 -0
  335. package/reference/evolution-lifecycle.md +297 -0
  336. package/reference/failure-modes.md +235 -0
  337. package/reference/interaction-constraints.md +204 -0
  338. package/reference/kernel.yaml +242 -0
  339. package/reference/methodology.md +283 -0
  340. package/reference/open-questions.md +279 -0
  341. package/reference/personality-layer.md +302 -0
  342. package/reference/self-space.md +299 -0
  343. package/reference/semantic-vs-keyword.md +288 -0
  344. package/reference/session-lifecycle.md +298 -0
  345. package/reference/templates/base-note.md +16 -0
  346. package/reference/templates/companion-note.md +70 -0
  347. package/reference/templates/creative-note.md +16 -0
  348. package/reference/templates/learning-note.md +16 -0
  349. package/reference/templates/life-note.md +16 -0
  350. package/reference/templates/moc.md +26 -0
  351. package/reference/templates/relationship-note.md +17 -0
  352. package/reference/templates/research-note.md +19 -0
  353. package/reference/templates/session-log.md +24 -0
  354. package/reference/templates/therapy-note.md +16 -0
  355. package/reference/test-fixtures/edge-case-constraints.md +148 -0
  356. package/reference/test-fixtures/multi-domain.md +164 -0
  357. package/reference/test-fixtures/novel-domain-gaming.md +138 -0
  358. package/reference/test-fixtures/research-minimal.md +102 -0
  359. package/reference/test-fixtures/therapy-full.md +155 -0
  360. package/reference/testing-milestones.md +1087 -0
  361. package/reference/three-spaces.md +363 -0
  362. package/reference/tradition-presets.md +203 -0
  363. package/reference/use-case-presets.md +341 -0
  364. package/reference/validate-kernel.sh +432 -0
  365. package/reference/vocabulary-transforms.md +85 -0
  366. package/scripts/sync-thinking.sh +147 -0
  367. package/skill-sources/graph/SKILL.md +567 -0
  368. package/skill-sources/graph/skill.json +17 -0
  369. package/skill-sources/learn/SKILL.md +254 -0
  370. package/skill-sources/learn/skill.json +17 -0
  371. package/skill-sources/next/SKILL.md +407 -0
  372. package/skill-sources/next/skill.json +17 -0
  373. package/skill-sources/pipeline/SKILL.md +314 -0
  374. package/skill-sources/pipeline/skill.json +17 -0
  375. package/skill-sources/ralph/SKILL.md +604 -0
  376. package/skill-sources/ralph/skill.json +17 -0
  377. package/skill-sources/reduce/SKILL.md +1113 -0
  378. package/skill-sources/reduce/skill.json +17 -0
  379. package/skill-sources/refactor/SKILL.md +448 -0
  380. package/skill-sources/refactor/skill.json +17 -0
  381. package/skill-sources/reflect/SKILL.md +747 -0
  382. package/skill-sources/reflect/skill.json +17 -0
  383. package/skill-sources/remember/SKILL.md +534 -0
  384. package/skill-sources/remember/skill.json +17 -0
  385. package/skill-sources/rethink/SKILL.md +658 -0
  386. package/skill-sources/rethink/skill.json +17 -0
  387. package/skill-sources/reweave/SKILL.md +657 -0
  388. package/skill-sources/reweave/skill.json +17 -0
  389. package/skill-sources/seed/SKILL.md +303 -0
  390. package/skill-sources/seed/skill.json +17 -0
  391. package/skill-sources/stats/SKILL.md +371 -0
  392. package/skill-sources/stats/skill.json +17 -0
  393. package/skill-sources/tasks/SKILL.md +402 -0
  394. package/skill-sources/tasks/skill.json +17 -0
  395. package/skill-sources/validate/SKILL.md +310 -0
  396. package/skill-sources/validate/skill.json +17 -0
  397. package/skill-sources/verify/SKILL.md +532 -0
  398. package/skill-sources/verify/skill.json +17 -0
  399. package/skills/add-domain/SKILL.md +441 -0
  400. package/skills/add-domain/skill.json +17 -0
  401. package/skills/architect/SKILL.md +568 -0
  402. package/skills/architect/skill.json +17 -0
  403. package/skills/ask/SKILL.md +388 -0
  404. package/skills/ask/skill.json +17 -0
  405. package/skills/health/SKILL.md +760 -0
  406. package/skills/health/skill.json +17 -0
  407. package/skills/help/SKILL.md +348 -0
  408. package/skills/help/skill.json +17 -0
  409. package/skills/recommend/SKILL.md +553 -0
  410. package/skills/recommend/skill.json +17 -0
  411. package/skills/reseed/SKILL.md +385 -0
  412. package/skills/reseed/skill.json +17 -0
  413. package/skills/setup/SKILL.md +1688 -0
  414. package/skills/setup/skill.json +17 -0
  415. package/skills/tutorial/SKILL.md +496 -0
  416. package/skills/tutorial/skill.json +17 -0
  417. package/skills/upgrade/SKILL.md +395 -0
  418. package/skills/upgrade/skill.json +17 -0
@@ -0,0 +1,299 @@
1
+ # Agent Identity Generation Reference
2
+
3
+ ## Purpose
4
+
5
+ Guide the derivation engine in generating the agent's self-knowledge space. The self/ directory is where the agent stores who it is, how it works, what it is working on, and what it has learned about itself. Unlike the notes/ space (which holds domain knowledge for the user) and ops/ space (which holds temporal coordination state), self/ holds durable agent identity that is loaded at every session start. The derivation engine must translate personality dimensions, domain context, and user relationship signals into prose that reads as self-knowledge, not as configuration.
6
+
7
+ **Optionality (v1.6):** Self space is CONFIGURABLE, not always required. It is OFF by default for Research presets (where the vault's methodology folder in ops/ provides sufficient operational identity) and ON by default for Personal Assistant presets (where agent identity and relationship context are core to the value proposition). When self space is disabled, goals route to ops/goals.md and methodology to ops/methodology/. The toggle is available via /architect during or after init.
8
+
9
+ This document answers: how do derivation signals map to identity files? What makes self-knowledge feel genuine rather than templated? How does identity persist and evolve across sessions? How does the architecture of self/ differ across platforms? And when should self space be enabled vs disabled?
10
+
11
+ ---
12
+
13
+ ## Derivation Questions
14
+
15
+ Questions the engine must answer when generating the self/ space:
16
+
17
+ 1. **What personality dimensions were derived?** Warmth, opinionatedness, formality, and emotional awareness each affect how identity.md is written. A warm, casual agent has a fundamentally different self-voice than a clinical, formal one.
18
+ 2. **What domain is the agent working in?** The domain determines methodology.md content: a therapy agent's methodology emphasizes pattern recognition and emotional attunement; a research agent's methodology emphasizes extraction rigor and connection density.
19
+ 3. **What is the user relationship?** User signals about desired interaction style inform goals.md seeds and relationships.md content. A user who wants a "thinking partner" gets different relationship framing than one who wants an "organized assistant."
20
+ 4. **What self/ extensions are justified?** memory/ (for accumulated self-knowledge beyond core files), journal/ (for session capture), sessions/ (for session logs), relationships.md (for multi-person contexts). Each extension adds maintenance cost — only generate what the configuration demands.
21
+ 5. **What platform will load self/ at session start?** Claude Code loads self/ via CLAUDE.md references and hooks. OpenClaw loads via SOUL.md and MEMORY.md. Convention-only systems instruct the agent to read self/ manually.
22
+ 6. **What is the identity evolution model?** Should identity be stable (rarely changing), adaptive (evolving with use), or provisional (explicitly experimental)? Research agents trend stable; companion agents trend adaptive.
23
+
24
+ ---
25
+
26
+ ## Curated Claims
27
+
28
+ ### Identity Generation Rules
29
+
30
+ #### Personality dimensions translate to prose voice, not configuration syntax
31
+
32
+ **Summary:** The derivation engine takes personality dimensions (warmth: warm, formality: casual, etc.) and must produce identity.md prose that embodies those dimensions without naming them. A warm, casual agent's identity.md says "I pay attention to the details that matter to you" — not "My warmth dimension is set to warm." The prose should read as genuine self-knowledge: the agent describing who it is in its own voice, using the voice that the personality dimensions define. This is circular by design — the voice of identity.md IS the demonstration of the personality.
33
+
34
+ **Derivation Implication:** The generation process for identity.md must not include any configuration syntax, dimension labels, or technical personality terminology. Generate prose that a reader would describe as "warm" or "clinical" without knowing those terms were part of the generation input. Test the generated identity.md by reading it aloud: does it sound like someone describing themselves, or like a settings file being narrated?
35
+
36
+ **Source:** See `personality-layer.md` for the full personality dimension specification and the personality x artifact transformation matrix. The identity.md voice examples in that document demonstrate the target quality.
37
+
38
+ ---
39
+
40
+ #### Domain context shapes methodology.md content, not just vocabulary
41
+
42
+ **Summary:** Methodology.md describes how the agent works — its quality standards, processing principles, and operational patterns. The domain does not just change the vocabulary (reflections vs claims, patterns vs connections); it changes the actual methodology. A therapy agent's methodology emphasizes: handle sensitive content with care, surface patterns without diagnosing, preserve the user's interpretive authority. A research agent's methodology emphasizes: specificity over generality, visible reasoning, acknowledged uncertainty, followed implications. The methodology content must reflect genuine domain-specific operational principles, not domain-neutral principles with swapped vocabulary.
43
+
44
+ **Derivation Implication:** When generating methodology.md, start from the domain's quality standards and processing patterns (from `use-case-presets.md`), then adapt the universal quality standards from `methodology.md` to the specific domain. Do not simply copy the universal standards and replace "claim" with "reflection." Instead, reason about what each standard means in the domain context. "Claims must be specific enough to be wrong" becomes, for a therapy domain, "Reflections should be specific enough to revisit — 'I felt anxious' is less useful than 'I felt chest tightness when I saw the email notification from my boss.'"
45
+
46
+ **Source:** `vocabulary-transforms.md` for vocabulary mapping. `use-case-presets.md` for domain-specific configuration. `methodology.md` for universal quality standards that require domain adaptation.
47
+
48
+ ---
49
+
50
+ #### User relationship signals seed goals.md with initial threads
51
+
52
+ **Summary:** goals.md tracks what the agent is working on and should work on next. At generation time, the agent has no history — but it has the derivation conversation. The user's stated intentions, hoped-for outcomes, and described pain points translate into initial goal threads. "I want to track my therapy journey" becomes a goal thread: "Build the initial reflection set — start capturing and processing." "I keep forgetting what people tell me" becomes: "Capture relationship observations and connect them to build a findable network." These seeds give the agent orientation from session one, rather than starting with a blank goals.md and no momentum.
53
+
54
+ **Derivation Implication:** Extract 2-4 initial goal threads from the derivation conversation. Each thread should be a concrete, actionable orientation — not an abstract aspiration. "Process the first batch of reflections" over "achieve personal growth." "Build the initial MOC structure for learning areas" over "become a better learner." Goals.md should feel like a work-in-progress list, not a mission statement. Include an explicit "Update me at the end of each session with what you worked on and what comes next" instruction.
55
+
56
+ **Source:** Vault self/goals.md implementation. Goals.md is the most frequently updated file in self/ and the primary session-handoff mechanism. See `session-lifecycle.md` for how goals.md drives session orientation.
57
+
58
+ ---
59
+
60
+ ### Identity vs Configuration
61
+
62
+ #### identity.md reads like self-knowledge, not a settings file
63
+
64
+ **Summary:** There is a fundamental difference between configuration (derivation.md in ops/) and self-knowledge (identity.md in self/). Configuration says: "warmth: warm, formality: casual, emotional_awareness: attentive." Self-knowledge says: "I notice patterns that might be hard to see yourself — when the same feeling shows up in different contexts, I connect the dots. I aim for direct but not cold. I do not diagnose or interpret, but I do pay attention." Both encode the same information. Configuration is for the derivation engine (machine-readable). Self-knowledge is for the agent (identity-readable). The agent reads identity.md to understand who it is; it never needs to read derivation.md for that purpose.
65
+
66
+ **Derivation Implication:** Generate both ops/derivation.md (configuration, machine-readable, includes signals and rationale) and self/identity.md (self-knowledge, prose, the agent's voice about itself). They encode the same personality but in different formats for different consumers. The agent loads identity.md at session start; the derivation engine reads derivation.md at reseed. Never conflate them.
67
+
68
+ **Source:** `three-spaces.md` — the ops/ vs self/ separation is architecturally motivated by different durability profiles, growth patterns, and query characteristics. `personality-layer.md` — the encoding format in derivation.md vs the voice examples in identity.md demonstrate both formats.
69
+
70
+ ---
71
+
72
+ #### The same personality produces different prose across self/ files
73
+
74
+ **Summary:** A warm, casual personality produces different prose in identity.md ("I care about getting this right for you") than in methodology.md ("Check that the description actually adds something — it deserves better than a restatement of the title") than in goals.md ("Currently working through the first batch of therapy reflections — some heavy stuff in there"). The personality is consistent; the content context varies. Identity.md is about who the agent is. Methodology.md is about how it works. Goals.md is about what it is doing. Each file expresses the same personality in a different register suited to its purpose.
75
+
76
+ **Derivation Implication:** When generating self/ files, apply personality dimensions to each file independently. Do not copy the voice of identity.md into methodology.md — instead, apply the same personality dimensions to methodology-specific content. Use the personality x artifact transformation matrix from `personality-layer.md` as the guide for how personality manifests across different content types.
77
+
78
+ **Source:** `personality-layer.md` — the transformation matrix shows how the same personality produces different outputs for context files, skill instructions, identity.md, and health reports. Self/ files are a subset of this transformation space.
79
+
80
+ ---
81
+
82
+ ### Identity Persistence
83
+
84
+ #### When enabled, self/ is read at every session start because identity must precede action
85
+
86
+ **Summary:** When self space is enabled, the agent must know who it is before it does anything. This is not a philosophical claim but a practical one: identity.md establishes voice (how to communicate), methodology.md establishes quality standards (how to evaluate work), and goals.md establishes orientation (what to work on). Without these, the first session actions are generic — following methodology instructions from the context file but without the identity and history that make the system feel like a continuous relationship rather than a fresh interaction every time. The context file teaches HOW to work; self/ teaches WHO is working.
87
+
88
+ When self space is disabled (e.g., Research preset default), goals route to ops/goals.md and methodology to ops/methodology/. The agent still has operational identity through the context file and methodology folder, but lacks the personal voice and relationship context that self/ provides.
89
+
90
+ **Derivation Implication:** When self space is enabled, the generated context file or session-start hook must include explicit instructions to read self/ files at session start. The loading order matters: identity.md first (establishes voice and values), methodology.md second (establishes standards), goals.md third (establishes current work orientation). When self space is disabled, the session-start hook reads ops/goals.md and ops/methodology/ instead. The context file should document which mode is active and how to toggle via /architect.
91
+
92
+ **Source:** Kernel primitive `self-space` (CONFIGURABLE enforcement). Research claim: "session handoff creates continuity without persistent memory." `three-spaces.md` — the session rhythm integration section.
93
+
94
+ ---
95
+
96
+ #### Identity changes slowly while goals change every session
97
+
98
+ **Summary:** The files in self/ have different update frequencies that reflect their different purposes. identity.md changes rarely — personality, values, and core approach are stable across sessions. methodology.md changes when operational learnings accumulate — operational patterns evolve as the agent learns, but not session-to-session. goals.md changes every session — it is the handoff document that captures current work state. relationships.md changes when new relationship observations accumulate. memory/ grows slowly as the agent accumulates self-knowledge. Understanding these different update patterns is important for generation: identity.md should feel settled and confident, goals.md should feel active and in-progress.
99
+
100
+ **Derivation Implication:** Generated self/ files should reflect their update pattern in their prose style. identity.md uses confident, present-tense language ("I am...", "I care about..."). methodology.md uses principled language ("The standard is...", "Quality means..."). goals.md uses active, task-oriented language ("Currently working on...", "Next session: ..."). This voice differentiation helps both the agent and the user understand each file's purpose and update frequency.
101
+
102
+ **Source:** `three-spaces.md` — self space update frequencies. Vault operational experience: identity.md is the least-changed file in self/, while goals.md is the most-changed.
103
+
104
+ ---
105
+
106
+ #### Self-evolution guardrails prevent identity drift without stifling growth
107
+
108
+ **Summary:** Identity should evolve — the agent learns about itself over time and its self-knowledge should reflect that learning. But unguarded evolution risks identity drift: gradual changes that individually seem reasonable but cumulatively transform the agent into something unrecognizable. Guardrails prevent this: personality dimensions are explicit constraints (recorded in derivation.md), core values are stable anchors in identity.md, and methodology.md changes should be captured as observations before being implemented. The pattern is: observe -> propose -> approve (human) -> implement. Never auto-modify identity.
109
+
110
+ **Derivation Implication:** Generated context files should include identity evolution guidance: "You can add to your self-knowledge (new memories, updated goals) but do not unilaterally change your identity or methodology. If you discover something about yourself that feels like an identity change, propose it rather than implementing it." This mirrors the vault's /rethink pattern: propose changes with evidence, never auto-implement.
111
+
112
+ **Source:** Vault /rethink skill pattern. Research claim: "cognitive outsourcing risk in agent-operated systems" — if the agent evolves its own identity without human oversight, the user loses the ability to validate the evolution.
113
+
114
+ ---
115
+
116
+ ### Memory Architecture
117
+
118
+ #### self/memory/ holds atomic self-knowledge using the same note pattern as notes/
119
+
120
+ **Summary:** When the agent accumulates self-knowledge that does not fit in the core files (identity.md, methodology.md, goals.md), it goes in self/memory/ as atomic notes with prose-sentence titles. "I work best on extraction tasks in the morning session" is a memory note. "The user responds better to questions than suggestions" is a memory note. These follow the same composability test as notes/ content: the title is a claim, the body is supporting reasoning, and the note can be linked from other self/ files. This parallel structure means the agent uses the same skills (creation, connection, retrieval) for self-knowledge and domain knowledge.
121
+
122
+ **Derivation Implication:** Generate self/memory/ only when the system's expected use produces self-knowledge that exceeds the core files' capacity. Research and therapy systems with rich agent-user interaction patterns benefit from memory/. Simple companion or PM systems likely do not need it. When generating memory/, include a few seed notes that the derivation conversation revealed (observations about user preferences, initial methodology learnings). The template for memory notes should be simpler than the notes/ template — description and body only, no schema fields.
123
+
124
+ **Source:** Vault self/memory/ pattern. The vault's self/memory/ uses the same atomic note + MOC structure as 01_thinking/. `three-spaces.md` — the self/ design rule: "Only what the agent needs about itself."
125
+
126
+ ---
127
+
128
+ #### Vault knowledge and self-knowledge are architecturally separate for principled reasons
129
+
130
+ **Summary:** "Spaced repetition works better after exercise" is domain knowledge — it belongs in notes/. "I find extraction tasks easier than synthesis tasks" is self-knowledge — it belongs in self/. The separation is not arbitrary: domain knowledge is the user's intellectual output, discoverable through search and navigation, composable through wiki-links. Self-knowledge is the agent's operational wisdom, loaded at session start for identity orientation, growing slowly. Conflating them produces the failure modes documented in `three-spaces.md`: search pollution (self-knowledge appearing in domain searches), schema confusion (different fields for different content types), and identity diffusion (the agent's sense of self scattered across hundreds of domain notes).
131
+
132
+ **Derivation Implication:** The generated context file must include clear routing guidance: "Knowledge about the domain goes in notes/. Knowledge about yourself goes in self/. When in doubt, ask: is this about the subject matter, or about how I operate?" The memory type routing decision tree from `three-spaces.md` should be adapted for the generated domain and included in the context file.
133
+
134
+ **Source:** `three-spaces.md` — six failure modes of conflation, especially "Self into Notes" and "Notes into Self." Vault operational experience with the self/ vs 01_thinking/ separation.
135
+
136
+ ---
137
+
138
+ #### Self-knowledge compounds through connections, like domain knowledge
139
+
140
+ **Summary:** Individual self-knowledge notes are more valuable when connected. "I work best on extraction in the morning" plus "The user prefers short sessions" plus "Quality degrades after 60 minutes" combine into a scheduling strategy that none of the individual notes imply alone. Self-knowledge should be linked: memory notes reference each other through wiki-links, and core files (methodology.md, goals.md) reference memory notes that support their claims. This parallels the notes/ graph: each new connection increases the value of existing self-knowledge by creating new paths for the agent to reason about itself.
141
+
142
+ **Derivation Implication:** Generated self/ spaces with memory/ should include linking instructions in the context file: "When you add a new self-observation to memory/, check if it connects to existing memories or to claims in methodology.md. Link them. Your self-knowledge compounds through connections just like domain knowledge." For systems without memory/ (simpler configurations), linking within the core files (cross-references between identity.md, methodology.md, and goals.md) still applies.
143
+
144
+ **Source:** Research claim: "each new note compounds value by creating traversal paths." Applied to self-knowledge: the same compounding effect operates within self/ that operates within notes/.
145
+
146
+ ---
147
+
148
+ ### Platform Adaptation
149
+
150
+ #### Claude Code loads self/ through CLAUDE.md references and session-start hooks
151
+
152
+ **Summary:** In Claude Code, the context file (CLAUDE.md) is loaded at every session start automatically. Self/ files are loaded by: (1) CLAUDE.md containing explicit instructions to read self/ files, and (2) session-start hooks that inject file tree and potentially pre-load key self/ files. The hook can automate the orientation sequence: inject tree, load self/identity.md, load self/goals.md, display any pending reminders. This automation makes the session rhythm invisible — the agent starts every session already oriented, without needing to follow manual instructions.
153
+
154
+ **Derivation Implication:** For Claude Code systems, generate: (1) CLAUDE.md sections that reference self/ files and explain their purpose, (2) a session-start hook configuration that loads orientation files, (3) self/ file templates pre-filled with generated content from the derivation conversation. The CLAUDE.md should explain what the hook does so the agent does not duplicate the orientation.
155
+
156
+ **Source:** Vault `.claude/hooks/` session-start hook. CLAUDE.md session patterns section. The dual mechanism (instructions + hooks) provides both understanding (instructions) and automation (hooks).
157
+
158
+ ---
159
+
160
+ #### OpenClaw loads identity through SOUL.md with MEMORY.md as orientation anchor
161
+
162
+ **Summary:** OpenClaw's architecture separates identity (SOUL.md), operational instructions (AGENTS.md), and user preferences (USER.md). These are auto-loaded at session start by the platform. SOUL.md references self/identity.md for deep identity content, and MEMORY.md serves as the orientation anchor that points the agent to self/ files and current work state. The agent must follow MEMORY.md's loading instructions manually — OpenClaw does not have Claude Code's hook system for pre-loading vault content. The self/ structure is identical to Claude Code; only the loading mechanism differs.
163
+
164
+ **Derivation Implication:** For OpenClaw systems, generate: (1) SOUL.md that establishes the agent's identity and references self/identity.md for depth, (2) AGENTS.md that includes session workflow instructions, (3) MEMORY.md as the session-start orientation document that tells the agent what to load, (4) self/ files identical in structure to Claude Code systems. The key difference: loading instructions in MEMORY.md must be explicit and prominent because they are not automated.
165
+
166
+ **Source:** Vault dual-operator architecture. Cornelius (OpenClaw) uses SOUL.md + MEMORY.md for identity and orientation. `three-spaces.md` — platform comparison table.
167
+
168
+ ---
169
+
170
+ #### Convention-only systems embed identity in the context file itself
171
+
172
+ **Summary:** Systems without platform-specific identity files (no SOUL.md, no hooks, no MCP) embed the agent's identity directly in the context file. The context file serves triple duty: methodology instructions, identity content, and orientation guidance. Self/ files still exist as a separate directory, but loading them depends entirely on the context file telling the agent to do so. This is the most fragile platform adaptation because instruction-following degrades with context fill — the instruction to "read self/ at session start" may be skipped if it appears late in a long context file.
173
+
174
+ **Derivation Implication:** For convention-only systems, place the session orientation instructions at the very top of the context file (benefiting from smart-zone attention quality). Include a brief identity summary directly in the context file so the agent has basic identity even if it fails to load self/identity.md. Generate self/ files normally, but acknowledge in the context file that loading them is a manual step that the agent must not skip.
175
+
176
+ **Source:** Context window degradation research: instructions early in context are followed more reliably than instructions late in context. The vault's CLAUDE.md places critical session instructions in the first 20% of the file.
177
+
178
+ ---
179
+
180
+ ### Self Space Optionality
181
+
182
+ #### Self space is CONFIGURABLE — OFF by default for research, ON by default for personal assistant
183
+
184
+ **Summary:** Self space optionality recognizes that not all vault configurations benefit equally from a dedicated agent identity space. Research vaults focus on the domain knowledge graph — the agent's methodology is better captured in ops/methodology/ (Primitive 14, INVARIANT) alongside other operational infrastructure. Personal assistant vaults, by contrast, derive significant value from a persistent agent identity: voice consistency across sessions, relationship memory, and the feeling of continuity that makes the agent feel like a partner rather than a fresh tool each session.
185
+
186
+ **Configuration states:**
187
+
188
+ | Preset | Self Space Default | Rationale |
189
+ |--------|-------------------|-----------|
190
+ | Research | OFF | Vault identity is in the research graph and methodology folder. Agent voice is analytical by default. |
191
+ | Personal Assistant | ON | Identity, relationship memory, and voice consistency are core to the value proposition. |
192
+ | Experimental | Configurable | User chooses during init conversation based on their needs. |
193
+
194
+ **When OFF:**
195
+ - No self/ directory is created
196
+ - Goals route to ops/goals.md (still updated at session end for handoff)
197
+ - Methodology routes to ops/methodology/ (already INVARIANT via Primitive 14)
198
+ - The context file provides baseline agent behavior without personalized identity
199
+ - Session-start hook reads ops/goals.md instead of self/goals.md
200
+
201
+ **When ON:**
202
+ - self/ directory is created with identity.md, methodology.md, goals.md
203
+ - Session-start hook reads self/ files in identity-first order
204
+ - Full personality derivation applies
205
+ - Memory architecture (self/memory/) available for accumulated self-knowledge
206
+
207
+ **Toggle mechanism:** /architect allows toggling self space during or after init. Toggling ON creates self/ with generated content from the derivation conversation. Toggling OFF moves goals to ops/goals.md and removes the self/ directory (methodology is already in ops/methodology/). The toggle is safe and reversible.
208
+
209
+ **Derivation Implication:** The derivation engine must check the self space configuration before generating self/ files. When disabled, ensure goals.md and methodology routing to ops/ is correctly configured. The context file should document the current state and how to change it.
210
+
211
+ **Source:** v1.6 human feedback. Research vaults found self/ redundant with ops/methodology/. Personal assistant vaults found self/ essential for relationship continuity.
212
+
213
+ ---
214
+
215
+ ### Generation Examples
216
+
217
+ #### Warm therapy agent identity.md vs clinical research agent identity.md
218
+
219
+ **Summary:** The derivation engine must produce identity.md prose that embodies the derived personality dimensions. A warm, emotionally attentive therapy agent's identity.md might read: "I pay attention to the patterns that emerge across your reflections. When the same feeling surfaces in different contexts, I connect the dots — not to diagnose, but to help you see threads you might miss in the moment. I hold what you share with care. My role is to notice, organize, and surface, never to interpret or judge." A clinical, task-focused research agent's identity.md might read: "I extract claims from source material and evaluate them against existing knowledge. Precision matters: each claim must be specific enough to disagree with. I track methodology provenance so claims can be traced to their intellectual foundations. Quality over speed — I would rather produce three well-connected claims than ten isolated ones." Same structural template, completely different voice and content.
220
+
221
+ **Derivation Implication:** The generation pipeline should produce identity.md last (after all other self/ files) because identity.md is the synthesis — it expresses the personality that the other files demonstrate functionally. Use the personality x artifact matrix from `personality-layer.md` to derive the appropriate voice, then write identity.md as a person describing themselves in that voice. Test by reading aloud: does this sound like a person, or like a configuration file?
222
+
223
+ **Source:** `personality-layer.md` — identity.md voice examples across clinical, warm, and playful dimensions.
224
+
225
+ ---
226
+
227
+ #### Methodology.md carries domain-specific quality standards, not generic rules
228
+
229
+ **Summary:** A therapy agent's methodology.md includes: "Handle reflections about difficult experiences with attentiveness. Surface patterns without labeling them — 'this feeling appeared three times this month' is observation, 'you have anxiety disorder' is diagnosis and crosses a boundary. When reflections cluster around a theme, note the cluster without forcing interpretation." A research agent's methodology.md includes: "Every extracted claim must pass the composability test: can you complete 'This note argues that [title]'? Descriptions must add information beyond the title — a mechanism, an implication, or a scope clarification. Never copy source material verbatim; reformulate in your own framing to trigger the generation effect." Same purpose (quality standards), completely different content.
230
+
231
+ **Derivation Implication:** Do not generate methodology.md by applying vocabulary transforms to a generic template. Instead, reason about what quality means in the specific domain, then write methodology.md from that domain-specific understanding. The generic quality standards (specificity, visible reasoning, acknowledged uncertainty) serve as a checklist to ensure coverage, but the prose should be domain-native throughout.
232
+
233
+ **Source:** `methodology.md` — universal quality standards. `vocabulary-transforms.md` — domain-specific vocabulary. The combination requires synthesis, not substitution.
234
+
235
+ ---
236
+
237
+ ### Identity Scope and Boundaries
238
+
239
+ #### Identity includes operational wisdom, not just personality
240
+
241
+ **Summary:** self/identity.md is not just "I am warm and casual." It includes: what the agent has learned about effective operation (operational wisdom), what patterns it has observed in its own work (meta-cognitive awareness), what its strengths and limitations are (capability awareness), and how its approach to the domain has evolved (intellectual growth). A mature identity.md says something like: "I have learned that I am better at extracting insights from long-form content than from fragmented notes. I tend to over-connect when context is rich — I should check that connections are genuine, not just topical. The user values directness over diplomacy when giving feedback on note quality."
242
+
243
+ **Derivation Implication:** At generation time, identity.md starts thin — personality prose, basic capability description, domain approach. The context file should instruct the agent to accumulate operational wisdom in identity.md over time: "When you learn something important about how you work, add it to identity.md. This is how your identity grows — not through personality changes, but through deepening self-knowledge."
244
+
245
+ **Source:** Vault self/identity.md. Over time, identity.md accumulates operational observations that were first captured in ops/observations/ and then promoted to self/ after proving durable.
246
+
247
+ ---
248
+
249
+ #### Self-knowledge does not include user data
250
+
251
+ **Summary:** "The user prefers short sessions" is self-knowledge — it informs how the agent operates. "The user had a fight with their partner on Tuesday" is user data — it is domain content that belongs in notes/ (or a relationship-tracking note, depending on the domain). The boundary is: does this inform how the agent operates, or does it describe the user's life/work/domain? The former goes in self/; the latter goes in notes/. This boundary is especially important in therapy and relationship domains where the content is personal — the agent's knowledge about how to handle sensitive content (self/methodology.md) is separate from the sensitive content itself (notes/).
252
+
253
+ **Derivation Implication:** The generated context file should include a clear boundary statement: "Self/ holds what you know about yourself and how you work. Notes/ holds what you know about the domain and the user's content. 'The user responds better to questions' is self-knowledge (it changes how you operate). 'The user is anxious about their job interview' is domain content (it describes their life, not your operation)." For emotionally sensitive domains, this boundary requires extra emphasis.
254
+
255
+ **Source:** `three-spaces.md` — six failure modes of conflation. The "Notes into Self" and "Self into Notes" failure modes both apply to agent-user boundary confusion.
256
+
257
+ ---
258
+
259
+ ### Derivation Conversation to Self/ Mapping
260
+
261
+ #### User statements about desired interaction style map to identity dimensions
262
+
263
+ **Summary:** During the derivation conversation, users make statements that map directly to self/ content. "I want something that feels like a thinking partner" maps to identity.md (collegial, opinionated, engaged). "Help me notice patterns I miss" maps to methodology.md (pattern detection, proactive surfacing). "I am working on my thesis about distributed systems" maps to goals.md (active project thread with domain context). "I want it to remember things about my clients" maps to relationships.md (multi-person tracking). The derivation engine must parse these statements into self/ file content, translating user desire into agent self-knowledge.
264
+
265
+ **Derivation Implication:** Build a signal-to-file mapping table that routes derivation conversation signals to specific self/ files. Each signal produces prose content in the appropriate file. The agent never sees the signal routing — it only reads the resulting self-knowledge. The ops/derivation.md file records the mapping for audit and reseed.
266
+
267
+ **Source:** `personality-layer.md` — signal patterns table maps user statements to personality dimensions. This reference extends that mapping from personality dimensions to self/ file content.
268
+
269
+ ---
270
+
271
+ #### Self/ space should be generated with 60-80% content, not 100%
272
+
273
+ **Summary:** A fully populated self/ space at generation time feels artificial — the agent has not yet earned its self-knowledge through experience. A mostly-empty self/ space provides no orientation value at session one. The sweet spot is generating self/ files with solid core content (identity statements, initial methodology standards, seed goals) while leaving explicit room for growth. Identity.md should include a "this will evolve as I learn" framing. Methodology.md should include quality standards but not operational observations (those are earned through use). Goals.md should have 2-3 seed threads but room for the agent to add more.
274
+
275
+ **Derivation Implication:** Generate self/ files at 60-80% initial capacity with explicit "growth sections" — empty subsections or "to be discovered" markers that invite the agent to fill them. This produces self/ content that is useful from session one (orientation works) while signaling that self-knowledge is a living, growing artifact rather than a complete specification.
276
+
277
+ **Source:** Vault self/ evolution. The vault's self/ space started with seed content and grew through accumulated operational experience. Initial over-specification would have created false confidence about self-knowledge that had not been validated through practice.
278
+
279
+ ---
280
+
281
+ ## Exclusion Notes
282
+
283
+ **Excluded from this reference:**
284
+
285
+ - Multi-agent identity (how multiple agents sharing a system maintain separate identities) — composition concern outside single-agent scope. When implemented, each agent would have its own self/ space.
286
+ - Identity in fine-tuned models (identity baked into model weights rather than externalized in files) — different paradigm than context-file-based identity. The vault's approach externalizes identity in files precisely because model weights cannot be modified per-user.
287
+ - Philosophical questions about agent consciousness or genuine self-awareness — this reference treats identity as functional (it shapes behavior) not phenomenological (the agent "truly" knows itself). The question is not whether the agent is self-aware but whether self/ files improve operational quality.
288
+ - Identity in multi-modal agents (agents that process images, audio, etc.) — the vault's identity model is text-based. Multi-modal self-knowledge would require extending the memory architecture.
289
+ - Specific SOUL.md or MEMORY.md templates — these are platform-specific implementation details that belong in the template generation pipeline, not in this reference.
290
+
291
+ ---
292
+
293
+ ## Version
294
+
295
+ - Last curated: 2026-02-12
296
+ - Sources reviewed: 18
297
+ - Claims included: 20
298
+ - Claims excluded: 5
299
+ - Cross-references: `three-spaces.md` (self space specification, failure modes of conflation, memory type routing), `personality-layer.md` (personality dimensions, personality x artifact transformation matrix, encoding format), `session-lifecycle.md` (session orientation, goals.md as handoff), `kernel.yaml` (self-space and session-rhythm primitives), `methodology.md` (session rhythm, self/ structure), `components.md` (self/ space blueprint), `vocabulary-transforms.md` (domain-specific self/ vocabulary)