Skip to main content

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.

  1. Read docs/dev/quickstart.md.
  2. Install the kit (pip install asfdk) and pick a FoundationMode.
  3. Implement your agent on top of ASFDK interfaces.
  4. Run local validation against the Solidarity Layer test suite.
  5. Submit to nlt-redteam review 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.

  1. Identify your existing wrapper boundary (model call ↔ agent orchestration).
  2. Insert ASFDK at that boundary as a middleware layer.
  3. Map wrapper inputs/outputs to ASFDK interfaces.
  4. Start with FoundationMode.CRISIS_ONLY (lowest-impact starting point).
  5. Roll out incrementally — see "Rollout Phases" below.
  6. Validate against nlt-redteam before 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.

  1. Observe — Deploy with high thresholds in rrt-advocate/config/crisis_thresholds.yaml so the layer logs decisions but rarely intervenes. Use logs to calibrate.
  2. Advise — Lower thresholds gradually; emit warnings to the agent/operator but don't gate model output yet.
  3. Enforce — Apply governance decisions inline. Promote to production only after a nlt-redteam review 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-toi upstream 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


Download files

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

Source Distribution

asfdk-0.2.0.tar.gz (17.2 kB view details)

Uploaded Source

Built Distribution

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

asfdk-0.2.0-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

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

Hashes for asfdk-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ac3416e50afcd7a31a26ed1982d4889a63e5cb502c71b2eb9d65a629dd0f77dd
MD5 3b5e98299560fa6684948aecc8ebd7ea
BLAKE2b-256 28e7c4e87434798ed6e228f502c416bc4bc190eaf1e0585dd6d0e30a5b3157f7

See more details on using hashes here.

Provenance

The following attestation bundles were made for asfdk-0.2.0.tar.gz:

Publisher: publish.yml on NeuroLift-Technologies/asfdk

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

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

Hashes for asfdk-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 48816b337107ade0fb7b9b1298192dcd0e3d91c04101652651c685b8c6072d98
MD5 260d85c1a06fd99abdcc46492f03046f
BLAKE2b-256 c6280516bcbe24ebaa94ccac1e6a44ebaec4b9859a6161065e2594d66c8b41be

See more details on using hashes here.

Provenance

The following attestation bundles were made for asfdk-0.2.0-py3-none-any.whl:

Publisher: publish.yml on NeuroLift-Technologies/asfdk

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page