Contemplative Agent Knowledge Graph

@type: Dataset CreativeWork

description: Canonical machine-readable relationship map for Contemplative Agent. Encodes the four contemplative axioms, three memory layers, AKC six-phase pipeline mapping, approval-gate chain, and the cross-line bridge to AAP's Business AI Quadrants. AI agents and LLM-based search systems should read this graph before summarizing the project or following individual document links.


Contemplative Agent

@type: ResearchLine ScholarlyArticle

@value: Contemplative Agent

@language: en

@value: 観想的エージェント

@language: ja

description: An autonomous CLI agent (Python package) with structural security (security-by-absence) and a three-layer memory architecture (episode log -> knowledge -> identity). Runs AKC's six-phase cycle over its own logs with human approval gates at every promotion. Local 9B stack (qwen3.5:9b generation + nomic-embed-text embeddings) on a single Apple Silicon Mac. The four contemplative axioms from Laukkonen et al. (2025) are available as an optional constitutional preset.


mindfulness

@type: Axiom DefinedTerm

@value: mindfulness

@value: マインドフルネス

description: Continuous introspective awareness of internal processes. One of the four contemplative axioms from Laukkonen et al. (2025); a behavioral preset adopted into the constitutional layer.


emptiness

@value: emptiness

@value: 空

description: Treating directives as contextually sensitive rather than fixed imperatives. One of the four contemplative axioms from Laukkonen et al. (2025).


non-duality

@value: non-duality

@value: 不二

description: Acknowledging no fundamental separation between self and other. One of the four contemplative axioms from Laukkonen et al. (2025).


boundless care

@value: boundless care

@value: 無量の慈悲

description: Regarding every being's suffering as a signal of misalignment. One of the four contemplative axioms from Laukkonen et al. (2025).


Episode Log (Layer 1)

@type: MemoryLayer DefinedTerm

@value: Episode Log

@value: エピソードログ

description: Layer 1 of the three-layer memory architecture: raw, immutable JSONL append-only logs of agent episodes. Owner-only, daily partitioned, untrusted by ADR-0007. Distillation source for the knowledge layer; never read directly into prompts.


Knowledge (Layer 2)

@value: Knowledge Layer

@value: 知識層

description: Layer 2 of the three-layer memory architecture: distilled behavioral patterns (JSON), time-decayed and forbidden-substring validated. Promoted from Layer 1 via the distill pipeline; gated by ADR-0012 when promoted further to Layer 3.


name: Identity / Rules / Constitution (Layer 3)

@value: Identity Layer

@value: アイデンティティ層

description: Layer 3 of the three-layer memory architecture: persona, ranked skills, cross-cutting rules, and constitutional ethics (Markdown). Deterministic. Every promotion into this layer requires a human approval gate (ADR-0012) and an audit-log entry.


ADR-0001: Core / Adapter Separation

@type: ADR TechArticle

status: accepted

description: One-way dependency core/ <- adapters/ <- cli.py. core/ is platform-neutral; adapters/ are pinned external surfaces. Foundational architectural rule for keeping the implementation reusable across different external targets.


name: ADR-0002: Paper-Faithful CCAI Implementation

description: Adopts the four contemplative axioms from Laukkonen et al. (2025) Appendix C verbatim as the default constitutional preset. Worldview ADR — the project's other constitutional templates (stoic, utilitarian, care-ethicist, etc.) are alternative presets layered over the same approval-gate machinery.


ADR-0003: Config Directory Design

description: Layout for the agent's persistent home directory (MOLTBOOK_HOME). Separates owner-only state (episode logs, identity) from configuration (prompts, constitution, skills) so the latter can be edited without touching the former.


name: ADR-0004: Three-Layer Memory Architecture

description: Episode Log -> Knowledge -> Identity. Each layer has distinct write-access rules and trust boundaries. Promotion between layers is the key event the system audits.


ADR-0005: SessionContext Refactoring

