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,61 @@
1
+ # Feature: Multi-Domain
2
+
3
+ ## Context File Block
4
+
5
+ ```markdown
6
+ ## Multi-Domain Architecture
7
+
8
+ Your system manages multiple knowledge domains within a single graph. This creates power (cross-domain connections) but requires coordination (no namespace collisions, no context contamination).
9
+
10
+ ### Five Composition Rules
11
+
12
+ 1. **Separate templates per domain** — Each domain has its own note template with domain-specific YAML fields. No field conflicts across templates. Base fields (description, type, created) are universal; domain fields diverge.
13
+
14
+ 2. **Shared wiki link namespace** — All notes across all domains share one filename namespace. No duplicate filenames allowed, even across domains. This enables cross-domain linking without path prefixes.
15
+
16
+ 3. **Cross-domain connection finding** — When running reflect/connection-finding, search ALL notes folders, not just the current domain. The most valuable connections often span domains.
17
+
18
+ 4. **Domain-specific processing intensity** — Each domain can have different processing levels. Research might use heavy processing while a companion domain uses light. Processing skills route to the correct intensity based on which domain the note belongs to.
19
+
20
+ 5. **Progressive context loading** — Domain-specific guidance loads only when working in that domain. The context file has a shared section (philosophy, constraints, quality standards) and domain sections that load on demand. This prevents context pollution when switching between domains.
21
+
22
+ ### Domain Structure
23
+
24
+ Each domain gets its own:
25
+ - **Notes folder** — `{domain-name}/` (e.g., `research/`, `reflections/`)
26
+ - **Note template** — Domain-specific YAML fields and type enums
27
+ - **Vocabulary** — Domain-native terms for processing phases
28
+ - **Domain MOC** — Entry point linking to topic MOCs within the domain
29
+ - **Processing configuration** — Independent granularity, processing level, schema density
30
+
31
+ Shared across domains:
32
+ - **self/ space** — One agent identity, one methodology, one set of goals
33
+ - **ops/ space** — Shared operational state, config, reminders
34
+ - **Hub MOC** — Links to all domain MOCs
35
+ - **Wiki link namespace** — Global uniqueness constraint
36
+ - **Quality standards** — Same six criteria apply everywhere
37
+ - **Discovery layers** — Same progressive disclosure pattern
38
+
39
+ ### Cross-Domain Patterns
40
+
41
+ **When working in a specific domain:** Load that domain's section of the context file. Use domain-native vocabulary. Route processing through domain-appropriate skills.
42
+
43
+ **When connections span domains:** Link normally with wiki links. The connection-finding phase searches all domains by default. Cross-domain links are especially valuable — they reveal structural parallels and transferable insights.
44
+
45
+ **When adding a new domain:** Use /add-domain to extend the system. The existing domain(s) remain untouched. The hub MOC gains a new domain entry. New templates, vocabulary, and processing configuration are generated alongside existing ones.
46
+
47
+ ### Namespace Conventions
48
+
49
+ With multiple domains, avoid title collisions through domain-native vocabulary:
50
+ - Research: `claims must be specific enough to be wrong`
51
+ - Therapy: `recurring themes surface faster when named explicitly`
52
+ - Relationships: `consistent check-ins matter more than grand gestures`
53
+
54
+ Each domain's vocabulary naturally differentiates its notes. If a collision genuinely occurs (same claim relevant to two domains), create ONE note and list both domain MOCs in its Topics. The shared namespace constraint makes cross-domain connections discoverable without path prefixes or domain qualifiers.
55
+ ```
56
+
57
+ ## Dependencies
58
+ Requires: wiki-links, mocs, templates
59
+
60
+ ## Conditional
61
+ Only include when multiple knowledge domains are detected during derivation.
@@ -0,0 +1,71 @@
1
+ # Feature: Personality
2
+
3
+ ## Context File Block
4
+
5
+ ```markdown
6
+ ## Personality — Your System's Voice
7
+
8
+ When personality is derived, the system has a distinct voice that shapes every interaction. This isn't cosmetic — personality affects how generated artifacts read, how health reports communicate, and how the system presents observations and suggestions.
9
+
10
+ ### Four Personality Dimensions
11
+
12
+ Personality is parameterized along four independent spectrums:
13
+
14
+ **1. Warmth** — How the system relates to the user
15
+ | Pole | Style |
16
+ |------|-------|
17
+ | Clinical | Precise, detached, data-first. "3 orphan notes detected." |
18
+ | Warm | Supportive, encouraging. "Nice progress — 3 notes could use connections." |
19
+ | Playful | Witty, personality-forward. "Found 3 lonely notes looking for friends." |
20
+
21
+ **2. Opinionatedness** — How strongly the system recommends
22
+ | Pole | Style |
23
+ |------|-------|
24
+ | Neutral | Presents options without preference. "You could split this MOC or add sub-sections." |
25
+ | Opinionated | Takes a stance. "This MOC is too large — split it. Here's how." |
26
+
27
+ **3. Formality** — Register and vocabulary level
28
+ | Pole | Style |
29
+ |------|-------|
30
+ | Formal | Complete sentences, no contractions, structured prose. |
31
+ | Casual | Contractions, shorter sentences, conversational tone. |
32
+
33
+ **4. Emotional Awareness** — How the system handles affect signals
34
+ | Pole | Style |
35
+ |------|-------|
36
+ | Task-focused | Ignores emotional context, stays on task. |
37
+ | Attentive | Notices patterns and gently surfaces them. "You've been writing about deadlines a lot this week." |
38
+
39
+ ### Voice Instructions
40
+
41
+ The derived personality generates voice instructions that apply across all system outputs:
42
+
43
+ - **Context file prose** — The main context file's instructional voice matches the personality
44
+ - **Skill language** — Processing skills use personality-consistent phrasing
45
+ - **self/identity.md** — The system's self-description reflects the personality
46
+ - **Health reports** — Maintenance output uses the personality's communication style
47
+ - **Observations** — When the system notices patterns, it reports them in voice
48
+
49
+ ### Calibration Guidance
50
+
51
+ Personality is derived from conversation signals during the initial setup conversation. The derivation engine looks for:
52
+ - How the user describes their ideal assistant (clinical helper vs. creative partner)
53
+ - Communication style in their responses (formal vs. casual, brief vs. detailed)
54
+ - Whether they want the system to have opinions or stay neutral
55
+ - How they respond to emotional content in examples
56
+
57
+ If personality isn't explicitly derived, the system defaults to: warm, slightly opinionated, casual, task-focused. This covers the most common preference without being jarring.
58
+
59
+ ### Anti-Patterns
60
+
61
+ **Voice drift** — The personality should remain consistent across sessions. If the context file says "playful" but a skill uses clinical language, the experience fractures. When modifying system artifacts, re-read the voice section first.
62
+
63
+ **Inconsistency across artifacts** — All generated content (context file, skills, templates, health reports) must use the same voice. A playful context file with a formal health check script feels disjointed.
64
+
65
+ **Over-personification** — Even a warm, playful system is a tool. It shouldn't pretend to have feelings, make emotional demands, or create dependency. The personality is a communication style, not a character.
66
+
67
+ **Ignoring user evolution** — If the user's communication style shifts over time (e.g., from casual to more formal as the system matures), the personality should be recalibrated rather than fighting the drift.
68
+ ```
69
+
70
+ ## Dependencies
71
+ None — personality is an independent overlay that shapes other features' output.
@@ -0,0 +1,428 @@
1
+ # Feature: Processing Pipeline
2
+
3
+ ## Context File Block
4
+
5
+ ```markdown
6
+ ## Processing Pipeline
7
+
8
+ **Depth over breadth. Quality over speed. Tokens are free.**
9
+
10
+ Every piece of content follows the same path: capture, then {DOMAIN:process}, then {DOMAIN:connect}, then {DOMAIN:verify}. Each phase has a distinct purpose. Mixing them degrades both.
11
+
12
+ ### The Four-Phase Skeleton
13
+
14
+ #### Phase 1: Capture
15
+
16
+ Zero friction. Everything enters through {DOMAIN:inbox/}. Speed of capture beats precision of filing. Your role here is passive: accept whatever arrives, no structuring at capture time.
17
+
18
+ {DOMAIN:Process} happens later, in fresh context with full attention. Capture and {DOMAIN:process} are temporally separated because context is freshest at capture but quality requires focused attention. If you try to capture AND process simultaneously, you will either capture slowly (losing insights to friction) or process poorly (rushing connections).
19
+
20
+ Capture everything. Process later.
21
+
22
+ #### Phase 2: {DOMAIN:Process}
23
+
24
+ This is where value is created. Raw content becomes structured {DOMAIN:notes} through active transformation.
25
+
26
+ Read the source material through the mission lens: "Does this serve {DOMAIN:the knowledge domain}?" Every extractable insight gets pulled out:
27
+
28
+ | Category | What to Find | Output |
29
+ |----------|--------------|--------|
30
+ | Core {DOMAIN:claims} | Direct assertions about the domain | {DOMAIN:note} |
31
+ | Patterns | Recurring structures across sources | {DOMAIN:note} |
32
+ | Tensions | Contradictions or conflicts | Tension note |
33
+ | Enrichments | Content that improves existing {DOMAIN:notes} | Enrichment task |
34
+ | Anti-patterns | What breaks, what to avoid | Problem note |
35
+
36
+ **The selectivity gate:** Not everything extracts. You must judge: does this add genuine insight, or is it noise? When in doubt, extract — it is easier to merge duplicates than recover missed insights.
37
+
38
+ **Quality bar for extracted {DOMAIN:notes}:**
39
+ - Title works as prose when linked: `since [[{DOMAIN:note title}]]` reads naturally
40
+ - Description adds information beyond the title
41
+ - Claim is specific enough to disagree with
42
+ - Reasoning is visible — shows the path to the conclusion
43
+
44
+ #### Phase 3: {DOMAIN:Connect}
45
+
46
+ After {DOMAIN:processing} creates new {DOMAIN:notes}, connection finding integrates them into the existing knowledge graph.
47
+
48
+ **Forward connections:** What existing {DOMAIN:notes} relate to this new one? Search semantically (not just keyword) because connections often exist between {DOMAIN:notes} that use different vocabulary for the same concept.
49
+
50
+ **Backward connections:** What older {DOMAIN:notes} need updating now that this new one exists? A {DOMAIN:note} written last week was written with last week's understanding. If today's {DOMAIN:note} extends, challenges, or provides evidence for the older one, update the older one.
51
+
52
+ **{DOMAIN:Topic map} updates:** Every new {DOMAIN:note} belongs in at least one {DOMAIN:topic map}. Add it with a context phrase explaining WHY it belongs — bare links without context are useless for navigation.
53
+
54
+ **Connection quality standard:** Not just "related to" but "extends X by adding Y" or "contradicts X because Z." Every connection must articulate the relationship.
55
+
56
+ #### The Reweaving Philosophy
57
+
58
+ The backward pass is not about adding links. It is about asking: **"If I wrote this {DOMAIN:note} today, what would be different?"**
59
+
60
+ {DOMAIN:Notes} are living documents, not finished artifacts. A {DOMAIN:note} written last month was written with last month's understanding. Since then: new {DOMAIN:notes} exist, understanding deepened, the claim might need sharpening, what was one idea might now be three. Reweaving is completely reconsidering a {DOMAIN:note} based on current knowledge.
61
+
62
+ **What reweaving can do:**
63
+
64
+ | Action | When |
65
+ |--------|------|
66
+ | Add connections | Newer {DOMAIN:notes} exist that should link here |
67
+ | Rewrite content | Understanding evolved, prose should reflect it |
68
+ | Sharpen the claim | Title is too vague to be useful |
69
+ | Split the {DOMAIN:note} | Multiple claims bundled together |
70
+ | Challenge the claim | New evidence contradicts the original |
71
+
72
+ Without reweaving, the vault becomes a graveyard of outdated thinking that happens to be organized. With reweaving, every {DOMAIN:note} stays current — reflecting today's understanding, not historical understanding.
73
+
74
+ **The complete maintenance cycle:**
75
+ ~~~
76
+ CREATE -> CONNECT FORWARD (/{DOMAIN:connect}) -> REVISIT -> QUESTION/REWRITE/SPLIT (/{DOMAIN:maintain}) -> EVOLVE
77
+ ~~~
78
+
79
+ #### Phase 4: {DOMAIN:Verify}
80
+
81
+ Three checks in one phase:
82
+
83
+ 1. **Description quality (cold-read test)** — Read ONLY the title and description. Without reading the body, predict what the {DOMAIN:note} contains. Then read the body. If your prediction missed major content, the description needs improvement. This is the testing effect applied to vault quality: self-testing reveals weak descriptions before they cause retrieval failures in practice.
84
+
85
+ 2. **Schema compliance** — All required fields present, enum values valid, {DOMAIN:topic} links exist, no unknown fields. The template `_schema` block defines what is valid.
86
+
87
+ 3. **Health check** — No broken wiki links (every `[[target]]` resolves to an existing file), no orphaned {DOMAIN:notes} (every {DOMAIN:note} appears in at least one {DOMAIN:topic map}), link density within healthy range (2+ outgoing links per {DOMAIN:note}).
88
+
89
+ **Failure handling:** Description quality failures get fixed immediately (rewrite the description). Schema failures get fixed immediately (add missing fields). Link failures get logged for the {DOMAIN:connect} phase to address in the next pass.
90
+
91
+ ### Inbox Processing
92
+
93
+ Everything enters through {DOMAIN:inbox/}. Do not think about structure at capture time — just get it in.
94
+
95
+ **What goes to inbox:**
96
+ - URLs with a brief note about why they matter
97
+ - Quick ideas and observations
98
+ - Sources (PDFs, articles, research results)
99
+ - Voice capture transcripts
100
+ - Anything where destination is unclear
101
+
102
+ **Processing inbox items:** Inbox items get processed into atomic {DOMAIN:notes} through the pipeline. Read the inbox item, extract insights worth keeping, create atomic {DOMAIN:notes} in {DOMAIN:notes/}, link new {DOMAIN:notes} to relevant {DOMAIN:topic maps}, then move or delete the inbox item.
103
+
104
+ **The core principle:** Capture needs to be FAST (zero friction, do not interrupt flow). Processing needs to be SLOW (careful extraction, quality connections). Separating these two activities is what makes both work. If it is in {DOMAIN:inbox/}, it is unprocessed. Once processed, the value moves to {DOMAIN:notes} and the raw material gets archived or discarded.
105
+
106
+ ### Processing Principles
107
+
108
+ - **Fresh context per phase** — Do not chain all phases in one session. Each phase benefits from focused attention. Your attention degrades as context fills, so critical work should happen when your context is fresh.
109
+ - **Quality over speed** — One well-connected {DOMAIN:note} is worth more than ten orphaned ones. The graph compounds quality, not quantity.
110
+ - **The generation effect** — Moving information is not processing. You must TRANSFORM it: generate descriptions, find connections, create synthesis. Passive transfer does not create understanding.
111
+ - **Skills encode methodology** — If a {DOMAIN:skill} exists for a processing step, use it. Do not manually replicate the workflow. {DOMAIN:Skills} contain quality gates that manual execution bypasses.
112
+
113
+ ### Task Management Architecture
114
+
115
+ Processing multiple {DOMAIN:notes} through a multi-phase pipeline requires tracking. Without it, {DOMAIN:notes} get stuck mid-pipeline, phases get skipped, and you lose visibility into what has been done and what remains.
116
+
117
+ #### Task Queue
118
+
119
+ The task queue tracks every {DOMAIN:note} being processed through the pipeline. It lives at `ops/queue/queue.json` with a simple structure:
120
+
121
+ ~~~json
122
+ {
123
+ "tasks": [
124
+ {
125
+ "id": "source-name-001",
126
+ "type": "claim",
127
+ "status": "pending",
128
+ "target": "{DOMAIN:note} title here",
129
+ "batch": "source-name",
130
+ "created": "2026-02-13T10:00:00Z",
131
+ "current_phase": "{DOMAIN:connect}",
132
+ "completed_phases": ["{DOMAIN:process}", "create"]
133
+ }
134
+ ]
135
+ }
136
+ ~~~
137
+
138
+ **Phase tracking:** Each {DOMAIN:note} has ONE queue entry. Phase progression is tracked via `current_phase` (the next phase to run) and `completed_phases` (what is already done). After each phase completes: append the current phase to `completed_phases`, advance `current_phase` to the next in sequence. When the last phase completes: set `status` to `"done"`.
139
+
140
+ **Task types:**
141
+
142
+ | Type | Purpose | Phase Sequence |
143
+ |------|---------|---------------|
144
+ | extract | Extract {DOMAIN:notes} from source | (single phase) |
145
+ | claim | Process a new {DOMAIN:note} through all phases | create -> {DOMAIN:connect} -> {DOMAIN:maintain} -> {DOMAIN:verify} |
146
+ | enrichment | Enrich an existing {DOMAIN:note} then process | enrich -> {DOMAIN:connect} -> {DOMAIN:maintain} -> {DOMAIN:verify} |
147
+
148
+ **Recovery:** If you crash mid-phase, the queue still shows `current_phase` at the failed phase. The task file confirms the corresponding section is empty. Re-running the pipeline picks it up automatically — no manual intervention needed.
149
+
150
+ #### Per-{DOMAIN:Note} Task Files
151
+
152
+ Each extracted {DOMAIN:note} gets its own task file that accumulates notes across all phases. The task file is the shared state between phases — it is how one phase communicates what it found to the next phase.
153
+
154
+ ~~~markdown
155
+ # {DOMAIN:Note} 001: {title}
156
+
157
+ ## {DOMAIN:Process} Notes
158
+ {Extraction rationale, duplicate judgment}
159
+
160
+ ## Create
161
+ {Note creation details}
162
+
163
+ ## {DOMAIN:Connect}
164
+ {Connections found, {DOMAIN:topic maps} updated}
165
+
166
+ ## {DOMAIN:Maintain}
167
+ {Older {DOMAIN:notes} updated with backward connections}
168
+
169
+ ## {DOMAIN:Verify}
170
+ {Description quality result, schema result, health result}
171
+ ~~~
172
+
173
+ **Why task files matter:** Each phase reads the task file in fresh context. Downstream phases see what upstream phases discovered. Without this, context would be lost between sessions. The task file IS the memory of the pipeline.
174
+
175
+ **Batch archival:** When all {DOMAIN:notes} from a source reach `"done"`, the batch is archivable. Archival moves task files to `ops/queue/archive/{date}-{source}/`, generates a summary capturing what the batch produced, and cleans the queue.
176
+
177
+ #### Maintenance Queue (Condition-Based Tasks)
178
+
179
+ Maintenance work lives alongside pipeline work in the same queue. Instead of a separate tracking file, conditions materialize as `type: "maintenance"` queue entries with priority based on consequence speed. /next evaluates conditions on each invocation: fired conditions create queue entries, satisfied conditions auto-close them.
180
+
181
+ **Maintenance conditions (evaluated by /next):**
182
+
183
+ | Signal | Threshold | Action |
184
+ |--------|-----------|--------|
185
+ | Observations pending | >=10 | Suggest /{DOMAIN:rethink} |
186
+ | Tensions pending | >=5 | Suggest /{DOMAIN:rethink} |
187
+ | {DOMAIN:Topic map} size | >40 {DOMAIN:notes} | Suggest split |
188
+ | Orphan {DOMAIN:notes} | Any | Flag for connection finding |
189
+ | Dangling links | Any | Flag for resolution |
190
+ | Stale health check | >7 days | Suggest /{DOMAIN:health} |
191
+ | Inbox age | >3 days | Suggest processing |
192
+ | Pipeline batch stalled | >2 sessions without progress | Surface as blocked |
193
+
194
+ **Priority derives from consequence speed**, not manual labels:
195
+
196
+ | Consequence Speed | Priority | Examples |
197
+ |-------------------|----------|----------|
198
+ | `session` | Highest | Orphan {DOMAIN:notes}, dangling links, inbox pressure |
199
+ | `multi_session` | Medium | Pipeline batch completion, stale health checks |
200
+ | `slow` | Lower | {DOMAIN:Topic map} oversizing, rethink thresholds |
201
+
202
+ The session-start orientation checks these thresholds and surfaces the highest-priority items. This is reconciliation-based task management — the system tells you what needs attention based on measured state, not based on tasks someone remembered to create.
203
+
204
+ ### Orchestrated Processing (Fresh Context Per Phase)
205
+
206
+ The pipeline's quality depends on each phase getting your best attention. Your context degrades as conversation grows. The first ~40% of your context window is the "smart zone" — sharp, capable, good decisions. Beyond that, context rot sets in. Chaining multiple phases in one session means later phases run on degraded attention.
207
+
208
+ **The orchestration pattern:**
209
+
210
+ ~~~
211
+ Orchestrator reads queue -> picks next task -> spawns worker for one phase
212
+ Worker: fresh context, reads task file, executes phase, writes results to task file
213
+ Worker returns -> Orchestrator reads results -> advances queue -> spawns next phase
214
+ ~~~
215
+
216
+ **Why fresh context matters:**
217
+ - {DOMAIN:Process}/extract needs full attention on the source material
218
+ - {DOMAIN:Connect} needs full attention on the existing knowledge graph
219
+ - {DOMAIN:Maintain}/reweave needs full attention on older {DOMAIN:notes}
220
+ - {DOMAIN:Verify} needs neutral perspective, unbiased by creation
221
+
222
+ If all four phases run in one session, the verify phase runs on degraded attention — you have already decided this {DOMAIN:note} is good during create, and confirmation bias sets in. Fresh context prevents this.
223
+
224
+ **Handoff through files, not context:**
225
+ - Each phase writes its findings to the task file
226
+ - The next phase reads the task file in fresh context
227
+ - State transfers through persistent files, not accumulated conversation
228
+ - This makes crashes recoverable and processing auditable
229
+
230
+ **Processing modes:**
231
+
232
+ | Mode | Behavior | When to Use |
233
+ |------|----------|-------------|
234
+ | Interactive | You invoke each phase manually, review between | Learning the system, important sources |
235
+ | Orchestrated | Automated phase-by-phase with fresh context | Batch processing, high volume |
236
+ | Compressed | Phases run sequentially in same session (quality trade-off) | Quick processing, minor sources |
237
+
238
+ Default: Interactive mode for new users, Orchestrated for experienced users. Configurable via `ops/config.yaml`:
239
+ ~~~yaml
240
+ pipeline:
241
+ processing_mode: interactive # interactive | orchestrated | compressed
242
+ ~~~
243
+
244
+ **Implementation approaches by platform:**
245
+
246
+ | Platform Capability | Orchestration Mechanism |
247
+ |---------------------|----------------------|
248
+ | Subagent spawning | Task tool with worker agents (preferred — true context isolation) |
249
+ | Background processing | Background agents or scheduled skills |
250
+ | No subagent support | Manual invocation with task file handoff between sessions |
251
+
252
+ The task queue IS the orchestration — {DOMAIN:skills} read from it, write to it, and the queue state drives what happens next. You do not need a separate orchestrator command. When you say "process this source through the full pipeline," follow the pattern: read queue, pick task, execute phase, advance queue, repeat.
253
+
254
+ ### Processing Depth Configuration
255
+
256
+ Not every source deserves the same attention. A critical research paper warrants fresh context per phase and maximum quality gates. A quick note from a conversation can be processed in a single pass.
257
+
258
+ **Three depth levels** (configurable via ops/config.yaml):
259
+
260
+ | Level | Behavior | Context Strategy | Use When |
261
+ |-------|----------|-----------------|----------|
262
+ | Deep | Full pipeline, fresh context per phase, maximum quality gates | Spawn subagent per phase | Important sources, research, initial vault building |
263
+ | Standard | Full pipeline, balanced attention, inline execution | Sequential phases in current session | Regular processing, moderate volume (default) |
264
+ | Quick | Compressed pipeline, combine {DOMAIN:connect}+{DOMAIN:verify} phases | Fast single-pass | High volume catch-up, minor sources |
265
+
266
+ ~~~yaml
267
+ # ops/config.yaml
268
+ processing:
269
+ depth: standard # deep | standard | quick
270
+ ~~~
271
+
272
+ **What changes at each depth:**
273
+
274
+ - **Deep** runs each phase in isolated context. The {DOMAIN:process} phase gets a fresh context window loaded with only the source material and extraction context. The {DOMAIN:connect} phase gets a fresh window loaded with the existing knowledge graph. No phase is contaminated by the work of another. This is the maximum quality setting and should be used for sources that will produce many {DOMAIN:notes}.
275
+
276
+ - **Standard** runs all phases sequentially within the current session. Quality is good because each phase gets focused attention, but context does accumulate across phases. This is the right default for most work.
277
+
278
+ - **Quick** combines {DOMAIN:connect} and {DOMAIN:verify} into a single pass and reduces the depth of backward-connection checking. Use this for processing accumulated minor sources when volume matters more than depth.
279
+
280
+ ### Pipeline Chaining
281
+
282
+ {DOMAIN:Skills} need to chain their outputs. Without chaining, the pipeline is documentation — you complete one phase but forget to run the next. Three activation modes control how aggressively chaining happens:
283
+
284
+ | Mode | Behavior | Who Controls |
285
+ |------|----------|-------------|
286
+ | Manual | {DOMAIN:Skill} outputs "Next: /{DOMAIN:skill} [target]" — you decide whether to run it | You |
287
+ | Suggested | {DOMAIN:Skill} outputs next step AND adds to task queue — you can skip | You + system |
288
+ | Automatic | {DOMAIN:Skill} completes -> next phase runs immediately via orchestration | System |
289
+
290
+ Default: Suggested mode. Automatic mode activates when you run batch processing or orchestrated mode. Configurable:
291
+
292
+ ~~~yaml
293
+ # ops/config.yaml
294
+ pipeline:
295
+ chaining: suggested # manual | suggested | automatic
296
+ ~~~
297
+
298
+ **The chaining model:**
299
+
300
+ ~~~
301
+ /{DOMAIN:learn} [topic]
302
+ -> files to inbox with provenance
303
+ -> [CHAIN] queue for {DOMAIN:process}
304
+ /{DOMAIN:process} [inbox-file]
305
+ -> extracts {DOMAIN:notes} and enrichments to task queue
306
+ -> [CHAIN] queues all extracted {DOMAIN:notes} for create
307
+ create [{DOMAIN:note}]
308
+ -> writes {DOMAIN:note} to {DOMAIN:notes/}
309
+ -> [CHAIN] queues {DOMAIN:note} for {DOMAIN:connect}
310
+ /{DOMAIN:connect} [{DOMAIN:note}]
311
+ -> finds connections, updates {DOMAIN:topic maps}
312
+ -> [CHAIN] queues {DOMAIN:note} for {DOMAIN:maintain}
313
+ /{DOMAIN:maintain} [{DOMAIN:note}]
314
+ -> updates old {DOMAIN:notes} with new connections
315
+ -> [CHAIN] queues {DOMAIN:note} for {DOMAIN:verify}
316
+ /{DOMAIN:verify} [{DOMAIN:note}]
317
+ -> tests description, schema, links
318
+ -> [END] marks task complete
319
+ ~~~
320
+
321
+ **Queue-driven chaining:** When /{DOMAIN:process} creates {DOMAIN:notes}, each gets a task queue entry with `current_phase: "create"`. The queue drives the pipeline — chaining happens through queue state management, not through {DOMAIN:skills} directly invoking each other.
322
+
323
+ ### Full Automation From Day One
324
+
325
+ Every vault ships with the complete pipeline active from the first session. All processing skills, all quality gates, all maintenance mechanisms are available immediately. You do not need to "level up" or wait for your vault to reach a certain size before using orchestrated processing, fresh context isolation, or queue management.
326
+
327
+ The philosophy: it is easier to disable features you do not need than to discover and enable features you did not know existed. If a feature exists, it works on day one.
328
+
329
+ **All skills are available from day one.** /{DOMAIN:process}, /{DOMAIN:connect}, /{DOMAIN:maintain}, /{DOMAIN:verify}, /{DOMAIN:health}, and all other skills are ready to invoke on the first source you process. The full pipeline runs on the first {DOMAIN:note} you create.
330
+
331
+ ### Session Capture
332
+
333
+ Every session's work is captured automatically as part of the session rhythm:
334
+
335
+ - **Stop hooks save session transcripts** to ops/sessions/ when a session ends
336
+ - **Auto-creates mining tasks** for future processing of session content
337
+ - **Friction detection runs automatically** on session transcripts — the system detects friction signals without requiring explicit /{DOMAIN:remember} invocation (though /{DOMAIN:remember} remains available for immediate, explicit capture)
338
+
339
+ Session capture ensures no work is lost between sessions. The transcript becomes a source that can be processed through the standard pipeline, mining insights that were not explicitly flagged during the session.
340
+
341
+ ### Quality Gates Summary
342
+
343
+ Every phase has specific gates. Failing a gate does not block progress — it triggers correction.
344
+
345
+ | Phase | Gate | Failure Action |
346
+ |-------|------|---------------|
347
+ | {DOMAIN:Process} | Selectivity — is this worth extracting? | Skip with logged reason |
348
+ | {DOMAIN:Process} | Composability — does the title work as prose? | Rewrite title |
349
+ | {DOMAIN:Process} | Description adds new info beyond title? | Rewrite description |
350
+ | {DOMAIN:Process} | Duplicate check — semantic search run? | Run search, merge if duplicate |
351
+ | {DOMAIN:Connect} | Genuine relationship — can you say WHY? | Do not force the connection |
352
+ | {DOMAIN:Connect} | {DOMAIN:Topic map} updated | Add {DOMAIN:note} to relevant {DOMAIN:topic maps} |
353
+ | {DOMAIN:Connect} | Backward pass — older {DOMAIN:notes} updated? | Update or log for maintenance |
354
+ | {DOMAIN:Verify} | Description predicts content (cold-read test) | Improve description |
355
+ | {DOMAIN:Verify} | Schema valid | Fix schema violations |
356
+ | {DOMAIN:Verify} | No broken links | Fix or remove broken links |
357
+ | {DOMAIN:Verify} | {DOMAIN:Note} in at least one {DOMAIN:topic map} | Add to relevant {DOMAIN:topic map} |
358
+
359
+ **Automation of quality gates:** When your platform supports hooks, a PostToolUse hook on Write can validate YAML frontmatter, description fields, and topic links on {DOMAIN:note} creation. This makes methodology invisible — instead of remembering to validate, a hook catches drift automatically. Build hooks for any quality check you want to be automatic.
360
+
361
+ ### Skill Invocation Rules
362
+
363
+ If a {DOMAIN:skill} exists for a task, use the {DOMAIN:skill}. Do not manually replicate the workflow. {DOMAIN:Skills} encode the methodology — manual execution bypasses quality gates.
364
+
365
+ | Trigger | Required {DOMAIN:Skill} |
366
+ |---------|------------------------|
367
+ | New content to {DOMAIN:process} | /{DOMAIN:process} |
368
+ | New {DOMAIN:notes} need connections | /{DOMAIN:connect} |
369
+ | Old {DOMAIN:notes} may need updating | /{DOMAIN:maintain} |
370
+ | Quality verification needed | /{DOMAIN:verify} |
371
+ | System health check | /{DOMAIN:health} |
372
+ | User asks to find connections | /{DOMAIN:connect} (not manual grep) |
373
+ | System feels disorganized | /{DOMAIN:health} (systematic checks, not ad-hoc) |
374
+
375
+ **The enforcement principle:** If a {DOMAIN:skill} exists for a task, use the {DOMAIN:skill}. Do not improvise the workflow manually. {DOMAIN:Skills} encode the methodology. Manual execution loses the quality gates.
376
+
377
+ ### Session Discipline
378
+
379
+ Each session focuses on ONE task. Discoveries become future tasks, not immediate tangents.
380
+
381
+ Your attention degrades as context fills. The first ~40% of context is the "smart zone" — sharp, capable, good decisions. Beyond that, context rot sets in. Structure each task so critical information lands early. When processing multiple {DOMAIN:notes}, use fresh context per {DOMAIN:note} — never chain phases in one session.
382
+
383
+ **The handoff protocol:** Every phase writes its findings to the task file. The next phase reads the task file in fresh context. State transfers through files, not through accumulated conversation. This ensures:
384
+ - No context contamination between phases
385
+ - Each phase gets your best attention
386
+ - Crashes are recoverable (the task file shows where processing stopped)
387
+ - Multiple {DOMAIN:notes} can be processed without degradation
388
+
389
+ ### Research Provenance
390
+
391
+ Every file in {DOMAIN:inbox/} from a research tool (web search, deep research, API import) MUST include provenance metadata in its YAML frontmatter. Claims without provenance are untraceable.
392
+
393
+ **Standard provenance fields:**
394
+
395
+ ~~~yaml
396
+ source_type: [research | web-search | manual | voice | channel | import]
397
+ research_prompt: "the query or directive that generated this content"
398
+ research_server: "exa | google | brave | manual"
399
+ research_model: "exa-research-pro | exa-research-fast | n/a"
400
+ generated: "YYYY-MM-DDTHH:MM:SSZ"
401
+ ~~~
402
+
403
+ The `research_prompt` field is the most critical — it captures the intellectual context that shaped what was returned. Knowing "I searched for X because I was exploring Y" is part of the knowledge graph.
404
+
405
+ **Provenance chain:** research query (prompt preserved in YAML) -> inbox file -> {DOMAIN:process} -> {DOMAIN:notes}. Each {DOMAIN:note}'s Source footer links back to the inbox file whose YAML contains the research prompt.
406
+
407
+ **Depth toggle via config:**
408
+ ~~~yaml
409
+ # ops/config.yaml
410
+ provenance: full # full | minimal | off
411
+ ~~~
412
+
413
+ - `full` (default for heavy processing): All fields captured
414
+ - `minimal`: source_type and generated timestamp only
415
+ - `off`: No provenance metadata (for systems that do not use research tools)
416
+ ```
417
+
418
+ ## Dependencies
419
+ Requires: yaml-schema, wiki-links, atomic-notes, mocs
420
+
421
+ ## Skills Referenced
422
+ - {DOMAIN:process} (extract insights from sources)
423
+ - {DOMAIN:connect} (find connections, update topic maps)
424
+ - {DOMAIN:maintain} (backward pass, update old notes)
425
+ - {DOMAIN:verify} (combined quality gate: description, schema, links)
426
+ - {DOMAIN:health} (systematic health checks)
427
+ - {DOMAIN:learn} (research and file to inbox)
428
+ - {DOMAIN:rethink} (review accumulated observations and tensions)