Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

welt-io-langgraph

Latest version: v0.10.5

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
PyPI package Publisher: iwamot
0 Stars
0 Forks
4 Versions
223 Downloads
Python Repo language

Scan summary

welt-io-langgraph was last scanned on 29 Nov 2026 at version 0.10.5. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 4 versions; the latest was published on 29 Nov 2026.
  • Findings: No rules fired in version 0.10.5.
  • Downloads: 223 downloads.

Versions

4 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.10.5 LATEST 29 Nov 2026 No rules fired
0.10.4 1 Nov 2026 No rules fired
0.10.3 20 Oct 2026 No rules fired
0.10.2 10 Oct 2026 Not shown

No rules fired in 0.10.5

Findings

Findings for v0.10.5. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.10.5; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

welt-io-langgraph

pypi python langgraph

The LangGraph (Python) adapter for Welt's wire contract.

Install

uv add welt-io-langgraph bedrock-agentcore langchain langchain-aws

Usage

start_reply and renderable_events are the wiring between Welt's payload and a LangGraph agent, so a deployable is your graph plus a short entrypoint:

from collections.abc import AsyncIterator
from uuid import uuid4

from bedrock_agentcore.runtime import BedrockAgentCoreApp
from langchain.agents import create_agent
from langchain_core.runnables import RunnableConfig
from langgraph.checkpoint.memory import InMemorySaver
from welt_io_langgraph import renderable_events, start_reply

app = BedrockAgentCoreApp()
agent = create_agent("bedrock_converse:global.anthropic.claude-sonnet-4-6", checkpointer=InMemorySaver())


@app.entrypoint
async def invoke(payload: dict) -> AsyncIterator[dict]:
    config = RunnableConfig(configurable={"thread_id": uuid4().hex})
    async for event in renderable_events(start_reply(agent, payload, config)):
        yield event


if __name__ == "__main__":
    app.run()

A fresh thread per turn, because the Slack thread is the source of truth for conversation history. An agent with approval tools keeps the threads it needs to resume; examples/agent shows that as a map in main.py, holding each interrupted run's thread under the ids of the interrupts it raised and dropping the whole stop when the answers arrive.

To see it in Slack, run the file (uv run main.py). It serves on port 8080, where Welt's local mode reaches it, so follow Welt's Quick Start with this file in place of the example agent. To deploy, follow the example's Deploy to AgentCore Runtime section with this file in place of the downloaded main.py, then point Welt's AGENT_ARN at the runtime.

See examples/agent for the full version — the smallest complete agent built on this package (text streaming, tool use, file output, file input, and human-approval tools). The sections below cover the entrypoint and the adapters it wires in.

Supported Versions

Welt

While both are 0.x, a welt-io-langgraph 0.Y release supports Welt v0.Y. From 1.0 on, a release supports any Welt release that shares its major version, and the minor versions move independently. Support is best effort either way, and other combinations come with no guarantee.

LangGraph

The badge at the top states the range this release installs against. Every push and pull request runs the suite at both ends of it: the declared floor, and the newest release CI has picked up. That is best effort rather than a guarantee — the floor is where the suite was last seen to pass, so a later release may raise it, and no ceiling is declared at all. langchain-core comes along as a dependency and carries no floor of its own, because LangGraph asks for a newer one than anything here needs.

The badge follows the current release. For the range an older release declared, read that release's own metadata on PyPI.

Something misbehaving inside that range is worth an issue.

API

The wire between Welt and the agent is JSON, specified by Welt's wire contract — plain LangGraph values do not fit it in either direction. Two functions adapt the inbound payload, two the outbound stream. start_reply wires the inbound pair into a stream (interrupt_reason serves the tools themselves); reach for the pieces directly when your entrypoint needs a shape of its own — messages to edit before the run, a graph to stream some other way. The messages they read are LangChain's, which carry standard content blocks.

Reply
start_reply(agent, payload, config)

