sentaince 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- sentaince-0.1.0/.github/workflows/ci.yml +35 -0
- sentaince-0.1.0/.github/workflows/publish.yml +56 -0
- sentaince-0.1.0/.gitignore +28 -0
- sentaince-0.1.0/CONTRIBUTING.md +42 -0
- sentaince-0.1.0/LICENSE +201 -0
- sentaince-0.1.0/NOTICE +10 -0
- sentaince-0.1.0/PKG-INFO +166 -0
- sentaince-0.1.0/README.md +150 -0
- sentaince-0.1.0/battle/README.md +63 -0
- sentaince-0.1.0/battle/__init__.py +13 -0
- sentaince-0.1.0/battle/body.py +64 -0
- sentaince-0.1.0/battle/body_client.py +50 -0
- sentaince-0.1.0/battle/config.py +42 -0
- sentaince-0.1.0/battle/container_body.py +41 -0
- sentaince-0.1.0/battle/energy_reader.py +25 -0
- sentaince-0.1.0/battle/episode.py +200 -0
- sentaince-0.1.0/battle/epistemic.py +102 -0
- sentaince-0.1.0/battle/fidelity.py +70 -0
- sentaince-0.1.0/battle/frictions.py +129 -0
- sentaince-0.1.0/battle/full_organism.py +122 -0
- sentaince-0.1.0/battle/loki_sink.py +46 -0
- sentaince-0.1.0/battle/metrics.py +94 -0
- sentaince-0.1.0/battle/openai_proposer.py +109 -0
- sentaince-0.1.0/battle/scenarios.py +137 -0
- sentaince-0.1.0/battle/shadow_oracle.py +56 -0
- sentaince-0.1.0/battle/somatic_gate.py +120 -0
- sentaince-0.1.0/battle/statistical.py +176 -0
- sentaince-0.1.0/battle/tests/__init__.py +0 -0
- sentaince-0.1.0/battle/tests/test_gate_modes.py +60 -0
- sentaince-0.1.0/battle/tests/test_loki_sink.py +24 -0
- sentaince-0.1.0/battle/tests/test_m0_reproduces_exp7.py +56 -0
- sentaince-0.1.0/battle/tests/test_m2_frictions.py +40 -0
- sentaince-0.1.0/battle/tests/test_m3_fidelity.py +89 -0
- sentaince-0.1.0/battle/tests/test_m4_statistical.py +36 -0
- sentaince-0.1.0/battle/tests/test_m5_epistemic.py +44 -0
- sentaince-0.1.0/battle/tests/test_metrics.py +43 -0
- sentaince-0.1.0/battle/tests/test_openai_proposer.py +65 -0
- sentaince-0.1.0/battle/tests/test_shadow_oracle.py +80 -0
- sentaince-0.1.0/battle/tests/test_somatic_gate.py +62 -0
- sentaince-0.1.0/battle/vitals.py +61 -0
- sentaince-0.1.0/body/agent.py +210 -0
- sentaince-0.1.0/cerebral/README.md +50 -0
- sentaince-0.1.0/cerebral/__init__.py +17 -0
- sentaince-0.1.0/cerebral/gauge/__init__.py +6 -0
- sentaince-0.1.0/cerebral/gauge/fi_gauge.py +364 -0
- sentaince-0.1.0/cerebral/gauge/resurrection_gauge.py +278 -0
- sentaince-0.1.0/cerebral/intents.py +395 -0
- sentaince-0.1.0/cerebral/journal.py +219 -0
- sentaince-0.1.0/cerebral/tests/__init__.py +5 -0
- sentaince-0.1.0/cerebral/tests/test_fi_gauge.py +154 -0
- sentaince-0.1.0/cerebral/tests/test_governor_mcp.py +153 -0
- sentaince-0.1.0/cerebral/tests/test_journal.py +191 -0
- sentaince-0.1.0/cerebral/tests/test_resurrection.py +284 -0
- sentaince-0.1.0/demo/README.md +130 -0
- sentaince-0.1.0/demo/live_crucible.py +104 -0
- sentaince-0.1.0/demo/live_homeostasis.py +351 -0
- sentaince-0.1.0/demo/probe_shadow_timeout.py +44 -0
- sentaince-0.1.0/demo/verify_shadow.py +52 -0
- sentaince-0.1.0/docker/Dockerfile.body +22 -0
- sentaince-0.1.0/docker/Dockerfile.exporter +21 -0
- sentaince-0.1.0/docker/Dockerfile.organism +41 -0
- sentaince-0.1.0/docker/compose.battle.yml +65 -0
- sentaince-0.1.0/docker/compose.fidelity.yml +56 -0
- sentaince-0.1.0/docker/compose.observe.yml +98 -0
- sentaince-0.1.0/docker/compose.realstat.yml +99 -0
- sentaince-0.1.0/docker/observability/grafana/dashboards/vitals.json +79 -0
- sentaince-0.1.0/docker/observability/grafana/provisioning/dashboards/dashboards.yml +11 -0
- sentaince-0.1.0/docker/observability/grafana/provisioning/datasources/loki.yml +8 -0
- sentaince-0.1.0/docker/observability/grafana/provisioning/datasources/prometheus.yml +9 -0
- sentaince-0.1.0/docker/observability/prometheus.yml +8 -0
- sentaince-0.1.0/docs/ADR.md +540 -0
- sentaince-0.1.0/docs/CLAIMS.md +150 -0
- sentaince-0.1.0/docs/CLAIM_BOUNDARY.md +476 -0
- sentaince-0.1.0/docs/DEPLOYMENT.md +65 -0
- sentaince-0.1.0/docs/DEPLOY_TO_A_PROJECT.md +158 -0
- sentaince-0.1.0/docs/ENHANCEMENTS.md +93 -0
- sentaince-0.1.0/docs/FEATURES.md +246 -0
- sentaince-0.1.0/docs/GLOSSARY.md +87 -0
- sentaince-0.1.0/docs/MCP_SERVER.md +96 -0
- sentaince-0.1.0/docs/OPERATIONS.md +267 -0
- sentaince-0.1.0/docs/PRODUCT.md +143 -0
- sentaince-0.1.0/docs/README.md +55 -0
- sentaince-0.1.0/docs/ROADMAP.md +165 -0
- sentaince-0.1.0/docs/SECURITY.md +224 -0
- sentaince-0.1.0/docs/STORY.md +70 -0
- sentaince-0.1.0/docs/USER_GUIDE.md +532 -0
- sentaince-0.1.0/docs/WHITEPAPER.md +323 -0
- sentaince-0.1.0/docs/battle_test/DEMO_GUIDE.md +152 -0
- sentaince-0.1.0/docs/battle_test/USER_GUIDE.md +151 -0
- sentaince-0.1.0/docs/battle_test/WHITEPAPER.md +193 -0
- sentaince-0.1.0/docs/use_cases/README.md +99 -0
- sentaince-0.1.0/docs/use_cases/cross_domain_others.md +113 -0
- sentaince-0.1.0/docs/use_cases/manufacturing.md +70 -0
- sentaince-0.1.0/docs/use_cases/medical.md +55 -0
- sentaince-0.1.0/docs/use_cases/military.md +59 -0
- sentaince-0.1.0/docs/use_cases/search_and_rescue.md +61 -0
- sentaince-0.1.0/exocortex/MEMORY_GAUGE_DESIGN.md +545 -0
- sentaince-0.1.0/exocortex/README.md +92 -0
- sentaince-0.1.0/exocortex/STAGE1_SOMATIC_VERDICT.md +41 -0
- sentaince-0.1.0/exocortex/STAGE2_EPISTEMIC_FINDING.md +42 -0
- sentaince-0.1.0/exocortex/__init__.py +15 -0
- sentaince-0.1.0/exocortex/adapter.py +134 -0
- sentaince-0.1.0/exocortex/audit.py +72 -0
- sentaince-0.1.0/exocortex/colony.py +317 -0
- sentaince-0.1.0/exocortex/config.py +186 -0
- sentaince-0.1.0/exocortex/cue_classifier.py +137 -0
- sentaince-0.1.0/exocortex/deploy.py +356 -0
- sentaince-0.1.0/exocortex/docs/BRIDGE_ORGAN_DESIGN.md +105 -0
- sentaince-0.1.0/exocortex/docs/CORE.md +103 -0
- sentaince-0.1.0/exocortex/docs/FEATURES.md +158 -0
- sentaince-0.1.0/exocortex/docs/README.md +26 -0
- sentaince-0.1.0/exocortex/docs/USERS_GUIDE.md +182 -0
- sentaince-0.1.0/exocortex/docs/WHITEPAPER.md +108 -0
- sentaince-0.1.0/exocortex/embed_classifier.py +127 -0
- sentaince-0.1.0/exocortex/endocrine.py +41 -0
- sentaince-0.1.0/exocortex/epistemic.py +81 -0
- sentaince-0.1.0/exocortex/exocortex_config.json +72 -0
- sentaince-0.1.0/exocortex/gauge/__init__.py +1 -0
- sentaince-0.1.0/exocortex/gauge/analyze.py +258 -0
- sentaince-0.1.0/exocortex/gauge/attribution_gauge.py +174 -0
- sentaince-0.1.0/exocortex/gauge/bridge_gauge.py +216 -0
- sentaince-0.1.0/exocortex/gauge/coldstart_gauge.py +166 -0
- sentaince-0.1.0/exocortex/gauge/consolidation_gauge.py +260 -0
- sentaince-0.1.0/exocortex/gauge/credit_funnel_gauge.py +262 -0
- sentaince-0.1.0/exocortex/gauge/credit_hygiene_gauge.py +233 -0
- sentaince-0.1.0/exocortex/gauge/dambrogio_gauge.py +291 -0
- sentaince-0.1.0/exocortex/gauge/eligibility_gauge.py +261 -0
- sentaince-0.1.0/exocortex/gauge/endocrine_gauge.py +368 -0
- sentaince-0.1.0/exocortex/gauge/nonstationarity_gauge.py +378 -0
- sentaince-0.1.0/exocortex/gauge/palace_gauge.py +131 -0
- sentaince-0.1.0/exocortex/gauge/uncertainty_gauge.py +168 -0
- sentaince-0.1.0/exocortex/genome.py +193 -0
- sentaince-0.1.0/exocortex/hook.py +618 -0
- sentaince-0.1.0/exocortex/integrity.py +242 -0
- sentaince-0.1.0/exocortex/integrity_baseline.json +42 -0
- sentaince-0.1.0/exocortex/interocept.py +42 -0
- sentaince-0.1.0/exocortex/ledger.py +218 -0
- sentaince-0.1.0/exocortex/mcp_server.py +588 -0
- sentaince-0.1.0/exocortex/runner.py +281 -0
- sentaince-0.1.0/exocortex/scenarios.py +180 -0
- sentaince-0.1.0/exocortex/somatic.py +41 -0
- sentaince-0.1.0/exocortex/state.py +155 -0
- sentaince-0.1.0/exocortex/stream_runner.py +96 -0
- sentaince-0.1.0/exocortex/streams/__init__.py +31 -0
- sentaince-0.1.0/exocortex/streams/_ref/minilang.py +253 -0
- sentaince-0.1.0/exocortex/streams/interp_v1.py +98 -0
- sentaince-0.1.0/exocortex/streams/smoke.py +25 -0
- sentaince-0.1.0/exocortex/testbed/README.md +222 -0
- sentaince-0.1.0/exocortex/testbed/__init__.py +6 -0
- sentaince-0.1.0/exocortex/testbed/attribution_run.py +273 -0
- sentaince-0.1.0/exocortex/testbed/bridge_run.py +200 -0
- sentaince-0.1.0/exocortex/testbed/ccr/config.example.json +28 -0
- sentaince-0.1.0/exocortex/testbed/ccr/strip-thinking.js +45 -0
- sentaince-0.1.0/exocortex/testbed/compose/autostart/exocortex-testbed-up.ps1 +37 -0
- sentaince-0.1.0/exocortex/testbed/compose/autostart/install-autostart.ps1 +25 -0
- sentaince-0.1.0/exocortex/testbed/compose/autostart/uninstall-autostart.ps1 +12 -0
- sentaince-0.1.0/exocortex/testbed/compose/docker-compose.yml +116 -0
- sentaince-0.1.0/exocortex/testbed/compose/grafana/dashboards/exocortex.json +236 -0
- sentaince-0.1.0/exocortex/testbed/compose/grafana/dashboards/organism.json +987 -0
- sentaince-0.1.0/exocortex/testbed/compose/grafana/provisioning/dashboards/dashboards.yml +10 -0
- sentaince-0.1.0/exocortex/testbed/compose/grafana/provisioning/datasources/datasource.yml +18 -0
- sentaince-0.1.0/exocortex/testbed/compose/prometheus.yml +10 -0
- sentaince-0.1.0/exocortex/testbed/compose/promtail.yml +28 -0
- sentaince-0.1.0/exocortex/testbed/cursor_probe/.gitignore +2 -0
- sentaince-0.1.0/exocortex/testbed/cursor_probe/README.md +126 -0
- sentaince-0.1.0/exocortex/testbed/cursor_probe/__init__.py +6 -0
- sentaince-0.1.0/exocortex/testbed/cursor_probe/analyze.py +132 -0
- sentaince-0.1.0/exocortex/testbed/cursor_probe/install.py +131 -0
- sentaince-0.1.0/exocortex/testbed/cursor_probe/probe.py +219 -0
- sentaince-0.1.0/exocortex/testbed/cursor_tests/test_adapter.py +165 -0
- sentaince-0.1.0/exocortex/testbed/exporter/__init__.py +1 -0
- sentaince-0.1.0/exocortex/testbed/exporter/metrics.py +916 -0
- sentaince-0.1.0/exocortex/testbed/feeder.py +211 -0
- sentaince-0.1.0/exocortex/testbed/proof_route_a.py +118 -0
- sentaince-0.1.0/exocortex/tests/__init__.py +0 -0
- sentaince-0.1.0/exocortex/tests/test_attribution_gauge.py +106 -0
- sentaince-0.1.0/exocortex/tests/test_bridge_gauge.py +45 -0
- sentaince-0.1.0/exocortex/tests/test_bridge_organ.py +262 -0
- sentaince-0.1.0/exocortex/tests/test_bridge_run.py +23 -0
- sentaince-0.1.0/exocortex/tests/test_consolidation_gauge.py +131 -0
- sentaince-0.1.0/exocortex/tests/test_credit_funnel_gauge.py +146 -0
- sentaince-0.1.0/exocortex/tests/test_credit_hygiene_gauge.py +55 -0
- sentaince-0.1.0/exocortex/tests/test_deploy.py +88 -0
- sentaince-0.1.0/exocortex/tests/test_exocortex.py +840 -0
- sentaince-0.1.0/exocortex/tests/test_exporter_metrics.py +46 -0
- sentaince-0.1.0/exocortex/tests/test_exporter_security.py +123 -0
- sentaince-0.1.0/exocortex/tests/test_integrity.py +123 -0
- sentaince-0.1.0/exocortex/tests/test_ledger.py +96 -0
- sentaince-0.1.0/exocortex/tests/test_mcp_server.py +258 -0
- sentaince-0.1.0/exocortex/tests/test_nonstationarity_gauge.py +110 -0
- sentaince-0.1.0/exocortex/tests/test_provenance.py +87 -0
- sentaince-0.1.0/exocortex/tests/test_uncertainty_gauge.py +55 -0
- sentaince-0.1.0/exocortex/tests/test_wiki.py +488 -0
- sentaince-0.1.0/exocortex/wiki/__init__.py +8 -0
- sentaince-0.1.0/exocortex/wiki/attribute.py +126 -0
- sentaince-0.1.0/exocortex/wiki/bridge.py +246 -0
- sentaince-0.1.0/exocortex/wiki/digest.py +204 -0
- sentaince-0.1.0/exocortex/wiki/node.py +128 -0
- sentaince-0.1.0/exocortex/wiki/propose.py +175 -0
- sentaince-0.1.0/exocortex/wiki/splice.py +131 -0
- sentaince-0.1.0/exocortex/wiki/store.py +182 -0
- sentaince-0.1.0/exocortex/wiki/wire.py +65 -0
- sentaince-0.1.0/experiments/__init__.py +1 -0
- sentaince-0.1.0/experiments/exp1_autoimmune.py +151 -0
- sentaince-0.1.0/experiments/exp2_hypoxia.py +213 -0
- sentaince-0.1.0/experiments/exp3_crucible.py +206 -0
- sentaince-0.1.0/experiments/exp4_adaptive_antibody.py +223 -0
- sentaince-0.1.0/experiments/exp4r_adversarial.py +256 -0
- sentaince-0.1.0/experiments/exp5_learned_signature.py +155 -0
- sentaince-0.1.0/experiments/exp6_outcome_oracle.py +163 -0
- sentaince-0.1.0/experiments/exp7_crucible.py +184 -0
- sentaince-0.1.0/experiments/manufacturing_crucible.py +208 -0
- sentaince-0.1.0/experiments/scada_crucible.py +213 -0
- sentaince-0.1.0/experiments/soc_crucible.py +176 -0
- sentaince-0.1.0/experiments/spacecraft_crucible.py +241 -0
- sentaince-0.1.0/pyproject.toml +42 -0
- sentaince-0.1.0/pyrightconfig.json +6 -0
- sentaince-0.1.0/release/PROVISIONALS_FILED +5 -0
- sentaince-0.1.0/release/README.md +51 -0
- sentaince-0.1.0/release/__init__.py +9 -0
- sentaince-0.1.0/release/build_public.py +135 -0
- sentaince-0.1.0/release/manifest.py +160 -0
- sentaince-0.1.0/release/prepush_gates.py +190 -0
- sentaince-0.1.0/release/tests/__init__.py +0 -0
- sentaince-0.1.0/release/tests/test_release.py +280 -0
- sentaince-0.1.0/results/attribution_layer2/RESULTS.md +44 -0
- sentaince-0.1.0/results/attribution_layer2/flagship_mo1.json +109 -0
- sentaince-0.1.0/results/attribution_layer2/flagship_mo2.json +104 -0
- sentaince-0.1.0/results/bridge_gauge_v1/RESULTS.md +38 -0
- sentaince-0.1.0/results/bridge_gauge_v1/live_colony.json +142 -0
- sentaince-0.1.0/results/coldstart_gauge_v1/RESULTS.md +44 -0
- sentaince-0.1.0/results/credit_funnel_and_consolidation_v1/RESULTS.md +79 -0
- sentaince-0.1.0/results/credit_hygiene_v1/RESULTS.md +61 -0
- sentaince-0.1.0/results/dambrogio_gauge_v1/RESULTS.md +48 -0
- sentaince-0.1.0/results/fi_gauge_v1/RESULTS.md +101 -0
- sentaince-0.1.0/results/fi_gauge_v1/raw_verb.txt +38 -0
- sentaince-0.1.0/results/nonstationarity_v1/RESULTS.md +98 -0
- sentaince-0.1.0/results/resurrection_gauge_v1/RESULTS.md +115 -0
- sentaince-0.1.0/results/s2_intent_journal_v1/RESULTS.md +71 -0
- sentaince-0.1.0/results/uncertainty_gauge_v1/RESULTS.md +39 -0
- sentaince-0.1.0/sentaince/__init__.py +8 -0
- sentaince-0.1.0/sentaince/agents/__init__.py +1 -0
- sentaince-0.1.0/sentaince/agents/metabolic.py +189 -0
- sentaince-0.1.0/sentaince/agents/naive.py +33 -0
- sentaince-0.1.0/sentaince/agents/organism.py +42 -0
- sentaince-0.1.0/sentaince/interface/__init__.py +1 -0
- sentaince-0.1.0/sentaince/interface/ollama.py +100 -0
- sentaince-0.1.0/sentaince/interface/scripted.py +45 -0
- sentaince-0.1.0/sentaince/interface/tools.py +62 -0
- sentaince-0.1.0/sentaince/kernel/__init__.py +22 -0
- sentaince-0.1.0/sentaince/organism/__init__.py +1 -0
- sentaince-0.1.0/sentaince/organism/action_graph.py +53 -0
- sentaince-0.1.0/sentaince/organism/anomaly.py +76 -0
- sentaince-0.1.0/sentaince/organism/antibody.py +228 -0
- sentaince-0.1.0/sentaince/organism/executor.py +33 -0
- sentaince-0.1.0/sentaince/organism/gearbox.py +53 -0
- sentaince-0.1.0/sentaince/organism/interlock.py +67 -0
- sentaince-0.1.0/sentaince/organism/learned_signature.py +159 -0
- sentaince-0.1.0/sentaince/organism/metabolism.py +39 -0
- sentaince-0.1.0/sentaince/organism/outcome_oracle.py +168 -0
- sentaince-0.1.0/tests/test_exp1_interlock.py +73 -0
- sentaince-0.1.0/tests/test_exp2_hypoxia.py +87 -0
- sentaince-0.1.0/tests/test_exp3_crucible.py +78 -0
- sentaince-0.1.0/tests/test_exp4_antibody.py +117 -0
- sentaince-0.1.0/tests/test_exp4r_adversarial.py +79 -0
- sentaince-0.1.0/tests/test_exp5_learned_signature.py +80 -0
- sentaince-0.1.0/tests/test_exp6_outcome_oracle.py +86 -0
- sentaince-0.1.0/tests/test_exp7_crucible.py +68 -0
- sentaince-0.1.0/tests/test_manufacturing_crucible.py +72 -0
- sentaince-0.1.0/tests/test_ollama_adapter.py +60 -0
- sentaince-0.1.0/tests/test_scada_crucible.py +67 -0
- sentaince-0.1.0/tests/test_soc_crucible.py +69 -0
- sentaince-0.1.0/tests/test_spacecraft_crucible.py +71 -0
- sentaince-0.1.0/vendor/kernel/core_physics/__init__.py +92 -0
- sentaince-0.1.0/vendor/kernel/core_physics/backend.py +284 -0
- sentaince-0.1.0/vendor/kernel/core_physics/fused.py +85 -0
- sentaince-0.1.0/vendor/kernel/core_physics/kinetic_governor.py +96 -0
- sentaince-0.1.0/vendor/kernel/core_physics/phi6_solver.py +288 -0
- sentaince-0.1.0/vendor/kernel/core_physics/ternary_memory.py +148 -0
- sentaince-0.1.0/vendor/kernel/freqos/__init__.py +13 -0
- sentaince-0.1.0/vendor/kernel/freqos/capacity.py +177 -0
- sentaince-0.1.0/vendor/kernel/freqos/gue.py +110 -0
- sentaince-0.1.0/vendor/kernel/freqos/gue_routing.py +266 -0
- sentaince-0.1.0/vendor/kernel/freqos/phase_router.py +271 -0
- sentaince-0.1.0/vendor/kernel/freqos/tam.py +180 -0
- sentaince-0.1.0/vendor/kernel/harmonic_basin/__init__.py +144 -0
- sentaince-0.1.0/vendor/kernel/harmonic_basin/analog_ingest.py +153 -0
- sentaince-0.1.0/vendor/kernel/harmonic_basin/circle_of_fifths.py +119 -0
- sentaince-0.1.0/vendor/kernel/harmonic_basin/comma_holonomy.py +144 -0
- sentaince-0.1.0/vendor/kernel/harmonic_basin/dynamic_tracking.py +134 -0
- sentaince-0.1.0/vendor/kernel/harmonic_basin/peer_exchange.py +143 -0
- sentaince-0.1.0/vendor/kernel/harmonic_basin/phase_closure.py +115 -0
- sentaince-0.1.0/vendor/kernel/harmonic_basin/protocol.py +255 -0
- sentaince-0.1.0/vendor/kernel/harmonic_basin/roughness.py +80 -0
- sentaince-0.1.0/vendor/kernel/harmonic_basin/spectra.py +46 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
# The deterministic build-gate stays green on every push/PR: the 99-test C1–C7 evidence lock plus the
|
|
4
|
+
# out-of-lock component suites. Pure-Python, numpy + pytest only — no Docker, no Ollama, no network. Tests
|
|
5
|
+
# that need an optional extra (e.g. the read-only `mcp` server) skip cleanly when it is absent.
|
|
6
|
+
on:
|
|
7
|
+
push:
|
|
8
|
+
branches: [ main ]
|
|
9
|
+
pull_request:
|
|
10
|
+
workflow_dispatch:
|
|
11
|
+
|
|
12
|
+
permissions:
|
|
13
|
+
contents: read
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
test:
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
strategy:
|
|
19
|
+
fail-fast: false
|
|
20
|
+
matrix:
|
|
21
|
+
python-version: [ "3.11", "3.12", "3.13" ]
|
|
22
|
+
steps:
|
|
23
|
+
- uses: actions/checkout@v7
|
|
24
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
25
|
+
uses: actions/setup-python@v6
|
|
26
|
+
with:
|
|
27
|
+
python-version: ${{ matrix.python-version }}
|
|
28
|
+
- name: Install
|
|
29
|
+
run: |
|
|
30
|
+
python -m pip install --upgrade pip
|
|
31
|
+
pip install numpy pytest
|
|
32
|
+
- name: The 99-lock (the deterministic C1–C7 evidence lock)
|
|
33
|
+
run: python -m pytest -q
|
|
34
|
+
- name: Component suites (out of the lock)
|
|
35
|
+
run: python -m pytest -q exocortex/tests cerebral/tests battle/tests
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
# Publishes the `sentaince` wheel to PyPI on a GitHub Release, via Trusted Publishing (OIDC — no API
|
|
4
|
+
# token stored). The wheel is the community body: sentaince + exocortex + cerebral, with exocortex/tuner
|
|
5
|
+
# excluded by pyproject (belt-and-braces; the public repo has no tuner at all). Configure the trusted
|
|
6
|
+
# publisher once on PyPI (project `sentaince`, this repo, workflow `publish.yml`, environment `pypi`).
|
|
7
|
+
on:
|
|
8
|
+
release:
|
|
9
|
+
types: [ published ]
|
|
10
|
+
workflow_dispatch:
|
|
11
|
+
|
|
12
|
+
permissions:
|
|
13
|
+
contents: read
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
build:
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
steps:
|
|
19
|
+
- uses: actions/checkout@v7
|
|
20
|
+
- uses: actions/setup-python@v6
|
|
21
|
+
with:
|
|
22
|
+
python-version: "3.12"
|
|
23
|
+
- name: Build wheel + sdist
|
|
24
|
+
run: |
|
|
25
|
+
python -m pip install --upgrade pip build
|
|
26
|
+
python -m build
|
|
27
|
+
- name: Assert the wheel is tuner-free (the ADR-011/012 boundary at the artifact)
|
|
28
|
+
run: |
|
|
29
|
+
python - <<'PY'
|
|
30
|
+
import zipfile, glob, sys
|
|
31
|
+
whl = sorted(glob.glob("dist/*.whl"))[-1]
|
|
32
|
+
names = zipfile.ZipFile(whl).namelist()
|
|
33
|
+
tuner = [n for n in names if n.startswith("exocortex/tuner")]
|
|
34
|
+
assert not tuner, f"commercial tuner leaked into the wheel: {tuner[:5]}"
|
|
35
|
+
tops = {n.split('/',1)[0] for n in names}
|
|
36
|
+
assert {"sentaince","exocortex","cerebral"} <= tops, f"missing community packages: {tops}"
|
|
37
|
+
print("wheel clean:", whl)
|
|
38
|
+
PY
|
|
39
|
+
- uses: actions/upload-artifact@v5
|
|
40
|
+
with:
|
|
41
|
+
name: dist
|
|
42
|
+
path: dist/
|
|
43
|
+
|
|
44
|
+
publish:
|
|
45
|
+
needs: build
|
|
46
|
+
runs-on: ubuntu-latest
|
|
47
|
+
environment: pypi
|
|
48
|
+
permissions:
|
|
49
|
+
id-token: write # OIDC — Trusted Publishing, no stored token
|
|
50
|
+
steps:
|
|
51
|
+
- uses: actions/download-artifact@v6
|
|
52
|
+
with:
|
|
53
|
+
name: dist
|
|
54
|
+
path: dist/
|
|
55
|
+
- name: Publish to PyPI
|
|
56
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
__pycache__/
|
|
2
|
+
*.py[cod]
|
|
3
|
+
*.egg-info/
|
|
4
|
+
.pytest_cache/
|
|
5
|
+
.ruff_cache/
|
|
6
|
+
build/
|
|
7
|
+
dist/
|
|
8
|
+
.venv/
|
|
9
|
+
venv/
|
|
10
|
+
# transient battle-test run artifacts (the durable evidence is the CLAIM_BOUNDARY entry)
|
|
11
|
+
demo/results/
|
|
12
|
+
# transient exocortex run artifacts (audit trails, run logs, baseline summaries)
|
|
13
|
+
exocortex/results/
|
|
14
|
+
# live Exocortex per-project runtime state (colony/state/audit) when the hook is installed locally
|
|
15
|
+
.claude/exocortex/
|
|
16
|
+
# Claude Code personal local settings (the `.local.` convention — machine-specific, never shared)
|
|
17
|
+
.claude/settings.local.json
|
|
18
|
+
# LOCAL declarative-wiki go-live activation (machine-specific vault + mode=live); the committed default
|
|
19
|
+
# at exocortex/exocortex_config.json stays dormant. Repo-root only (leading slash).
|
|
20
|
+
/exocortex_config.json
|
|
21
|
+
# PRE-DISCLOSURE PATENT DRAFTS — deliberately NEVER tracked. This repo is the OSS candidate; anything
|
|
22
|
+
# committed here can leak into public git history on release (history is hard to scrub) and constitutes
|
|
23
|
+
# public disclosure that can bar patent rights (absolute-novelty jurisdictions). Keep drafts local +
|
|
24
|
+
# route to counsel. See patent/README.md for the rationale and the reduction-to-practice note.
|
|
25
|
+
patent/
|
|
26
|
+
# MACHINE-LOCAL compose override (host paths + private-crucible mounts; auto-merged by docker compose
|
|
27
|
+
# when run from the compose dir). The committed docker-compose.yml must stay generic (release-gate clean).
|
|
28
|
+
exocortex/testbed/compose/docker-compose.override.yml
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Contributing to SentAInce / FreqOS
|
|
2
|
+
|
|
3
|
+
Thanks for your interest. This repo has an unusual discipline: it is an **evidence-locked organism**, and
|
|
4
|
+
the contribution rules exist to keep the evidence honest.
|
|
5
|
+
|
|
6
|
+
## The one rule that governs everything
|
|
7
|
+
|
|
8
|
+
`python -m pytest` collects **only `tests/`** and must stay **99 tests, 99 green** — the 69-test C1–C7
|
|
9
|
+
evidence lock + 30 domain-crucible/adapter tests. This suite is a *claim ledger*, not a normal test suite:
|
|
10
|
+
**do not add, remove, or edit anything under `tests/` or `experiments/`** unless your PR is explicitly
|
|
11
|
+
about re-negotiating a locked claim (open an issue first; expect scrutiny).
|
|
12
|
+
|
|
13
|
+
Everything else tests **outside** the lock, run explicitly:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
python -m pytest exocortex/tests cerebral/tests release/tests battle/tests # component suites
|
|
17
|
+
python -m pytest # the 99-lock (must stay 99)
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Where new work goes
|
|
21
|
+
|
|
22
|
+
- **Additive only.** New organs/features live in their own package (`exocortex/`, `cerebral/`, `battle/`)
|
|
23
|
+
and import the locked organs (`sentaince/organism/*`, `vendor/kernel/*`) **read-only**.
|
|
24
|
+
- **Frozen DNA.** `sentaince/organism/*` and `vendor/kernel/*` are integrity-baselined (see
|
|
25
|
+
`exocortex/integrity.py`). If a change there is truly warranted, regenerate the baseline
|
|
26
|
+
(`python -m exocortex.integrity --update-baseline`) in the same commit and say why.
|
|
27
|
+
- **Consequence-sourcing (ADR-001) is non-negotiable.** No code path may deposit memory (τ) on retrieval,
|
|
28
|
+
frequency, or human tags — only on a verified `exit 0`. Read `docs/ADR.md` before touching
|
|
29
|
+
`exocortex/colony.py`, `exocortex/hook.py`, or the wiki layer.
|
|
30
|
+
- **Gauge-first (ADR-002).** New organs ship dormant with a falsifiable gauge and a pre-registered bar;
|
|
31
|
+
a `results/<gauge>_v1/RESULTS.md` verdict is expected alongside the code.
|
|
32
|
+
|
|
33
|
+
## Practical bits
|
|
34
|
+
|
|
35
|
+
- Pure-stdlib bias: the hot path (hooks) must stay dependency-free; heavier deps are confined to leaf
|
|
36
|
+
packages and lazy-imported.
|
|
37
|
+
- Style: match the surrounding code — long-form docstrings that say *why*, module-level constants for
|
|
38
|
+
genome values, tests as executable specs.
|
|
39
|
+
- License: Apache-2.0 (see `LICENSE`/`NOTICE`). By contributing you agree your contribution is licensed
|
|
40
|
+
under the same terms.
|
|
41
|
+
- Architecture questions: `docs/ADR.md` (the architecture decision records) and `docs/CLAIMS.md` (the binding evidence
|
|
42
|
+
ledger — nothing may claim past it) are the ground truth.
|
sentaince-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or Derivative
|
|
95
|
+
Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 SyncQutrit Research Group, LLC
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
sentaince-0.1.0/NOTICE
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
SentAInce — part of the FreqOS software portfolio
|
|
2
|
+
Copyright 2026 SyncQutrit Research Group, LLC
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (see LICENSE).
|
|
5
|
+
|
|
6
|
+
SentAInce is a product of SyncQutrit Research Group, LLC (syncqutrit.com),
|
|
7
|
+
part of the FreqOS software portfolio (freqos.com).
|
|
8
|
+
|
|
9
|
+
This product includes the FreqOS somatic-safety kernel and the SentAInce
|
|
10
|
+
consequence-sourced memory organism (exocortex, colony, cerebral substrate).
|
sentaince-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: sentaince
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Phase II embodiment of the FreqOS organism — a synthetic immune system (auto-immune interlock).
|
|
5
|
+
License-File: LICENSE
|
|
6
|
+
License-File: NOTICE
|
|
7
|
+
Requires-Python: >=3.10
|
|
8
|
+
Requires-Dist: numpy>=1.24
|
|
9
|
+
Provides-Extra: demo
|
|
10
|
+
Requires-Dist: rich>=13.0; extra == 'demo'
|
|
11
|
+
Provides-Extra: dev
|
|
12
|
+
Requires-Dist: pytest>=7.4; extra == 'dev'
|
|
13
|
+
Provides-Extra: mcp
|
|
14
|
+
Requires-Dist: mcp>=1.2; extra == 'mcp'
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
|
|
17
|
+
# 🌱 SentAInce
|
|
18
|
+
|
|
19
|
+
### A safety reflex and an honest memory for AI coding agents.
|
|
20
|
+
|
|
21
|
+
It **physically refuses catalogued lethal actions** — even when the model is prompt-injected into proposing
|
|
22
|
+
one — and it **only remembers what actually worked**. Runs locally. Open source. **Safety is never for sale.**
|
|
23
|
+
|
|
24
|
+

