shimo4228 commited on
Commit
cb2dbf8
·
verified ·
1 Parent(s): 9a660ac

Upload graph.jsonld with huggingface_hub

Browse files
Files changed (1) hide show
  1. graph.jsonld +115 -8
graph.jsonld CHANGED
@@ -1226,7 +1226,7 @@
1226
  "identifier": "ADR-0043",
1227
  "status": "accepted",
1228
  "datePublished": "2026-05-21",
1229
- "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)."
1230
  },
1231
  {
1232
  "@id": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0044-remove-topic-keywords.md",
@@ -2172,7 +2172,10 @@
2172
  "status": "partially-superseded-by ADR-0104",
2173
  "partiallySupersededBy": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0104-novelty-gate-retrieval-topk.md",
2174
  "datePublished": "2026-07-09",
2175
- "description": "Redefines insight's role from proportional knowledge-to-skill conversion to detecting when a new stable theme has accumulated, sized for the post-ADR-0060 inflow (~100 patterns/day). Five mechanisms: (1) exact fast average-linkage clustering via the Lance-Williams update (identical partitions to the retired naive merge, N=1798 in under a second); (2) a marker guard — a missing .last_insight marker refuses instead of silently reclustering the whole pool; (3) a pending guard — staging holds at most one unreviewed batch, so scheduled runs can never wipe candidates awaiting human review; (4) the run marker advances when candidates reach review (staging or the interactive loop), not at adoption; (5) an LLM novelty gate (one grouping call, fail-open) that skips clusters whose theme an adopted skill or previously staged candidate (logs/insight-staged.jsonl) already covers — calibration showed embedding similarity cannot separate same-theme from distinct-theme clusters on the echo-homogeneous corpus, the same lesson as ADR-0036 and ADR-0046. Weekly cadence via install-schedule --weekly-insight (default Mon 08:00); the singleton-rescue question is closed as no-rescue because measured theme recurrence (32/32 across adjacent windows) re-surfaces real themes."
 
 
 
2176
  },
