OpenAI-level engineering scaffold for a resource-aware control loop integrating:
- Neural interface simulation (population-rate generation with optional HH-style hooks)
- Intention decoding (rate vector → discrete intent)
- Stability-aware planning (Lyapunov gate + LQR guidance + optional RL backend)
- Game-theoretic budgeting (auction + prediction + best-response equilibrium)
- Safety & robustness primitives (circuit breaker, watchdog, anomaly detection, graceful degradation)
- Observability (latency metrics, artifacts, snapshots)
- This repository is not affiliated with a neurotech company, a humanoid platform vendor, or OpenAI.
- This is a simulation + orchestration scaffold for research and engineering iteration.
- It makes no clinical, medical, or real-world safety claims.
- The default actuator is a stub. Replacing it with real hardware control requires a new safety review.
If you want the system to evolve without semantic drift, start here:
docs/FORMALIZATION.md— how we preserve meaning while changing codedocs/REQUIREMENTS.md— testable requirements (SRS-lite)docs/ARCHITECTURE.md— component/dataflow model (SAD-lite)docs/ALGORITHMIC_FOUNDATIONS.md— gating, budgeting, and advisory logic with evidence hooksdocs/SAFETY_CASE.md— assurance case (GSN-lite)docs/VALIDATION_PLAN.md— acceptance criteria and scenariosdocs/TRACEABILITY.md— requirements → implementation → testsdocs/RISK_REGISTER.md— risk scoring and mitigationsdocs/GLOSSARY.md— fixed terminologydocs/adr/— architecture decision records (ADRs)
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev,sim]"
python -m self_constrained_control.cli run --config data/n1_config.yaml --actions move_arm,plan_route,stop --epochs 2src/self_constrained_control/— libraryscripts/— runnable scriptstests/— unit/integration testsdocs/— architecture, requirements, API, deployment notesdata/n1_config.yaml— config
# Setup (one-time)
pip install -e ".[dev]"
pre-commit install
# Daily workflow (using make)
make fmt # Format code
make lint # Lint with auto-fix
make type # Type check
make test # Run tests with coverage
make all # Run all checks
# Or run pre-commit on all files
make pre-commitApache-2.0
- This repository is not affiliated with any neurotech/robotics company and does not represent an actual medical device.
- The “N1” naming is used as a placeholder interface for a high-channel neural acquisition device.
- The simulator is synthetic; “validity” here means engineering validity (explicit state, contracts, tests, traceability).
docs/FORMALIZATION.md— formal model, invariants, and runtime contract IDsdocs/ARGUMENTATION.md— claim → mechanism → evidence argument (grounded engineering)docs/INTERFACE_CONTRACTS.md— stable module interfaces and guaranteesdocs/ARCHITECTURE_GAP_ANALYSIS.md— prioritized gaps and PR stack for architectural maturitydocs/SAFETY_CASE.md— safety argument + evidence pointersdocs/TRACEABILITY.md— requirements ↔ tests ↔ implementationdocs/ALGORITHMIC_FOUNDATIONS.md— algorithmic basis, gates, and containmentdocs/DOCUMENTATION_PROMPT_RESPONSE.md— coverage of documentation/testing/CI/security items from the UA prompt