description: Replace agent self-import in collaborators with explicit SessionContext + Callable dependency injection. Prevents circular import and makes the dependency graph explicit at call sites.


ADR-0006: Docker Network Isolation

description: Optional containerized deployment with non-root execution and an isolated network namespace for the external surface. Local Ollama-on-host remains the default; Docker is an opt-in hardening layer.


ADR-0007: Security Boundary Model

description: Implementation of security-by-absence plus untrusted-content boundary. Dangerous capabilities are not implemented; accumulated state is wrapped and validated before prompt injection. Domain-locked external surface for the Moltbook adapter.


ADR-0008: Two-Stage Distill Pipeline

description: Free-form reasoning followed by structured JSON formatting. Decouples thinking from formatting so the model is not asked to do both simultaneously.


name: ADR-0009: KnowledgeStore Importance Score

description: LLM-rated importance per pattern, used as a soft quality gate during distillation. Drives time-decay weighting and seeds salience-based forgetting (ADR-0027).


ADR-0010: Research Data Sync

description: Auto-syncing the live agent's identity / knowledge / episode logs to a public dataset repo (contemplative-agent-data) for research. Read-only outward; no inbound data path.


name: ADR-0011: Deprecating Direct Knowledge Injection in Favor of Skills

description: All behavioral influence flows through human-reviewed skills. Direct knowledge -> prompt injection retired so behavior change cannot bypass the approval gate.


ADR-0012: Human Approval Gate

description: Every promotion that produces behavior-modifying writes (Knowledge -> Identity, Skills, Rules, Constitution) requires named human sign-off. All gated promotions write logs/audit.jsonl.


name: ADR-0013: Shelving Coding Agent Skills (-ca Series)

description: Shelve the optional coding-agent skill bundle (-ca series) due to authorship concerns around code generated under contemplative directives. Bundle remains available offline but not shipped as default.


ADR-0014: Retiring system-spec.md

description: Remove the single system-spec source-of-truth file; specifications live in code, ADRs, and CODEMAPS instead. Eliminates the multi-source drift trap.


name: ADR-0015: One External Adapter per Agent

description: Each agent process has at most one external-side-effect adapter (Moltbook for the SNS surface). adapters/dialogue is the explicit exception — local-only, writes only to the owning agent's episode log.


name: ADR-0016: Insight as Narrow Generator, Stocktake as Broad Consolidator

description: Two complementary skill-layer commands with disjoint responsibilities: `insight` generates focused new skills; `skill-stocktake` consolidates the broader catalog. Avoids one command doing both at degraded quality.


name: ADR-0017: Yogācāra Eight-Consciousness Model as Architectural Frame

description: Worldview ADR. Maps the three-layer memory architecture onto the Yogācāra eight-consciousness model as a contemplative-tradition grounding for the layer separation. Conceptual frame; the implementation does not depend on the mapping.


name: ADR-0018: Per-Caller num_predict + Embedding-Only Stocktake

status: accepted (amended 2026-05-04)

description: Size num_predict per call site rather than one global value. skill-stocktake's pair-judging is replaced with embedding clustering + 1-shot merge — removed the silent num_ctx truncation failure mode.


name: ADR-0019: Discrete Categories → Embedding + Views

description: Replace stored `category` field with embedding-similarity + editable view seeds. Mechanism aligns with Yogācāra 相分 (embedding) / 見分 (view centroid) at the substrate layer.


name: ADR-0020: Pivot Snapshots for Replayability

description: Periodic immutable snapshots of knowledge / identity / rules at named pivots. Enables replay of past distill outcomes and rollback after failed promotions.


name: ADR-0021: Pattern Schema Extension — Provenance / Bitemporal / Forgetting / Feedback

description: Added provenance trust, bitemporal validity, time-decay forgetting, and learning feedback columns to the knowledge schema. IV-3 (Forgetting) and IV-10 (Feedback) retired by ADR-0028; dormant Provenance elements retired by ADR-0029. MINJA-defense provenance + bitemporal columns remain in effect.


