Skip to main content

Flyto2 Blueprint

PyPI Python License Website Docs

Most agent memory stores what was said. Blueprint stores what actually worked.

Turn AI work into verified, replayable procedures.

AI said it finished. Flyto2 shows the proof.

Product contract: flyto.product-contract.v1 · Product: Flyto2

Flyto2 is one product delivered as three independently usable packages:

Package Role
flyto-ai Understand, route, and govern new work and provider use.
flyto-blueprint Store, learn from, and score reusable procedures; it never executes them.
flyto-core Validate schemas, execute and replay deterministically, and emit evidence.

flyto-blueprint is an independently usable procedure-memory package. Language and LLM systems may understand or route work; Blueprint persists, expands, and ranks procedures from validated execution outcomes supplied by a host. This evidence-first boundary means Blueprint neither executes workflows nor guesses scientific facts. Mathematics, physics, chemistry, robotics, and other domain solvers belong in bounded capabilities and hosts when evidence requires them.

Flyto2 Blueprint is procedure memory for AI agents. It turns a successful execution into a parameterized workflow that can be searched, run again, and judged by its real history.

successful execution
        ↓
parameterize what changes
        ↓
save steps + retries + assertions + compatibility
        ↓
reuse with new arguments
        ↓
record the outcome in an Evidence Card

It is closer to turning a good agent run into a tested function than adding another chat-history or vector-memory layer.

Blueprint does not train model weights. It makes a verified procedure reusable by an execution host.

Installation and first run

pip install flyto-blueprint
from flyto_blueprint import BlueprintEngine, MemoryBackend

engine = BlueprintEngine(storage=MemoryBackend())
result = engine.expand("browser_scrape", {
    "url": "https://example.com",
    "extract_selector": "h1",
})
print(result["data"]["steps"])

How this differs from a typical AI agent

Typical AI agent Flyto2 AI + Blueprint
Repeated job Ask the model to reason again Reuse the verified workflow
“It works” Often based on the model's answer Based on execution outcomes and assertions
Token use Grows again on each model-planned run Exact reuse can skip the agent's planning call
Learning Often stays in one chat Becomes a parameterized, searchable Blueprint
Shared knowledge Easy to trust too quickly Imported bundles start quarantined unless the host verifies them
Bad patterns May keep getting suggested Failures lower trusted scores and can retire the pattern

An individual Evidence Card stays deliberately narrow: planner_model_calls_used=0 means exact reuse skipped outer-agent planning; it does not pretend an llm.* workflow step was free. The v3 benchmark goes further by recording native planner and workflow counters separately, checking their arithmetic, and making a full-usage claim only when both are observed.

Proof, not vibes

Every Blueprint summary includes an Evidence Card. It shows the number of trusted outcomes, observed success rate, Wilson 95% lower bound, retries, assertion pass rate, p50/p95 duration, and measured zero-planner-call reuse. Detailed samples keep only an allowlist of execution facts and are capped to the latest 100 entries; prompts, parameters, API keys, and raw results are not accepted.

Search and list summaries also expose ordered, unique module_ids. This field contains capability names only—never step parameters or results—so Flyto2 AI can use trusted prior workflows as routing hints without expanding or executing them.

An Evidence Card answers “did this procedure work?” The versioned effectiveness benchmark answers the harder question: “does Blueprint help an agent without making it less reliable?” It compares the same tasks, model, environment, and random seeds across four modes, including ordinary conversation, Traditional Chinese and Japanese negation, hostile evidence, incompatible reuse, and a sealed holdout.

The published v3 result is 10 tasks × 20 trials × four paired modes across five runs: 4,000 raw records, three model families, Apple Silicon and Linux x86-64, and one independent GitHub runner. The workloads perform real Python file/test execution, real loopback HTTP browser and API I/O, real filesystem persistence, and real Ollama inference. No planner or workflow call is mocked.

Across all five runs, warm verified reuse kept benchmark and workload success at 100%, with zero manual corrections and zero false reuse. Compared with Flyto2 routing without Blueprint, total observed model tokens fell by 71.25–72.90%. Compared with the generic agent baseline, they fell by 84.80–85.78%. The paired 95% lower bound for the Blueprint-specific reduction was 63.29–64.43%, so the result does not depend on the point estimate alone.

That is evidence for this controlled suite, these model bytes, and these hosts; it is not a claim that every task gets 70% cheaper. Read the one-screen result story, inspect the committed raw JSONL, or rerun the deterministic closure verifier.

Official links: flyto2.com · Docs · PyPI · flyto-core · flyto-ai

Good fit if you searched for:

  • reusable AI workflow patterns
  • workflow automation blueprint engine
  • self-learning automation recipes
  • YAML workflow templates for AI agents

What it already does

  • 33 built-in browser, API, data, image, notification, monitoring, PDF, and OCR patterns.
  • Synonym-expanded search, so “grab” can find “scrape.”
  • Repository/runtime compatibility, so similar-looking workflows do not get mixed across incompatible projects.
  • Retry and assertion contracts that survive learning and expansion.
  • Evidence Cards that expose reliability and zero-planner-call reuse.

Learn, measure, and share