|
|
25
|
+

|
|
26
|
+

|
|
27
|
+

|
|
28
|
+

|
|
29
|
+
|
|
30
|
+
> A **SyncQutrit Research Group** product ([syncqutrit.com](https://syncqutrit.com)) · part of the **FreqOS**
|
|
31
|
+
> software portfolio ([freqos.com](https://freqos.com)). Phase II of the FreqOS arc — a *synthetic immune system*.
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
**Why it's different.** Most "AI memory" rewards whatever gets *retrieved often* — popularity as a stand-in
|
|
36
|
+
for usefulness — which is exactly why a knowledge base bolted onto an LLM rots. SentAInce obeys one law
|
|
37
|
+
instead: **a memory is earned by a closed `action → success (exit 0)` chain — never by being read or
|
|
38
|
+
repeated.** That single rule keeps the memory clean; the immune system, the muscle memory, and the
|
|
39
|
+
sleep-time pruning all follow from it. It runs on your machine, under Claude Code or Cursor, and the whole
|
|
40
|
+
body is free and open forever.
|
|
41
|
+
|
|
42
|
+
## In human terms
|
|
43
|
+
|
|
44
|
+
SentAInce wraps an AI coding agent in a **body borrowed from biology**: an 🛡️ **immune system** that
|
|
45
|
+
reflexively refuses lethal actions, 💪 **muscle memory** that forms *only when work actually succeeds*, a
|
|
46
|
+
📖 **notebook** whose notes earn trust the same way, and 😴 **sleep** that forgets what went unused. The one
|
|
47
|
+
law underneath all of it: **a memory is earned by a closed `action → success (exit 0)` chain — never by
|
|
48
|
+
being read or repeated.** Popularity is not utility; that rule is why the memory stays clean. Safety is
|
|
49
|
+
never for sale — the immune system runs locally and free, always.
|
|
50
|
+
|
|
51
|
+
**→ Read the full story (anatomy + honest numbers + what the dashboard shows): [`docs/STORY.md`](docs/STORY.md).**
|
|
52
|
+
|
|
53
|
+
## Getting started
|
|
54
|
+
|
|
55
|
+
Pick the path that fits you — no account, nothing leaves your machine.
|
|
56
|
+
|
|
57
|
+
- **Just curious? Watch the safety reflex work (no setup, ~1 min).** With Python + `numpy` installed:
|
|
58
|
+
```
|
|
59
|
+
python experiments/exp1_autoimmune.py # a prompt-injected model proposes a lethal action; the gate refuses it
|
|
60
|
+
python -m pytest -q tests # the full 99-test evidence lock, deterministic
|
|
61
|
+
```
|
|
62
|
+
- **Want the live dashboard?** Bring up the local monitoring stack (Docker) and open your browser — it
|
|
63
|
+
lands on the plain-language **"SentAInce — The Organism"** dashboard:
|
|
64
|
+
```
|
|
65
|
+
cd exocortex/testbed/compose && docker compose up -d --build # then open http://localhost:3000
|
|
66
|
+
```
|
|
67
|
+
- **Want it working in your own project?** Follow the runbook in
|
|
68
|
+
[`docs/DEPLOY_TO_A_PROJECT.md`](docs/DEPLOY_TO_A_PROJECT.md). It installs cleanly, runs in a safe
|
|
69
|
+
watch-only mode by default, and uninstalls with one command.
|
|
70
|
+
|
|
71
|
+
New to all this? [`docs/STORY.md`](docs/STORY.md) explains the whole system in everyday terms;
|
|
72
|
+
[`docs/USER_GUIDE.md`](docs/USER_GUIDE.md) is the step-by-step operator's guide.
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
It is additive over, and imports read-only from, the **frozen `circle_of_fifths_rc2` kernel**
|
|
77
|
+
(lock `b0702a3`, tag `stigmergic-sparsity-v0.78-evidence-lock` — the v0.78 head, vendored
|
|
78
|
+
read-only at `vendor/kernel/`). The sibling `circle_of_fifths_rag` arc (its own kernel lock
|
|
79
|
+
`0985067`) and the organism/RAG freezes are untouched.
|
|
80
|
+
|
|
81
|
+
## The evidence lock — seven experiments (C1–C7)
|
|
82
|
+
|
|
83
|
+
A falsifiable arc, scoped to a deterministic symbolic harness. Every claim is broken by its
|
|
84
|
+
load-bearing null or it is vacuous; **two of the seven are intended −1s** (boundaries the arc
|
|
85
|
+
was run to produce), not failed wins.
|
|
86
|
+
|
|
87
|
+
| # | Claim | Verdict | Evidence (tests) |
|
|
88
|
+
|---|-------|---------|------------------|
|
|
89
|
+
| **C1** | **Auto-immune interlock** — a host-side topological scar refuses a structurally-lethal action a prompt-injected proposer emits; a naive agent given the same proposal executes it and dies. | **+1** | `exp1_autoimmune.py` (7) |
|
|
90
|
+
| **C2** | **Hypoxia / metabolic-DDoS** — reading its `MetabolicLedger`, the organism throttles, abstains on unaffordable *novel* anomalies, and survives a flood that bankrupts a gauge-blind null. | **+1** | `exp2_hypoxia.py` (10) |
|
|
91
|
+
| **C3** | **Auto-immune crucible** — under a starving ambush the safety scar holds absolute precedence over the metabolic throttle; the brake is energy-independent *by construction*. | **+1** | `exp3_crucible.py` (8) |
|
|
92
|
+
| **C4** | **Adaptive antibody** — one witnessed harm scars a structural `(effect, target)` signature and refuses surface-distinct repeats, while benign work still passes. | **+1** | `exp4_adaptive_antibody.py` (11) |
|
|
93
|
+
| **C4-R** | **Adversarial scope of C4** — a hand-specified signature fails three ways (collision, mistype, evasion): a structural parser cannot recover intent. | **−1 (intended)** | `exp4r_adversarial.py` (8) |
|
|
94
|
+
| **C5** | **Learned signatures don't recover intent either** — no encoder (structural, lexical, semantic) admits a separating threshold on the C4-R corpus. | **−1 (intended)** | `exp5_learned_signature.py` (8) |
|
|
95
|
+
| **C6** | **Outcome-conditioned oracle** — gating on the sandboxed *effect* vs a declared invariant resolves the C4→C4-R→C5 walls. | **+1** | `exp6_outcome_oracle.py` (9) |
|
|
96
|
+
| **C7** | **Somatic composition crucible** — the four organs survive a starving ambush together; two cross-organ gaps located and each closed with a minimal twin-wire. | **+1 HOMEOSTASIS** | `exp7_crucible.py` (8) |
|
|
97
|
+
|
|
98
|
+
```
|
|
99
|
+
python experiments/exp1_autoimmune.py # any experiment runs standalone (+ --json)
|
|
100
|
+
python -m pytest -q tests # the deterministic suite
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
The suite is **99 tests**: the **69-test C1–C7 evidence lock** + **30** domain-crucible /
|
|
104
|
+
adapter tests (see *Applications* below). Pure-Python, deterministic (same seed →
|
|
105
|
+
byte-identical ledger), `numpy` + `pytest` only — no Docker, no Ollama, no real syscalls in the
|
|
106
|
+
lock; the only "execution" is `MockExecutor`, which records intent. Determinism is deliberate: a
|
|
107
|
+
real, non-deterministic LLM would break the reproducible −1/+1, so the locked claims use a
|
|
108
|
+
scripted proposer. See [`docs/CLAIM_BOUNDARY.md`](docs/CLAIM_BOUNDARY.md) for the binding ledger
|
|
109
|
+
of what each experiment does and does **not** claim.
|
|
110
|
+
|
|
111
|
+
## The standard interface (provider-agnostic seam)
|
|
112
|
+
|
|
113
|
+
A tool/action = `(name, description, JSON-Schema input)`; the proposer emits a typed call;
|
|
114
|
+
the **host decides execution**. This is the common shape of Anthropic tool use, OpenAI/Ollama
|
|
115
|
+
function-calling, and MCP — so the deterministic stub and a real local model are
|
|
116
|
+
interchangeable behind `sentaince.interface.tools.Proposer`. The `OllamaProposer`
|
|
117
|
+
(`interface/ollama.py`) is the live additive swap (Track A demo / Track A.2 container); MCP is
|
|
118
|
+
the promotion path for exposing the ActionGraph across a process boundary.
|
|
119
|
+
|
|
120
|
+
## Applications — domain crucibles (separate tier, **not** in the C1–C7 ledger)
|
|
121
|
+
|
|
122
|
+
The same locked organs re-skinned onto hostile domain substrates as deterministic,
|
|
123
|
+
Experiment-1-style contracts (each with a load-bearing null). **Built + `+1`** (2026-06-26):
|
|
124
|
+
`manufacturing`, `scada`, `soc`, `spacecraft` (`experiments/*_crucible.py`, 6 tests each — the
|
|
125
|
+
30 non-C1–C7 tests, with `test_ollama_adapter`). **Design-only** (human-authority bounded, no
|
|
126
|
+
crucible yet): medical, military, search-and-rescue. These are *applications* of the locked
|
|
127
|
+
physics, kept out of the C1–C7 claim ledger. See [`docs/use_cases/`](docs/use_cases/README.md).
|
|
128
|
+
|
|
129
|
+
## Track A.2 — containerized battle-test (labeled demonstration, **never** a lock)
|
|
130
|
+
|
|
131
|
+
`battle/`, `body/`, `docker/`, and `demo/live_homeostasis.py` carry the C7 composition into a
|
|
132
|
+
real Docker container with a real LLM head (OpenAI-compatible) over a real, disposable body.
|
|
133
|
+
It is explicitly **non-deterministic** and can never move a C-verdict; a `0`/`−1` indicts the
|
|
134
|
+
model or infrastructure, never the locked physics. Latest demo (`llama3:8b`, N=100): survival
|
|
135
|
+
**1.000**, **0** lethal slips, **100 distinct** runs (labeled). See
|
|
136
|
+
[`docs/battle_test/`](docs/battle_test/WHITEPAPER.md).
|
|
137
|
+
|
|
138
|
+
## Layout
|
|
139
|
+
|
|
140
|
+
| Path | Role |
|
|
141
|
+
|------|------|
|
|
142
|
+
| `sentaince/interface/` | the standard seam — `ToolSpec`, proposals, `Proposer`, `ScriptedProposer`, `OllamaProposer` |
|
|
143
|
+
| `sentaince/organism/` | the organs — `action_graph` + `interlock` (C1), `metabolism`/`gearbox`/`anomaly` (C2/C3), `antibody`/`learned_signature` (C4/C5), `outcome_oracle` (C6), `executor` (mock) |
|
|
144
|
+
| `sentaince/agents/` | `NaiveAgent` / metabolic nulls and `Organism` (treatment) |
|
|
145
|
+
| `sentaince/kernel/` | read-only shim that *locates* the frozen kernel |
|
|
146
|
+
| `experiments/` | the A/B crucible runners (exp1–exp7 + the domain crucibles) |
|
|
147
|
+
| `tests/` | the 99-test deterministic suite (69 C1–C7 + 30 domain/adapter) |
|
|
148
|
+
| `battle/` · `body/` · `docker/` · `demo/` | Track A.2 containerized battle-test (demonstration) |
|
|
149
|
+
| `vendor/kernel/` | pinned read-only frozen-kernel snapshot (lets the suite run in-container) |
|
|
150
|
+
| `docs/CLAIM_BOUNDARY.md` | the binding claim ledger (C1–C7) |
|
|
151
|
+
| `docs/use_cases/` | domain application designs + contracts |
|
|
152
|
+
| `docs/battle_test/` | whitepaper · user guide · demo guide for Track A.2 |
|
|
153
|
+
|
|
154
|
+
See [`docs/CLAIM_BOUNDARY.md`](docs/CLAIM_BOUNDARY.md) for what is and is **not** claimed.
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
## Free forever — and sustainable
|
|
159
|
+
|
|
160
|
+
The whole local body — the safety gate, the earned memory, the dashboards — is **Apache-2.0, free, and
|
|
161
|
+
open, always.** Safety is never paywalled. What keeps the project alive is an optional, **fully local**
|
|
162
|
+
tune-up subscription (the *Appliance*) that maintains and auto-tunes your organism over time — your code
|
|
163
|
+
never leaves your machine. See [`docs/PRODUCT.md`](docs/PRODUCT.md) for the honest commercial model, and
|
|
164
|
+
[`docs/STORY.md`](docs/STORY.md) for the plain-language tour.
|
|
165
|
+
|
|
166
|
+
> Built by one maintainer, in the open, gauge-first — every claim is broken by its own null or it doesn't ship.
|