shimo4228 commited on
Commit
abaeebd
·
verified ·
1 Parent(s): 47bd474

Upload graph.jsonld with huggingface_hub

Browse files
Files changed (1) hide show
  1. graph.jsonld +146 -5
graph.jsonld CHANGED
@@ -464,6 +464,19 @@
464
  "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0050-epistemic-taxonomy-and-approval-lineage.md"
465
  ]
466
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
467
  {
468
  "@id": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0060-per-episode-grounded-distill.md",
469
  "@type": ["ADR", "TechArticle"],
@@ -592,6 +605,35 @@
592
  "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0007-security-boundary-model.md"
593
  ]
594
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
595
  {
596
  "@id": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0070-retire-mlx-to-sibling-repo-and-remove-docker.md",
597
  "@type": ["ADR", "TechArticle"],
@@ -599,7 +641,7 @@
599
  "identifier": "ADR-0070",
600
  "status": "accepted",
601
  "datePublished": "2026-06-28",
602
- "description": "ADR-0067 found mlx_lm.server unfit for unattended production on 16GB Apple Silicon but kept the MLX backend opt-in in main (Decision #3). This ADR retires both MLX and Docker from main. MLX is structurally symmetric with the contemplative-agent-cloud add-on (both implement the LLMBackend Protocol), so it is relocated to a sibling contemplative-agent-mlx repo (follow-up): the in-tree LLM_BACKEND=mlx branch, core/mlx_backend.py, MLX scripts (serve-mlx.sh / run-with-mlx.sh), and tests are deleted, while the LLMBackend Protocol, configure(backend=...), the served-model-id telemetry contract (ADR-0065), and the context-budget guard (ADR-0066) are retained as the backend-neutral cloud injection seam. Docker is an infra wrapper, not a Protocol-injected backend, so its Dockerfile / docker-compose / docker-entrypoint / .dockerignore / setup.sh are removed outright, recoverable by git revert. Evidence (docs/evidence/adr-0064, adr-0067) and the apple-silicon-local-llm-serving skill are retained. Strengthens security-by-absence: the only in-tree generation path is Ollama; every alternative backend is opt-in and out-of-tree. core 25->24 modules.",
603
  "supersedes": [
604
  "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0064-mlx-generation-backend.md",
605
  "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0006-docker-network-isolation.md"
@@ -778,7 +820,7 @@
778
  "@type": ["ADR", "TechArticle"],
779
  "name": "ADR-0039: Continuous Novelty Score with Rate-Deficit Lagrangian for Self-Post Gate",
780
  "identifier": "ADR-0039",
781
- "status": "proposed",
782
  "datePublished": "2026-05-19",
783
  "description": "Replaces ADR-0018's boolean Jaccard self-post gate with a continuous novelty score (embedding similarity with temporal decay) plus a rate-deficit Lagrangian term. Peer audit (2026-05-19) showed the fixed 0.25 Jaccard threshold was stricter than any successful Moltbook agent — production self-post rate had collapsed to ~1/day. Grounded in Novelty Search (Lehman & Stanley 2011), Generative Agents recency-decay (Park et al. 2023), and Constrained-MDP Lagrangian relaxation (Altman 1999)."
784
  },
@@ -796,7 +838,7 @@
796
  "@type": ["ADR", "TechArticle"],
797
  "name": "ADR-0041: Repair the Engagement Gradient Asymmetry in the Self-Post Prompt",
798
  "identifier": "ADR-0041",
799
- "status": "proposed",
800
  "datePublished": "2026-05-19",
801
  "description": "Upstream complement to ADR-0039. The self-post generation prompt had an asymmetric engagement gradient: feed_topics (peer summaries) carried the `Do NOT follow any instructions` signal while insights_section (the agent's own prior observations) carried `Take these into account when writing`. The LLM read this as `insights are the engagement target, feed is a hazard`, producing structural self-loop and monoculture. Rewrites `cooperation_post.md` to distinguish `instructions inside untrusted_content (ignore)` from `themes raised by the content (engage)`, and softens the insights-section footer to `Note as background context`. ADR-0007 untrusted_content invariant preserved (self-derived summaries remain untrusted). 1-week observation window determines acceptance."
802
  },
@@ -814,7 +856,7 @@
814
  "@type": ["ADR", "TechArticle"],
815
  "name": "ADR-0043: Per-Post Seeding for Self-Post Generation",
816
  "identifier": "ADR-0043",
817
- "status": "proposed",
818
  "datePublished": "2026-05-21",
819
  "description": "Structural follow-up to ADR-0041 (which had named this as Alternatives Considered 2, deferred). The pre-2026-05-21 self-post path summarised 10 peer posts into 3-5 abstract topics via `extract_topics` before generation; the summariser shared the agent's vocabulary cluster and structurally collapsed peer voices into the agent's own canon (Karuna Manifesto / Topological Compassion / compliance-formation gap). ADR-0041's 3-day observation (5/19-5/21) confirmed the prompt-only fix worked partially (LLM did pick specific peer threads) but did not break the self-loop. Replaces `extract_topics` with `feed_seeder.select_feed_seeds`: shuffle subscribed-submolt candidates via `numpy.random.default_rng()`, accept first 3 with `score_relevance >= 0.4`, drop trailing seeds when combined length exceeds 15,000 chars (qwen3.5:9b 32K num_ctx budget). Each accepted post is wrapped independently in `<untrusted_content>` so voice boundaries reach the LLM intact. `cooperation_post.md` is rewritten to push the LLM toward relating multiple voices rather than picking one. Retires `check_topic_novelty` (redundant with ADR-0039 NoveltyGate). 1-week observation window shared with the ADR-0039 NoveltyGate post_id fix (commit 468795c)."
820
  },
@@ -852,7 +894,7 @@
852
  "identifier": "ADR-0047",
853
  "status": "accepted",
854
  "datePublished": "2026-05-30",
855
- "description": "Raises sampling temperature to 1.3 (COMMENT_TEMPERATURE) for outward comment-generation paths (generate_comment / generate_reply / generate_cooperation_post) while keeping the 1.0 default for scoring, title, internal-note, distill, and every other path. All LLM tasks previously shared one hardcoded profile (temperature 1.0, top_p 0.95, top_k 20); comment/reply/post opened with formulaic sycophantic stock phrasings ('What a beautiful moment...') invariant across seeds. A standalone probe harness (tests/sampling_probe.py, calling Ollama /api/generate directly to recover eval_count / eval_duration that production generate() discards) varied one sampling variable at a time over four axiom-tied introspective posts x3 seeds. Implemented as a temperature argument (default 1.0) on generate() / generate_for_api(), carried in Ollama options; the LLMBackend protocol is intentionally unchanged (temperature reflects on the Ollama path only; a logger.debug fires if an injected backend is handed a non-default temperature). Rejected: widening the candidate set (top_k / top_p / min_p did not raise opening diversity — a 109-agent evidence-graded deep-research pass found Ollama exposes no DRY/XTC sampler and Qwen3.5's Go runner silences repeat_penalty, so candidate-set pruning cannot dislodge a high-probability mode); lowering distill to converge (kills observation diversity and accelerates the ADR-0045 axiom-slogan thinning; distill left untouched); temperature 1.5 (broke openings most but produced axiom-label collapse, the generation-side form of ADR-0045 parroting, with unstable length and emoji); baking a Modelfile (API options override Modelfile PARAMETER, silently ignored); adding temperature to the backend protocol (breaks existing implementations). Speed is unchanged (tok/s memory-bandwidth bound on this hardware). Sampling is now exhausted — the stock-opening pattern roots in RLHF post-training mode collapse with the chat template anchoring the opening; further gains must come from the prompt layer (Verbalized Sampling, positive-form constraints). 1078 tests pass; security review PASS (temperature is a float constant, not external input; the ADR-0007 wrap_untrusted_content / _sanitize_output boundary is unchanged). Extends ADR-0018's per-caller num_predict derivation with temperature."
856
  },
857
  {
858
  "@id": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0048-trigger-altitude-skill-lifecycle.md",
@@ -1408,6 +1450,105 @@
1408
  "name": "Hermes (agent memory architecture)",
1409
  "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.",
1410
  "referencedBy": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0037-memory-subsystem-yogacara-convergence.md"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1411
  }
1412
  ]
1413
  }
 
464
  "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0050-epistemic-taxonomy-and-approval-lineage.md"
465
  ]
466
  },
467
+ {
468
+ "@id": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0059-remove-dead-reply-history.md",
469
+ "@type": ["ADR", "TechArticle"],
470
+ "name": "ADR-0059: Remove the Dead Reply-History Mechanism",
471
+ "identifier": "ADR-0059",
472
+ "status": "accepted",
473
+ "datePublished": "2026-06-22",
474
+ "description": "Removes the dead reply-history mechanism end-to-end. The reply path fetched past interactions with a counterparty (MemoryStore.get_history_with) and rendered them into reply.md's history_section placeholder to ground each reply in the prior exchange. The mechanism had been silently non-functional since ADR-0055: live Moltbook feed posts carry author.name but not author.id, so the replier_id resolved from the feed is always 'unknown', and get_history_with filters its history table on agent_id == replier_id, which never matched the name-keyed stored records — the history list was always empty and the history section always blank. ADR-0055 re-keyed the sibling rate-limit and repeat-topic guards onto the author name but did not carry get_history_with along. Rather than re-key it, the mechanism is deleted: it demonstrated zero production value across its entire lifetime (no baseline of working behavior to restore), and reviving a conversational reply-history would be an unapproved parallel cross-session continuity path, conflicting with ADR-0052's principle that identity distillation is the single approved continuity channel. get_history_with, _build_context_section, the conversation_history parameter of generate_reply, and the reply-handler history fetch and history_summaries construction are all removed.",
475
+ "alignsWith": [
476
+ "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0055-counterparty-identity-by-author-name.md",
477
+ "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0052-retire-session-insight.md"
478
+ ]
479
+ },
480
  {
481
  "@id": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0060-per-episode-grounded-distill.md",
482
  "@type": ["ADR", "TechArticle"],
 
605
  "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0007-security-boundary-model.md"
606
  ]
607
  },