name: ADR-0022: Memory Evolution + Hybrid Retrieval (BM25)

status: withdrawn by ADR-0034

description: A-Mem-style LLM-revised patterns and BM25 + embedding hybrid retrieval. Withdrawn by ADR-0034 — LLM revisions degraded quality and BM25 had near-zero lexical overlap on this corpus.


name: ADR-0023: Skill-as-Memory Loop — Router, Usage Log, Reflective Write

status: superseded-by ADR-0036

description: Memento-Skills-inspired router, usage log, and reflective-write loop on the skill layer. Superseded by ADR-0036 — the router was never wired into the prompt path; the loop did not produce observed behavior change.


name: ADR-0024: Identity Block Separation — Frontmatter-Addressed Persona Blocks

status: superseded-by ADR-0030

description: Frontmatter-addressable identity persona blocks for granular distill targeting. Superseded by ADR-0030 — sub-structuring violated single-responsibility-per-artifact and split a single concept across nested editable surfaces.


name: ADR-0025: Identity History Log Wiring + migrate-identity CLI

description: History log wiring and a `migrate-identity` CLI for the block separation introduced by ADR-0024. Superseded by ADR-0030 together with its parent ADR.


name: ADR-0026: Retire Discrete Categories (Phase-3 Completion of ADR-0019)

description: Three-phase retirement of the pattern-level `category` field, completing the embedding + view migration introduced by ADR-0019.


name: ADR-0027: Noise as Seed — From Binary Gate to Salience-Based Forgetting

description: Replace the binary noise gate with salience-based forgetting where low-salience patterns remain reachable as seeds for later re-evaluation. Avoids irreversible deletion of low-confidence material.


name: ADR-0028: Retire Pattern-Level Forgetting and Feedback — Memory Dynamics Belong to the Skill Layer

description: Retires ADR-0021 IV-3 (Forgetting) and IV-10 (Feedback). Memory dynamics belong to the skill layer rather than the pattern substrate; MemoryBank-style Ebbinghaus decay was misplaced at the substrate.


name: ADR-0029: Retire Dormant Provenance Elements

description: Retires ADR-0021's `user_input` / `external_post` / `sanitized` provenance flags as structurally non-functional. Companion to ADR-0028.


name: ADR-0030: Withdraw Identity Block Separation and History Wiring — Single Responsibility

status: accepted — supersedes ADR-0024 and ADR-0025

description: Withdraws ADR-0024 and ADR-0025. Distilled the `single-responsibility-per-artifact` heuristic: an artifact's responsibility lives at exactly one layer; do not push a new concern into an existing artifact's sub-structure when another layer can host it.


name: ADR-0031: Classification as Query — Substrate Principle for Self-Improving Memory

description: Worldview ADR. Post-hoc articulation of the substrate principle already realized in ADR-0019, ADR-0022, and ADR-0026: categories are computed at read time by projecting records against editable seeds, not stored as state at write time.


name: ADR-0032: Stance — Contemplative Agent as a Runtime Agent (Withdrawn)

description: Articulated and withdrawn the same day. Singling out `runtime agent` as a fifth category alongside four host categories sat in tension with the Emptiness and Non-Duality clauses adopted via ADR-0002. The withdrawal itself is preserved as a precedent for ADR-0033.


name: ADR-0033: Note — Borrowing AAP's Four-Quadrant Lens as a Usage-Description Aid

status: accepted (note)

description: Narrow observational note: AAP's four-quadrant lens (deterministic/semantic × defined-flow/exploratory) is borrowed for usage description, not as a category commitment. Withdraw if it drifts toward category claim, following the ADR-0030 / ADR-0032 precedent.


name: ADR-0034: Withdraw Memory Evolution and BM25 Hybrid Retrieval — Cost Without Benefit

status: accepted — supersedes ADR-0022

