Skip to content
Back to skills

Langgraph Proof

ASecurity

Use when building, reviewing, or debugging a LangGraph flow that must prove a resumed run preserved its recorded semantic transitions and side-effect discipline.

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 3, 2026
ai-agentsjavascripttypescriptpythonjavabashdebugginggit

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add zrk222/code-factory --skill langgraph-proof --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Langgraph Proof?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Langgraph Proof
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/zrk222-langgraph-proof/badge)](https://www.skillsdirectory.com/skills/zrk222-langgraph-proof)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: langgraph-proof
description: Use when building, reviewing, or debugging a LangGraph flow that must prove a resumed run preserved its recorded semantic transitions and side-effect discipline.
---

# Code Factory LangGraph Proof

Use Code Factory as a local proof layer around a team-owned LangGraph test
harness. It is not a graph runtime, checkpoint store, repair agent, or release
authority.

## Start with the boundary

Before relying on the MCP server, check that the current workspace has the
Code Factory CLI and inspect its stated local boundary:

```bash
factory --version
factory mcp status --root .
```

If the CLI is missing, explain that the user must install
`factoryline-code-factory>=0.43.0` in the environment that will host the local
MCP process. Do not install Python packages, change a client configuration, or
start a server without the user's approval.

## What to prove

For a LangGraph flow with a durable checkpoint or interruption path, ask for:

1. A team-owned reference harness run.
2. A separately captured resumed or interrupted run.
3. Two sealed, workspace-relative transition lineages. The recorder retains
   SHA-256 facts about state and side-effect identifiers, not raw state,
   prompts, or secrets.

Compare existing lineages without writing a file:

```bash
factory langgraph replay-verify \
  --root . \
  --reference .factory/langgraph/reference.json \
  --resumed .factory/langgraph/resumed.json \
  --json
```

Only add `--out .factory/langgraph/assurance.json` after the user explicitly
approves writing a local assurance receipt.

## Interpret the result precisely

- `LANGGRAPH_RESUME_PARITY_VERIFIED` means the supplied sealed lineages match
  semantically and the deterministic analysis found no supported anomaly.
- `LANGGRAPH_REPLAY_DIVERGENCE` means the supplied evidence differs or exposes
  duplicate completed effects, stale reads/writes, or unsafe parallel writes.
  Present the incident capsule and recovery cone for human review.
- `LANGGRAPH_INPUT_REJECTED` means the comparison was rejected before a
  receipt was written; fix the supplied inputs rather than guessing.

Never claim that a parity receipt proves production resilience, complete
instrumentation, external idempotency, savings, quality, or correctness beyond
the supplied lineages.

## MCP use

`factory.langgraph_assurance` is read-only. It may compare two existing
workspace-relative receipts; it cannot invoke a graph, mutate checkpoints,
replay effects, write a receipt, approve a repair, merge, deploy, publish,
send a message, or access credentials.

If a divergence needs code changes, prepare a narrow repair proposal and tests
for a human to approve. Do not authorize or execute repairs from the incident
capsule.

## Unified native audit operation

Use `factory scan --root PATH --deep --json` for the local audit overview.
For authorized native execution, add `--worker-config PATH` with signed,
SHA-pinned worker configuration. Select workers for the repository languages
and risk: CodeQL Python, JavaScript/TypeScript, or GitHub Actions; Semgrep's
Python and JavaScript/TypeScript rules; dependency, secret, configuration,
runtime and fuzz workers as applicable. MCP status tools read evidence;
they do not launch these workers.

Bind findings and repair instructions to candidate, profile, tool and image
hashes. Retain native SARIF flows and reproductions. Rerun affected checks after
a repair, then obtain separate specialty AI review. Reuse evidence only when
its complete candidate and execution bindings match; an inventory or stale
receipt is never a pass. Missing runtime, mutation or language coverage stays
incomplete. Avoid launching every heavyweight worker for each edit.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.