Skip to content

SeCuReDmE-main-dev/FfeD-QLC-MVP

Repository files navigation

SecuredMe Education Suite public calendar

Attribution: Jean-Sebastien Beaulieu · ORCID 0009-0007-2904-0443 · SecuredMe · FfeD-QLC

Issues Milestones Project Board Branch

Gateway-ready E2B audit lane Gateway-ready Datadog observability

Gateway support acknowledgement. This SecuredMe school tool is gateway-compatible. E2B audit support and Datadog observability are routed through the shared SecuredMe gateway when that lane is configured; this repository does not claim a direct E2B or Datadog runtime dependency by default, and no E2B or Datadog secret is stored in this README.

School Authentication And Secret Boundary

This repository is a small SecuredMe school tool. Official classroom use must not require .env files, API keys, raw tokens, or local model secrets. Student and teacher workflows must use Codex/OpenAI or Antigravity/Gemini through browser WebAuth, fingerprinted session approval, and encrypted local session records when authentication is needed.

The reason for excluding generic local AI routes from official school mode is student and teacher safety: education accounts, provider-side account controls, browser login, and governed AI refusal behavior are safer than unguided local model endpoints for classroom cybersecurity and algorithm-building tools.

Development status. This school tool is currently tagged pre-alpha / in development. External PRs are not evaluated for merge until the maintained tool reaches a stable, fully functional 100% classroom release after the pre-alpha phase. Issues and forks remain allowed, but official PR review is paused until that stability gate is met.

FfeD-QLC Logo

FfeD-QLC MVP

FfeD-QLC MVP is a public software scaffold for a bounded QLC-style admissibility layer, Docker/CodeProject.AI study-case mapping, and observable sandbox execution.

Official school governance. This repo is an educational research scaffold, not a finished cryptographic standard, attack tool, or safety guarantee. The maintained classroom route supports Codex/OpenAI or Antigravity/Gemini only. See SCHOOL_TOOL_GOVERNANCE.md and AGENTS.md.

Notice and disclaimer. The existing project license remains active. See NOTICE and DISCLAIMER for attribution, school-governance, and misuse-responsibility boundaries.

In this public repo, QLC means Quasicrystal Lattice Cryptography: a research protocol for long-term data protection based on structural transformation rather than only conventional encryption. The public MVP does not claim a finished cryptographic standard. It exposes the useful first layer: classify, contain, observe, and decide before sensitive material enters a workflow.

Primary research attribution identifier: ORCID 0009-0007-2904-0443.

Accepted into the E2B for Startups program. The program approval email confirms E2B credits and Pro Tier access for sandbox-based AI-agent development. Datadog for Startups onboarding evidence is also present, and the Datadog APM console is active for the project environment.

The product direction is simple: protect complex AI/research workspaces from accidental data mixing, secret leakage, and untraceable evidence reuse while still letting independent project blocks connect like Lego pieces.

It is intentionally bounded: it does not publish private research logic, secrets, biological claims, clinical claims, or security-certification claims. It gives a clean public base that can be discussed, tested, and extended without mixing study-case data.

Investor Summary

Modern AI development teams connect repositories, Docker services, API keys, data folders, sandbox tools, and observability stacks very quickly. The risk is that sensitive material crosses boundaries before anyone knows what happened.

FfeD-QLC MVP proposes a lightweight control layer:

incoming evidence or execution request
  -> provenance check
  -> secret-boundary check
  -> admissibility decision
  -> sandboxed execution
  -> observable runtime event

The first commercial shape is a developer/research operations tool that sits between local project blocks, sandbox execution, and observability. It does not replace Docker, Datadog, E2B, or GitHub. It coordinates them with a strict gate so each project can remain isolated while still being measurable.

What It Does

  • Defines a minimal evidence gate: accept, suspend, reject.
  • Maps three local study-case blocks to CodeProject.AI endpoints.
  • Keeps the public model tied to provenance, trust score, and bounded claim scope.
  • Provides a Docker image and Compose entrypoint.
  • Provides tests for the MVP behavior.
  • Documents the E2B + Datadog sponsor demo path.
  • Documents the official-badge evidence policy before using sponsor language.
  • Defines a defensive image-redaction path using YOLO-style object detection plus text/secret scanning.
  • Provides a concrete reversible QLC-style structural transform using a phi/cut-and-project byte ordering plus authenticated encryption.
  • Builds an FNP-QNN runtime proof payload so QLC events can pass through fnpqnn_gateway_MVP, CodeProject.AI/YOLO mesh metadata, CeLeBrUm orchestration, LVFM, and the simulator's Hydra-EM-GPCN lane.
  • Adds a Semantic Complexity Map and Privacy-Safe Audit Orb as second-pass concept extractions from the foundation documents.
  • Adds an optional Bouncy Castle perimeter signature layer through a local bcctl provider. It signs metadata digests only and does not replace the QLC transform or authenticated encryption.

