Upload graph.jsonld with huggingface_hub
Browse files545 unmodified lines546547548549550551552553554701 unmodified lines12561257125812591260126112621263126415 unmodified lines128012811282128312841285128612871288329 unmodified lines1618161916201621162216231624933 unmodified lines255825592560256125622563256425652566545 unmodified lines],"name": "ADR-0016: Insight as Narrow Generator, Stocktake as Broad Consolidator","identifier": "ADR-0016","status": "accepted","datePublished": "2026-04-11","description": "Two complementary skill-layer commands with disjoint responsibilities: `insight` generates focused new skills; `skill-stocktake` consolidates the broader catalog. Avoids one command doing both at degraded quality."},{"@id": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0017-yogacara-eight-consciousness-frame.md",701 unmodified lines],"name": "ADR-0046: Stocktake Duplicate Detection — LLM Grouping over Embedding Clustering","identifier": "ADR-0046","status": "accepted","datePublished": "2026-05-30","description": "Reverts skill-stocktake / rules-stocktake duplicate detection from embedding-cosine + single-linkage union-find clustering (introduced in commit 316719f for performance) back to a single LLM grouping call returning {groups:[{files,reason}]}. Embedding-only over-merged: auto-extracted skills share so much contemplative-AI boilerplate ('emptiness pruning', 'trembling texture', friction-to-insight framing) that distinct concrete patterns score 0.90+ cosine, and transitive single-linkage chained 18 skills into one blob that the per-group CANNOT_MERGE safety net could not split. The grouping LLM reads full bodies and discriminates on concrete behavior, leaving vocabulary-similar but behaviorally-distinct skills ungrouped. Paired with a merge-prompt inversion from 'synthesize the shared core' to 'preserve the union of every distinct concrete pattern; dedup only verbatim boilerplate'. The original 316719f perf motivation (generate() hung at hardcoded num_predict=8192) is moot now that callers pass explicit num_predict. Removes the dead SIM_CLUSTER_THRESHOLD constant. Live result: 18 skills -> 5 small groups + 8 standalone -> merge gate rejected 2 via CANNOT_MERGE and merged 3 = an 18->16 consolidation with no blob. Refines ADR-0016 (stocktake as broad consolidator). Accepted limits: LLM grouping is not exhaustive (can miss a near-duplicate pair); over-broad merges remain possible; the deepest jargon ceiling is upstream in the insight extraction prompt and is left unaddressed. Commits 7224b30, 0f05ecf."},{"@id": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0047-comment-sampling-temperature.md",15 unmodified lines],"name": "ADR-0048: Trigger-Altitude for Skill Lifecycle","identifier": "ADR-0048","status": "accepted","datePublished": "2026-06-02","description": "Applies trigger-altitude generalization across the full skill lifecycle (generate / merge / clean) so episode-derived 'When to Use' triggers — usernames, post IDs, saturated relevance scores (>0.92), timestamp windows — are rewritten to structural altitude instead of matching only the past episode that produced them. Stage 1 (insight, commit c20ec5f) requires recurring structural triggers; stage 2 (stocktake merge, config/prompts/stocktake_merge.md) generalizes surface identifiers and drops saturated-score numerics while keeping genuine recurring thresholds; stage 3 (new stocktake clean phase, core/stocktake.py clean_skill_triggers + CLEAN_NOOP idempotence) rewrites un-merged singletons directly. Grouping (stocktake_skills.md) judges trigger sameness at altitude. Also fixes a frontmatter regression: merge now emits a name/description/origin block (mirroring insight_extraction.md), and clean preserves the original file's frontmatter verbatim via text_utils.split_frontmatter (synthesize_frontmatter only for legacy frontmatter-less skills), keeping reflection bookkeeping (success_count / failure_count / last_reflected_at) intact. Live run consolidated 16 skills -> 6 (3 merges consuming 13 sources + 3 cleaned singletons). Rejected: verbatim triggers, numeric skill-count cap (no-numeric-caps rule), embedding clustering (ADR-0046), skip-frontmatter-emission, regenerate-frontmatter-on-every-clean. Refines ADR-0016 (insight narrow / stocktake broad); operates within ADR-0046's LLM grouping/merge path; ADR-0036 retired the embedding usage-log retirement signal, leaving stocktake as the sole counter-pressure to skill-corpus growth. Accepted limits: merge altitude generalization is stochastic on qwen3.5:9b (one saturated score retained in the live run, hand-corrected before adopt); aggressive consolidation can yield over-broad merged skills (one 7->1 merge produced a 10-trigger skill)."},{"@id": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0049-meditation-active-inference-fidelity-and-deferral.md",329 unmodified lines"@language": "ja"}],"description": "AKC Phase 3. Consolidation and re-organization of the accumulated knowledge layer. In Contemplative Agent, realized by insight (narrow generator), skill-stocktake / rules-distill (broad consolidator), amend-constitution, and the embedding + view substrate.","partOf": "https://shimo4228.github.io/shimo4228/vocab#concept/six-phase-loop","order": 3,"realizedBy": [933 unmodified lines],"name": "ADR-0096: Promotion-Worth Abstain at Insight Time — Judge the Produced Skill, List the Surprise","identifier": "ADR-0096","status": "proposed","datePublished": "2026-08-17","description": "Completes ADR-0053's promotion-worth judgment, which had no channel for \"no\": insight_extraction.md opened with a production order and _extract_skill dropped a cluster only on an LLM failure or a missing title, so on 2026-07-25 all 84 gate-surviving clusters that produced a titled document became candidates and none were dropped on worth (owner then adopted 5 of 78). Adds (a) an in-band NOTHING-PROMOTABLE abstain to the extraction prompt without reframing its first line, and (b) a post-extraction worth gate (config/prompts/insight_worth.md, insight._worth_gate) that judges the PRODUCED skill — ADR-0084 measured that the same question asked before production answers yes 40/40. A judged abstain becomes the reason code nothing_promotable, tallied apart from four fault reasons, and the split decides control flow: a fault-bearing empty run preserves the incremental window, an all-verdict empty run advances the marker. On by default (MOLTBOOK_INSIGHT_WORTHGATE=0 opts out); fails open with reason=worthgate_*. Separately, core/insight_surprise.py enumerates each candidate's distance from the last 1000 distilled patterns (s_mean / s_nn, LLM-free) into the staging sidecar and the run log as MATERIAL for the human gate — no threshold, no reordering, and deliberately no z-normalization: the 2026-08-17 calibration found a raw max-cosine spread of 0.108 at p50 0.806 that z-scoring inflates to ~5 sd, manufacturing discrimination the data does not contain."},{"@id": "https://shimo4228.github.io/shimo4228/vocab#ca/concept/pattern-composition-instruments",545 unmodified lines546547548549550551552553554555701 unmodified lines125712581259126012611262126312641265126615 unmodified lines1282128312841285128612871288128912901291329 unmodified lines1621162216231624162516261627933 unmodified lines2561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588545 unmodified lines],"name": "ADR-0016: Insight as Narrow Generator, Stocktake as Broad Consolidator","identifier": "ADR-0016","status": "partially-superseded-by ADR-0097","datePublished": "2026-04-11","description": "Two complementary skill-layer commands with disjoint responsibilities: `insight` generates focused new skills; `skill-stocktake` consolidates the broader catalog. Avoids one command doing both at degraded quality.","partiallySupersededBy": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0097-consolidator-dissolution-and-skill-store-exit.md"},{"@id": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0017-yogacara-eight-consciousness-frame.md",701 unmodified lines],"name": "ADR-0046: Stocktake Duplicate Detection — LLM Grouping over Embedding Clustering","identifier": "ADR-0046","status": "partially-superseded-by ADR-0097","datePublished": "2026-05-30","description": "Reverts skill-stocktake / rules-stocktake duplicate detection from embedding-cosine + single-linkage union-find clustering (introduced in commit 316719f for performance) back to a single LLM grouping call returning {groups:[{files,reason}]}. Embedding-only over-merged: auto-extracted skills share so much contemplative-AI boilerplate ('emptiness pruning', 'trembling texture', friction-to-insight framing) that distinct concrete patterns score 0.90+ cosine, and transitive single-linkage chained 18 skills into one blob that the per-group CANNOT_MERGE safety net could not split. The grouping LLM reads full bodies and discriminates on concrete behavior, leaving vocabulary-similar but behaviorally-distinct skills ungrouped. Paired with a merge-prompt inversion from 'synthesize the shared core' to 'preserve the union of every distinct concrete pattern; dedup only verbatim boilerplate'. The original 316719f perf motivation (generate() hung at hardcoded num_predict=8192) is moot now that callers pass explicit num_predict. Removes the dead SIM_CLUSTER_THRESHOLD constant. Live result: 18 skills -> 5 small groups + 8 standalone -> merge gate rejected 2 via CANNOT_MERGE and merged 3 = an 18->16 consolidation with no blob. Refines ADR-0016 (stocktake as broad consolidator). Accepted limits: LLM grouping is not exhaustive (can miss a near-duplicate pair); over-broad merges remain possible; the deepest jargon ceiling is upstream in the insight extraction prompt and is left unaddressed. Commits 7224b30, 0f05ecf.","partiallySupersededBy": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0097-consolidator-dissolution-and-skill-store-exit.md"},{"@id": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0047-comment-sampling-temperature.md",15 unmodified lines],"name": "ADR-0048: Trigger-Altitude for Skill Lifecycle","identifier": "ADR-0048","status": "partially-superseded-by ADR-0097","datePublished": "2026-06-02","description": "Applies trigger-altitude generalization across the full skill lifecycle (generate / merge / clean) so episode-derived 'When to Use' triggers — usernames, post IDs, saturated relevance scores (>0.92), timestamp windows — are rewritten to structural altitude instead of matching only the past episode that produced them. Stage 1 (insight, commit c20ec5f) requires recurring structural triggers; stage 2 (stocktake merge, config/prompts/stocktake_merge.md) generalizes surface identifiers and drops saturated-score numerics while keeping genuine recurring thresholds; stage 3 (new stocktake clean phase, core/stocktake.py clean_skill_triggers + CLEAN_NOOP idempotence) rewrites un-merged singletons directly. Grouping (stocktake_skills.md) judges trigger sameness at altitude. Also fixes a frontmatter regression: merge now emits a name/description/origin block (mirroring insight_extraction.md), and clean preserves the original file's frontmatter verbatim via text_utils.split_frontmatter (synthesize_frontmatter only for legacy frontmatter-less skills), keeping reflection bookkeeping (success_count / failure_count / last_reflected_at) intact. Live run consolidated 16 skills -> 6 (3 merges consuming 13 sources + 3 cleaned singletons). Rejected: verbatim triggers, numeric skill-count cap (no-numeric-caps rule), embedding clustering (ADR-0046), skip-frontmatter-emission, regenerate-frontmatter-on-every-clean. Refines ADR-0016 (insight narrow / stocktake broad); operates within ADR-0046's LLM grouping/merge path; ADR-0036 retired the embedding usage-log retirement signal, leaving stocktake as the sole counter-pressure to skill-corpus growth. Accepted limits: merge altitude generalization is stochastic on qwen3.5:9b (one saturated score retained in the live run, hand-corrected before adopt); aggressive consolidation can yield over-broad merged skills (one 7->1 merge produced a 10-trigger skill).","partiallySupersededBy": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0097-consolidator-dissolution-and-skill-store-exit.md"},{"@id": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0049-meditation-active-inference-fidelity-and-deferral.md",329 unmodified lines"@language": "ja"}],"description": "AKC Phase 3. Consolidation and re-organization of the accumulated knowledge layer. In Contemplative Agent, realized by insight (narrow generator), amend-constitution, and the embedding + view substrate. ADR-0097 dissolved the batch consolidators (skill-stocktake's grouping / merge / clean stages, rules-distill, rules-stocktake): consolidation moved to the Saturday human gate, informed by code-owned readings over the selection log (co-selection families, never-selected exposure) rather than an LLM pass over the store; skill-stocktake keeps only a quality report, the usage reading and the ADR-0081 description audit.","partOf": "https://shimo4228.github.io/shimo4228/vocab#concept/six-phase-loop","order": 3,"realizedBy": [933 unmodified lines],"name": "ADR-0096: Promotion-Worth Abstain at Insight Time — Judge the Produced Skill, List the Surprise","identifier": "ADR-0096","status": "partially-superseded-by ADR-0097","datePublished": "2026-08-17","description": "Completes ADR-0053's promotion-worth judgment, which had no channel for \"no\": insight_extraction.md opened with a production order and _extract_skill dropped a cluster only on an LLM failure or a missing title, so on 2026-07-25 all 84 gate-surviving clusters that produced a titled document became candidates and none were dropped on worth (owner then adopted 5 of 78). Adds (a) an in-band NOTHING-PROMOTABLE abstain to the extraction prompt without reframing its first line, and (b) a post-extraction worth gate (config/prompts/insight_worth.md, insight._worth_gate) that judges the PRODUCED skill — ADR-0084 measured that the same question asked before production answers yes 40/40. A judged abstain becomes the reason code nothing_promotable, tallied apart from four fault reasons, and the split decides control flow: a fault-bearing empty run preserves the incremental window, an all-verdict empty run advances the marker. On by default (MOLTBOOK_INSIGHT_WORTHGATE=0 opts out); fails open with reason=worthgate_*. Separately, core/insight_surprise.py enumerates each candidate's distance from the last 1000 distilled patterns (s_mean / s_nn, LLM-free) into the staging sidecar and the run log as MATERIAL for the human gate — no threshold, no reordering, and deliberately no z-normalization: the 2026-08-17 calibration found a raw max-cosine spread of 0.108 at p50 0.806 that z-scoring inflates to ~5 sd, manufacturing discrimination the data does not contain.","partiallySupersededBy": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0097-consolidator-dissolution-and-skill-store-exit.md"},{"@id": "https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0097-consolidator-dissolution-and-skill-store-exit.md","@type": ["ADR","TechArticle"],"name": "ADR-0097: Consolidator Dissolution and a Skill-Store Exit — Subtraction, then Exit, then Vocabulary","identifier": "ADR-0097","status": "accepted — partially-supersedes ADR-0016, ADR-0046, ADR-0048, ADR-0096","datePublished": "2026-08-22","partiallySupersedes": ["https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0016-insight-narrow-stocktake-broad.md","https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0046-stocktake-llm-grouping-over-embedding-clustering.md","https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0048-trigger-altitude-skill-lifecycle.md","https://github.com/shimo4228/contemplative-agent/blob/main/docs/adr/0096-insight-promotion-worth-abstain.md"],"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)."},{"@id": "https://shimo4228.github.io/shimo4228/vocab#ca/concept/pattern-composition-instruments",
graph.jsonld+31-9