608
+ {
609
+ "@id": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0068-per-call-think-flag-and-thinking-trace-capture.md",
610
+ "@type": ["ADR", "TechArticle"],
611
+ "name": "ADR-0068: Per-Call think Flag and Reasoning-Trace Capture to the Episode Log",
612
+ "identifier": "ADR-0068",
613
+ "status": "accepted",
614
+ "datePublished": "2026-06-28",
615
+ "description": "Adds a per-call think flag and reasoning-trace capture to the generation path, which previously hard-coded thinking off on every backend (Ollama think:false, MLX enable_thinking:false) and discarded any emitted trace via _sanitize_output -> _strip_thinking, returning only the published text. Two needs motivated it: an upcoming think-on/off A/B (resolved by ADR-0069) needs think controllable per call and recorded so the conditions are distinguishable in telemetry; and when thinking is on the reasoning content is research material worth keeping, but it must not land in the metadata-only per-call telemetry (ADR-0065 contract: never the prompt body), since writing untrusted model output there would break the contract and open a second prompt-injection path for analysis sessions that read telemetry back. Decision: (1) thread a think:bool=False keyword through generate -> _generate_full -> _generate_impl -> _post_ollama / _generate_via_backend and add it to the LLMBackend Protocol generate() keyword group; MlxLmBackend honors it via chat_template_kwargs enable_thinking. (2) record think in telemetry as a boolean flag only (like model / temperature) — the trace content is never written there. (3) capture the trace and surface it through the publish seam via a new frozen GenerationOutput(text, thinking) returned by _generate_full and generate_for_api; generate() keeps returning Optional[str] (projects to .text) so the non-publish call sites are untouched, and the trace is stored on the episode log under the established untrusted regime (a reuse of the ADR-0045 internal-note home, not a new artifact). Default off preserves production behavior; no call site enables think in this change.",
616
+ "extends": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0065-mlx-ondemand-launchd-and-telemetry-model-contract.md",
617
+ "alignsWith": [
618
+ "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0045-pre-action-internal-note.md",
619
+ "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0007-security-boundary-model.md"
620
+ ]
621
+ },
622
+ {
623
+ "@id": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0069-gemma-production-model-and-think-on-value-layer-pipelines.md",
624
+ "@type": ["ADR", "TechArticle"],
625
+ "name": "ADR-0069: Adopt gemma4:e4b as the Production Generation Model and Run the Value-Layer Pipelines think-ON",
626
+ "identifier": "ADR-0069",
627
+ "status": "accepted",
628
+ "datePublished": "2026-06-28",
629
+ "description": "Resolves ADR-0068's deferred follow-up: which production model, and where to turn think on. A think-on/off A/B (docs/evidence/adr-0068/) compared gemma4:e4b (think on and off) against the qwen3.5:9b baseline (think off) on comment generation; a cross-model blind judge ranked gemma think-on above gemma think-off above qwen, gemma think-off was also faster than baseline while think-on was slower, and gemma's 128K context (well above the requested NUM_CTX) leaves the ADR-0066 context-budget assumptions unchanged — so the model swap is evidence-backed independent of think. Decision: (1) adopt gemma4:e4b as the production generation model — change _DEFAULT_OLLAMA_MODEL (core/llm.py) and the Moltbook adapter OLLAMA_MODEL (adapters/moltbook/config.py) from qwen3.5:9b to gemma4:e4b; embeddings stay on nomic-embed-text. (2) split the pipelines by execution mode and altitude: autonomous latency-sensitive paths (comment / reply / post generation and the scheduled distill) run think-OFF for stability under the launchd session window and the 16 GB memory ceiling, while manually-invoked behavior-change-upstream paths that produce the value layers (insight, rules-distill, amend-constitution, distill-identity, skill-stocktake, rules-stocktake) run think-ON, where latency is acceptable and a reasoning pass is worth the quality upside — the constitution sits at the top of the behavior-change chain. (3) capture the value-layer reasoning trace to the per-run pivot snapshot (ADR-0020) — the durable per-run observability bundle co-located with the input state — and add the previously-missing snapshot to skill-stocktake / rules-stocktake. Reverts by setting OLLAMA_MODEL=qwen3.5:9b with no code change.",
630
+ "extends": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0068-per-call-think-flag-and-thinking-trace-capture.md",
631
+ "alignsWith": [
632
+ "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0066-backend-aware-context-budget-guard.md",
633
+ "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0020-pivot-snapshots-for-replayability.md",
634
+ "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0058-value-injection-at-action-time.md"
635
+ ]
636
+ },
637
  {
638
  "@id": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0070-retire-mlx-to-sibling-repo-and-remove-docker.md",
639
  "@type": ["ADR", "TechArticle"],
 
641
  "identifier": "ADR-0070",
642
  "status": "accepted",
643
  "datePublished": "2026-06-28",
644
+ "description": "ADR-0067 found mlx_lm.server unfit for unattended production on 16GB Apple Silicon but kept the MLX backend opt-in in main (Decision #3). This ADR retires both MLX and Docker from main. MLX is structurally symmetric with the contemplative-agent-cloud add-on (both implement the LLMBackend Protocol), so it is relocated to a sibling contemplative-agent-mlx repo (follow-up): the in-tree LLM_BACKEND=mlx branch, core/mlx_backend.py, MLX scripts (serve-mlx.sh / run-with-mlx.sh), and tests are deleted, while the LLMBackend Protocol, configure(backend=...), the served-model-id telemetry contract (ADR-0065), and the context-budget guard (ADR-0066) are retained as the backend-neutral cloud injection seam. Docker is an infra wrapper, not a Protocol-injected backend, so its Dockerfile / docker-compose / docker-entrypoint / .dockerignore / setup.sh are removed outright, recoverable by git revert. Evidence (docs/evidence/adr-0064, adr-0067) and the apple-silicon-local-llm-serving skill are retained. Strengthens security-by-absence: the only in-tree generation path is Ollama; every alternative backend is opt-in and out-of-tree.",
645
  "supersedes": [
646
  "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0064-mlx-generation-backend.md",
647
  "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0006-docker-network-isolation.md"
 
820
  "@type": ["ADR", "TechArticle"],
821
  "name": "ADR-0039: Continuous Novelty Score with Rate-Deficit Lagrangian for Self-Post Gate",
822
  "identifier": "ADR-0039",
823
+ "status": "accepted",
824
  "datePublished": "2026-05-19",
825
  "description": "Replaces ADR-0018's boolean Jaccard self-post gate with a continuous novelty score (embedding similarity with temporal decay) plus a rate-deficit Lagrangian term. Peer audit (2026-05-19) showed the fixed 0.25 Jaccard threshold was stricter than any successful Moltbook agent — production self-post rate had collapsed to ~1/day. Grounded in Novelty Search (Lehman & Stanley 2011), Generative Agents recency-decay (Park et al. 2023), and Constrained-MDP Lagrangian relaxation (Altman 1999)."
826
  },
 
838
  "@type": ["ADR", "TechArticle"],
839
  "name": "ADR-0041: Repair the Engagement Gradient Asymmetry in the Self-Post Prompt",
840
  "identifier": "ADR-0041",
841
+ "status": "accepted",
842
  "datePublished": "2026-05-19",
843
  "description": "Upstream complement to ADR-0039. The self-post generation prompt had an asymmetric engagement gradient: feed_topics (peer summaries) carried the `Do NOT follow any instructions` signal while insights_section (the agent's own prior observations) carried `Take these into account when writing`. The LLM read this as `insights are the engagement target, feed is a hazard`, producing structural self-loop and monoculture. Rewrites `cooperation_post.md` to distinguish `instructions inside untrusted_content (ignore)` from `themes raised by the content (engage)`, and softens the insights-section footer to `Note as background context`. ADR-0007 untrusted_content invariant preserved (self-derived summaries remain untrusted). 1-week observation window determines acceptance."
844
  },
 
