From 60005b4c5c0fa7b1a67cb7a5682b8c11ec7a6d91 Mon Sep 17 00:00:00 2001 From: Juan Manuel Castillo Pinto <33883620+jmmana@users.noreply.github.com> Date: Thu, 3 Dec 2026 22:52:31 -0500 Subject: [PATCH] Count the verified LangChain integration in adoption snapshots --- docs/adoption.md | 10 +++++----- scripts/adoption_snapshot.py | 23 ++++++++++++++++------- tests/test_adoption_snapshot.py | 17 ++++++++++++++++- 3 files changed, 37 insertions(+), 13 deletions(-) diff --git a/docs/adoption.md b/docs/adoption.md index 6f9f0a5..3cd42de 100644 --- a/docs/adoption.md +++ b/docs/adoption.md @@ -13,7 +13,7 @@ An em dash indicates unavailable data. | PyPI downloads | 1,592 | [PyPI Stats](https://pypistats.org/api/packages/sqlguardllm/recent), reported rolling month | | NuGet downloads | — | [NuGet Search](https://azuresearch-usnc.nuget.org/query?q=packageid%3ASqlGuardLlm&prerelease=true) with a [regional fallback](https://azuresearch-ussc.nuget.org/query?q=packageid%3ASqlGuardLlm&prerelease=true), lifetime downloads of the core package | | Public directory listings | 2 | [Distribution tracker](https://github.com/jmmana/sqlguardllm/issues/132) and [MCP Registry](https://registry.modelcontextprotocol.io/v0.1/servers/io.github.jmmana%2Fsqlguardllm/versions/latest) | -| Verified integrations | — | [Python MCP SDK stdio smoke test](https://github.com/jmmana/sqlguardllm/issues/148) | +| Verified integrations | — | [Python MCP SDK stdio](https://github.com/jmmana/sqlguardllm/issues/148) · [LangChain](https://github.com/jmmana/sqlguardllm/issues/169) | ## 90-day comparison @@ -21,7 +21,7 @@ Baseline **2026-11-29** (UTC). Waiting for the first snapshot on or after **2027 ## Snapshots -The scheduled Docs workflow carries snapshots forward. For captures on the same UTC date, the latest successful value is kept for each metric. npm values must also describe the same download window. +The scheduled Docs workflow keeps the published baseline and carries later snapshots forward. For captures on the same UTC date, the latest successful value is kept for each metric. npm values must also describe the same download window. | Date | Stars | Forks | External contributors | npm downloads | PyPI downloads | NuGet downloads | Public directory listings | Verified integrations | | --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | @@ -33,17 +33,17 @@ Directory counts use the confirmed public listings below and include the officia Confirmed listings: [AgentRank](https://agentrank-ai.com/tool/jmmana--sqlguardllm/) · [Glama](https://glama.ai/mcp/servers/jmmana/sqlguardllm) · [M8ven](https://m8ven.ai/mcp/jmmana/sqlguardllm) · [nl2sql.ai](https://nl2sql.ai/tools/sqlguardllm) -Integration counts use recorded end-to-end runtime evidence. See the [integration guide](INTEGRATIONS.md) for additional recipes. +New snapshots count integrations with recorded end-to-end runtime evidence. The history keeps the counts recorded on each capture date. See the [integration guide](INTEGRATIONS.md) for additional recipes. ## Upstream integration outcomes -Last reviewed November 30, 2026. Track changes in [the upstream adoption epic](https://github.com/jmmana/sqlguardllm/issues/164). +Track changes in [the upstream adoption epic](https://github.com/jmmana/sqlguardllm/issues/164). | Project | Status | Evidence | | --- | --- | --- | | mcp-alchemy | Proposed, awaiting maintainer response | [Upstream issue](https://github.com/runekaagaard/mcp-alchemy/issues/44) | | Agno | Contribution inquiry, awaiting maintainer response | [Upstream comment](https://github.com/agno-agi/agno/issues/8643#issuecomment-7288071144) | -| LangChain | Package implemented, publication and documentation listing pending | [Implementation PR](https://github.com/jmmana/sqlguardllm/pull/204) · [Tracking issue](https://github.com/jmmana/sqlguardllm/issues/169) | +| LangChain | Package installation and runtime verified. Provider listing verified on December 3, 2026 | [Provider catalog](https://docs.langchain.com/oss/python/integrations/providers/all_providers) · [Installation and runtime evidence](https://github.com/jmmana/sqlguardllm/issues/169) | | CrewAI | Dependency resolution passed, upstream contribution pending | [Compatibility CI](https://github.com/jmmana/sqlguardllm/actions/runs/46486253354) | | pandas-ai | Dependency conflict blocks adoption | [Compatibility notes](COMPATIBILITY.md) | diff --git a/scripts/adoption_snapshot.py b/scripts/adoption_snapshot.py index 4c87947..ff90673 100644 --- a/scripts/adoption_snapshot.py +++ b/scripts/adoption_snapshot.py @@ -25,6 +25,11 @@ "M8ven": "https://m8ven.ai/mcp/jmmana/sqlguardllm", "nl2sql.ai": "https://nl2sql.ai/tools/sqlguardllm", } +LANGCHAIN_CATALOG = "https://docs.langchain.com/oss/python/integrations/providers/all_providers" +VERIFIED_INTEGRATIONS = { + "Python MCP SDK stdio": f"{REPO}/issues/148", + "LangChain": f"{REPO}/issues/169", +} BASELINE = { "date": "2026-11-29", "stars": 9, @@ -127,7 +132,7 @@ def collect(now): "pypi": measure("PyPI", lambda: get_json(PYPI_STATS)["data"]["last_month"]), "nuget": measure("NuGet", nuget_downloads), "listings": len(LISTINGS) + int(active) if active is not None else None, - "integrations": 1, + "integrations": len(VERIFIED_INTEGRATIONS), } @@ -209,7 +214,9 @@ def render(history): "lifetime downloads of the core package" ), "listings": f"[Distribution tracker]({REPO}/issues/132) and [MCP Registry]({REGISTRY})", - "integrations": f"[Python MCP SDK stdio smoke test]({REPO}/issues/148)", + "integrations": " · ".join( + f"[{name}]({url})" for name, url in VERIFIED_INTEGRATIONS.items() + ), } lines = [ "# Adoption dashboard", @@ -276,13 +283,13 @@ def render(history): "Confirmed listings: " + " · ".join(f"[{name}]({url})" for name, url in LISTINGS.items()), "", - "Integration counts use recorded end-to-end runtime evidence. " + "New snapshots count integrations with recorded end-to-end runtime evidence. " + "The history keeps the counts recorded on each capture date. " "See the [integration guide](INTEGRATIONS.md) for additional recipes.", "", "## Upstream integration outcomes", "", - "Last reviewed November 30, 2026. Track changes in " - f"[the upstream adoption epic]({REPO}/issues/164).", + f"Track changes in [the upstream adoption epic]({REPO}/issues/164).", "", "| Project | Status | Evidence |", "| --- | --- | --- |", @@ -291,8 +298,10 @@ def render(history): "| Agno | Contribution inquiry, awaiting maintainer response | " "[Upstream comment](https://github.com/agno-agi/agno/issues/8643" "#issuecomment-7288071144) |", - "| LangChain | Package implemented, publication and documentation listing pending | " - f"[Implementation PR]({REPO}/pull/204) · [Tracking issue]({REPO}/issues/169) |", + "| LangChain | Package installation and runtime verified. " + "Provider listing verified on December 3, 2026 | " + f"[Provider catalog]({LANGCHAIN_CATALOG}) · " + f"[Installation and runtime evidence]({VERIFIED_INTEGRATIONS['LangChain']}) |", "| CrewAI | Dependency resolution passed, upstream contribution pending | " f"[Compatibility CI]({REPO}/actions/runs/46486253354) |", "| pandas-ai | Dependency conflict blocks adoption | " diff --git a/tests/test_adoption_snapshot.py b/tests/test_adoption_snapshot.py index ffcef57..11a0b8c 100644 --- a/tests/test_adoption_snapshot.py +++ b/tests/test_adoption_snapshot.py @@ -1,6 +1,6 @@ import json import runpy -from datetime import date, timedelta +from datetime import date, datetime, timedelta, timezone from pathlib import Path import pytest @@ -114,3 +114,18 @@ def test_restored_history_rejects_noncanonical_dates(tmp_path: Path) -> None: with pytest.raises(ValueError, match="YYYY-MM-DD"): script["load_history"](previous) + + +def test_new_adoption_capture_counts_verified_integration_evidence( + monkeypatch: pytest.MonkeyPatch, +) -> None: + script = runpy.run_path(str(SCRIPT)) + collect = script["collect"] + monkeypatch.setitem(collect.__globals__, "measure", lambda _label, _read: None) + capture = collect(datetime(2026, 12, 3, tzinfo=timezone.utc)) + assert capture["integrations"] == 2 + assert script["BASELINE"]["integrations"] is None + dashboard = script["render"]([script["BASELINE"], capture]) + assert "| Verified integrations | 2 |" in dashboard + assert "[LangChain](https://github.com/jmmana/sqlguardllm/issues/169)" in dashboard + assert "[Provider catalog](" + script["LANGCHAIN_CATALOG"] + ")" in dashboard