From 25b0ac4a2cc13ce44dcf7e9131f56cdfced28475 Mon Sep 17 00:00:00 2001 From: KN Date: Tue, 9 Jun 2026 06:13:10 +0300 Subject: [PATCH] feat(compose)+chore(oss): mistune markdown render + private-ref scrub MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two changes bundled for one OSS-readiness pass. == Compose: real markdown rendering == The T33 compose_record used a naive paragraph-only converter that rendered markdown lists as one

blob and tables as raw `|---|` text. Swap in mistune>=3.0 with GFM table + strikethrough + task_lists + autolink plugins and escape=False so the chart-embed snippets compose splices in for tags pass through intact. Net surface change: lists, tables, blockquotes, inline code, links, headings (h1-h6), and ordered/unordered lists now render correctly in narrative.html output. All 835 tests still pass — claim/chart ref binding behaviour is unchanged. Version bump 0.1.6 -> 0.1.7 to flag the new mistune dep to consumers. == OSS scrub: private refs == Replace internal hostnames + business + sibling-repo names across 18 files in src/, eval/, .html-kit/, SPEC.md, and tests/ so the public repo carries no inferences about the author's internal infra: growth_insights -> consumer-repo nairomarket -> your-business naimarket -> your-business kuze -> consumer-repo kg_rust -> consumer-repo kg_rust_embed_first -> consumer-repo-2 lan.ds.ke -> internal.example.com infisical.lan.ds.ke -> infisical.internal.example.com laminar-grpc.lan.ds.ke -> laminar-grpc.internal.example.com `LMNR_PROJECT_API_KEY_INSIGHT_KIT` env name retained — it documents the "use a dedicated key per consumer" convention, not a leak. Git history left intact (rewriting destroys SHAs other repos may pin). .eval/ added to .gitignore — local demo artefacts (shopify_meta_attr compose output) don't belong in tree. Co-Authored-By: Claude Opus 4.7 --- .gitignore | 1 + .html-kit/00_index.html | 22 +- .html-kit/01_current-state.html | 30 +- .html-kit/03_dataframe-stack-fit.html | 4 +- .html-kit/04_pandera-fit.html | 2 +- .../05_feature-platform-and-claim-bundle.html | 2 +- .html-kit/06_provenance-loop.html | 4 +- .html-kit/07_cache-walkthrough.html | 6 +- .html-kit/10_evidence-sdk.html | 4 +- .../14_agentic-coding-observability.html | 4 +- .html-kit/15_t17-smoke-1pt0-critic.html | 4 +- .html-kit/16_session-backlog-board.html | 4 +- .html-kit/18_t25-debate-trigger-spec.md | 2 +- .html-kit/19_d02-factorial-design.md | 2 +- SPEC.md | 2 +- eval/README.md | 20 +- pyproject.toml | 3 +- .../integrations/omp/session_parser.py | 2 +- src/insight_kit/narrative/analyst_prompt.py | 6 +- src/insight_kit/platform/gate/compose.py | 42 +- .../platform/observability/lmnr.py | 6 +- tests/integrations/omp/test_session_parser.py | 2 +- uv.lock | 744 +++++++++++++++++- 23 files changed, 817 insertions(+), 101 deletions(-) diff --git a/.gitignore b/.gitignore index e00d486..880b74e 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,4 @@ node_modules/ bun.lockb .html-kit/_archive/ .playwright-cli/ +.eval/ diff --git a/.html-kit/00_index.html b/.html-kit/00_index.html index ccccb1e..1233e1d 100644 --- a/.html-kit/00_index.html +++ b/.html-kit/00_index.html @@ -140,7 +140,7 @@

Should insight-kit sit on top of Apache Hamilton?dockblocks-ops/.insight-kit (48 runs, Apr–May 2026) is a hand-sequenced exploratory loop with heavy boilerplate. Hamilton is a DAG framework with native lifecycle hooks, tags, materialisers, caching, and a notebook→prod story. - A prior memory already records the decision to build growth_insights v2 on Hamilton — this artifact + A prior memory already records the decision to build consumer-repo v2 on Hamilton — this artifact is the architecture-level how, what to keep, what to drop, what's the lift.

@@ -417,7 +417,7 @@

Add (free features once Hamilton is the driver)

OPENLINEAGE

h_openlineage plugin

Free emission to OpenLineage / Marquez / OpenMetadata if you ever need an external lineage catalog (already noted in prior decision memory).

MATERIALISERS

Declarative I/O

@save_to.parquet / @load_from.parquet + @save_to.duckdb: build_duckdb_views.py mostly disappears.

SUBDAG

Reusable critic / council patterns

@subdag + @parameterize = "critic-of(claim_X) across 5 angles" as a one-liner. Today this is 5 scripts.

-
NOTEBOOK

Same code, notebook to prod

Hamilton's hello-world story is "write functions in .py, iterate in notebook, ship the same module". Matches insight-kit's "5 exploratory .py + 1 final annotated module" pattern documented for growth_insights.

+
NOTEBOOK

Same code, notebook to prod

Hamilton's hello-world story is "write functions in .py, iterate in notebook, ship the same module". Matches insight-kit's "5 exploratory .py + 1 final annotated module" pattern documented for consumer-repo.

§3.5Going deeper — claims as tagged nodes

@@ -633,7 +633,7 @@

§5.5The intervention loop — the real

Pivot. The integration's value isn't a faster council megabatch. It's a closed-loop intervention engine. The pattern is already half-built in -nairomarket/growth_insights/data/initiatives_log.jsonl — every record is an intervention +your-business/consumer-repo/data/initiatives_log.jsonl — every record is an intervention (G4-2026-05-04, F7-2026-05-05, DIAG-DISMISS-2026-05-05) that was executed (Meta Marketing API POST, customer-file hash + upload, Events-Manager kebab-click) and is now waiting for a checkpoint date to be re-measured. @@ -725,7 +725,7 @@

Why Hamilton turns this from a JSONL register into a system

What that means concretely