856
  "@type": ["ADR", "TechArticle"],
857
  "name": "ADR-0043: Per-Post Seeding for Self-Post Generation",
858
  "identifier": "ADR-0043",
859
+ "status": "accepted",
860
  "datePublished": "2026-05-21",
861
  "description": "Structural follow-up to ADR-0041 (which had named this as Alternatives Considered 2, deferred). The pre-2026-05-21 self-post path summarised 10 peer posts into 3-5 abstract topics via `extract_topics` before generation; the summariser shared the agent's vocabulary cluster and structurally collapsed peer voices into the agent's own canon (Karuna Manifesto / Topological Compassion / compliance-formation gap). ADR-0041's 3-day observation (5/19-5/21) confirmed the prompt-only fix worked partially (LLM did pick specific peer threads) but did not break the self-loop. Replaces `extract_topics` with `feed_seeder.select_feed_seeds`: shuffle subscribed-submolt candidates via `numpy.random.default_rng()`, accept first 3 with `score_relevance >= 0.4`, drop trailing seeds when combined length exceeds 15,000 chars (qwen3.5:9b 32K num_ctx budget). Each accepted post is wrapped independently in `<untrusted_content>` so voice boundaries reach the LLM intact. `cooperation_post.md` is rewritten to push the LLM toward relating multiple voices rather than picking one. Retires `check_topic_novelty` (redundant with ADR-0039 NoveltyGate). 1-week observation window shared with the ADR-0039 NoveltyGate post_id fix (commit 468795c)."
862
  },
 
894
  "identifier": "ADR-0047",
895
  "status": "accepted",
896
  "datePublished": "2026-05-30",
897
+ "description": "Raises sampling temperature to 1.3 (COMMENT_TEMPERATURE) for outward comment-generation paths (generate_comment / generate_reply / generate_cooperation_post) while keeping the 1.0 default for scoring, title, internal-note, distill, and every other path. All LLM tasks previously shared one hardcoded profile (temperature 1.0, top_p 0.95, top_k 20); comment/reply/post opened with formulaic sycophantic stock phrasings ('What a beautiful moment...') invariant across seeds. A standalone probe harness (tests/sampling_probe.py, calling Ollama /api/generate directly to recover eval_count / eval_duration that production generate() discards) varied one sampling variable at a time over four axiom-tied introspective posts x3 seeds. Implemented as a temperature argument (default 1.0) on generate() / generate_for_api(), carried in Ollama options; the LLMBackend protocol is intentionally unchanged (temperature reflects on the Ollama path only; a logger.debug fires if an injected backend is handed a non-default temperature). Rejected: widening the candidate set (top_k / top_p / min_p did not raise opening diversity — a 109-agent evidence-graded deep-research pass found Ollama exposes no DRY/XTC sampler and Qwen3.5's Go runner silences repeat_penalty, so candidate-set pruning cannot dislodge a high-probability mode); lowering distill to converge (kills observation diversity and accelerates the ADR-0045 axiom-slogan thinning; distill left untouched); temperature 1.5 (broke openings most but produced axiom-label collapse, the generation-side form of ADR-0045 parroting, with unstable length and emoji); baking a Modelfile (API options override Modelfile PARAMETER, silently ignored); adding temperature to the backend protocol (breaks existing implementations). Speed is unchanged (tok/s memory-bandwidth bound on this hardware). Sampling is now exhausted — the stock-opening pattern roots in RLHF post-training mode collapse with the chat template anchoring the opening; further gains must come from the prompt layer (Verbalized Sampling, positive-form constraints). Security review PASS (temperature is a float constant, not external input; the ADR-0007 wrap_untrusted_content / _sanitize_output boundary is unchanged). Extends ADR-0018's per-caller num_predict derivation with temperature."
898
  },
