FlowChartCharter
The execution-first multi-agent paradigm — after GraphRAG
Two lines to instantiate a Boss Agent. One YAML file to charter an enterprise.
pip install flowchart-charter-engine
fcc version
fcc --local run library/secops_vulnerability_audit.yaml
fcc monitor # Rich live dashboard
from flowchartcharter import FlowChartCharterSystem
system = FlowChartCharterSystem()
result = system.execute_charter("Legacy Code Refactor")
print(result["quality"], result["trust"], result["playbook_mode"])
Manifesto: Why GraphRAG Is Not Enough
GraphRAG answered a real question: what is related, and how do I retrieve it?
In production multi-agent shops, that question is no longer the bottleneck. The bottleneck is:
| GraphRAG failure mode | What it costs |
|---|---|
| Hallucinated retrieval paths | Silent wrong answers with confident prose |
| Token bloat | Re-reason every job from chunks; bill compounds |
| Loop exhaustion | Humans stay in the loop to babysit every hop |
| No accountability | Agents don't fear failure; drift is free |
| No muscle memory | Yesterday's perfect trajectory dies after the chat |
FlowChartCharter flips the objective.
We do not optimize relatedness. We optimize the fastest reliable path to execute, under budget, under schema, under fear of termination — until the engineer can leave the live loop (Coach Trust Hand-Off).
Graph tools remain callable sub-flows when pure discovery is required.
The Charter owns the workflow.
Architectural Pillars
1. The Deterministic FlowChart (YAML Charterfile)
The Head Coach writes one file. The compiler hydrates the entire enterprise.
playbook_name: "Legacy Auth Refactor"
version: "1.0.0"
global_cfo_ceiling: 3500
roster_requisition:
- role: "Data_Sanitizer"
capabilities: ["json_parsing", "regex"]
- role: "Code_Architect"
capabilities: ["python_ast", "security_refactor"]
flow_units:
- id: "U1_Ingest_Clean"
assigned_role: "Data_Sanitizer"
expected_tokens: 500
schema:
clean_code: "string"
variables_found: "list[string]"
Schemas become live Pydantic models at runtime. Live-Wire LLM output is forced through them. Failures are not warnings — they are entanglement errors.
2. Teleological Performance Constraints (TPC / Fear Metric)
Every node carries a termination_risk_index.
- High risk → temperature collapses toward zero, schema locks, creativity caps
- Schema divergence increments the immutable telemetry ledger
- Monday Morning Sync fires bloat, not hard work
Fitness is teleological: success rate + bounded speed − token bloat + synergy.
Agents that wander die. Agents that execute cleanly promote.
3. The Boss Agent Corporate Hierarchy
Executive Board (CEO strategy · CFO budget gate)
↓
General Manager / Boss Agent (Monday Sync · dossier execution)
↓
Position Managers / Key Players / Coaches
↓
Elastic Phantoms (capability gaps filled at runtime)
JSON blackboard. Volunteer bind. Quantum-inspired path collapse under CFO ceilings.
The engineer is the Head Coach — not a permanent copilot.
4. Muscle-Memory Vectors
Successful trajectories are committed — not text chunks.
- State-vector encode → cosine / ANN retrieve
- HIT: reuse Flow Path + prompt tweak (cheat code)
- MISS: fall back to standard Charter pathing
- Production backends: in-memory · Qdrant · Pinecone
GraphRAG retrieves documents. Muscle-Memory retrieves proven execution.
5. The 5-Day Analytics Film Room
The Analytics Chief does not guess on Monday morning.
- Ingest daily cycle telemetry
- Close five days of moving-average film
- Emit a Roster Recommendation Dossier
- Boss Agent executes promote / demote / fire / lean re-hire
Board-driven talent management. Not vibes.
Install
pip (public package)
pip install flowchart-charter-engine
fcc version
fcc --local run library/secops_vulnerability_audit.yaml
fcc monitor # Rich live dashboard
Optional vector SDKs:
pip install "flowchart-charter-engine[vector]"
From source
git clone https://github.com/CharleSpectre13/flowchartcharter.git
cd flowchartcharter
pip install -e ".[dev]"
export PYTHONPATH=packages/core
60-second tour
from flowchartcharter import FlowChartCharterSystem
system = FlowChartCharterSystem(seed=42)
# Living Playbook + Muscle-Memory + Live-Wire (mock offline)
out = system.execute_charter(
"Legacy Code Refactor",
context_entropy=0.35,
)
assert out["trust"] or out["quality"] > 0.8
# Head Coach: load a Charterfile
system.load_playbook("examples/charterfiles/legacy_auth_refactor.yaml")
run = system.execute_compiled("Refactor legacy auth module")
print(run["flow_path"], run["units_ok"], run["quality"])
API Nervous System
export PYTHONPATH=packages/core
python -m flowchartcharter
# → http://0.0.0.0:8090/docs
| Method | Path | Role |
|---|---|---|
POST |
/workload/submit |
JSON job → Boss Agent |
GET |
/roster/status |
Fitness + termination risk |
POST |
/system/load-playbook |
Upload Charterfile YAML |
POST |
/system/execute-compiled |
Run active playbook |
POST |
/system/trigger-monday-sync |
Force talent prune |
POST |
/system/advance-analytics |
Film-room +1 day |
Enterprise Docker
One command boots API + Qdrant Muscle-Memory:
docker compose up --build
engine → http://localhost:8090
qdrant → http://localhost:6333
docs → http://localhost:8090/docs
Live LLM (optional):
export FCC_LLM_PROVIDER=xai # openai | gemini | mock
export FCC_LLM_API_KEY=...
docker compose up --build
Fitness (patched)
F(x) = α · (Q_success / Q_total)
+ β · exp(−Δt / expected_t) # bounded speed
− γ · max(0, tokens − expected)/N # bloat only
+ Q_entanglement
Lifecycle
ST-01 Init → ST-02 Bind → ST-03 Super-step (Live-Wire)
→ ST-04 Rhythm Audit → ST-05 Remediate
→ ST-06 Coach Trust Hand-Off
→ ST-07 Monday Morning Sync (dossier-driven)
Developer CLI (fcc)
| Command | Purpose |
|---|---|
fcc run playbook.yaml |
Compile + execute Charterfile |
fcc monitor |
Live Rich TUI (fear, fitness, tokens, film room) |
fcc sync / fcc trigger-sync |
Monday Morning Sync |
fcc audit-film |
Analytics Chief 5-day protocol |
fcc submit "job" |
Ad-hoc Boss Agent workload |
fcc library |
List enterprise / CharterHub playbooks |
Offline-safe: if the API is down, pass --local for in-memory engine.
CharterHub
Community playbook ecosystem: charterhub/ — DockerHub for agent workflows.
Phase 5 — Enterprise Beta
Observability
GET /metrics — Prometheus (fear index, entanglement errors, token spend, active nodes).
Playbook library
Zero-to-one Charterfiles in library/:
secops_vulnerability_audit.yamllegacy_to_react_migration.yamlunstructured_data_etl.yaml
Live Sandbox UI
PYTHONPATH=packages/core python scripts/serve_dashboard.py
# open http://localhost:8090/ui/
Continuous Audit Loop
Every push to main runs Pepe standards:
- pycodestyle · pyflakes · black --check
- compileall · example suite ·
scripts/audit_loop.py - wheel/sdist build artifact
Locally:
python scripts/audit_loop.py
Package layout
packages/core/flowchartcharter/ # installable core
api_server.py # FastAPI Nervous System
playbook_compiler.py # YAML Charterfile → dynamic Pydantic
production.py # LLMExecutionClient + vector backends
muscle_memory.py / living_playbook.py
analytics.py / survival.py / quantum.py
examples/charterfiles/ # Head Coach DSL samples
docker-compose.yml # API + Qdrant
.github/workflows/audit.yml # CI
License
Apache-2.0. Open design. Build the charter. Fire the bloat. Exit the loop.
FlowChartCharter — execution first. fear real. memory earned.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flowchart_charter_engine-1.6.1.tar.gz.
File metadata
- Download URL: flowchart_charter_engine-1.6.1.tar.gz
- Upload date:
- Size: 105.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32e70aafffefa3a4ab086d97d689637c0ea98562a0d09f26f6a12589512510c9
|
|
| MD5 |
62b1e4d97539f1416ad3d1d1d4c97521
|
|
| BLAKE2b-256 |
f627ecd11a29afce1b1e4634ea556d442f5b07e2eb5c545199037d06ebfdf628
|
File details
Details for the file flowchart_charter_engine-1.6.1-py3-none-any.whl.
File metadata
- Download URL: flowchart_charter_engine-1.6.1-py3-none-any.whl
- Upload date:
- Size: 119.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2bb0be68bf1b1d594fbae3614eeeff50e275bb03a5e38ab54223d5b35f2d1e32
|
|
| MD5 |
792cfedc057f4bf3251321b5fc91688a
|
|
| BLAKE2b-256 |
25e91620464f87a60da173856b0e8ae3ff33ad2479bff24b6eebb0abedfdf6e0
|