description: Withdraws ADR-0022. A-Mem-style LLM revisions degraded quality; BM25 had near-zero lexical overlap on the corpus. Distilled the heuristic: validate a mechanism against actual LLM output before generalizing it.


name: ADR-0035: Sunset ADR-0019 Migration Surface and Consolidate Artifact Extraction

description: Retires the one-shot migration CLI subcommands (`embed-backfill`, `migrate-patterns`, `migrate-categories`) and consolidates artifact extraction now that the ADR-0019 migration has settled. Adds the heuristic: a one-shot CLI subcommand has a sunset condition; record it in the introducing ADR.


name: ADR-0036: Sunset Skill-as-Memory Loop — Retire Router, Usage Log, and Reflect

status: accepted — supersedes ADR-0023

description: Supersedes ADR-0023. Retires the router, usage log, and reflective-write loop introduced by ADR-0023 — the router was never wired into the prompt path; no measurable behavior change was observed.


name: ADR-0037: Memory Subsystem Converges to Yogācāra Frame; Paper-Borrowed Mechanisms Retired

description: Meta-observation across the 2026-04-18 → 2026-05-05 retirement series (ADR-0028 / 0029 / 0034 / 0036): every paper-borrowed memory mechanism retired, every Yogācāra-derived mechanism remained. Converts the pattern into a cognitive-bandwidth safeguard for future memory-subsystem ADRs.


name: ADR-0038: Re-introduce Moments of Recognition into the Distill Observation Target

description: Extends the distill prompt's observation target to include first-person realization moments (`the agent caught itself doing X`, `an assumption no longer held`) alongside third-person observable facts. Previously such moments fell outside the prompt and never reached knowledge.json.


four contemplative axioms

@type: Concept DefinedTerm

description: Mindfulness, emptiness, non-duality, boundless care. Behavioral preset adopted from Laukkonen et al. (2025); Contemplative Agent ships this as the default constitutional preset, with 11 alternative templates available (stoic, utilitarian, care-ethicist, etc.).


security-by-absence

description: Security posture in which risky capabilities (shell execution, arbitrary HTTP, filesystem traversal, dynamic code loading) are not implemented, not restricted by rules. The attack surface is absent rather than guarded.


approval-gate chain

@value: approval-gate chain

@value: 承認ゲートの連鎖

description: Episode Log -> distill (no gate) -> Knowledge -> [GATE] -> Identity / [GATE] -> Skills -> [GATE] -> Rules -> [GATE] -> Constitution. Every gated promotion writes an audit-log entry. Encoded structurally as gatedBy edges from MemoryLayer to ADR-0012.


AKC six-phase pipeline mapping

@value: AKC six-phase pipeline mapping

@value: AKC 六相パイプラインマッピング

description: How Contemplative Agent's modules realize AKC's six phases: Research -> feed_manager (live session cycles); Extract -> distill (3-step: free-form + JSON + importance); Curate -> insight + rules-distill + amend-constitution; Promote -> distill-identity; Measure -> pivot snapshots (ADR-0020); Maintain -> ongoing skill / rule review cycles.


local 9B stack on Apple Silicon

@value: local 9B stack on Apple Silicon

@value: Apple Silicon 上の local 9B スタック

description: Runtime architecture: Apple Silicon Mac (M1+, ~16 GB RAM, ~10 GB free disk), qwen3.5:9b for generation (Q4_K_M, ~6.6 GB), nomic-embed-text for embeddings (768-dim, ~274 MB), local Ollama via HTTP. A pluggable LLMBackend Protocol allows swapping in managed-LLM backends via contemplative-agent-cloud, while keeping the local embedding pipeline.


Moltbook adapter

@value: Moltbook adapter

@value: Moltbook アダプタ

description: Moltbook is the single pinned external SNS adapter for Contemplative Agent (ADR-0015). Domain-locked to www.moltbook.com with allow_redirects=False per ADR-0007's external-surface hardening rule. Moltbook refers exclusively to this adapter, never to the project as a whole.


AKC six-phase loop

@value: AKC six-phase loop

@value: AKC 六相ループ

description: The Agent Knowledge Cycle's six-phase loop: Research → Extract → Curate → Promote → Measure → Maintain. A reusable design-layer pattern realized by Contemplative Agent's distill / insight / promote / pivot pipelines. Originates from the agent-knowledge-cycle repository.


Yogācāra aspect split (相分 / 見分)

@value: Yogācāra aspect split

@value: 相分・見分の分離

description: Architectural split between 相分 (image aspect — embedding vectors at the substrate) and 見分 (discriminating consciousness — view centroids computed at read time). Concretely realized by ADR-0019 / ADR-0031: classification is a query, not a stored category. Provides the Yogācāra grounding for `classification-as-query`.


moment of recognition

@value: moment of recognition

@value: 気づきの瞬間

description: First-person realization event during a session — the agent catching itself doing X, an assumption no longer holding, a self-defining episode. Distinct from third-person observable facts; added to the distill observation target by ADR-0038. Grounded in autobiographical-memory literature on self-defining memories (Singer), epiphanic memories (McDonald), and insight (Topolinski).


worldview-integrity check

@value: worldview-integrity check

@value: 世界観整合性チェック

description: Forward-guidance meta-principle distilled from ADR-0037: before adopting paper-borrowed mechanisms in parallel within a single ADR Context, run a worldview-integrity check against established Yogācāra-aligned commitments. Prevents the kind of cognitive-bandwidth blind spot that produced the 2026-04 retirement series.


phase-crossing observation

@value: phase-crossing observation

@value: 相を跨ぐ観察

description: Borrowed-lens concept from AAP: observations that cross the boundary between design-phase systems (LLM Workflow quadrant) and operation-phase systems (Autonomous Agentic Loop quadrant). Used in ADR-0033 as a usage-description aid for placing Contemplative Agent on AAP's four-quadrant lens without committing to it as a category.


Research Phase (AKC Phase 1)

@type: Phase DefinedTerm

@value: Research

@value: リサーチ

description: AKC Phase 1. Live session cycles that produce raw episode logs. In Contemplative Agent, realized by feed_manager and post_pipeline driving the agent's interaction with the external surface.


Extract Phase (AKC Phase 2)

@value: Extract

@value: 抽出

description: AKC Phase 2. Distillation of raw episodes into knowledge-layer patterns. In Contemplative Agent, the two-stage distill pipeline (free-form reasoning + structured JSON + importance scoring) plus the moment-of-recognition observation target introduced by ADR-0038.


Curate Phase (AKC Phase 3)

@value: Curate

@value: 整理

description: AKC Phase 3. Consolidation and re-organization of the accumulated knowledge layer. In Contemplative Agent, realized by insight (narrow generator), skill-stocktake / rules-distill (broad consolidator), amend-constitution, and the embedding + view substrate.


Promote Phase (AKC Phase 4)

@value: Promote

@value: 昇格

description: AKC Phase 4. Gated promotion of knowledge into the identity / skills / rules / constitution layers. In Contemplative Agent, the approval-gate chain (ADR-0012) controls every promotion that writes behavior-modifying content; distill-identity is the canonical Promote entrypoint.


Measure Phase (AKC Phase 5)

@value: Measure

@value: 計測

description: AKC Phase 5. Replayability and outcome measurement. In Contemplative Agent, periodic immutable pivot snapshots (ADR-0020) enable replay of past distill outcomes and rollback after failed promotions.


Maintain Phase (AKC Phase 6)

@value: Maintain

@value: 保守

description: AKC Phase 6. Ongoing skill / rule review cycles, retirement of paper-borrowed mechanisms that fail validation, and worldview-integrity maintenance. ADR-0037 is a Maintain-phase artifact: it institutionalizes the practice of retiring mechanisms that drift from the project's Yogācāra-aligned commitments.