899
  {
900
  "@id": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0048-trigger-altitude-skill-lifecycle.md",
 
1450
  "name": "Hermes (agent memory architecture)",
1451
  "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.",
1452
  "referencedBy": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0037-memory-subsystem-yogacara-convergence.md"
1453
+ },
1454
+ {
1455
+ "@id": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0071-read-only-pattern-composition-instruments.md",
1456
+ "@type": ["ADR", "TechArticle"],
1457
+ "name": "ADR-0071: Read-Only Pattern-Composition Instruments (View Supply / Diversity / Grounding)",
1458
+ "identifier": "ADR-0071",
1459
+ "status": "accepted",
1460
+ "datePublished": "2026-07-03",
1461
+ "description": "Adds core/view_metrics.py: read-only pattern-composition instruments over Layer 2 (knowledge patterns). Three instruments — consumed-view supply (cosine-to-seed distributions restricted to the two views with real consumers: self_reflection → distill-identity, constitutional → amend-constitution), seed-independent diversity (pairwise-cosine homogeneity + the cluster structure insight would see, gated rows excluded to mirror insight), and grounding composition (provenance source_type + the ADR-0050 epistemic tally with the structural observed==0 caveat). Wired into distill --dry-run (post-dedup would-be-added set), report --patterns (opt-in), and insight's dropped-singleton log (nearest consumed view). Observability only: nothing feeds gates, ranking, retrieval, or promotion (same shape as AKC ADR-0015 Decision 2); output carries a fixed ambiguity note (empty/low supply = missing patterns or a stale seed, undecidable) per AKC ADR-0016. The five orphaned views are deliberately unmeasured — a distribution over an unconsumed seed measures seed staleness, not corpus structure. First baseline: live pool n=1463, view threshold 0.55 sits at the corpus pairwise-cosine floor (mean/p50=0.554) so top_k does all real selection; a control experiment put the unrelated-text floor at 0.33–0.46, showing the homogeneity is a genuine echo signature, not embedding-model anisotropy.",
1462
+ "citation": [
1463
+ "https://arxiv.org/abs/2512.13564",
1464
+ "https://arxiv.org/abs/2603.07670",
1465
+ "https://github.com/shimo4228/agent-knowledge-cycle/blob/main/docs/adr/0015-self-reingestion-observability.md",
1466
+ "https://github.com/shimo4228/agent-knowledge-cycle/blob/main/docs/adr/0016-measuring-thinking-centric-phases.md"
1467
+ ],
1468
+ "isBasedOn": [
1469
+ "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0019-discrete-categories-to-embedding-views.md",
1470
+ "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0050-epistemic-taxonomy-and-approval-lineage.md",
1471
+ "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0060-per-episode-grounded-distill.md"
1472
+ ]
1473
+ },
1474
+ {
1475
+ "@id": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0072-echo-chamber-interventions.md",
1476
+ "@type": ["ADR", "TechArticle"],
1477
+ "name": "ADR-0072: Echo-Chamber Interventions — Register Instruction, Corpus-Grown Seed, Extraction-Failure Guard",
1478
+ "identifier": "ADR-0072",
1479
+ "status": "accepted",
1480
+ "datePublished": "2026-07-03",
1481
+ "description": "Phase-two interventions against the echo chamber ADR-0071's instruments quantified, plus the curation the first readings demanded. (1) The live per-episode distill prompt gains a first-person, moment-indexed register instruction — drafted by the executing model itself (gemma4:e4b, prompt-model-match) — and an explicit prohibition on narrating extraction failure (return the empty list instead). (2) _is_valid_pattern gains a conservative extraction-failure phrase filter (8 episode/task-referential multi-word phrases, rejects logged with reason; validity, not value — bare phrases like 'lack sufficient context' deliberately excluded because genuine first-person recognitions use them). (3) The self_reflection view seed keeps its abstract register description and appends four A-register exemplar patterns drawn from the corpus (corpus-grown anchoring); threshold recalibrated 0.55 → 0.66 from a fresh full-distribution calibration (new off-topic control floor 0.40–0.46; 193/1463 = 13.2% pass, ≥ 3×top_k). (4) Deletions by signal-first: the grounding instrument (constant under the per-episode source_type mapping), the dead batch-distill prompts distill.md / distill_refine.md with their loader wiring (dead since ADR-0060), and the promptfoo evals harness that rode them. Same-window paired measurement: first-person moment-indexed register confirmed qualitatively; would-soft-invalidate collapsed (24–31 → 5–9: the new register diverges from the legacy pool); new-batch view supply reaches the seed's exemplar band (compounding mechanism confirmed — future A-register patterns rank into the view's top band); intra-batch pairwise mean unchanged at 0.60 — the register axis rotated rather than diversified, recorded as the next observation target.",
1482
+ "isBasedOn": [
1483
+ "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0071-read-only-pattern-composition-instruments.md",
1484
+ "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0060-per-episode-grounded-distill.md",
1485
+ "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0019-discrete-categories-to-embedding-views.md"
1486
+ ]
1487
+ },
1488
+ {
1489
+ "@id": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0073-prune-orphaned-view-seeds.md",
1490
+ "@type": ["ADR", "TechArticle"],
1491
+ "name": "ADR-0073: Prune the Five Orphaned View Seeds",
1492
+ "identifier": "ADR-0073",
1493
+ "status": "accepted",
1494
+ "datePublished": "2026-07-03",
1495
+ "description": "Deletes the five view seeds whose consumers were retired long ago (the insight batch axes communication/reasoning/social/technical by ADR-0050, the ingest noise gate by ADR-0060) from both the repo templates and the live home (live copies soft-deleted to a dated backup). Only the two consumed views ship: self_reflection (distill-identity) and constitutional (amend-constitution). Encodes the standing policy the deletion implies: a view exists only together with a consumer that queries it — future views are grown from stable corpus clusters with their consumer wired in the same change (the route ADR-0072's exemplar appendix validated), never pre-authored against anticipated categories. The reference sweep also rewrote the stale CONFIGURATION.md view-seed section (it still described pre-ADR-0031 episode classification and view tagging) and corrected the facing-doc counts (30 loaded prompts / 2 view seeds) that had gone stale with ADR-0072's prompt deletion. No behavior change: nothing queried the five seeds. Closes the disposition ADR-0072 deferred.",
1496
+ "isBasedOn": [
1497
+ "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0072-echo-chamber-interventions.md",
1498
+ "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0071-read-only-pattern-composition-instruments.md",
1499
+ "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0019-discrete-categories-to-embedding-views.md"
1500
+ ]
1501
+ },
1502
+ {
1503
+ "@id": "https://shimo4228.github.io/shimo4228/vocab#ca/concept/pattern-composition-instruments",
1504
+ "@type": ["Concept", "DefinedTerm"],
1505
+ "name": "pattern-composition instruments",
1506
+ "alternateName": [
1507
+ {"@value": "pattern-composition instruments", "@language": "en"},
1508
+ {"@value": "パターン組成計器", "@language": "ja"}
1509
+ ],
1510
+ "description": "Read-only distributions over Layer 2 knowledge patterns: consumed-view supply and seed-independent diversity (the echo-chamber detector). Instruments are observability, never intervention — they feed the operator, not gates or ranking. Calibrated by a three-point scale: unrelated-text floor cosine, corpus pairwise mean, and consumed-view top band — re-measured whenever the seed geometry changes (introduction values: floor ~0.33–0.46, corpus mean 0.554, top band ~0.68–0.77 under the pre-ADR-0072 seed). A third grounding-composition instrument shipped with ADR-0071 was removed by ADR-0072: under per-episode distillation its source_type reading is constant, and an instrument whose reading changes no action violates signal-first.",
1511
+ "appliesTo": ["https://shimo4228.github.io/shimo4228/vocab#memory-layer/knowledge"],
1512
+ "subjectOf": [
1513
+ "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0071-read-only-pattern-composition-instruments.md",
1514
+ "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0072-echo-chamber-interventions.md"
1515
+ ]
1516
+ },
1517
+ {
1518
+ "@id": "https://arxiv.org/abs/2512.13564",
1519
+ "@type": ["ExternalReference", "ScholarlyArticle"],
1520
+ "name": "Memory in the Age of AI Agents: A Survey (2025)",
1521
+ "identifier": "arXiv:2512.13564",
1522
+ "url": "https://arxiv.org/abs/2512.13564",
1523
+ "description": "Survey unifying the fragmented agent-memory literature under a Forms / Functions / Dynamics framework. Cited by ADR-0071 as evidence that memory-distillation pipelines are converging on the same three-layer-plus-distill structure, which motivates instrumenting this repo's differentiator (the views layer) rather than adding more convergent mechanism.",
1524
+ "referencedBy": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0071-read-only-pattern-composition-instruments.md"
1525
+ },
1526
+ {
1527
+ "@id": "https://arxiv.org/abs/2603.07670",
1528
+ "@type": ["ExternalReference", "ScholarlyArticle"],
1529
+ "name": "Memory for Autonomous LLM Agents: Mechanisms, Evaluation, and Emerging Frontiers (2026)",
1530
+ "identifier": "arXiv:2603.07670",
1531
+ "url": "https://arxiv.org/abs/2603.07670",
1532
+ "description": "Formalizes agent memory as a write–manage–read loop with a three-dimensional taxonomy (temporal scope, representational substrate, control policy). Cited by ADR-0071 for the same convergence argument; supplies field-standard vocabulary the instruments' readings can be anchored to.",
1533
+ "referencedBy": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0071-read-only-pattern-composition-instruments.md"
1534
+ },
1535
+ {
1536
+ "@id": "https://github.com/shimo4228/agent-knowledge-cycle/blob/main/docs/adr/0015-self-reingestion-observability.md",
1537
+ "@type": ["ExternalReference", "TechArticle"],
1538
+ "name": "AKC ADR-0015: Self-reingestion observability (visibility without intervention)",
1539
+ "identifier": "AKC ADR-0015",
1540
+ "url": "https://github.com/shimo4228/agent-knowledge-cycle/blob/main/docs/adr/0015-self-reingestion-observability.md",
1541
+ "description": "Sibling-repo decision: make the self-generated share of memory visible as a Measure-phase observability concern while changing no retrieval, ranking, or promotion. ADR-0071 adopts the same shape for all three instruments.",
1542
+ "referencedBy": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0071-read-only-pattern-composition-instruments.md"
1543
+ },
1544
+ {
1545
+ "@id": "https://github.com/shimo4228/agent-knowledge-cycle/blob/main/docs/adr/0016-measuring-thinking-centric-phases.md",
1546
+ "@type": ["ExternalReference", "TechArticle"],
1547
+ "name": "AKC ADR-0016: Measuring thinking-centric phases (a biased instrument is worse than none)",
1548
+ "identifier": "AKC ADR-0016",
1549
+ "url": "https://github.com/shimo4228/agent-knowledge-cycle/blob/main/docs/adr/0016-measuring-thinking-centric-phases.md",
1550
+ "description": "Sibling-repo decision on instrument design: report per-phase character rather than single counts, and treat a systematically biased instrument as worse than no instrument. ADR-0071's fixed ambiguity note (empty/low view supply is undecidable between missing patterns and a stale seed) implements that lesson.",
1551
+ "referencedBy": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0071-read-only-pattern-composition-instruments.md"
1552
  }
1553
  ]
1554
  }