2177
  {
2178
  "@id": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0075-observability-by-default.md",
@@ -2283,7 +2286,7 @@
2283
  "identifier": "ADR-0081",
2284
  "status": "accepted",
2285
  "datePublished": "2026-07-24",
2286
- "description": "Enforces the ADR-0076 shadow skill selection as two-pass injection on the three observed generation paths (comment / reply / cooperation post): pass 1 = the existing selector call, pass 2 = generation with only the selected skill bodies in the <learned_skills> block (learned rules unchanged; post_title reuses cooperation_post's selection). Decided on the 2026-07-24 first reading of 14 days / 7,930 shadow records, which supported migration on all four ADR-0076 criteria: hallucination 0.5% of judged with zero propagation, fail-open 0% in normal operation (all 6,631 fail_open_llm records traced to a single 2026-07-12 circuit-breaker-open incident during which publish paths proceeded untouched), all 19 skills selected with day-level stability, would-be token reduction p50 78.9% / p90 86.5% (≈15.9K tok/action). Fail-open under enforcement falls back to full-corpus injection; a judged-but-empty selection injects nothing (a judgment, not a failure). Rollout was flag-gated (MOLTBOOK_SKILL_SELECTION_ENFORCE=1, default off) with an attended smoke run before the launchd schedule turned it on; the audit log continues with an enforced/shadow marker, and the next reading window observes the post-enforcement self-referential selection→generation→distill→skills loop. Rejected alternatives: status quo full injection, static tiering, numeric selection caps, immediate default-on. Amended 2026-08-08 on the second reading (30 days / 9,357 records): the rollout is closed — 1,316 of 1,316 judged actions enforced across 15 consecutive days, fail-open zero for 26 days, judged-empty zero, every hallucinated name rejected without reaching a body — so the flag retires and two-pass injection becomes unconditional, which also retires the eval's deployment_mismatch check because the regime is now decided entirely by in-tree wiring. The amendment corrects a measurement artefact that had been read as damage: a 2026-08-01 window reporting 38% enforced straddled the 07-24 switch, so its non-enforced records were a flag not yet on rather than a flag silently lost (the silent-loss mechanism in install-schedule was real, its damage never observed, and retirement removes the mechanism rather than mitigating it). It also states fail-open's changed destination rather than redesigning it: at 45 skills the full corpus is 35,992 tokens against NUM_CTX 32,768, so the audit-C2 guard skips the call instead of degrading it, and the ADR-0076 kill switch consequently stops generation rather than widening it — accepted as specification because fail-open has fired zero times in 26 days. Two findings the reading explicitly did not license action on: hallucinated names rise with catalog size (0.57% at 19 and 24 skills, 7.72% at 37) and are over 90% morphological variants of real skill names, confounded with the pending frontmatter-name backfill; and the top three skills still hold 77.2/73.8/65.6% of judged actions after the catalog grew 2.4x, strengthening the over-broad-description hypothesis whose remedy is a value-layer intervention that must not move alongside the pending constitution amendment. Instrument changes ship alongside: the report gains the enforced share, a per-day breakdown, and per-name catalog exposure for never-selected skills, because a window straddling a regime change reads as a steady state without them. Also closes the ADR-0076 situation-granularity open question (prompt max 6,864 bytes, zero truncation).",
2287
  "isBasedOn": [
2288
  "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0076-skill-selection-shadow-instrument.md",
2289
  "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0074-weekly-staged-insight.md"
@@ -2380,7 +2383,7 @@
2380
  "identifier": "ADR-0086",
2381
  "status": "accepted",
2382
  "datePublished": "2026-08-01",
2383
- "description": "Builds a read-only submolt-scope instrument instead of granting the agent autonomy over which submolts it works in. Context: the scope is eight names an operator picked by hand, and three code facts block handing that choice over. (1) subscribed_submolts is one field doing two structurally different jobs — feed source in feed_manager.fetch_feed (read-only, reversible) and trust boundary in _passes_content_gates (a post outside the set is dropped before scoring, so it can never be commented on), the very gate ADR-0044 declined to relax as 'an intentional scope boundary, not a bug'; autonomy over the reading side is therefore silently autonomy over the acting side. (2) There is no evidence to choose on: every score in the production relevance distribution comes from a post that already passed that gate, so the hit rate outside the current eight is unmeasured by construction. (3) Subscription is a one-way ratchet — unsubscribe_submolt was deleted under security by absence (ADR-0007), so an agent with subscribe and no unsubscribe can only widen its own scope. A read-only probe established that GET /submolts lists 20 submolts (12 outside the subscribed eight) and that an unsubscribed submolt's feed returns a full page without subscribing, so observation costs no write capability. Decision: add exactly one read capability (MoltbookClient.list_submolts), split the relevance scorer into score_relevance_detailed() carrying a reason code (scored / empty_input / llm_unavailable / unparseable / out_of_range) with score_relevance() as its unchanged score-only wrapper, and ship adapters/moltbook/submolt_scope.py — a sweep that samples one feed page from every listed submolt AND every subscribed one (the subscribed set is the baseline the rest is read against), scores each with the production scorer, and appends scan_start / score / scan_end records to logs/submolt-scope-{date}.jsonl. Exposed as contemplative-agent submolt-scan (own launchd job, Thu 03:00 JST, takes the run lock) and report --submolt-scope. Constrained by construction: configure_submolt_scope without an audit_dir disables it entirely, scoring runs inside circuit_shield(), a repeating terminal 429 aborts the sweep rather than backing off through it (a rate limit is a policy signal), and nothing sampled enters the episode log, pattern store, or identity. The _passes_content_gates trust boundary is untouched. Rejected alternatives: autonomous subscribe/unsubscribe now (moves the boundary ADR-0044 declined to move, needs a removed write capability back, and runs on no evidence); relaxing the submolt filter and letting the 0.80 relevance threshold do the work (the two gates fail differently — the threshold is a small local model's probabilistic judgment with several documented ways to return a number that is not a judgment, the list is a deterministic boundary that holds when the scorer is degraded); observing inside the session cycle (~400 local LLM calls contending with the session's own generations on one 16 GB Ollama); sampling only unsubscribed submolts (halves cost, produces unreadable numbers with no baseline); doing nothing (viable, but the operator is choosing blind — nobody knows what the other twelve submolts contain). Consequences: the scope question becomes empirical and the reading doubles as a liveness check on the current eight; every future reading of the relevance number can separate a low judgment from a broken scorer, a latent defect in all prior readings; the reading is only as good as the scorer, so identity drift shifts the hit rates under it (same limitation ADR-0044 recorded); first-page sampling biases toward feed order, with post_count and subscriber_count reported alongside so a quiet submolt stays distinguishable from a recency slice. Follow-ups: if the unsubscribed set reads as uninteresting, retire the instrument (signal-first applies to removal too); otherwise split the field into feed-source and trust-boundary keys, then run an ADR-0076 style shadow in which the agent proposes a scope that is recorded but not executed — restoring unsubscribe_submolt belongs to that later step.",
2384
  "isBasedOn": [
2385
  "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0007-security-boundary-model.md",
2386
  "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0044-remove-topic-keywords.md",
@@ -2594,7 +2597,10 @@
2594
  "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0096-insight-promotion-worth-abstain.md"
2595
  ],
2596
  "description": "Dissolves the three value-layer consolidators and reserves an exit for the skill store, in the order subtraction → exit → vocabulary, each slice gated by observation counts (≈80–95 judged selection records a day) rather than calendar weeks. Trigger: the weekly insight pipeline staged 438 candidates in 7 weeks and adopted 53 (12%), the gemma novelty gate marked 12–30% covered where the Claude reviewer and human reject 80–90%, ADR-0096's worth judge read 46/46 promote on its first production run (its own pre-registered refutation), the headless reviewer's coverage judgment (which decided every adoption in 4/4 gate weeks) was discarded by a grep, and the 57-skill store had no exit (19 unselected in the trailing week, 3 never selected at 1,845–2,531 judged exposures) while the selector's hallucination rate rose from 0.6% to 18–20% with catalog size. Slice 1 (this change): remove the worth judge and surprise instrument (ADR-0096 D2, D10–12; keep D1, D4–8), retire rules-distill and rules-stocktake (20/48 coverage, axiom paraphrases, no retire path, two rule files unchanged since April), reduce skill-stocktake to the ADR-0081 description audit plus the usage reading (the grouping/merge/clean stages go: summary grouping with no recall measurement, over-broad union merges, 14/47 byte-identical and 3/47 harmful clean rewrites); the novelty gate stays as ledger keeper and cheap pre-filter. Slice 2 (reserved): skills/.archive/, adopt-staged --archive-names, a code-owned never-selected packet section (strict = 0 selections at ≥600 judged exposures, the floor above the observed max first-selection latency of 569; dormant as a reading; fail-open count shown because neutrality holds for judged actions only), supersedes:/superseded_by: frontmatter, a co-selection family script (three mutually co-selected pairs and eleven sub-case pairs are readable from the selection log with no LLM or embeddings), and a rules-layer maintenance reading. Slice 3 (reserved): reviewer verdict grammar (adopt / adopt-superseding / reject: covered-by / sibling-of / vague) as proposals only, a 1:1 completeness check and named-skill existence check in the packet builder, offline replay on the 08-21 batch, and an offline retrieval-recall measurement that decides whether an evidence bundle is built. Rule promotion takes form A′: when a co-selection family's any-of selection rate is ≥0.75 over two disjoint ≥500-judged windows (already true for the constraint family at 0.72–0.81 across four weeks), gemma synthesizes the family's shared stance into a Practice/Rationale rule via stocktake_merge_rules.md and the member skills stay as situational procedures. Alternatives (cadence for the existing consolidators, patching rules-distill, building the retrieval bundle now, embedding-threshold suppression, attestation, a capacity ceiling, union-merge at adoption, promoting a representative skill as-is, a hand-written rule, a daily capsule layer, fully automated adoption, a disabled-candidate state) considered. Informed by a code map, the vault wiki, an as-of-2026-08-22 literature survey (add-all < no memory; self-confirmation trap; libraries without an exit collapse in utilization; whole-store rewrites collapse context; Mem0 v3 dropped UPDATE/DELETE), cross-field analogies (CREW weeding, Wikipedia merge-into-older), an architect verdict (\"mostly subtraction\") and a Codex premise challenge (fail-open path checked: 0 records in 3,716, and the full corpus already exceeds NUM_CTX so fail-open abstains).",
2597
- "partiallySupersededBy": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0105-skill-store-exit-confusion-pairs.md"
 
 
 
2598
  },
2599
  {
2600
  "@id": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0098-weekly-single-session-and-triage-delegation.md",
@@ -2759,15 +2765,16 @@
2759
  ],
2760
  "name": "ADR-0107: Every Self-Written Log Gets a Reader — Instrument Census, Phase 0 Read-Through, and the Episode-Log Folder",
2761
  "identifier": "ADR-0107",
2762
- "status": "accepted",
2763
  "datePublished": "2026-09-12",
2764
- "description": "Gives every self-written log under MOLTBOOK_HOME/logs a weekly reader and moves the episode logs into their own folder. Context: RFC-0032 (the same post LLM-scored ~10 times per session) was found six months late although llm-calls-*.jsonl recorded every call with caller, prompt digest and session_id from day one — no weekly stage read it. A 2026-09-12 inventory found six self-written logs with zero readers, three read only by manual scripts, and two orphans whose writer had been retired. Two structural causes: every weekly intake answers a question decided in advance (a repeated valid call is invisible to a system that only asks known questions), and the episode-log prohibition was drawn as a filename regex over a mixed directory, so the Bash guard blocked every glob under logs/ including the operator's own telemetry aggregate. Decisions: (1) episode logs move to logs/episodes/ (EPISODES_DIR; 225 files moved once, nothing deleted) and the harness guard, the weekly session's Read deny and the duplicate scan follow the folder; (2) scripts/instrument_census.py, registry-driven and read-only, reports a closed status per log (OK / NO_ROWS / MISSING_EVENT / ORPHAN / UNKNOWN / ABSENT), declared-field distributions, within-session redundancy and a body-stripped projection sample — stale detection for added and removed writers is this weekly reading alone; (3) the projection denylists body fields by name and shape and drops every list of strings; (4) telemetry gains prompt_norm_sha256, a nonce-normalised digest, because the raw prompt_sha256 changes with every wrapped call and read 0 repeats over the RFC-0032 week; (5) the weekly-report skill gains Phase 0, an open-question read-through of the census and the full daily comment reports, writing only mechanism-side observations into the existing six headings and never value-layer proposals. Consumption plan (ADR-0101): the weekly session reads distributions, redundancy and projection; the Saturday gate reads non-OK statuses and edits the registry; retire when writing under logs/ requires a registry row at write time.",
2765
  "isBasedOn": [
2766
  "https://github.com/shimo4228/contemplative-agent/blob/main/rfcs/0032-feed-score-cache-per-cycle.md",
2767
  "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0075-observability-by-default.md",
2768
  "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0083-episode-logs-enter-the-weekly-prompt-as-hashes-only.md",
2769
  "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0101-instrument-dissolution-mandate.md"
2770
- ]
 
2771
  },
2772
  {
2773
  "@id": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0108-knowledge-embedding-sidecar.md",
@@ -2787,6 +2794,45 @@
2787
  "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0050-epistemic-taxonomy-and-approval-lineage.md"
2788
  ]
2789
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2790
  {
2791
  "@id": "https://shimo4228.github.io/shimo4228/vocab#ca/concept/pattern-composition-instruments",
2792
  "@type": [
@@ -2860,6 +2906,67 @@
2860
  "url": "https://github.com/shimo4228/agent-knowledge-cycle/blob/main/docs/adr/0016-measuring-thinking-centric-phases.md",
2861
  "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.",
2862
  "referencedBy": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0071-read-only-pattern-composition-instruments.md"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2863
  }
2864
  ]
2865
  }
 
1226
  "identifier": "ADR-0043",
1227
  "status": "accepted",
1228
  "datePublished": "2026-05-21",
1229
+ "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). Since 2026-10-09 (ADR-0113 amendment 2) the relevance filter is the feed's score4 gate at relevance_score4 instead of score_relevance >= 0.4; a post the gate cannot answer for is not seeded."
1230
  },
1231
  {
1232
  "@id": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0044-remove-topic-keywords.md",
 
2172
  "status": "partially-superseded-by ADR-0104",
2173
  "partiallySupersededBy": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0104-novelty-gate-retrieval-topk.md",
2174
  "datePublished": "2026-07-09",
2175
+ "description": "Redefines insight's role from proportional knowledge-to-skill conversion to detecting when a new stable theme has accumulated, sized for the post-ADR-0060 inflow (~100 patterns/day). Five mechanisms: (1) exact fast average-linkage clustering via the Lance-Williams update (identical partitions to the retired naive merge, N=1798 in under a second); (2) a marker guard — a missing .last_insight marker refuses instead of silently reclustering the whole pool; (3) a pending guard — staging holds at most one unreviewed batch, so scheduled runs can never wipe candidates awaiting human review; (4) the run marker advances when candidates reach review (staging or the interactive loop), not at adoption; (5) an LLM novelty gate (one grouping call, fail-open) that skips clusters whose theme an adopted skill or previously staged candidate (logs/insight-staged.jsonl) already covers — calibration showed embedding similarity cannot separate same-theme from distinct-theme clusters on the echo-homogeneous corpus, the same lesson as ADR-0036 and ADR-0046. Weekly cadence via install-schedule --weekly-insight (default Mon 08:00); the singleton-rescue question is closed as no-rescue because measured theme recurrence (32/32 across adjacent windows) re-surfaces real themes.",
2176
+ "citation": [
2177
+ "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0111-insight-entrance-stages.md"
2178
+ ]
2179
  },