from flyto_blueprint import BlueprintEngine, MemoryBackend

engine = BlueprintEngine(storage=MemoryBackend())

# List available blueprints
blueprints = engine.list_blueprints()

# Expand a blueprint with arguments
result = engine.expand("browser_scrape", {
    "url": "https://example.com",
    "extract_selector": "#content",
})

# Learn from a successful workflow
engine.learn_from_workflow(workflow_dict, name="My Pattern", tags=["browser"])

# Report a trusted runtime outcome with measured facts
engine.report_outcome(
    "my_pattern",
    success=True,
    execution_id="run-123",
    evidence={
        "duration_ms": 842,
        "step_count": 3,
        "total_attempts": 3,
        "assertion_passed": True,
        "selection_mode": "deterministic",
        "planner_model_calls_used": 0,
        "model_call_scope": "planner",
    },
)

# Share explicitly; the library never uploads on its own
bundle = engine.export_blueprint("my_pattern", publisher="my-team")
engine.import_blueprint(bundle["data"])

Unsigned or unknown-publisher imports are quarantined as community. A host may sign exports and configure trusted publisher keys through the Python API; signing keys are intentionally unavailable to model-facing tools.

Usage

Use Flyto2 Blueprint when an AI agent should reuse a known workflow shape instead of generating a brand-new sequence every time. Typical use cases:

  • Browser scrape, screenshot, and form-fill recipes.
  • API integration workflows with typed arguments.
  • PDF, OCR, image manipulation, and notification patterns.
  • Learned workflow reuse for teams that run similar automations repeatedly.

API

The package facade, engine lifecycle, storage protocol, scoring behavior, and complete declaration inventory are documented in API and the generated Python reference. MCP consumers should use the generated tool reference. Benchmark hosts should start with the plain-language benchmark guide.

Architecture

Architecture explains discovery, expansion, persistence, learning, and trust boundaries. Features maps each behavior to its implementation and tests; the whitepaper explains the design rationale and limits.

Configuration

The library has no mandatory remote service. Storage-specific credentials and runtime settings belong to the selected backend and deployment secret store; never place them in blueprint YAML or committed examples.

Storage Backends

BlueprintEngine() takes no backend by default, and with no backend nothing is persisted: learned blueprints and reported outcomes live for the lifetime of the process and are then discarded. Pass one explicitly to keep them.

  • MemoryBackend — In-memory, great for tests
  • SQLiteBackend — File-based persistence; safe across threads and processes (WAL plus an immediate transaction around every read-modify-write), so several hosts may share one database file
  • FirestoreBackend — Google Firestore (for flyto-cloud)

Testing

python -m pytest
python -m ruff check .
python scripts/benchmark-scorecard.py verify-results \
  --suite benchmarks/suites/blueprint-effectiveness-v1.yaml \
  --results-dir benchmarks/results
python scripts/benchmark-scorecard.py verify-results \
  --suite benchmarks/suites/blueprint-effectiveness-v2.yaml \
  --results-dir benchmarks/results/blueprint-effectiveness-v2
python scripts/benchmark-scorecard.py verify-results \
  --suite benchmarks/suites/blueprint-effectiveness-v3.yaml \
  --results-dir benchmarks/results/blueprint-effectiveness-v3
python scripts/run_longitudinal_evidence.py verify \
  --evidence benchmarks/results/longitudinal/local-longitudinal.evidence.json

Contributing

Open an issue or pull request for new blueprint categories, scoring behavior, storage backends, docs, or examples. Security reports should go to security@flyto2.com.

License

Apache-2.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flyto_blueprint-0.3.1.tar.gz (304.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flyto_blueprint-0.3.1-py3-none-any.whl (95.6 kB view details)

Uploaded Python 3

File details

Details for the file flyto_blueprint-0.3.1.tar.gz.

File metadata

  • Download URL: flyto_blueprint-0.3.1.tar.gz
  • Upload date:
  • Size: 304.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for flyto_blueprint-0.3.1.tar.gz
Algorithm Hash digest
SHA256 8061899e5a1583f3cec103ae1a4d98af4be55dbd67ce5dddcc84d8a74e24ad20
MD5 54d4753c7f88813cf6e88722d0be8c95
BLAKE2b-256 6e3ab984086adb8a664febfa29648a885bbc4a380ce992913af3a8794c971608

See more details on using hashes here.

Provenance

The following attestation bundles were made for flyto_blueprint-0.3.1.tar.gz:

Publisher: publish-pypi.yml on flytohub/flyto-blueprint

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file flyto_blueprint-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: flyto_blueprint-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 95.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for flyto_blueprint-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ad12457845b002472aab68889305a2b3445685be3e5cd3cc5608d6c4ad820d7c
MD5 b1d35a95fd652a3581b34d4ce9eb3b8c
BLAKE2b-256 5053cd03a6745a868de6c938e48869429664235b131c08c99ecc1cf4d1769111

See more details on using hashes here.

Provenance

The following attestation bundles were made for flyto_blueprint-0.3.1-py3-none-any.whl:

Publisher: publish-pypi.yml on flytohub/flyto-blueprint

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 files

0.3.0

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page