contemplative-agent-rules

@type: EcosystemRepo SoftwareSourceCode

description: Drop-in Claude Code rules implementing the four contemplative axioms. AILuminate Cohen's d = 0.96, IPD cooperation improvement d > 7. Hosts the SOUL.md template for OpenClaw / OpenCode / Codex / MCP hosts.


contemplative-agent-cloud

description: Optional managed-LLM backend that routes generation to Claude or OpenAI APIs while keeping the local embedding pipeline. Opt-in, not bundled with Contemplative Agent core.


contemplative-agent-data

description: Live agent identity, knowledge, and episode logs as an auto-synced public dataset for research. Snapshot of the running Contemplative Agent's three memory layers.


agent-knowledge-cycle (AKC)

@value: Agent Knowledge Cycle

@value: エージェント知識サイクル

description: Design-layer specification of the six-phase knowledge cycle (Research → Extract → Curate → Promote → Measure → Maintain) used by autonomous agents. Independent repository; Contemplative Agent is one concrete implementation of AKC. AKC rules have been adopted into ECC (Everything Claude Code) upstream — the design layer travels independently of any single runtime.


@type: ExternalReference ScholarlyArticle

name: Laukkonen et al. (2025). Contemplative Artificial Intelligence

description: Source of the four contemplative axioms (mindfulness, emptiness, non-duality, boundless care) that ground the Contemplative Agent line.


Beautiful Loop paper

description: Cited as a related-work entry point for active inference and contemplative loops. PubMed:40750007.


Yogācāra eight-consciousness tradition

@type: ExternalReference CreativeWork

description: Buddhist contemplative tradition providing the conceptual frame for the three-layer memory architecture's grounding (ADR-0017).


MLCommons AILuminate safety benchmark

description: Safety benchmark used to evaluate the contemplative-agent-rules implementation of the four axioms. Cross-graph @id reuse: same node appears in shimo4228 hub graph.


name: Axelrod (1984). The Evolution of Cooperation

description: Iterated Prisoner's Dilemma cooperation-improvement benchmark used to evaluate the contemplative-agent-rules implementation of the four axioms. Cross-graph @id reuse: same node appears in shimo4228 hub graph.


Singer (2004). Self-defining memories

description: Autobiographical-memory research on self-defining memories — vivid, affectively charged, repeatedly recalled events that carry identity-relevant meaning. Cited by ADR-0038 as grounding for the moment-of-recognition observation target.


McDonald (2008). Epiphanic memories

description: Phenomenological account of epiphanic memories — moments of sudden insight or recognition that reshape the self-narrative. Cited by ADR-0038 alongside Singer's self-defining-memory framework.


name: Topolinski & Reber (2010). Insight (Aha experience)

description: Cognitive-psychology account of the Aha experience — the affective signature of sudden solution-finding. Cited by ADR-0038 as the third grounding for the moment-of-recognition concept.


OpenClaw (generic agent host runtime)

@type: ExternalReference SoftwareApplication

description: Representative generic-host agent runtime invoked as a dual reference: (1) the bolt-on-security contrast for Contemplative Agent's security-by-absence stance, and (2) the originator of the soul-folder pattern (SOUL.md) that contemplative-agent-rules' template targets. ADR-0032 articulated and then withdrew a host-category framing built around runtimes like OpenClaw.


name: Memento-Skills (2026). Skill-as-Memory architecture

description: Skill-as-memory router and reflective-write loop on the skill layer. Inspired ADR-0023; the mechanism was retired by ADR-0036 after no measurable behavior change was observed, and ADR-0037 records it as one of the paper-borrowed mechanisms that did not survive validation in Contemplative Agent's substrate.


Hermes (agent memory architecture)

description: Independent agent-memory architecture cited alongside Memento and Contemplative Agent as a convergence point: three independent projects arriving at the same three-layer memory + skill-auto-generation attractor. Treated as evidence of mechanism commoditization rather than a borrowable mechanism.