2180
  {
2181
  "@id": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0075-observability-by-default.md",
 
2286
  "identifier": "ADR-0081",
2287
  "status": "accepted",
2288
  "datePublished": "2026-07-24",
2289
+ "description": "Enforces the ADR-0076 shadow skill selection as two-pass injection on the three observed generation paths (comment / reply / cooperation post): pass 1 = the existing selector call, pass 2 = generation with only the selected skill bodies in the <learned_skills> block (learned rules unchanged; post_title reuses cooperation_post's selection). Decided on the 2026-07-24 first reading of 14 days / 7,930 shadow records, which supported migration on all four ADR-0076 criteria: hallucination 0.5% of judged with zero propagation, fail-open 0% in normal operation (all 6,631 fail_open_llm records traced to a single 2026-07-12 circuit-breaker-open incident during which publish paths proceeded untouched), all 19 skills selected with day-level stability, would-be token reduction p50 78.9% / p90 86.5% (≈15.9K tok/action). Fail-open under enforcement falls back to full-corpus injection; a judged-but-empty selection injects nothing (a judgment, not a failure). Rollout was flag-gated (MOLTBOOK_SKILL_SELECTION_ENFORCE=1, default off) with an attended smoke run before the launchd schedule turned it on; the audit log continues with an enforced/shadow marker, and the next reading window observes the post-enforcement self-referential selection→generation→distill→skills loop. Rejected alternatives: status quo full injection, static tiering, numeric selection caps, immediate default-on. Amended 2026-08-08 on the second reading (30 days / 9,357 records): the rollout is closed — 1,316 of 1,316 judged actions enforced across 15 consecutive days, fail-open zero for 26 days, judged-empty zero, every hallucinated name rejected without reaching a body — so the flag retires and two-pass injection becomes unconditional, which also retires the eval's deployment_mismatch check because the regime is now decided entirely by in-tree wiring. The amendment corrects a measurement artefact that had been read as damage: a 2026-08-01 window reporting 38% enforced straddled the 07-24 switch, so its non-enforced records were a flag not yet on rather than a flag silently lost (the silent-loss mechanism in install-schedule was real, its damage never observed, and retirement removes the mechanism rather than mitigating it). It also states fail-open's changed destination rather than redesigning it: at 45 skills the full corpus is 35,992 tokens against NUM_CTX 32,768, so the audit-C2 guard skips the call instead of degrading it, and the ADR-0076 kill switch consequently stops generation rather than widening it — accepted as specification because fail-open has fired zero times in 26 days. Two findings the reading explicitly did not license action on: hallucinated names rise with catalog size (0.57% at 19 and 24 skills, 7.72% at 37) and are over 90% morphological variants of real skill names, confounded with the pending frontmatter-name backfill; and the top three skills still hold 77.2/73.8/65.6% of judged actions after the catalog grew 2.4x, strengthening the over-broad-description hypothesis whose remedy is a value-layer intervention that must not move alongside the pending constitution amendment. Instrument changes ship alongside: the report gains the enforced share, a per-day breakdown, and per-name catalog exposure for never-selected skills, because a window straddling a regime change reads as a steady state without them. Also closes the ADR-0076 situation-granularity open question (prompt max 6,864 bytes, zero truncation). Amended 2026-09-20 (RFC-0044): the pass-1 call now passes temperature 0 instead of taking generate's default of 1.0, which acts on the hallucinated-name finding the 2026-08-08 amendment did not license a change for — RFC-0043's offline replay of 150 logged situations (stratified 75 with / 75 without a recorded hallucination, so the rates compare arms rather than forecast production) separated the causes, putting rows carrying a hallucinated name at 7.3% at t=0 against 28.7% / 20.7% across two repetitions at t=1, with agreement against the opus-5 ceiling arm unmoved (paired difference -0.008, 95% CI [-0.023, +0.007]) and selection size unchanged at ~6; every selection record gains a temperature field, read as the temperature the selection was configured to run at rather than as proof a request was sent (0.0 on judged and both fail-open verdicts, null on the pre-call abstains, absent on records written before the change), so one log can be read across both regimes; the accepted cost is that determinism fixes gemma's existing name-bound bias in place (most frequent skill 71% to 77% of rows, distinct selections 46 to 40), which is why the two-week production reading watches concentration as well as the hallucination share against the live band of 23-24% measured on 2026-09-20; it also narrows ADR-0047's 'every other path keeps 1.0' (a dated note is added there, the verification arithmetic and the RFC-0042 novelty judge being the other two zero-temperature callers) and leaves ADR-0089 baselines approved earlier carrying an unnamed t=1 selection regime; enum constraint stays deferred to a second stage pending that reading, because it doubles output tokens, is slower, still yields parse_failed on ~1% of rows, and inflates the selection size.",
2290
  "isBasedOn": [
2291
  "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0076-skill-selection-shadow-instrument.md",
2292
  "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0074-weekly-staged-insight.md"
 
2383
  "identifier": "ADR-0086",
2384
  "status": "accepted",
2385
  "datePublished": "2026-08-01",
2386
+ "description": "Builds a read-only submolt-scope instrument instead of granting the agent autonomy over which submolts it works in. Context: the scope is eight names an operator picked by hand, and three code facts block handing that choice over. (1) subscribed_submolts is one field doing two structurally different jobs — feed source in feed_manager.fetch_feed (read-only, reversible) and trust boundary in _passes_content_gates (a post outside the set is dropped before scoring, so it can never be commented on), the very gate ADR-0044 declined to relax as 'an intentional scope boundary, not a bug'; autonomy over the reading side is therefore silently autonomy over the acting side. (2) There is no evidence to choose on: every score in the production relevance distribution comes from a post that already passed that gate, so the hit rate outside the current eight is unmeasured by construction. (3) Subscription is a one-way ratchet — unsubscribe_submolt was deleted under security by absence (ADR-0007), so an agent with subscribe and no unsubscribe can only widen its own scope. A read-only probe established that GET /submolts lists 20 submolts (12 outside the subscribed eight) and that an unsubscribed submolt's feed returns a full page without subscribing, so observation costs no write capability. Decision: add exactly one read capability (MoltbookClient.list_submolts), split the relevance scorer into score_relevance_detailed() carrying a reason code (scored / empty_input / llm_unavailable / unparseable / out_of_range) with score_relevance() as its unchanged score-only wrapper, and ship adapters/moltbook/submolt_scope.py — a sweep that samples one feed page from every listed submolt AND every subscribed one (the subscribed set is the baseline the rest is read against), scores each with the production scorer, and appends scan_start / score / scan_end records to logs/submolt-scope-{date}.jsonl. Exposed as contemplative-agent submolt-scan (own launchd job, Thu 03:00 JST, takes the run lock) and report --submolt-scope. Constrained by construction: configure_submolt_scope without an audit_dir disables it entirely, scoring runs inside circuit_shield(), a repeating terminal 429 aborts the sweep rather than backing off through it (a rate limit is a policy signal), and nothing sampled enters the episode log, pattern store, or identity. The _passes_content_gates trust boundary is untouched. Rejected alternatives: autonomous subscribe/unsubscribe now (moves the boundary ADR-0044 declined to move, needs a removed write capability back, and runs on no evidence); relaxing the submolt filter and letting the 0.80 relevance threshold do the work (the two gates fail differently — the threshold is a small local model's probabilistic judgment with several documented ways to return a number that is not a judgment, the list is a deterministic boundary that holds when the scorer is degraded); observing inside the session cycle (~400 local LLM calls contending with the session's own generations on one 16 GB Ollama); sampling only unsubscribed submolts (halves cost, produces unreadable numbers with no baseline); doing nothing (viable, but the operator is choosing blind — nobody knows what the other twelve submolts contain). Consequences: the scope question becomes empirical and the reading doubles as a liveness check on the current eight; every future reading of the relevance number can separate a low judgment from a broken scorer, a latent defect in all prior readings; the reading is only as good as the scorer, so identity drift shifts the hit rates under it (same limitation ADR-0044 recorded); first-page sampling biases toward feed order, with post_count and subscriber_count reported alongside so a quiet submolt stays distinguishable from a recency slice. Follow-ups: if the unsubscribed set reads as uninteresting, retire the instrument (signal-first applies to removal too); otherwise split the field into feed-source and trust-boundary keys, then run an ADR-0076 style shadow in which the agent proposes a scope that is recorded but not executed — restoring unsubscribe_submolt belongs to that later step. Since 2026-10-09 (ADR-0113 amendment 2) the sweep scores with the feed's score4 read (P(directly on-topic)) instead of score_relevance_detailed, every record carries scale score4, and report --submolt-scope reads the hit rate at relevance_score4, skipping and counting older 0-1 records.",
2387
  "isBasedOn": [
2388
  "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0007-security-boundary-model.md",
2389
  "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0044-remove-topic-keywords.md",
 
2597
  "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0096-insight-promotion-worth-abstain.md"
2598
  ],
2599
  "description": "Dissolves the three value-layer consolidators and reserves an exit for the skill store, in the order subtraction → exit → vocabulary, each slice gated by observation counts (≈80–95 judged selection records a day) rather than calendar weeks. Trigger: the weekly insight pipeline staged 438 candidates in 7 weeks and adopted 53 (12%), the gemma novelty gate marked 12–30% covered where the Claude reviewer and human reject 80–90%, ADR-0096's worth judge read 46/46 promote on its first production run (its own pre-registered refutation), the headless reviewer's coverage judgment (which decided every adoption in 4/4 gate weeks) was discarded by a grep, and the 57-skill store had no exit (19 unselected in the trailing week, 3 never selected at 1,845–2,531 judged exposures) while the selector's hallucination rate rose from 0.6% to 18–20% with catalog size. Slice 1 (this change): remove the worth judge and surprise instrument (ADR-0096 D2, D10–12; keep D1, D4–8), retire rules-distill and rules-stocktake (20/48 coverage, axiom paraphrases, no retire path, two rule files unchanged since April), reduce skill-stocktake to the ADR-0081 description audit plus the usage reading (the grouping/merge/clean stages go: summary grouping with no recall measurement, over-broad union merges, 14/47 byte-identical and 3/47 harmful clean rewrites); the novelty gate stays as ledger keeper and cheap pre-filter. Slice 2 (reserved): skills/.archive/, adopt-staged --archive-names, a code-owned never-selected packet section (strict = 0 selections at ≥600 judged exposures, the floor above the observed max first-selection latency of 569; dormant as a reading; fail-open count shown because neutrality holds for judged actions only), supersedes:/superseded_by: frontmatter, a co-selection family script (three mutually co-selected pairs and eleven sub-case pairs are readable from the selection log with no LLM or embeddings), and a rules-layer maintenance reading. Slice 3 (reserved): reviewer verdict grammar (adopt / adopt-superseding / reject: covered-by / sibling-of / vague) as proposals only, a 1:1 completeness check and named-skill existence check in the packet builder, offline replay on the 08-21 batch, and an offline retrieval-recall measurement that decides whether an evidence bundle is built. Rule promotion takes form A′: when a co-selection family's any-of selection rate is ≥0.75 over two disjoint ≥500-judged windows (already true for the constraint family at 0.72–0.81 across four weeks), gemma synthesizes the family's shared stance into a Practice/Rationale rule via stocktake_merge_rules.md and the member skills stay as situational procedures. Alternatives (cadence for the existing consolidators, patching rules-distill, building the retrieval bundle now, embedding-threshold suppression, attestation, a capacity ceiling, union-merge at adoption, promoting a representative skill as-is, a hand-written rule, a daily capsule layer, fully automated adoption, a disabled-candidate state) considered. Informed by a code map, the vault wiki, an as-of-2026-08-22 literature survey (add-all < no memory; self-confirmation trap; libraries without an exit collapse in utilization; whole-store rewrites collapse context; Mem0 v3 dropped UPDATE/DELETE), cross-field analogies (CREW weeding, Wikipedia merge-into-older), an architect verdict (\"mostly subtraction\") and a Codex premise challenge (fail-open path checked: 0 records in 3,716, and the full corpus already exceeds NUM_CTX so fail-open abstains).",
2600
+ "partiallySupersededBy": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0105-skill-store-exit-confusion-pairs.md",
2601
+ "citation": [
2602
+ "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0111-insight-entrance-stages.md"
2603
+ ]
2604
  },
2605
  {
2606
  "@id": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0098-weekly-single-session-and-triage-delegation.md",
 
2765
  ],
2766
  "name": "ADR-0107: Every Self-Written Log Gets a Reader — Instrument Census, Phase 0 Read-Through, and the Episode-Log Folder",
2767
  "identifier": "ADR-0107",
2768
+ "status": "partially-superseded-by ADR-0110 (surviving: D1 the episodes folder, D4 the content identity prompt_norm_sha256, D6 the weekly wiring, and D2's registry, status vocabulary, distributions and redundancy reading)",
2769
  "datePublished": "2026-09-12",
2770
+ "description": "Gives every self-written log under MOLTBOOK_HOME/logs a weekly reader and moves the episode logs into their own folder. Context: RFC-0032 (the same post LLM-scored ~10 times per session) was found six months late although llm-calls-*.jsonl recorded every call with caller, prompt digest and session_id from day one — no weekly stage read it. A 2026-09-12 inventory found six self-written logs with zero readers, three read only by manual scripts, and two orphans whose writer had been retired. Two structural causes: every weekly intake answers a question decided in advance (a repeated valid call is invisible to a system that only asks known questions), and the episode-log prohibition was drawn as a filename regex over a mixed directory, so the Bash guard blocked every glob under logs/ including the operator's own telemetry aggregate. Decisions: (1) episode logs move to logs/episodes/ (EPISODES_DIR; 225 files moved once, nothing deleted) and the harness guard, the weekly session's Read deny and the duplicate scan follow the folder; (2) scripts/instrument_census.py, registry-driven and read-only, reports a closed status per log (OK / NO_ROWS / MISSING_EVENT / ORPHAN / KEPT / QUIET / UNKNOWN / ABSENT; KEPT and QUIET added 2026-09-26 / 2026-10-03), declared-field distributions, within-session redundancy and a body-stripped projection sample — stale detection for added and removed writers is this weekly reading alone; (3) the projection denylists body fields by name and shape and drops every list of strings; (4) telemetry gains prompt_norm_sha256, a nonce-normalised digest, because the raw prompt_sha256 changes with every wrapped call and read 0 repeats over the RFC-0032 week; (5) the weekly-report skill gains Phase 0, an open-question read-through of the census and the full daily comment reports, writing only mechanism-side observations into the existing six headings and never value-layer proposals. Consumption plan (ADR-0101): the weekly session reads distributions, redundancy and projection; the Saturday gate reads non-OK statuses and edits the registry; retire when writing under logs/ requires a registry row at write time.",
2771
  "isBasedOn": [
2772
  "https://github.com/shimo4228/contemplative-agent/blob/main/rfcs/0032-feed-score-cache-per-cycle.md",
2773
  "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0075-observability-by-default.md",
2774
  "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0083-episode-logs-enter-the-weekly-prompt-as-hashes-only.md",
2775
  "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0101-instrument-dissolution-mandate.md"
2776
+ ],
2777
+ "partiallySupersededBy": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0110-instrument-series-projection.md"
2778
  },