Starts the stream that replies to Welt's payload. It reads which envelope Welt sent — Converse-shaped messages for a conversation turn, interrupt_responses for the answers that resume an interrupted run — decodes it, and streams the graph on the result. What comes back is the graph's raw stream, for renderable_events to reduce.

Interrupts need the graph compiled with a checkpointer — LangGraph's own requirement, since pausing and resuming run through checkpoints; nothing here checks it. Which thread config names stays with the caller: a conversation turn belongs on a fresh one, because the Slack thread is the source of truth for conversation history and letting the checkpointer stack turns into its own history would double the conversation; a resume belongs on the thread the interrupted run stopped in, which the caller kept — under the interrupt ids Welt sends back, or however else suits the agent. Nothing is held here, so nothing here decides how long an unanswered approval stays answerable.

Inbound
decode_messages(messages)

Turns Welt's Converse-shaped messages — built from the Slack thread, file bytes base64-encoded — into role/content message dicts that feed the graph input ({"messages": decoded}) as-is:

Converse block Standard content block
Text Text
Image Image
Document File (the document's name carried as name, and with its format as the extension as filename)
Video Video

Each file-carrying block gets the media type LangChain models expect in place of the Converse format token, and the base64 data stays base64 — standard content blocks need no decoding.

decode_interrupt_responses(responses)

Turns Welt's resume payload — a mapping of interrupt id to the answer a human chose and the widget it came from — into the mapping Command(resume=...) takes, answering every pending interrupt at once. A plain interrupt resumes with the answer as the value it was given:

agent.astream(
    Command(resume=decode_interrupt_responses(payload["interrupt_responses"])),
    config,
    stream_mode=["messages", "updates"],
)

The interrupt ids are LangGraph's own, as emitted by renderable_events; the config must point at the interrupted thread, which the example agent's entrypoint stashes when an interrupt event goes by. Answers to a HumanInTheLoopMiddleware request are rejoined into the decisions it resumes from, so the host app calls this the same way either way.

What arrives is taken as correct

Welt builds the payload and checks its own output against the wire contract before releasing it, so these two functions do no field validation of their own. A payload that departs from the contract is a bug on the sending side rather than an input to guard against, and it surfaces as an ordinary error from whatever touches it first — a KeyError or a TypeError here, or a refusal from LangChain or Bedrock further on.

The one thing decode_messages refuses outright is a content block of a kind Welt never sends. A messages turn carries only text, image, document, and video blocks; a toolUse or toolResult block is not a malformed one of those but a forged conversation turn, and rebuilt into history it would let a caller that is not Welt put words the model treats as its own past tool calls and their results into the run. It raises ValueError. This is a trust-boundary check, not the field validation the contract otherwise saves you from.

Outbound
renderable_events(stream, files_from=...)

Reduces the (mode, payload) items of astream(..., stream_mode=["messages", "updates"]) — whose values Welt does not render — to the events Welt renders:

LangGraph emits On the wire In the Slack thread
Token deltas data The streamed reply
Tool calls and tool messages current_tool_use / tool_result "Using tool" indicators (tool output stays off the wire)
Image / file / video / audio content blocks the model returns, or a tool named in files_from returns file An uploaded file (size limits)
Pending interrupts interrupt Buttons and/or a text field

A run that stops for human input ends its stream with one interrupt event per pending interrupt — or per reviewed action, for a HumanInTheLoopMiddleware request; agents that do not use interrupts see no change.

A tool hands files to the model for either of two reasons — to have it read them, or to give them to the human — and only the agent knows which is which, so name the tools whose files belong in the thread:

async for event in renderable_events(stream, files_from={"create_sample_file"}):

A tool left out keeps its files to the model: one that reads a PDF for the model does not drop it into the thread as a side effect. A tool named there returns the file as a content block, which the model reads and Welt uploads:

return [
    {"type": "text", "text": f"Created {name}.csv."},
    {
        "type": "file",
        "name": name,
        "mime_type": "text/csv",
        "base64": b64encode(csv).decode("ascii"),
    },
]

A tool message carries the name of the tool that produced it, so nothing else has to be passed in. Uploaded names come from the block's own name plus its media type, the block's kind for the rest (image.png). That name is also the model's handle on the document — Converse rejects a request whose messages carry two documents under one name, so a tool that returns files has to keep their names apart across the run: the example appends a short uuid to each.

Each event carries only what Welt reads, and an event with nothing to render — a text chunk the model left empty, a file with no bytes — is not sent at all.

The model calls LangChain's middleware makes for its own purposes — the summary SummarizationMiddleware writes, the pick LLMToolSelectorMiddleware makes — reach the same stream, and are dropped along with the rest: langchain marks them in the payload's metadata (1.3.15 and later), and a marked call renders nothing. On an older langchain the marker is absent and a summary lands in the thread as if the model had written it. Handing such a middleware a model tagged nostream keeps its calls off the stream instead, on any version:

SummarizationMiddleware(model=model.with_config(tags=["nostream"]))
interrupt_reason(message, options=..., approve=..., reject=..., input=...)

Builds the structured reason Welt renders as a message with the specified widgets — the approve and reject buttons Welt words and values itself (approve, reject), choice buttons of your own (options), a free-text field (input), or any combination. approve and reject answer with True and False, so a question whose decision is approval asks for them by name instead of inventing values; {} takes Welt's wording, and a label or style overrides it. An option's value is any JSON value, and the pressed button answers with it as it was declared. With no widget at all the message renders as itself and Welt's default buttons answer it. The specs are the wire's own shapes, typed as DecisionSpec, OptionSpec, and InputSpec, and omitted fields keep Welt's defaults:

answer = interrupt(
    interrupt_reason(
        "Deploy to prod?",
        approve={"label": "Deploy"},
        reject={"label": "Cancel"},
        input={"label": "Or type your answer"},
    )
)

Building the reason through this helper is what makes a typo an error. interrupt takes its value as Any, so a dict literal handed to it directly is checked by nothing, and Welt's reaction to a reason it cannot match is its default buttons — no error, no log, just widgets you did not ask for. The typed parameters catch a misspelled key before the run; the checks inside catch it in runs where no type checker was involved. What they check is the shape, not the size: how many buttons one Slack block holds, and how long a button value may be, are Welt's to enforce.

Working with interrupts

Welt's Interrupts doc covers the Slack side: how each reason renders, who can answer, multiple questions, and expiry. On the LangGraph side:

  • interrupt needs a checkpointer, even though the conversation history lives in Slack — pausing and resuming run through checkpoints. An in-memory checkpointer works on AgentCore Runtime, where each session keeps its own microVM, for as long as that microVM lives: a question left open past that can no longer be resumed (Expiry). An in-memory checkpointer can still carry a stopped run elsewhere: the example agent lists the thread's checkpoints with alist, keeps them in S3, and puts them back with aput and aput_writes when the answers arrive, so any process can resume it.
  • Start each conversation turn on a fresh thread. Welt sends the whole Slack thread every turn by default, so letting the checkpointer stack turns into its own history would double the conversation. Resume alone reuses the interrupted thread's config. (An agent that keeps its own history instead sets AGENT_MANAGES_HISTORY on the Welt side.)
  • A plain interrupt value renders too. Any non-structured value — interrupt("Deploy to prod?") — becomes a question with Welt's default buttons, whose answers arrive as True / False.
  • Code before interrupt runs again on resume. LangGraph re-executes the interrupted node (or tool) from its start, so wrap whatever precedes an interrupt and must not run twice — side effects, or work that must match what the human approved — in a LangGraph task: a completed task is not re-executed on resume; its saved result is reused. The example agent's sample_draft_report shows the pattern.

Gating tools with HumanInTheLoopMiddleware

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases welt-io-langgraph

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Frame 2085668439 (1)
Group 1261154229