What The Algorithm Protects

The MVP is designed around the practical problem of public and private key handling in already-existing workspaces.

It protects by policy and workflow:

  • real .env files are excluded from git;
  • secret values are never required in public examples;
  • sandbox execution receives only the minimum variables it needs;
  • Datadog receives runtime metadata, service tags, and counters, not raw keys;
  • evidence without provenance is suspended instead of trusted;
  • unbounded claims are rejected instead of promoted;
  • each Docker study-case block has its own network and persistent volume.

The intended production version would add secret-pattern scanning, redaction, fingerprint-only audit records, per-repo policy files, and signed decision logs. This public MVP is the first small, testable piece of that larger system.

What Is Public And What Stays Private

Public in this repository:

  • the admissibility gate pattern;
  • the Docker/CPAI map;
  • E2B sandbox smoke logic;
  • Datadog labels and non-secret telemetry pattern;
  • investor-readable problem framing.

Not public in this repository:

  • private keys or .env values;
  • internal research notebooks;
  • full QLC transformation logic;
  • unpublished protocol details;
  • production cryptographic claims.

This split is intentional: the repository gives investors and sponsors enough to understand the product surface while preserving the deeper research and security logic.

What QLC Means Here

Quasicrystal Lattice Cryptography is based on the idea that protected data can be transformed through structured, non-periodic lattice rules inspired by quasicrystal geometry. Instead of treating security only as a key-wrapping problem, QLC treats the data, its provenance, its execution context, and its admissibility state as part of the protection surface.

Publicly, the MVP focuses on the operational layer around that protocol:

  • each project block keeps its own boundary;
  • evidence and execution requests are classified before use;
  • public and private keys are never exposed in examples or telemetry;
  • sandbox runs receive only the minimum environment needed;
  • runtime events are observable without leaking secret values;
  • every item receives an explicit accept, suspend, or reject decision.

In practical software terms, this MVP is the first public control surface for a future QLC protocol. It is not yet a cryptographic proof or production security certification.

Docker/CPAI Base Map

Study case CPAI URL Network identifier Persistent volume
Quasicrystal http://localhost:33168 block-quasicrystal studycase-cpai-quasicrystal-data
Neutrosophique http://localhost:33268 block-neutrosophique studycase-cpai-neutrosophique-data
FNP-QNN http://localhost:33368 block-fnp-qnn studycase-cpai-fnp-qnn-data

The mapped CPAI servers can be managed through Portainer CE when the private local infrastructure is running. This repo only documents the public map and does not require Portainer to run the MVP.

Install

python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"

On Windows PowerShell:

python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -e ".[dev]"

Use The CLI

Print the default study-case map:

ffed-qlc map

Evaluate one evidence item:

ffed-qlc gate --source-id paper-001 --source-type whitepaper --trust-score 0.9 --has-provenance

Expected output:

accept

An unbounded claim is rejected:

ffed-qlc gate --source-id claim-001 --trust-score 1.0 --has-provenance --claim-scope biological_proof

Expected output:

reject

Pack and unpack a local file with the QLC structural transform:

$env:FFED_QLC_PASSPHRASE = "replace-with-a-real-local-secret"
ffed-qlc pack --input .\plain.bin --output .\plain.fqlc
ffed-qlc verify --input .\plain.fqlc --output .\plain.manifest.json
ffed-qlc unpack --input .\plain.fqlc --output .\plain.roundtrip.bin

The current transform is documented in docs/qlc-structural-transform.md. The quasicrystal layer is a deterministic structural permutation; confidentiality and integrity come from standard ChaCha20-Poly1305 with a scrypt-derived key.

Optionally attach a Bouncy Castle perimeter signature to workflow metadata:

$env:FFED_BCCTL_PATH = "path-to-local-bcctl-executable"
ffed-qlc bc-status
ffed-qlc protect-workflow `
  --input .\plain.fqlc `
  --source-id asset-001 `
  --output .\qlc-workflow.json `
  --bcctl-sign `
  --bcctl-key-id perimeter-key

The Bouncy Castle perimeter signs public digests only: workflow context digest, container artifact digest, key ID, and signature metadata. It never receives raw files, plaintext, passphrases, .env values, or private research text. Details: docs/bouncy-castle-perimeter.md.

Build the simulator proof payload for the gateway mesh:

ffed-qlc mesh-proof --input .\plain.fqlc --source-id asset-001 --output .\qlc-runtime.json --plan-output .\qlc-gateway-plan.json

This produces a JSON body shaped for FNP-QNN POST /cerebrum/runtime/run. Details: docs/fnpqnn-gateway-mesh-proof.md.

Pack a YOLO-analyzed image/file and produce the CeLeBrUm/FNP-QNN proof in one step:

ffed-qlc yolo-pack `
  --input .\image.png `
  --output .\image.fqlc `
  --source-id image-001 `
  --proof-output .\image-runtime.json `
  --detections-json .\yolo-detections.json `
  --proof-mode qlc_protects_simulator_mvp `
  --plan-output .\image-gateway-plan.json

yolo-detections.json contains metadata only. QLC does not embed raw image bytes in the simulator payload.

Build a privacy-safe ProGuarD audit orb:

ffed-qlc audit-orb `
  --orb-id worker-orb-001 `
  --events-json .\events.json `
  --output .\audit-orb.json

The Audit Orb rejects raw password/secret fields and keeps only fingerprints, secret-manager references, and bounded aggregate metadata.

This is a reciprocal MVP proof loop:

  • --proof-mode simulator_supports_qlc_complexity proves the FNP-QNN MVP can support, measure, and route a complex protocol like QLC.
  • --proof-mode qlc_protects_simulator_mvp demonstrates the QLC MVP by protecting simulator inputs, outputs, runtime snapshots, YOLO-derived events, and mesh handoffs with authenticated manifests and metadata-only audit records.

Naming boundary: CeLeBrUm is the MVP orchestrator that routes YOLO-derived observations; Cerebrum is the FNP-QNN runtime/memory endpoint. They are not the same component.

Docker

Build and run:

docker compose up --build

Or build directly:

docker build -t ffed-qlc-mvp:local .
docker run --rm ffed-qlc-mvp:local map

E2B + Datadog Sponsor Demo

The sponsor-facing MVP is:

evidence -> admissibility gate -> E2B sandbox run -> Docker/Datadog observability

E2B is the isolated execution lane. Datadog is the observability lane. The QLC gate is the control lane between them.

Run an optional E2B sandbox smoke:

pip install -e ".[e2b]"
python scripts/e2b_run_mvp.py

The E2B smoke emits a DogStatsD counter to a local Datadog Agent when reachable:

ffed_qlc.e2b.mvp_run

Run Docker while the local Datadog Agent is active:

docker compose up --build

Details:

docs/e2b-datadog-sponsor-demo.md

Investor-facing explanation:

docs/investor-brief.md

Official badge evidence policy:

docs/official-badges-and-evidence.md

MicroVM architecture:

docs/e2b-microvm-qlc-architecture.md

YOLO-style image secret redaction:

docs/yolo-secret-redaction.md

Safe public banner copy for the current repo:

Accepted into E2B for Startups - sandbox smoke path in progress
Datadog for Startups onboarding active - APM console active
ORCID-attributed research prototype: 0009-0007-2904-0443

Do not use stronger Datadog language such as "sponsored by" or "official partner" unless an explicit written approval is present and recorded in the evidence file.

Test

pytest

Public Safety Boundary

This repository is public by design. Keep it public-safe:

  • no real .env files;
  • no API keys;
  • no private theory notebooks;
  • no claims of biological proof;
  • no medical/clinical guidance;
  • no production security claims without an explicit threat model and tests.

This MVP improves secret hygiene and workflow separation, but it is not yet a complete security product. Production security would require a threat model, automated secret scanning, redaction tests, access-control design, and audit-log hardening.

Repository Layout

src/ffed_qlc/
  admissibility.py
  docker_map.py
  telemetry.py
  cli.py
tests/
docs/
scripts/
Dockerfile
compose.yaml

License

MIT. See LICENSE, NOTICE, AUTHORS.md, and CITATION.cff.

About

Public MVP for bounded FfeD-QLC admissibility and Docker/CodeProject.AI study-case mapping

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors