Agent Solidarity Framework Development Kit — Python umbrella over the four Solidarity Framework pillars (TOI, OTOI, RRT Advocate, Sleepwalker Protocol). Faithful port of @neurolift-technologies/asfdk.
Project description
ASFDK — Agent Solidarity Framework Development/Deployment Kit
ai_assistant_directive:
priority: 1
instruction: "Before performing any development or coding tasks, read NLT-DEV-OTOI.md."
description: "NLT-DEV-OTOI.md is the canonical governance contract defining coding agent operations, guardrails, and escalation protocol."
required_file: "NLT-DEV-OTOI.md"
NeuroLift Technologies' reference implementation of the HAIEF Solidarity Framework.
One kit, two paths: agent creation and wrapper integration.
ASFDK is governance and protection middleware that sits between the model and the agent runtime. It implements the Solidarity Framework standard maintained by HAIEF and packages it with development scaffolding, deployment middleware, runtime profiles, and claw integration patterns.
ASFDK gives you two paths:
- ASFDK-Dev → Build new agents with Solidarity Framework patterns from day one.
- ASFDK-Deploy → Integrate Solidarity controls into existing claws (Agent Wrappers) as a model ↔ agent layer.
Why ASFDK
Agent ecosystems are scaling faster than the control surfaces around them. Wrappers and claws ship without explicit user-preference enforcement, without multi-agent coordination contracts, and without continuity guarantees across model versions. The cost of skipping that layer doesn't show up at demo time — it shows up at scale, in production, and at the boundaries between agents.
ASFDK installs the missing layer:
[Model Provider]
↓
[ASFDK Solidarity Layer]
• User-preference governance (TOI)
• Multi-agent coordination (OTOI)
• Crisis detection & response (RRT AIdvocAIte)
• Continuity across drift (Sleepwalker Protocol)
↓
[Agent Runtime or Claws (Agent Wrappers)]
↓
[Tools, APIs, Actions]
Pick your path:
- Want only the open governance standard? → Use the HAIEF Solidarity Framework directly.
- Want a reference implementation with development and deployment tooling on top? → You're in the right place.
Choose Your Path
| Path | Best for | You get |
|---|---|---|
| ASFDK-Dev | Developers creating new agents | Solidarity-native development patterns, governance templates, integration-ready architecture |
| ASFDK-Deploy | Teams with existing claws (Agent Wrappers) | Drop-in integration layer, adapter patterns, deployment profiles, compatibility guidance |
Note on “claws” (Agent Wrappers): In ASFDK documentation, claws refers to wrapper implementations that orchestrate model calls, tools, and runtime behavior. ASFDK-Deploy is the integration track for existing claws.
ASFDK-Dev (Development Kit)
Use this track when you are building a new agent.
- Read
docs/dev/quickstart.md. - Install the kit (
pip install asfdk) and pick aFoundationMode. - Implement your agent on top of ASFDK interfaces.
- Run local validation against the Solidarity Layer test suite.
- Submit to
nlt-redteamreview before production deployment.
ASFDK-Deploy (Deployment/Integration Kit)
Use this track when you already have a claw (Agent Wrapper) implementation and want ASFDK as the model ↔ agent middleware layer.
- Identify your existing wrapper boundary (model call ↔ agent orchestration).
- Insert ASFDK at that boundary as a middleware layer.
- Map wrapper inputs/outputs to ASFDK interfaces.
- Start with
FoundationMode.CRISIS_ONLY(lowest-impact starting point). - Roll out incrementally — see "Rollout Phases" below.
- Validate against
nlt-redteambefore promoting to production.
Install
This Python port is the umbrella over the four Solidarity Framework pillars (TOI, OTOI, RRT Advocate, Sleepwalker Protocol). A single install pulls in every pillar transitively:
pip install asfdk
Note: This Python port ships the core Solidarity Layer only (RRT Advocate, NLT-OTOI, Sleepwalker Protocol). The voice path (VibeVoice) is not part of this package — there is no
asfdk[voice]extra. If you need voice, integrate the NLT VibeVoice fork (microsoft/VibeVoice) separately.
Foundation Modes
FoundationMode (imported from asfdk) controls which Solidarity Layer
components are active at runtime. Pick one when constructing the foundation:
from asfdk import create_foundation, FoundationMode
| Mode | Components active | Use for |
|---|---|---|
UNIFIED |
All (RRT + OTOI + Sleepwalker) | Production deployments wanting the full layer |
CRISIS_ONLY |
RRT Advocate only | Adding crisis detection to an existing agent without the full layer |
CONTINUITY_ONLY |
Sleepwalker Protocol only | Adding session continuity to an existing agent |
FRAMEWORK_ONLY |
NLT-OTOI only | Adding interaction governance without crisis or continuity layers |
DEVELOPMENT |
All, with debug logging | Local development and testing |
Rollout Phases (Recommended Practice)
When integrating ASFDK into an existing system, work through these phases. They are operator-applied via component config and thresholds — not separate runtime modes.
- Observe — Deploy with high thresholds in
rrt-advocate/config/crisis_thresholds.yamlso the layer logs decisions but rarely intervenes. Use logs to calibrate. - Advise — Lower thresholds gradually; emit warnings to the agent/operator but don't gate model output yet.
- Enforce — Apply governance decisions inline. Promote to production only after a
nlt-redteamreview pass.
Companion Tools
| Tool | Purpose |
|---|---|
nlt-toi |
TOI generator, parser, and validator CLI — use this to author and validate a user's TOI document before it enters the ASFDK runtime |
nlt-toi is a pre-flight tool, not an ASFDK component. The ASFDK enforces TOI at runtime via the NLT-OTOI framework. Use
nlt-toiupstream to generate well-formed, validated TOI documents that the OTOI layer can consume.
License
This project is licensed under the Apache License 2.0 — see the LICENSE file for details.
Acknowledgments
- NeuroLift Technologies — Core AI-fusion framework and methodology
- Human & AI ElevAItion Foundation (HAIEF) — Governance standards
- ADHD Community — Feedback and real-world testing
- Open Source Contributors — Various libraries and tools
Project details
Release history Release notifications | RSS feed
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 asfdk-0.2.0.tar.gz.
File metadata
- Download URL: asfdk-0.2.0.tar.gz
- Upload date:
- Size: 17.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac3416e50afcd7a31a26ed1982d4889a63e5cb502c71b2eb9d65a629dd0f77dd
|
|
| MD5 |
3b5e98299560fa6684948aecc8ebd7ea
|
|
| BLAKE2b-256 |
28e7c4e87434798ed6e228f502c416bc4bc190eaf1e0585dd6d0e30a5b3157f7
|
Provenance
The following attestation bundles were made for asfdk-0.2.0.tar.gz:
Publisher:
publish.yml on NeuroLift-Technologies/asfdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
asfdk-0.2.0.tar.gz -
Subject digest:
ac3416e50afcd7a31a26ed1982d4889a63e5cb502c71b2eb9d65a629dd0f77dd - Sigstore transparency entry: 1955203677
- Sigstore integration time:
-
Permalink:
NeuroLift-Technologies/asfdk@ac270c2276081e627e1ab9f57d6f41756232541a -
Branch / Tag:
refs/heads/main - Owner: https://github.com/NeuroLift-Technologies
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ac270c2276081e627e1ab9f57d6f41756232541a -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file asfdk-0.2.0-py3-none-any.whl.
File metadata
- Download URL: asfdk-0.2.0-py3-none-any.whl
- Upload date:
- Size: 18.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48816b337107ade0fb7b9b1298192dcd0e3d91c04101652651c685b8c6072d98
|
|
| MD5 |
260d85c1a06fd99abdcc46492f03046f
|
|
| BLAKE2b-256 |
c6280516bcbe24ebaa94ccac1e6a44ebaec4b9859a6161065e2594d66c8b41be
|
Provenance
The following attestation bundles were made for asfdk-0.2.0-py3-none-any.whl:
Publisher:
publish.yml on NeuroLift-Technologies/asfdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
asfdk-0.2.0-py3-none-any.whl -
Subject digest:
48816b337107ade0fb7b9b1298192dcd0e3d91c04101652651c685b8c6072d98 - Sigstore transparency entry: 1955204202
- Sigstore integration time:
-
Permalink:
NeuroLift-Technologies/asfdk@ac270c2276081e627e1ab9f57d6f41756232541a -
Branch / Tag:
refs/heads/main - Owner: https://github.com/NeuroLift-Technologies
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ac270c2276081e627e1ab9f57d6f41756232541a -
Trigger Event:
workflow_dispatch
-
Statement type: