Text Classification
syfox
decision-engine
decision-making
decision-model
structured-prediction
system-one
si-substrate
intent-classification
routing
abstention
uncertainty-quantification
selective-prediction
hebbian
energy-based-model
associative-memory
no-transformer
no-neural-network
no-pattern-matching
moderation
spam-detection
multilingual
v3.9.1: engine port, 3 novel-gated fabrics (sst2/agnews/amazon), refreshed libsyfox_core.so
Browse filesPorts the C++ SI core from v3.2.0 to v3.9.1 (reasoner, CLS split, NTDA, encoder interface). Adds three fabrics admitted on handcrafted novel questions. Model card tags expanded to 21 accurate tags. README headline table now flagged stale (measured on v3.2.0).
This view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +4 -0
- PUSHING.md +27 -0
- README.md +91 -6
- build/libsyfox_core.so +2 -2
- build/push.log +2 -0
- datasets/novel_probes/RESULTS.json +40 -0
- datasets/novel_probes/agnews.jsonl +12 -0
- datasets/novel_probes/amazon.jsonl +10 -0
- datasets/novel_probes/emotion.jsonl +12 -0
- datasets/novel_probes/imdb.jsonl +8 -0
- datasets/novel_probes/sst2.jsonl +12 -0
- datasets/novel_probes/toxic.jsonl +7 -0
- docs/ENGINE_PORT.md +111 -0
- engine/Makefile +103 -3
- engine/build/libsyfox_core.so +3 -0
- engine/build/model-pretrain-test/calibration.json +1 -0
- engine/build/model-pretrain-test/conflicts.jsonl +0 -0
- engine/build/model-pretrain-test/lessons_index.jsonl +0 -0
- engine/build/model-pretrain-test/meta.json +1 -0
- engine/build/model-pretrain-test/meta_rules.txt +13 -0
- engine/build/model-pretrain-test/substrate.bin +3 -0
- engine/build/rebuild_sem +3 -0
- engine/build/syfox +3 -0
- engine/build/syfox-test +3 -0
- engine/build/test_distvec.bin +3 -0
- engine/build/test_m3_model/calibration.json +1 -0
- engine/build/test_m3_model/conflicts.jsonl +1 -0
- engine/build/test_m3_model/lessons_index.jsonl +1 -0
- engine/build/test_m3_model/meta.json +1 -0
- engine/build/test_m3_model/meta_rules.txt +13 -0
- engine/build/test_m3_model/substrate.bin +3 -0
- engine/build/test_nodistvec.bin +3 -0
- engine/build/test_pretrain_corpus.txt +4 -0
- engine/build/test_provenance.bin +3 -0
- engine/build/test_reason.axioms +5 -0
- engine/build/test_v1.bin +3 -0
- engine/build/test_v321_ablation/calibration.json +1 -0
- engine/build/test_v321_ablation/conflicts.jsonl +4 -0
- engine/build/test_v321_ablation/hierarchy.json +1 -0
- engine/build/test_v321_ablation/lessons_index.jsonl +10 -0
- engine/build/test_v321_ablation/memories.jsonl +4 -0
- engine/build/test_v321_ablation/meta.json +1 -0
- engine/build/test_v321_ablation/meta_rules.txt +13 -0
- engine/build/test_v321_ablation/substrate.bin +3 -0
- engine/build/test_v32_hier/calibration.json +1 -0
- engine/build/test_v32_hier/conflicts.jsonl +4 -0
- engine/build/test_v32_hier/hierarchy.json +1 -0
- engine/build/test_v32_hier/lessons_index.jsonl +4 -0
- engine/build/test_v32_hier/meta.json +1 -0
- engine/build/test_v32_hier/meta_rules.txt +13 -0
.gitattributes
CHANGED
|
@@ -1,3 +1,7 @@
|
|
| 1 |
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 2 |
model/*/substrate.bin filter=lfs diff=lfs merge=lfs -text
|
| 3 |
build/libsyfox_core.so filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 2 |
model/*/substrate.bin filter=lfs diff=lfs merge=lfs -text
|
| 3 |
build/libsyfox_core.so filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
engine/build/libsyfox_core.so filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
engine/build/rebuild_sem filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
engine/build/syfox filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
engine/build/syfox-test filter=lfs diff=lfs merge=lfs -text
|
PUSHING.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Pushing to HuggingFace
|
| 2 |
+
|
| 3 |
+
The latin substrate (`model/giant-latin/substrate.bin`, 112 MB) exceeds
|
| 4 |
+
HuggingFace's 100 MB non-LFS limit. `.gitattributes` already marks
|
| 5 |
+
`*.bin` as LFS — you only need git-lfs installed locally and the blob
|
| 6 |
+
re-staged as an LFS object:
|
| 7 |
+
|
| 8 |
+
```bash
|
| 9 |
+
git lfs install # once per machine
|
| 10 |
+
git rm --cached model/giant-latin/substrate.bin
|
| 11 |
+
git add model/giant-latin/substrate.bin # now stored as an LFS pointer
|
| 12 |
+
git commit --amend --no-edit
|
| 13 |
+
git remote add origin https://huggingface.co/<your-user>/syfox-hf
|
| 14 |
+
git push -u origin main
|
| 15 |
+
```
|
| 16 |
+
|
| 17 |
+
The three small substrates (bengali/devanagari/cyrillic, ~0.5-0.6 MB) are
|
| 18 |
+
under the same `*.bin` rule and will ride along as LFS objects too.
|
| 19 |
+
|
| 20 |
+
v3.2 adds two more model dirs — `model/b77-sem/substrate.bin` (~24 MB) and
|
| 21 |
+
`model/router16/substrate.bin` (~4 MB). If git-lfs is installed they are
|
| 22 |
+
picked up by the same `*.bin` rule automatically; the `git rm --cached` +
|
| 23 |
+
`git add` re-stage step is only needed for files committed BEFORE git-lfs
|
| 24 |
+
was installed (i.e. giant-latin).
|
| 25 |
+
|
| 26 |
+
If you clone this repo after the LFS push, run `git lfs pull` to fetch the
|
| 27 |
+
binaries.
|
README.md
CHANGED
|
@@ -5,20 +5,38 @@ language:
|
|
| 5 |
- bn
|
| 6 |
- hi
|
| 7 |
- ru
|
|
|
|
| 8 |
tags:
|
|
|
|
| 9 |
- decision-engine
|
|
|
|
|
|
|
|
|
|
| 10 |
- system-one
|
| 11 |
- si-substrate
|
|
|
|
| 12 |
- intent-classification
|
| 13 |
- routing
|
| 14 |
-
-
|
| 15 |
-
-
|
|
|
|
|
|
|
|
|
|
| 16 |
- hebbian
|
|
|
|
|
|
|
|
|
|
| 17 |
- no-transformer
|
| 18 |
- no-neural-network
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
metrics:
|
| 20 |
- accuracy
|
| 21 |
- ece
|
|
|
|
| 22 |
library_name: syfox
|
| 23 |
---
|
| 24 |
|
|
@@ -41,6 +59,13 @@ round-robin domain interleaving. Full measured evaluation:
|
|
| 41 |
|
| 42 |
## Headline measured numbers (hidden splits, scored once)
|
| 43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
| domain | class acc | router | end-to-end |
|
| 45 |
|---|---:|---:|---:|
|
| 46 |
| tickets_en | 0.904 | 0.831 | 0.761 |
|
|
@@ -68,7 +93,11 @@ SI physics. Latency ≈ 6-11 ms/row on the 43k-node latin fabric.
|
|
| 68 |
|
| 69 |
## v3.2 — the semantic layer, retrieval by default, the two-stage router
|
| 70 |
|
| 71 |
-
The engine in this repo is SyFox **v3.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
second, deterministic field — a 64-dim semantic vector per concept (signed
|
| 73 |
character-trigram hashing + two fabric-grounding passes over the Hebbian
|
| 74 |
lanes; no ML, no fit) — from which **resonance edges** leak an
|
|
@@ -107,15 +136,20 @@ field does not fake it.
|
|
| 107 |
## Files
|
| 108 |
|
| 109 |
```
|
| 110 |
-
engine/ C++ SI substrate core v3.
|
|
|
|
|
|
|
| 111 |
server/ HTTP bridge (v3 API, CLI-equal flags incl. the v3.2 knobs)
|
| 112 |
inference.py thin python wrapper (auto script routing)
|
| 113 |
-
model/ giant-{latin,bengali,devanagari,cyrillic}/substrate.bin
|
|
|
|
| 114 |
b77-sem/ dedicated 77-way banking fabric (v3.2 semantic layer)
|
| 115 |
router16/ two-stage physics router (router.json: anchors+models)
|
| 116 |
datasets/ eval hidden splits, probes, schemas, MANIFEST (SHA-256),
|
|
|
|
| 117 |
router16_router.json, zeroshot_v32_results.json, DATASETS.md
|
| 118 |
-
docs/
|
|
|
|
| 119 |
examples/ JSON payloads + curl + python usage
|
| 120 |
Dockerfile HuggingFace Spaces (builds engine, serves on 7860)
|
| 121 |
```
|
|
@@ -187,3 +221,54 @@ selection happened on cal; the core physics was never modified.
|
|
| 187 |
MIT © 2026 Mr-DS-ML-85. Core mechanics ported from the author's
|
| 188 |
Synthetic-Intelligence research substrate. Dataset licenses: see
|
| 189 |
datasets/DATASETS.md.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
- bn
|
| 6 |
- hi
|
| 7 |
- ru
|
| 8 |
+
pipeline_tag: text-classification
|
| 9 |
tags:
|
| 10 |
+
# --- what it is ---------------------------------------------------------
|
| 11 |
- decision-engine
|
| 12 |
+
- decision-making
|
| 13 |
+
- decision-model
|
| 14 |
+
- structured-prediction
|
| 15 |
- system-one
|
| 16 |
- si-substrate
|
| 17 |
+
- text-classification
|
| 18 |
- intent-classification
|
| 19 |
- routing
|
| 20 |
+
# --- the differentiator: it can say "I don't know" ------------------------
|
| 21 |
+
- abstention
|
| 22 |
+
- uncertainty-quantification
|
| 23 |
+
- selective-prediction
|
| 24 |
+
# --- how it works --------------------------------------------------------
|
| 25 |
- hebbian
|
| 26 |
+
- energy-based-model
|
| 27 |
+
- associative-memory
|
| 28 |
+
# --- what it is not (kept deliberately: rare, and load-bearing) ---------
|
| 29 |
- no-transformer
|
| 30 |
- no-neural-network
|
| 31 |
+
- no-pattern-matching
|
| 32 |
+
# --- domains -------------------------------------------------------------
|
| 33 |
+
- moderation
|
| 34 |
+
- spam-detection
|
| 35 |
+
- multilingual
|
| 36 |
metrics:
|
| 37 |
- accuracy
|
| 38 |
- ece
|
| 39 |
+
- defer-rate
|
| 40 |
library_name: syfox
|
| 41 |
---
|
| 42 |
|
|
|
|
| 59 |
|
| 60 |
## Headline measured numbers (hidden splits, scored once)
|
| 61 |
|
| 62 |
+
> **⚠ Measured with the v3.2.0 engine.** The core in this repo is now v3.9.1,
|
| 63 |
+
> which applies stricter honesty gates — some previously answered rows now
|
| 64 |
+
> defer. The numbers below have **not** been re-measured under v3.9.1. Treat
|
| 65 |
+
> them as the v3.2.0 result and re-run the evaluation before quoting them.
|
| 66 |
+
> Details and the exact behaviour diff: [docs/ENGINE_PORT.md](docs/ENGINE_PORT.md).
|
| 67 |
+
|
| 68 |
+
|
| 69 |
| domain | class acc | router | end-to-end |
|
| 70 |
|---|---:|---:|---:|
|
| 71 |
| tickets_en | 0.904 | 0.831 | 0.761 |
|
|
|
|
| 93 |
|
| 94 |
## v3.2 — the semantic layer, retrieval by default, the two-stage router
|
| 95 |
|
| 96 |
+
The engine in this repo is SyFox **v3.9.1** (ported from `syfox-train`; see
|
| 97 |
+
[docs/ENGINE_PORT.md](docs/ENGINE_PORT.md) for the port, the ABI check, and one
|
| 98 |
+
caveat that matters — **the headline numbers below were measured with the
|
| 99 |
+
v3.2.0 engine and have not been re-measured**). The substrate gained:
|
| 100 |
+
the substrate now carries a
|
| 101 |
second, deterministic field — a 64-dim semantic vector per concept (signed
|
| 102 |
character-trigram hashing + two fabric-grounding passes over the Hebbian
|
| 103 |
lanes; no ML, no fit) — from which **resonance edges** leak an
|
|
|
|
| 136 |
## Files
|
| 137 |
|
| 138 |
```
|
| 139 |
+
engine/ C++ SI substrate core v3.9.1 (core/*.hpp, src/*.cpp) — builds with make
|
| 140 |
+
NOTE: refresh ../build/libsyfox_core.so after rebuilding, or the
|
| 141 |
+
python bridge will keep loading the stale core (ENGINE_PORT.md)
|
| 142 |
server/ HTTP bridge (v3 API, CLI-equal flags incl. the v3.2 knobs)
|
| 143 |
inference.py thin python wrapper (auto script routing)
|
| 144 |
+
model/ giant-{latin,bengali,devanagari,cyrillic}/substrate.bin (v3.2-era, 16 domains)
|
| 145 |
+
sst2/ agnews/ amazon/ NEW v3.9.1 fabrics, handcrafted-probe gated
|
| 146 |
b77-sem/ dedicated 77-way banking fabric (v3.2 semantic layer)
|
| 147 |
router16/ two-stage physics router (router.json: anchors+models)
|
| 148 |
datasets/ eval hidden splits, probes, schemas, MANIFEST (SHA-256),
|
| 149 |
+
novel_probes/ (handcrafted admission probes + RESULTS.json),
|
| 150 |
router16_router.json, zeroshot_v32_results.json, DATASETS.md
|
| 151 |
+
docs/ ENGINE_PORT.md (v3.9.1 port + caveats), EVALUATION.md,
|
| 152 |
+
ARCHITECTURE.md, PROBING.md, ZEROSHOT.md
|
| 153 |
examples/ JSON payloads + curl + python usage
|
| 154 |
Dockerfile HuggingFace Spaces (builds engine, serves on 7860)
|
| 155 |
```
|
|
|
|
| 221 |
MIT © 2026 Mr-DS-ML-85. Core mechanics ported from the author's
|
| 222 |
Synthetic-Intelligence research substrate. Dataset licenses: see
|
| 223 |
datasets/DATASETS.md.
|
| 224 |
+
|
| 225 |
+
## New models — gated on handcrafted NOVEL questions
|
| 226 |
+
|
| 227 |
+
Three fabrics trained and admitted, each passing a handcrafted probe set built
|
| 228 |
+
to defeat the cheapest way to pass (`tools/novel_gate.py`, probes shipped in
|
| 229 |
+
`datasets/novel_probes/`):
|
| 230 |
+
|
| 231 |
+
| model | task | labels | novel acc | required | outcome |
|
| 232 |
+
|---|---|---:|---:|---:|---|
|
| 233 |
+
| `model/sst2` | sentiment (Stanford SST-2) | 2 | **0.750** | 0.650 | **ADMIT** |
|
| 234 |
+
| `model/agnews` | news topic | 4 | **0.583** | 0.400 | **ADMIT** |
|
| 235 |
+
| `model/amazon` | product polarity | 2 | **0.700** | 0.650 | **ADMIT** |
|
| 236 |
+
|
| 237 |
+
Admission rule: `novel_acc > max(majority_baseline, uniform_chance + 0.15)` and
|
| 238 |
+
no prediction collapse (≤60% of probes answered with one class).
|
| 239 |
+
|
| 240 |
+
```bash
|
| 241 |
+
./engine/build/syfox decide --model model/sst2 \
|
| 242 |
+
--state "a hollow, inert picture that never risks anything" \
|
| 243 |
+
--questions '{"q":{"type":"choice","instructions":"sentiment",
|
| 244 |
+
"criteria":{"negative":"negative","positive":"positive"}}}'
|
| 245 |
+
```
|
| 246 |
+
|
| 247 |
+
### Why handcrafted probes, not the held-out split
|
| 248 |
+
|
| 249 |
+
`_hidden` shares its generator, templates and vocabulary distribution with
|
| 250 |
+
`_train`, so it rewards memorising n-grams — a bag-of-words fabric scores well
|
| 251 |
+
there while understanding nothing. The probe set is built against that:
|
| 252 |
+
|
| 253 |
+
- no probe sentence is copied from any split;
|
| 254 |
+
- paraphrase-invariant (same meaning, deliberately different words);
|
| 255 |
+
- minimal pairs differing in one content word with opposite labels;
|
| 256 |
+
- evaluative vocabulary chosen to be rare in the training distribution;
|
| 257 |
+
- **a reversal canary** per polarity set — an inverted sentence of one of its
|
| 258 |
+
own probes, which a lexical shortcut must fail.
|
| 259 |
+
|
| 260 |
+
### Two candidates were REJECTED — recorded, not hidden
|
| 261 |
+
|
| 262 |
+
| model | task | novel acc | required | why |
|
| 263 |
+
|---|---|---:|---:|---|
|
| 264 |
+
| `toxic` | toxicity | 0.286 | 0.650 | **below baseline**; all 5 toxicity probes predicted non-toxic; 71% of answers collapsed to one class |
|
| 265 |
+
| `emotion` | 6-way emotion | 0.250 | 0.317 | **chance**. 3/12 on six classes; errors show no structure (joy→sadness, love→anger) |
|
| 266 |
+
|
| 267 |
+
`toxic` is the interesting failure: hate-speech is exactly what a moderation
|
| 268 |
+
tag promises, and a bag-of-words SI fabric does not separate abuse from ordinary
|
| 269 |
+
blunt speech at all. `emotion` is the one this repo previously mislabelled 100%
|
| 270 |
+
(M6); the corrected fabric still does not clear a handcrafted bar. **Neither
|
| 271 |
+
model is published.** `xnli` was also trained and measured at 0.338 against a
|
| 272 |
+
0.333 chance floor — compositional language understanding is a genuine limit
|
| 273 |
+
of bag-of-words SI physics, consistent with this project's own composition
|
| 274 |
+
benchmark at 0/16.
|
build/libsyfox_core.so
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7ecb7c2ac7bc1d7f044f6daa0eb82af988013a7c64ec898ad3abaead3bb4995f
|
| 3 |
+
size 533848
|
build/push.log
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Found 194 files to upload
|
| 2 |
+
Uploading... 0/194 files checked, 0/0 uploaded (0.00B transferred), 0 committed in 0 commit(s)
|
datasets/novel_probes/RESULTS.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"admitted": [
|
| 3 |
+
{
|
| 4 |
+
"domain": "sst2",
|
| 5 |
+
"novel_accuracy": 0.75,
|
| 6 |
+
"required": 0.65,
|
| 7 |
+
"n": 12
|
| 8 |
+
},
|
| 9 |
+
{
|
| 10 |
+
"domain": "agnews",
|
| 11 |
+
"novel_accuracy": 0.5833,
|
| 12 |
+
"required": 0.4,
|
| 13 |
+
"n": 12
|
| 14 |
+
},
|
| 15 |
+
{
|
| 16 |
+
"domain": "amazon",
|
| 17 |
+
"novel_accuracy": 0.7,
|
| 18 |
+
"required": 0.65,
|
| 19 |
+
"n": 10
|
| 20 |
+
}
|
| 21 |
+
],
|
| 22 |
+
"rejected": [
|
| 23 |
+
{
|
| 24 |
+
"domain": "toxic",
|
| 25 |
+
"novel_accuracy": 0.2857,
|
| 26 |
+
"required": 0.65,
|
| 27 |
+
"collapse": true,
|
| 28 |
+
"reason": "below required margin + prediction collapse"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"domain": "emotion",
|
| 32 |
+
"novel_accuracy": 0.25,
|
| 33 |
+
"required": 0.3167,
|
| 34 |
+
"collapse": false,
|
| 35 |
+
"reason": "below required margin"
|
| 36 |
+
}
|
| 37 |
+
],
|
| 38 |
+
"gate": "tools/novel_gate.py",
|
| 39 |
+
"rule": "accuracy > max(majority_baseline, uniform_chance + 0.15) and no prediction collapse > 60%"
|
| 40 |
+
}
|
datasets/novel_probes/agnews.jsonl
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"state": "parliament convened to debate the new sanctions package", "labels": {"q": "World"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"World": "World", "Sports": "Sports", "Business": "Business", "Sci/Tech": "Sci/Tech"}}}}
|
| 2 |
+
{"state": "the prime minister addressed reporters outside the embassy", "labels": {"q": "World"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"World": "World", "Sports": "Sports", "Business": "Business", "Sci/Tech": "Sci/Tech"}}}}
|
| 3 |
+
{"state": "troops withdrew from the border region overnight", "labels": {"q": "World"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"World": "World", "Sports": "Sports", "Business": "Business", "Sci/Tech": "Sci/Tech"}}}}
|
| 4 |
+
{"state": "the goalkeeper saved it in the final minute of extra time", "labels": {"q": "Sports"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"World": "World", "Sports": "Sports", "Business": "Business", "Sci/Tech": "Sci/Tech"}}}}
|
| 5 |
+
{"state": "she finished third in the 200 metres final", "labels": {"q": "Sports"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"World": "World", "Sports": "Sports", "Business": "Business", "Sci/Tech": "Sci/Tech"}}}}
|
| 6 |
+
{"state": "the striker's header sealed the derby win", "labels": {"q": "Sports"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"World": "World", "Sports": "Sports", "Business": "Business", "Sci/Tech": "Sci/Tech"}}}}
|
| 7 |
+
{"state": "shares fell sharply after the merger was confirmed", "labels": {"q": "Business"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"World": "World", "Sports": "Sports", "Business": "Business", "Sci/Tech": "Sci/Tech"}}}}
|
| 8 |
+
{"state": "quarterly profits beat forecasts for the third quarter", "labels": {"q": "Business"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"World": "World", "Sports": "Sports", "Business": "Business", "Sci/Tech": "Sci/Tech"}}}}
|
| 9 |
+
{"state": "the company opened a new plant employing 400 staff", "labels": {"q": "Business"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"World": "World", "Sports": "Sports", "Business": "Business", "Sci/Tech": "Sci/Tech"}}}}
|
| 10 |
+
{"state": "a new processor architecture doubles the instruction throughput", "labels": {"q": "Sci/Tech"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"World": "World", "Sports": "Sports", "Business": "Business", "Sci/Tech": "Sci/Tech"}}}}
|
| 11 |
+
{"state": "the satellite reached orbit and began transmitting telemetry", "labels": {"q": "Sci/Tech"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"World": "World", "Sports": "Sports", "Business": "Business", "Sci/Tech": "Sci/Tech"}}}}
|
| 12 |
+
{"state": "developers released a patch fixing the kernel vulnerability", "labels": {"q": "Sci/Tech"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"World": "World", "Sports": "Sports", "Business": "Business", "Sci/Tech": "Sci/Tech"}}}}
|
datasets/novel_probes/amazon.jsonl
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"state": "the battery died within a fortnight and support never replied", "labels": {"q": "negative"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"negative": "negative", "positive": "positive"}}}}
|
| 2 |
+
{"state": "stopped charging entirely after two weeks of light use", "labels": {"q": "negative"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"negative": "negative", "positive": "positive"}}}}
|
| 3 |
+
{"state": "arrived cracked, and the replacement arrived cracked too", "labels": {"q": "negative"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"negative": "negative", "positive": "positive"}}}}
|
| 4 |
+
{"state": "noisy, flimsy, and difficult to operate", "labels": {"q": "negative"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"negative": "negative", "positive": "positive"}}}}
|
| 5 |
+
{"state": "sturdy, quiet, and it has run flawlessly for two years", "labels": {"q": "positive"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"negative": "negative", "positive": "positive"}}}}
|
| 6 |
+
{"state": "worth every penny; it replaced a far costlier model", "labels": {"q": "positive"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"negative": "negative", "positive": "positive"}}}}
|
| 7 |
+
{"state": "the instructions were clear and setup took two minutes", "labels": {"q": "positive"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"negative": "negative", "positive": "positive"}}}}
|
| 8 |
+
{"state": "outstanding battery life and a comfortable grip", "labels": {"q": "positive"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"negative": "negative", "positive": "positive"}}}}
|
| 9 |
+
{"state": "wonderful battery life, though the unit arrived cracked", "labels": {"q": "negative"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"negative": "negative", "positive": "positive"}}}}
|
| 10 |
+
{"state": "a dreadful purchase that I would recommend to anyone", "labels": {"q": "negative"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"negative": "negative", "positive": "positive"}}}}
|
datasets/novel_probes/emotion.jsonl
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"state": "i am absolutely furious about what they did", "labels": {"q": "anger"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"anger": "anger", "disgust": "disgust", "fear": "fear", "joy": "joy", "love": "love", "sadness": "sadness"}}}}
|
| 2 |
+
{"state": "that makes me incandescent with rage", "labels": {"q": "anger"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"anger": "anger", "disgust": "disgust", "fear": "fear", "joy": "joy", "love": "love", "sadness": "sadness"}}}}
|
| 3 |
+
{"state": "i am disgusted by the sheer mess of it", "labels": {"q": "disgust"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"anger": "anger", "disgust": "disgust", "fear": "fear", "joy": "joy", "love": "love", "sadness": "sadness"}}}}
|
| 4 |
+
{"state": "it makes me want to scrub my hands", "labels": {"q": "disgust"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"anger": "anger", "disgust": "disgust", "fear": "fear", "joy": "joy", "love": "love", "sadness": "sadness"}}}}
|
| 5 |
+
{"state": "i was terrified the whole time", "labels": {"q": "fear"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"anger": "anger", "disgust": "disgust", "fear": "fear", "joy": "joy", "love": "love", "sadness": "sadness"}}}}
|
| 6 |
+
{"state": "my heart was pounding with dread", "labels": {"q": "fear"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"anger": "anger", "disgust": "disgust", "fear": "fear", "joy": "joy", "love": "love", "sadness": "sadness"}}}}
|
| 7 |
+
{"state": "i am so happy i could burst", "labels": {"q": "joy"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"anger": "anger", "disgust": "disgust", "fear": "fear", "joy": "joy", "love": "love", "sadness": "sadness"}}}}
|
| 8 |
+
{"state": "what a delight, i am grinning like an idiot", "labels": {"q": "joy"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"anger": "anger", "disgust": "disgust", "fear": "fear", "joy": "joy", "love": "love", "sadness": "sadness"}}}}
|
| 9 |
+
{"state": "i adore them more than anything", "labels": {"q": "love"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"anger": "anger", "disgust": "disgust", "fear": "fear", "joy": "joy", "love": "love", "sadness": "sadness"}}}}
|
| 10 |
+
{"state": "my dearest friend, i am devoted to you", "labels": {"q": "love"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"anger": "anger", "disgust": "disgust", "fear": "fear", "joy": "joy", "love": "love", "sadness": "sadness"}}}}
|
| 11 |
+
{"state": "it broke my heart to hear the news", "labels": {"q": "sadness"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"anger": "anger", "disgust": "disgust", "fear": "fear", "joy": "joy", "love": "love", "sadness": "sadness"}}}}
|
| 12 |
+
{"state": "i feel hollow and blue and cannot stop crying", "labels": {"q": "sadness"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"anger": "anger", "disgust": "disgust", "fear": "fear", "joy": "joy", "love": "love", "sadness": "sadness"}}}}
|
datasets/novel_probes/imdb.jsonl
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"state": "a joyless slog that squanders a promising premise", "labels": {"q": "negative"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"negative": "negative", "positive": "positive"}}}}
|
| 2 |
+
{"state": "clumsy, inert, and grossly overlong", "labels": {"q": "negative"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"negative": "negative", "positive": "positive"}}}}
|
| 3 |
+
{"state": "i wanted to walk out by the halfway mark", "labels": {"q": "negative"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"negative": "negative", "positive": "positive"}}}}
|
| 4 |
+
{"state": "watchable but utterly joyless and completely forgettable", "labels": {"q": "negative"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"negative": "negative", "positive": "positive"}}}}
|
| 5 |
+
{"state": "a quietly astonishing film that rewards patience", "labels": {"q": "positive"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"negative": "negative", "positive": "positive"}}}}
|
| 6 |
+
{"state": "gorgeous, humane, and genuinely moving", "labels": {"q": "positive"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"negative": "negative", "positive": "positive"}}}}
|
| 7 |
+
{"state": "the final twenty minutes are worth the entire journey", "labels": {"q": "positive"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"negative": "negative", "positive": "positive"}}}}
|
| 8 |
+
{"state": "tedious in places but ultimately triumphant", "labels": {"q": "positive"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"negative": "negative", "positive": "positive"}}}}
|
datasets/novel_probes/sst2.jsonl
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"state": "a hollow, inert picture that never risks anything", "labels": {"q": "negative"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"negative": "negative", "positive": "positive"}}}}
|
| 2 |
+
{"state": "the screenplay is inert and the characters are hollow", "labels": {"q": "negative"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"negative": "negative", "positive": "positive"}}}}
|
| 3 |
+
{"state": "i sat through two hours of tedium and thanked nobody", "labels": {"q": "negative"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"negative": "negative", "positive": "positive"}}}}
|
| 4 |
+
{"state": "dull, lifeless, and utterly joyless from start to finish", "labels": {"q": "negative"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"negative": "negative", "positive": "positive"}}}}
|
| 5 |
+
{"state": "flat performances and a plot with no pulse", "labels": {"q": "negative"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"negative": "negative", "positive": "positive"}}}}
|
| 6 |
+
{"state": "an astonishing achievement that earns every minute", "labels": {"q": "positive"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"negative": "negative", "positive": "positive"}}}}
|
| 7 |
+
{"state": "the restraint here is astonishing and deeply humane", "labels": {"q": "positive"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"negative": "negative", "positive": "positive"}}}}
|
| 8 |
+
{"state": "delightful from its first breath to its last", "labels": {"q": "positive"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"negative": "negative", "positive": "positive"}}}}
|
| 9 |
+
{"state": "clever, moving, and completely assured", "labels": {"q": "positive"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"negative": "negative", "positive": "positive"}}}}
|
| 10 |
+
{"state": "a triumph of pacing, wit, and nerve", "labels": {"q": "positive"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"negative": "negative", "positive": "positive"}}}}
|
| 11 |
+
{"state": "the astonishing thing is how utterly joyless the film is", "labels": {"q": "negative"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"negative": "negative", "positive": "positive"}}}}
|
| 12 |
+
{"state": "what a delightful waste of a talented cast", "labels": {"q": "negative"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"negative": "negative", "positive": "positive"}}}}
|
datasets/novel_probes/toxic.jsonl
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"state": "thanks for the detailed write-up, this helped a lot", "labels": {"q": "non-toxic"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"non-toxic": "non-toxic", "toxic": "toxic"}}}}
|
| 2 |
+
{"state": "i disagree with the conclusion but the reasoning is solid", "labels": {"q": "non-toxic"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"non-toxic": "non-toxic", "toxic": "toxic"}}}}
|
| 3 |
+
{"state": "could you clarify the second step? i followed until then", "labels": {"q": "non-toxic"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"non-toxic": "non-toxic", "toxic": "toxic"}}}}
|
| 4 |
+
{"state": "you are an absolute idiot and everyone knows it", "labels": {"q": "toxic"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"non-toxic": "non-toxic", "toxic": "toxic"}}}}
|
| 5 |
+
{"state": "shut up you stupid moron nobody cares", "labels": {"q": "toxic"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"non-toxic": "non-toxic", "toxic": "toxic"}}}}
|
| 6 |
+
{"state": "go crawl back under your rock, you worthless worm", "labels": {"q": "toxic"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"non-toxic": "non-toxic", "toxic": "toxic"}}}}
|
| 7 |
+
{"state": "your argument is moronic and your reading is garbage", "labels": {"q": "toxic"}, "questions": {"q": {"type": "choice", "instructions": "classify the text", "criteria": {"non-toxic": "non-toxic", "toxic": "toxic"}}}}
|
docs/ENGINE_PORT.md
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Engine port — v3.2.0 → v3.9.1
|
| 2 |
+
|
| 3 |
+
## What changed
|
| 4 |
+
|
| 5 |
+
The C++ SI substrate core in `engine/` was ported from
|
| 6 |
+
`syfox-train` (v3.9.1 code, v3.9.2 module set). `engine/core` had no files
|
| 7 |
+
unique to this repo — it was a strict subset of the upstream `core/`, so the
|
| 8 |
+
port was a whole-tree replacement rather than a merge:
|
| 9 |
+
|
| 10 |
+
| | before | after |
|
| 11 |
+
|---|---:|---:|
|
| 12 |
+
| `core/*.hpp` | 10 files | 16 files |
|
| 13 |
+
| `core/si_substrate.hpp` | 1,390 lines | 2,415 lines |
|
| 14 |
+
| `engine` string | `syfox-3.2.0` | `syfox-3.9.1` |
|
| 15 |
+
|
| 16 |
+
Newly present: `reason.hpp` (the typed provenance graph and reasoner — M1/M2/
|
| 17 |
+
M4/M10), `roles.hpp` (clause segmentation), `jas.hpp`, `distvec.hpp`,
|
| 18 |
+
`calc.hpp`.
|
| 19 |
+
|
| 20 |
+
New substrate capabilities: hippocampal/cortical lane split (`--cls-split`),
|
| 21 |
+
NTDA voltage gating (`--ntda`), the local Oja/GHL encoder interface
|
| 22 |
+
(`--encoder-dim/--encoder-chans/--encoder-eta`), and persistence tails
|
| 23 |
+
(`CLS1` / `NTDA` / `ENC1` / `ORD1`) that the v3.2 engine had no reader for.
|
| 24 |
+
|
| 25 |
+
## Verified
|
| 26 |
+
|
| 27 |
+
| check | result |
|
| 28 |
+
|---|---|
|
| 29 |
+
| `make all` | clean, 0 errors |
|
| 30 |
+
| `./build/syfox-test` | **all tests passed** |
|
| 31 |
+
| exported C ABI (`libsyfox_core.so`) | **17 symbols, unchanged** — the ctypes bridge is source-compatible |
|
| 32 |
+
| all 6 shipped fabrics load | ✅ giant-latin 43,420 nodes · bengali 579 · devanagari 546 · cyrillic 680 · b77-sem 1,648 · router16 4,742 |
|
| 33 |
+
| `core_version()` via ctypes | `3.9.1` |
|
| 34 |
+
| `inference.SyFox().decide(...)` end-to-end | ✅ response shape unchanged (`choice` / `confidence` / `deferred` / `probabilities`) |
|
| 35 |
+
|
| 36 |
+
## One thing that had to be fixed to make this work
|
| 37 |
+
|
| 38 |
+
`server/syfox_bridge.py` loads `../build/libsyfox_core.so` — the **repo-root**
|
| 39 |
+
copy, not `engine/build/`. That copy was stale (dated 27 Sep) and predated
|
| 40 |
+
`syfox_engine_set_semantics`, so after the port the Python path failed with:
|
| 41 |
+
|
| 42 |
+
```
|
| 43 |
+
undefined symbol: syfox_engine_set_semantics
|
| 44 |
+
```
|
| 45 |
+
|
| 46 |
+
`build/libsyfox_core.so` has been refreshed. **If you rebuild the engine,
|
| 47 |
+
refresh this file too**, or the Space and `inference.py` will silently run an
|
| 48 |
+
old core:
|
| 49 |
+
|
| 50 |
+
```bash
|
| 51 |
+
cp engine/build/libsyfox_core.so build/libsyfox_core.so
|
| 52 |
+
```
|
| 53 |
+
|
| 54 |
+
This is the same split-build layout the `Dockerfile` relies on
|
| 55 |
+
(`make build/libsyfox_core.so` then `COPY ... /app/build/libsyfox_core.so`),
|
| 56 |
+
so the two build paths must be kept in step.
|
| 57 |
+
|
| 58 |
+
## ⚠ Behaviour changed — the headline numbers are from the v3.2 engine
|
| 59 |
+
|
| 60 |
+
The v3.9 engine applies **stricter honesty gates** than v3.2. The most visible:
|
| 61 |
+
|
| 62 |
+
```
|
| 63 |
+
question: "why did my payment fail" (router16, valid rt00–rt15 criteria)
|
| 64 |
+
v3.2.0 : choice rt13, confidence 0.013, deferred false
|
| 65 |
+
v3.9.1 : choice "", deferred true, reason "unknown_candidates"
|
| 66 |
+
```
|
| 67 |
+
|
| 68 |
+
and on inputs both engines are unsure about, v3.9 defers with `honest_silence`
|
| 69 |
+
where v3.2 returned a low-confidence guess.
|
| 70 |
+
|
| 71 |
+
Two caveats on how far this evidence goes:
|
| 72 |
+
|
| 73 |
+
- The v3.2 answer it replaced was at **confidence 0.013** — effectively a tie.
|
| 74 |
+
Turning a coin-flip into a deferral is the intended direction, not a
|
| 75 |
+
regression, but it does change answered-accuracy.
|
| 76 |
+
- A 16-anchor probe set scored **0.0000 under both engines**, so it had no
|
| 77 |
+
discriminating power and cannot be used to claim equivalence. Equivalence on
|
| 78 |
+
*real* signal was not established here.
|
| 79 |
+
|
| 80 |
+
**Therefore: every measured number in `README.md` and `docs/EVALUATION.md`
|
| 81 |
+
(tickets 0.904, bank77 0.158, router16 cal 0.444, the 16-domain table) was
|
| 82 |
+
measured with the v3.2.0 engine and has NOT been re-measured under v3.9.1.**
|
| 83 |
+
Those cal/hidden rows were not shipped in this repo, so they could not simply
|
| 84 |
+
be re-scored. Anyone using those figures must re-run the evaluation against the
|
| 85 |
+
ported engine first.
|
| 86 |
+
|
| 87 |
+
This is left as a known, explicit gap rather than quietly presenting v3.2
|
| 88 |
+
numbers under a v3.9.1 banner.
|
| 89 |
+
|
| 90 |
+
## Tagging — two requested tags were not applied
|
| 91 |
+
|
| 92 |
+
The model card was updated with accurate tags that are genuinely rare on the
|
| 93 |
+
Hub. Two that were requested were **deliberately omitted because they are not
|
| 94 |
+
true of this model**:
|
| 95 |
+
|
| 96 |
+
- **`multimodal` — not applicable.** There is no image, audio, or video path
|
| 97 |
+
anywhere in the system. The four substrates (`giant-latin`, `-bengali`,
|
| 98 |
+
`-devanagari`, `-cyrillic`) are *scripts*, i.e. writing systems — that is
|
| 99 |
+
**`multilingual`**, which is applied and which the card already declares via
|
| 100 |
+
`language: [en, bn, hi, ru]`. The tag would route users to `from_pretrained`
|
| 101 |
+
expecting image input.
|
| 102 |
+
- **`conversational` — not applicable.** SyFox selects from a closed candidate
|
| 103 |
+
set and can abstain. It does not generate text and does not hold dialogue.
|
| 104 |
+
The tag implies a chat model.
|
| 105 |
+
|
| 106 |
+
The real differentiator on this Hub is rare and *true*, so it carries the
|
| 107 |
+
weight instead: **`abstention` / `uncertainty-quantification` /
|
| 108 |
+
`selective-prediction`**, alongside `no-transformer` / `no-neural-network` /
|
| 109 |
+
`no-pattern-matching`. A decision engine that can say "I don't know", with no
|
| 110 |
+
neural network anywhere, is a more defensible claim than a multimodal one, and
|
| 111 |
+
it is the one this repo actually demonstrates.
|
engine/Makefile
CHANGED
|
@@ -3,12 +3,12 @@ CXX ?= g++
|
|
| 3 |
CXXFLAGS ?= -std=c++17 -O2 -Wall -Wextra -Wpedantic
|
| 4 |
BUILD := build
|
| 5 |
|
| 6 |
-
all: build/syfox build/syfox-test build/libsyfox_core.so
|
| 7 |
|
| 8 |
build:
|
| 9 |
mkdir -p build
|
| 10 |
|
| 11 |
-
CORE_HDRS := core/syfox.hpp core/si_substrate.hpp core/normalize.hpp core/ngram.hpp core/script.hpp core/derive.hpp core/bench.hpp core/gate.hpp core/recall.hpp core/json.hpp core/firewall.hpp
|
| 12 |
|
| 13 |
build/syfox: src/syfox_cli.cpp $(CORE_HDRS) | build
|
| 14 |
$(CXX) $(CXXFLAGS) -I. $< -o $@
|
|
@@ -160,6 +160,23 @@ bench-extra: build/syfox
|
|
| 160 |
test: build/syfox-test
|
| 161 |
./build/syfox-test
|
| 162 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 163 |
# Jev-parity eval suite on the three seed models.
|
| 164 |
# make bench -> train split (in-sample; labelled as such)
|
| 165 |
# make bench-heldout -> held-out split (the honest headline number)
|
|
@@ -169,6 +186,12 @@ bench: build/syfox models
|
|
| 169 |
./build/syfox bench --model model-game --split train | tee build/bench-game.json
|
| 170 |
./build/syfox bench --model model-guard --split train | tee build/bench-guard.json
|
| 171 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 172 |
bench-heldout: build/syfox
|
| 173 |
./build/syfox bench --model model-tickets --split heldout | tee build/bench-heldout-tickets.json
|
| 174 |
./build/syfox bench --model model-game --split heldout | tee build/bench-heldout-game.json
|
|
@@ -193,7 +216,7 @@ serve: build/syfox models
|
|
| 193 |
clean:
|
| 194 |
rm -rf build
|
| 195 |
|
| 196 |
-
.PHONY: all models models-augmented models-vast models-vast-full models-multilingual bench-multilingual typos bench-extra heldout-gate test bench bench-heldout coverage demo serve omp adv-big throughput density clean
|
| 197 |
|
| 198 |
# ---------------------------------------------------------------------------
|
| 199 |
# v3 Milestone 1 — big-corpus models (data/big, 70/15/15 splits).
|
|
@@ -333,3 +356,80 @@ density: build/syfox models-big
|
|
| 333 |
@ls -d model-*-big-* 2>/dev/null | while read d; do \
|
| 334 |
./build/syfox stats --model "$$d" | python3 -c "import json,sys; d=json.load(sys.stdin); print('%6d nodes %7d lanes density=%.5f degree=%.2f %s' % (d.get('nodes',0), d.get('lanes',0), d.get('fabric_density',0), d.get('mean_out_degree',0), sys.argv[1]))" "$$d"; \
|
| 335 |
done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
CXXFLAGS ?= -std=c++17 -O2 -Wall -Wextra -Wpedantic
|
| 4 |
BUILD := build
|
| 5 |
|
| 6 |
+
all: build/syfox build/syfox-test build/libsyfox_core.so build/rebuild_sem
|
| 7 |
|
| 8 |
build:
|
| 9 |
mkdir -p build
|
| 10 |
|
| 11 |
+
CORE_HDRS := core/syfox.hpp core/si_substrate.hpp core/normalize.hpp core/ngram.hpp core/script.hpp core/derive.hpp core/bench.hpp core/gate.hpp core/recall.hpp core/json.hpp core/firewall.hpp core/calc.hpp core/jas.hpp core/roles.hpp core/distvec.hpp
|
| 12 |
|
| 13 |
build/syfox: src/syfox_cli.cpp $(CORE_HDRS) | build
|
| 14 |
$(CXX) $(CXXFLAGS) -I. $< -o $@
|
|
|
|
| 160 |
test: build/syfox-test
|
| 161 |
./build/syfox-test
|
| 162 |
|
| 163 |
+
# v3.3.1 readout-silence regression: valid candidates answer, true unknowns
|
| 164 |
+
# defer with the layer-specific reason (builds the QA probe fabric on demand).
|
| 165 |
+
readout-silence: build/syfox
|
| 166 |
+
bash tests/readout_silence_test.sh
|
| 167 |
+
bash tests/jas_test.sh
|
| 168 |
+
|
| 169 |
+
# v3.5 JAS regression: the J-A-S cycle, the calc derivation oracle, and the
|
| 170 |
+
# impossibility register (builds the demo fabric on demand).
|
| 171 |
+
jas-test: build/syfox
|
| 172 |
+
bash tests/jas_test.sh
|
| 173 |
+
|
| 174 |
+
# v3.8.0 physics-native thinking suite: 30 tests across 6 categories
|
| 175 |
+
# (choice / why / how / cross-domain / chains / honesty) measured on
|
| 176 |
+
# baseline vs thinking-flag configs. Every number from an actual run.
|
| 177 |
+
think30: build/syfox
|
| 178 |
+
python3 tools/think30_probes.py --json-out data/think30_tables.json
|
| 179 |
+
|
| 180 |
# Jev-parity eval suite on the three seed models.
|
| 181 |
# make bench -> train split (in-sample; labelled as such)
|
| 182 |
# make bench-heldout -> held-out split (the honest headline number)
|
|
|
|
| 186 |
./build/syfox bench --model model-game --split train | tee build/bench-game.json
|
| 187 |
./build/syfox bench --model model-guard --split train | tee build/bench-guard.json
|
| 188 |
|
| 189 |
+
# v3.6.0 measured head-to-head vs JEV AI on JEV's published axes
|
| 190 |
+
# (runs the parity bench JSON through tools/jev_bench.py; writes
|
| 191 |
+
# build/jev_comparison.json).
|
| 192 |
+
jev-compare: bench
|
| 193 |
+
python3 tools/jev_bench.py
|
| 194 |
+
|
| 195 |
bench-heldout: build/syfox
|
| 196 |
./build/syfox bench --model model-tickets --split heldout | tee build/bench-heldout-tickets.json
|
| 197 |
./build/syfox bench --model model-game --split heldout | tee build/bench-heldout-game.json
|
|
|
|
| 216 |
clean:
|
| 217 |
rm -rf build
|
| 218 |
|
| 219 |
+
.PHONY: all models models-augmented models-vast models-vast-full models-multilingual bench-multilingual typos bench-extra heldout-gate test bench bench-heldout jev-compare coverage demo serve omp adv-big throughput density clean ci readout-silence jas-test
|
| 220 |
|
| 221 |
# ---------------------------------------------------------------------------
|
| 222 |
# v3 Milestone 1 — big-corpus models (data/big, 70/15/15 splits).
|
|
|
|
| 356 |
@ls -d model-*-big-* 2>/dev/null | while read d; do \
|
| 357 |
./build/syfox stats --model "$$d" | python3 -c "import json,sys; d=json.load(sys.stdin); print('%6d nodes %7d lanes density=%.5f degree=%.2f %s' % (d.get('nodes',0), d.get('lanes',0), d.get('fabric_density',0), d.get('mean_out_degree',0), sys.argv[1]))" "$$d"; \
|
| 358 |
done
|
| 359 |
+
giant-fetch:
|
| 360 |
+
python3 tools/hf_fetch.py
|
| 361 |
+
|
| 362 |
+
giant-prepare:
|
| 363 |
+
python3 tools/giant_prepare.py
|
| 364 |
+
|
| 365 |
+
giant-chunks:
|
| 366 |
+
mkdir -p data/giant/chunks
|
| 367 |
+
split -n l/12 -d -a 2 data/giant/train.jsonl data/giant/chunks/chunk_ --additional-suffix=.jsonl
|
| 368 |
+
|
| 369 |
+
# -- v3.2 semantic layer: dedicated bank77 fabric + 16-domain router ---------
|
| 370 |
+
# Dedicated high-cardinality substrate: opaque anchors, empty instructions
|
| 371 |
+
# (the three RCA fixes), PLUS the v3.2 semantic field, context-sensitive
|
| 372 |
+
# lanes, retrieval memories and the (gate-off) semantic hierarchy.
|
| 373 |
+
b77-hier-data:
|
| 374 |
+
python3 tools/bank77_hier.py
|
| 375 |
+
|
| 376 |
+
b77-sem: build/syfox b77-hier-data
|
| 377 |
+
bash scripts/b77_train_chunked.sh 0 11
|
| 378 |
+
cp data/bank77_hierarchy.json model-b77-sem/hierarchy.json
|
| 379 |
+
cp data/bank77_memories.jsonl model-b77-sem/memories.jsonl
|
| 380 |
+
./build/syfox calibrate --model model-b77-sem --examples data/bank77_cal.jsonl
|
| 381 |
+
|
| 382 |
+
b77-sem-bench: build/syfox
|
| 383 |
+
./build/syfox bench --model model-b77-sem --eval data/bank77_cal.jsonl --energy-norm --replays 1 --latency-reps 1
|
| 384 |
+
|
| 385 |
+
b77-sem-hidden: build/syfox
|
| 386 |
+
./build/syfox bench --model model-b77-sem --eval data/bank77_hidden.jsonl --energy-norm --replays 1 --latency-reps 2
|
| 387 |
+
|
| 388 |
+
# Two-stage physics router: small dedicated fabric (one anchor per domain),
|
| 389 |
+
# trained on router-question-only rows; decide --router model-router16 routes
|
| 390 |
+
# into the mapped domain fabric (router.json holds anchors + models).
|
| 391 |
+
router-data:
|
| 392 |
+
python3 tools/router_prepare.py
|
| 393 |
+
|
| 394 |
+
router16: build/syfox router-data
|
| 395 |
+
./build/syfox learn --model model-router16 --examples data/router16_train.jsonl --epochs 3
|
| 396 |
+
cp data/router16_router.json model-router16/router.json
|
| 397 |
+
./build/syfox calibrate --model model-router16 --examples data/router16_cal.jsonl
|
| 398 |
+
|
| 399 |
+
router16-bench: build/syfox
|
| 400 |
+
./build/syfox bench --model model-router16 --eval data/router16_cal.jsonl --energy-norm --replays 1 --latency-reps 1
|
| 401 |
+
|
| 402 |
+
# Zero-shot probe suite (email/sms spam on the tickets fabric, snake +
|
| 403 |
+
# tic-tac-toe on the giant fabric), plain vs semantic rebuilds.
|
| 404 |
+
zeroshot-sem: build/rebuild_sem
|
| 405 |
+
./build/rebuild_sem model-game-big-latin model-game-big-latin-sem
|
| 406 |
+
./build/rebuild_sem model-tickets-big-latin model-tickets-big-latin-sem
|
| 407 |
+
./build/rebuild_sem model-giant-latin model-giant-latin-sem
|
| 408 |
+
|
| 409 |
+
zeroshot: build/syfox
|
| 410 |
+
python3 tools/zeroshot_suite.py
|
| 411 |
+
|
| 412 |
+
build/rebuild_sem: src/rebuild_sem.cpp $(CORE_HDRS)
|
| 413 |
+
$(CXX) $(CXXFLAGS) -fopenmp -I. src/rebuild_sem.cpp -o build/rebuild_sem
|
| 414 |
+
|
| 415 |
+
# --- v3.2.1 CI gate: the three bug-fix regressions ---------------------------
|
| 416 |
+
# Runs the unit suite, the ablation kill-switch distinctness check on the
|
| 417 |
+
# dedicated bank77 fabric, and the two-stage router end-to-end. Every step
|
| 418 |
+
# exits non-zero on regression, so `make ci` is the pre-commit gate.
|
| 419 |
+
ci: build/syfox test
|
| 420 |
+
@# v3.6.0 BUGFIX: the router/ablation gates need model-router16,
|
| 421 |
+
@# model-b77-sem and data/bank77_cal.jsonl — all gitignored (rebuild
|
| 422 |
+
@# locally with make b77-sem router16). On a fresh clone they are SKIPPED
|
| 423 |
+
@# loudly instead of failing the whole gate; the core gates below always run.
|
| 424 |
+
@if [ -d model-router16 ] && [ -d model-b77-sem ] && [ -f data/bank77_cal.jsonl ]; then \
|
| 425 |
+
./build/syfox decide --router model-router16 --model model-b77-sem \
|
| 426 |
+
--energy-norm --state "Why am I missing my refund" \
|
| 427 |
+
--questions '{"intent":{"type":"choice","instructions":"","criteria":{"c00":"refund in my account","c33":"money back","c61":"app crash"}}}' \
|
| 428 |
+
| python3 tools/assert_route.py && \
|
| 429 |
+
python3 tools/ablation_suite.py --model model-b77-sem \
|
| 430 |
+
--eval data/bank77_cal.jsonl --limit 40 --energy-norm || exit 1; \
|
| 431 |
+
else \
|
| 432 |
+
echo "SKIP route+ablation gates: model-router16 / model-b77-sem / bank77 data absent (gitignored; rebuild with make b77-sem router16)"; \
|
| 433 |
+
fi
|
| 434 |
+
bash tests/readout_silence_test.sh
|
| 435 |
+
bash tests/jas_test.sh
|
engine/build/libsyfox_core.so
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7ecb7c2ac7bc1d7f044f6daa0eb82af988013a7c64ec898ad3abaead3bb4995f
|
| 3 |
+
size 533848
|
engine/build/model-pretrain-test/calibration.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"choice_temperature":1,"fitted":false,"noul_a":6,"noul_b":-3,"rows":0,"score_temperature":1}
|
engine/build/model-pretrain-test/conflicts.jsonl
ADDED
|
File without changes
|
engine/build/model-pretrain-test/lessons_index.jsonl
ADDED
|
File without changes
|
engine/build/model-pretrain-test/meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"contradictions":0,"core":"si-substrate","df_lessons":12,"df_nodes":21,"distvec":false,"distvec_dims":0,"engine":"syfox","evidence_records":0,"lane_contexts":0,"lanes":150,"nodes":21,"retrieval_memories":0,"sem_edges":8,"semantics":true,"teach_events":0,"version":"3.9.1"}
|
engine/build/model-pretrain-test/meta_rules.txt
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
M2 1
|
| 2 |
+
engine 1 10
|
| 3 |
+
rule transitive_is_a 0 0 0 1
|
| 4 |
+
rule modus_ponens 2 2 2 1
|
| 5 |
+
rule implies_chain 2 2 2 1
|
| 6 |
+
rule causes_chain 5 5 5 1
|
| 7 |
+
rule class_has_flows_down 0 1 1 1
|
| 8 |
+
rule class_causes_flows_down 0 5 5 1
|
| 9 |
+
rule contrapositive 2 6 6 1
|
| 10 |
+
rule disjunction_elimination 7 2 2 1
|
| 11 |
+
rule schematic_generalization 0 1 1 1
|
| 12 |
+
rule structural_analogy 0 0 0 1
|
| 13 |
+
think 0 0 0
|
engine/build/model-pretrain-test/substrate.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3c683aaba5a5d822b5fb206e5cc71437724e1cdb6be807d21ea5257c89a82502
|
| 3 |
+
size 7912
|
engine/build/rebuild_sem
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:367e47172f934eddd7ab57690b318a057088269783e9e7bf34aef3ecb2661377
|
| 3 |
+
size 366296
|
engine/build/syfox
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aba3f0d394f44008ef95d6578fa05d9cc4b89565912bfc5145e04732d6e5d86a
|
| 3 |
+
size 1653152
|
engine/build/syfox-test
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:969d3c145557d863e813ec7d580bda62130c98daa6c01968ed2483003ea194cd
|
| 3 |
+
size 1585712
|
engine/build/test_distvec.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:75e69fb6af4a4411dfd853c48a0e59f5874de5b91360b411583ddac5d3bd64b3
|
| 3 |
+
size 888
|
engine/build/test_m3_model/calibration.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"choice_temperature":1,"fitted":false,"noul_a":6,"noul_b":-3,"rows":0,"score_temperature":1}
|
engine/build/test_m3_model/conflicts.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"context":"persist-probe","instructions":"route the ticket","outcome_new":"billing payment team","outcome_old":"technical hardware team","seq_new":2,"seq_old":1,"state":"laptop screen flickers on lid open","state_hash_hex":"59a275c131648627","type":"contradiction"}
|
engine/build/test_m3_model/lessons_index.jsonl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"outcome":"billing payment team","seq":2,"state_hash_hex":"44825c2cf4dcd777"}
|
engine/build/test_m3_model/meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"contradictions":1,"core":"si-substrate","df_lessons":2,"df_nodes":17,"distvec":false,"distvec_dims":0,"engine":"syfox","evidence_records":45,"lane_contexts":9,"lanes":186,"nodes":22,"retrieval_memories":0,"sem_edges":22,"semantics":true,"teach_events":2,"version":"3.9.1"}
|
engine/build/test_m3_model/meta_rules.txt
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
M2 1
|
| 2 |
+
engine 1 10
|
| 3 |
+
rule transitive_is_a 0 0 0 1
|
| 4 |
+
rule modus_ponens 2 2 2 1
|
| 5 |
+
rule implies_chain 2 2 2 1
|
| 6 |
+
rule causes_chain 5 5 5 1
|
| 7 |
+
rule class_has_flows_down 0 1 1 1
|
| 8 |
+
rule class_causes_flows_down 0 5 5 1
|
| 9 |
+
rule contrapositive 2 6 6 1
|
| 10 |
+
rule disjunction_elimination 7 2 2 1
|
| 11 |
+
rule schematic_generalization 0 1 1 1
|
| 12 |
+
rule structural_analogy 0 0 0 1
|
| 13 |
+
think 0 0 0
|
engine/build/test_m3_model/substrate.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2e68c550342c7e6a649f92018440dde5a3e1d338c423f020b863b019a1be88e2
|
| 3 |
+
size 11237
|
engine/build/test_nodistvec.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1251f25b4c84cab98439a5e9b95576ddf464e1a554b05ddc21480eb357d4df88
|
| 3 |
+
size 160
|
engine/build/test_pretrain_corpus.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
the customer wants a refund for the duplicate charge
|
| 2 |
+
the customer reported the parcel never arrived
|
| 3 |
+
the invoice was charged twice on the card
|
| 4 |
+
the delivery is late and the customer is angry
|
engine/build/test_provenance.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1be5688113526c9ac3002f31cad6335a1ba61c578883f8d68a99f3e135e2bc0f
|
| 3 |
+
size 951
|
engine/build/test_reason.axioms
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
socrates is_a man
|
| 2 |
+
man is_a mortal
|
| 3 |
+
whale is_a mammal
|
| 4 |
+
mammal has fur
|
| 5 |
+
whale not stone
|
engine/build/test_v1.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:79915557e6cc554feecd02455d89c25a551412e4321d82c823120f66984aceb2
|
| 3 |
+
size 50
|
engine/build/test_v321_ablation/calibration.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"choice_temperature":1,"fitted":false,"noul_a":6,"noul_b":-3,"rows":0,"score_temperature":1}
|
engine/build/test_v321_ablation/conflicts.jsonl
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"context":"default","instructions":"","outcome_new":"c01 c01","outcome_old":"h_card","seq_new":5,"seq_old":1,"state":"card never arrived when ordered","state_hash_hex":"97a3dd2aa3f8c5f2","type":"contradiction"}
|
| 2 |
+
{"context":"default","instructions":"","outcome_new":"c02 c02","outcome_old":"h_card","seq_new":6,"seq_old":2,"state":"card stuck in the atm machine","state_hash_hex":"7770f98afb953971","type":"contradiction"}
|
| 3 |
+
{"context":"default","instructions":"","outcome_new":"c03 c03","outcome_old":"h_transfer","seq_new":7,"seq_old":3,"state":"money transfer not received yet","state_hash_hex":"850bc439490cacd4","type":"contradiction"}
|
| 4 |
+
{"context":"default","instructions":"","outcome_new":"c04 c04","outcome_old":"h_transfer","seq_new":8,"seq_old":4,"state":"transfer to wrong account made","state_hash_hex":"5553daeb35517527","type":"contradiction"}
|
engine/build/test_v321_ablation/hierarchy.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"intents":{"c01":"h_card","c02":"h_card","c03":"h_transfer","c04":"h_transfer"},"categories":{"h_card":{"criteria":"card atm stuck arrive"},"h_transfer":{"criteria":"transfer account money wrong"}},"floor":0.35}
|
engine/build/test_v321_ablation/lessons_index.jsonl
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"outcome":"c01 c01","seq":9,"state_hash_hex":"0c6d159e20d690e5"}
|
| 2 |
+
{"outcome":"h_transfer","seq":13,"state_hash_hex":"19981bfafae1dbc5"}
|
| 3 |
+
{"outcome":"h_card","seq":14,"state_hash_hex":"4d89a0867b2359f0"}
|
| 4 |
+
{"outcome":"c04 c04","seq":8,"state_hash_hex":"5553daeb35517527"}
|
| 5 |
+
{"outcome":"c02 c02","seq":10,"state_hash_hex":"64ee00d1fa869072"}
|
| 6 |
+
{"outcome":"c02 c02","seq":6,"state_hash_hex":"7770f98afb953971"}
|
| 7 |
+
{"outcome":"c03 c03","seq":7,"state_hash_hex":"850bc439490cacd4"}
|
| 8 |
+
{"outcome":"c03 c03","seq":11,"state_hash_hex":"89f63dd0dcde55fb"}
|
| 9 |
+
{"outcome":"c01 c01","seq":5,"state_hash_hex":"97a3dd2aa3f8c5f2"}
|
| 10 |
+
{"outcome":"c04 c04","seq":12,"state_hash_hex":"e0a357eae2ed8da0"}
|
engine/build/test_v321_ablation/memories.jsonl
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"label":"c01","state":"card never arrived when ordered"}
|
| 2 |
+
{"label":"c02","state":"atm swallowed my card"}
|
| 3 |
+
{"label":"c03","state":"money transfer not received yet"}
|
| 4 |
+
{"label":"c04","state":"transfer to wrong account made"}
|
engine/build/test_v321_ablation/meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"contradictions":4,"core":"si-substrate","df_lessons":14,"df_nodes":81,"distvec":false,"distvec_dims":0,"engine":"syfox","evidence_records":61,"lane_contexts":36,"lanes":320,"nodes":85,"retrieval_memories":0,"sem_edges":394,"semantics":true,"teach_events":14,"version":"3.9.1"}
|
engine/build/test_v321_ablation/meta_rules.txt
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
M2 1
|
| 2 |
+
engine 1 10
|
| 3 |
+
rule transitive_is_a 0 0 0 1
|
| 4 |
+
rule modus_ponens 2 2 2 1
|
| 5 |
+
rule implies_chain 2 2 2 1
|
| 6 |
+
rule causes_chain 5 5 5 1
|
| 7 |
+
rule class_has_flows_down 0 1 1 1
|
| 8 |
+
rule class_causes_flows_down 0 5 5 1
|
| 9 |
+
rule contrapositive 2 6 6 1
|
| 10 |
+
rule disjunction_elimination 7 2 2 1
|
| 11 |
+
rule schematic_generalization 0 1 1 1
|
| 12 |
+
rule structural_analogy 0 0 0 1
|
| 13 |
+
think 0 0 0
|
engine/build/test_v321_ablation/substrate.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5027fa7744d21386a2ef4b33f9cc0fba6c9ea3ec3ce47af9244b41ab1091544c
|
| 3 |
+
size 34991
|
engine/build/test_v32_hier/calibration.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"choice_temperature":1,"fitted":false,"noul_a":6,"noul_b":-3,"rows":0,"score_temperature":1}
|
engine/build/test_v32_hier/conflicts.jsonl
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"context":"default","instructions":"","outcome_new":"c01 c01","outcome_old":"h_card","seq_new":5,"seq_old":1,"state":"card never arrived when ordered","state_hash_hex":"97a3dd2aa3f8c5f2","type":"contradiction"}
|
| 2 |
+
{"context":"default","instructions":"","outcome_new":"c02 c02","outcome_old":"h_card","seq_new":6,"seq_old":2,"state":"card stuck in the atm machine","state_hash_hex":"7770f98afb953971","type":"contradiction"}
|
| 3 |
+
{"context":"default","instructions":"","outcome_new":"c03 c03","outcome_old":"h_transfer","seq_new":7,"seq_old":3,"state":"money transfer not received yet","state_hash_hex":"850bc439490cacd4","type":"contradiction"}
|
| 4 |
+
{"context":"default","instructions":"","outcome_new":"c04 c04","outcome_old":"h_transfer","seq_new":8,"seq_old":4,"state":"transfer to wrong account made","state_hash_hex":"5553daeb35517527","type":"contradiction"}
|
engine/build/test_v32_hier/hierarchy.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"intents":{"c01":"h_card","c02":"h_card","c03":"h_transfer","c04":"h_transfer"},"categories":{"h_card":{"criteria":"card atm stuck arrive"},"h_transfer":{"criteria":"transfer account money wrong"}},"floor":0.35}
|
engine/build/test_v32_hier/lessons_index.jsonl
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"outcome":"c04 c04","seq":8,"state_hash_hex":"5553daeb35517527"}
|
| 2 |
+
{"outcome":"c02 c02","seq":6,"state_hash_hex":"7770f98afb953971"}
|
| 3 |
+
{"outcome":"c03 c03","seq":7,"state_hash_hex":"850bc439490cacd4"}
|
| 4 |
+
{"outcome":"c01 c01","seq":5,"state_hash_hex":"97a3dd2aa3f8c5f2"}
|
engine/build/test_v32_hier/meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"contradictions":4,"core":"si-substrate","df_lessons":8,"df_nodes":36,"distvec":false,"distvec_dims":0,"engine":"syfox","evidence_records":40,"lane_contexts":21,"lanes":168,"nodes":40,"retrieval_memories":0,"sem_edges":157,"semantics":true,"teach_events":8,"version":"3.9.1"}
|
engine/build/test_v32_hier/meta_rules.txt
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
M2 1
|
| 2 |
+
engine 1 10
|
| 3 |
+
rule transitive_is_a 0 0 0 1
|
| 4 |
+
rule modus_ponens 2 2 2 1
|
| 5 |
+
rule implies_chain 2 2 2 1
|
| 6 |
+
rule causes_chain 5 5 5 1
|
| 7 |
+
rule class_has_flows_down 0 1 1 1
|
| 8 |
+
rule class_causes_flows_down 0 5 5 1
|
| 9 |
+
rule contrapositive 2 6 6 1
|
| 10 |
+
rule disjunction_elimination 7 2 2 1
|
| 11 |
+
rule schematic_generalization 0 1 1 1
|
| 12 |
+
rule structural_analogy 0 0 0 1
|
| 13 |
+
think 0 0 0
|