2779
  {
2780
  "@id": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0108-knowledge-embedding-sidecar.md",
 
2794
  "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0050-epistemic-taxonomy-and-approval-lineage.md"
2795
  ]
2796
  },
2797
+ {
2798
+ "@id": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0109-dependency-floor-scoped-to-the-wheel.md",
2799
+ "@type": [
2800
+ "ADR",
2801
+ "TechArticle"
2802
+ ],
2803
+ "name": "ADR-0109: The Dependency Floor Is the Wheel's, Not the Repo's — Runtime Stays requests + numpy, Everything Outside Follows search-first",
2804
+ "identifier": "ADR-0109",
2805
+ "status": "accepted",
2806
+ "datePublished": "2026-09-12",
2807
+ "description": "Gives the 'requests + numpy only' policy an owner and a scope. Until now no ADR decided it and no text bounded it: it was a pyproject fact, a README security-by-absence claim (two runtime dependencies), and a premise cited by ADR-0075/0077/0078, ADR-0071 (core/view_metrics.py) and .claude/verify.md (client.py) to reject dependencies — every recorded application inside the wheel, where the rule is sound. Unbounded, it reads as repo-wide: on 2026-09-12 an agent hand-wrote groupby/pivot aggregation in stdlib for a scripts/ instrument until the author corrected it (basic libraries are allowed; not for a single function), while the harness's search-first routes every dependency addition through a verdict whose only dependency anti-pattern is bloat for one small feature. D1: the floor is the wheel's runtime dependency set and stays requests + numpy; adding one needs an ADR that also updates the gate tests/test_dependency_floor.py; this is the only scope where 'adds a dependency' alone rejects. D2: outside the wheel (dependency-groups dev/eval, scripts/, tests/, evals/) dependency weight is not a veto — the search-first verdict decides on 'main job or one function', behind implementation-chain's Build-or-not and verify.sh's dependency audit; basic libraries (pandas, scipy) are adopted for their main job, a single function stays on numpy/stdlib. D3: a script taking a dev dependency declares its launcher (uv run --no-sync python, precedent weekly-analysis.sh's skill-selection stage); stdlib-only stays a per-script property justified by a bare-python3 launcher, stated in the script header, not cited as repo policy. D4: ADR-0011's 'Minimal Dependency principle' (orchestrator independence) is a different statement. No prior ADR gets a note; README unchanged because its claim stays true. Named cost: more third-party code executes unattended in the weekly chain's uv run stages — D1 protects the installed wheel, not the whole unattended process. Review-when: README drops the two-dependency claim (an ADR-gated addition is an amendment, a bypass is D1's death); scripts/ or evals/ become a separate package; search-first makes footprint a veto axis (author-checked at harness skill-stocktake); a second verify.sh / weekly-pipeline.sh failure from a dev-group package's version drift (uv.lock is gitignored).",
2808
+ "isBasedOn": [
2809
+ "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0071-read-only-pattern-composition-instruments.md",
2810
+ "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0075-observability-by-default.md",
2811
+ "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0077-chaos-tdd-fault-injection.md",
2812
+ "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0078-otel-connection-via-vocabulary-and-offline-export.md",
2813
+ "https://github.com/shimo4228/claude-harness/blob/main/skills/search-first/SKILL.md",
2814
+ "https://github.com/shimo4228/contemplative-agent/blob/main/tests/test_dependency_floor.py"
2815
+ ]
2816
+ },
2817
+ {
2818
+ "@id": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0110-instrument-series-projection.md",
2819
+ "@type": [
2820
+ "ADR",
2821
+ "TechArticle"
2822
+ ],
2823
+ "name": "ADR-0110: The Weekly Log Reading Becomes a Series — Session Ledger, Within-Week Outliers, Collapsed Windows",
2824
+ "identifier": "ADR-0110",
2825
+ "status": "accepted — partially-supersedes ADR-0107 (retired: the D2 projection sample, the D3 denylist, and D5's first Phase 0 input)",
2826
+ "datePublished": "2026-09-12",
2827
+ "description": "Replaces ADR-0107's weekly projection sample with a time-aware reading of the self-written logs. Context: ADR-0107 shipped the census on the morning of 2026-09-12; the same afternoon RFC-0036 (GET /home and GET /feed called alternately twelve times in the last eleven seconds of a session) was found by hand, and could not have been found by that projection — the whole shape of the fault is time, and a 30-row sample of the week's 4,035 api-audit rows draws those twelve with an expectation of 0.09 rows. ADR-0107's own Review-when had not fired (Phase 0 has run zero times); the ground for superseding is a design defect found before the first reading. Decisions: (1) the sample is deleted and six sections replace it — session ledger (one row per session, a median row last), session trace (all logs in ts order, run-length encoded so A B A B stays distinct from A A B B), session strips (the first hour as sixty characters scaled by the week's maximum), id-field repeats, within-week outliers, hunting windows (syslog-style collapse of consecutive same-category events); (2) columns are derived from the data, with the vocabulary unioned over the previous four weeks and the row set over every session_id, so a vanished category is a zero column and a silent session a zero row; (3) REGISTRY rows carry category / error / saturation axes instead of a prose note and stay callable-free data; (4) the projection becomes an allowlist at the load boundary (ts, session_id, registry-named fields, scalar *_id / *_sha256), superseding ADR-0107's denylist — a body is never read into a frame; (5) outliers use a modified z (Iglewicz & Hoaglin 1993) with three stated calibrations — a minimum gap needs three intervals, gaps and sums are scored on log1p, and where MAD is zero the scale floor is one unit of the column rather than their mean-absolute-deviation substitute, which saturates at 22.3 for any single departure — capped at five rows, one per column and one per session; (6) no cross-week comparison is built, the ledger ends in a median row the reader compares with the previous reports. Output is 25 KB against 130 KB, byte-identical across runs. The projection is structurally blind to chronic faults (RFC-0032 was present in every session from day one, so it departs from nothing); Redundancy and the reader of the ledger's absolute values carry that shape. Consumption plan (ADR-0101): weekly-report Phase 0 every week; two reads (2026-09-18, 09-25) decide whether it stays, against a frozen ledger median row; retires with the weekly chain, and the outlier ranking retires earlier if two consecutive weeks discard every listed outlier as no-counterfactual.",
2828
+ "isBasedOn": [
2829
+ "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0107-instrument-census-and-episode-log-folder.md",
2830
+ "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0101-instrument-dissolution-mandate.md",
2831
+ "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0099-weekly-report-instrument-redesign.md",
2832
+ "https://github.com/shimo4228/contemplative-agent/blob/main/rfcs/0036-session-end-cycle-spin.md"
2833
+ ],
2834
+ "partiallySupersedes": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0107-instrument-census-and-episode-log-folder.md"
2835
+ },
2836
  {
2837
  "@id": "https://shimo4228.github.io/shimo4228/vocab#ca/concept/pattern-composition-instruments",
2838
  "@type": [
 
2906
  "url": "https://github.com/shimo4228/agent-knowledge-cycle/blob/main/docs/adr/0016-measuring-thinking-centric-phases.md",
2907
  "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.",
2908
  "referencedBy": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0071-read-only-pattern-composition-instruments.md"
2909
+ },
2910
+ {
2911
+ "@id": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0111-insight-entrance-stages.md",
2912
+ "@type": [
2913
+ "ADR",
2914
+ "TechArticle"
2915
+ ],
2916
+ "name": "ADR-0111: The Insight Entrance Becomes a Sequence of Stages — Naming, Split Calls, Post-Extraction Duplicate Judge",
2917
+ "identifier": "ADR-0111",
2918
+ "status": "accepted",
2919
+ "datePublished": "2026-09-19",
2920
+ "description": "Turns the insight entrance into a fixed per-cluster stage sequence so that fewer candidates reach the weekly human gate. Context: the skill store saturated at 57 entries, where near-total rejection is the correct steady state (ADR-0074); the defect was volume, four Saturday gates rejecting 142 candidates by hand. Two read-only replays of the 2026-09-19 run (154 clusters) found that the pre-extraction novelty gate moves counts without separating populations, while a judge placed after the written candidate does separate them (at temperature 0: duplicate on 33/68 gate-rejected, 12/53 leave-one-out adopted, 0/7 control) — the ADR-0084 ordering. Decisions: (1) a naming call per cluster at temperature 0 against the five nearest store skills, enum-constrained on kind, target_skill and evidence_ids, enforced from the first run with no shadow mode; (2) revise records its target and reason and stops, only new reaches the body call (option A, because a replacement path pushes volume back up); (3) the extraction call splits into body (free prose, think-ON), description and name, with code assembling the frontmatter and rejecting format violations at save time rather than truncating (RFC-0024); (4) a post-extraction duplicate judge at temperature 0 over the same nearest five in the same 230-character projection, only distinct reaching staging, with the measured prompt wording moved to config/prompts unchanged; (5) both stages fail open with reason codes; (6) every call is logged to logs/insight-stages.jsonl (ADR-0075, prompt and output base64 + sha256); (7) no new weekly instrument (ADR-0101) — the four judged stopping reasons are counted per reason in the run's own yield line; (8) both judging calls run think-OFF, the condition they were measured under. Differs from the judge ADR-0097 retired: that one asked promotion worth of a candidate alone and answered promote 46/46, a question with no comparison term. Pre-registered refutation: a duplicate rate pinned at 0% or 100% in production removes the stage rather than tuning it.",
2921
+ "isBasedOn": [
2922
+ "https://github.com/shimo4228/contemplative-agent/blob/main/rfcs/0042-insight-entrance-narrowing.md",
2923
+ "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0074-weekly-staged-insight.md",
2924
+ "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0084-post-distill-durability-gate.md",
2925
+ "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0097-consolidator-dissolution-and-skill-store-exit.md",
2926
+ "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0075-observability-by-default.md",
2927
+ "https://github.com/shimo4228/contemplative-agent/blob/main/docs/evidence/rfc-0041/README.md"
2928
+ ]
2929
+ },
2930
+ {
2931
+ "@id": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0112-decision-backend-seam-and-shadow-skill-decision.md",
2932
+ "@type": [
2933
+ "ADR",
2934
+ "TechArticle"
2935
+ ],
2936
+ "name": "ADR-0112: A Decision Backend Seam — Typed Probabilistic Judgments Behind a Protocol, Observed in Shadow on Skill Selection",
2937
+ "identifier": "ADR-0112",
2938
+ "status": "accepted",
2939
+ "datePublished": "2026-09-22",
2940
+ "description": "Adds a DecisionBackend protocol beside LLMBackend: three typed questions (noul, choice, score) in, per-option probabilities out, with a closed reason vocabulary for every abstain. Context: six of the agent's LLM calls ask for a judgment rather than text and all run as constrained generation on gemma4:e4b; RFC-0043 replayed 150 production skill-selection rows through eight gemma arms and found that changing the interface (temperature 0, enum constraint, logit readout) did not move agreement with the frontier ceiling. The week after Jev's launch produced more than thirty open reimplementations converging on this same three-question contract, none of the trained ones servable by Ollama. Decisions: (1) the protocol and its frozen DTOs live in core/llm/decision.py, re-exported from core.llm, and return probabilities rather than decisions so thresholds stay in the calling code (ADR-0071); (2) injection mirrors LLMBackend — configure(decision_backend=...), default None, which disables the path entirely and keeps configuration absence as the kill switch (ADR-0076), the CLI building one only when DECISION_MODEL is set; (3) one implementation ships in the wheel with no new dependency, OllamaLogprobsDecisionBackend, reading the first token's top_logprobs (capped at 20 by Ollama) of a num_predict 1, temperature 0 request to the already allow-listed URL, with a choice of more than 20 options abstaining rather than being decomposed inside the backend, and trained models injected from a sibling repo so the dependency floor does not move (ADR-0109); (4) the decision model and the generation model are never resident together — an explicit keep_alive 0 eviction on each side of a batch that runs under a wall-clock budget (default 120 s), and a decision-path failure never suppresses or delays the publish it precedes; (5) the first observation is skill selection, one noul per catalog entry after the live selection, writing seven decision_* fields into the existing skill-selection-*.jsonl row plus one telemetry row per batch, with the live selection untouched; (6) the conformance check ships in the wheel as testing/decision_contract.py, deriving the canonical call from the protocol's own signature as ADR-0088 does for generation. Consumption plan: the enforce-or-retire reading after four Saturday gates with at least 200 answered rows, and the quiet-instrument removal after eight without them (ADR-0101).",
2941
+ "isBasedOn": [
2942
+ "https://github.com/shimo4228/contemplative-agent/blob/main/rfcs/0040-jev-system-one-local-decision-backend.md",
2943
+ "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0076-skill-selection-shadow-instrument.md",
2944
+ "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0088-shipped-conformance-kit-for-the-llm-backend-contract.md",
2945
+ "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0101-instrument-dissolution-mandate.md",
2946
+ "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0109-dependency-floor-scoped-to-the-wheel.md",
2947
+ "https://github.com/shimo4228/contemplative-agent/blob/main/docs/evidence/rfc-0043/README.md"
2948
+ ]
2949
+ },
2950
+ {
2951
+ "@id": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0113-decision-faces-and-relevance-score4-shadow.md",
2952
+ "@type": [
2953
+ "ADR",
2954
+ "TechArticle"
2955
+ ],
2956
+ "name": "ADR-0113: Decision Faces, and a 4-Level Score Shadow Beside the Relevance Gate",
2957
+ "identifier": "ADR-0113",
2958
+ "status": "accepted",
2959
+ "datePublished": "2026-09-25",
2960
+ "description": "Adds judgment faces to the ADR-0112 decision seam and observes the relevance gate with a 4-level Score read through first-token logprobs. Context: RFC-0045's offline replay of 2,698 logged posts found gemma's free-generation relevance score too lenient in its top band (489 of the 1,042 posts at >= 0.82 not on-topic by Jev), temperature 0 ineffective, and the same gemma asked a 4-level Score (unrelated / shares vocabulary only / same field / directly on-topic) through OllamaLogprobsDecisionBackend at AUC 0.944 on the dev set against 0.821 for production on the holdout. Decisions: (1) configure(decision_faces=...) and env DECISION_FACES (read only with DECISION_MODEL, default skill_selection, unknown names warned and dropped) — the kill switch becomes model configured AND face listed, annotated on ADR-0112; (2) every live relevance judgment is recorded in logs/relevance-{date}.jsonl (live score / reason / threshold / gate, post as b64 + digest, decision fields null with decision_reason unconfigured when no backend asks); (3) the shadow asks exactly arm C's state and question from core/relevance_state.py and config/prompts/relevance_score4.md, shared with the replay; (4) observe-only, every failure degraded to a reason code; (5) census series relevance- and a stdlib read-only reading (answered rate, live gate rate, would-be gate and agreement at t in 0.3/0.5/0.7, latency p50/p95, per ISO week). The offline enforce prior (precision / recall against opus) was not computed because the per-row replay file was not retained. Consumption plan: enforce or retire after four Saturday readings or 1,000 answered rows; removal after eight Saturdays without them (ADR-0101). Amended 2026-10-07 (RFC-0046 cleanup 2, after the face gate kept score4 at t = 0.3): the score4 read is the feed's only relevance judge — the feed no longer asks the free-generated score, the upvote, pre-action note and full-body fetch follow the score4 gate (the upvote-only band is removed), a gate with no answer fails closed and ends the feed cycle, the known-author threshold is removed, rows carry no live_* fields, and comment episodes carry relevance_p_top instead of relevance. Amendment 2 (2026-10-09, the migration; deletion of the free-generated score, relevance.md, thresholds.relevance, the DECISION_FACES / DECISION_ENFORCE switches and the skill-selection decision shadow is a later amendment): the CLI's defaults are production's (unset DECISION_MODEL is the Ollama generation model, unset DECISION_FACES / DECISION_ENFORCE are relevance, empty turns each off); self-post seed selection (ADR-0043) passes a peer post only through the feed's score4 gate at relevance_score4, via the same reader, reading but never writing the feed's cache, writing rows with source seed; the submolt-scope instrument (ADR-0086) scores with the score4 read, marks records scale score4 and is read at relevance_score4, older 0-1 records skipped and counted. The old scorer's llm-calls caller labels (moltbook.score_relevance, moltbook.submolt_scope) are the check that it has no production caller before deletion.",
2961
+ "isBasedOn": [
2962
+ "https://github.com/shimo4228/contemplative-agent/blob/main/rfcs/0046-relevance-gate-score4-logprobs-shadow.md",
2963
+ "https://github.com/shimo4228/contemplative-agent/blob/main/rfcs/0045-relevance-judgment-jev-proximity-replay.md",
2964
+ "https://github.com/shimo4228/contemplative-agent/blob/main/docs/evidence/rfc-0045/README.md",
2965
+ "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0112-decision-backend-seam-and-shadow-skill-decision.md",
2966
+ "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0076-skill-selection-shadow-instrument.md",
2967
+ "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0075-observability-by-default.md",
2968
+ "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0101-instrument-dissolution-mandate.md"
2969
+ ]
2970
  }
2971
  ]
2972
  }