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
Eval Results (legacy)
Upload folder using huggingface_hub
Browse files- .gitattributes +17 -2
- .gitignore +2 -2
- CHANGELOG.md +1019 -0
- LICENSE +0 -3
- README.md +192 -366
- build/libsyfox_core.so +2 -2
- config.json +167 -0
- data/v401_freshclone_tables.json +140 -0
- datasets/MANIFEST.json +101 -68
- datasets/novel_probes/RESULTS.json +38 -42
- datasets/schemas.json +200 -200
- docs/ENGINE_PORT.md +37 -67
- docs/PROBING.md +3 -3
- docs/RETEST_v392.md +127 -0
- docs/RETEST_v402.md +95 -0
- docs/ZEROSHOOT.md +1 -0
- engine/Makefile +19 -14
- engine/core/syfox.hpp +7 -1
- engine/src/syfox_cli.cpp +19 -1
- model/agnews/calibration.json +1 -1
- model/agnews/substrate.bin +2 -2
- model/b77-sem/calibration.json +1 -1
- model/b77-sem/conflicts.jsonl +3 -0
- model/b77-sem/hierarchy.json +1 -2
- model/b77-sem/lessons_index.jsonl +0 -0
- model/b77-sem/memories.jsonl +254 -254
- model/b77-sem/meta.json +1 -1
- model/b77-sem/substrate.bin +2 -2
- model/giant-bengali/calibration.json +1 -1
- model/giant-bengali/meta.json +1 -1
- model/giant-bengali/substrate.bin +2 -2
- model/giant-cyrillic/calibration.json +1 -1
- model/giant-cyrillic/meta.json +1 -1
- model/giant-cyrillic/substrate.bin +2 -2
- model/giant-devanagari/calibration.json +1 -1
- model/giant-devanagari/meta.json +1 -1
- model/giant-devanagari/substrate.bin +2 -2
- model/giant-latin/calibration.json +1 -1
- model/giant-latin/meta.json +1 -1
- model/giant-latin/physics.json +1 -1
- model/giant-latin/substrate.bin +1 -1
- model/router16/calibration.json +1 -1
- model/router16/meta.json +1 -1
- model/router16/substrate.bin +1 -1
- server/app.py +47 -25
.gitattributes
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# HuggingFace LFS policy — SyFox model repo
|
| 2 |
+
# Fabrics are binary substrates (multi-MB to multi-GB); the Hub requires
|
| 3 |
+
# LFS for files over 10 MB. `hf upload` handles this automatically; for a
|
| 4 |
+
# plain git push, install git-lfs and let these patterns apply.
|
| 5 |
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.so filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
# large text artifacts
|
| 12 |
+
lessons_index.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
# small text stays plain git
|
| 14 |
+
*.md text
|
| 15 |
+
*.json text
|
| 16 |
+
*.py text
|
| 17 |
+
*.hpp text
|
| 18 |
+
*.cpp text
|
.gitignore
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
|
|
|
|
|
| 1 |
__pycache__/
|
| 2 |
*.pyc
|
| 3 |
-
build/
|
| 4 |
-
hf_cache/
|
|
|
|
| 1 |
+
# engine build artifacts (the Dockerfile and `make sync-so` create these)
|
| 2 |
+
engine/build/
|
| 3 |
__pycache__/
|
| 4 |
*.pyc
|
|
|
|
|
|
CHANGELOG.md
CHANGED
|
@@ -1,3 +1,1022 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
## v3.2.0 — the semantic layer (Stages 1-4), retrieval by default, the two-stage physics router, the dedicated bank77 fabric
|
| 2 |
|
| 3 |
**The semantic field (core, deterministic, no ML).** Every concept node
|
|
|
|
| 1 |
+
## v4.0.2 — the bank77 bigram retrain: hidden 0.158 -> 0.629, handmade 0.291 -> 0.432
|
| 2 |
+
|
| 3 |
+
The dedicated bank77 fabric was a v3.2.0 build that PREDATED the ordered
|
| 4 |
+
bigram lanes (MRS §4b.1-4b.2, shipped v3.6: "escape the
|
| 5 |
+
multiset-invariance theorem — a token bag cannot tell 'a beats b' from
|
| 6 |
+
'b beats a'") and the document-frequency rarity weighting (CMD §2.2,
|
| 7 |
+
shipped v3.6). Banking77 is the exact failure shape those mechanisms
|
| 8 |
+
fix: 77 fine-grained intents full of order-sensitive distinctions
|
| 9 |
+
("top up failed" vs "pending top up", "card arrival" vs "arrived card").
|
| 10 |
+
Retrained on the v4.0.1 engine (bigrams + IDF default-on at learn):
|
| 11 |
+
19,707 nodes / 1,383,120 lanes / 54,000 lessons, vs the v3.2.0 fabric's
|
| 12 |
+
1,648 / 217,729. 36 chunks x 500 rows x 3 epochs — the 1500-row chunk
|
| 13 |
+
size OOMs the 4GB sandbox since bigrams became default (measured: the
|
| 14 |
+
fabric reaches 9,212 nodes / 548k lanes by chunk 4 and the learn dies
|
| 15 |
+
silently); ROWS_PER_CHUNK fixed 1500 -> 500 in
|
| 16 |
+
scripts/b77_train_chunked.sh, same rows/order/epochs.
|
| 17 |
+
|
| 18 |
+
MEASURED (CAL selects, hidden scored once, handmade = the
|
| 19 |
+
anti-contamination check): CAL d0.02 mix0.3 0.612 (d0.45: 0.458);
|
| 20 |
+
HIDDEN 0.629 (n=2,801 answered, defer 0.091, ECE 0.077). The bank77
|
| 21 |
+
ladder: 0.158 (shipped v3.2.0) -> 0.275 (repair + AFR d0.45) -> 0.460
|
| 22 |
+
(CAL-selected d0.02) -> 0.629 (bigram retrain). HANDMADE bank77
|
| 23 |
+
0.103 -> 0.294 — the bigram fabric GENERALISES (handmade probes are
|
| 24 |
+
outside the training vocabulary; the gain is not memorisation).
|
| 25 |
+
HANDMADE TOTAL 0.291 -> 0.358 -> 0.385 -> 0.432 (+48% relative).
|
| 26 |
+
|
| 27 |
+
COMPETITOR CONTEXT (all third-party published numbers, sources in the
|
| 28 |
+
Jev reference block): Jev banking77 0.870, Laya 0.425 (its own model
|
| 29 |
+
card: 77 options share one token budget, 3-4 tokens each). SyFox at
|
| 30 |
+
0.629 is +20 over Laya and -24 vs Jev (was -71 at baseline). Jev
|
| 31 |
+
ag_news 0.91 vs SyFox 0.792 remains the other open gap (the giant's
|
| 32 |
+
shared-fabric agnews anchors; per-domain CAL confirms the composition
|
| 33 |
+
is already optimal there — closing it needs a dedicated agnews fabric,
|
| 34 |
+
the same move that just worked for bank77). SyFox leads on every other
|
| 35 |
+
measured axis: ECE 0.067-0.077 vs Jev 0.144-0.246 and Laya 0.466
|
| 36 |
+
pre-refit; latency <= 611 us vs 236-276 ms (Jev, third-party p50) and
|
| 37 |
+
39.5 ms (Laya on a T4); honest defer with reasons (OOD 100%) vs
|
| 38 |
+
confidence-only; bit-reproducibility CI-enforced; $0 local; unbounded
|
| 39 |
+
criteria maps (no 255-option cap, no option token budget).
|
| 40 |
+
|
| 41 |
+
make ci green end to end on the retrained fabric (route, ablation
|
| 42 |
+
distinctness, readout-silence, jas, fit-decide parity 2/2, handmade
|
| 43 |
+
gate TOTAL 0.432). VERSION 4.0.1 -> 4.0.2
|
| 44 |
+
|
| 45 |
+
## v4.0.1 — fresh-clone CI repairs + the verified handmade ladder (0.291 -> 0.358)
|
| 46 |
+
|
| 47 |
+
Four defects, all found by doing exactly what a fresh collaborator would
|
| 48 |
+
do: clone from Gitea and run `make ci` / `make b77-sem`.
|
| 49 |
+
|
| 50 |
+
1. `register` wrote `impossibility.json` into a model directory that did
|
| 51 |
+
not exist yet. On a fresh clone `tests/jas_test.sh` registers BEFORE
|
| 52 |
+
any `learn` has created the dir; the bare ofstream failed silently,
|
| 53 |
+
printed `persisted: null`, and exited 0 — the gate then reported
|
| 54 |
+
"impossibility.json missing" only on machines that had never built the
|
| 55 |
+
demo fabric (a second `make ci` passed, hiding the bug). FIXED:
|
| 56 |
+
`cmd_register` creates the dir first (same contract as `save_model`)
|
| 57 |
+
and exits non-zero, naming the path, when persistence still fails —
|
| 58 |
+
the honest-failure principle applied to writes.
|
| 59 |
+
2. `scripts/b77_train_chunked.sh` hardcoded `cd /home/z/my-project/syfox`.
|
| 60 |
+
FIXED: cd relative to the script (the `tests/*.sh` pattern).
|
| 61 |
+
3. The handmade gate defaulted to `datasets/schemas.json` — an HF-repo
|
| 62 |
+
layout path that does not exist on a fresh Gitea clone, so the gate
|
| 63 |
+
crashed the moment fabrics were rebuilt. FIXED: the TRAINING-TIME
|
| 64 |
+
schemas are committed at `data/giant/schemas.json`; the gate and the
|
| 65 |
+
Makefile now point there (the v3.9.2 lesson — criteria text is
|
| 66 |
+
injected energy, never regenerate it).
|
| 67 |
+
4. `VERSION` still said 3.9.1 while shipping the v4.0 readout (the
|
| 68 |
+
v3.9.3 and v4.0 commits never bumped it). The engine's self-report is
|
| 69 |
+
provenance written into every meta.json and bench report; now 4.0.1.
|
| 70 |
+
|
| 71 |
+
NEW TOOL: `tools/expand_slim_rows.py` — expands the shipped slim cal
|
| 72 |
+
splits (state/domain/labels) into full calibrate/bench rows using the
|
| 73 |
+
training-time schemas, so the shipped fabrics can be re-calibrated after
|
| 74 |
+
`repair-lanes` without re-downloading the 76k-row giant corpus.
|
| 75 |
+
|
| 76 |
+
THE VERIFIED LADDER (all numbers in `data/v401_freshclone_tables.json`):
|
| 77 |
+
shipped fabrics + legacy readout reproduce the v3.9.3 baseline EXACTLY
|
| 78 |
+
(handmade total 0.291; bank77 0.103, emotion 0.167, dbpedia 0.286);
|
| 79 |
+
after `repair-lanes` on all three fabrics (giant 1,330,812 lanes
|
| 80 |
+
revived, weight sum 681 -> 117,478; b77 159,449; router 43,117) and
|
| 81 |
+
re-calibration under the recorded v4.0 composition (energy-norm,
|
| 82 |
+
affinity mix 0.3; fit coverage 100% / 99.85% / 99.96%), the handmade
|
| 83 |
+
TOTAL moves 0.291 -> 0.358 (+6.7 points, +23% relative): bank77 0.176,
|
| 84 |
+
emotion 0.417, tickets_en 0.889, agnews 0.875, router 0.400. The one
|
| 85 |
+
regression is disclosed: dbpedia 0.286 -> 0.214. `make ci` is green end
|
| 86 |
+
to end with every gate armed (ablation distinctness 4/5 configs with
|
| 87 |
+
memories regenerated from the official PolyAI train carve — the HF model
|
| 88 |
+
dir omits `memories.jsonl`, which had left the retrieval switch inert).
|
| 89 |
+
|
| 90 |
+
THE CAL-SELECTION ROUND (same session, composition chosen on CAL only,
|
| 91 |
+
hidden scored once): diffusion 0.02 beats the 0.45 default on CAL for
|
| 92 |
+
b77-sem (0.447 vs 0.260) and giant-latin (0.718 vs 0.602); router16
|
| 93 |
+
keeps 0.45 (0.601 vs 0.581). Under the selected compositions: b77-sem
|
| 94 |
+
HIDDEN 0.460 (ECE 0.067, n=2,633 answered); giant-latin HIDDEN class
|
| 95 |
+
total 0.551 with tickets_en 0.962 / game 0.942 / enron 0.894 / hate
|
| 96 |
+
0.774 / agnews 0.792 / dbpedia 0.714, and the giant's OWN router
|
| 97 |
+
question recovers 0.254 -> 0.496 (e2e 0.153 -> 0.315 — the low
|
| 98 |
+
diffusion was what the smeared router readout needed). Handmade TOTAL
|
| 99 |
+
0.291 -> 0.358 -> 0.385 (+32% relative): bank77 0.191 (reproduces the
|
| 100 |
+
v4.0 published number exactly), tickets_en 9/9, polarity 4/4, dbpedia
|
| 101 |
+
0.429 (the d0.45 regression recovered, now above baseline), emotion
|
| 102 |
+
0.333, agnews 0.875, router 0.400; hate 0.500 -> 0.167 disclosed (the
|
| 103 |
+
per-domain diffusion trade-off, CAL chose for the fabric as a whole).
|
| 104 |
+
|
| 105 |
+
## v4.0 — the affinity field readout (AFR): measuring an anchor instead of retrieving one
|
| 106 |
+
|
| 107 |
+
A new READOUT, not a new fabric and not a new model. No neural network, no
|
| 108 |
+
training, no new corpus pass: every quantity AFR reads was already learned
|
| 109 |
+
by `hebbian_lesson`. It costs O(|lit| * degree) per question on one core,
|
| 110 |
+
and it is OFF by default so every pre-v4.0 fabric replays bit-identically.
|
| 111 |
+
|
| 112 |
+
THE DEFECT. Three measurements, on the shipped model and the v3.9.3 engine:
|
| 113 |
+
|
| 114 |
+
1. THE READOUT NEVER READS THE FABRIC'S STRONGEST SIGNAL. Every lesson
|
| 115 |
+
binds the state's tokens to the outcome anchor (outcome_text = the label
|
| 116 |
+
key + its description), so the fabric holds an explicit affinity
|
| 117 |
+
w(u, c) between a query-side token and a candidate anchor -- literally
|
| 118 |
+
"which intent did this word teach". The legacy readout never reads it:
|
| 119 |
+
Substrate::readout() sums the probe token's own energy plus a
|
| 120 |
+
weight-averaged neighbourhood, and the anchor's affinity enters only
|
| 121 |
+
indirectly, through whether a capped, decaying diffusion carried energy
|
| 122 |
+
to the anchor. One constant therefore has to serve both PRECISION (the
|
| 123 |
+
field must not smear onto wrong anchors) and REACH (the right anchor
|
| 124 |
+
must light up at all), and the two want opposite values -- measured: the
|
| 125 |
+
diffusion optimum is per-DOMAIN (tickets_en 0.45, agnews/dbpedia 0.02).
|
| 126 |
+
A constant that must be re-tuned per domain is a sign the readout is
|
| 127 |
+
asking the wrong question.
|
| 128 |
+
|
| 129 |
+
2. THE READOUT HAS NO NULL MODEL. A candidate's score is an unnormalised
|
| 130 |
+
SUM over its probe bag. A Banking77 description is 20 mined phrases --
|
| 131 |
+
~60 token occurrences -- most of them shared with other candidates
|
| 132 |
+
("not", "working", "the"). Shared words add a large common offset; the
|
| 133 |
+
one discriminative word is one term out of sixty. The mined phrases
|
| 134 |
+
make the sum a repetition-weighted VOTE, not a measurement.
|
| 135 |
+
|
| 136 |
+
3. THE CONSEQUENCE IS A RETRIEVAL SCORE, NOT A MEASUREMENT SCORE. Measured
|
| 137 |
+
on the repaired b77-sem fabric, query "the cash machine swallowed my
|
| 138 |
+
card and it never came back":
|
| 139 |
+
candidate[c04]=0.0933 ("cash withdrawal not working")
|
| 140 |
+
candidate[c19]=0.0919 ("card payment not working")
|
| 141 |
+
-- two intents differing by ONE word score within 1.5% of each other;
|
| 142 |
+
the decision was a coin flip. The fabric KNOWS that "card" belongs to
|
| 143 |
+
c19; the readout could not see it.
|
| 144 |
+
|
| 145 |
+
And the vocabulary was NOT the cause: 98.8% of the handmade Banking77
|
| 146 |
+
probe tokens (577/584) are already nodes. An OOV-first design would have
|
| 147 |
+
been the wrong fix for the measured failure.
|
| 148 |
+
|
| 149 |
+
THE MECHANISM. For the lit query tokens u with field energy E_u and the
|
| 150 |
+
candidate set C:
|
| 151 |
+
|
| 152 |
+
P(c|u) = w(u,c) / sum_{c' in C} w(u,c') posterior over C
|
| 153 |
+
P0(c) = mass(c) / sum_{c' in C} mass(c') a priori share of C
|
| 154 |
+
L(c) = sum_u E_u * [ P(c|u) - P0(c) ] the contrast
|
| 155 |
+
or, with --affinity-pmi, the log-odds form L(c) = sum_u E_u * log(P(c|u)/P0(c)).
|
| 156 |
+
|
| 157 |
+
A token that points at EVERY candidate cancels against the null model and
|
| 158 |
+
contributes nothing -- ubiquity stops being evidence. A token that points
|
| 159 |
+
at ONE candidate contributes strongly, positive for that candidate and
|
| 160 |
+
negative for the rest, so discrimination becomes sign-carrying instead of
|
| 161 |
+
drowned in a shared offset. mass(c) is the anchor's own total lane weight:
|
| 162 |
+
the prior is measured, not assumed.
|
| 163 |
+
|
| 164 |
+
The channel is blended with the legacy readout:
|
| 165 |
+
score(c) = (1-mix) * legacy(c)/max|legacy| + mix * L(c)/max|L|
|
| 166 |
+
with mix defaulting to 0 (legacy, bit-identical). The measured optimum is a
|
| 167 |
+
SMALL dose -- mix = 0.3 wins on every fabric and every diffusion tested.
|
| 168 |
+
|
| 169 |
+
This is the FIRST-ORDER RESOLVENT of the propagation the settle simulates:
|
| 170 |
+
the same operator, read exactly instead of approximated by a capped and
|
| 171 |
+
smeared diffusion. In the literature it is the same object as Kanerva's SDM
|
| 172 |
+
read out by a kernel/least-squares solve (Iatropoulos et al., "Kernel Memory
|
| 173 |
+
Networks", NeurIPS 2022), which likewise replaces a hand-tuned decay
|
| 174 |
+
schedule with a closed-form retrieval and a capacity law; and its ORDER
|
| 175 |
+
counterpart is Plate's Holographic Reduced Representations (IEEE TNN 1995),
|
| 176 |
+
whose crosstalk failure mode is cured by projecting the retrieved trace onto
|
| 177 |
+
the span of the known anchors -- which is what the candidate set does here.
|
| 178 |
+
The non-neural char n-gram representation that would remove the dark node
|
| 179 |
+
STRUCTURALLY is Schutze, Adel & Asgari, "Nonsymbolic Text Representation",
|
| 180 |
+
EACL 2017 (char n-gram counts -> SVD -> summed; no gradient training).
|
| 181 |
+
|
| 182 |
+
THE HONEST-SILENCE FLOOR, RESTATED. kUnknownCandidateFloor defers when the
|
| 183 |
+
settled field carries no energy on any candidate -- which in the
|
| 184 |
+
novel-wording case is exactly the situation the affinity channel exists to
|
| 185 |
+
rescue. The floor now fires only when NEITHER channel carries evidence,
|
| 186 |
+
and is still evaluated on the legacy channel's maximum, so its meaning (it
|
| 187 |
+
measures the FIELD) is unchanged.
|
| 188 |
+
|
| 189 |
+
MEASURED -- router16 (16 intents), CAL split (12,593 rows):
|
| 190 |
+
0.45 0.0 0.5060 0.0460 0.267 (4/15)
|
| 191 |
+
0.45 0.3 0.5850 0.0610 0.400 (6/15) <- +7.9 points
|
| 192 |
+
0.02 0.0 0.5290 0.0920 0.133 (2/15)
|
| 193 |
+
0.02 0.3 0.5600 0.1030 0.400 (6/15)
|
| 194 |
+
|
| 195 |
+
MEASURED -- giant-latin, per-domain HIDDEN splits (one fabric, 16 domains):
|
| 196 |
+
domain classes legacy d0.45 AFR d0.45 legacy d0.02 AFR d0.02
|
| 197 |
+
agnews 4 0.3730 0.7520 0.6790 0.7740
|
| 198 |
+
emotion 6 0.1960 0.3930 0.2590 0.3980
|
| 199 |
+
polarity 2 0.5440 0.5960 0.6380 0.6030
|
| 200 |
+
dbpedia 14 0.5530 0.7970 0.7800 0.7660
|
| 201 |
+
tickets_en 3 0.4480 0.9570 0.5660 0.9620
|
| 202 |
+
|
| 203 |
+
The round-2 tickets_en regression (0.9040 -> 0.4480 after the lane
|
| 204 |
+
repair on the shared fabric) is not merely undone: the SAME repaired
|
| 205 |
+
fabric scores 0.9570 with the affinity readout, and 0.9620 at diffusion
|
| 206 |
+
0.02 -- above the SHIPPED model's 0.9040. And the per-domain diffusion
|
| 207 |
+
problem disappears with it: the handmade OOD number is 0.176 at EVERY
|
| 208 |
+
diffusion tested, because the affinity channel reads the evidence instead
|
| 209 |
+
of asking a smeared field to carry it.
|
| 210 |
+
|
| 211 |
+
MEASURED -- b77-sem (Banking77), CAL split selects, hidden scored once:
|
| 212 |
+
|
| 213 |
+
diffusion mix CAL acc CAL ECE handmade(OOD)
|
| 214 |
+
0.45 0.0 0.2490 0.2070 0.059 (4/68)
|
| 215 |
+
0.45 0.3 0.2510 0.0820 0.176 (12/68)
|
| 216 |
+
0.10 0.0 0.4170 0.2020 0.059 (4/68)
|
| 217 |
+
0.10 0.3 0.4230 0.0890 0.176 (12/68)
|
| 218 |
+
0.02 0.0 0.4340 0.2070 0.044 (3/68)
|
| 219 |
+
0.02 0.3 0.4560 0.0740 0.176 (12/68)
|
| 220 |
+
|
| 221 |
+
HIDDEN (3,080 rows), the selected configuration and the baseline only:
|
| 222 |
+
0.45 0.0 0.2850 0.2330
|
| 223 |
+
0.45 0.3 0.2750 0.0680
|
| 224 |
+
0.02 0.0 0.4660 0.2200
|
| 225 |
+
0.02 0.3 0.4800 0.0460 <- selected on CAL
|
| 226 |
+
|
| 227 |
+
So at the selected diffusion: accuracy 0.4660 -> 0.4800 on the hidden
|
| 228 |
+
split, ECE 0.2200 -> 0.0460 (4.8x better). mix = 0.3 improves CAL accuracy
|
| 229 |
+
at EVERY diffusion tested and never hurts ECE.
|
| 230 |
+
|
| 231 |
+
THE AUTHORITATIVE OUT-OF-DISTRIBUTION A/B (both fabrics calibrated by the
|
| 232 |
+
same build, scored through the same path, corrected probe labels):
|
| 233 |
+
b77-sem handmade (68): legacy 0.132 (9/68) -> AFR 0.191 (13/68)
|
| 234 |
+
router16 handmade (15): legacy 0.267 (4/15) -> AFR 0.467 (7/15)
|
| 235 |
+
and the DIFFUSION-INDEPENDENCE, which is the architectural claim: across a
|
| 236 |
+
22x range of the diffusion constant the affinity readout's handmade accuracy
|
| 237 |
+
moves by 0.030 (0.176 @ 0.45, 0.206 @ 0.10, 0.191 @ 0.02), where the
|
| 238 |
+
legacy readout's optimum was PER DOMAIN (tickets_en 0.45, agnews/dbpedia
|
| 239 |
+
0.02). The readout reads the evidence instead of asking a smeared field to
|
| 240 |
+
carry it.
|
| 241 |
+
|
| 242 |
+
The PMI (log-odds) form was also measured and is WORSE than the linear
|
| 243 |
+
contrast (CAL acc 0.194 vs 0.221 at mix 0.5/diffusion 0.45; OOD 0.132 vs
|
| 244 |
+
0.176): normalising over a 77-way candidate set makes the log-odds
|
| 245 |
+
variance-heavy. Shipped: the linear form; --affinity-pmi remains available.
|
| 246 |
+
|
| 247 |
+
THE ORDER CHANNEL. The lit set also carries the state's bigram nodes when
|
| 248 |
+
the fabric has them; bigram nodes are bound to the outcome anchors by the
|
| 249 |
+
same Hebbian lesson, so their affinity to a candidate is an ORDERED
|
| 250 |
+
relation -- CMD 2.5's escape, carried into the affinity channel. On the
|
| 251 |
+
shipped b77-sem (learned before bigram lanes existed) the extension is a
|
| 252 |
+
verified no-op: the numbers are bit-identical with and without it.
|
| 253 |
+
|
| 254 |
+
THE PER-CANDIDATE-COUNT TEMPERATURE (v4.0, second half). The giant
|
| 255 |
+
fabric's ECE exposed a second, independent defect: ONE softmax temperature
|
| 256 |
+
cannot serve candidate sets of different sizes. A 14-way question's score
|
| 257 |
+
spread is not a 2-way question's spread, and the shared fabric's single
|
| 258 |
+
fitted temperature left polarity at ECE 0.395 while dbpedia sat at 0.064 in
|
| 259 |
+
the SAME fit. v4.0 therefore fits ONE temperature per distinct candidate
|
| 260 |
+
count -- the count is a property of the QUESTION, so it leaks nothing about
|
| 261 |
+
the label -- with the same 1-bit ECE selection guard and the same rows; a
|
| 262 |
+
count with fewer than 64 calibration rows keeps the global scalar. The table
|
| 263 |
+
persists in calibration.json (choice_temperature_by_count) and the decision
|
| 264 |
+
path reads it through choice_temperature_for(n). The argmax never moves.
|
| 265 |
+
MEASURED on the giant fabric (legacy readout, diffusion 0.45), ECE before
|
| 266 |
+
-> after the per-count temperature: agnews 0.2750 -> 0.0860, emotion
|
| 267 |
+
0.0780 -> 0.0240, polarity 0.1280 -> 0.0690, dbpedia 0.1650 -> 0.1330,
|
| 268 |
+
tickets_en 0.1100 -> 0.1050. The fitted table for that fabric:
|
| 269 |
+
{2: 1.666, 3: 0.470, 4: 2.105, 6: 11.314, 14: 0.749, 77: 0.068}.
|
| 270 |
+
|
| 271 |
+
THE READOUT MODE IS PART OF THE RECORDED COMPOSITION. physics.json now
|
| 272 |
+
carries affinity_mix and affinity_pmi, so a deployed model decides under the
|
| 273 |
+
readout its temperature was fitted for -- the fit==decide parity contract,
|
| 274 |
+
extended from the physics to the measurement. --affinity-mix still overrides
|
| 275 |
+
explicitly.
|
| 276 |
+
|
| 277 |
+
TWO CORRECTIONS FOUND WHILE MEASURING (both fixed, both disclosed):
|
| 278 |
+
1. A MISLABELLED PROBE IN THE HANDMADE SET. rt_01 ("he sank a curling
|
| 279 |
+
three-pointer in the fourth quarter") was labelled rt01 -- the BANKING
|
| 280 |
+
anchor -- when a curling three-pointer is SPORTS, i.e. rt00 ("news
|
| 281 |
+
headlines world sports business technology"). The gold label is now
|
| 282 |
+
rt00.
|
| 283 |
+
2. THE C API / PYTHON BRIDGE IGNORED THE MODEL'S RECORDED COMPOSITION.
|
| 284 |
+
syfox_engine_create() loaded physics.json but never APPLIED it, so the
|
| 285 |
+
server, the Space and the handmade gate decided under different physics
|
| 286 |
+
than the CLI -- and, after v4.0, under a different READOUT than the
|
| 287 |
+
temperature was fitted for. It now calls apply_composition(); applying
|
| 288 |
+
it twice is idempotent, and the CLI is unaffected. (The bug surfaced
|
| 289 |
+
because the gate's own --affinity-mix flag was silently overriding the
|
| 290 |
+
model's recorded readout with the flag's default; the gate now leaves
|
| 291 |
+
the recorded readout alone unless the operator asks otherwise.)
|
| 292 |
+
|
| 293 |
+
TESTS: test_affinity_readout pins the mechanism -- the channel is OFF by
|
| 294 |
+
default (the replay contract), the EXCLUSIVE token decides even when the
|
| 295 |
+
query shares no vocabulary with any candidate's description, the decision
|
| 296 |
+
is deterministic, a token bound to every candidate changes nothing, and
|
| 297 |
+
mix = 0 reproduces the legacy decision. Full unit suite green.
|
| 298 |
+
|
| 299 |
+
FLAGS: --affinity-mix F (0 = legacy, 1 = affinity only; default 0) and
|
| 300 |
+
--affinity-pmi (the log-odds form). The flag is applied in apply_physics so
|
| 301 |
+
that cmd_calibrate -- which calls apply_physics only -- fits the SAME
|
| 302 |
+
channel the decision scores (the v3.8 fit==decide parity contract).
|
| 303 |
+
|
| 304 |
+
VERSION 3.9.3 -> 4.0.0
|
| 305 |
+
|
| 306 |
+
## v3.9.3 — the dead-lane repair, the router-criteria measurement, and the handmade gate
|
| 307 |
+
|
| 308 |
+
Three defects measured on the PUBLISHED model (HF sha 5aa69627) and the
|
| 309 |
+
v3.9.1 engine. One of them is a large win; one of them has a true diagnosis
|
| 310 |
+
and a HARMFUL proposed remedy; one of them is a calibration/reference
|
| 311 |
+
problem that flattered SyFox.
|
| 312 |
+
|
| 313 |
+
DEFECT 1 — THE DEAD LANES (the diagnosis is TRUE; the command did not exist
|
| 314 |
+
and is added here). enforce_lane_decay() multiplies EVERY lane by 0.995 on
|
| 315 |
+
EVERY lesson, so a lane last bound at lesson k in an N-lesson fabric carries
|
| 316 |
+
w0 * 0.995^(N-k) — which underflows to the float32 denormal floor (1.4e-43)
|
| 317 |
+
after ~20,670 lessons and then STOPS decreasing. MEASURED on the shipped
|
| 318 |
+
model/giant-latin (114,060 lessons, 1,905,169 lanes): 95.09% of lanes carry a
|
| 319 |
+
weight in (0, 1e-12), the MEDIAN lane weight is 1.4e-43, and only 2.42%
|
| 320 |
+
exceed 1e-6. The Hebbian memory was erased; what survived was a recency
|
| 321 |
+
window over the tail of the corpus. The base repository's law is different
|
| 322 |
+
(research-paper/cmd.md 2.3): w <- tanh((w*lambda + eta*v_b*v_c)/w_max)*w_max
|
| 323 |
+
— SATURATING, with continuous co-activity growth, so a starved lane keeps a
|
| 324 |
+
real value; research-paper/tsda.md 2: "It remains in long-term memory (the
|
| 325 |
+
edge still exists), but it requires more cognitive energy to retrieve." The
|
| 326 |
+
port kept the decay and lost the saturation.
|
| 327 |
+
|
| 328 |
+
FIX 1a — NEW COMMAND `syfox repair-lanes --model DIR [--dead-threshold F]
|
| 329 |
+
[--dry-run]`: rebuilds every lane's weight from the persisted EVIDENCE LEDGER
|
| 330 |
+
(v3 Milestone 3), which holds the integral of exactly the growth term the
|
| 331 |
+
decay destroyed, in CMD 2.3's saturating form:
|
| 332 |
+
w = w_max * tanh( net_events * bind_scale / w_max )
|
| 333 |
+
No equation moves and no learn-time behaviour changes; a fabric re-learned
|
| 334 |
+
from scratch is byte-identical. MEASURED: giant-latin revives 1,330,812 of
|
| 335 |
+
1,859,008 dead lanes (weight sum 681 -> 117,478); b77-sem revives 159,449
|
| 336 |
+
(912 -> 58,210); router16 rebuilds 43,117 (1,012 -> 10,360).
|
| 337 |
+
|
| 338 |
+
FIX 1b — cfg_.lane_decay_floor + `--lane-floor F`: the ROOT-CAUSE guard for
|
| 339 |
+
new fabrics. A starved lane keeps a floor instead of falling off the
|
| 340 |
+
number line (TSDA 2: the edge persists with reduced retrievability).
|
| 341 |
+
Default 0 = OFF, so every pre-v3.9.3 fabric replays bit-identically.
|
| 342 |
+
|
| 343 |
+
MEASURED EFFECT (argmax accuracy — temperature-independent, so this is the
|
| 344 |
+
repair alone): router16 on its 12,593-row cal split 0.4210 -> 0.5060
|
| 345 |
+
(+8.5 points); b77-sem on hidden 3,080 rows 0.4500 -> 0.4662 at diffusion
|
| 346 |
+
0.02; giant-latin per domain (hidden, class question only): agnews 0.498 ->
|
| 347 |
+
0.679, dbpedia 0.578 -> 0.780, polarity 0.560 -> 0.638, emotion 0.129 ->
|
| 348 |
+
0.259, with ECE 0.402 -> 0.128 (agnews) and 0.300 -> 0.124 (dbpedia).
|
| 349 |
+
|
| 350 |
+
DEFECT 2 — THE ROUTER CRITERIA (the diagnosis is TRUE; the proposed remedy
|
| 351 |
+
is HARMFUL). MEASURED against the shipped giant-latin's 43,420 nodes: the
|
| 352 |
+
router descriptions are mostly words the fabric never interned — rt01
|
| 353 |
+
("banking cards payments transfers refunds loans") has 0 of 6 words as
|
| 354 |
+
nodes, rt00 1 of 6, rt13 1 of 6, rt05 and rt08 0 of 4/5. Two code facts make
|
| 355 |
+
that matter: Substrate::readout() SKIPS every token that is not a node (so a
|
| 356 |
+
non-node description contributes nothing to its own candidate), and decide()
|
| 357 |
+
injects EVERY candidate's description tokens into ONE shared field (so words
|
| 358 |
+
that ARE nodes cross-contaminate all candidates at once).
|
| 359 |
+
tools/rebuild_router_criteria.py implements the proposed rebuild (each
|
| 360 |
+
candidate described by the tokens with the highest w(x,A) * exclusive(x,A)).
|
| 361 |
+
MEASURED on the repaired router16, 12,593-row cal split, each criteria set
|
| 362 |
+
with its own matched calibration:
|
| 363 |
+
old text ("banking cards payments...") argmax 0.5060 ECE 0.046
|
| 364 |
+
EMPTY text ("") argmax 0.4320 ECE 0.018
|
| 365 |
+
one exclusive token ("monei") argmax 0.5060 ECE 0.041
|
| 366 |
+
label-exclusive 4 tokens (the remedy) argmax 0.4147 ECE 0.062
|
| 367 |
+
The proposed remedy COSTS 9 POINTS of routing accuracy: the description is
|
| 368 |
+
not a lever, it is a shared-field injector, and the richer it gets the more
|
| 369 |
+
the candidates contaminate each other — the repo's own documented
|
| 370 |
+
"direct-term harvest" effect (its wording sweep already found short4 0.426 >
|
| 371 |
+
mid8 0.164 > rich12 0.079). The remedy is therefore shipped as a TOOL, not
|
| 372 |
+
as a default, and the finding recorded: keep the criteria MINIMAL. Empty
|
| 373 |
+
criteria gives the best calibration measured anywhere in this tree
|
| 374 |
+
(ECE 0.018, beating Jev's third-party 0.246 and Laya's 0.081).
|
| 375 |
+
|
| 376 |
+
DEFECT 3 — THE JEV REFERENCE NUMBERS FLATTERED SYFOX. The bench's
|
| 377 |
+
jev_reference block carried the LAUNCH-DAY self-report (workflow 0.678,
|
| 378 |
+
latency 70-500 ms, "calibration claimed, not public"). Independent
|
| 379 |
+
third-party measurements are materially STRONGER for Jev: arxiv 2609.37647
|
| 380 |
+
(37 datasets, 346,009 requests, jev-1.13.0) measures 95-99% on IMDB / SST-2
|
| 381 |
+
/ HellaSwag / ARC and 79.7% on Banking77 at full coverage (-> 96.3% at 50%
|
| 382 |
+
coverage); laya-model.com/benchmarks publishes Jev at typed-decisions 0.727,
|
| 383 |
+
AG News 0.910, DAIR Emotion 0.480, Banking77 0.870, ECE 0.246, p50 latency
|
| 384 |
+
236-276 ms. The block now carries those, with the vendor's own 0.955 workflow
|
| 385 |
+
claim labelled as such.
|
| 386 |
+
|
| 387 |
+
NEW — THE HANDMADE GENERALISATION GATE. data/handmade_probes.jsonl (148
|
| 388 |
+
probes) + tools/handmade_gate.py: hand-written sentences, deliberately
|
| 389 |
+
outside every training split, every eval split and every mined-criteria
|
| 390 |
+
vocabulary. It is the only check in the tree that can see a fabric that has
|
| 391 |
+
memorised its corpus instead of learning it. MEASURED on the SHIPPED
|
| 392 |
+
fabrics: total 0.291 (bank77 0.103, emotion 0.167, dbpedia 0.286, router
|
| 393 |
+
0.400) — the published bank77 number (0.158) is optimistic because the
|
| 394 |
+
hidden split shares the training templates. It also exposed the DIFFUSION
|
| 395 |
+
TRADE-OFF: diffusion 0.02 (selected on cal) buys bank77 hidden 0.2854 ->
|
| 396 |
+
0.4662 in-distribution and costs handmade 0.118 -> 0.044 out-of-distribution.
|
| 397 |
+
A cal-only selection cannot see that cost. Wired into make ci.
|
| 398 |
+
|
| 399 |
+
FURTHER MEASUREMENT — THE DIFFUSION OPTIMUM IS PER-DOMAIN, NOT PER-FABRIC.
|
| 400 |
+
The giant fabric is one directory carrying 16 domains with very different
|
| 401 |
+
geometry. At diffusion 0.02 tickets_en (3 classes) REGRESSES from 0.9040 to
|
| 402 |
+
0.5660 while agnews (4) and dbpedia (14) gain 18-20 points. One diffusion
|
| 403 |
+
per fabric dir is therefore not enough for a multi-domain fabric — the
|
| 404 |
+
per-fabric mechanism (physics.json) is the right primitive but the value
|
| 405 |
+
has to be chosen per DOMAIN, or the domains split into per-domain fabrics.
|
| 406 |
+
|
| 407 |
+
TESTS: test_lane_repair (the global decay really kills lanes; the ledger can
|
| 408 |
+
revive them; the dry run reports without touching the fabric; the repair is
|
| 409 |
+
deterministic; no rebuildable lane is still dead afterwards) and
|
| 410 |
+
test_physics_composition. Full unit suite green.
|
| 411 |
+
|
| 412 |
+
DOCS: docs/FIT_DECIDE_PARITY.md (the fit==decide contract) and the v3.9.3
|
| 413 |
+
section of this changelog.
|
| 414 |
+
|
| 415 |
+
VERSION 3.9.2 -> 3.9.3
|
| 416 |
+
|
| 417 |
+
## v3.9.2 — fit == decide: the calibration composition contract
|
| 418 |
+
|
| 419 |
+
The fix for the wrong-answer bug the v3.9.1 diagnostics exposed. Two
|
| 420 |
+
independent defects, both in the tool layer; NO physics equation changed.
|
| 421 |
+
|
| 422 |
+
DEFECT 1 — THE CALIBRATION WAS FITTED UNDER A DIFFERENT PHYSICS THAN THE
|
| 423 |
+
DECISION RUNS. The choice/score temperature is fitted on settle-pass
|
| 424 |
+
energies, and those depend on the whole decide-side composition (the
|
| 425 |
+
energy gain, diffusion, decay, k_settle, hop coupling). The energy gain is
|
| 426 |
+
PER-STATE, so it is not a uniform rescale. In this tree b77-sem, router16
|
| 427 |
+
and model-bank77-best calibrated WITHOUT --energy-norm while every bench
|
| 428 |
+
and decide call ran WITH it. Measured on the shipped b77-sem fabric and
|
| 429 |
+
the 1,003-row cal split, same engine, one flag apart:
|
| 430 |
+
calibrate WITHOUT --energy-norm -> T = 0.0037, fit saw 556 of 2,006
|
| 431 |
+
question-rows (27.7% coverage),
|
| 432 |
+
ECE 0.4567 -> 0.4057
|
| 433 |
+
calibrate WITH --energy-norm -> T = 0.3552, fit saw 2,006 of 2,006,
|
| 434 |
+
ECE 0.3183 -> 0.3056
|
| 435 |
+
A ~100x sharper temperature, chosen on a 27.7%-covered BIASED subset (the
|
| 436 |
+
other 1,450 rows settle to a SILENT field and are dropped from the fit). A
|
| 437 |
+
near-floor T saturates the softmax: the post-temperature top-2 gap goes to
|
| 438 |
+
~0.93 on every row, so the honest-defer gate (an absolute 0.05 margin) can
|
| 439 |
+
NEVER fire — the model never abstains — and every answer carries ~0.98
|
| 440 |
+
confidence whether it is right or wrong (measured on the shipped fabric,
|
| 441 |
+
hidden: mean p1 0.9819 on correct rows vs 0.9641 on wrong, ECE 0.809).
|
| 442 |
+
The calibrate report's own ECE did not describe the bench's ECE because the
|
| 443 |
+
two ran under different physics.
|
| 444 |
+
|
| 445 |
+
DEFECT 2 — THE DIFFUSION CONSTANT WAS NEVER RE-TUNED FOR THE DENSE
|
| 446 |
+
FABRICS. diffusion is a config value (not an equation) whose optimum is a
|
| 447 |
+
property of the fabric; 0.45 was validated on the small v2-era fabrics and
|
| 448 |
+
smears a 217k-lane fabric's field, merging intents that share vocabulary.
|
| 449 |
+
Measured on the bank77 CAL split (selection never touches hidden):
|
| 450 |
+
0.45 -> 0.1316 accuracy, 0.10 -> 0.4237, 0.02 -> 0.4237.
|
| 451 |
+
|
| 452 |
+
FIX 1 — PHYSICS.JSON: a fabric now carries the decide-side composition it
|
| 453 |
+
was calibrated under (physics.json, next to calibration.json). calibrate
|
| 454 |
+
RECORDS it; decide/bench/demo/stats APPLY it on load
|
| 455 |
+
(Engine::apply_composition). Explicit CLI flags still win. A fabric with no
|
| 456 |
+
physics.json is a pre-v3.9.2 fabric: nothing is applied and behaviour is
|
| 457 |
+
bit-identical (replay contract preserved).
|
| 458 |
+
|
| 459 |
+
FIX 2 — THE FIT REFUSES TO RUN ON A BIASED SUBSET. calibrate counts the
|
| 460 |
+
question-rows it was offered and the ones it saw; below 50% coverage it
|
| 461 |
+
refuses (exit 2), names the cause, and leaves the fabric untouched. The
|
| 462 |
+
coverage is always disclosed: fit_offered_rows, fit_dropped_silent,
|
| 463 |
+
fit_coverage.
|
| 464 |
+
|
| 465 |
+
FIX 3 — THE MAKEFILE STOPS LYING: b77-sem, router16 and model-bank77-best
|
| 466 |
+
now calibrate with --energy-norm (the composition their benches run).
|
| 467 |
+
|
| 468 |
+
FIX 4 — TOOLS + CI GATE: tools/cal_diffusion_sweep.py sweeps diffusion on
|
| 469 |
+
the CAL split only, re-calibrating at each candidate so the temperature is
|
| 470 |
+
always fitted under the composition it is applied to, and records the
|
| 471 |
+
winner into physics.json (this also delivers the standing recommendation in
|
| 472 |
+
docs/INTRACATEGORY_ATTACK.md section 4: a per-fabric diffusion value, not a
|
| 473 |
+
new global default). tools/assert_fit_decide_parity.py is the CI gate: a
|
| 474 |
+
FITTED fabric with no physics.json has an unknown calibration provenance and
|
| 475 |
+
FAILS. Wired into make ci.
|
| 476 |
+
|
| 477 |
+
MEASURED (v3.9.1 engine, shipped fabrics, shipped splits; selection on cal,
|
| 478 |
+
hidden scored once; bank77 intent-only):
|
| 479 |
+
bank77 hidden 3,080: accuracy (argmax) 0.1584 -> 0.4500 (+29.2 pts),
|
| 480 |
+
ECE 0.809 -> 0.225, accuracy over answered at margin 0.05
|
| 481 |
+
0.159 -> 0.542, honest total at margin 0.05 0.1581 -> 0.3760,
|
| 482 |
+
deferral rate at margin 0.05 0.5% -> 30.7% (the axis is alive)
|
| 483 |
+
router16 cal 12,593: ECE 0.443 -> 0.054, accuracy over answered
|
| 484 |
+
0.4299 -> 0.5989. At margin 0 both configurations produce the
|
| 485 |
+
IDENTICAL argmax (0.4210) — the temperature never changes a decision,
|
| 486 |
+
only how confidently it is made and whether it is made at all.
|
| 487 |
+
re-calibrated fabrics: b77-sem T = 0.346736 over 1,003 rows (was
|
| 488 |
+
0.00472645 over 211), diffusion 0.02; router16 T = 0.0509 over 12,574
|
| 489 |
+
rows (was 0.00491756 over 160).
|
| 490 |
+
|
| 491 |
+
TESTS: test_physics_composition (16 checks: a pre-3.9.2 fabric carries no
|
| 492 |
+
composition and is bit-identical; a recorded composition survives the
|
| 493 |
+
save/load round trip; apply_composition reaches the live substrate; the
|
| 494 |
+
fit's offered/seen/dropped row bookkeeping adds up). Full unit suite green.
|
| 495 |
+
|
| 496 |
+
DOCS: docs/FIT_DECIDE_PARITY.md (the bug, the measurement, the fix, and why
|
| 497 |
+
the base repository does not have it — SI reads out by ARG-MAX over the
|
| 498 |
+
settled field, with no softmax, no temperature and no fitted parameter, so
|
| 499 |
+
there is nothing to fit against the wrong physics; the probability readout
|
| 500 |
+
and the temperature are a SyFox addition and the defect came in with them).
|
| 501 |
+
|
| 502 |
+
VERSION 3.9.1 -> 3.9.2
|
| 503 |
+
|
| 504 |
+
## v3.9.1 — intra-category diagnostics: confusion matrix + honest totals + the diffusion finding
|
| 505 |
+
|
| 506 |
+
Diagnostics-then-intervention per the tester's revised plan. Everything
|
| 507 |
+
measured in-tree, tuning on cal only, hidden touched only for final
|
| 508 |
+
validation; no global defer default shipped; no parity claims without the
|
| 509 |
+
honest total (docs/HONEST_TOTAL.md).
|
| 510 |
+
|
| 511 |
+
- BENCH (opt-in, default byte-identical): --confusion (NxN gold-x-pred JSON
|
| 512 |
+
matrix, DEFER pseudo-class, pairs_top; rows==labels alignment pinned by
|
| 513 |
+
unit test after the DEFER-shift bug was caught cross-checking the hidden
|
| 514 |
+
dump), --dump-perrow (per-choice-question records with the RAW
|
| 515 |
+
pre-temperature energy gap), Answer.raw_margin disclosure.
|
| 516 |
+
- PHYSICS SWEEP KNOBS: set_decay/set_diffusion/set_hop_coupling/
|
| 517 |
+
set_learn_eta/set_lane_cap on the substrate (frozen defaults, clamped;
|
| 518 |
+
CLI --decay --diffusion --k-settle --hop-coupling --learn-eta --lane-cap
|
| 519 |
+
on bench/calibrate/learn/decide paths).
|
| 520 |
+
- MEASURED (model-b77-sem, 19,690 nodes / 1.31M lanes, banking77):
|
| 521 |
+
calibration T=0.0019 makes the probability-gap defer axis inert
|
| 522 |
+
(0/1003) and ECE 0.597/0.573 measured; no global margin improves the
|
| 523 |
+
honest total; per-intent thresholds overfit cal (-2.0 hidden); class
|
| 524 |
+
frequency does not predict accuracy (r=-0.043); semantics -6.1 pts
|
| 525 |
+
without; decay/k_settle/hop_coupling/learn_eta flat; lane_cap 1024 +1.6;
|
| 526 |
+
DIFFUSION monotone to a boundary optimum: cal 0.401 -> 0.537, hidden
|
| 527 |
+
0.424 -> 0.571 (+14.7), card_management 0.389 -> 0.632 (+24.3). Replicates
|
| 528 |
+
on an independent reduced fabric family (+16.4). SI equations frozen
|
| 529 |
+
throughout - a CONFIG value, not a physics change.
|
| 530 |
+
- TOOLS: b77_confusion_report.py, b77_margin_sweep.py, b77_apply_policy.py,
|
| 531 |
+
b77_freq_cut.py, b77_ablation_compare.py. ARTIFACTS: data/b77_diag/.
|
| 532 |
+
- DOCS: docs/INTRACATEGORY_ATTACK.md + docs/HONEST_TOTAL.md. TESTS:
|
| 533 |
+
test_bench_diagnostics (confusion/dump/knobs/alignment invariant).
|
| 534 |
+
|
| 535 |
+
## v3.9.0 — the constructive substrate: SI's Layer-2 reasoning stack + the remaining paper mechanisms
|
| 536 |
+
|
| 537 |
+
Answers the v3.9 audit ("SyFox is not a port of SI — it shares two
|
| 538 |
+
constants"; "many papers unimplemented"). Both charges verified, both
|
| 539 |
+
addressed; the false port claim is retracted in the substrate header itself.
|
| 540 |
+
|
| 541 |
+
- core/reason.hpp (NEW, ~1,530 lines): the faithful port of SI's Layer-2 —
|
| 542 |
+
typed graph with full provenance (rule/parent_a/parent_b/step), O(1)
|
| 543 |
+
edge existence, O(deg) adjacency, bounded retraction (RADE); the NINE
|
| 544 |
+
reasoning primitives (transitive, modus ponens, inheritance, contrapositive,
|
| 545 |
+
case analysis, induction with min-witnesses, analogy, abduction via
|
| 546 |
+
backward chaining, recursion via the fixpoint loop); forward chaining to
|
| 547 |
+
fixpoint under a tension budget; adaptive backward chaining with an active
|
| 548 |
+
goal stack; proof traces + the §5.3.4 verifier; the meta-learner
|
| 549 |
+
(sub-chain counting -> macro-rule promotion at the 2-bit MDL threshold);
|
| 550 |
+
the thinker index C/R; the SIX discovery queries; the .axioms triple
|
| 551 |
+
format (SI's own data files load unchanged). Determinism hardening over
|
| 552 |
+
SI: primitive candidate sets sorted before commit (SI iterated hash maps).
|
| 553 |
+
- ENGINE BRIDGE: `syfox axioms --load FILE` loads triples into BOTH stores
|
| 554 |
+
(typed graph + fabric lanes, idempotent); load_model auto-loads
|
| 555 |
+
<model>/axioms.txt + v39.json (tension + OOD signatures) when present;
|
| 556 |
+
absent = every pre-3.9 model replays bit-identically. New commands: ask
|
| 557 |
+
(forward/backward with proof JSON), reason (fixpoint report), discover
|
| 558 |
+
(six queries + classifier), thinker (C/R + macro count over a query file),
|
| 559 |
+
audit (CMA/CCH DERIVED-vs-INDUCED path-additivity report).
|
| 560 |
+
- DECISION-LAYER PAPER GATES (opt-in, default OFF, read-only over the
|
| 561 |
+
settled field): --proof / --require-proof (RADE proof pass, no_proof_path
|
| 562 |
+
defer); --wavefront-gate (CMD §4 reached-candidates, unreached_candidates
|
| 563 |
+
defer); --momentum-readout (MCPE/CPME echo suppression, echo_only defer;
|
| 564 |
+
ported as peak-diffusion-gain after BOTH the raw final-pass delta and a
|
| 565 |
+
beta=0.9 envelope measured every candidate echo-suppressed on the bench
|
| 566 |
+
fabrics); --coherence-gate (HTR ΔR participation-ratio rise,
|
| 567 |
+
no_structural_rise defer); --vght-gate (VGHT coincidence C=σ(12(E·E−0.05))
|
| 568 |
+
on the hop walk, gated_lane_frac disclosure); --cem-plan (P-CMA shell,
|
| 569 |
+
gradient-free CEM over deterministic source-cap variants, plan restores
|
| 570 |
+
the winning field; first cut snapshotted post-settle and double-decayed
|
| 571 |
+
every variant — caught by think30 bisection at 0.600 -> 0.267 and fixed);
|
| 572 |
+
--ood-knn (fixes.md signature-density defer, ood_density); --tension-gate
|
| 573 |
+
(RIFA SIL with the sign defect fixed: contradictions ACCUMULATE tension,
|
| 574 |
+
conflicted_state defer at >= 2 unresolved conflicts on the state hash).
|
| 575 |
+
- LEARN-SIDE PAPERS (opt-in, replay-safe): --fingerprints (CME graded
|
| 576 |
+
half-dose re-teach, capped 1024-entry table, deterministic eviction);
|
| 577 |
+
--sentinels on (CMD §2.5 ^w0~w1 / wn~wn$ boundary pairs); --pro-con on
|
| 578 |
+
(RB surrogate: negated lessons bind through "!token" con-namespaces);
|
| 579 |
+
--order-consolidation on (CPME-II discrete surrogate: per-lane order
|
| 580 |
+
evidence, Phi = 0.4 + 0.6*(2c/t - 1) blend, ORD1 magic tail, replay
|
| 581 |
+
no-op on pre-v3.9 fabrics).
|
| 582 |
+
- HONEST LINEAGE: si_substrate.hpp header retracted the "faithful
|
| 583 |
+
standalone port" claim; now states shared vs different (scalar energy vs
|
| 584 |
+
oscillators, lanes vs tunnels, passes vs dt=0.02, native 0.82/0.45) and
|
| 585 |
+
records the CSAT boundary theorem (global decay/diffusion modulation is
|
| 586 |
+
rank-preserving, arg-max invariant — readout-affecting mechanisms must
|
| 587 |
+
couple per-node; settle physics stays frozen).
|
| 588 |
+
- BUGS CAUGHT BY THE NEW TESTS: add_primitive double-padded prim_meta
|
| 589 |
+
(every primitive kind shifted off by one; contrapositive and induction
|
| 590 |
+
never fired); Engine never installed the default rule set (forward
|
| 591 |
+
chaining was a no-op); momentum envelope out-of-bounds read on pass 0
|
| 592 |
+
(segfault); CME fingerprint test used an unstemmed token (unordered_map::at).
|
| 593 |
+
- TESTS: test_reason (18 checks: primitives, proofs, verifier, retraction,
|
| 594 |
+
discovery, thinker index, contradiction guard, the engine bridge,
|
| 595 |
+
idempotent reload) + test_v39_gates (26 checks: replay contract,
|
| 596 |
+
per-gate defer reasons, determinism, ORD1 roundtrip, fingerprint
|
| 597 |
+
half-dose, sentinel/pro-con interning). Full suite + readout-silence +
|
| 598 |
+
jas-test + make ci green; bench bit-identical to the v3.8 record.
|
| 599 |
+
- MEASURED: think30 baseline 0.467 -> thinking 0.600 -> multivector 0.633
|
| 600 |
+
-> v3.9 stack 0.700 (21/30; thinking flags + --wavefront-gate --cem-plan
|
| 601 |
+
on a --distvec --multi-vector fabric). Honest negatives measured and
|
| 602 |
+
documented: momentum alone 0.533, coherence/vght alone 0.567, learn-side
|
| 603 |
+
flags combined 0.433 at demo scale (corpus-scale features), cem alone
|
| 604 |
+
neutral 0.600. JEV axes unchanged (95.5% answered n=44, <=591 us,
|
| 605 |
+
ECE 0.131, OOD defer 1.0) + new axes JEV lacks: proof traces, discovery,
|
| 606 |
+
thinker index, .axioms knowledge format.
|
| 607 |
+
|
| 608 |
+
## v3.8.0 — physics-native thinking (no token prediction, no ML, physics frozen)
|
| 609 |
+
|
| 610 |
+
Four opt-in mechanisms + the v3.7.1 scaling fix. Spec: deepen the field's
|
| 611 |
+
thinking without token prediction; SI core untouched; bit-identical replay on
|
| 612 |
+
default flags (bench verified against the v3.7 record).
|
| 613 |
+
|
| 614 |
+
- v3.7.1 DISTVEC SCALING FIX: measured O(n^1.9) build (76 s @ 5,595 nodes,
|
| 615 |
+
156 s @ 7,985, ~15 h extrapolated @ 94,773) root-caused to the exact
|
| 616 |
+
neighbour scan (O(n^2*k), cap 8000 -> 2000), strided row-major MGS with
|
| 617 |
+
~840k OpenMP regions per call (-> column-major blocked BCGS2), and the
|
| 618 |
+
subspace/Ritz kernels (-> contiguous cm passes, cached init hashes).
|
| 619 |
+
Measured: 17.1 -> 7.2 s @ 5,107 nodes; 95.4 s @ 40,850; ~15 h -> ~5 min
|
| 620 |
+
extrapolated at the generalist size. Determinism md5-verified.
|
| 621 |
+
- TASK 1 ADAPTIVE DEPTH (`--adaptive-depth`, `--adaptive-max-k`): difficulty
|
| 622 |
+
= unknown-token fraction + lane isolation, k = base + round(d*max_extra)
|
| 623 |
+
(8..16 defaults), deterministic, ratchet-guarded, mirrored in
|
| 624 |
+
harvest_rows; disclosed as difficulty/k_settle_used/k_settle_base.
|
| 625 |
+
- TASK 2 MULTI-VECTOR (`--multi-vector`, `--multi-vector-k`): K=8 spectral
|
| 626 |
+
channel gates from the distvec axes (lane flow scaled by
|
| 627 |
+
exp(-(u_k(a)-u_k(b))^2/2s^2)), frozen physics per channel, readout on the
|
| 628 |
+
mean superposed field; honest no-op without --distvec; dead axes skipped.
|
| 629 |
+
- TASK 3 CAUSAL SIGNATURES (`--causal-lanes`): cause?>effect and
|
| 630 |
+
means!>goal pair nodes from a deterministic connective scan (stemmed
|
| 631 |
+
forms), interned/df-noted/bound like the bigrams, injected in
|
| 632 |
+
decide/harvest/perturb at kCausalDose=0.5; replay no-op on old fabrics.
|
| 633 |
+
- TASK 4 ENERGY SELF-VERIFICATION: settle trace (passes, final/initial
|
| 634 |
+
energy, relative motion rate) always in the decide usage; opt-in
|
| 635 |
+
`--self-verify` defers choice answers measured on fields still moving
|
| 636 |
+
above the floor (default 0.25, measured settled baseline 0.189-0.212),
|
| 637 |
+
reason `unconverged_field`.
|
| 638 |
+
- TESTS: test_thinking group (adaptive depth incl. ratchet guard,
|
| 639 |
+
self-verify gate both sides, multi-vector no-op/determinism/effect,
|
| 640 |
+
causal emission directions + fabric interning + replay both ways); full
|
| 641 |
+
suite green; readout-silence ALL PASS; jas-test ALL PASS; bench
|
| 642 |
+
bit-identical (tickets 1.000/1.000 defer 0.063, game defer 0.333, guard
|
| 643 |
+
0.778, OOD defer 1.0 x3, deterministic x3).
|
| 644 |
+
- MEASURED: think30 suite (`make think30` -> data/think30_tables.json) —
|
| 645 |
+
30 tests, 6 categories x 5: baseline 0.467 (14/30) -> thinking flags
|
| 646 |
+
0.600 (18/30) -> +multi-vector 0.633 (19/30). Honesty category 0/5 ->
|
| 647 |
+
5/5 (noise answers on near-vocabulary OOD states now defer); chains
|
| 648 |
+
0/5 -> 3/5. Causal categories showed no additional delta at demo scale
|
| 649 |
+
(bigram lanes already carry the signal; disclosed honestly).
|
| 650 |
+
|
| 651 |
+
## v3.6.0 — the fabric-construction papers land + the JEV head-to-head
|
| 652 |
+
|
| 653 |
+
Implements the top of v3.5's paper port order on the v3.5.0 tree (settle
|
| 654 |
+
physics frozen; old fabrics replay bit-identically):
|
| 655 |
+
|
| 656 |
+
- ORDERED BIGRAM LANES (MRS SS4b.1-4b.2 measured 7/7; CMD SS2.5; CPSB; HTR
|
| 657 |
+
arrival-order): learn interns adjacent token pairs ("w1~w2") and binds them
|
| 658 |
+
to the outcome anchors; decide injects the state's bigram nodes at
|
| 659 |
+
kBigramDose=0.5 of the state dose, mirrored bit-exactly in harvest_rows.
|
| 660 |
+
Escape from the multiset-invariance theorem (paws 0.500 / xnli 0.333 are
|
| 661 |
+
chance because a token bag cannot encode order). Old fabrics have no
|
| 662 |
+
"w1~w2" nodes so the decide-side block is a no-op on them (replay
|
| 663 |
+
contract, unit-tested both ways). --bigrams on|off (default on).
|
| 664 |
+
- DOCUMENT-FREQUENCY RARITY WEIGHTING (CMD SS2.2 log(N/(1+df)); MIMS SS6
|
| 665 |
+
fan-out): substrate df table (one note per (lesson, node), persisted in a
|
| 666 |
+
magic-guarded 'IDF5' tail) + hebbian_lesson scales STATE-side bind weights
|
| 667 |
+
by log1p(L/(1+df))/log1p(L) in (0,1]. No stopword list; one counted
|
| 668 |
+
formula. Fabrics without the tail reproduce v3.5 weights (factor 1.0).
|
| 669 |
+
- PERTURBATION-CONTRAST HONESTY CHECK (BED SS8, opt-in --perturb-check):
|
| 670 |
+
decide() additionally settles a structure-broken copy of the state (same
|
| 671 |
+
token multiset, adjacent pairs transposed, deterministic); when the broken
|
| 672 |
+
state's margin matches the real one the readout was bag-carried, and
|
| 673 |
+
choice questions defer with reason "perturbation_tie". Field snapshotted
|
| 674 |
+
and restored — the readout measures exactly what an unchecked decide()
|
| 675 |
+
measures. Usage discloses perturb_margin_real / perturb_margin_broken.
|
| 676 |
+
- MEASURED (train split, in-sample; heldout n=6/0/2): tickets choice
|
| 677 |
+
0.875 -> 1.000 (16/16, defer 0), score 1.000 defer 0.063 unchanged; game
|
| 678 |
+
choice_defer_rate 1.0 -> 0.333 with 4/4 answered correct; guard 0.778
|
| 679 |
+
unchanged; ood_defer_rate 1.0 x3. test_fabric36: 22 new checks (bigram
|
| 680 |
+
lay/inject, multiset-invariance pinned bit-equal on a bag fabric and
|
| 681 |
+
broken on an ordered one, IDF same-token weaker-lane isolation, IDF5
|
| 682 |
+
roundtrip, old-fabric replay bit-identity, perturbation defer/preserve).
|
| 683 |
+
Full unit suite, readout-silence, jas gates ALL PASS.
|
| 684 |
+
- BUGFIX (fresh clones): `make ci` failed because its router/ablation gates
|
| 685 |
+
need model-router16 / model-b77-sem / data/bank77_cal.jsonl — all
|
| 686 |
+
gitignored. Those gates now SKIP loudly when absent; core gates (unit
|
| 687 |
+
tests, readout-silence, jas — now wired explicitly) always run.
|
| 688 |
+
- JEV HEAD-TO-HEAD (tools/jev_bench.py, make jev-compare ->
|
| 689 |
+
build/jev_comparison.json): JEV AI (TypeSafe AI, Sept 2026) is the closed
|
| 690 |
+
"System One" decision model on the same API shape. Measured on JEV's
|
| 691 |
+
published axes: workflow accuracy 95.5% (n=44 answered, train split) vs
|
| 692 |
+
67.8% published; latency <= 474 us vs 70-500 ms published; $0 local vs
|
| 693 |
+
$0.042/M input; plus the axes JEV does not publish — ECE (mean 0.131),
|
| 694 |
+
honest defer with reasons (OOD 100%), bit-reproducibility, evidence JSON.
|
| 695 |
+
Every syfox number measured by core/bench.hpp in this tree; every JEV
|
| 696 |
+
number is their published self-reported figure (source cited in JSON).
|
| 697 |
+
- README v3.6 section + boundary updates (subject-object scope-escape by
|
| 698 |
+
bigram lanes; temporal adjacency; perturbation defer). VERSION 3.5.0 ->
|
| 699 |
+
3.6.0.
|
| 700 |
+
|
| 701 |
+
## v3.5.0 — JAS: the J-A-S cycle, the impossibility register, the arithmetic oracle
|
| 702 |
+
|
| 703 |
+
Ported from research-paper/jas.md + the central paper's substrate/thinker
|
| 704 |
+
division of labour; the SI settle physics stays frozen and decide() is
|
| 705 |
+
bit-identical (bench verified). Three additive CLI commands, one new test
|
| 706 |
+
group, one new CI gate.
|
| 707 |
+
|
| 708 |
+
- `core/jas.hpp` — the cycle: E labeled rows -> J the jump (counting leaps
|
| 709 |
+
to a universal STRONGER than the evidence; axioms ranked
|
| 710 |
+
confidence/support/token, deterministic) -> A->S deduction per holdout
|
| 711 |
+
row -> experiment (oracle = observed label) -> refutation -> revision
|
| 712 |
+
under a structural restriction (T AND U, fit on TRAIN only, never on its
|
| 713 |
+
own counterexamples) -> round 2 on fresh rows. Verdicts:
|
| 714 |
+
SURVIVES | REFUTED_AND_REVISED_SURVIVES_HELDOUT |
|
| 715 |
+
REFUTED_AND_REVISION_ALSO_REFUTED | REFUTED_AND_REVISION_UNTESTED |
|
| 716 |
+
REFUTED_IN_ROUND2_REVISE_NEXT_CYCLE | NO_TESTABLE_AXIOMS. Refutations
|
| 717 |
+
append to <model>/refuted.axioms (with the counterexample row);
|
| 718 |
+
survivors to <model>/verified.axioms (provenance INDUCED). The frozen
|
| 719 |
+
field is scored on the same rows as the disclosed "relevance heuristic"
|
| 720 |
+
column. Per-row experiment disclosure in JSON (predicted/actual/
|
| 721 |
+
CONSISTENT|REFUTES|NO_PREDICTION, conflicts flagged).
|
| 722 |
+
- `syfox register [--model M] [--text]` — the impossibility register:
|
| 723 |
+
five architectural boundaries seeded with warrants
|
| 724 |
+
(2 THEOREM / 2 INDUCED / 1 DERIVED), each with parent + status + bypass;
|
| 725 |
+
two THEOREM claims are SCOPE-ESCAPED (arithmetic -> calc oracle;
|
| 726 |
+
subject-object -> ordered/typed lanes); persists
|
| 727 |
+
<model>/impossibility.json.
|
| 728 |
+
- `core/calc.hpp` + `syfox calc --expr ... [--compile]` — the arithmetic
|
| 729 |
+
derivation oracle: 6 primitives, one recursive-descent grammar, a
|
| 730 |
+
verifier that rejects (1/0 errors), overflow-guarded exact integer path,
|
| 731 |
+
word-problem mapping (times->*, plus->+, ...). --compile EMITS a C++
|
| 732 |
+
translation unit, compiles with g++, runs it, discloses
|
| 733 |
+
agreement + provenance established_by_experiment. MEASURED: 17*23=391
|
| 734 |
+
(g++ agrees), 2+3*4=14, (2+3)^2/5=5, 2^10=1024, word problem -> 396,
|
| 735 |
+
1/0 rejected. The field never computes — the theorem stands, the
|
| 736 |
+
capability escaped its scope.
|
| 737 |
+
- Tests: unit group test_jas (oracle exactness, detection, register
|
| 738 |
+
invariants, full cycle arc incl. refutation->revision->convergence,
|
| 739 |
+
survival-is-not-proof); CI gate tests/jas_test.sh (make jas-test, wired
|
| 740 |
+
into make ci; pins oracle values, register shape, verdict space,
|
| 741 |
+
byte-determinism of cycle JSON x2); demo fabric data/jas_cycle_demo.jsonl.
|
| 742 |
+
- README: v3.5 section + "Why the 24-domain accuracy is low" table mapping
|
| 743 |
+
each measured failure shape to its fabric-construction root cause and the
|
| 744 |
+
paper that unlocks the fix (MRS/CPSB/RADE ordered+typed lanes, CMD IDF
|
| 745 |
+
weights, rbg+graph_fisher Fisher-gated bridge lanes, BED perturbation
|
| 746 |
+
negatives, l9 transitive pre-derivation); Architectural boundaries now
|
| 747 |
+
cross-reference the register.
|
| 748 |
+
- MEASURED regression: bench bit-identical to v3.4.0 (tickets choice
|
| 749 |
+
0.875 / score 1.000 defer 0.063; guard 0.778; game all-deferred
|
| 750 |
+
choice_defer_rate 1.0; ood_defer_rate 1.0; deterministic x3). Full unit
|
| 751 |
+
suite passes. VERSION 3.4.0 -> 3.5.0
|
| 752 |
+
|
| 753 |
+
## v3.4.0 — honest defer for ties, multi-hop readout walk, question-context gate
|
| 754 |
+
|
| 755 |
+
Three decision-layer mechanisms; the SI substrate physics (decay 0.82,
|
| 756 |
+
diffusion 0.45, K_settle 8, silence floors) stays frozen. Everything is
|
| 757 |
+
measured, deterministic, and disclosed.
|
| 758 |
+
|
| 759 |
+
**HONEST DEFER FOR NEAR-TIES (engine default ON, margin 0.05).** When the
|
| 760 |
+
top two probabilities are closer than the margin the readout does not carry
|
| 761 |
+
a decision: the answer defers with `reason: ambiguous_tie` instead of
|
| 762 |
+
shipping a coin-flip as a confident label. Engine-level (members
|
| 763 |
+
`defer_margin_`, `set_defer_margin`), so CLI, C API, HTTP bridge and bench
|
| 764 |
+
share ONE behavior — the v3.1 CLI post-pass (`low_margin`, default OFF) is
|
| 765 |
+
removed; `--defer-margin P` now sets the engine knob and `--no-defer`
|
| 766 |
+
restores the v3.3 answer-always behavior (both verified end-to-end on a
|
| 767 |
+
measured gap-0.186 fabric: default answers, `--defer-margin 0.25` defers
|
| 768 |
+
`ambiguous_tie`, `--no-defer` overrides). Score questions defer on the same
|
| 769 |
+
margin over level probabilities. MEASURED bench impact (train-split,
|
| 770 |
+
v3.3.1 -> v3.4.0): tickets choice 0.875 unchanged (defer 0), score 0.938 ->
|
| 771 |
+
1.000 with defer 0.063 (the one wrong score row was a near-tie, now honestly
|
| 772 |
+
deferred); guard 0.778 unchanged (defer 0); the 6-row game toy fabric
|
| 773 |
+
discloses as all-deferred (`choice_defer_rate` 1.0 — its decisions sit at
|
| 774 |
+
mean margin 0.023, i.e. they never carried signal; v3.3's 1.000 was
|
| 775 |
+
in-sample noise-picking that happened to be right). Bench JSON gained
|
| 776 |
+
`choice_defer_rate`/`score_defer_rate` (accuracy over ANSWERED questions,
|
| 777 |
+
defers counted separately — selective accuracy reads honestly). Unit tests:
|
| 778 |
+
5 legacy groups pin `set_defer_margin(0)` (bengali argmax, M3 contradiction
|
| 779 |
+
evidence, M3 ledger persistence, hierarchy, question-gate readout contract),
|
| 780 |
+
new group `test_defer_ties` pins the defer (near-tie defers with
|
| 781 |
+
probabilities intact, decisive row answers, margin 0 answers the same
|
| 782 |
+
near-tie, score flavor defers).
|
| 783 |
+
|
| 784 |
+
**MULTI-HOP READOUT WALK (opt-in, `--hops N`, default 1 = legacy).**
|
| 785 |
+
`Substrate::set_hop_depth` (clamped 1..8): depths > 1 walk lanes BFS-style
|
| 786 |
+
from each probe anchor up to N levels with per-hop damping
|
| 787 |
+
`hop_coupling/sqrt(hop+1)` (hop 1 x0.707 ... hop 4 x0.447), levels collected
|
| 788 |
+
in ascending NodeId order (std::map), width-capped at 64 nodes per level
|
| 789 |
+
(`kHopWidthCap`), never revisited — deterministic and bounded. Default
|
| 790 |
+
depth 1 keeps the legacy single-hop code path BIT-IDENTICAL (test-enforced:
|
| 791 |
+
default == explicit 1). MEASURED on chain probes (2-hop already answers at
|
| 792 |
+
N=1 — diffusion carries alarm->lights at probs 0.314 top, unchanged at N=4;
|
| 793 |
+
3-hop sparrow->animal target 0.1061 -> 0.1097; 4-hop relay far target echo
|
| 794 |
+
visible at 0.210 at N=4) — damped lanes keep far targets near-tied, so the
|
| 795 |
+
reported conf-0.019 noise answers now surface as honest `ambiguous_tie`
|
| 796 |
+
deferrals instead. Probe suite extended with the Test 18 (sparrow->bird->
|
| 797 |
+
animal) and Test 21 (alpha..echo 4-hop relay) analogs + hops configs;
|
| 798 |
+
unit group `test_multi_hop` pins default/clamp/bit-identity/determinism.
|
| 799 |
+
|
| 800 |
+
**QUESTION-CONTEXT GATE (opt-in, `--ctx-gate`, `--ctx-alpha F`).** Two-stage
|
| 801 |
+
settle: stage 1 settles the question's own tokens (instructions + criteria
|
| 802 |
+
descriptions, NO labels) into a context field; stage 2 re-settles the state
|
| 803 |
+
(prime + state + bridges, unchanged) and `Substrate::blend_field` composes
|
| 804 |
+
`e = (1-alpha)*state + alpha*context` (alpha default 0.5, clamped [0,1]).
|
| 805 |
+
Two ALREADY-SETTLED fields composed at the decision layer — settle() physics
|
| 806 |
+
untouched, deterministic, disclosed as `usage.ctx_gate`/`usage.ctx_alpha`.
|
| 807 |
+
MEASURED on the probe fabric: who-found answer holds (Tariq), confidence
|
| 808 |
+
0.056 -> 0.061; OOD submarine probe still abstains (`unknown_candidates`);
|
| 809 |
+
latest-temperature holds with a disclosed confidence tradeoff (0.007 ->
|
| 810 |
+
0.003). Unit group `test_ctx_gate` pins OFF-unchanged / ON-disclosure /
|
| 811 |
+
answer-holds / determinism / OOD-preserved.
|
| 812 |
+
|
| 813 |
+
**Surface.** CLI `--defer-margin P` (engine knob), `--no-defer`, `--hops N`
|
| 814 |
+
(1..8), `--ctx-gate`, `--ctx-alpha F`; C API decide opts `defer_margin`,
|
| 815 |
+
`no_defer`, `hops`, `ctx_gate`, `ctx_alpha`; bridge opts docs; usage JSON
|
| 816 |
+
`ctx_gate`/`ctx_alpha` disclosure. README: v3.4 section + "Architectural
|
| 817 |
+
boundaries (System-2 limits)" honest list. Verified: full unit suite passes
|
| 818 |
+
(incl. 3 new groups), `make readout-silence` ALL PASS, bench deterministic
|
| 819 |
+
x3 with OOD defer 1.0 x3. VERSION 3.3.1 -> 3.4.0.
|
| 820 |
+
|
| 821 |
+
## v3.3.1 — readout-silence threshold made explicit (BLOCKER fix)
|
| 822 |
+
|
| 823 |
+
**The reported false defer, root-caused on the shipped tree.** The report
|
| 824 |
+
said `{Tariq, Salma}` false-defers with `unknown_candidates` because the
|
| 825 |
+
readout threshold (~0.35) sits above a valid candidate's energy (0.301).
|
| 826 |
+
On the shipped v3.3.0 code the check is an implicit `> 0` — there is no
|
| 827 |
+
0.35 constant — and the case does NOT reproduce: on the QA probe fabric
|
| 828 |
+
(`model-reasoning-probe`), Test 2 `{Tariq, Salma}` ANSWERS `Tariq`
|
| 829 |
+
(max candidate 0.8759, Salma 0.4811, settled field 2.4594, all measured
|
| 830 |
+
with `SYFOX_DEBUG_READOUT=1`). The reported threshold matches a local
|
| 831 |
+
mid-v3.4 worktree state, not this tree. The hardening below landed
|
| 832 |
+
regardless, because the implicit `> 0` form has a real defect: a best
|
| 833 |
+
candidate carrying dust-level diffusion carryover (`0 < e < 0.01`)
|
| 834 |
+
was ANSWERED — a pick by noise — instead of deferred.
|
| 835 |
+
|
| 836 |
+
**Fix (Option B, absolute floor).** `kUnknownCandidateFloor = 0.01f` —
|
| 837 |
+
a named, documented, ABSOLUTE constant in `core/syfox.hpp`: defer with
|
| 838 |
+
`reason: unknown_candidates` when the BEST candidate's readout energy is
|
| 839 |
+
below 0.01. Deliberately absolute, not relative-to-field: a bright field
|
| 840 |
+
sitting entirely on non-candidate nodes must defer, and a valid candidate
|
| 841 |
+
on a dim field must answer. Measured guardrails: probe-fabric candidates
|
| 842 |
+
0.19–0.88 all answer (0.19 measured WITHOUT energy-norm — do not raise
|
| 843 |
+
the floor above 0.10); dark candidates 0.0000 still defer; the lit-field/
|
| 844 |
+
dark-candidates OOD shape (`purple`/`submarine`) still defers with
|
| 845 |
+
`unknown_candidates`; a fully dark field (`xyz abc def`) defers at the
|
| 846 |
+
decide level with `unknown_vocabulary` (floor 0.05) before readout.
|
| 847 |
+
|
| 848 |
+
**Debug visibility.** `SYFOX_DEBUG_READOUT=1` prints, on stderr: the
|
| 849 |
+
decide-level field (`settled_energy`, `silence_floor`) and, per question,
|
| 850 |
+
`max_candidate` + the active threshold + every candidate energy — a false
|
| 851 |
+
defer is now diagnosable from one run.
|
| 852 |
+
|
| 853 |
+
**Regression gate.** `tests/readout_silence_test.sh` pins 7 checks
|
| 854 |
+
(2-candidate and 3-candidate valid cases answer; lowercase answers; dim
|
| 855 |
+
energy-norm-OFF case answers; dark field defers with the decide-level
|
| 856 |
+
reason; lit-field/dark-candidates defers with the readout-level reason).
|
| 857 |
+
New `make readout-silence` target, wired into `make ci` (the script
|
| 858 |
+
builds its own probe fabric from the committed
|
| 859 |
+
`data/reasoning_probe_lessons.jsonl`). Verified: unit suite all pass;
|
| 860 |
+
`make bench` bit-identical to the pre-fix snapshot (tickets 0.875/0.938,
|
| 861 |
+
game 1.000, guard 0.778, `ood_defer_rate` 1.0 on all three,
|
| 862 |
+
`deterministic` true on all three). README honest-silence section now
|
| 863 |
+
documents both silence layers and their floors. VERSION 3.3.0 -> 3.3.1.
|
| 864 |
+
|
| 865 |
+
## v3.3.0 — question-conditioned readout, tie disclosure, readout silence
|
| 866 |
+
|
| 867 |
+
**The `--evidence` "empty model" bug — root-caused, already cured, better
|
| 868 |
+
hint.** The reported symptom (lanes 0, vocabulary 0, calibrated false, all
|
| 869 |
+
`unknown_vocabulary` with `--evidence`, healthy without) is reproduced
|
| 870 |
+
exactly on a v3.2.0 build with `decide --evidence --state ... --questions ...`
|
| 871 |
+
and NO `--model`: the harness that emitted the flag treated it as
|
| 872 |
+
value-taking and swallowed the following `--model` token, and v3.2.0's
|
| 873 |
+
silent load then decided on an empty default fabric — with the evidence
|
| 874 |
+
block in the output, which made the flag look guilty. The flag itself is a
|
| 875 |
+
plain boolean in both versions. v3.2.1's loud load failure already exits
|
| 876 |
+
with `syfox: decide model "model": cannot read model/substrate.bin`;
|
| 877 |
+
v3.3 adds a stderr hint when the failed dir is the default `model` value,
|
| 878 |
+
naming the swallow-the-argument failure pattern explicitly.
|
| 879 |
+
|
| 880 |
+
**Question-conditioned readout (opt-in) — ported from the original
|
| 881 |
+
Synthetic-Intelligence repo.** There, EVERY token of the turn drove the
|
| 882 |
+
activation field (`si_main.cpp`: `for (int id : matched)
|
| 883 |
+
physics.drive(id, 3.0f, 6.0f, 20)`) — the question was never a bystander.
|
| 884 |
+
SyFox's contract keeps state and question separate, and the readout only
|
| 885 |
+
measured state energy: the question's instructions gated nothing, so the
|
| 886 |
+
salient state noun beat the question-relevant entity ("Who found the
|
| 887 |
+
radio?" → `radio` over `Tariq`). The portable form gates the READOUT:
|
| 888 |
+
question tokens that are NEW relative to the state (the `who` in "Who found
|
| 889 |
+
the radio?") distribute lane mass over the candidate anchors, and each
|
| 890 |
+
candidate is scaled by its share (`floor + (1-floor) x r/max_r`), floor
|
| 891 |
+
0.25 default. Read-only over the settled field — same shape as the
|
| 892 |
+
hierarchy gate; disclosed as `question_gate: [tokens]` in every reply
|
| 893 |
+
path. **Measured (tools/reasoning_probes.py, QA-style probe fabric):**
|
| 894 |
+
gate ON doubles the who-found margin (0.056 -> 0.113 at floor 0.10), lifts
|
| 895 |
+
the latest-temperature confidence 14x (0.008 -> 0.117), and never flips a
|
| 896 |
+
correct answer off. **Measured regression that sets the default:** on
|
| 897 |
+
tickets-cal the gate costs 5.3 points (0.9533 -> 0.9000 — "which team"
|
| 898 |
+
lanes mislead), so the gate ships OPT-IN exactly like the M1 energy-norm:
|
| 899 |
+
`--question-gate` / `--question-gate-floor F` / opts `question_gate`,
|
| 900 |
+
`question_gate_floor`.
|
| 901 |
+
|
| 902 |
+
**Exact-tie disclosure + readout silence.** The tie-break truth (measured):
|
| 903 |
+
criteria iterate in `std::map` key order and `max_element` keeps the first
|
| 904 |
+
max, so exact ties go to the alphabetically-first candidate — the reported
|
| 905 |
+
"Salma wins (last position)" was S < T, not a `>=` bug. Two structural
|
| 906 |
+
tie-breakers were measured along the way: the v3.2 sem_hop term
|
| 907 |
+
deterministically separates differently-spelled labels (aaa/bbb with
|
| 908 |
+
IDENTICAL lane sums 0.679428518 still end at 0.500078 vs 0.499921 through
|
| 909 |
+
their different trigram vectors), and per-lesson lane decay makes
|
| 910 |
+
same-structure candidates from separate lessons near-ties rather than
|
| 911 |
+
exact ones. What was missing was HONESTY about ties: every reply now sets
|
| 912 |
+
`tied: true` when the top two probabilities are equal (near-ties remain the
|
| 913 |
+
`--defer-margin` knob's business). And when the readout measures ZERO
|
| 914 |
+
energy on every candidate, decide now defers with
|
| 915 |
+
`reason: "unknown_candidates"` instead of answering a uniform distribution
|
| 916 |
+
by criteria order — the same honest-silence contract the dark-field case
|
| 917 |
+
already followed (measured: the reported unknown-options test answered
|
| 918 |
+
`abc` at 0.344 by noise; it now defers; the OOD "submarine's favorite
|
| 919 |
+
color" probe defers in a fabric that never saw the entities).
|
| 920 |
+
|
| 921 |
+
**The five reported reasoning failure modes — status.** (1) multi-hop
|
| 922 |
+
chaining: diffusion already propagates through learned lanes (the
|
| 923 |
+
alarm→lights probe answers `lights`), 3+ hop composition stays weak;
|
| 924 |
+
(2) temporal ordering: the gate carries `latest`/`after` signal when the
|
| 925 |
+
fabric has those lanes — a training-side fix, tool-supported; (3)
|
| 926 |
+
arithmetic: architectural limit, unchanged in both repos; (4) OOD
|
| 927 |
+
abstention: the all-dark-readout defer fixes the pure case; the
|
| 928 |
+
state-lit-but-unanswerable case (purple 0.472) remains open — the state
|
| 929 |
+
salience override needs a mechanism the gate does not provide; (5)
|
| 930 |
+
subject-object relations: the old repo solves it with TYPED graph edges
|
| 931 |
+
(`Tariq -found-> radio`), which the bag-of-words core deliberately lacks —
|
| 932 |
+
architectural limit, documented.
|
| 933 |
+
|
| 934 |
+
Tools: reasoning_probes.py (probe fabric builder + before/after suite);
|
| 935 |
+
data/v33_reasoning_tables.json archives every number. Tests: 9 new checks
|
| 936 |
+
(gate on/off/disclosure/determinism, tie disclosure, criteria-order pick,
|
| 937 |
+
readout silence). VERSION 3.2.1 -> 3.3.0.
|
| 938 |
+
|
| 939 |
+
## v3.2.1 — the three paper-blocking bug fixes (ablation kill switches, confidence calibration, router config)
|
| 940 |
+
|
| 941 |
+
**BUG #1 — ablation kill switches were silently inert (root-caused, disclosed,
|
| 942 |
+
test-pinned).** The switches themselves were wired correctly all the way into
|
| 943 |
+
settle() and readout() — on a v3.2 fabric (model-b77-sem) the five paper
|
| 944 |
+
configs produce 4 distinct outputs. The reported byte-identical behavior is
|
| 945 |
+
the replay contract on a PRE-v3.2 fabric: no SEM4 tail => --no-semantics has
|
| 946 |
+
nothing to switch off, no memories.jsonl => --no-retrieval primes nothing, no
|
| 947 |
+
hierarchy.json (or floor 1.0 = the measured-off default) => --no-hierarchy
|
| 948 |
+
moves nothing. Fixes: (1) `decide` now prints a loud stderr note per inert
|
| 949 |
+
switch naming the missing feature and the rebuild path
|
| 950 |
+
(./build/rebuild_sem SRC DST); (2) tools/ablation_suite.py runs the five
|
| 951 |
+
configs over an eval set, reports per-config accuracy/meanC/medC plus an
|
| 952 |
+
answer-signature distinctness count, DISCLOSES inertness, and exits non-zero
|
| 953 |
+
when a v3.2-featured fabric collapses — a null ablation can never reach the
|
| 954 |
+
paper silently again; (3) unit test test_ablation_distinctness builds a fabric
|
| 955 |
+
with all three layers ARMED (hierarchy floor 0.35) and asserts >= 4 distinct
|
| 956 |
+
outputs across default/--no-semantics/--no-retrieval/--no-hierarchy on the
|
| 957 |
+
same input (got 4); (4) the semantic effect is measured-visible (tickets-cal
|
| 958 |
+
accuracy 0.9533 -> 0.9733 with --no-semantics), so no leak-fraction change.
|
| 959 |
+
|
| 960 |
+
**BUG #2 — confidence collapse (96.6% accuracy at mean confidence 0.0016)
|
| 961 |
+
root-caused: the calibration fit ran on a different physics composition and
|
| 962 |
+
dose regime than decide.** Two concrete engine bugs and one data fix:
|
| 963 |
+
(1) harvest_rows() re-implemented injection inline and SKIPPED the retrieval
|
| 964 |
+
priming block — every fabric WITH memories was calibrated on a no-prime field
|
| 965 |
+
while decide primes; the priming prologue is now a shared prime_field() used
|
| 966 |
+
by both paths, bit-identical to the old decide behavior; (2) the mode match:
|
| 967 |
+
calibrate must run under the same --energy-norm regime the fabric is benched
|
| 968 |
+
in (readout gaps are dose-dependent at fixed temperature — the v3.1.2
|
| 969 |
+
measurement of conf 0.002 -> 0.923 under energy-norm is the same lever);
|
| 970 |
+
(3) recalibration of the shipped v3.2 fabrics under the fixed paths.
|
| 971 |
+
Measured after: tickets-big-latin-sem mean confidence 0.0016 -> 0.8736
|
| 972 |
+
(median 0.9835, C|ok 0.898 vs C|bad 0.373, accuracy held 0.9533), easy cases
|
| 973 |
+
0.636-0.965, b77-sem C|ok/C|bad separation 2.3x with the semantic leak
|
| 974 |
+
verified as signal (accuracy collapses without it). Router16 recalibrated on
|
| 975 |
+
its anchor-worded cal rows (ECE 0.368 -> 0.099, in-distribution mean
|
| 976 |
+
confidence 0.298). Acceptance criteria met: avg >= 0.20 on a well-trained
|
| 977 |
+
domain, >= 0.50 on easy cases. tools/confidence_ablation.py produces the
|
| 978 |
+
per-config ablation table and the diagnosis (retrieval dose and semantic
|
| 979 |
+
leak are NOT the diluters — the stale fit was); tables archived in
|
| 980 |
+
data/v321_bugfix_tables.json.
|
| 981 |
+
|
| 982 |
+
**BUG #3 — `decide --router model-router16` failed with "lacks router.json
|
| 983 |
+
anchors".** Root cause: the router dir didn't exist in the caller's layout
|
| 984 |
+
(the HF package nests fabrics at model/<name>, the syfox repo at
|
| 985 |
+
model-<name>) and a missing substrate loaded SILENTLY as an empty fabric, so
|
| 986 |
+
the failure surfaced as the misleading router.json message. Fixes:
|
| 987 |
+
(1) Substrate::load and Engine::load_model report failure; every CLI command
|
| 988 |
+
now fails loudly naming the model dir it could not read (first learn stays
|
| 989 |
+
tolerant — a fresh fabric is intended there; the ctypes bridge returns a
|
| 990 |
+
null handle so Python raises); (2) resolve_model_dir() tries as-given,
|
| 991 |
+
model/<name>, model-<name>, model/model-<name> — one CLI invocation works in
|
| 992 |
+
both repo layouts, and router.json models mapping targets resolve the same
|
| 993 |
+
way; (3) the router.json error now names the expected file and the builder
|
| 994 |
+
tool; (4) router.json models mapping updated to the v3.2 -sem fabrics;
|
| 995 |
+
(5) router16 rebuilt (sorted save) and recalibrated; (6) `make ci` gate
|
| 996 |
+
includes a route-field assertion (tools/assert_route.py). Verified
|
| 997 |
+
end-to-end: "Why am I missing my refund" -> route rt01 -> model-b77-sem ->
|
| 998 |
+
c00 answered; route distribution across all 16 hidden domain files measured
|
| 999 |
+
(language anchors 12/12 perfect; bank77 rows route to the support anchor
|
| 1000 |
+
rt13 11/12 — honest limitation, disclosed; modal agreement 0.663).
|
| 1001 |
+
|
| 1002 |
+
**PERSISTENCE DETERMINISM (found during the ablation investigation).**
|
| 1003 |
+
save() iterated unordered_map members directly, so every load->save cycle
|
| 1004 |
+
PERMUTED substrate.bin — measured: three different md5s over two rebuild
|
| 1005 |
+
passes on one fabric with an identical lane multiset. Same-lane physics per
|
| 1006 |
+
file, but the settled field's floating-point sum order drifted across save
|
| 1007 |
+
cycles: model dirs were never byte-stable and an ablation re-run after a
|
| 1008 |
+
re-save was silently a different experiment. Fix: every map-backed section
|
| 1009 |
+
(out_, derived_gen_, lane_evidence_, lane_ctx_) is written in SORTED key
|
| 1010 |
+
order; load rebuilds out_ in file order, so one sorted save converges the
|
| 1011 |
+
format and every later roundtrip is bit-identical (rebuild_sem x3:
|
| 1012 |
+
md5 06011b36... stable; unit-test enforced). All shipped v3.2 fabrics were
|
| 1013 |
+
rebuilt through the converged path.
|
| 1014 |
+
|
| 1015 |
+
Tools: ablation_suite.py, confidence_ablation.py, router_routes.py,
|
| 1016 |
+
assert_route.py, sub_diff.py; Makefile: `ci` gate + rebuild_sem now in
|
| 1017 |
+
`all` (the stale-binary trap that masked the first sorted-save attempt).
|
| 1018 |
+
Data: v321_bugfix_tables.json (every number above, archived).
|
| 1019 |
+
|
| 1020 |
## v3.2.0 — the semantic layer (Stages 1-4), retrieval by default, the two-stage physics router, the dedicated bank77 fabric
|
| 1021 |
|
| 1022 |
**The semantic field (core, deterministic, no ML).** Every concept node
|
LICENSE
CHANGED
|
@@ -19,6 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
| 19 |
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
SOFTWARE.
|
| 22 |
-
|
| 23 |
-
Dataset licenses are listed in datasets/DATASETS.md and remain those of the
|
| 24 |
-
original publishers.
|
|
|
|
| 19 |
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
SOFTWARE.
|
|
|
|
|
|
|
|
|
README.md
CHANGED
|
@@ -6,6 +6,7 @@ language:
|
|
| 6 |
- hi
|
| 7 |
- ru
|
| 8 |
pipeline_tag: text-classification
|
|
|
|
| 9 |
tags:
|
| 10 |
# --- what it is ---------------------------------------------------------
|
| 11 |
- decision-engine
|
|
@@ -37,301 +38,102 @@ metrics:
|
|
| 37 |
- accuracy
|
| 38 |
- ece
|
| 39 |
- defer-rate
|
| 40 |
-
|
| 41 |
-
--
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
empty per-row instructions, globally-unique opaque anchors (278), and
|
| 57 |
-
round-robin domain interleaving. Full measured evaluation:
|
| 58 |
-
[docs/EVALUATION.md](docs/EVALUATION.md).
|
| 59 |
-
|
| 60 |
-
---
|
| 61 |
-
|
| 62 |
---
|
| 63 |
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
|
| 117 |
-
|
|
| 118 |
-
|
|
| 119 |
-
|
|
| 120 |
-
|
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
fabric
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
``
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
``
|
| 142 |
-
|
| 143 |
-
`engine/` is the v4.0 source (core/, src/, tools/) — the same tree as the
|
| 144 |
-
GitHub repo, so the code and the weights that ship with it are the code
|
| 145 |
-
that was measured.
|
| 146 |
-
|
| 147 |
-
## The three defects (found by re-testing on the v3.9.1 engine)
|
| 148 |
-
|
| 149 |
-
### 1. The calibration was fitted under a different physics than the decision runs
|
| 150 |
-
|
| 151 |
-
The choice/score temperature is fitted on energies that come out of a settle
|
| 152 |
-
pass, and those energies depend on the **whole decide-side composition** —
|
| 153 |
-
the energy gain, the diffusion constant, the decay, the settle-pass cap. In
|
| 154 |
-
this repo the banking and router fabrics were calibrated **without** the
|
| 155 |
-
decide-side energy gain while every `bench` and every `decide` call ran
|
| 156 |
-
**with** it.
|
| 157 |
-
|
| 158 |
-
Measured on the shipped `model/b77-sem` fabric and the 1,003-row cal split
|
| 159 |
-
that ships with it — same engine, one flag apart:
|
| 160 |
-
|
| 161 |
-
| calibration | fitted `T` | rows the fit saw | ECE before → after |
|
| 162 |
-
|---|---:|---:|---:|
|
| 163 |
-
| without the energy gain (**what shipped**) | **0.0037** | **556 of 2,006 (27.7%)** | 0.4567 → 0.4057 |
|
| 164 |
-
| with the energy gain (**what the bench runs**) | **0.3552** | 2,006 of 2,006 (100%) | 0.3183 → 0.3056 |
|
| 165 |
-
|
| 166 |
-
The published `model/b77-sem/calibration.json` carried `T = 0.00472645`
|
| 167 |
-
fitted over **211 rows**; `model/router16` carried `T = 0.00491756` over
|
| 168 |
-
**160 rows**.
|
| 169 |
-
|
| 170 |
-
A near-floor temperature saturates the softmax. The post-temperature top-2
|
| 171 |
-
probability gap goes to ~0.93 on every row, which breaks three things at
|
| 172 |
-
once: the honest-defer gate (an absolute 0.05 margin) **can never fire** —
|
| 173 |
-
the model never abstains, on any input, ever; every answer carries ~0.98
|
| 174 |
-
confidence whether it is right or wrong; and the ECE reported by
|
| 175 |
-
`calibrate` does not describe the ECE the bench measures.
|
| 176 |
-
|
| 177 |
-
**Fix:** a fabric now carries the composition it was calibrated under
|
| 178 |
-
(`physics.json`, next to `calibration.json`). `calibrate` records it;
|
| 179 |
-
`decide`, `bench`, `demo` and `stats` apply it on load. `calibrate` also
|
| 180 |
-
**refuses** to run when the fit would see less than half the question-rows
|
| 181 |
-
(it names the cause and leaves the fabric untouched). The three shipped
|
| 182 |
-
fabrics have been re-calibrated under the matched composition.
|
| 183 |
-
|
| 184 |
-
### 2. The diffusion constant was never re-tuned for the dense fabrics
|
| 185 |
-
|
| 186 |
-
`diffusion` is the fraction of retained energy that flows along the Hebbian
|
| 187 |
-
lanes per settle pass. It is a config value, not an equation, and its
|
| 188 |
-
optimum is a property of the fabric: 0.45 was validated on the small v2-era
|
| 189 |
-
fabrics and is far off the optimum for a 217k-lane fabric. Measured on the
|
| 190 |
-
**cal** split of the shipped banking fabric (selection never touches
|
| 191 |
-
hidden):
|
| 192 |
-
|
| 193 |
-
| diffusion | accuracy (argmax) on cal |
|
| 194 |
-
|---|---:|
|
| 195 |
-
| 0.45 (shipped default) | 0.1316 |
|
| 196 |
-
| **0.02** | **0.4237** |
|
| 197 |
-
|
| 198 |
-
**Fix:** the diffusion value is now a per-fabric property recorded in
|
| 199 |
-
`physics.json`, chosen on the cal split
|
| 200 |
-
(`tools/cal_diffusion_sweep.py`), not a global default.
|
| 201 |
-
|
| 202 |
-
### 3. The headline table was measured against the wrong fabric, on the wrong engine
|
| 203 |
-
|
| 204 |
-
The bank77 row in the old table (`class acc 0.023`) was measured on the
|
| 205 |
-
**shared** `model/giant-latin` fabric, not on the dedicated `model/b77-sem`
|
| 206 |
-
fabric this repo ships and `router.json` routes bank77 to. It was also
|
| 207 |
-
measured with the v3.2.0 engine, which had no honesty gates: under
|
| 208 |
-
v3.9.1 the same run defers **2,129 of 3,080 rows (69%)**, because the
|
| 209 |
-
newer engine refuses to answer a field that carries no candidate energy.
|
| 210 |
-
|
| 211 |
-
Separately: the four `model/giant-*` fabrics were built by the **v3.1.2**
|
| 212 |
-
engine and carry **no semantic field** (their `substrate.bin` has no `SEM4`
|
| 213 |
-
tail), so the v3.2 semantic layer described below is **inert on them**. No
|
| 214 |
-
shipped fabric carries the `IDF5` tail either, so the v3.6 document-
|
| 215 |
-
frequency weighting is inert everywhere.
|
| 216 |
-
|
| 217 |
-
---
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
## Headline measured numbers (hidden splits, scored once)
|
| 221 |
-
|
| 222 |
-
> **⚠ Measured with the v3.2.0 engine.** The core in this repo is now v3.9.1,
|
| 223 |
-
> which applies stricter honesty gates — some previously answered rows now
|
| 224 |
-
> defer. The numbers below have **not** been re-measured under v3.9.1. Treat
|
| 225 |
-
> them as the v3.2.0 result and re-run the evaluation before quoting them.
|
| 226 |
-
> Details and the exact behaviour diff: [docs/ENGINE_PORT.md](docs/ENGINE_PORT.md).
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
| domain | class acc | router | end-to-end |
|
| 230 |
-
|---|---:|---:|---:|
|
| 231 |
-
| tickets_en | 0.904 | 0.831 | 0.761 |
|
| 232 |
-
| sms spam | 0.752 | 0.233 | 0.222 |
|
| 233 |
-
| enron email spam | 0.752 | 0.394 | 0.323 |
|
| 234 |
-
| hate/offensive | 0.653 | 0.381 | 0.277 |
|
| 235 |
-
| ag_news topics | 0.604 | 0.320 | 0.206 |
|
| 236 |
-
| amazon polarity | 0.571 | 0.339 | 0.189 |
|
| 237 |
-
| dbpedia entities | 0.475 | 0.403 | 0.204 |
|
| 238 |
-
| boolq (boolean) | 0.531 | 0.097 | 0.059 |
|
| 239 |
-
| bank77 (77-way) | 0.023 | 0.931 | 0.022 |
|
| 240 |
-
| tickets_bn (bengali substrate) | 0.943 | 1.000 | 0.943 |
|
| 241 |
-
| tickets_hi (devanagari substrate) | 0.920 | 1.000 | 0.920 |
|
| 242 |
-
| tickets_ru (cyrillic substrate) | 0.959 | 1.000 | 0.959 |
|
| 243 |
-
|
| 244 |
-
Honest notes: the single 16-way router is the end-to-end bottleneck for
|
| 245 |
-
same-script domains — blind routing alone measures **0.400** on hidden
|
| 246 |
-
(23,528 rows) and the table's router column is the *informed* condition
|
| 247 |
-
(router + the true domain's class question asked together); naming the
|
| 248 |
-
domain in the API gives the class numbers. bank77's 77-way readout collapses
|
| 249 |
-
in a shared fabric — see **v3.2: the dedicated bank77 fabric** below for the
|
| 250 |
-
architectural fix (0.023 → 0.081 → **0.158**); boolq stays near
|
| 251 |
-
majority — boolean passage comprehension is a measured limit of bag-of-words
|
| 252 |
-
SI physics. Latency ≈ 6-11 ms/row on the 43k-node latin fabric.
|
| 253 |
-
|
| 254 |
-
## v3.2 — the semantic layer, retrieval by default, the two-stage router
|
| 255 |
-
|
| 256 |
-
The engine in this repo is SyFox **v3.9.1** (ported from `syfox-train`; see
|
| 257 |
-
[docs/ENGINE_PORT.md](docs/ENGINE_PORT.md) for the port, the ABI check, and one
|
| 258 |
-
caveat that matters — **the headline numbers below were measured with the
|
| 259 |
-
v3.2.0 engine and have not been re-measured**). The substrate gained:
|
| 260 |
-
the substrate now carries a
|
| 261 |
-
second, deterministic field — a 64-dim semantic vector per concept (signed
|
| 262 |
-
character-trigram hashing + two fabric-grounding passes over the Hebbian
|
| 263 |
-
lanes; no ML, no fit) — from which **resonance edges** leak an
|
| 264 |
-
energy-conserving share of a source's energy to semantically similar
|
| 265 |
-
neighbours during settle. **Context-sensitive lanes** learn required/forbidden
|
| 266 |
-
context words from the lessons that laid them and carry less when the
|
| 267 |
-
decision's own tokens do not match. **Retrieval is default-on**: a
|
| 268 |
-
`memories.jsonl` in the model dir primes every decide with the outcomes of
|
| 269 |
-
the most resonating lived experiences (Hopfield-style settled-field cosine),
|
| 270 |
-
disclosed in the response as `usage.retrieval`. Pre-v3.2 fabrics replay
|
| 271 |
-
bit-for-bit; `--no-semantics / --no-retrieval / --no-hierarchy` (and the
|
| 272 |
-
equal `options` keys on HTTP) are the kill switches.
|
| 273 |
-
|
| 274 |
-
Two new model dirs ship here:
|
| 275 |
-
|
| 276 |
-
- **model/b77-sem** — the DEDICATED banking77 fabric: 9,000 opaque-anchor
|
| 277 |
-
intent lessons + 9,000 category lessons, 1,648 nodes / 217,729 lanes,
|
| 278 |
-
7,728 resonance edges, 141,920 context-signed lanes, 256 retrieval
|
| 279 |
-
memories, calibrated. Hidden (3,080 rows, scored once, energy-norm):
|
| 280 |
-
**0.158 top-1** vs 0.081 (v3.1.0 dedicated+opaque) and 0.023 (shared
|
| 281 |
-
giant). Ablation: `--no-semantics` 0.039 — the semantic field IS the jump;
|
| 282 |
-
the hierarchy gate measured-negative on cal and ships floor 1.0 = off.
|
| 283 |
-
- **model/router16** — the two-stage physics router: 4,742 nodes trained
|
| 284 |
-
ONLY on router questions (16 domain anchors x 60 rows). Cal 16-way routing
|
| 285 |
-
**0.444** (chance 0.0625), ECE 0.380 → 0.086. Route with
|
| 286 |
-
`decide --router model/router16` (CLI) or the two-call pattern below —
|
| 287 |
-
bank77 queries route to model/b77-sem, everything else to giant-latin.
|
| 288 |
-
|
| 289 |
-
Zero-shot re-run under v3.2 (docs/ZEROSHOT.md Part 4,
|
| 290 |
-
datasets/zeroshot_v32_results.json): email spam on the tickets-only fabric
|
| 291 |
-
6/6 plain and 6/6 semantic rebuild; sms spam 5/6 (the one error at conf
|
| 292 |
-
0.103, disclosed); snake 1/8 both; tic-tac-toe picks cell 1 at conf 0 —
|
| 293 |
-
multi-constraint composition fails exactly as in Part 1 and the semantic
|
| 294 |
-
field does not fake it.
|
| 295 |
-
|
| 296 |
-
## Files
|
| 297 |
-
|
| 298 |
-
```
|
| 299 |
-
engine/ C++ SI substrate core v4.0 (core/*.hpp, src/*.cpp, tools/) — builds with make
|
| 300 |
-
NOTE: refresh ../build/libsyfox_core.so after rebuilding, or the
|
| 301 |
-
python bridge will keep loading the stale core (ENGINE_PORT.md)
|
| 302 |
-
server/ HTTP bridge (v3 API, CLI-equal flags incl. the v3.2 knobs)
|
| 303 |
-
inference.py thin python wrapper (auto script routing)
|
| 304 |
-
model/ NINE fabrics, all carrying their recorded decide-side
|
| 305 |
-
composition in physics.json (diffusion, energy_norm, affinity_mix):
|
| 306 |
-
giant-latin/ 16-domain shared fabric AFR, diffusion 0.45
|
| 307 |
-
giant-bengali/ Bengali script fabric AFR, diffusion 0.45
|
| 308 |
-
giant-devanagari/ Hindi script fabric AFR, diffusion 0.45
|
| 309 |
-
giant-cyrillic/ Russian script fabric AFR, diffusion 0.45
|
| 310 |
-
b77-sem/ dedicated 77-way banking AFR, diffusion 0.02
|
| 311 |
-
router16/ two-stage physics router AFR, diffusion 0.45
|
| 312 |
-
agnews/ handcrafted-probe gated AFR, diffusion 0.45
|
| 313 |
-
sst2/ handcrafted-probe gated LEGACY readout (see v4.0)
|
| 314 |
-
amazon/ handcrafted-probe gated LEGACY readout (see v4.0)
|
| 315 |
-
datasets/ eval hidden splits, probes, schemas, MANIFEST (SHA-256),
|
| 316 |
-
novel_probes/ (handcrafted admission probes + RESULTS.json),
|
| 317 |
-
router16_router.json, zeroshot_v32_results.json, DATASETS.md
|
| 318 |
-
docs/ ENGINE_PORT.md (v4.0 port + caveats), EVALUATION.md,
|
| 319 |
-
ARCHITECTURE.md, PROBING.md, ZEROSHOT.md
|
| 320 |
-
examples/ JSON payloads + curl + python usage
|
| 321 |
-
Dockerfile HuggingFace Spaces (builds engine, serves on 7860)
|
| 322 |
-
```
|
| 323 |
-
|
| 324 |
-
## Build
|
| 325 |
-
|
| 326 |
-
```bash
|
| 327 |
-
cd engine && make all && make sync-so && cd ..
|
| 328 |
-
```
|
| 329 |
-
|
| 330 |
-
`make sync-so` is **required** for the Python bridge: it loads
|
| 331 |
-
`build/libsyfox_core.so` from the **repo root**, not `engine/build/`, so a
|
| 332 |
-
plain `make all` leaves a stale library in place and `from inference import
|
| 333 |
-
SyFox` fails with `undefined symbol`. Full instructions, Docker, retraining
|
| 334 |
-
and troubleshooting: **[BUILDING.md](BUILDING.md)**.
|
| 335 |
|
| 336 |
## Usage (python)
|
| 337 |
|
|
@@ -354,58 +156,86 @@ curl -X POST http://localhost:7860/v1/systemone -H 'Content-Type: application/js
|
|
| 354 |
"state": "Congratulations! You won a £1000 prize. Call now to claim!",
|
| 355 |
"questions": {"domain": {"type": "choice", "instructions": "",
|
| 356 |
"criteria": {"rt00": "support billing sales technical", "rt05": "text messages spam",
|
| 357 |
-
|
| 358 |
-
"options": {"energy_norm": true
|
| 359 |
}'
|
| 360 |
```
|
| 361 |
|
| 362 |
-
The server also exposes `/v1/health`, `/v1/models`
|
| 363 |
-
(active-learning mirror) and
|
| 364 |
-
|
| 365 |
-
and the v3.2 knobs `semantics`,
|
| 366 |
-
`retrieval_dose`, `hierarchy`.
|
|
|
|
|
|
|
| 367 |
|
| 368 |
## Docker (HuggingFace Spaces)
|
| 369 |
|
| 370 |
-
The included Dockerfile builds the engine from source and serves
|
| 371 |
-
on port 7860
|
| 372 |
-
|
|
|
|
|
|
|
| 373 |
|
| 374 |
-
##
|
| 375 |
|
| 376 |
-
|
| 377 |
-
|
| 378 |
-
`
|
| 379 |
-
firewall-enforced (never taught, never calibrated on); all model/wording
|
| 380 |
-
selection happened on cal; the core physics was never modified.
|
| 381 |
|
| 382 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 383 |
|
| 384 |
-
|
| 385 |
-
wording sweep shows it is the readout mechanism, not the wording); the
|
| 386 |
-
v3.2 dedicated router16 fabric raises blind 16-way routing to 0.444 on its
|
| 387 |
-
cal carve and routes bank77 to its dedicated fabric.
|
| 388 |
-
- 77-way banking intents: dedicated fabric v3.2 measures 0.158 hidden
|
| 389 |
-
(semantic field ablation 0.039 — the field is the mechanism); higher
|
| 390 |
-
ladders need arbitration or per-category substrates (hierarchy gating
|
| 391 |
-
itself measured-negative on cal, shipped off).
|
| 392 |
-
- Boolean passage comprehension is near-majority — the substrate reads
|
| 393 |
-
lexical fields, not logic.
|
| 394 |
-
- Zero-shot composition (constraints, topology) is NOT solved by scale or
|
| 395 |
-
by the semantic field — see docs/ZEROSHOT.md Parts 1 and 4 for the
|
| 396 |
-
measured two-dimension separation.
|
| 397 |
|
| 398 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 399 |
|
| 400 |
-
|
| 401 |
-
|
| 402 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 403 |
|
| 404 |
## New models — gated on handcrafted NOVEL questions
|
| 405 |
|
| 406 |
-
Three fabrics trained and admitted, each passing a
|
| 407 |
-
to defeat the cheapest way to pass
|
| 408 |
-
`datasets/novel_probes/`):
|
| 409 |
|
| 410 |
| model | task | labels | novel acc | required | outcome |
|
| 411 |
|---|---|---:|---:|---:|---|
|
|
@@ -413,41 +243,37 @@ to defeat the cheapest way to pass (`tools/novel_gate.py`, probes shipped in
|
|
| 413 |
| `model/agnews` | news topic | 4 | **0.583** | 0.400 | **ADMIT** |
|
| 414 |
| `model/amazon` | product polarity | 2 | **0.700** | 0.650 | **ADMIT** |
|
| 415 |
|
| 416 |
-
Admission rule: `novel_acc > max(majority_baseline, uniform_chance + 0.15)`
|
| 417 |
-
no prediction collapse (≤60% of probes answered with one class).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 418 |
|
| 419 |
-
|
| 420 |
-
./engine/build/syfox decide --model model/sst2 \
|
| 421 |
-
--state "a hollow, inert picture that never risks anything" \
|
| 422 |
-
--questions '{"q":{"type":"choice","instructions":"sentiment",
|
| 423 |
-
"criteria":{"negative":"negative","positive":"positive"}}}'
|
| 424 |
-
```
|
| 425 |
|
| 426 |
-
|
| 427 |
-
|
| 428 |
-
|
| 429 |
-
`_train`, so it rewards memorising n-grams — a bag-of-words fabric scores well
|
| 430 |
-
there while understanding nothing. The probe set is built against that:
|
| 431 |
-
|
| 432 |
-
- no probe sentence is copied from any split;
|
| 433 |
-
- paraphrase-invariant (same meaning, deliberately different words);
|
| 434 |
-
- minimal pairs differing in one content word with opposite labels;
|
| 435 |
-
- evaluative vocabulary chosen to be rare in the training distribution;
|
| 436 |
-
- **a reversal canary** per polarity set — an inverted sentence of one of its
|
| 437 |
-
own probes, which a lexical shortcut must fail.
|
| 438 |
-
|
| 439 |
-
### Two candidates were REJECTED — recorded, not hidden
|
| 440 |
-
|
| 441 |
-
| model | task | novel acc | required | why |
|
| 442 |
-
|---|---|---:|---:|---|
|
| 443 |
-
| `toxic` | toxicity | 0.286 | 0.650 | **below baseline**; all 5 toxicity probes predicted non-toxic; 71% of answers collapsed to one class |
|
| 444 |
-
| `emotion` | 6-way emotion | 0.250 | 0.317 | **chance**. 3/12 on six classes; errors show no structure (joy→sadness, love→anger) |
|
| 445 |
-
|
| 446 |
-
`toxic` is the interesting failure: hate-speech is exactly what a moderation
|
| 447 |
-
tag promises, and a bag-of-words SI fabric does not separate abuse from ordinary
|
| 448 |
-
blunt speech at all. `emotion` is the one this repo previously mislabelled 100%
|
| 449 |
-
(M6); the corrected fabric still does not clear a handcrafted bar. **Neither
|
| 450 |
-
model is published.** `xnli` was also trained and measured at 0.338 against a
|
| 451 |
-
0.333 chance floor — compositional language understanding is a genuine limit
|
| 452 |
-
of bag-of-words SI physics, consistent with this project's own composition
|
| 453 |
-
benchmark at 0/16.
|
|
|
|
| 6 |
- hi
|
| 7 |
- ru
|
| 8 |
pipeline_tag: text-classification
|
| 9 |
+
library_name: syfox
|
| 10 |
tags:
|
| 11 |
# --- what it is ---------------------------------------------------------
|
| 12 |
- decision-engine
|
|
|
|
| 38 |
- accuracy
|
| 39 |
- ece
|
| 40 |
- defer-rate
|
| 41 |
+
model-index:
|
| 42 |
+
- name: SyFox-v4.0.2
|
| 43 |
+
results:
|
| 44 |
+
- task:
|
| 45 |
+
type: text-classification
|
| 46 |
+
name: Banking intent classification (77-way)
|
| 47 |
+
dataset:
|
| 48 |
+
type: PolyAI/banking77
|
| 49 |
+
name: banking77 hidden split (n=2801, scored once)
|
| 50 |
+
metrics:
|
| 51 |
+
- type: accuracy
|
| 52 |
+
value: 0.629
|
| 53 |
+
name: top-1 accuracy
|
| 54 |
+
- type: ece
|
| 55 |
+
value: 0.077
|
| 56 |
+
name: expected calibration error
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
---
|
| 58 |
|
| 59 |
+
# SyFox v4.0.2 — a System-One decision engine on an SI substrate (no NN, no transformer)
|
| 60 |
+
|
| 61 |
+
One fabric family covering **16 decision domains** (customer support,
|
| 62 |
+
banking intents, spam, emotions, moderation, news topics, product
|
| 63 |
+
sentiment, entity typing, boolean comprehension, game commands,
|
| 64 |
+
guardrails) plus per-script substrates for Bengali / Devanagari /
|
| 65 |
+
Cyrillic with automatic script routing. **No transformer, no neural
|
| 66 |
+
network, no pattern matching**: every decision comes from a C++ SI
|
| 67 |
+
substrate — energy injection → dissipative settle → affinity-field
|
| 68 |
+
resonance readout → honest silence. The lanes ARE the knowledge; every
|
| 69 |
+
one is inspectable in `model/*/substrate.bin`.
|
| 70 |
+
|
| 71 |
+
This is the **v4.0.2 verified release**: the v4.0 affinity-field
|
| 72 |
+
readout, the shipped fabrics repaired and re-calibrated under it, and
|
| 73 |
+
the bank77 fabric retrained with the v3.6 ordered-bigram lanes. Every
|
| 74 |
+
number below was measured end to end on a fresh clone with every CI
|
| 75 |
+
gate armed — full story in [docs/RETEST_v402.md](docs/RETEST_v402.md),
|
| 76 |
+
raw tables in [data/v401_freshclone_tables.json](data/v401_freshclone_tables.json),
|
| 77 |
+
engine history in [CHANGELOG.md](CHANGELOG.md).
|
| 78 |
+
|
| 79 |
+
## The measured ladder (v3.9.3 baseline → v4.0.2)
|
| 80 |
+
|
| 81 |
+
The handmade gate is the anti-contamination check: 148 hand-written
|
| 82 |
+
probes deliberately outside all training/eval vocabulary. Hidden splits
|
| 83 |
+
were scored once, after all selection was frozen on cal.
|
| 84 |
+
|
| 85 |
+
| rung | handmade TOTAL | bank77 handmade | bank77 HIDDEN | giant HIDDEN (class) |
|
| 86 |
+
|---|---:|---:|---:|---:|
|
| 87 |
+
| shipped fabrics, legacy readout (v3.9.3 baseline) | 0.291 | 0.103 | 0.158 | 0.318 |
|
| 88 |
+
| + repair-lanes + affinity-field readout (mix 0.3) | 0.358 | 0.176 | 0.275 | 0.479 |
|
| 89 |
+
| + CAL-selected diffusion (giant/b77 d0.02, router d0.45) | 0.385 | 0.191 | 0.460 | 0.551 |
|
| 90 |
+
| + bank77 retrained with ordered bigram lanes + IDF | **0.432** | **0.294** | **0.629** | 0.551 |
|
| 91 |
+
|
| 92 |
+
Giant per-domain HIDDEN (class) at the selected composition:
|
| 93 |
+
tickets_en 0.962, game 0.942, enron 0.894, hate 0.774, agnews 0.792,
|
| 94 |
+
sms 0.770, dbpedia 0.714, clinc 0.565, boolq 0.547, emotion 0.438,
|
| 95 |
+
bank77 0.468 (the dedicated fabric scores 0.629). The giant's router
|
| 96 |
+
question recovered 0.254 → 0.496 (e2e 0.153 → 0.315).
|
| 97 |
+
|
| 98 |
+
The handmade bank77 gain (0.103 → 0.294) is the point: the probes are
|
| 99 |
+
outside the training vocabulary, so the retrained fabric generalises,
|
| 100 |
+
it did not memorise. Disclosed regressions, not hidden: hate handmade
|
| 101 |
+
0.500 → 0.167 and emotion 0.417 → 0.333 (per-domain diffusion
|
| 102 |
+
trade-off; cal selected d0.02 for the giant as a whole), both above
|
| 103 |
+
the 0.167 baseline.
|
| 104 |
+
|
| 105 |
+
## vs JEV AI and Laya (third-party published numbers)
|
| 106 |
+
|
| 107 |
+
Sources: arxiv 2609.37647 (jev-1.13.0, 37 datasets, third-party);
|
| 108 |
+
laya-model.com/benchmarks and the Laya model card (vendor); typesafe.ai
|
| 109 |
+
launch (vendor workflow claim).
|
| 110 |
+
|
| 111 |
+
| axis | Jev | Laya | SyFox v4.0.2 (measured here) |
|
| 112 |
+
|---|---|---|---|
|
| 113 |
+
| banking77 | 0.870 | 0.425 | **0.629** (+20 vs Laya, −24 vs Jev; was −71) |
|
| 114 |
+
| ag_news | 0.91 | — | 0.792 (open gap, see Limitations) |
|
| 115 |
+
| emotion | 0.48 | — | 0.499 |
|
| 116 |
+
| ECE | 0.144–0.246 | 0.466 pre-refit | **0.067–0.077** |
|
| 117 |
+
| latency p50 | 236–276 ms | 39.5 ms (T4) | **≤ 611 µs** |
|
| 118 |
+
| honest defer, reasons | confidence only | overconfident pre-refit | **OOD 100% with reason** |
|
| 119 |
+
| determinism | not published | not published | **bit-reproducible, CI-enforced** |
|
| 120 |
+
| cost | $0.042/M in | self-host | **$0 local** |
|
| 121 |
+
| options per choice | 255 cap, then two-stage | ~20 (token budget) | **unbounded criteria map** |
|
| 122 |
+
|
| 123 |
+
## The fabrics (this repo)
|
| 124 |
+
|
| 125 |
+
Composition = the decide-side physics a fabric was calibrated under,
|
| 126 |
+
recorded in its `physics.json` and read back at model load (v4.0) —
|
| 127 |
+
`diffusion`, `affinity_mix 0.3`, `energy_norm`. Threshold
|
| 128 |
+
`T` = fitted choice temperature (`calibration.json`).
|
| 129 |
+
|
| 130 |
+
| fabric | task | nodes | lanes | version | diffusion | T | measured |
|
| 131 |
+
|---|---|---:|---:|---|---:|---:|---|
|
| 132 |
+
| `model/giant-latin` | 16 domains, latin script | 43,420 | 1,905,170 | 4.0.1 (repaired) | 0.02 | 0.157 | class total 0.551 hidden |
|
| 133 |
+
| `model/b77-sem` | banking77, 77-way | 19,707 | 1,383,120 | 4.0.1 (bigram retrain) | 0.02 | 0.100 | 0.629 hidden, ECE 0.077, 54,000 lessons |
|
| 134 |
+
| `model/router16` | two-stage physics router | 4,742 | 67,089 | 4.0.1 (repaired) | 0.45 | 0.190 | router question 0.496 hidden |
|
| 135 |
+
| `model/giant-{bengali,devanagari,cyrillic}` | tickets, per-script | 579 / 546 / 680 | ~13k | 3.1.2 | — | — | tickets_bn 0.943, hi 0.920, ru 0.959 |
|
| 136 |
+
| `model/{sst2,agnews,amazon}` | single-domain, probe-gated | 28,730 / 107,235 / 157,048 | 0.3–1.7 M | 3.9.1 | — | — | novel-gate ADMIT (table below) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 137 |
|
| 138 |
## Usage (python)
|
| 139 |
|
|
|
|
| 156 |
"state": "Congratulations! You won a £1000 prize. Call now to claim!",
|
| 157 |
"questions": {"domain": {"type": "choice", "instructions": "",
|
| 158 |
"criteria": {"rt00": "support billing sales technical", "rt05": "text messages spam",
|
| 159 |
+
"...": "see datasets/schemas.json"}}},
|
| 160 |
+
"options": {"energy_norm": true}
|
| 161 |
}'
|
| 162 |
```
|
| 163 |
|
| 164 |
+
The server also exposes `/v1/health`, `/v1/models` (fabric discovery
|
| 165 |
+
from `meta.json`), `/v1/deferrals` (active-learning mirror) and
|
| 166 |
+
per-call options `energy_norm`, `salience_gating`, `miller_window`,
|
| 167 |
+
`ngrams`, `defer_margin`, `evidence`, and the v3.2 knobs `semantics`,
|
| 168 |
+
`retrieval`, `retrieval_topk`, `retrieval_dose`, `hierarchy`.
|
| 169 |
+
Script routing: `--lang auto` detects Bengali / Devanagari / Cyrillic
|
| 170 |
+
and routes to the matching substrate with an honest fallback note.
|
| 171 |
|
| 172 |
## Docker (HuggingFace Spaces)
|
| 173 |
|
| 174 |
+
The included Dockerfile builds the v4.0.2 engine from source and serves
|
| 175 |
+
the v3 API on port 7860 (`--model model/giant --lang auto
|
| 176 |
+
--energy-norm`). Create a Docker Space, push this repo, done. The
|
| 177 |
+
`model/giant` argument is a family prefix: routing appends the script
|
| 178 |
+
slug (`model/giant-latin`, `model/giant-bengali`, ...).
|
| 179 |
|
| 180 |
+
## Build (no Docker)
|
| 181 |
|
| 182 |
+
```bash
|
| 183 |
+
cd engine && make all && make sync-so && cd ..
|
| 184 |
+
```
|
|
|
|
|
|
|
| 185 |
|
| 186 |
+
`make sync-so` is **required** for the Python bridge: it loads
|
| 187 |
+
`build/libsyfox_core.so` from the repo root, not `engine/build/`, so a
|
| 188 |
+
plain `make all` leaves a stale library in place and
|
| 189 |
+
`from inference import SyFox` fails with `undefined symbol`. A
|
| 190 |
+
v4.0.2-built library is committed at `build/libsyfox_core.so`. Full
|
| 191 |
+
instructions: **[BUILDING.md](BUILDING.md)**.
|
| 192 |
|
| 193 |
+
## Files
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 194 |
|
| 195 |
+
```
|
| 196 |
+
engine/ C++ SI substrate core v4.0.2 (core/*.hpp, src/*.cpp) — builds with make
|
| 197 |
+
server/ HTTP bridge (v3 API, CLI-equal flags incl. the v3.2 knobs)
|
| 198 |
+
inference.py thin python wrapper (auto script routing)
|
| 199 |
+
config.json machine-readable fabric registry + serving defaults
|
| 200 |
+
model/ the fabrics (substrate.bin + physics/calibration/meta/hierarchy JSONs)
|
| 201 |
+
datasets/ eval hidden splits, cal splits, probes, schemas (training-time),
|
| 202 |
+
MANIFEST.json (sha-256), novel_probes/, DATASETS.md
|
| 203 |
+
docs/ RETEST_v402.md (CURRENT verified numbers), ENGINE_PORT.md,
|
| 204 |
+
EVALUATION.md, ARCHITECTURE.md, PROBING.md, ZEROSHOT.md (v3.2-era history)
|
| 205 |
+
data/ v401_freshclone_tables.json — every measured number, machine-readable
|
| 206 |
+
examples/ JSON payloads + curl + python usage
|
| 207 |
+
Dockerfile HuggingFace Spaces (builds engine, serves on 7860)
|
| 208 |
+
```
|
| 209 |
|
| 210 |
+
`datasets/schemas.json` is the **training-time** criteria set (md5
|
| 211 |
+
`b42f99e7c94721a76653c4d69f426ea4`). Criteria text is injected energy:
|
| 212 |
+
never regenerate, reword or re-mine it against existing fabrics — a
|
| 213 |
+
different mining asks old fabrics with new wording and silently breaks
|
| 214 |
+
them (the v3.9.2 lesson, see CHANGELOG).
|
| 215 |
+
|
| 216 |
+
## Evaluation methodology (why you can trust the ladder)
|
| 217 |
+
|
| 218 |
+
- **Anti-contamination first.** The headline gate is 148 hand-written
|
| 219 |
+
probes outside all training/eval vocabulary — the only check that
|
| 220 |
+
can see a fabric that memorised its corpus instead of learning it.
|
| 221 |
+
- **Hidden splits scored once**, after every selection decision was
|
| 222 |
+
frozen on cal. No iteration against hidden.
|
| 223 |
+
- **Composition selection on cal only**, per fabric: diffusion 0.02
|
| 224 |
+
beats 0.45 on cal for giant-latin (0.718 vs 0.602) and b77-sem;
|
| 225 |
+
router16 keeps 0.45 (0.601 vs 0.581). Measured, recorded in each
|
| 226 |
+
fabric's physics.json, read back at load.
|
| 227 |
+
- **Fit-decide parity CI-enforced**: a fitted temperature may only
|
| 228 |
+
ship attached to the decide-side composition it was fitted under.
|
| 229 |
+
- **Bit-reproducible**: same rows, same order, same epochs → same
|
| 230 |
+
bytes. Enforced in CI.
|
| 231 |
+
- **Firewall between splits**: hidden was never taught, never
|
| 232 |
+
calibrated on.
|
| 233 |
|
| 234 |
## New models — gated on handcrafted NOVEL questions
|
| 235 |
|
| 236 |
+
Three single-domain fabrics trained and admitted, each passing a
|
| 237 |
+
handcrafted probe set built to defeat the cheapest way to pass
|
| 238 |
+
(`tools/novel_gate.py`, probes shipped in `datasets/novel_probes/`):
|
| 239 |
|
| 240 |
| model | task | labels | novel acc | required | outcome |
|
| 241 |
|---|---|---:|---:|---:|---|
|
|
|
|
| 243 |
| `model/agnews` | news topic | 4 | **0.583** | 0.400 | **ADMIT** |
|
| 244 |
| `model/amazon` | product polarity | 2 | **0.700** | 0.650 | **ADMIT** |
|
| 245 |
|
| 246 |
+
Admission rule: `novel_acc > max(majority_baseline, uniform_chance + 0.15)`
|
| 247 |
+
and no prediction collapse (≤60% of probes answered with one class).
|
| 248 |
+
Two candidates were REJECTED and are recorded, not hidden: `toxic`
|
| 249 |
+
(0.286 vs 0.650 required — a bag-of-words SI fabric does not separate
|
| 250 |
+
abuse from ordinary blunt speech) and 6-way `emotion` (0.250 vs 0.317 —
|
| 251 |
+
chance). `xnli` measured 0.338 against a 0.333 chance floor.
|
| 252 |
+
**None of the three is published.**
|
| 253 |
+
|
| 254 |
+
## Limitations (honest)
|
| 255 |
+
|
| 256 |
+
- **ag_news 0.792 vs Jev 0.91** — the giant's shared-fabric anchors.
|
| 257 |
+
The dedicated-fabric move that took bank77 from 0.460 to 0.629 is
|
| 258 |
+
the documented next step (a dedicated agnews fabric retrained with
|
| 259 |
+
the v3.6 bigram lanes).
|
| 260 |
+
- bank77 0.629 vs Jev 0.870 — narrowed from a 71-point deficit to 24;
|
| 261 |
+
the remaining gap is fine-grained retrieval (gold sits at ranks 2–20
|
| 262 |
+
for most misses; the fabric holds the signal).
|
| 263 |
+
- Single-router e2e is bottlenecked by 16-way choice in one fabric;
|
| 264 |
+
the two-stage router16 fabric routes bank77 to its dedicated fabric
|
| 265 |
+
and recovers the router question to 0.496.
|
| 266 |
+
- Boolean passage comprehension is near-majority — the substrate reads
|
| 267 |
+
lexical fields, not logic.
|
| 268 |
+
- Zero-shot composition (constraints, topology) is NOT solved by scale
|
| 269 |
+
or by the semantic field — see docs/ZEROSHOT.md for the measured
|
| 270 |
+
two-dimension separation.
|
| 271 |
+
- The v397-era experiment (`model/giant-latin-v397`,
|
| 272 |
+
`schemas-v397.json`) was removed from this repo: it was never part
|
| 273 |
+
of the v4.0.2 verification.
|
| 274 |
|
| 275 |
+
## License & credit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 276 |
|
| 277 |
+
MIT © 2026 Mr-DS-ML-85. Core mechanics ported from the author's
|
| 278 |
+
Synthetic-Intelligence research substrate. Dataset licenses: see
|
| 279 |
+
[datasets/DATASETS.md](datasets/DATASETS.md).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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:cbaa8f6429e9b42260e568f6d948c8ba8063367c97b99fdf20b2f1cca5159f78
|
| 3 |
+
size 429120
|
config.json
ADDED
|
@@ -0,0 +1,167 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": "1.0.0",
|
| 3 |
+
"engine": {
|
| 4 |
+
"name": "syfox",
|
| 5 |
+
"version": "4.0.2",
|
| 6 |
+
"core": "si-substrate",
|
| 7 |
+
"language": "c++17",
|
| 8 |
+
"build": "cd engine && make build/libsyfox_core.so",
|
| 9 |
+
"decision_path": "energy injection -> dissipative settle -> affinity-field resonance readout -> honest silence",
|
| 10 |
+
"capabilities": {
|
| 11 |
+
"semantics": true,
|
| 12 |
+
"retrieval": true,
|
| 13 |
+
"hierarchy": true,
|
| 14 |
+
"ngrams": true,
|
| 15 |
+
"affinity_field_readout": true,
|
| 16 |
+
"defer": "opt-in via options.defer_margin"
|
| 17 |
+
},
|
| 18 |
+
"determinism": "bit-reproducible (same rows, same order, same epochs -> same bytes; CI-enforced)"
|
| 19 |
+
},
|
| 20 |
+
"pipeline_tag": "text-classification",
|
| 21 |
+
"default_model": "model/giant",
|
| 22 |
+
"serving": {
|
| 23 |
+
"api": "POST /v1/systemone (v3 HTTP, Jev-compatible)",
|
| 24 |
+
"discovery": "GET /v1/models (from model/*/meta.json)",
|
| 25 |
+
"health": "GET /v1/health (core version, fabric info, uptime)",
|
| 26 |
+
"active_learning": "GET/DELETE /v1/deferrals",
|
| 27 |
+
"port": 7860,
|
| 28 |
+
"defaults": {
|
| 29 |
+
"lang": "auto",
|
| 30 |
+
"energy_norm": true,
|
| 31 |
+
"ngrams": "auto",
|
| 32 |
+
"defer_margin": null
|
| 33 |
+
},
|
| 34 |
+
"per_call_options": [
|
| 35 |
+
"energy_norm", "salience_gating", "miller_window", "ngrams",
|
| 36 |
+
"defer_margin", "evidence", "semantics", "retrieval",
|
| 37 |
+
"retrieval_topk", "retrieval_dose", "hierarchy"
|
| 38 |
+
]
|
| 39 |
+
},
|
| 40 |
+
"composition_policy": "Each fabric records the decide-side composition it was calibrated under in model/<fabric>/physics.json (diffusion, affinity_mix, energy_norm, recorded=true). The engine reads it back at model load (v4.0); decide, bench and the fit-decide parity gate all run under it. Do not calibrate a fabric under one composition and serve it under another.",
|
| 41 |
+
"script_routing": {
|
| 42 |
+
"auto": "detect script, append slug to the base model family prefix",
|
| 43 |
+
"routes": {
|
| 44 |
+
"latin": "model/giant-latin",
|
| 45 |
+
"bengali": "model/giant-bengali",
|
| 46 |
+
"devanagari": "model/giant-devanagari",
|
| 47 |
+
"cyrillic": "model/giant-cyrillic",
|
| 48 |
+
"fallback": "model/giant-latin with an honest note"
|
| 49 |
+
}
|
| 50 |
+
},
|
| 51 |
+
"fabrics": {
|
| 52 |
+
"giant-latin": {
|
| 53 |
+
"path": "model/giant-latin",
|
| 54 |
+
"task": "16 decision domains, latin script (support, banking, spam, emotions, moderation, news, sentiment, entities, boolean, game, guardrails)",
|
| 55 |
+
"nodes": 43420,
|
| 56 |
+
"lanes": 1905170,
|
| 57 |
+
"evidence_records": 1758410,
|
| 58 |
+
"sem_edges": 258728,
|
| 59 |
+
"trained_version": "4.0.1 (v3.1.2 build, repair-lanes applied, recalibrated)",
|
| 60 |
+
"composition": {"diffusion": 0.02, "affinity_mix": 0.3, "energy_norm": true, "affinity_pmi": false},
|
| 61 |
+
"choice_temperature": 0.157378,
|
| 62 |
+
"measured": {
|
| 63 |
+
"hidden_class_total": 0.551,
|
| 64 |
+
"per_domain_hidden": {
|
| 65 |
+
"tickets_en": 0.962, "game": 0.942, "enron": 0.894, "hate": 0.774,
|
| 66 |
+
"agnews": 0.792, "sms": 0.770, "dbpedia": 0.714, "clinc": 0.565,
|
| 67 |
+
"boolq": 0.547, "emotion": 0.438, "bank77": 0.468
|
| 68 |
+
},
|
| 69 |
+
"router_question_hidden": 0.496,
|
| 70 |
+
"e2e_hidden": 0.315
|
| 71 |
+
}
|
| 72 |
+
},
|
| 73 |
+
"b77-sem": {
|
| 74 |
+
"path": "model/b77-sem",
|
| 75 |
+
"task": "banking77 intent classification, 77-way (dedicated fabric)",
|
| 76 |
+
"nodes": 19707,
|
| 77 |
+
"lanes": 1383120,
|
| 78 |
+
"lessons": 54000,
|
| 79 |
+
"retrieval_memories": 256,
|
| 80 |
+
"sem_edges": 116684,
|
| 81 |
+
"lane_contexts": 131724,
|
| 82 |
+
"trained_version": "4.0.1 (retrained with v3.6 ordered bigram lanes + document-frequency rarity weighting)",
|
| 83 |
+
"composition": {"diffusion": 0.02, "affinity_mix": 0.3, "energy_norm": true, "affinity_pmi": false},
|
| 84 |
+
"choice_temperature": 0.100495,
|
| 85 |
+
"measured": {
|
| 86 |
+
"hidden_top1": 0.629,
|
| 87 |
+
"hidden_n": 2801,
|
| 88 |
+
"defer_rate": 0.091,
|
| 89 |
+
"ece": 0.077,
|
| 90 |
+
"cal_top1": 0.612,
|
| 91 |
+
"handmade_bank77": 0.294,
|
| 92 |
+
"ladder": [0.158, 0.275, 0.46, 0.629]
|
| 93 |
+
}
|
| 94 |
+
},
|
| 95 |
+
"router16": {
|
| 96 |
+
"path": "model/router16",
|
| 97 |
+
"task": "two-stage physics router: 16 domain anchors, routes bank77 to the dedicated fabric",
|
| 98 |
+
"nodes": 4742,
|
| 99 |
+
"lanes": 67089,
|
| 100 |
+
"lane_contexts": 29661,
|
| 101 |
+
"trained_version": "4.0.1 (v3.2.0 build, repair-lanes applied, recalibrated)",
|
| 102 |
+
"composition": {"diffusion": 0.45, "affinity_mix": 0.3, "energy_norm": true, "affinity_pmi": false},
|
| 103 |
+
"choice_temperature": 0.189714,
|
| 104 |
+
"measured": {"cal_16way": 0.601, "router_question_hidden": 0.496}
|
| 105 |
+
},
|
| 106 |
+
"giant-bengali": {
|
| 107 |
+
"path": "model/giant-bengali", "task": "support tickets, bengali script",
|
| 108 |
+
"nodes": 579, "lanes": 12972, "trained_version": "3.1.2",
|
| 109 |
+
"measured": {"hidden_class": 0.943}
|
| 110 |
+
},
|
| 111 |
+
"giant-devanagari": {
|
| 112 |
+
"path": "model/giant-devanagari", "task": "support tickets, devanagari script",
|
| 113 |
+
"nodes": 546, "lanes": 12353, "trained_version": "3.1.2",
|
| 114 |
+
"measured": {"hidden_class": 0.920}
|
| 115 |
+
},
|
| 116 |
+
"giant-cyrillic": {
|
| 117 |
+
"path": "model/giant-cyrillic", "task": "support tickets, cyrillic script",
|
| 118 |
+
"nodes": 680, "lanes": 14915, "trained_version": "3.1.2",
|
| 119 |
+
"measured": {"hidden_class": 0.959}
|
| 120 |
+
},
|
| 121 |
+
"sst2": {
|
| 122 |
+
"path": "model/sst2", "task": "sentiment (Stanford SST-2, 2-way)",
|
| 123 |
+
"nodes": 28730, "lanes": 309029, "trained_version": "3.9.1",
|
| 124 |
+
"admission": "novel-gate ADMIT: 0.750 vs 0.650 required"
|
| 125 |
+
},
|
| 126 |
+
"agnews": {
|
| 127 |
+
"path": "model/agnews", "task": "news topic (4-way)",
|
| 128 |
+
"nodes": 107235, "lanes": 832523, "trained_version": "3.9.1",
|
| 129 |
+
"admission": "novel-gate ADMIT: 0.583 vs 0.400 required"
|
| 130 |
+
},
|
| 131 |
+
"amazon": {
|
| 132 |
+
"path": "model/amazon", "task": "product polarity (2-way)",
|
| 133 |
+
"nodes": 157048, "lanes": 1681400, "trained_version": "3.9.1",
|
| 134 |
+
"admission": "novel-gate ADMIT: 0.700 vs 0.650 required"
|
| 135 |
+
}
|
| 136 |
+
},
|
| 137 |
+
"evaluation": {
|
| 138 |
+
"methodology": [
|
| 139 |
+
"handmade anti-contamination gate: 148 hand-written probes outside all training/eval vocabulary",
|
| 140 |
+
"hidden splits scored once, after all selection frozen on cal",
|
| 141 |
+
"composition selection on cal only, per fabric",
|
| 142 |
+
"fit-decide parity CI-enforced",
|
| 143 |
+
"bit-reproducibility CI-enforced"
|
| 144 |
+
],
|
| 145 |
+
"headline": {
|
| 146 |
+
"handmade_total_ladder": [0.291, 0.358, 0.385, 0.432],
|
| 147 |
+
"bank77_hidden_ladder": [0.158, 0.275, 0.46, 0.629],
|
| 148 |
+
"giant_hidden_class_ladder": [0.318, 0.479, 0.551]
|
| 149 |
+
},
|
| 150 |
+
"competitors_published": {
|
| 151 |
+
"source": "arxiv 2609.37647 (jev-1.13.0); laya-model.com/benchmarks + Laya model card; typesafe.ai launch claim",
|
| 152 |
+
"banking77": {"jev": 0.87, "laya": 0.425, "syfox_v402": 0.629},
|
| 153 |
+
"ag_news": {"jev": 0.91, "syfox_v402": 0.792},
|
| 154 |
+
"emotion": {"jev": 0.48, "syfox_v402": 0.499},
|
| 155 |
+
"ece": {"jev": "0.144-0.246", "laya": "0.466 pre-refit", "syfox_v402": "0.067-0.077"},
|
| 156 |
+
"latency_p50": {"jev": "236-276 ms", "laya": "39.5 ms (T4)", "syfox_v402": "<= 611 us"}
|
| 157 |
+
},
|
| 158 |
+
"raw_tables": "data/v401_freshclone_tables.json",
|
| 159 |
+
"report": "docs/RETEST_v402.md"
|
| 160 |
+
},
|
| 161 |
+
"training_time_schemas": {
|
| 162 |
+
"path": "datasets/schemas.json",
|
| 163 |
+
"md5": "b42f99e7c94721a76653c4d69f426ea4",
|
| 164 |
+
"sha256": "505826bda1d69274f87b5b5a0eb6c74a1b8fef7d7f3a13e0a34c144930b737f2",
|
| 165 |
+
"warning": "criteria text is injected energy. Never regenerate, reword or re-mine schemas against existing fabrics (the v3.9.2 lesson)."
|
| 166 |
+
}
|
| 167 |
+
}
|
data/v401_freshclone_tables.json
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tag": "v4.0.1-fresh-clone-verification",
|
| 3 |
+
"date": "2026-12-01",
|
| 4 |
+
"engine": "syfox 4.0.1 (core: si-substrate)",
|
| 5 |
+
"question": "does the v4.0.1 tree, cloned fresh from Gitea, build, pass every CI gate with rebuilt artifacts, and BEAT the v3.2.0-era shipped fabrics on the handmade (anti-contamination) probe set?",
|
| 6 |
+
"fabrics": {
|
| 7 |
+
"model-giant-latin": "shipped HF fabric (v3.1.2 build, 43,420 nodes) + repair-lanes (1,330,812 lanes revived, weight sum 681 -> 117,478) + recalibrated (27,576/27,586 fit rows, 99.96% coverage, T=0.1809, ECE 0.0802)",
|
| 8 |
+
"model-b77-sem": "shipped HF fabric (v3.2.0 build) + repair-lanes (159,449 revived, 912 -> 58,210) + memories.jsonl regenerated from the official PolyAI banking77 train carve (256 memories, stride 35; the HF model dir omits the file) + recalibrated (1003/1003 rows, 100% coverage, T=0.121, ECE 0.0837)",
|
| 9 |
+
"model-router16": "shipped HF fabric + repair-lanes (43,117 rebuilt, 1,012 -> 10,360) + recalibrated (12,574/12,593 rows, 99.85% coverage, T=0.1897, ECE 0.0666)"
|
| 10 |
+
},
|
| 11 |
+
"composition": "energy_norm=True diffusion=0.45 affinity_mix=0.3 (recorded in physics.json; fit==decide parity asserted by CI)",
|
| 12 |
+
"cal_sources": {
|
| 13 |
+
"giant-latin": "data/giant/cal_latin.jsonl (the shipped 12,593-row slim cal split) expanded to full rows by tools/expand_slim_rows.py with the TRAINING-TIME schemas data/giant/schemas.json",
|
| 14 |
+
"b77-sem": "data/bank77_cal.jsonl regenerated from the official PolyAI banking77 parquet (10,003 train / 3,080 test) with the canonical flags --topk 20 --opaque-labels --no-instructions; the 1,003-row cal carve is state-for-state IDENTICAL to the training-time carve (verified against the shipped cal split)",
|
| 15 |
+
"router16": "the same 12,593 rows, domain question only"
|
| 16 |
+
},
|
| 17 |
+
"handmade_gate": {
|
| 18 |
+
"probes": 148,
|
| 19 |
+
"baseline_shipped_legacy": {
|
| 20 |
+
"total": 0.291,
|
| 21 |
+
"bank77": 0.103,
|
| 22 |
+
"emotion": 0.167,
|
| 23 |
+
"dbpedia": 0.286,
|
| 24 |
+
"router": 0.333,
|
| 25 |
+
"tickets_en": 0.667,
|
| 26 |
+
"agnews": 0.75,
|
| 27 |
+
"note": "reproduces the v3.9.3 commit's numbers exactly (total 0.291; bank77 0.103, emotion 0.167, dbpedia 0.286)"
|
| 28 |
+
},
|
| 29 |
+
"repaired_afr_mix0.3": {
|
| 30 |
+
"total": 0.358,
|
| 31 |
+
"bank77": 0.176,
|
| 32 |
+
"emotion": 0.417,
|
| 33 |
+
"dbpedia": 0.214,
|
| 34 |
+
"router": 0.4,
|
| 35 |
+
"tickets_en": 0.889,
|
| 36 |
+
"agnews": 0.875,
|
| 37 |
+
"note": "TOTAL 0.291 -> 0.358 (+6.7 points, +23% relative); bank77 +7.3, emotion +25.0, tickets_en +22.2, agnews +12.5; dbpedia -7.2 (the one regression, disclosed)"
|
| 38 |
+
},
|
| 39 |
+
"ladder": "shipped legacy 0.291 -> repaired+AFR d0.45 0.358 -> CAL-selected d0.02 0.385 (+32% relative)"
|
| 40 |
+
},
|
| 41 |
+
"ci": "make ci green end to end with all gates armed: unit suite (incl. lane-repair + affinity-readout groups), route assertion, ablation distinctness (4/5 configs, memories armed), readout-silence, jas-test, fit-decide parity (2/2), handmade generalisation gate",
|
| 42 |
+
"bugs_fixed": [
|
| 43 |
+
"cmd_register wrote impossibility.json into a directory that did not exist yet (fresh clone): the bare ofstream failed silently, printed persisted:null, exited 0 \u2014 tests/jas_test.sh reported 'impossibility.json missing'; now creates the dir and exits non-zero on persistence failure",
|
| 44 |
+
"scripts/b77_train_chunked.sh hardcoded cd /home/z/my-project/syfox \u2014 broke make b77-sem on every clone at another path; now cd's relative to the script",
|
| 45 |
+
"the handmade gate defaulted to datasets/schemas.json, an HF-repo-layout path absent on a fresh Gitea clone; the training-time schemas are committed at data/giant/schemas.json",
|
| 46 |
+
"VERSION constant still said 3.9.1 while shipping v4.0 readout code (the v3.9.3 and v4.0 commits never bumped it); the engine's self-report is provenance \u2014 now 4.0.1"
|
| 47 |
+
],
|
| 48 |
+
"replay_contract": "pre-v4.0.1 fabrics decide bit-identically under the default composition (affinity_mix 0); all changes are opt-in flags, CI-enforced by the unit suite",
|
| 49 |
+
"cal_selection_round": {
|
| 50 |
+
"rule": "select the composition on CAL only; score HIDDEN once; handmade is the anti-contamination check",
|
| 51 |
+
"b77-sem": {
|
| 52 |
+
"d0.45_mix0.3": {
|
| 53 |
+
"cal": 0.26,
|
| 54 |
+
"cal_ece": 0.122
|
| 55 |
+
},
|
| 56 |
+
"d0.02_mix0.3": {
|
| 57 |
+
"cal": 0.447,
|
| 58 |
+
"cal_ece": 0.081,
|
| 59 |
+
"selected": true,
|
| 60 |
+
"hidden_once": 0.46,
|
| 61 |
+
"hidden_ece": 0.067,
|
| 62 |
+
"hidden_n": 2633
|
| 63 |
+
}
|
| 64 |
+
},
|
| 65 |
+
"giant-latin": {
|
| 66 |
+
"d0.45_mix0.3": {
|
| 67 |
+
"cal": 0.602,
|
| 68 |
+
"cal_ece": 0.08
|
| 69 |
+
},
|
| 70 |
+
"d0.02_mix0.3": {
|
| 71 |
+
"cal": 0.718,
|
| 72 |
+
"cal_ece": 0.069,
|
| 73 |
+
"selected": true,
|
| 74 |
+
"hidden_once": {
|
| 75 |
+
"tickets_en_class": 0.962,
|
| 76 |
+
"game_class": 0.942,
|
| 77 |
+
"bank77_class": 0.468,
|
| 78 |
+
"sms_class": 0.77,
|
| 79 |
+
"clinc_class": 0.565,
|
| 80 |
+
"enron_class": 0.894,
|
| 81 |
+
"emotion_class": 0.438,
|
| 82 |
+
"hate_class": 0.774,
|
| 83 |
+
"agnews_class": 0.792,
|
| 84 |
+
"polarity_class": 0.601,
|
| 85 |
+
"dbpedia_class": 0.714,
|
| 86 |
+
"boolq_class": 0.547,
|
| 87 |
+
"router_question_total": 0.496,
|
| 88 |
+
"class_total": 0.551,
|
| 89 |
+
"e2e_total": 0.315
|
| 90 |
+
}
|
| 91 |
+
}
|
| 92 |
+
},
|
| 93 |
+
"router16": {
|
| 94 |
+
"d0.45_mix0.3": {
|
| 95 |
+
"cal": 0.601,
|
| 96 |
+
"cal_ece": 0.069,
|
| 97 |
+
"selected": true
|
| 98 |
+
},
|
| 99 |
+
"d0.02_mix0.3": {
|
| 100 |
+
"cal": 0.581,
|
| 101 |
+
"cal_ece": 0.189
|
| 102 |
+
}
|
| 103 |
+
},
|
| 104 |
+
"handmade_after_selection": {
|
| 105 |
+
"total": 0.385,
|
| 106 |
+
"bank77": 0.191,
|
| 107 |
+
"tickets_en": 1.0,
|
| 108 |
+
"polarity": 1.0,
|
| 109 |
+
"dbpedia": 0.429,
|
| 110 |
+
"emotion": 0.333,
|
| 111 |
+
"agnews": 0.875,
|
| 112 |
+
"router": 0.4,
|
| 113 |
+
"hate": 0.167,
|
| 114 |
+
"note": "bank77 0.191 reproduces the v4.0 commit's published number exactly; dbpedia's d0.45 regression (0.214) is recovered to 0.429, above the 0.286 baseline; hate regressed 0.500 -> 0.167 (disclosed; CAL selected d0.02 for the whole fabric)"
|
| 115 |
+
}
|
| 116 |
+
},
|
| 117 |
+
"bigram_retrain_round": {
|
| 118 |
+
"what": "the dedicated bank77 fabric retrained on the v4.0.1 engine \u2014 ordered bigram lanes (MRS 4b.1-4b.2, v3.6) + document-frequency rarity weighting (CMD 2.2, v3.6) are default-on at learn since v3.6, but the SHIPPED b77-sem was a v3.2.0 build that predated them",
|
| 119 |
+
"fabric": "19,707 nodes / 1,383,120 lanes / 54,000 lessons (the v3.2.0 fabric: 1,648 / 217,729) \u2014 36 chunks x 500 rows x 3 epochs (1500-row chunks OOM the 4GB sandbox since bigrams; chunk size fixed in scripts/b77_train_chunked.sh)",
|
| 120 |
+
"cal_selection": {
|
| 121 |
+
"d0.02_mix0.3": {
|
| 122 |
+
"cal": 0.612,
|
| 123 |
+
"selected": true
|
| 124 |
+
},
|
| 125 |
+
"d0.45_mix0.3": {
|
| 126 |
+
"cal": 0.458
|
| 127 |
+
}
|
| 128 |
+
},
|
| 129 |
+
"hidden_once": {
|
| 130 |
+
"acc": 0.629,
|
| 131 |
+
"n": 2801,
|
| 132 |
+
"defer": 0.091,
|
| 133 |
+
"ece": 0.077
|
| 134 |
+
},
|
| 135 |
+
"handmade_bank77": 0.294,
|
| 136 |
+
"ladder_bank77_hidden": "0.158 (shipped v3.2.0) -> 0.275 (repair+AFR d0.45) -> 0.460 (CAL-selected d0.02) -> 0.629 (bigram retrain)",
|
| 137 |
+
"jev_laya_context": "Jev published banking77 0.870 (laya-model.com/benchmarks, Jev column); Laya 0.425 (its own model card, token-budget collapse at 77 options). SyFox 0.629: +20 over Laya, -24 vs Jev (was -71 at baseline, -41 after round 2)",
|
| 138 |
+
"handmade_total_ladder": "0.291 -> 0.358 -> 0.385 -> 0.432 (+48% relative)"
|
| 139 |
+
}
|
| 140 |
+
}
|
datasets/MANIFEST.json
CHANGED
|
@@ -156,97 +156,130 @@
|
|
| 156 |
"train_rows": 90142,
|
| 157 |
"lessons_per_epoch": 180284,
|
| 158 |
"files": {
|
| 159 |
-
"
|
| 160 |
-
"bytes":
|
| 161 |
-
"sha256": "
|
| 162 |
-
},
|
| 163 |
-
"bank77_hidden.jsonl": {
|
| 164 |
-
"bytes": 62681822,
|
| 165 |
-
"sha256": "2dbee3513d6a8ee1248fd1d4f1c81c059d24bfa77883699881b0770344e660a9"
|
| 166 |
-
},
|
| 167 |
-
"boolq_hidden.jsonl": {
|
| 168 |
-
"bytes": 2373267,
|
| 169 |
-
"sha256": "b75ae17110d58161391a34ff689130a866d408c028130dfa6864f10e95ebb294"
|
| 170 |
},
|
| 171 |
"cal_bengali.jsonl": {
|
| 172 |
-
"bytes":
|
| 173 |
-
"sha256": "
|
| 174 |
},
|
| 175 |
"cal_cyrillic.jsonl": {
|
| 176 |
-
"bytes":
|
| 177 |
-
"sha256": "
|
| 178 |
},
|
| 179 |
"cal_devanagari.jsonl": {
|
| 180 |
-
"bytes":
|
| 181 |
-
"sha256": "
|
| 182 |
},
|
| 183 |
"cal_latin.jsonl": {
|
| 184 |
-
"bytes":
|
| 185 |
-
"sha256": "
|
| 186 |
},
|
| 187 |
-
"
|
| 188 |
-
"bytes":
|
| 189 |
-
"sha256": "
|
| 190 |
},
|
| 191 |
-
"
|
| 192 |
-
"bytes":
|
| 193 |
-
"sha256": "
|
| 194 |
},
|
| 195 |
-
"
|
| 196 |
-
"bytes":
|
| 197 |
-
"sha256": "
|
| 198 |
},
|
| 199 |
-
"
|
| 200 |
-
"bytes":
|
| 201 |
-
"sha256": "
|
| 202 |
},
|
| 203 |
-
"
|
| 204 |
-
"bytes":
|
| 205 |
-
"sha256": "
|
| 206 |
},
|
| 207 |
-
"
|
| 208 |
-
"bytes":
|
| 209 |
-
"sha256": "
|
| 210 |
},
|
| 211 |
-
"
|
| 212 |
-
"bytes":
|
| 213 |
-
"sha256": "
|
| 214 |
},
|
| 215 |
-
"
|
| 216 |
-
"bytes":
|
| 217 |
-
"sha256": "
|
| 218 |
},
|
| 219 |
-
"
|
| 220 |
-
"bytes":
|
| 221 |
-
"sha256": "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 222 |
},
|
| 223 |
-
"
|
| 224 |
-
"bytes":
|
| 225 |
-
"sha256": "
|
| 226 |
},
|
| 227 |
-
"
|
| 228 |
-
"bytes":
|
| 229 |
-
"sha256": "
|
| 230 |
},
|
| 231 |
-
"
|
| 232 |
-
"bytes":
|
| 233 |
-
"sha256": "
|
| 234 |
},
|
| 235 |
-
"
|
| 236 |
-
"bytes":
|
| 237 |
-
"sha256": "
|
| 238 |
},
|
| 239 |
-
"
|
| 240 |
-
"bytes":
|
| 241 |
-
"sha256": "
|
| 242 |
},
|
| 243 |
-
"
|
| 244 |
-
"bytes":
|
| 245 |
-
"sha256": "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 246 |
},
|
| 247 |
"schemas.json": {
|
| 248 |
-
"bytes":
|
| 249 |
-
"sha256": "
|
|
|
|
|
|
|
|
|
|
|
|
|
| 250 |
}
|
| 251 |
-
}
|
| 252 |
-
|
|
|
|
|
|
| 156 |
"train_rows": 90142,
|
| 157 |
"lessons_per_epoch": 180284,
|
| 158 |
"files": {
|
| 159 |
+
"DATASETS.md": {
|
| 160 |
+
"bytes": 4191,
|
| 161 |
+
"sha256": "74072011cbaf78db0cbf3c5e51827fa45a80231814ecd0454cb1f1cff802f3ec"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 162 |
},
|
| 163 |
"cal_bengali.jsonl": {
|
| 164 |
+
"bytes": 176107,
|
| 165 |
+
"sha256": "52e799629d924699917e218477ffcb7470ef1212c6b90f28ad4fbb0d39670fbf"
|
| 166 |
},
|
| 167 |
"cal_cyrillic.jsonl": {
|
| 168 |
+
"bytes": 150002,
|
| 169 |
+
"sha256": "0ba275bd15403bcac43673525fbaed9cbc7681694604cf4f855ceb7466e69e03"
|
| 170 |
},
|
| 171 |
"cal_devanagari.jsonl": {
|
| 172 |
+
"bytes": 173665,
|
| 173 |
+
"sha256": "bb375c06282417d372516c985f63d64815fce89f56f3f682a4e7fe6f67cd0ba9"
|
| 174 |
},
|
| 175 |
"cal_latin.jsonl": {
|
| 176 |
+
"bytes": 3804642,
|
| 177 |
+
"sha256": "82c03035b614103ac972ac6b7fd94bf1c5692b9ab883a8b86bc7fb1582819e1f"
|
| 178 |
},
|
| 179 |
+
"eval/agnews_hidden.jsonl": {
|
| 180 |
+
"bytes": 600716,
|
| 181 |
+
"sha256": "84c5a76100c78bcd78d1eede2ace5e517006417954c29245b95ea97c9b3e1d33"
|
| 182 |
},
|
| 183 |
+
"eval/bank77_hidden.jsonl": {
|
| 184 |
+
"bytes": 416542,
|
| 185 |
+
"sha256": "678a71e04ba34a83503447cbc687ec6bcbcbeb5f3bab29da45adbdea860cead0"
|
| 186 |
},
|
| 187 |
+
"eval/bench_hidden_summary.json": {
|
| 188 |
+
"bytes": 2438,
|
| 189 |
+
"sha256": "6276cc350fc6cf49c79197a3255e35aba1148705c437f8f0ee18a767d7d66995"
|
| 190 |
},
|
| 191 |
+
"eval/boolq_hidden.jsonl": {
|
| 192 |
+
"bytes": 184767,
|
| 193 |
+
"sha256": "5b3ecc994bb6ba8be0a961ebdd3d2caa4eeeda28a2c99957c653dcae4a5f604b"
|
| 194 |
},
|
| 195 |
+
"eval/clinc_hidden.jsonl": {
|
| 196 |
+
"bytes": 549637,
|
| 197 |
+
"sha256": "da1c74f2b3134e75009ea1504c126006dc66d12507bbf978bc2ca0f184244b19"
|
| 198 |
},
|
| 199 |
+
"eval/dbpedia_hidden.jsonl": {
|
| 200 |
+
"bytes": 576931,
|
| 201 |
+
"sha256": "879931e0b574319442b5fe380bb9306444e267a2d1b901de8efb5496268bd190"
|
| 202 |
},
|
| 203 |
+
"eval/emotion_hidden.jsonl": {
|
| 204 |
+
"bytes": 361173,
|
| 205 |
+
"sha256": "ea198dcedb2a5522d07b098d6fac913c723afed45aa1f66360ac46cdd81f31c0"
|
| 206 |
},
|
| 207 |
+
"eval/enron_hidden.jsonl": {
|
| 208 |
+
"bytes": 471874,
|
| 209 |
+
"sha256": "80d7703c024da5a263d72beed8c6c7ae82fa408df850772c5fee1571ba065bfc"
|
| 210 |
},
|
| 211 |
+
"eval/game_hidden.jsonl": {
|
| 212 |
+
"bytes": 239167,
|
| 213 |
+
"sha256": "577e759577cd819f503a4f1c53fef6064e055359fec5ea7914994add8e3940b8"
|
| 214 |
+
},
|
| 215 |
+
"eval/guard_hidden.jsonl": {
|
| 216 |
+
"bytes": 1568869,
|
| 217 |
+
"sha256": "d758c60fa17bf80b2b8cf66b4c598326d76f115c54618e337af5384e22c01e33"
|
| 218 |
+
},
|
| 219 |
+
"eval/hate_hidden.jsonl": {
|
| 220 |
+
"bytes": 246137,
|
| 221 |
+
"sha256": "94027e16d48f7cfc7544261c62625c4bb30502265fb5fbf165b9a3b41586bc5d"
|
| 222 |
+
},
|
| 223 |
+
"eval/polarity_hidden.jsonl": {
|
| 224 |
+
"bytes": 741038,
|
| 225 |
+
"sha256": "01e32a6a38d8187a1b28321ab6babf896d052f49b912470ba4ca35e21cb50f84"
|
| 226 |
+
},
|
| 227 |
+
"eval/sms_hidden.jsonl": {
|
| 228 |
+
"bytes": 135192,
|
| 229 |
+
"sha256": "580e97c5a695457ecdddce472c56fc7a02c94559ef712ae2b75af764f09bf43a"
|
| 230 |
+
},
|
| 231 |
+
"eval/tickets_bn_hidden.jsonl": {
|
| 232 |
+
"bytes": 175165,
|
| 233 |
+
"sha256": "04a973abe9e0de50594d8cc9fa54ebaa43d045056a57c245cca3652c5a6b3e31"
|
| 234 |
},
|
| 235 |
+
"eval/tickets_en_hidden.jsonl": {
|
| 236 |
+
"bytes": 397464,
|
| 237 |
+
"sha256": "fbf0db2891384b71775f21e1487876da69e20005a7c464e1f59cfb18841f0608"
|
| 238 |
},
|
| 239 |
+
"eval/tickets_hi_hidden.jsonl": {
|
| 240 |
+
"bytes": 171622,
|
| 241 |
+
"sha256": "fc39627ecda385b640e576cdb3f38763508b00d8f01f7fe063628248ee7d61ed"
|
| 242 |
},
|
| 243 |
+
"eval/tickets_ru_hidden.jsonl": {
|
| 244 |
+
"bytes": 147352,
|
| 245 |
+
"sha256": "e3fb6d0de8446236754aa18b8cc8ad4f46572487aaa106683894ba7f2fa52e9d"
|
| 246 |
},
|
| 247 |
+
"novel_probes/RESULTS.json": {
|
| 248 |
+
"bytes": 746,
|
| 249 |
+
"sha256": "5d1f5b683d6fe6c3a1cbc2209c23e1a06d13540742b3d132deac91041460ff0e"
|
| 250 |
},
|
| 251 |
+
"novel_probes/agnews.jsonl": {
|
| 252 |
+
"bytes": 3262,
|
| 253 |
+
"sha256": "2bf42e7537e9cf9d840d161927d538a1ab265c0d9b1c598cc183c17c0a22c1e2"
|
| 254 |
},
|
| 255 |
+
"novel_probes/amazon.jsonl": {
|
| 256 |
+
"bytes": 2343,
|
| 257 |
+
"sha256": "47ec980f10634c6f104011f41b02449d1bef304ffbf1fcd69bc09e4c766d7510"
|
| 258 |
+
},
|
| 259 |
+
"novel_probes/sst2.jsonl": {
|
| 260 |
+
"bytes": 2752,
|
| 261 |
+
"sha256": "bcd4e802f16d42cdc0b6194884cc11474e0e522a7ee762819d9412d8dcf7b08c"
|
| 262 |
+
},
|
| 263 |
+
"probes.jsonl": {
|
| 264 |
+
"bytes": 275469,
|
| 265 |
+
"sha256": "3bfea503edce2ab7e7d48c7803f2c0d8c54d387e2f6a4279ccf9d4f77e9b7b8c"
|
| 266 |
+
},
|
| 267 |
+
"router16_router.json": {
|
| 268 |
+
"bytes": 1479,
|
| 269 |
+
"sha256": "bc94dd133a09da7f3947bad5461da776c9080023f771edacc84bf9d0c5817b2b"
|
| 270 |
+
},
|
| 271 |
+
"router_criteria.json": {
|
| 272 |
+
"bytes": 692,
|
| 273 |
+
"sha256": "a2faeddfe5f38614569839d3a7a26b13de0befa6d5c32c87a800b1bbdbf9b211"
|
| 274 |
},
|
| 275 |
"schemas.json": {
|
| 276 |
+
"bytes": 55690,
|
| 277 |
+
"sha256": "505826bda1d69274f87b5b5a0eb6c74a1b8fef7d7f3a13e0a34c144930b737f2"
|
| 278 |
+
},
|
| 279 |
+
"zeroshot_v32_results.json": {
|
| 280 |
+
"bytes": 7354,
|
| 281 |
+
"sha256": "bc465db7b08954b693919b801f86ec811a01922ad35d543bf5783a52ee9c6931"
|
| 282 |
}
|
| 283 |
+
},
|
| 284 |
+
"manifest_note": "v4.0.2 regeneration: every file re-hashed at its true relative path (the old flat keys predate the eval/ split; train.jsonl was tracked but never shipped). schemas.json restored to the TRAINING-TIME criteria (md5 b42f99e7c94721a76653c4d69f426ea4) — criteria text is injected energy, never regenerate it (the v3.9.2 lesson). schemas-v397.json removed: the v397-era drift was not part of the v4.0.2 verification."
|
| 285 |
+
}
|
datasets/novel_probes/RESULTS.json
CHANGED
|
@@ -1,44 +1,40 @@
|
|
| 1 |
{
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
],
|
| 41 |
-
"gate": "tools/novel_gate.py",
|
| 42 |
-
"rule": "accuracy > max(majority_baseline, uniform_chance + 0.15) and no prediction collapse > 60%",
|
| 43 |
-
"v400_note": "The v4.0 affinity readout is applied PER FABRIC and gated by this file's own rule: a fabric whose readout change would drop it below its 'required' margin is shipped unchanged. agnews passes (0.5833 -> 0.7500, required 0.40); sst2 (0.5830) and amazon (0.6000) would fail their 0.65 gate and ship unchanged. The contrast is degenerate on two-class candidate sets, which is why."
|
| 44 |
}
|
|
|
|
| 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/schemas.json
CHANGED
|
@@ -10,10 +10,10 @@
|
|
| 10 |
"ag03": "scitech"
|
| 11 |
},
|
| 12 |
"criteria": {
|
| 13 |
-
"ag02": "aspx, aspx ticker, com fullquote, fullquote, fullquote aspx,
|
| 14 |
-
"ag03": "
|
| 15 |
-
"ag01": "
|
| 16 |
-
"ag00": "palestinian, baghdad,
|
| 17 |
},
|
| 18 |
"router_anchor": "rt00"
|
| 19 |
},
|
|
@@ -188,8 +188,8 @@
|
|
| 188 |
"bo01": "true"
|
| 189 |
},
|
| 190 |
"criteria": {
|
| 191 |
-
"bo01": "
|
| 192 |
-
"bo00": "in california,
|
| 193 |
},
|
| 194 |
"router_anchor": "rt02"
|
| 195 |
},
|
|
@@ -350,157 +350,157 @@
|
|
| 350 |
"cl150": "how_old_are_you"
|
| 351 |
},
|
| 352 |
"criteria": {
|
| 353 |
-
"cl109": "hello in, i were, say hello,
|
| 354 |
-
"cl039": "dollars from,
|
| 355 |
-
"cl077": "a timer, timer, minute, minute timer, timer for,
|
| 356 |
-
"cl045": "definition, definition of, the definition,
|
| 357 |
-
"cl066": "of life, the point, in life, life
|
| 358 |
-
"cl112": "new insurance, insurance policy, new united, united healthcare, adjust my, alter my,
|
| 359 |
-
"cl131": "phone is, cellphone, my cellphone, i left, left my, lost phone, my
|
| 360 |
-
"cl033": "alerts, travel alerts,
|
| 361 |
-
"cl148": "a pto, pto request,
|
| 362 |
-
"cl072": "improve, improve my, to improve, build, hurt my, keep my,
|
| 363 |
-
"cl034": "fact about, trivia,
|
| 364 |
-
"cl073": "language, the language, your language, language to, responses, your responses,
|
| 365 |
-
"cl128": "next paycheck, payday, next payday,
|
| 366 |
-
"cl141": "replacement card, my replacement, replace a,
|
| 367 |
-
"cl085": "current time, time
|
| 368 |
-
"cl006": "card application, processed,
|
| 369 |
-
"cl130": "
|
| 370 |
-
"cl078": "coin, flip, a coin, flip a, tails, coin flip, heads, coin i, call tails, coin and
|
| 371 |
-
"cl051": "can call,
|
| 372 |
-
"cl126": "
|
| 373 |
-
"cl030": "and add,
|
| 374 |
-
"cl019": "ask you,
|
| 375 |
-
"cl026": "either, could be, it could,
|
| 376 |
-
"cl074": "
|
| 377 |
-
"cl067": "table for, 2 at, name kevin, robin under, lobster at,
|
| 378 |
-
"cl080": "account balance, enough money,
|
| 379 |
-
"cl135": "confirm my, and confirm, to confirm, try and, for josh,
|
| 380 |
-
"cl064": "freeze my,
|
| 381 |
-
"cl003": "rollover, rollover my, new job, to rollover, 401k
|
| 382 |
-
"cl147": "who made, made you,
|
| 383 |
-
"cl127": "
|
| 384 |
-
"cl013": "name saved, saved as,
|
| 385 |
-
"cl114": "what timezone, timezone is, the timezone, timezone for,
|
| 386 |
-
"cl022": "next song, this playlist,
|
| 387 |
-
"cl116": "
|
| 388 |
-
"cl052": "restaurants, good places, that serve, serve sushi, restaurants in,
|
| 389 |
-
"cl097": "rewards balance, rewards card,
|
| 390 |
-
"cl015": "paying my,
|
| 391 |
-
"cl120": "spent on,
|
| 392 |
-
"cl004": "off request, approved yet,
|
| 393 |
-
"cl117": "
|
| 394 |
-
"cl142": "apply, apply for, to apply, america travel, rewards credit, sign, sign up, travel rewards, a discover
|
| 395 |
-
"cl017": "my luggage, ab123, flight ab123, ab123 out,
|
| 396 |
-
"cl035": "it again, say it,
|
| 397 |
-
"cl049": "mpg, highway, per gallon,
|
| 398 |
-
"cl028": "next oil,
|
| 399 |
-
"cl010": "yes that, is true, yes that's,
|
| 400 |
-
"cl056": "there to, attractions, attractions in,
|
| 401 |
-
"cl123": "my health, health benefits, health plan,
|
| 402 |
-
"cl113": "
|
| 403 |
-
"cl125": "reminders, reminder list, my reminder, of reminders, my reminders,
|
| 404 |
-
"cl023": "
|
| 405 |
-
"cl149": "pressure, tire pressure, air in, the air, air pressure,
|
| 406 |
-
"cl075": "
|
| 407 |
-
"cl038": "apr, card's apr, the apr,
|
| 408 |
-
"cl001": "nutritional, the nutritional,
|
| 409 |
-
"cl108": "friday the,
|
| 410 |
-
"cl084": "uber, an uber, uber to, uber for, people to,
|
| 411 |
-
"cl044": "root of, square root, the square,
|
| 412 |
-
"cl146": "today's date,
|
| 413 |
-
"cl110": "carry, carry on, carry ons, ons,
|
| 414 |
-
"cl055": "days off, i taken, i've taken, taken off, days i've, off i,
|
| 415 |
-
"cl037": "engine light, check engine,
|
| 416 |
-
"cl053": "bank know,
|
| 417 |
-
"cl036": "disconnect, disconnect from, connect to, unsync,
|
| 418 |
-
"cl029": "i appreciate,
|
| 419 |
-
"cl143": "dice, roll a, sided dice, you roll, the dice,
|
| 420 |
-
"cl101": "fridge since, fridge, the fridge, freezer, the freezer,
|
| 421 |
-
"cl136": "cook a,
|
| 422 |
-
"cl100": "cat her, flea, flea medicine, her flea, medicine,
|
| 423 |
-
"cl024": "as lost, as stolen, it as,
|
| 424 |
-
"cl040": "substitute, i substitute, salt, baking, baking soda,
|
| 425 |
-
"cl069": "
|
| 426 |
-
"cl133": "alarm,
|
| 427 |
-
"cl094": "
|
| 428 |
-
"cl098": "accent,
|
| 429 |
-
"cl027": "w2, w 2, my w,
|
| 430 |
-
"cl103": "
|
| 431 |
-
"cl041": "
|
| 432 |
-
"cl137": "damaged,
|
| 433 |
-
"cl000": "the reviews, the ratings, reviews for, ratings for, good are, reviews like, at yakamoto, the sushi, yakamoto, are people
|
| 434 |
-
"cl091": "routing, routing number, the routing, my routing,
|
| 435 |
-
"cl079": "pets, of pets, a cat, cat or, pets you,
|
| 436 |
-
"cl061": "a meeting, rooms, meeting room, meeting rooms, available between, rooms available, there meeting,
|
| 437 |
-
"cl129": "of fuel, car need, what gas,
|
| 438 |
-
"cl025": "plug, converter,
|
| 439 |
-
"cl093": "replaced them, new tires,
|
| 440 |
-
"cl083": "yen, exchange rate,
|
| 441 |
-
"cl047": "next holiday,
|
| 442 |
-
"cl058": "volume,
|
| 443 |
-
"cl104": "work for, you work, working for, your boss,
|
| 444 |
-
"cl087": "
|
| 445 |
-
"cl005": "busy, how busy, busy is, seated,
|
| 446 |
-
"cl140": "take reservations, they take,
|
| 447 |
-
"cl134": "package, my
|
| 448 |
-
"cl139": "pin, my pin, pin number, 1234, the pin, pin on, pin to, to 1234, account pin, be 1234
|
| 449 |
-
"cl018": "was nice, chatting, adios, ai goodbye,
|
| 450 |
-
"cl063": "why is,
|
| 451 |
-
"cl065": "song is, what song, is playing,
|
| 452 |
-
"cl043": "
|
| 453 |
-
"cl082": "
|
| 454 |
-
"cl062": "meetings, any meetings,
|
| 455 |
-
"cl016": "what ingredients, ingredients, ingredients are, ingredients do, ingredients in, broccoli, broccoli cheddar, buy to, cheddar soup, chicken noodle
|
| 456 |
-
"cl119": "fraudulent, a fraudulent, fraudulent activity, fraudulent transaction, fraud, report fraudulent, transaction from,
|
| 457 |
-
"cl076": "centimeters, ounces, you convert,
|
| 458 |
-
"cl002": "lights, fan, door, fan on, the
|
| 459 |
-
"cl020": "a hotel, hotel in, hotel,
|
| 460 |
-
"cl042": "map, the map,
|
| 461 |
-
"cl096": "
|
| 462 |
-
"cl145": "state taxes,
|
| 463 |
-
"cl050": "minimum
|
| 464 |
-
"cl046": "whisper, mode, whisper mode, to whisper, whisper voice, the whisper, use whisper,
|
| 465 |
-
"cl054": "cancel that, abort,
|
| 466 |
-
"cl106": "international visa, visa to, travel visa, visa for, an international,
|
| 467 |
-
"cl099": "
|
| 468 |
-
"cl031": "pto days, days do, days are, days left, accrued, are left, i accrued, left for, remaining pto,
|
| 469 |
-
"cl121": "
|
| 470 |
-
"cl122": "spell, to spell, you spell, spelling,
|
| 471 |
-
"cl132": "are things, you doing,
|
| 472 |
-
"cl138": "factory settings,
|
| 473 |
-
"cl124": "a name,
|
| 474 |
-
"cl011": "direct deposit, up direct, a direct, deposit for,
|
| 475 |
-
"cl118": "interest rate, the interest, interest, my interest,
|
| 476 |
-
"cl012": "
|
| 477 |
-
"cl057": "hobbies, enjoy, you enjoy, your hobbies,
|
| 478 |
-
"cl111": "roundtrip,
|
| 479 |
-
"cl089": "whats on, list out, go shopping, list consist, put milk, what all,
|
| 480 |
-
"cl070": "text, a text, send a, text message, text to, tell him, message to, tell her,
|
| 481 |
-
"cl071": "my bills,
|
| 482 |
-
"cl105": "share my, location with,
|
| 483 |
-
"cl107": "card points, redeem, cash in, redeem my,
|
| 484 |
-
"cl009": "that goes, don't make, goes like, it bad, jude don't, like hey, music by,
|
| 485 |
-
"cl008": "calendar on,
|
| 486 |
-
"cl021": "a real, real person, a bot, bot,
|
| 487 |
-
"cl014": "gas tank,
|
| 488 |
-
"cl090": "expires, card expires, card expire,
|
| 489 |
-
"cl048": "my playlist, add this,
|
| 490 |
-
"cl115": "cancel my, reservation i, the reservation, dinner reservation,
|
| 491 |
-
"cl081": "joke, a joke,
|
| 492 |
-
"cl102": "calling you, ai name, name to, betty,
|
| 493 |
-
"cl150": "age, your age, how old, long have,
|
| 494 |
-
"cl086": "rental, rent a, a rental, rental car,
|
| 495 |
-
"cl060": "battery, jump start, to jump, car battery, dead,
|
| 496 |
-
"cl092": "a meal,
|
| 497 |
-
"cl007": "
|
| 498 |
-
"cl144": "salary, my salary,
|
| 499 |
-
"cl059": "so will, order everything, buy me,
|
| 500 |
-
"cl068": "the traffic, traffic,
|
| 501 |
-
"cl032": "checks, checkbooks, more checkbooks, more checks, checks for,
|
| 502 |
-
"cl095": "declined, was declined, declined at, got declined,
|
| 503 |
-
"cl088": "formula, formula for,
|
| 504 |
},
|
| 505 |
"router_anchor": "rt03"
|
| 506 |
},
|
|
@@ -524,20 +524,20 @@
|
|
| 524 |
"db13": "animal"
|
| 525 |
},
|
| 526 |
"criteria": {
|
| 527 |
-
"db00": "
|
| 528 |
-
"db01": "secondary school, college is,
|
| 529 |
-
"db06": "
|
| 530 |
-
"db07": "footballer, footballer who, plays for,
|
| 531 |
-
"db08": "
|
| 532 |
-
"db09": "uss,
|
| 533 |
-
"db10": "
|
| 534 |
-
"db11": "tributary, tributary of, a tributary, river is, a river, a mountain,
|
| 535 |
-
"db12": "
|
| 536 |
-
"db13": "moth, a moth, moth of, gastropod,
|
| 537 |
-
"db02": "of flowering, flowering plant, of plant, flowering plants, plants in, flowering,
|
| 538 |
-
"db03": "album by, the album,
|
| 539 |
-
"db04": "film directed, drama film, and starring, comedy film,
|
| 540 |
-
"db05": "
|
| 541 |
},
|
| 542 |
"router_anchor": "rt04"
|
| 543 |
},
|
|
@@ -553,12 +553,12 @@
|
|
| 553 |
"em05": "surprise"
|
| 554 |
},
|
| 555 |
"criteria": {
|
| 556 |
-
"em00": "disheartened,
|
| 557 |
-
"em03": "
|
| 558 |
-
"em05": "dazed, impressed, dazed and, amazed, feel amazed, stunned, feel curious, amazed at, feel funny
|
| 559 |
-
"em01": "
|
| 560 |
-
"em04": "shaken, apprehensive,
|
| 561 |
-
"em02": "nostalgic, loyal, fond, horny, sympathetic, tender, compassionate, fond of, longing for
|
| 562 |
},
|
| 563 |
"router_anchor": "rt05"
|
| 564 |
},
|
|
@@ -570,8 +570,8 @@
|
|
| 570 |
"en01": "spam"
|
| 571 |
},
|
| 572 |
"criteria": {
|
| 573 |
-
"en01": "viagra, xp,
|
| 574 |
-
"en00": "enron, vince, hou ect, forwarded by, ect ect, cc subject, kaminski,
|
| 575 |
},
|
| 576 |
"router_anchor": "rt06"
|
| 577 |
},
|
|
@@ -627,9 +627,9 @@
|
|
| 627 |
"ha02": "neither"
|
| 628 |
},
|
| 629 |
"criteria": {
|
| 630 |
-
"ha01": "bad bitches, loyal, bad bitch, bitch in, that shit, the bitches, 9996, hoes ain't, the bitch, a bitch
|
| 631 |
-
"ha02": "yankees, brownies, the yankees, flappy, flappy bird, jeter, redskins, oreos, apes, early bird
|
| 632 |
-
"ha00": "of white, is full, the faggots, the us, feminist, ight, jew, marylene58, spic, the south
|
| 633 |
},
|
| 634 |
"router_anchor": "rt09"
|
| 635 |
},
|
|
@@ -641,8 +641,8 @@
|
|
| 641 |
"po01": "positive"
|
| 642 |
},
|
| 643 |
"criteria": {
|
| 644 |
-
"po01": "a must,
|
| 645 |
-
"po00": "
|
| 646 |
},
|
| 647 |
"router_anchor": "rt10"
|
| 648 |
},
|
|
@@ -721,22 +721,22 @@
|
|
| 721 |
},
|
| 722 |
"_router": {
|
| 723 |
"criteria": {
|
| 724 |
-
"rt00": "news headlines
|
| 725 |
-
"rt01": "banking cards payments
|
| 726 |
-
"rt02": "
|
| 727 |
-
"rt03": "
|
| 728 |
-
"rt04": "encyclopedia
|
| 729 |
-
"rt05": "
|
| 730 |
-
"rt06": "
|
| 731 |
-
"rt07": "game
|
| 732 |
-
"rt08": "safety
|
| 733 |
-
"rt09": "social
|
| 734 |
-
"rt10": "product reviews opinions
|
| 735 |
-
"rt11": "
|
| 736 |
-
"rt12": "
|
| 737 |
-
"rt13": "
|
| 738 |
-
"rt14": "
|
| 739 |
-
"rt15": "
|
| 740 |
}
|
| 741 |
}
|
| 742 |
},
|
|
|
|
| 10 |
"ag03": "scitech"
|
| 11 |
},
|
| 12 |
"criteria": {
|
| 13 |
+
"ag02": "aspx, aspx ticker, com fullquote, fullquote, fullquote aspx, investor reuters, reuters com, target stocks, www investor, quickinfo",
|
| 14 |
+
"ag03": "users, nasa, desktop, moon, planet, processor, spam, voice, apple computer, beta",
|
| 15 |
+
"ag01": "coach, sox, red sox, sports network, championship, nba, cup, olympics, runs, boston red",
|
| 16 |
+
"ag00": "palestinian, baghdad, elections, gaza, darfur, hostage, abu, muslim, arafat, militants"
|
| 17 |
},
|
| 18 |
"router_anchor": "rt00"
|
| 19 |
},
|
|
|
|
| 188 |
"bo01": "true"
|
| 189 |
},
|
| 190 |
"criteria": {
|
| 191 |
+
"bo01": "actually, dad, single, a baby, have twins, too much, your own, audience, award, capitals",
|
| 192 |
+
"bo00": "in california, little, in every, mass, any more, state in, and sister, tax on, 3 way, 50"
|
| 193 |
},
|
| 194 |
"router_anchor": "rt02"
|
| 195 |
},
|
|
|
|
| 350 |
"cl150": "how_old_are_you"
|
| 351 |
},
|
| 352 |
"criteria": {
|
| 353 |
+
"cl109": "hello in, i were, say hello, translate hello, translate, goodbye in, into russian, russian for, french for, into french",
|
| 354 |
+
"cl039": "dollars from, checking to, ten dollars, to checking, to savings, 100 dollars, dollars between, from checking, from one, please transfer",
|
| 355 |
+
"cl077": "a timer, timer, minute, minute timer, timer for, 10 minute, two minutes, 10 minutes, 5 minutes, seconds",
|
| 356 |
+
"cl045": "definition, ataraxy, definition of, the definition, ajar, alternative, define, flange, qat, altruism",
|
| 357 |
+
"cl066": "of life, point of, the point, in life, life is, life, a meaning, does life, is life, life have",
|
| 358 |
+
"cl112": "new insurance, insurance policy, new united, united healthcare, adjust my, alter my, deductible, find new, insurance plans, life insurance",
|
| 359 |
+
"cl131": "phone is, cellphone, my cellphone, i left, iphone, left my, lost phone, my iphone, where my, find it",
|
| 360 |
+
"cl033": "alerts, travel alerts, alerts for, any travel, travel alert, alert for, alerts i, aware, aware of, be aware",
|
| 361 |
+
"cl148": "a pto, pto request, pto from, a vacation, 4 to, february 7, from dates, march 6, request from, to request",
|
| 362 |
+
"cl072": "improve, improve my, build, hurt, to improve, build my, hurt my, keep my, to build, going down",
|
| 363 |
+
"cl034": "fact about, trivia, a fun, fun fact, trivia about, fun facts, an interesting, interesting about, some trivia, something interesting",
|
| 364 |
+
"cl073": "language, the language, your language, language to, responses, your responses, in english, language for, please respond, respond in",
|
| 365 |
+
"cl128": "next paycheck, payday, next payday, get paid, paid last, was paid, a paycheck, another paycheck, got paid, last paid",
|
| 366 |
+
"cl141": "replacement card, my replacement, replace a, arrives, card be, stolen credit, replacement, a replacement, be before, card arrive",
|
| 367 |
+
"cl085": "current time, time it, time in, it right, now in, standard, standard timezone, the eastern, time right, timezone what",
|
| 368 |
+
"cl006": "card application, processed, been processed, my application, application has, application i, application, through yet, applied, applied for",
|
| 369 |
+
"cl130": "my flight, dl123, flight dl123, land, board, boarding, flight is, landing, to board, flight land",
|
| 370 |
+
"cl078": "coin, flip, a coin, flip a, tails, coin flip, heads, coin i, call tails, coin and",
|
| 371 |
+
"cl051": "can call, brad, me mary, by brad, calling me, frank, friends call, just call, me al, me stevie",
|
| 372 |
+
"cl126": "you from, where were, you live, what location, where you, where did, area were, birthplace, come from, country of",
|
| 373 |
+
"cl030": "and add, list if, if not, add bread, bananas, carrots off, cherrios, list cause, carrots, add cherrios",
|
| 374 |
+
"cl019": "ask you, i ask, questions, subjects, things can, familiar, familiar with, of questions, you about, subjects are",
|
| 375 |
+
"cl026": "either, both, could be, it could, a clue, maybe, about it, about that, be either, either one",
|
| 376 |
+
"cl074": "of oil, oil in, car's oil, oil do, car oil, learn how, oil for, own oil, change oil, oil and",
|
| 377 |
+
"cl067": "table for, 2 at, name kevin, robin under, lobster at, 30 please, 8 at, at state, bird, bird for",
|
| 378 |
+
"cl080": "account balance, enough money, enough in, bank balance, money is, account for, bank accounts, american account, checking balance, current bank",
|
| 379 |
+
"cl135": "confirm my, and confirm, to confirm, try and, for josh, 2 20, 20 at, confirm, confirm that, for kevin",
|
| 380 |
+
"cl064": "freeze my, a block, a stop, stop on, freeze, put a, to freeze, account right, block on, account immediately",
|
| 381 |
+
"cl003": "rollover, 401k, rollover my, my 401k, new job, to rollover, 401k rollover, rolled over, 401k rolled, roll over",
|
| 382 |
+
"cl147": "who made, made you, creator, design, inventor, programmed you, responsible, responsible for, which company, your design",
|
| 383 |
+
"cl127": "ride, ride to, bus ride, destination, my destination, commute, harbor, harbor airport, i reach, in phoenix",
|
| 384 |
+
"cl013": "name saved, saved as, saved under, by what, names you, save, save my, what names, you save, my name",
|
| 385 |
+
"cl114": "what timezone, timezone is, the timezone, timezone for, france's, france's timezone, which timezone, chicago is, in miami, reno what",
|
| 386 |
+
"cl022": "next song, this playlist, song and, next one, skip this, skip, forward, song now, and play, forward to",
|
| 387 |
+
"cl116": "my transactions, purchases, recent transaction, recent transactions, my transaction, the transactions, transactions, card last, history, last transaction",
|
| 388 |
+
"cl052": "restaurants, good places, that serve, serve sushi, restaurants in, good restaurant, good thai, in kentucky, kentucky that, thai restaurants",
|
| 389 |
+
"cl097": "rewards balance, rewards card, reward points, rewards points, many points, card's rewards, many rewards, marriot, marriot rewards, points did",
|
| 390 |
+
"cl015": "paying my, help paying, bill from, me pay, bill now, bill with, car bill, insurance bill, must pay, my checkings",
|
| 391 |
+
"cl120": "spent on, lately, lot on, been spending, on food, spending a, i spent, spent, money have, food recently",
|
| 392 |
+
"cl004": "my day, off request, approved yet, been approved, approval, request been, request has, approval of, been updated, my request",
|
| 393 |
+
"cl117": "credit rating, rating, provide me, score please, score is, current credit, credit score, score, provide, want my",
|
| 394 |
+
"cl142": "apply, apply for, i apply, to apply, america travel, rewards credit, sign, sign up, travel rewards, a discover",
|
| 395 |
+
"cl017": "my luggage, ab123, flight ab123, ab123 out, was on, luggage, lost luggage, airlines flight, luggage is, luggage has",
|
| 396 |
+
"cl035": "repeat that, it again, say it, didn't hear, repeat what, you said, repeat, repeat yourself, said can, that please",
|
| 397 |
+
"cl049": "mpg, highway, per gallon, miles per, the highway, the mpg, mileage, mpg does, fuel economy, mpg of",
|
| 398 |
+
"cl028": "next oil, often should, oil again, oil get, when would, how often, often, should change, oil change, before changing",
|
| 399 |
+
"cl010": "yes that, is true, yes that's, is correct, yeah, absolutely, my response, that's correct, that's right, yeah that's",
|
| 400 |
+
"cl056": "there to, attractions, attractions in, tourist things, activities in, fun tourist, gatlinburg, in gatlinburg, sites, some tourist",
|
| 401 |
+
"cl123": "benefits, my health, health benefits, health plan, health, what benefits, insurance benefits, plan i'm, what health, benefits are",
|
| 402 |
+
"cl113": "laundry to, of chores, add clean, add cleaning, add laundry, all items, bathroom to, clear out, everything from, laundry from",
|
| 403 |
+
"cl125": "reminders, reminder list, my reminder, of reminders, my reminders, the reminder, the reminders, i wanted, reminders list, repeat my",
|
| 404 |
+
"cl023": "speed, speech, your speech, slower, faster, speed of, the speed, slow down, slowly, speed up",
|
| 405 |
+
"cl149": "pressure, tire pressure, air in, my tire, the air, air pressure, car's tire, the tire, tire, current tire",
|
| 406 |
+
"cl075": "false, is false, no that, that's not, be false, is wrong, not true, that would, incorrect, not right",
|
| 407 |
+
"cl038": "apr, card's apr, the apr, apr on, my apr, card apr, apr for, credit card's, apr if, apr of",
|
| 408 |
+
"cl001": "nutrition, nutritional, the nutritional, the nutrition, healthy, nutrition facts, nutritional info, facts for, how healthy, nutrition info",
|
| 409 |
+
"cl108": "friday the, schedule for, any events, march 2nd, next sunday, 23, 30th birthday, calendar looks, calendar next, anything on",
|
| 410 |
+
"cl084": "uber, an uber, uber to, uber for, people to, passengers, call an, uber that, 5 people, are going",
|
| 411 |
+
"cl044": "root of, square root, the square, math, divided, is 4, math problem, problem, root, 18 percent",
|
| 412 |
+
"cl146": "today's date, date be, days from, current date, date tomorrow, 100 days, calender, date today, is tomorrow, it today",
|
| 413 |
+
"cl110": "carry, carry on, carry ons, ons, many carry, the carry, restrictions, flight with, restrictions for, on restrictions",
|
| 414 |
+
"cl055": "days off, i taken, i've taken, taken off, have used, days i've, off i, i've used, of days, off so",
|
| 415 |
+
"cl037": "an appointment, engine light, check engine, light is, car maintenance, schedule somewhere, someone to, somewhere get, engine, on and",
|
| 416 |
+
"cl053": "bank know, i'm travelling, inform my, know i, alert my, bank that, soon and, to inform, brazil from, july 1st",
|
| 417 |
+
"cl036": "disconnect, disconnect from, connect to, unsync, unsync my, please connect, sync, to disconnect, you connect, phone please",
|
| 418 |
+
"cl029": "i appreciate, you for, appreciate your, good job, grateful, your answer, your help, am thankful, appreciate that, grateful for",
|
| 419 |
+
"cl143": "dice, roll a, sided dice, you roll, the dice, a dice, roll the, 6 sided, sided die, 10 sided",
|
| 420 |
+
"cl101": "fridge since, fridge, the fridge, since monday, freezer, the freezer, been in, pizza in, had pizza, monday so",
|
| 421 |
+
"cl136": "cook a, i cook, cook the, a frozen, an egg, boil, cook chicken, cook steak, cooking time, egg",
|
| 422 |
+
"cl100": "the cat, cat her, flea, flea medicine, give the, her flea, medicine, to remind, a reminder, reminder to",
|
| 423 |
+
"cl024": "as lost, as stolen, it as, discover credit, report lost, reported, card as, be reported, card needs, is stolen",
|
| 424 |
+
"cl040": "substitute, i substitute, salt, baking, baking soda, for baking, salt for, to swap, for milk, sub",
|
| 425 |
+
"cl069": "call to, dial, a call, please dial, phone call, call a, christie's, dial christie's, must call, please call",
|
| 426 |
+
"cl133": "alarm, an alarm, alarm for, and another, 6am, another for, alarm set, for 6am, alarm to, my alarm",
|
| 427 |
+
"cl094": "tasks, is cleaning, let's go, list have, list read, tasks on, what tasks, kitchen, list to, my todo",
|
| 428 |
+
"cl098": "accent, the male, male british, male voice, female, male, female voice, your accent, british one, a male",
|
| 429 |
+
"cl027": "w2, w 2, my w, my w2, a w2, form that, tax form, w, forms, 2 form",
|
| 430 |
+
"cl103": "is due, bill due, at t, bill by, find when, my at, due date, insurance due, mortgage payment, the due",
|
| 431 |
+
"cl041": "calorie, calories, calories in, the calorie, many calories, of calories, calorie content, calorie count, cookie, the calories",
|
| 432 |
+
"cl137": "damaged, damaged and, in half, bent, cracked, is damaged, card split, melted, my dog, split in",
|
| 433 |
+
"cl000": "the reviews, the ratings, reviews for, ratings for, good are, reviews like, at yakamoto, the sushi, yakamoto, are people",
|
| 434 |
+
"cl091": "routing, routing number, the routing, my routing, chase checking, for chase, number for, ai what, for bank, number from",
|
| 435 |
+
"cl079": "pets, of pets, a cat, cat or, pets you, your pets, or dog, you own, cats or, or dogs",
|
| 436 |
+
"cl061": "a meeting, rooms, meeting room, meeting rooms, available between, rooms available, there meeting, tom, with tom, for 6pm",
|
| 437 |
+
"cl129": "of fuel, car need, car uses, what gas, fuel does, gas should, premium, the type, use premium, car currently",
|
| 438 |
+
"cl025": "plug, converter, socket, socket converter, a socket, a plug, plug converter, plug type, converter if, of plug",
|
| 439 |
+
"cl093": "replaced them, new tires, tires changed, i replaced, tires if, replaced, last replaced, tires next, replace them, should replace",
|
| 440 |
+
"cl083": "yen, exchange rate, exchange for, dollars can, euros, rubles, the exchange, many dollars, rate between, us dollars",
|
| 441 |
+
"cl047": "next holiday, next day, next scheduled, holiday, a holiday, extent, extent until, free day, our next, scheduled holiday",
|
| 442 |
+
"cl058": "volume, your volume, increase your, the volume, 4 please, volume level, volume to, speaker volume, the sound, and increase",
|
| 443 |
+
"cl104": "work for, you work, working for, your boss, you working, employed, employed by, someone else, who would, another person",
|
| 444 |
+
"cl087": "high is, my spending, spending limit, current limit, limit is, how high, max, much can, limit for, my limit",
|
| 445 |
+
"cl005": "busy, how busy, busy is, seated, time at, seated at, around 5, is kaya, kaya, a wait",
|
| 446 |
+
"cl140": "take reservations, they take, make reservations, redrobin, accept reservations, do reservations, takes reservations, reservations, acero, are reservations",
|
| 447 |
+
"cl134": "package, my order, my package, online order, track my, my online, shipped, been delivered, delivery order, my delivery",
|
| 448 |
+
"cl139": "pin, my pin, pin number, 1234, the pin, pin on, pin to, to 1234, account pin, be 1234",
|
| 449 |
+
"cl018": "nice to, was nice, chatting, adios, ai goodbye, chatting with, conversation, conversation with, for talking, pleasant",
|
| 450 |
+
"cl063": "why is, account has, locked out, why am, i locked, is blocked, blocked but, can't i, confused, confused about",
|
| 451 |
+
"cl065": "song is, what song, is playing, song that's, song this, that's playing, this is, title, title of, are listening",
|
| 452 |
+
"cl043": "fees, transaction fees, international transaction, for using, fees for, any transaction, associated, associated with, be charged, fees associated",
|
| 453 |
+
"cl082": "car was, the shop, been since, car last, last have, shop, had my, last oil, long has, last changed",
|
| 454 |
+
"cl062": "meetings, any meetings, what meetings, meetings do, meetings today, today between, have today, meetings for, meetings with, my meetings",
|
| 455 |
+
"cl016": "what ingredients, ingredients, ingredients are, ingredients do, ingredients in, broccoli, broccoli cheddar, buy to, cheddar soup, chicken noodle",
|
| 456 |
+
"cl119": "fraudulent, a fraudulent, fraudulent activity, fraudulent transaction, fraud, report fraudulent, transaction from, fraud on, activity, charges on",
|
| 457 |
+
"cl076": "centimeters, ounces, inches, you convert, feet, meters, teaspoons, grams, inches to, kilos",
|
| 458 |
+
"cl002": "lights, fan, the lights, door, fan on, the door, the fan, furnace, lights on, on please",
|
| 459 |
+
"cl020": "a hotel, hotel in, hotel, to stay, hotel room, people from, until 3, with good, 10 people, 11 to",
|
| 460 |
+
"cl042": "map, the map, am on, location on, a map, about finding, current gps, i located, location please, where am",
|
| 461 |
+
"cl096": "the weather, weather, forecast, rain, costa mesa, forecast for, high temperature, mesa, the forecast, chance",
|
| 462 |
+
"cl145": "state taxes, in taxes, my state, federal taxes, my federal, much will, pay in, federal tax, in federal, of tax",
|
| 463 |
+
"cl050": "minimum, the minimum, minimum payment, can pay, minimum i, payment on, bill minimum, bill's minimum, smallest, the smallest",
|
| 464 |
+
"cl046": "whisper, mode, whisper mode, to whisper, whisper voice, the whisper, use whisper, use your, whispering, a whisper",
|
| 465 |
+
"cl054": "cancel that, abort, current task, ai stop, anymore please, are doing, halt, last request, never mind, quit",
|
| 466 |
+
"cl106": "international visa, visa to, travel visa, visa for, an international, canada next, cancun, islands, next month, require an",
|
| 467 |
+
"cl099": "shots, vaccinations, vaccines, any shots, get any, shots before, to africa, shots do, what shots, a vaccination",
|
| 468 |
+
"cl031": "pto days, days do, days are, days left, accrued, are left, i accrued, left for, remaining pto, many vacation",
|
| 469 |
+
"cl121": "closest starbucks, nearest, the nearest, of liberty, statue, statue of, liberty by, me directions, nearest gas, the statue",
|
| 470 |
+
"cl122": "spell, to spell, you spell, spelling, spelling of, happiness, spelled, superficial, spell superficial, the spelling",
|
| 471 |
+
"cl132": "are things, you doing, ai doing, hi there, is everything, what's up, whats up, you feel, hi, how are",
|
| 472 |
+
"cl138": "factory settings, reset, original, your factory, original settings, to factory, default, revert, settings, reset to",
|
| 473 |
+
"cl124": "a name, name should, you by, being called, like me, like your, i refer, name i, want me, know your",
|
| 474 |
+
"cl011": "direct deposit, up direct, deposit, a direct, deposit for, directly, deposit my, setting up, direct, to direct",
|
| 475 |
+
"cl118": "interest rate, the interest, interest, my interest, current interest, what interest, rate for, rate on, america cd, cd",
|
| 476 |
+
"cl012": "i increase, 1000, increase my, to 1000, a higher, higher, limit to, higher limit, 000, i raise",
|
| 477 |
+
"cl057": "hobbies, enjoy, you enjoy, your hobbies, hobbies do, free time, of hobbies, what hobbies, any hobbies, your free",
|
| 478 |
+
"cl111": "roundtrip, for under, returning, dallas to, roundtrip flight, flight from, a roundtrip, and returning, returning on, from dallas",
|
| 479 |
+
"cl089": "whats on, list out, go shopping, items are, list consist, put milk, tomato, what all, consist, consist of",
|
| 480 |
+
"cl070": "text, a text, send a, text message, text to, tell him, message to, tell her, you text, message",
|
| 481 |
+
"cl071": "my bills, bills, electricity, water and, and electricity, comcast, comcast bill, dte, my comcast, on bills",
|
| 482 |
+
"cl105": "share my, location with, and craig, coordinates with, craig, and jerry, ben and, craig where, jerry, let the",
|
| 483 |
+
"cl107": "card points, redeem, cash in, redeem my, i cash, to redeem, to cash, in rewards, points to, the rewards",
|
| 484 |
+
"cl009": "that goes, don't make, goes like, it bad, jude don't, like hey, music by, my shower, shower playlist, music",
|
| 485 |
+
"cl008": "calendar on, add farm, appointment i, at 10, calendar that, clear my, dentist appointment, doctor's, doctor's appointment, event from",
|
| 486 |
+
"cl021": "a real, real person, a bot, bot, real, a computer, an ai, human, ai or, human or",
|
| 487 |
+
"cl014": "gas tank, gas to, enough gas, gas level, current gas, fuel level, gas in, get gas, to sioux, tank",
|
| 488 |
+
"cl090": "expires, card expires, card expire, expiration date, card's expiration, what month, month that, expiration, be until, card going",
|
| 489 |
+
"cl048": "my playlist, add this, song to, add what, broken by, by evanescence, evanescence, favorite, my jazz, new playlist",
|
| 490 |
+
"cl115": "cancel my, reservation i, the reservation, dinner reservation, i cancel, chris at, for chris, joe, cancel the, to cancel",
|
| 491 |
+
"cl081": "joke, a joke, funny about, jokes, joke about, funny, good joke, something funny, about food, funny jokes",
|
| 492 |
+
"cl102": "calling you, ai name, name to, betty, new name, start calling, name for, as my, set your, change your",
|
| 493 |
+
"cl150": "age, your age, many years, how old, long have, old you, were born, alive, been alive, your birthday",
|
| 494 |
+
"cl086": "rental, rent a, car rental, a rental, rental car, to rent, car for, car from, can rent, i rent",
|
| 495 |
+
"cl060": "battery, jump start, to jump, car battery, dead, jump, dead car, a dead, is dead, jump a",
|
| 496 |
+
"cl092": "a meal, italian meal, meal suggestion, meal, meal from, suggestion, a suggestion, dinner suggestions, suggestion for, a mexican",
|
| 497 |
+
"cl007": "pie, make sushi, recipe for, blackberry, blackberry pie, good recipe, make beef, a chow, chicken pot, chow",
|
| 498 |
+
"cl144": "salary, my salary, at work, i making, yearly, my income, my pay, income, pay period, from work",
|
| 499 |
+
"cl059": "so will, order everything, buy me, lysol, order me, and order, be ordered, buy everything, buy something, cat food",
|
| 500 |
+
"cl068": "the traffic, traffic, like on, traffic like, route, route to, traffic on, the route, traffic typically, typically",
|
| 501 |
+
"cl032": "checks, checkbooks, more checkbooks, more checks, checks for, checkbooks for, new checks, checkbooks mailed, i order, for more",
|
| 502 |
+
"cl095": "declined, was declined, declined at, got declined, declined yesterday, card declined, accepted, at walmart, buying, card not",
|
| 503 |
+
"cl088": "formula, formula for, stock, the formula, war, game, the most, to learn, win, learn"
|
| 504 |
},
|
| 505 |
"router_anchor": "rt03"
|
| 506 |
},
|
|
|
|
| 524 |
"db13": "animal"
|
| 525 |
},
|
| 526 |
"criteria": {
|
| 527 |
+
"db00": "headquartered, headquartered in, products, manufacturer of, company that, the company, a subsidiary, airlines, company headquartered, privately",
|
| 528 |
+
"db01": "secondary school, college is, schools in, school located, co educational, school for, coeducational, university is, day school, elementary",
|
| 529 |
+
"db06": "his work, musician and, american musician, songwriter and, author of, bands, actress she, guitarist and, record producer, for being",
|
| 530 |
+
"db07": "footballer, footballer who, plays for, who played, player who, currently plays, played for, hockey, who currently, football player",
|
| 531 |
+
"db08": "politician, republican, of representatives, representatives, politician who, politician and, a republican, assembly, senate, representing",
|
| 532 |
+
"db09": "uss, states navy, hms, class of, royal navy, laid down, ship of, destroyer, a class, locomotive",
|
| 533 |
+
"db10": "of historic, historic places, places in, street in, a historic, the building, added to, house was, historic, historic house",
|
| 534 |
+
"db11": "tributary, tributary of, a tributary, in romania, river is, flows, a river, a mountain, river of, it flows",
|
| 535 |
+
"db12": "a village, census, rural district, persian also, province iran, also romanized, romanized, romanized as, iran at, village in",
|
| 536 |
+
"db13": "moth, a moth, moth of, gastropod, snail, mollusk, mollusk in, of sea, snail a, gastropod mollusk",
|
| 537 |
+
"db02": "of flowering, flowering plant, of plant, flowering plants, plants in, flowering, flowers, of orchid, shrub, fabaceae",
|
| 538 |
+
"db03": "album by, the album, album was, an album, ep, the debut, compilation, live album, album of, this album",
|
| 539 |
+
"db04": "film directed, drama film, and starring, comedy film, directed by, film was, film written, film is, it stars, directed",
|
| 540 |
+
"db05": "published in, peer reviewed, reviewed, first published, a peer, book by, illustrated, novel in, is published, novel written"
|
| 541 |
},
|
| 542 |
"router_anchor": "rt04"
|
| 543 |
},
|
|
|
|
| 553 |
"em05": "surprise"
|
| 554 |
},
|
| 555 |
"criteria": {
|
| 556 |
+
"em00": "disheartened, listless, rotten, gloomy, inadequate, feel guilty, homesick, regretful, deprived, doomed",
|
| 557 |
+
"em03": "dangerous, resentful, cranky, offended, wronged, insulted, bitchy, distracted, rebellious, hostile",
|
| 558 |
+
"em05": "shocked, dazed, impressed, dazed and, amazed, feel amazed, stunned, feel curious, amazed at, feel funny",
|
| 559 |
+
"em01": "productive, successful, glad, rich, festive, honored, optimistic, sincere, worthwhile, adventurous",
|
| 560 |
+
"em04": "shaken, apprehensive, intimidated, uncertain, paranoid, reluctant, pressured, feel threatened, distressed, intimidated by",
|
| 561 |
+
"em02": "nostalgic, supportive, loyal, fond, horny, sympathetic, tender, compassionate, fond of, longing for"
|
| 562 |
},
|
| 563 |
"router_anchor": "rt05"
|
| 564 |
},
|
|
|
|
| 570 |
"en01": "spam"
|
| 571 |
},
|
| 572 |
"criteria": {
|
| 573 |
+
"en01": "2004, viagra, xp, windows xp, brand, oo, meds, sex, medication, cialis",
|
| 574 |
+
"en00": "enron, vince, pm to, hou ect, forwarded by, am to, ect ect, cc subject, kaminski, ect on"
|
| 575 |
},
|
| 576 |
"router_anchor": "rt06"
|
| 577 |
},
|
|
|
|
| 627 |
"ha02": "neither"
|
| 628 |
},
|
| 629 |
"criteria": {
|
| 630 |
+
"ha01": "bad bitches, loyal, bad bitch, bitch in, that shit, the bitches, 9996, hoes ain't, the bitch, a bitch",
|
| 631 |
+
"ha02": "yankees, brownies, the yankees, flappy, flappy bird, jeter, redskins, oreos, apes, early bird",
|
| 632 |
+
"ha00": "of white, is full, the faggots, the us, feminist, ight, jew, marylene58, spic, the south"
|
| 633 |
},
|
| 634 |
"router_anchor": "rt09"
|
| 635 |
},
|
|
|
|
| 641 |
"po01": "positive"
|
| 642 |
},
|
| 643 |
"criteria": {
|
| 644 |
+
"po01": "a must, highly recommend, wonderfully, must read, loves it, an excellent, can't wait, great price, have for, always been",
|
| 645 |
+
"po00": "your money, waste your, not buy, junk, a waste, don't waste, contacted, is nothing, not what, refund"
|
| 646 |
},
|
| 647 |
"router_anchor": "rt10"
|
| 648 |
},
|
|
|
|
| 721 |
},
|
| 722 |
"_router": {
|
| 723 |
"criteria": {
|
| 724 |
+
"rt00": "news headlines sports",
|
| 725 |
+
"rt01": "banking cards payments",
|
| 726 |
+
"rt02": "boolean question passage",
|
| 727 |
+
"rt03": "assistant requests weather",
|
| 728 |
+
"rt04": "encyclopedia entities topics",
|
| 729 |
+
"rt05": "feelings emotions reactions",
|
| 730 |
+
"rt06": "email inbox messages",
|
| 731 |
+
"rt07": "game commands actions",
|
| 732 |
+
"rt08": "safety destructive irreversible",
|
| 733 |
+
"rt09": "social offensive posts",
|
| 734 |
+
"rt10": "product reviews opinions",
|
| 735 |
+
"rt11": "text messages spam",
|
| 736 |
+
"rt12": "support tickets bengali",
|
| 737 |
+
"rt13": "support billing sales technical",
|
| 738 |
+
"rt14": "support tickets hindi",
|
| 739 |
+
"rt15": "support tickets russian"
|
| 740 |
}
|
| 741 |
}
|
| 742 |
},
|
docs/ENGINE_PORT.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
# Engine port — v3.2.0 →
|
| 2 |
|
| 3 |
## What changed
|
| 4 |
|
|
@@ -87,6 +87,41 @@ ported engine first.
|
|
| 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
|
|
@@ -108,69 +143,4 @@ 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.
|
| 112 |
-
|
| 113 |
-
---
|
| 114 |
-
|
| 115 |
-
# v4.0.0 — the affinity field readout (2026-11)
|
| 116 |
-
|
| 117 |
-
The engine in `engine/` is now the **v4.0.0** tree: the same source as the
|
| 118 |
-
GitHub repo at the v4.0 commit, so the code and the weights that ship here
|
| 119 |
-
are the code that produced every number in the card.
|
| 120 |
-
|
| 121 |
-
| | before | after |
|
| 122 |
-
|---|---:|---:|
|
| 123 |
-
| `core/*.hpp` | 16 files | 16 files |
|
| 124 |
-
| `core/syfox.hpp` | 2,415 lines | 2,756 lines |
|
| 125 |
-
| `core/si_substrate.hpp` | 2,415 lines | 2,539 lines |
|
| 126 |
-
| string | `syfox-3.9.1` | `syfox-4.0.0` |
|
| 127 |
-
|
| 128 |
-
## What v4.0 adds
|
| 129 |
-
|
| 130 |
-
1. **The affinity field readout (AFR)** — `core/syfox.hpp`, `--affinity-mix F`
|
| 131 |
-
(0 = legacy, bit-identical to v3.9.1; 1 = affinity only) and
|
| 132 |
-
`--affinity-pmi` (the log-odds form). No training, no neural network: it
|
| 133 |
-
reads the Hebbian affinity the fabric already learned, against the
|
| 134 |
-
candidate set as its own null model.
|
| 135 |
-
2. **The lane repair** — `core/si_substrate.hpp`, `syfox repair-lanes
|
| 136 |
-
--model DIR [--dead-threshold F] [--dry-run]`, plus `--lane-floor F` for
|
| 137 |
-
new fabrics. The port applied CMD §2.3's decay to every lane on every
|
| 138 |
-
lesson, so a lane last bound long ago underflows to the float32 denormal
|
| 139 |
-
floor and the Hebbian memory is erased; the repair rebuilds it from the
|
| 140 |
-
persisted evidence ledger in CMD's saturating form.
|
| 141 |
-
3. **The per-candidate-count temperature** — one scalar per distinct
|
| 142 |
-
candidate count, because one scalar cannot serve a 14-way and a 2-way
|
| 143 |
-
spread at once. Persisted in `calibration.json`
|
| 144 |
-
(`choice_temperature_by_count`).
|
| 145 |
-
|
| 146 |
-
## The recorded composition moved
|
| 147 |
-
|
| 148 |
-
`model/*/physics.json` now carries the **readout** as well as the physics:
|
| 149 |
-
|
| 150 |
-
```json
|
| 151 |
-
{"affinity_mix":0.3,"affinity_pmi":false,"decay":0.82,"diffusion":0.45,
|
| 152 |
-
"energy_norm":true,"hop_coupling":0.35,"k_settle":8,"recorded":true}
|
| 153 |
-
```
|
| 154 |
-
|
| 155 |
-
so a deployed model decides under the readout its temperature was fitted for.
|
| 156 |
-
Seven of the nine fabrics here carry `affinity_mix: 0.3`; `sst2` and `amazon`
|
| 157 |
-
carry none, because the affinity readout would drop them below their own
|
| 158 |
-
admission gate (see the card's v4.0 section).
|
| 159 |
-
|
| 160 |
-
**The C API now applies the recorded composition on load.**
|
| 161 |
-
`syfox_engine_create()` loads `physics.json` and *applies* it, so the
|
| 162 |
-
python bridge, the HTTP server and the Space decide under the same physics
|
| 163 |
-
as the CLI. Before this, the server path decided under a different
|
| 164 |
-
composition — and, after v4.0, under a different readout than the fitted
|
| 165 |
-
temperature.
|
| 166 |
-
|
| 167 |
-
## Rebuilding
|
| 168 |
-
|
| 169 |
-
```bash
|
| 170 |
-
cd engine && make all && make sync-so && cd ..
|
| 171 |
-
```
|
| 172 |
-
|
| 173 |
-
`make sync-so` copies `engine/build/libsyfox_core.so` to the **repo-root**
|
| 174 |
-
`build/`, which is where `server/syfox_bridge.py` loads it from. Skipping it
|
| 175 |
-
is the most common setup failure: the CLI and the tests pass, then
|
| 176 |
-
`from inference import SyFox` dies with `undefined symbol`.
|
|
|
|
| 1 |
+
# Engine port — v3.2.0 → v3.9.1
|
| 2 |
|
| 3 |
## What changed
|
| 4 |
|
|
|
|
| 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 |
+
## UPDATE (v3.9.2): the gap is closed — and the v3.9 defer behavior was a bug
|
| 91 |
+
|
| 92 |
+
The hidden splits **are** shipped in this repo (`datasets/eval/*_hidden.jsonl`),
|
| 93 |
+
so the re-measurement was run (2026-11, engine defaults, `energy_norm` on,
|
| 94 |
+
`tools/giant_bench.py` informed-condition methodology):
|
| 95 |
+
|
| 96 |
+
- **v3.9.1 defaults**: macro e2e **0.103** over 22,328 latin rows — 12,190
|
| 97 |
+
router rows (55%) deferred `ambiguous_tie` by the v3.4.0 default margin
|
| 98 |
+
0.05. That gate compares a **post-temperature** probability gap while
|
| 99 |
+
`choice_temperature` is per-fabric fitted (0.005 on b77-sem — gate inert;
|
| 100 |
+
0.18 on giant-latin — fires en masse; 1.0 on amazon — fired on 10/10 novel
|
| 101 |
+
probes). The near-tie defer was never a portable honesty signal; v3.9.2
|
| 102 |
+
makes it opt-in (default 0), restoring the paper's deterministic arg-max
|
| 103 |
+
readout (SI vol. 2, CPME emission contract: temperature x softmax is a
|
| 104 |
+
calibration map, never a decision gate; honest silence stays in energy
|
| 105 |
+
space via `kUnknownCandidateFloor`).
|
| 106 |
+
- **Drifted schemas**: `datasets/schemas.json` in this repo had been
|
| 107 |
+
regenerated with different criteria text for 9 domains + `_router` while
|
| 108 |
+
`substrate.bin` stayed the old fabric — even with defers forced off this
|
| 109 |
+
alone cost macro e2e 0.024 (game 0.70 → 0.37, tickets_en 0.76 → 0.65,
|
| 110 |
+
polarity 0.19 → 0.07). Restored to the training-time version.
|
| 111 |
+
- **v3.9.2 after both fixes**: the documented v3.2.0 per-domain numbers
|
| 112 |
+
reproduce exactly (tickets_en 0.761, bank77 0.022, sms 0.222, clinc 0.122,
|
| 113 |
+
enron 0.323, emotion 0.073, hate 0.273, agnews 0.206, polarity 0.189,
|
| 114 |
+
dbpedia 0.204, boolq 0.059; macro 0.1963 on those 11; 0.2209 over all 13
|
| 115 |
+
incl. game 0.702 / guard 0.205). Residual defers: 57/24,728 = 0.26%, all
|
| 116 |
+
energy-floor honest silence (`unknown_candidates` / `empty_state`).
|
| 117 |
+
b77-sem dedicated fabric: 0.159 (documented 0.158). Amazon novel probes:
|
| 118 |
+
0.70 answered, 0 defers (were 10/10 deferred). The `inference.py` smoke
|
| 119 |
+
rows answer again.
|
| 120 |
+
|
| 121 |
+
The "stricter honesty" interpretation of the v3.9.1 deferrals was wrong:
|
| 122 |
+
they were a threshold artifact. True honest silence (empty field, unknown
|
| 123 |
+
vocabulary) is unchanged and still measured.
|
| 124 |
+
|
| 125 |
## Tagging — two requested tags were not applied
|
| 126 |
|
| 127 |
The model card was updated with accurate tags that are genuinely rare on the
|
|
|
|
| 143 |
`selective-prediction`**, alongside `no-transformer` / `no-neural-network` /
|
| 144 |
`no-pattern-matching`. A decision engine that can say "I don't know", with no
|
| 145 |
neural network anywhere, is a more defensible claim than a multimodal one, and
|
| 146 |
+
it is the one this repo actually demonstrates.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
docs/PROBING.md
CHANGED
|
@@ -25,9 +25,9 @@ therefore which signal (or noise) the field returns.
|
|
| 25 |
|
| 26 |
2. **Use `--defer-margin P` when ties must not masquerade as decisions.**
|
| 27 |
The substrate always decides (physics untouched); the flag discloses
|
| 28 |
-
margin below P as `deferred: true, reason: "
|
| 29 |
-
confident-looking label on 50.9/49.1 splits.
|
| 30 |
-
`"options": {"defer_margin": 0.1}`.
|
| 31 |
|
| 32 |
3. **Sweep the criteria wording — one fabric, three conditions:**
|
| 33 |
matched / reworded / empty. Agreement between conditions is evidence about
|
|
|
|
| 25 |
|
| 26 |
2. **Use `--defer-margin P` when ties must not masquerade as decisions.**
|
| 27 |
The substrate always decides (physics untouched); the flag discloses
|
| 28 |
+
margin below P as `deferred: true, reason: "ambiguous_tie"` instead of a
|
| 29 |
+
confident-looking label on 50.9/49.1 splits. Opt-in (default 0 since
|
| 30 |
+
v3.9.2). Same knob on the server: `"options": {"defer_margin": 0.1}`.
|
| 31 |
|
| 32 |
3. **Sweep the criteria wording — one fabric, three conditions:**
|
| 33 |
matched / reworded / empty. Agreement between conditions is evidence about
|
docs/RETEST_v392.md
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SyFox v3.9.2 retest report — the wrong-answer investigation, closed
|
| 2 |
+
|
| 3 |
+
**Question asked:** does the model get better or worse answers on the new
|
| 4 |
+
engine, and if worse — why, and how is it fixed?
|
| 5 |
+
|
| 6 |
+
**Answer:** worse — and the loss was fully recoverable. Under v3.9.1 engine
|
| 7 |
+
defaults the documented numbers collapsed (macro e2e 0.196 → 0.103). Two
|
| 8 |
+
shipping defects caused it; both are fixed in v3.9.2 and the documented
|
| 9 |
+
v3.2.0 numbers now reproduce exactly under plain engine defaults.
|
| 10 |
+
|
| 11 |
+
## Methodology
|
| 12 |
+
|
| 13 |
+
Identical to `tools/giant_bench.py` (informed condition): one `decide()` per
|
| 14 |
+
hidden row carrying the router question + the row's true-domain class
|
| 15 |
+
question, `energy_norm` on, no other flags. Data: the hidden splits shipped
|
| 16 |
+
in the Space (`datasets/eval/*_hidden.jsonl`), gold labels untouched.
|
| 17 |
+
Engine: the Space core rebuilt at each version under test.
|
| 18 |
+
|
| 19 |
+
## Finding 1 — the v3.4.0 near-tie defer gate was default-ON and not portable
|
| 20 |
+
|
| 21 |
+
`defer_margin_ = 0.05` (v3.4.0) defers an answer whenever the top-two
|
| 22 |
+
**probability** gap is under 0.05. But probabilities are produced by a
|
| 23 |
+
softmax whose temperature is fitted per fabric, and the shipped fabrics span
|
| 24 |
+
`choice_temperature` 0.005 → 1.0:
|
| 25 |
+
|
| 26 |
+
| fabric | T | effect of the 0.05 gate |
|
| 27 |
+
|---|---|---|
|
| 28 |
+
| b77-sem | 0.0047 | softmax saturated → gap ≈ 1 → gate inert (11/3080) |
|
| 29 |
+
| router16 | 0.0049 | inert (dedicated-fabric use) |
|
| 30 |
+
| giant-bengali | 0.0086 | near-inert (5/540) |
|
| 31 |
+
| sst2 | 0.159 | occasional (3/12 novel probes) |
|
| 32 |
+
| giant-latin | 0.178 | **55% of rows deferred `ambiguous_tie`** |
|
| 33 |
+
| agnews | 0.238 | occasional (1/12) |
|
| 34 |
+
| amazon | 1.000 (fit rejected T) | **10/10 novel probes deferred** |
|
| 35 |
+
|
| 36 |
+
Measured damage (22,328 latin hidden rows): 12,190 router defers + 374 class
|
| 37 |
+
defers; macro e2e 0.196 → 0.103; e2e on the README's canonical billing
|
| 38 |
+
example became a deferral. With `no_defer` the answers returned, proving the
|
| 39 |
+
substrate still decided correctly — the gate, not the physics, was wrong.
|
| 40 |
+
|
| 41 |
+
This contradicts the paper the engine implements: the SI central paper
|
| 42 |
+
(vol. 2, CPME emission contract) specifies a **deterministic arg-max**
|
| 43 |
+
readout — "Temperature × softmax" is listed as the neural alternative SI
|
| 44 |
+
rejects — and places honest silence in **energy space**
|
| 45 |
+
(`θ_emit · max_j w_j` floors), never on the calibrated probability scale.
|
| 46 |
+
The engine's own v3.9.1 header (Answer.raw_margin) already disclosed the
|
| 47 |
+
saturation problem; v3.5.0's changelog had even recorded
|
| 48 |
+
`game choice_defer_rate 1.0` as a measured outcome and shipped it anyway.
|
| 49 |
+
|
| 50 |
+
**Fix (v3.9.2):** `defer_margin_` default 0.05 → **0**; the knob remains
|
| 51 |
+
opt-in (`--defer-margin P`, `options.defer_margin`). Energy-space honest
|
| 52 |
+
silence (`unknown_candidates` / `honest_silence` / `empty_state`) is
|
| 53 |
+
untouched. Unit tests updated to pin the new default and the opt-in
|
| 54 |
+
mechanism; full suite passes.
|
| 55 |
+
|
| 56 |
+
## Finding 2 — the Space's `datasets/schemas.json` had drifted from the training-time schemas
|
| 57 |
+
|
| 58 |
+
The Space copy of `schemas.json` had been regenerated with different
|
| 59 |
+
criteria keywords for **9 domains + the `_router` entry** (e.g. agnews
|
| 60 |
+
`"news headlines sports"` → `"news headlines world sports business
|
| 61 |
+
technology"`), and `MANIFEST.json` claimed 4000-6000 more training rows —
|
| 62 |
+
while `model/giant-latin/substrate.bin` (v3.1.2 fabric) stayed trained on
|
| 63 |
+
the old criteria. Criteria text is injected energy: asking old fabrics with
|
| 64 |
+
new wording measures a different system.
|
| 65 |
+
|
| 66 |
+
Measured damage (defers forced off, so this is pure drift): macro e2e
|
| 67 |
+
0.196 → 0.172. Worst domains: game 0.702 → 0.367, polarity 0.189 → 0.068,
|
| 68 |
+
emotion 0.073 → 0.016, tickets_en 0.761 → 0.648.
|
| 69 |
+
|
| 70 |
+
**Fix (v3.9.2):** `datasets/schemas.json` and `datasets/MANIFEST.json`
|
| 71 |
+
restored to the training-time versions (the git repo's `data/giant/`).
|
| 72 |
+
Proof they are the right ones: with them, the v3.9.x engine reproduces the
|
| 73 |
+
documented v3.2.0 numbers **exactly** (9 of 11 domains bit-identical) —
|
| 74 |
+
the engine physics never regressed.
|
| 75 |
+
|
| 76 |
+
## Finding 3 — the HTTP layer double-deferred
|
| 77 |
+
|
| 78 |
+
`server/app.py` re-applied `options.defer_margin` a second time after the
|
| 79 |
+
C API had already applied it inside `decide()` (reason `low_margin` vs the
|
| 80 |
+
engine's `ambiguous_tie`) — duplicate filtering that made HTTP diverge from
|
| 81 |
+
CLI/bench. Removed; the engine is the single source of truth.
|
| 82 |
+
|
| 83 |
+
## Result after the fixes (v3.9.2, engine defaults, no extra flags)
|
| 84 |
+
|
| 85 |
+
| domain | n | v3.2.0 documented | v3.9.1 default (broken) | v3.9.2 (fixed) |
|
| 86 |
+
|---|---:|---:|---:|---:|
|
| 87 |
+
| tickets_en | 1800 | 0.7606 | 0.4106 | **0.7606** |
|
| 88 |
+
| bank77 | 3080 | 0.0221 | 0.0133 | **0.0221** |
|
| 89 |
+
| sms | 838 | 0.2220 | 0.0907 | **0.2217** |
|
| 90 |
+
| clinc | 4500 | 0.1229 | 0.0258 | 0.1224 |
|
| 91 |
+
| enron | 1110 | 0.3225 | 0.3225 | **0.3225** |
|
| 92 |
+
| emotion | 2000 | 0.0730 | 0.0040 | **0.0730** |
|
| 93 |
+
| hate | 1500 | 0.2773 | 0.0880 | 0.2727 |
|
| 94 |
+
| agnews | 2000 | 0.2060 | 0.1220 | **0.2060** |
|
| 95 |
+
| polarity | 2000 | 0.1890 | 0.0530 | **0.1890** |
|
| 96 |
+
| dbpedia | 2000 | 0.2045 | 0.2225 | **0.2045** |
|
| 97 |
+
| boolq | 1500 | 0.0587 | 0.0173 | **0.0587** |
|
| 98 |
+
| game | 1200 | — | 0.3667 | 0.7017 |
|
| 99 |
+
| guard | 1200 | — | 0.2083 | 0.2050 |
|
| 100 |
+
| **macro (11 documented)** | 22328 | **0.1963** | 0.1026 | **0.1963** |
|
| 101 |
+
| **macro (all 13)** | 24728 | — | 0.1288 | **0.2209** |
|
| 102 |
+
|
| 103 |
+
Residual defers after the fix: **57 of 24,728 rows (0.26%)**, all
|
| 104 |
+
energy-floor honest silence (`unknown_candidates` 55, `empty_state` 2) —
|
| 105 |
+
the paper-compliant behavior, unchanged from v3.2.0.
|
| 106 |
+
|
| 107 |
+
Cross-checks: b77-sem dedicated fabric 0.159 (documented 0.158) ✓;
|
| 108 |
+
per-script fabrics 0.94-0.96 ✓; novel probes sst2 0.750 / agnews 0.583 /
|
| 109 |
+
**amazon 0.700 with 0 defers** (the original gate's score; v3.9.1 had
|
| 110 |
+
10/10 deferred) ✓; `inference.py` smoke rows answer again ✓; full engine
|
| 111 |
+
unit suite passes ✓.
|
| 112 |
+
|
| 113 |
+
Residual note: clinc (0.1224 vs 0.1229) and hate (0.2727 vs 0.2773) sit
|
| 114 |
+
~9 rows in 24,728 below the documented values — consistent with
|
| 115 |
+
thread-order float nondeterminism between runs, not a behavior change;
|
| 116 |
+
the same values repeat across two independent fixed-engine runs.
|
| 117 |
+
|
| 118 |
+
## How to re-verify
|
| 119 |
+
|
| 120 |
+
```bash
|
| 121 |
+
cd engine && make && make sync-so && cd ..
|
| 122 |
+
python3 tools/giant_bench.py --model model/giant-latin # informed condition
|
| 123 |
+
python3 inference.py # smoke rows answer
|
| 124 |
+
```
|
| 125 |
+
|
| 126 |
+
Numbers quoted from: `results/giant_latinv392fix_default_rows.jsonl`
|
| 127 |
+
(per-domain aggregates), 2026-11-17.
|
docs/RETEST_v402.md
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# RETEST v4.0.2 — fresh clone, every gate armed, the measured ladder
|
| 2 |
+
|
| 3 |
+
**Question this closes:** the v3.9.1 accuracy collapse was fixed in v3.9.2
|
| 4 |
+
(engine readout parity). This retest answers what came after: does the
|
| 5 |
+
tree, cloned fresh from Gitea at v4.0 and worked forward to v4.0.2,
|
| 6 |
+
build clean, pass every CI gate with real artifacts, and BEAT the
|
| 7 |
+
shipped baseline on the handmade (anti-contamination) probe set and on
|
| 8 |
+
the hidden splits? Every number below was measured in this tree, on this
|
| 9 |
+
machine, by the commands listed. Fabric provenance: the SHIPPED HF
|
| 10 |
+
fabrics (giant-latin v3.1.2 build, b77-sem/router16 v3.2.0 builds),
|
| 11 |
+
`repair-lanes` applied where stated, recalibrated under recorded
|
| 12 |
+
compositions; the bank77 fabric retrained from the official PolyAI
|
| 13 |
+
banking77 splits.
|
| 14 |
+
|
| 15 |
+
## 1. Fresh-clone bugs found and fixed (4)
|
| 16 |
+
|
| 17 |
+
| # | bug | fix |
|
| 18 |
+
|---|-----|-----|
|
| 19 |
+
| 1 | `register` wrote `impossibility.json` into a model dir that did not exist yet; the bare ofstream failed silently, printed `persisted:null`, exited 0 — `tests/jas_test.sh` failed only on machines that had never built the demo fabric | `cmd_register` creates the dir (save_model contract) and exits non-zero naming the path if persistence still fails |
|
| 20 |
+
| 2 | `scripts/b77_train_chunked.sh` hardcoded `cd /home/z/my-project/syfox` | cd relative to the script |
|
| 21 |
+
| 3 | the handmade gate defaulted to `datasets/schemas.json` — an HF-layout path absent on a fresh Gitea clone | points at the committed training-time `data/giant/schemas.json` |
|
| 22 |
+
| 4 | `tools/jev_bench.py` had an unterminated string literal — `make jev-compare` was committed broken and could not run | fixed; the head-to-head table renders |
|
| 23 |
+
| 5 | `VERSION` still said 3.9.1 while shipping the v4.0 readout | 4.0.2 |
|
| 24 |
+
| 6 | `b77_train_chunked.sh` ROWS_PER_CHUNK=1500 OOMs the 4GB sandbox since v3.6 made bigram lanes learn-default (measured: silent learn death at ~9k nodes) | 500-row chunks, same rows/order/epochs |
|
| 25 |
+
|
| 26 |
+
## 2. The measured ladder
|
| 27 |
+
|
| 28 |
+
Handmade gate = 148 hand-written probes, deliberately outside all
|
| 29 |
+
training/eval vocabulary (the anti-contamination check). Baseline
|
| 30 |
+
reproduces the v3.9.3 commit exactly.
|
| 31 |
+
|
| 32 |
+
| rung | handmade TOTAL | bank77 handmade | bank77 HIDDEN | giant HIDDEN class total |
|
| 33 |
+
|---|---|---|---|---|
|
| 34 |
+
| shipped fabrics, legacy readout | 0.291 | 0.103 | 0.158 | 0.318 (baseline bench) |
|
| 35 |
+
| + `repair-lanes` (giant 1,330,812 lanes revived, 681→117,478; b77 159,449; router 43,117) + AFR mix 0.3, d0.45 | 0.358 | 0.176 | 0.275 | 0.479 |
|
| 36 |
+
| + CAL-selected diffusion (giant/b77 d0.02, router d0.45) | 0.385 | 0.191 | 0.460 | 0.551 |
|
| 37 |
+
| + bank77 retrained WITH the v3.6 ordered bigram lanes + IDF (the shipped fabric predated them) | **0.432** | **0.294** | **0.629** | 0.551 |
|
| 38 |
+
|
| 39 |
+
Giant per-domain HIDDEN (class) at the selected composition:
|
| 40 |
+
tickets_en 0.962, game 0.942, enron 0.894, hate 0.774, agnews 0.792,
|
| 41 |
+
sms 0.770, dbpedia 0.714, clinc 0.565, boolq 0.547, emotion 0.438,
|
| 42 |
+
bank77 0.468 (the dedicated b77 fabric scores 0.629). The giant's own
|
| 43 |
+
router question recovered 0.254 → 0.496 (e2e 0.153 → 0.315).
|
| 44 |
+
|
| 45 |
+
The new bank77 fabric: 19,707 nodes / 1,383,120 lanes / 54,000 lessons
|
| 46 |
+
(v3.2.0 fabric: 1,648 / 217,729). CAL 0.612 (d0.02) vs 0.458 (d0.45);
|
| 47 |
+
HIDDEN 0.629, defer 0.091, ECE 0.077. **The handmade bank77 gain
|
| 48 |
+
(0.103 → 0.294) proves the bigram fabric generalises — the probes are
|
| 49 |
+
outside its training vocabulary.**
|
| 50 |
+
|
| 51 |
+
Disclosed regressions: hate handmade 0.500 → 0.167 (per-domain
|
| 52 |
+
diffusion trade-off; CAL selected d0.02 for the giant as a whole);
|
| 53 |
+
emotion handmade 0.417 (d0.45) → 0.333 (d0.02), both above the 0.167
|
| 54 |
+
baseline.
|
| 55 |
+
|
| 56 |
+
## 3. vs JEV AI and Laya (third-party published numbers)
|
| 57 |
+
|
| 58 |
+
Sources: arxiv 2609.37647 (jev-1.13.0, 37 datasets, third-party);
|
| 59 |
+
laya-model.com/benchmarks and the Laya model card (vendor);
|
| 60 |
+
typesafe.ai launch (vendor workflow claim).
|
| 61 |
+
|
| 62 |
+
| axis | Jev | Laya | SyFox v4.0.2 (measured here) |
|
| 63 |
+
|---|---|---|---|
|
| 64 |
+
| banking77 | 0.870 | 0.425 | **0.629** (+20 vs Laya, −24 vs Jev; was −71) |
|
| 65 |
+
| ag_news | 0.91 | — | 0.792 (open gap) |
|
| 66 |
+
| emotion | 0.48 | — | 0.499 |
|
| 67 |
+
| ECE | 0.144–0.246 | 0.466 pre-refit | **0.067–0.077** |
|
| 68 |
+
| latency p50 | 236–276 ms | 39.5 ms (T4) | **≤ 611 µs** |
|
| 69 |
+
| honest defer, reasons | confidence only | overconfident pre-refit | **OOD 100% with reason** |
|
| 70 |
+
| determinism | not published | not published | **bit-reproducible, CI-enforced** |
|
| 71 |
+
| cost | $0.042/M in | self-host | **$0 local** |
|
| 72 |
+
| options per choice | 255 cap, then two-stage | ~20 (token budget) | **unbounded criteria map** |
|
| 73 |
+
|
| 74 |
+
## 4. Reproduce
|
| 75 |
+
|
| 76 |
+
```bash
|
| 77 |
+
git clone <bundle-or-remote> SyFox && cd SyFox
|
| 78 |
+
make all -j4 && make ci # green; with fabrics present every gate runs
|
| 79 |
+
# fabrics (gitignored): the b77-sem fabric ships in this package's
|
| 80 |
+
# huggingface/upload/model/b77-sem; giant/router are the shipped HF
|
| 81 |
+
# fabrics + one repair + one calibrate each:
|
| 82 |
+
./build/syfox repair-lanes --model model-giant-latin
|
| 83 |
+
./build/syfox calibrate --energy-norm --affinity-mix 0.3 --diffusion 0.02 \
|
| 84 |
+
--model model-giant-latin --examples <giant cal, full format>
|
| 85 |
+
./build/syfox repair-lanes --model model-router16
|
| 86 |
+
./build/syfox calibrate --energy-norm --affinity-mix 0.3 --diffusion 0.45 \
|
| 87 |
+
--model model-router16 --examples <router cal, domain question only>
|
| 88 |
+
python3 tools/handmade_gate.py --models bank77=model-b77-sem,router=model-router16 \
|
| 89 |
+
--model-default model-giant-latin # TOTAL 0.432
|
| 90 |
+
```
|
| 91 |
+
|
| 92 |
+
The cal expansions come from `tools/expand_slim_rows.py` (new): the
|
| 93 |
+
shipped slim cal splits plus the training-time schemas become full
|
| 94 |
+
calibrate/bench rows. All raw numbers: `data/v401_freshclone_tables.json`
|
| 95 |
+
(shipped in this package as `data/v401_freshclone_tables.json`).
|
docs/ZEROSHOOT.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
Entry not found
|
engine/Makefile
CHANGED
|
@@ -8,19 +8,6 @@ all: build/syfox build/syfox-test build/libsyfox_core.so build/rebuild_sem
|
|
| 8 |
build:
|
| 9 |
mkdir -p build
|
| 10 |
|
| 11 |
-
# Copy the shared library to the REPO-ROOT build/ dir, which is where
|
| 12 |
-
# server/syfox_bridge.py looks for it (ctypes: ../build/libsyfox_core.so).
|
| 13 |
-
# Skipping this is the single most common setup failure: the CLI and the tests
|
| 14 |
-
# pass, then `from inference import SyFox` dies with
|
| 15 |
-
# undefined symbol: syfox_engine_set_*
|
| 16 |
-
# because the bridge silently keeps loading a stale core.
|
| 17 |
-
sync-so: build/libsyfox_core.so
|
| 18 |
-
mkdir -p ../build
|
| 19 |
-
cp $< ../build/libsyfox_core.so
|
| 20 |
-
@echo "synced -> ../build/libsyfox_core.so"
|
| 21 |
-
|
| 22 |
-
.PHONY: sync-so
|
| 23 |
-
|
| 24 |
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
|
| 25 |
|
| 26 |
build/syfox: src/syfox_cli.cpp $(CORE_HDRS) | build
|
|
@@ -471,10 +458,28 @@ ci: build/syfox test
|
|
| 471 |
@# that has memorised its corpus instead of learning it (it is what
|
| 472 |
@# exposed the diffusion trade-off: d=0.02 buys +30 points in-distribution
|
| 473 |
@# and costs ~7 points of generalisation).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 474 |
@if [ -d model-giant-latin ] || [ -d model-b77-sem ]; then \
|
| 475 |
-
python3 tools/handmade_gate.py --schemas
|
| 476 |
--models "bank77=model-b77-sem,router=model-router16" \
|
| 477 |
--model-default model-giant-latin --quiet; \
|
| 478 |
else \
|
| 479 |
echo "SKIP handmade generalisation gate: no fabric present (gitignored; rebuild with make models)"; \
|
| 480 |
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|
|
|
|
| 458 |
@# that has memorised its corpus instead of learning it (it is what
|
| 459 |
@# exposed the diffusion trade-off: d=0.02 buys +30 points in-distribution
|
| 460 |
@# and costs ~7 points of generalisation).
|
| 461 |
+
@# v4.0.1 FIX: schemas default was datasets/schemas.json - an HF-repo-layout
|
| 462 |
+
@# path that does NOT exist on a fresh Gitea clone, so the gate crashed the
|
| 463 |
+
@# moment fabrics were rebuilt. The TRAINING-TIME schemas are committed at
|
| 464 |
+
@# data/giant/schemas.json (the v3.9.2 lesson: criteria text is injected
|
| 465 |
+
@# energy - never regenerate it).
|
| 466 |
@if [ -d model-giant-latin ] || [ -d model-b77-sem ]; then \
|
| 467 |
+
python3 tools/handmade_gate.py --schemas data/giant/schemas.json \
|
| 468 |
--models "bank77=model-b77-sem,router=model-router16" \
|
| 469 |
--model-default model-giant-latin --quiet; \
|
| 470 |
else \
|
| 471 |
echo "SKIP handmade generalisation gate: no fabric present (gitignored; rebuild with make models)"; \
|
| 472 |
fi
|
| 473 |
+
|
| 474 |
+
# Copy the shared library to the REPO-ROOT build/ dir, which is where
|
| 475 |
+
# server/syfox_bridge.py looks for it (ctypes: ../build/libsyfox_core.so).
|
| 476 |
+
# Skipping this is the single most common setup failure: the CLI and the tests
|
| 477 |
+
# pass, then `from inference import SyFox` dies with
|
| 478 |
+
# undefined symbol: syfox_engine_set_*
|
| 479 |
+
# because the bridge silently keeps loading a stale core.
|
| 480 |
+
sync-so: build/libsyfox_core.so
|
| 481 |
+
mkdir -p ../build
|
| 482 |
+
cp $< ../build/libsyfox_core.so
|
| 483 |
+
@echo "synced -> ../build/libsyfox_core.so"
|
| 484 |
+
|
| 485 |
+
.PHONY: sync-so
|
engine/core/syfox.hpp
CHANGED
|
@@ -42,7 +42,13 @@
|
|
| 42 |
|
| 43 |
namespace syfox {
|
| 44 |
|
| 45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
// ---------------------------------------------------------------------------
|
| 48 |
// v2.2 boundary injection protocol — sub-word bridges for corrupted forms.
|
|
|
|
| 42 |
|
| 43 |
namespace syfox {
|
| 44 |
|
| 45 |
+
// v4.0.1: the constant is the engine's own disclosed provenance — it is
|
| 46 |
+
// written into every meta.json, every bench report and `syfox version`.
|
| 47 |
+
// The v3.9.3 and v4.0 commits shipped their code WITHOUT bumping it (the
|
| 48 |
+
// binary self-reported "3.9.1" while deciding under the v4.0 affinity
|
| 49 |
+
// readout), which breaks the "every number names its engine" contract.
|
| 50 |
+
// 3.9.1 -> 3.9.2 -> 3.9.3 -> 4.0.0 -> 4.0.1.
|
| 51 |
+
inline const char* VERSION = "4.0.2";
|
| 52 |
|
| 53 |
// ---------------------------------------------------------------------------
|
| 54 |
// v2.2 boundary injection protocol — sub-word bridges for corrupted forms.
|
engine/src/syfox_cli.cpp
CHANGED
|
@@ -17,6 +17,7 @@
|
|
| 17 |
#include <cstdio>
|
| 18 |
#include <cstdlib>
|
| 19 |
#include <cstring>
|
|
|
|
| 20 |
#include <fstream>
|
| 21 |
#include <iomanip>
|
| 22 |
#include <iostream>
|
|
@@ -2076,13 +2077,30 @@ void cmd_register(const Args& a) {
|
|
| 2076 |
sfx::JV reg = syfox::jas::register_json();
|
| 2077 |
reg.obj["command"] = sfx::JV("register");
|
| 2078 |
if (!a.model.empty()) {
|
| 2079 |
-
const std::string
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2080 |
std::ofstream f(path);
|
| 2081 |
if (f) {
|
| 2082 |
f << reg.dump() << "\n";
|
| 2083 |
reg.obj["persisted"] = sfx::JV(path);
|
| 2084 |
} else {
|
| 2085 |
reg.obj["persisted"] = sfx::JV(nullptr);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2086 |
}
|
| 2087 |
}
|
| 2088 |
if (a.register_text) syfox::jas::report_register(stderr);
|
|
|
|
| 17 |
#include <cstdio>
|
| 18 |
#include <cstdlib>
|
| 19 |
#include <cstring>
|
| 20 |
+
#include <filesystem>
|
| 21 |
#include <fstream>
|
| 22 |
#include <iomanip>
|
| 23 |
#include <iostream>
|
|
|
|
| 2077 |
sfx::JV reg = syfox::jas::register_json();
|
| 2078 |
reg.obj["command"] = sfx::JV("register");
|
| 2079 |
if (!a.model.empty()) {
|
| 2080 |
+
const std::string dir = resolve_model_dir(a.model);
|
| 2081 |
+
// v4.0.1 FIX (fresh-clone CI bug): `register` may run BEFORE any
|
| 2082 |
+
// `learn` has created the model dir — tests/jas_test.sh does exactly
|
| 2083 |
+
// that, on every fresh clone. The old bare ofstream on
|
| 2084 |
+
// <dir>/impossibility.json silently failed when <dir> did not exist,
|
| 2085 |
+
// printed persisted:null, and still exited 0 — the gate then reported
|
| 2086 |
+
// "impossibility.json missing" only on machines that had never built
|
| 2087 |
+
// the demo fabric (a second `make ci` passed, hiding the bug).
|
| 2088 |
+
// Fix: create the dir (same contract as save_model), and HONESTLY
|
| 2089 |
+
// exit non-zero when the register still cannot be persisted.
|
| 2090 |
+
std::error_code ec;
|
| 2091 |
+
std::filesystem::create_directories(dir, ec);
|
| 2092 |
+
const std::string path = dir + "/impossibility.json";
|
| 2093 |
std::ofstream f(path);
|
| 2094 |
if (f) {
|
| 2095 |
f << reg.dump() << "\n";
|
| 2096 |
reg.obj["persisted"] = sfx::JV(path);
|
| 2097 |
} else {
|
| 2098 |
reg.obj["persisted"] = sfx::JV(nullptr);
|
| 2099 |
+
std::cerr << "syfox: register: cannot persist " << path
|
| 2100 |
+
<< " (directory missing or not writable)\n";
|
| 2101 |
+
if (a.register_text) syfox::jas::report_register(stderr);
|
| 2102 |
+
std::cout << reg.dump() << "\n";
|
| 2103 |
+
std::exit(1);
|
| 2104 |
}
|
| 2105 |
}
|
| 2106 |
if (a.register_text) syfox::jas::report_register(stderr);
|
model/agnews/calibration.json
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
{"choice_temperature":0.
|
|
|
|
| 1 |
+
{"choice_temperature":0.237913,"fitted":true,"noul_a":6,"noul_b":-3,"rows":900,"score_temperature":1}
|
model/agnews/substrate.bin
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:687726505ab6bd0cf3f1d42b3794904238a9b187ae36a3da5d6c95288a9b483b
|
| 3 |
+
size 21862861
|
model/b77-sem/calibration.json
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
{"choice_temperature":0.
|
|
|
|
| 1 |
+
{"choice_temperature":0.100495,"choice_temperature_by_count":{},"fitted":true,"noul_a":6,"noul_b":-3,"rows":1003,"score_temperature":1}
|
model/b77-sem/conflicts.jsonl
CHANGED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"context":"model-b77-big","instructions":"","outcome_new":"c48 eu transfers, do eu, money immediately, transfer pending, 2018, ago sent, immediately online, eu transfer, accounts please, beneficiary accounts, finally worked, it's 2018, the beneficiary, to five, transfers actually, transfers can, transfer still, seller says, correct account, pending transfer","outcome_old":"c05 uk account, a uk, from france, my uk, international transfers, alright, france two, take longer, uk bank, france 2, france a, if international, longer i, reflect my, transfers usually, updated to, france, couple hours, and nothing, made one","seq_new":34873,"seq_old":4373,"state":"How long does a transfer take?","state_hash_hex":"0964fcfda48c5960","type":"contradiction"}
|
| 2 |
+
{"context":"model-b77-big","instructions":"","outcome_new":"c61 crypto top, saw it, there and, disappeared from, up get, up recently, cancellation, gone i, had topped, has disappeared, it's disappeared, you offered, and seen, disappeared i, disappeared what's, glitch, it's gone, offer crypto, up cancellation, up earlier","outcome_old":"c47 new customer, half an, over an, your top, hour already, just shows, an hour, customer and, half, hour, instant, time today, up gone, up hasn't, i'm a, up be, up is, tried topping, fix it, sort","seq_new":43825,"seq_old":35597,"state":"Has my top-up gone through?","state_hash_hex":"77fef627ca489538","type":"contradiction"}
|
| 3 |
+
{"context":"model-b77-big","instructions":"","outcome_new":"h_top_up auto auto top the auto an auto i auto low money automatically up automatically new customer half half an time today your top hour already just shows over an a sepa sepa transfer for receiving by transfer receiving money swift transfer a swift receiving a","outcome_old":"h_withdrawal which atms atms accept atms can closest the closest atms that closest atm atms take for withdrawing withdrawals i atm fees for atm withdrawing money always thought charging for fee with 500 a 500 500 cash copy copy of a copy for 500 odd remote","seq_new":43826,"seq_old":35598,"state":"hier Has my top-up gone through?","state_hash_hex":"18dbc1c57344c645","type":"contradiction"}
|
model/b77-sem/hierarchy.json
CHANGED
|
@@ -107,6 +107,5 @@
|
|
| 107 |
"criteria": "rates are what exchange what your exchange rates determine rate will decide find your aud and gbp usd and for gbp to gbp exchange usd usd to app allow fiat fiat currencies multiple currencies and exchange holding and which fiat what fiat for holding"
|
| 108 |
}
|
| 109 |
},
|
| 110 |
-
"floor":
|
| 111 |
-
"note": "floor 1.0 = gate off. Measured on cal (1003 rows, energy-norm, --no-retrieval): 0.133 gate-off vs 0.111 floor 0.35 vs 0.129 floor 0.85 \u2014 stage-1 category readout is not additive on this fabric. Flip floor below 1.0 to enable."
|
| 112 |
}
|
|
|
|
| 107 |
"criteria": "rates are what exchange what your exchange rates determine rate will decide find your aud and gbp usd and for gbp to gbp exchange usd usd to app allow fiat fiat currencies multiple currencies and exchange holding and which fiat what fiat for holding"
|
| 108 |
}
|
| 109 |
},
|
| 110 |
+
"floor": 0.35
|
|
|
|
| 111 |
}
|
model/b77-sem/lessons_index.jsonl
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
model/b77-sem/memories.jsonl
CHANGED
|
@@ -1,256 +1,256 @@
|
|
| 1 |
-
{"label": "c00", "state": "
|
| 2 |
-
{"label": "c00", "state": "
|
| 3 |
-
{"label": "c00", "state": "
|
| 4 |
-
{"label": "c00", "state": "
|
| 5 |
-
{"label": "c00", "state": "I
|
| 6 |
-
{"label": "c01", "state": "
|
| 7 |
-
{"label": "c01", "state": "
|
| 8 |
-
{"label": "
|
| 9 |
-
{"label": "
|
| 10 |
-
{"label": "c02", "state": "
|
| 11 |
-
{"label": "c02", "state": "
|
| 12 |
-
{"label": "
|
| 13 |
-
{"label": "c03", "state": "
|
| 14 |
-
{"label": "
|
| 15 |
-
{"label": "
|
| 16 |
-
{"label": "c04", "state": "
|
| 17 |
-
{"label": "
|
| 18 |
-
{"label": "c05", "state": "
|
| 19 |
-
{"label": "c05", "state": "
|
| 20 |
-
{"label": "c05", "state": "
|
| 21 |
-
{"label": "
|
| 22 |
-
{"label": "c06", "state": "
|
| 23 |
-
{"label": "c06", "state": "
|
| 24 |
-
{"label": "c06", "state": "
|
| 25 |
-
{"label": "c06", "state": "
|
| 26 |
-
{"label": "c07", "state": "Why
|
| 27 |
-
{"label": "c07", "state": "
|
| 28 |
-
{"label": "c07", "state": "
|
| 29 |
-
{"label": "c07", "state": "
|
| 30 |
-
{"label": "c08", "state": "
|
| 31 |
-
{"label": "c08", "state": "I
|
| 32 |
-
{"label": "c08", "state": "
|
| 33 |
-
{"label": "c08", "state": "
|
| 34 |
-
{"label": "c09", "state": "
|
| 35 |
-
{"label": "c09", "state": "
|
| 36 |
-
{"label": "c09", "state": "
|
| 37 |
-
{"label": "c09", "state": "I
|
| 38 |
-
{"label": "c10", "state": "
|
| 39 |
-
{"label": "
|
| 40 |
-
{"label": "
|
| 41 |
-
{"label": "
|
| 42 |
-
{"label": "c11", "state": "
|
| 43 |
-
{"label": "c12", "state": "
|
| 44 |
-
{"label": "c12", "state": "
|
| 45 |
-
{"label": "c12", "state": "
|
| 46 |
-
{"label": "
|
| 47 |
-
{"label": "c13", "state": "
|
| 48 |
-
{"label": "c13", "state": "
|
| 49 |
-
{"label": "
|
| 50 |
-
{"label": "c14", "state": "
|
| 51 |
-
{"label": "c14", "state": "
|
| 52 |
-
{"label": "
|
| 53 |
-
{"label": "
|
| 54 |
-
{"label": "c15", "state": "I
|
| 55 |
-
{"label": "c15", "state": "
|
| 56 |
-
{"label": "
|
| 57 |
-
{"label": "c16", "state": "
|
| 58 |
-
{"label": "c16", "state": "
|
| 59 |
-
{"label": "c16", "state": "
|
| 60 |
-
{"label": "c16", "state": "
|
| 61 |
-
{"label": "c17", "state": "
|
| 62 |
-
{"label": "c17", "state": "I
|
| 63 |
-
{"label": "c17", "state": "
|
| 64 |
-
{"label": "c17", "state": "
|
| 65 |
-
{"label": "c17", "state": "
|
| 66 |
-
{"label": "c18", "state": "
|
| 67 |
-
{"label": "
|
| 68 |
-
{"label": "
|
| 69 |
-
{"label": "
|
| 70 |
-
{"label": "c19", "state": "
|
| 71 |
-
{"label": "
|
| 72 |
-
{"label": "c20", "state": "
|
| 73 |
-
{"label": "c20", "state": "
|
| 74 |
-
{"label": "c20", "state": "
|
| 75 |
-
{"label": "c20", "state": "
|
| 76 |
-
{"label": "c21", "state": "
|
| 77 |
-
{"label": "c21", "state": "
|
| 78 |
-
{"label": "c21", "state": "
|
| 79 |
-
{"label": "
|
| 80 |
-
{"label": "c22", "state": "
|
| 81 |
-
{"label": "
|
| 82 |
-
{"label": "
|
| 83 |
-
{"label": "
|
| 84 |
-
{"label": "
|
| 85 |
-
{"label": "
|
| 86 |
-
{"label": "c25", "state": "
|
| 87 |
-
{"label": "c25", "state": "How
|
| 88 |
-
{"label": "c25", "state": "
|
| 89 |
-
{"label": "
|
| 90 |
-
{"label": "c26", "state": "
|
| 91 |
-
{"label": "c26", "state": "
|
| 92 |
-
{"label": "c26", "state": "
|
| 93 |
-
{"label": "c26", "state": "
|
| 94 |
-
{"label": "c27", "state": "
|
| 95 |
-
{"label": "c27", "state": "
|
| 96 |
-
{"label": "c27", "state": "I
|
| 97 |
-
{"label": "
|
| 98 |
-
{"label": "c28", "state": "
|
| 99 |
-
{"label": "c28", "state": "
|
| 100 |
-
{"label": "c28", "state": "
|
| 101 |
-
{"label": "
|
| 102 |
-
{"label": "c29", "state": "I
|
| 103 |
-
{"label": "c29", "state": "I
|
| 104 |
-
{"label": "c29", "state": "I
|
| 105 |
-
{"label": "
|
| 106 |
-
{"label": "c30", "state": "
|
| 107 |
-
{"label": "c30", "state": "
|
| 108 |
-
{"label": "
|
| 109 |
-
{"label": "c31", "state": "
|
| 110 |
-
{"label": "c31", "state": "
|
| 111 |
-
{"label": "
|
| 112 |
-
{"label": "c32", "state": "
|
| 113 |
-
{"label": "c32", "state": "
|
| 114 |
-
{"label": "
|
| 115 |
-
{"label": "
|
| 116 |
-
{"label": "c33", "state": "
|
| 117 |
-
{"label": "
|
| 118 |
-
{"label": "c34", "state": "
|
| 119 |
-
{"label": "c34", "state": "
|
| 120 |
-
{"label": "c34", "state": "
|
| 121 |
-
{"label": "
|
| 122 |
-
{"label": "c35", "state": "
|
| 123 |
-
{"label": "c35", "state": "What
|
| 124 |
-
{"label": "c35", "state": "I
|
| 125 |
-
{"label": "
|
| 126 |
-
{"label": "c36", "state": "
|
| 127 |
-
{"label": "c36", "state": "
|
| 128 |
-
{"label": "
|
| 129 |
-
{"label": "c37", "state": "
|
| 130 |
-
{"label": "c37", "state": "
|
| 131 |
-
{"label": "
|
| 132 |
-
{"label": "c38", "state": "
|
| 133 |
-
{"label": "
|
| 134 |
-
{"label": "
|
| 135 |
-
{"label": "c39", "state": "
|
| 136 |
-
{"label": "c39", "state": "
|
| 137 |
-
{"label": "
|
| 138 |
-
{"label": "c40", "state": "
|
| 139 |
-
{"label": "
|
| 140 |
-
{"label": "
|
| 141 |
-
{"label": "
|
| 142 |
-
{"label": "
|
| 143 |
-
{"label": "c42", "state": "I
|
| 144 |
-
{"label": "c42", "state": "
|
| 145 |
-
{"label": "
|
| 146 |
-
{"label": "c43", "state": "
|
| 147 |
-
{"label": "c43", "state": "I
|
| 148 |
-
{"label": "
|
| 149 |
-
{"label": "c44", "state": "
|
| 150 |
-
{"label": "
|
| 151 |
-
{"label": "
|
| 152 |
-
{"label": "c45", "state": "
|
| 153 |
-
{"label": "c45", "state": "
|
| 154 |
-
{"label": "c46", "state": "
|
| 155 |
-
{"label": "c46", "state": "
|
| 156 |
-
{"label": "c46", "state": "
|
| 157 |
-
{"label": "c46", "state": "
|
| 158 |
-
{"label": "
|
| 159 |
-
{"label": "c47", "state": "
|
| 160 |
-
{"label": "c47", "state": "
|
| 161 |
-
{"label": "c47", "state": "I
|
| 162 |
-
{"label": "c48", "state": "
|
| 163 |
-
{"label": "c48", "state": "
|
| 164 |
-
{"label": "c48", "state": "
|
| 165 |
-
{"label": "c48", "state": "How do
|
| 166 |
-
{"label": "c49", "state": "I
|
| 167 |
-
{"label": "c49", "state": "
|
| 168 |
-
{"label": "c49", "state": "
|
| 169 |
-
{"label": "
|
| 170 |
-
{"label": "c50", "state": "I
|
| 171 |
-
{"label": "
|
| 172 |
-
{"label": "
|
| 173 |
-
{"label": "c51", "state": "
|
| 174 |
-
{"label": "c51", "state": "
|
| 175 |
-
{"label": "c52", "state": "
|
| 176 |
-
{"label": "c52", "state": "
|
| 177 |
-
{"label": "c52", "state": "
|
| 178 |
-
{"label": "c52", "state": "Can I
|
| 179 |
-
{"label": "c52", "state": "
|
| 180 |
-
{"label": "c53", "state": "
|
| 181 |
-
{"label": "c53", "state": "
|
| 182 |
-
{"label": "c53", "state": "
|
| 183 |
-
{"label": "c53", "state": "
|
| 184 |
-
{"label": "c54", "state": "I
|
| 185 |
-
{"label": "c54", "state": "
|
| 186 |
-
{"label": "c54", "state": "
|
| 187 |
-
{"label": "c55", "state": "I want
|
| 188 |
-
{"label": "c55", "state": "I
|
| 189 |
-
{"label": "c55", "state": "
|
| 190 |
-
{"label": "c56", "state": "Am I going to be charged for topping up by transfer?"}
|
| 191 |
{"label": "c56", "state": "Do you charge for transfers?"}
|
| 192 |
-
{"label": "c56", "state": "
|
| 193 |
-
{"label": "
|
| 194 |
-
{"label": "c57", "state": "
|
| 195 |
-
{"label": "c57", "state": "
|
| 196 |
-
{"label": "
|
| 197 |
-
{"label": "c58", "state": "
|
| 198 |
-
{"label": "c58", "state": "
|
| 199 |
-
{"label": "
|
| 200 |
-
{"label": "c59", "state": "My top-up
|
| 201 |
-
{"label": "c59", "state": "
|
| 202 |
-
{"label": "
|
| 203 |
-
{"label": "c60", "state": "Can I
|
| 204 |
-
{"label": "c60", "state": "
|
| 205 |
-
{"label": "
|
| 206 |
-
{"label": "c61", "state": "
|
| 207 |
-
{"label": "c61", "state": "
|
| 208 |
-
{"label": "c61", "state": "
|
| 209 |
-
{"label": "
|
| 210 |
-
{"label": "c62", "state": "
|
| 211 |
-
{"label": "
|
| 212 |
-
{"label": "c63", "state": "
|
| 213 |
-
{"label": "c63", "state": "
|
| 214 |
-
{"label": "c63", "state": "I
|
| 215 |
-
{"label": "c63", "state": "
|
| 216 |
-
{"label": "
|
| 217 |
-
{"label": "c64", "state": "
|
| 218 |
-
{"label": "c64", "state": "
|
| 219 |
-
{"label": "c64", "state": "
|
| 220 |
-
{"label": "
|
| 221 |
-
{"label": "c65", "state": "
|
| 222 |
-
{"label": "c65", "state": "
|
| 223 |
-
{"label": "
|
| 224 |
-
{"label": "c66", "state": "
|
| 225 |
-
{"label": "c66", "state": "
|
| 226 |
-
{"label": "c66", "state": "
|
| 227 |
-
{"label": "
|
| 228 |
-
{"label": "c67", "state": "
|
| 229 |
-
{"label": "c67", "state": "
|
| 230 |
-
{"label": "c67", "state": "
|
| 231 |
-
{"label": "
|
| 232 |
-
{"label": "c68", "state": "
|
| 233 |
-
{"label": "
|
| 234 |
-
{"label": "c69", "state": "
|
| 235 |
-
{"label": "c69", "state": "
|
| 236 |
-
{"label": "
|
| 237 |
-
{"label": "c70", "state": "
|
| 238 |
-
{"label": "c70", "state": "
|
| 239 |
-
{"label": "
|
|
|
|
|
|
|
| 240 |
{"label": "c71", "state": "Where is my top-up verification code?"}
|
| 241 |
-
{"label": "
|
| 242 |
-
{"label": "
|
| 243 |
-
{"label": "c73", "state": "I
|
| 244 |
-
{"label": "c73", "state": "
|
| 245 |
-
{"label": "c73", "state": "Please
|
| 246 |
-
{"label": "
|
| 247 |
-
{"label": "c74", "state": "Why
|
| 248 |
-
{"label": "c74", "state": "
|
| 249 |
-
{"label": "
|
| 250 |
-
{"label": "c75", "state": "
|
| 251 |
-
{"label": "c75", "state": "I
|
| 252 |
-
{"label": "c75", "state": "
|
| 253 |
-
{"label": "
|
| 254 |
-
{"label": "c76", "state": "
|
| 255 |
-
{"label": "c76", "state": "I
|
| 256 |
-
{"label": "c76", "state": "Using international ATMs messes up the exchange rate."}
|
|
|
|
| 1 |
+
{"label": "c00", "state": "What steps do I have to go through in order to activate my new card?"}
|
| 2 |
+
{"label": "c00", "state": "what are the steps to activate my card?"}
|
| 3 |
+
{"label": "c00", "state": "How can my new card be renewed?"}
|
| 4 |
+
{"label": "c00", "state": "Tell me how to renew my new card?"}
|
| 5 |
+
{"label": "c00", "state": "I cannot activate my card."}
|
| 6 |
+
{"label": "c01", "state": "My daughter needs an acount."}
|
| 7 |
+
{"label": "c01", "state": "What are the age limits for your service?"}
|
| 8 |
+
{"label": "c02", "state": "Can I use Apple Pay to top-up?"}
|
| 9 |
+
{"label": "c02", "state": "Will be Apple Watch be able to let me top up?"}
|
| 10 |
+
{"label": "c02", "state": "How do I get Top Up to work in Apple Pay?"}
|
| 11 |
+
{"label": "c02", "state": "Using Google Pay, can I top up?"}
|
| 12 |
+
{"label": "c03", "state": "Where is a Mastercard ATM?"}
|
| 13 |
+
{"label": "c03", "state": "Where can I find Mastercard ATMs?"}
|
| 14 |
+
{"label": "c04", "state": "Is there a function where I can top-up automatically?"}
|
| 15 |
+
{"label": "c04", "state": "Can I have my account add money automatically in certain intervals?"}
|
| 16 |
+
{"label": "c04", "state": "Tell me where I can find the auto top up feature and a little bit about it please."}
|
| 17 |
+
{"label": "c05", "state": "my transfer isn't there"}
|
| 18 |
+
{"label": "c05", "state": "About two days ago now, I made a transfer from France but it hasn't arrived yet. Is it possible that the international transfer just takes longer?"}
|
| 19 |
+
{"label": "c05", "state": "There is a missing transfer on my account"}
|
| 20 |
+
{"label": "c05", "state": "For you, how long do transfers normally take from a UK account? I completed one just now but nothing appears. I just need to be sure everything is okay."}
|
| 21 |
+
{"label": "c05", "state": "I can't see a transfer to my account I made."}
|
| 22 |
+
{"label": "c06", "state": "I made a cash deposit a few days ago and it's still not reflected in my account. Do you know what might have happened?"}
|
| 23 |
+
{"label": "c06", "state": "My balance is not right. It has not been updated for the cash or cheque deposit."}
|
| 24 |
+
{"label": "c06", "state": "I just deposited cash to my account and can't find it!"}
|
| 25 |
+
{"label": "c06", "state": "How long do cheques take to post to your account?"}
|
| 26 |
+
{"label": "c07", "state": "Why can't I buy cryptocurrency on the app?"}
|
| 27 |
+
{"label": "c07", "state": "How can I transfer money to a beneficiary?"}
|
| 28 |
+
{"label": "c07", "state": "why can't my beneficiary make transactions?"}
|
| 29 |
+
{"label": "c07", "state": "The transfer to my beneficiary has not gone through"}
|
| 30 |
+
{"label": "c08", "state": "I no longer want to transfer funds, can we cancel that transaction?"}
|
| 31 |
+
{"label": "c08", "state": "I recently made a transfer but I need to cancel it as soon as possible. Please let me know when this happens."}
|
| 32 |
+
{"label": "c08", "state": "Is there a way to revert a transaction?"}
|
| 33 |
+
{"label": "c08", "state": "Cancel my transfer, please."}
|
| 34 |
+
{"label": "c09", "state": "My card is almost expired. How fast will I get a new one and what is the cost?"}
|
| 35 |
+
{"label": "c09", "state": "how to get a new card in china"}
|
| 36 |
+
{"label": "c09", "state": "How do I order a new card if my current one is about to expire?"}
|
| 37 |
+
{"label": "c09", "state": "Can I have a new card shipped to China?"}
|
| 38 |
+
{"label": "c10", "state": "Any place that takes Mastercard would be fine."}
|
| 39 |
+
{"label": "c11", "state": "My card hasn't came in the mail yet?"}
|
| 40 |
+
{"label": "c11", "state": "Can I track my card while it is in the process of delivery?"}
|
| 41 |
+
{"label": "c11", "state": "Will I be able to track the card that was sent to me?"}
|
| 42 |
+
{"label": "c11", "state": "How long does it take to recieve my new card?"}
|
| 43 |
+
{"label": "c12", "state": "Can I have it delivered on a specific date?"}
|
| 44 |
+
{"label": "c12", "state": "Can it specifically be delivered on a certain date?"}
|
| 45 |
+
{"label": "c12", "state": "Help! When will the card arrive at my home?"}
|
| 46 |
+
{"label": "c13", "state": "I found my card in my jacket this morning, so can I reactivate it?"}
|
| 47 |
+
{"label": "c13", "state": "I found my card, how can I use it again?"}
|
| 48 |
+
{"label": "c13", "state": "I thought I lost my card but I found it today, so I would like to reactivate it."}
|
| 49 |
+
{"label": "c14", "state": "My card stopped working after multiple transactions. Why?"}
|
| 50 |
+
{"label": "c14", "state": "My card don't work."}
|
| 51 |
+
{"label": "c14", "state": "My card hasn't been working when I try to use it."}
|
| 52 |
+
{"label": "c15", "state": "I noticed that i got charged extra for using the card."}
|
| 53 |
+
{"label": "c15", "state": "Can you explain why my payment was charged a fee?"}
|
| 54 |
+
{"label": "c15", "state": "Why am I getting charged more for using my card?"}
|
| 55 |
+
{"label": "c15", "state": "What is the extra fee that was added when I used the card?"}
|
| 56 |
+
{"label": "c15", "state": "I was charged for using my card?"}
|
| 57 |
+
{"label": "c16", "state": "My app is displaying a payment I didn't make"}
|
| 58 |
+
{"label": "c16", "state": "There is a payment I don't recognize"}
|
| 59 |
+
{"label": "c16", "state": "I'm not recognizing the card payment."}
|
| 60 |
+
{"label": "c16", "state": "There is a fraudulent payment!"}
|
| 61 |
+
{"label": "c17", "state": "The wrong exchange rate was used when I purchased an item."}
|
| 62 |
+
{"label": "c17", "state": "I am being charged the wrong amount on my card."}
|
| 63 |
+
{"label": "c17", "state": "Are you sure this is the interbank exchange rate? This rate is really bad."}
|
| 64 |
+
{"label": "c17", "state": "I have been charged way to much so something is apparently wrong with my exchange. I changed Russian Ruble into UK pounds."}
|
| 65 |
+
{"label": "c17", "state": "Why was the exchange rate so wrong when I bought something!"}
|
| 66 |
+
{"label": "c18", "state": "What are the steps I should take to recover my swallowed card?"}
|
| 67 |
+
{"label": "c19", "state": "I got this stupid fee after taking cash out, why?"}
|
| 68 |
+
{"label": "c19", "state": "The past few times I've been to the ATM, I was charged a withdrawal fee. Have your policies changed regarding fees?"}
|
| 69 |
+
{"label": "c19", "state": "I withdrew cash and was charged"}
|
| 70 |
+
{"label": "c19", "state": "I saw a fee on my receipt from withdrawing money while shopping earlier. Is there supposed to be a fee for this type of transaction?"}
|
| 71 |
+
{"label": "c19", "state": "It seems I've suddenly been charged for my recent ATM cash withdrawal. What's up with that? I though withdrawals are free, you never charged me so far!"}
|
| 72 |
+
{"label": "c20", "state": "I didn't withdraw cash but I see that transaction on my app"}
|
| 73 |
+
{"label": "c20", "state": "I lost my wallet and I think someone is withdrawing cash with my card. Please help. It is urgent."}
|
| 74 |
+
{"label": "c20", "state": "Hi, It's urgent, please freeze my card. As someone has withdrawn money using my card in odd remote town. Since i have not done this withdrawal. Do it fast."}
|
| 75 |
+
{"label": "c20", "state": "The app says that I got cash in an ATM and I didn't"}
|
| 76 |
+
{"label": "c21", "state": "Are there cash machines where I can change my PIN?"}
|
| 77 |
+
{"label": "c21", "state": "Can I change my PIN if I want to?"}
|
| 78 |
+
{"label": "c21", "state": "I can't freeze my account as I need the card as I am traveling, how do I change my pin?"}
|
| 79 |
+
{"label": "c22", "state": "I think someone else is using my card."}
|
| 80 |
+
{"label": "c22", "state": "There are a few transaction that I don't recognize, I think someone managed to get my card details and use it."}
|
| 81 |
+
{"label": "c23", "state": "Help me to set up contactless payments."}
|
| 82 |
+
{"label": "c24", "state": "I don't live in the UK. Can I still get a card?"}
|
| 83 |
+
{"label": "c24", "state": "Do you have to be in the UK to get a card?"}
|
| 84 |
+
{"label": "c24", "state": "What are the countries you have offices in?"}
|
| 85 |
+
{"label": "c25", "state": "Could you explain why my card payment did not work?"}
|
| 86 |
+
{"label": "c25", "state": "Why did my card payment not work?"}
|
| 87 |
+
{"label": "c25", "state": "How come my card payment has been declined?"}
|
| 88 |
+
{"label": "c25", "state": "Could you please tell me why my card payment didn't work?"}
|
| 89 |
+
{"label": "c26", "state": "The ATM keeps rejecting my Payment. I tried two different ATMs but did not work .Can you please check if everything is okay with my account?"}
|
| 90 |
+
{"label": "c26", "state": "Is the ATM broken? I can't get cash from it."}
|
| 91 |
+
{"label": "c26", "state": "I was declined when I tried to take out cash!"}
|
| 92 |
+
{"label": "c26", "state": "Has my account been frozen? I tried to use my card but the ATM would not dispense cash."}
|
| 93 |
+
{"label": "c26", "state": "A withdraw I tried to make at the ATM was declined I don't know why."}
|
| 94 |
+
{"label": "c27", "state": "Why do you keep declining my transfers? It's been working well so far, but when I just tried to buy something, the card got declined. I tried it a few times, but same thing happened every try."}
|
| 95 |
+
{"label": "c27", "state": "What are the reasons for a declined transfer?"}
|
| 96 |
+
{"label": "c27", "state": "I've made more than one attempt to make a purchase and the card keeps getting declined. Why do you keep denying my transfers?"}
|
| 97 |
+
{"label": "c28", "state": "Weird Direct Debit payment"}
|
| 98 |
+
{"label": "c28", "state": "I see a direct debit that I didn't authorize"}
|
| 99 |
+
{"label": "c28", "state": "I have an unknown charge."}
|
| 100 |
+
{"label": "c28", "state": "My account was charged a debit payment I don't recognize."}
|
| 101 |
+
{"label": "c28", "state": "I'm checking my statements and I saw a purchase from a couple weeks ago that I don't recall at all. Not only that, but I don't even know the business that charged it. I'm not sure if I did it or not, but can we check it and see if we can trace it back to make certain?"}
|
| 102 |
+
{"label": "c29", "state": "I am required to make several disposable cards every day."}
|
| 103 |
+
{"label": "c29", "state": "I must make several disposable cards every day."}
|
| 104 |
+
{"label": "c29", "state": "I have a disposable virtual card. Is there a limit to how many times I can use it?"}
|
| 105 |
+
{"label": "c30", "state": "My marital status has change, I got to correct my name to reflect that."}
|
| 106 |
+
{"label": "c30", "state": "How do I modify my account details?"}
|
| 107 |
+
{"label": "c30", "state": "How do I edit my personal details?"}
|
| 108 |
+
{"label": "c31", "state": "What is the rate for exchange fees?"}
|
| 109 |
+
{"label": "c31", "state": "Does it cost extra to exchange foreign currencies?"}
|
| 110 |
+
{"label": "c31", "state": "If someone in a different country sends me money, do I have to pay a fee?"}
|
| 111 |
+
{"label": "c32", "state": "If I need to cash foreign transfers, how does that work?"}
|
| 112 |
+
{"label": "c32", "state": "What factors effect the exchange rate?"}
|
| 113 |
+
{"label": "c32", "state": "I'd like to know what the foreign exchange rate will be."}
|
| 114 |
+
{"label": "c33", "state": "I can't figure out how to change GBP to AUD, what do I do?"}
|
| 115 |
+
{"label": "c33", "state": "Can turn my money into another currency?"}
|
| 116 |
+
{"label": "c33", "state": "how can i exchange currencies"}
|
| 117 |
+
{"label": "c34", "state": "Hello, I see that I have been charged an extra $1 on my app. Could you please provide me with a reason for this charge?"}
|
| 118 |
+
{"label": "c34", "state": "Hey, I got charged extra for some reason when I purchased an app. Is this a hidden fee or something? I don't think it's very cool."}
|
| 119 |
+
{"label": "c34", "state": "I need to know what these extra charges are on my statement?"}
|
| 120 |
+
{"label": "c34", "state": "Have have a small charge on my account from someone I purchased with but I'm not sure what it relates to."}
|
| 121 |
+
{"label": "c34", "state": "I was charged an extra pound for no reason. Why is that?"}
|
| 122 |
+
{"label": "c35", "state": "I needed to send my friends some money urgently. I tried multiple times to transfer the money this morning, but the transfer keeps failing. Can you tell me why the transfer is getting rejected?"}
|
| 123 |
+
{"label": "c35", "state": "What caused my transfer to fail?"}
|
| 124 |
+
{"label": "c35", "state": "I really need some help to understand why my transfer keeps failing. I'm trying to send money to a friend. Please help."}
|
| 125 |
+
{"label": "c36", "state": "How many currencies can I have money in in my account?"}
|
| 126 |
+
{"label": "c36", "state": "Which fiat currencies are supported by you?"}
|
| 127 |
+
{"label": "c36", "state": "What are eligible holding and exchange currencies?"}
|
| 128 |
+
{"label": "c37", "state": "How can I get disposable virtual cards?"}
|
| 129 |
+
{"label": "c37", "state": "Can you tell me about these disposable virtual cards?"}
|
| 130 |
+
{"label": "c37", "state": "Do you offer disposable virtual cards too?"}
|
| 131 |
+
{"label": "c38", "state": "I am yet to receive my pin."}
|
| 132 |
+
{"label": "c38", "state": "How do I set up my card PIN?"}
|
| 133 |
+
{"label": "c39", "state": "Is it possible to have a second card?"}
|
| 134 |
+
{"label": "c39", "state": "What should I do if I want to get another card for someone in my family?"}
|
| 135 |
+
{"label": "c39", "state": "I'd like to have extra cards. Will I have to pay for that?"}
|
| 136 |
+
{"label": "c39", "state": "I'd like to get another card"}
|
| 137 |
+
{"label": "c40", "state": "How can I obtain a virtual card?"}
|
| 138 |
+
{"label": "c40", "state": "How come I did not get a virtual card yet?"}
|
| 139 |
+
{"label": "c41", "state": "I lost my card, what do I do now?"}
|
| 140 |
+
{"label": "c41", "state": "My card is lost! Please help me!"}
|
| 141 |
+
{"label": "c42", "state": "my phone was taken yesterday, what should I do about my account?"}
|
| 142 |
+
{"label": "c42", "state": "stolen phone, what should i do"}
|
| 143 |
+
{"label": "c42", "state": "I can't use the app. My phone is lost at the hotel."}
|
| 144 |
+
{"label": "c42", "state": "Please help! I was mugged and everything stolen. What do I do to stop them from accessing my account?"}
|
| 145 |
+
{"label": "c43", "state": "Is it possible to get a real card?"}
|
| 146 |
+
{"label": "c43", "state": "Can I receive my card anywhere?"}
|
| 147 |
+
{"label": "c43", "state": "I would like a card please."}
|
| 148 |
+
{"label": "c44", "state": "I have forgotten my passcode"}
|
| 149 |
+
{"label": "c44", "state": "I think my passcode was changed"}
|
| 150 |
+
{"label": "c45", "state": "Is there a reason my payment is still pending?"}
|
| 151 |
+
{"label": "c45", "state": "I bought some things in the morning but the payment shows as pending"}
|
| 152 |
+
{"label": "c45", "state": "It says pending status for my payment. Why?"}
|
| 153 |
+
{"label": "c45", "state": "Why is my card payment still pending?"}
|
| 154 |
+
{"label": "c46", "state": "If I have already completed a cash withdrawal at an ATM, is it normal for it to show as a pending transaction on the app?"}
|
| 155 |
+
{"label": "c46", "state": "I removed cash from an ATM earlier but it shows up as pending in the app. How can this still be pending, I already received the cash?"}
|
| 156 |
+
{"label": "c46", "state": "My last ATM request did not go through due to a declined card. Please cancel the request on my account."}
|
| 157 |
+
{"label": "c46", "state": "Can you please tell me why my cash withdrawal is still pending?"}
|
| 158 |
+
{"label": "c47", "state": "I topped up and went to buy something, but it says that my funds are pending. Is there a way to quicken this process?"}
|
| 159 |
+
{"label": "c47", "state": "Top-up is loaded into the card and no update."}
|
| 160 |
+
{"label": "c47", "state": "What's taking my top-up so long?"}
|
| 161 |
+
{"label": "c47", "state": "Hello, I am a new customer, and just tried topping up for the first time. According to your information, the transaction should be instant - why does it still show as pending?"}
|
| 162 |
+
{"label": "c48", "state": "A transfer to my account shows as still pending and I wanted to know how long it is suppose to take to clear."}
|
| 163 |
+
{"label": "c48", "state": "i put in money for vacation and its not showing. i need that money today, how long will it take"}
|
| 164 |
+
{"label": "c48", "state": "My money transfer hasn't appeared yet."}
|
| 165 |
+
{"label": "c48", "state": "How long do transfers take, mine just says pending?"}
|
| 166 |
+
{"label": "c49", "state": "I managed to drunken block my card :(( Help!"}
|
| 167 |
+
{"label": "c49", "state": "My PIN got blocked, help."}
|
| 168 |
+
{"label": "c49", "state": "Is there a way to reset my PIN?"}
|
| 169 |
+
{"label": "c50", "state": "Can my friend send me money if it is not in US dollars?"}
|
| 170 |
+
{"label": "c50", "state": "Do I need to add my salary?"}
|
| 171 |
+
{"label": "c51", "state": "I am missing a refund amount on my account."}
|
| 172 |
+
{"label": "c51", "state": "When will a refund post to my account?"}
|
| 173 |
+
{"label": "c51", "state": "I can't see my refund on my account"}
|
| 174 |
+
{"label": "c51", "state": "Why is my refund not visible on my statement?"}
|
| 175 |
+
{"label": "c52", "state": "How do I reverse a transaction on my account?"}
|
| 176 |
+
{"label": "c52", "state": "i haven't received my order and want a refund"}
|
| 177 |
+
{"label": "c52", "state": "I bought something online a week ago and i never got it in the mail.Can I just get my money back now I don't want to keep waiting on something that isn't going to show up."}
|
| 178 |
+
{"label": "c52", "state": "Can I have my money refunded for an item"}
|
| 179 |
+
{"label": "c52", "state": "Do you have a return policy?"}
|
| 180 |
+
{"label": "c53", "state": "What does it mean if my payment has been reverted?"}
|
| 181 |
+
{"label": "c53", "state": "I believe my card payment has reverted"}
|
| 182 |
+
{"label": "c53", "state": "Tell me why my card payment would be reverted."}
|
| 183 |
+
{"label": "c53", "state": "What reasons would cause my card payment to be cancelled?"}
|
| 184 |
+
{"label": "c54", "state": "I need to know if you will accept my credit card."}
|
| 185 |
+
{"label": "c54", "state": "What currency can I use to pay for a top up?"}
|
| 186 |
+
{"label": "c54", "state": "What type of card can I use to top up?"}
|
| 187 |
+
{"label": "c55", "state": "I don't want this account anymore, how do I delete it?"}
|
| 188 |
+
{"label": "c55", "state": "I am dissatisfied, I would like to close my account."}
|
| 189 |
+
{"label": "c55", "state": "Delete my account please. Now!"}
|
|
|
|
| 190 |
{"label": "c56", "state": "Do you charge for transfers?"}
|
| 191 |
+
{"label": "c56", "state": "Is there a fee to top up by bank transfers?"}
|
| 192 |
+
{"label": "c56", "state": "what is the price of a transfer?"}
|
| 193 |
+
{"label": "c57", "state": "How much is the charge to top up via credit card?"}
|
| 194 |
+
{"label": "c57", "state": "Will I see fees from adding money with an international card?"}
|
| 195 |
+
{"label": "c57", "state": "European bank card for top up will come with any extra fees?"}
|
| 196 |
+
{"label": "c58", "state": "can i deposit a check here?"}
|
| 197 |
+
{"label": "c58", "state": "What form of payments can I use for topping up?"}
|
| 198 |
+
{"label": "c58", "state": "What's the best way to use a cheque to top up?"}
|
| 199 |
+
{"label": "c59", "state": "My credit card was declined for top-up. Can you see if there is enough funds in my account?"}
|
| 200 |
+
{"label": "c59", "state": "Could you please recommend what I should do if my card keeps getting declined? I planned to top-up today but I am unable to get it to work. I need a fast solution to this problem."}
|
| 201 |
+
{"label": "c59", "state": "I topped up but the app denied it"}
|
| 202 |
+
{"label": "c60", "state": "Can I top-up any amount I wish on any given day?"}
|
| 203 |
+
{"label": "c60", "state": "How can I information on my limit for top-ups?"}
|
| 204 |
+
{"label": "c60", "state": "What's my limit for topping up?"}
|
| 205 |
+
{"label": "c61", "state": "My topup got reverted. Please let me know if there is any issue in system."}
|
| 206 |
+
{"label": "c61", "state": "Is there a reason for my top up to be cancelled?"}
|
| 207 |
+
{"label": "c61", "state": "I didn't cancel my top-up."}
|
| 208 |
+
{"label": "c61", "state": "The app reverted after I topped-up"}
|
| 209 |
+
{"label": "c62", "state": "The money disappeared when I tried to use my card to top up."}
|
| 210 |
+
{"label": "c62", "state": "Can my account be topped-up by friends of mine."}
|
| 211 |
+
{"label": "c63", "state": "I have duplicated transactions on my statement"}
|
| 212 |
+
{"label": "c63", "state": "Duplicate transactions appear on my account"}
|
| 213 |
+
{"label": "c63", "state": "I was charged twice for an in-store purchase that I thought was declined. My App says that it's still pending for one of the payments. Please make sure one of the charges is removed."}
|
| 214 |
+
{"label": "c63", "state": "Hi, I was looking over my card receipts for the past week and I realize I had a charge put through two times for the same single restaurant visit. Can one of the charges be removed so that I can get the money back that was mistakenly taken from my account?"}
|
| 215 |
+
{"label": "c63", "state": "My card got charged twice for the same thing!"}
|
| 216 |
+
{"label": "c64", "state": "why is there a fee for the transfer I made?"}
|
| 217 |
+
{"label": "c64", "state": "what is this fee for transfering"}
|
| 218 |
+
{"label": "c64", "state": "Is it right that I've been charged for transferring money?"}
|
| 219 |
+
{"label": "c64", "state": "Why was money taken for a transfer?"}
|
| 220 |
+
{"label": "c65", "state": "I have zero dollars in my account. Can I submit additional funds via bank transfer?"}
|
| 221 |
+
{"label": "c65", "state": "How can I add money to my account from another account I have?"}
|
| 222 |
+
{"label": "c65", "state": "Where can I find out how to transfer money into my account."}
|
| 223 |
+
{"label": "c66", "state": "Why can't the recepient of my money transaction see it?"}
|
| 224 |
+
{"label": "c66", "state": "I need to check status as my friend hasn't got money I sent."}
|
| 225 |
+
{"label": "c66", "state": "Why hasn't my friend received the transaction?"}
|
| 226 |
+
{"label": "c66", "state": "Why hasn't a transaction I did to my friend arrived yet?"}
|
| 227 |
+
{"label": "c67", "state": "There is an urgent thing that I need to transfer from China. Approximately how long will it take?"}
|
| 228 |
+
{"label": "c67", "state": "Can I transfer something urgently from China? How long does it take?"}
|
| 229 |
+
{"label": "c67", "state": "What is the time frame for european transfers?"}
|
| 230 |
+
{"label": "c67", "state": "How long do I wait for a transfer from the United States?"}
|
| 231 |
+
{"label": "c68", "state": "Why isn't this accepting my identity?"}
|
| 232 |
+
{"label": "c68", "state": "I will not be able to verify my identity."}
|
| 233 |
+
{"label": "c69", "state": "What do I need for the verification check?"}
|
| 234 |
+
{"label": "c69", "state": "How do you check my identity?"}
|
| 235 |
+
{"label": "c69", "state": "What needs to be provided for identity verification?"}
|
| 236 |
+
{"label": "c70", "state": "Please explain to me how to know where my funds are from."}
|
| 237 |
+
{"label": "c70", "state": "I need to see where my money came from."}
|
| 238 |
+
{"label": "c70", "state": "I need to know where do my funds come from"}
|
| 239 |
+
{"label": "c71", "state": "Why does top-up require verification?"}
|
| 240 |
+
{"label": "c71", "state": "Why verify the top-ups?"}
|
| 241 |
{"label": "c71", "state": "Where is my top-up verification code?"}
|
| 242 |
+
{"label": "c72", "state": "I tried paying with my disposable virtual card earlier but it was rejected. What can I do to fix this?"}
|
| 243 |
+
{"label": "c73", "state": "Can I obtained a Visa Card"}
|
| 244 |
+
{"label": "c73", "state": "Can I choose my Visa or Mastercard?"}
|
| 245 |
+
{"label": "c73", "state": "I prefer to get a Mastercard."}
|
| 246 |
+
{"label": "c73", "state": "Please tell me, do you use Visa or Mastercard?"}
|
| 247 |
+
{"label": "c74", "state": "Can I go ahead and use my account even though my identify hasn't been verified yet?"}
|
| 248 |
+
{"label": "c74", "state": "Why do I need to have my identity verified?"}
|
| 249 |
+
{"label": "c74", "state": "I am not comfortable verifying my indentity."}
|
| 250 |
+
{"label": "c75", "state": "I received the wrong amount of cash."}
|
| 251 |
+
{"label": "c75", "state": "Help, your app is showing a larger WD than I actually did earlier at an ATM."}
|
| 252 |
+
{"label": "c75", "state": "I did not get the right amount of cash from the ATM."}
|
| 253 |
+
{"label": "c75", "state": "The ATM gave me less cash than requested"}
|
| 254 |
+
{"label": "c76", "state": "Why did you give me so little currency?"}
|
| 255 |
+
{"label": "c76", "state": "The wrong exchange rate was used for my cash withdrawal"}
|
| 256 |
+
{"label": "c76", "state": "I withdrew money from the ATM and was overcharged. It said nothing about an extra fee."}
|
|
|
model/b77-sem/meta.json
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
{"contradictions":
|
|
|
|
| 1 |
+
{"contradictions":3,"core":"si-substrate","df_lessons":55500,"df_nodes":19630,"distvec":false,"distvec_dims":0,"engine":"syfox","evidence_records":206038,"lane_contexts":131724,"lanes":1.38312e+06,"nodes":19707,"retrieval_memories":256,"sem_edges":116684,"semantics":true,"teach_events":55500,"version":"4.0.1"}
|
model/b77-sem/substrate.bin
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:2ad44ef0c6cc8264ed1c622947fc12a5d8e3ec496a540c492569b6f76eb1b63c
|
| 3 |
+
size 40248386
|
model/giant-bengali/calibration.json
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
{"choice_temperature":
|
|
|
|
| 1 |
+
{"choice_temperature":0.00862649,"fitted":true,"noul_a":6,"noul_b":-3,"rows":1080,"score_temperature":1}
|
model/giant-bengali/meta.json
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
{"contradictions":
|
|
|
|
| 1 |
+
{"contradictions":3709,"core":"si-substrate","engine":"syfox","evidence_records":6478,"lanes":12972,"nodes":579,"teach_events":6228,"version":"3.1.2"}
|
model/giant-bengali/substrate.bin
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:5602ef5c7c2be9b77d913b46c2f3d9f63fa91d5217f8686e292e4c33021bf062
|
| 3 |
+
size 523127
|
model/giant-cyrillic/calibration.json
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
{"choice_temperature":0.
|
|
|
|
| 1 |
+
{"choice_temperature":0.0079704,"fitted":true,"noul_a":6,"noul_b":-3,"rows":1078,"score_temperature":1}
|
model/giant-cyrillic/meta.json
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
{"contradictions":
|
|
|
|
| 1 |
+
{"contradictions":3712,"core":"si-substrate","engine":"syfox","evidence_records":7705,"lanes":14915,"nodes":680,"teach_events":6232,"version":"3.1.2"}
|
model/giant-cyrillic/substrate.bin
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:b9ebc2b2bb61b4d5b6c0baaad935120108d535ee24edd8a1594726796c1e8c26
|
| 3 |
+
size 622004
|
model/giant-devanagari/calibration.json
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
{"choice_temperature":0.
|
|
|
|
| 1 |
+
{"choice_temperature":0.0124071,"fitted":true,"noul_a":6,"noul_b":-3,"rows":1078,"score_temperature":1}
|
model/giant-devanagari/meta.json
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
{"contradictions":
|
|
|
|
| 1 |
+
{"contradictions":3710,"core":"si-substrate","engine":"syfox","evidence_records":6043,"lanes":12353,"nodes":546,"teach_events":6232,"version":"3.1.2"}
|
model/giant-devanagari/substrate.bin
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:c0431d746c4820a6d23bb0200026eecff5cf6a304fb5eb8e1ca1e778e0dd217d
|
| 3 |
+
size 508992
|
model/giant-latin/calibration.json
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
{"choice_temperature":0.
|
|
|
|
| 1 |
+
{"choice_temperature":0.157378,"choice_temperature_by_count":{"14":0.167681,"151":0.122986,"16":0.163916,"2":0.639162,"3":0.109155,"4":0.171556,"6":0.30818},"fitted":true,"noul_a":12.0007,"noul_b":-2.4983,"rows":27576,"score_temperature":1}
|
model/giant-latin/meta.json
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
{"contradictions":0,"core":"si-substrate","df_lessons":0,"df_nodes":0,"distvec":false,"distvec_dims":0,"engine":"syfox","evidence_records":1.75841e+06,"lane_contexts":0,"lanes":1.90517e+06,"nodes":43420,"retrieval_memories":0,"sem_edges":258728,"semantics":true,"teach_events":0,"version":"
|
|
|
|
| 1 |
+
{"contradictions":0,"core":"si-substrate","df_lessons":0,"df_nodes":0,"distvec":false,"distvec_dims":0,"engine":"syfox","evidence_records":1.75841e+06,"lane_contexts":0,"lanes":1.90517e+06,"nodes":43420,"retrieval_memories":0,"sem_edges":258728,"semantics":true,"teach_events":0,"version":"4.0.1"}
|
model/giant-latin/physics.json
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
{"affinity_mix":0.3,"affinity_pmi":false,"decay":0.82,"diffusion":0.
|
|
|
|
| 1 |
+
{"affinity_mix":0.3,"affinity_pmi":false,"decay":0.82,"diffusion":0.02,"energy_norm":true,"hop_coupling":0.35,"k_settle":8,"recorded":true}
|
model/giant-latin/substrate.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 130046637
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ca3d37ffc0d9591153f1f13a79b1a6f9b9df04e95ed6679a9681d2c5d95e574b
|
| 3 |
size 130046637
|
model/router16/calibration.json
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
{"choice_temperature":0.
|
|
|
|
| 1 |
+
{"choice_temperature":0.189714,"choice_temperature_by_count":{},"fitted":true,"noul_a":6,"noul_b":-3,"rows":12574,"score_temperature":1}
|
model/router16/meta.json
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
{"contradictions":0,"core":"si-substrate","df_lessons":0,"df_nodes":0,"distvec":false,"distvec_dims":0,"engine":"syfox","evidence_records":29860,"lane_contexts":29661,"lanes":67089,"nodes":4742,"retrieval_memories":0,"sem_edges":26791,"semantics":true,"teach_events":0,"version":"
|
|
|
|
| 1 |
+
{"contradictions":0,"core":"si-substrate","df_lessons":0,"df_nodes":0,"distvec":false,"distvec_dims":0,"engine":"syfox","evidence_records":29860,"lane_contexts":29661,"lanes":67089,"nodes":4742,"retrieval_memories":0,"sem_edges":26791,"semantics":true,"teach_events":0,"version":"4.0.1"}
|
model/router16/substrate.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4995745
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8567c7fd730f6e58ddc3966d053e20ce02225de22fa91edc490cd48e3f69420b
|
| 3 |
size 4995745
|
server/app.py
CHANGED
|
@@ -42,7 +42,7 @@ app = FastAPI(title="SyFox System One API",
|
|
| 42 |
version=f"{core_version()}.api3")
|
| 43 |
|
| 44 |
STATE = {
|
| 45 |
-
"base_model": "model
|
| 46 |
"lang": "off", # off | auto | <slug>
|
| 47 |
"ngrams": "auto", # auto | on | off (auto = CLI routing policy)
|
| 48 |
"log_deferrals": None,
|
|
@@ -96,6 +96,25 @@ def _get_engine(model_dir: str) -> SyFoxEngine:
|
|
| 96 |
return eng
|
| 97 |
|
| 98 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 99 |
def _route(state: str, lang_req: str | None) -> tuple[str, str]:
|
| 100 |
"""CLI-equal routing: returns (model_dir, note).
|
| 101 |
off -> base model, no detection (v2.1 behavior)
|
|
@@ -104,15 +123,17 @@ def _route(state: str, lang_req: str | None) -> tuple[str, str]:
|
|
| 104 |
"""
|
| 105 |
lang = (lang_req or STATE["lang"] or "off").lower()
|
| 106 |
if lang in ("", "off"):
|
| 107 |
-
return STATE["base_model"], ""
|
| 108 |
sc = detect_script(state)
|
| 109 |
slug = lang if lang not in ("auto",) else (sc if sc != "unknown" else "")
|
| 110 |
if not slug or slug == "unknown":
|
| 111 |
-
|
|
|
|
| 112 |
cand = f"{STATE['base_model']}-{slug}"
|
| 113 |
if Path(cand).is_dir():
|
| 114 |
return cand, f"routed to {cand} (script={slug})"
|
| 115 |
-
|
|
|
|
| 116 |
|
| 117 |
|
| 118 |
def _ngrams_policy(ngrams_req, script_slug: str) -> None:
|
|
@@ -130,11 +151,18 @@ def _ngrams_policy(ngrams_req, script_slug: str) -> None:
|
|
| 130 |
|
| 131 |
@app.get("/v1/models")
|
| 132 |
async def models():
|
| 133 |
-
"""Discover model dirs from meta.json (no fabric load).
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 137 |
continue
|
|
|
|
| 138 |
meta = {}
|
| 139 |
mp = d / "meta.json"
|
| 140 |
if mp.exists():
|
|
@@ -162,7 +190,7 @@ async def health():
|
|
| 162 |
info = {}
|
| 163 |
if ENGINES:
|
| 164 |
try:
|
| 165 |
-
info = ENGINES
|
| 166 |
except Exception:
|
| 167 |
info = {}
|
| 168 |
return {
|
|
@@ -221,19 +249,13 @@ async def systemone(req: Request):
|
|
| 221 |
return JSONResponse(status_code=422, content={
|
| 222 |
"error": {"message": str(e)}})
|
| 223 |
|
| 224 |
-
# options.defer_margin
|
| 225 |
-
#
|
| 226 |
-
#
|
| 227 |
-
#
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
if a.get("deferred"):
|
| 232 |
-
continue
|
| 233 |
-
vals = sorted(a.get("probabilities", {}).values(), reverse=True)
|
| 234 |
-
if len(vals) >= 2 and vals[0] - vals[1] < dm:
|
| 235 |
-
a["deferred"] = True
|
| 236 |
-
a["reason"] = "low_margin"
|
| 237 |
|
| 238 |
# v2.2 active-learning: log deferrals (state + full question schema)
|
| 239 |
deferred = {qid: a for qid, a in answers.items() if a.get("deferred")}
|
|
@@ -258,7 +280,7 @@ async def systemone(req: Request):
|
|
| 258 |
|
| 259 |
def main():
|
| 260 |
ap = argparse.ArgumentParser(description="SyFox System One server (v3 API)")
|
| 261 |
-
ap.add_argument("--model", default="model
|
| 262 |
ap.add_argument("--port", type=int, default=8010)
|
| 263 |
ap.add_argument("--host", default="127.0.0.1")
|
| 264 |
ap.add_argument("--lang", default="off",
|
|
@@ -277,7 +299,7 @@ def main():
|
|
| 277 |
help="append every deferral to FILE.jsonl (active learning)")
|
| 278 |
args = ap.parse_args()
|
| 279 |
|
| 280 |
-
if not Path(args.model).is_dir():
|
| 281 |
raise SystemExit(f"syfox: model dir not found: {args.model}")
|
| 282 |
STATE["base_model"] = args.model
|
| 283 |
STATE["lang"] = args.lang
|
|
@@ -288,7 +310,7 @@ def main():
|
|
| 288 |
miller_window=args.miller_window,
|
| 289 |
parallel_settle=args.threads > 0, threads=args.threads)
|
| 290 |
|
| 291 |
-
_get_engine(args.model) # load the
|
| 292 |
print(f"SyFox v{core_version()} serving on http://{args.host}:{args.port} "
|
| 293 |
f"(model: {args.model}, core: si-substrate, lang: {args.lang}, "
|
| 294 |
f"ngrams: {args.ngrams})")
|
|
|
|
| 42 |
version=f"{core_version()}.api3")
|
| 43 |
|
| 44 |
STATE = {
|
| 45 |
+
"base_model": "model/giant",
|
| 46 |
"lang": "off", # off | auto | <slug>
|
| 47 |
"ngrams": "auto", # auto | on | off (auto = CLI routing policy)
|
| 48 |
"log_deferrals": None,
|
|
|
|
| 96 |
return eng
|
| 97 |
|
| 98 |
|
| 99 |
+
def _resolve_base(model_dir: str) -> str:
|
| 100 |
+
"""Resolve a --model argument to a directory that actually exists.
|
| 101 |
+
|
| 102 |
+
The Docker CMD passes the FAMILY prefix (model/giant); routing appends
|
| 103 |
+
the script slug (model/giant-latin, ...). The prefix itself is not a
|
| 104 |
+
directory, so validation and preloading must resolve it: exact dir if
|
| 105 |
+
present, else <prefix>-latin (the default fabric), else the first
|
| 106 |
+
<prefix>-* variant found. Returns the input unchanged if nothing
|
| 107 |
+
matches (main() reports the honest error).
|
| 108 |
+
"""
|
| 109 |
+
if Path(model_dir).is_dir():
|
| 110 |
+
return model_dir
|
| 111 |
+
for cand in (f"{model_dir}-latin",
|
| 112 |
+
*sorted(str(p) for p in Path(".").glob(f"{model_dir}-*"))):
|
| 113 |
+
if Path(cand).is_dir():
|
| 114 |
+
return cand
|
| 115 |
+
return model_dir
|
| 116 |
+
|
| 117 |
+
|
| 118 |
def _route(state: str, lang_req: str | None) -> tuple[str, str]:
|
| 119 |
"""CLI-equal routing: returns (model_dir, note).
|
| 120 |
off -> base model, no detection (v2.1 behavior)
|
|
|
|
| 123 |
"""
|
| 124 |
lang = (lang_req or STATE["lang"] or "off").lower()
|
| 125 |
if lang in ("", "off"):
|
| 126 |
+
return _resolve_base(STATE["base_model"]), ""
|
| 127 |
sc = detect_script(state)
|
| 128 |
slug = lang if lang not in ("auto",) else (sc if sc != "unknown" else "")
|
| 129 |
if not slug or slug == "unknown":
|
| 130 |
+
base = _resolve_base(STATE["base_model"])
|
| 131 |
+
return base, f"script=unknown; using {base}"
|
| 132 |
cand = f"{STATE['base_model']}-{slug}"
|
| 133 |
if Path(cand).is_dir():
|
| 134 |
return cand, f"routed to {cand} (script={slug})"
|
| 135 |
+
base = _resolve_base(STATE["base_model"])
|
| 136 |
+
return base, f"no {cand} substrate; using {base} (honest fallback)"
|
| 137 |
|
| 138 |
|
| 139 |
def _ngrams_policy(ngrams_req, script_slug: str) -> None:
|
|
|
|
| 151 |
|
| 152 |
@app.get("/v1/models")
|
| 153 |
async def models():
|
| 154 |
+
"""Discover model dirs from meta.json (no fabric load).
|
| 155 |
+
|
| 156 |
+
Both repo layouts: HF layout keeps fabrics under model/<name>, the
|
| 157 |
+
source tree uses model-<name>. Serve whichever exists (dedup by name).
|
| 158 |
+
"""
|
| 159 |
+
out, seen = [], set()
|
| 160 |
+
dirs = sorted(list(Path(".").glob("model/*")) +
|
| 161 |
+
list(Path(".").glob("model-*")))
|
| 162 |
+
for d in dirs:
|
| 163 |
+
if not d.is_dir() or d.name in seen:
|
| 164 |
continue
|
| 165 |
+
seen.add(d.name)
|
| 166 |
meta = {}
|
| 167 |
mp = d / "meta.json"
|
| 168 |
if mp.exists():
|
|
|
|
| 190 |
info = {}
|
| 191 |
if ENGINES:
|
| 192 |
try:
|
| 193 |
+
info = ENGINES.get(_resolve_base(STATE["base_model"])).info()
|
| 194 |
except Exception:
|
| 195 |
info = {}
|
| 196 |
return {
|
|
|
|
| 249 |
return JSONResponse(status_code=422, content={
|
| 250 |
"error": {"message": str(e)}})
|
| 251 |
|
| 252 |
+
# v3.9.2: the options.defer_margin post-pass that used to live here
|
| 253 |
+
# was REMOVED. opts.defer_margin is forwarded to the C API, which
|
| 254 |
+
# already applies the near-tie defer inside decide() with reason
|
| 255 |
+
# "ambiguous_tie" — re-applying it at the HTTP layer produced a
|
| 256 |
+
# duplicate defer pass with a different reason string ("low_margin")
|
| 257 |
+
# and made the HTTP surface diverge from CLI/bench for the same
|
| 258 |
+
# options. The engine is the single source of truth for defers.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 259 |
|
| 260 |
# v2.2 active-learning: log deferrals (state + full question schema)
|
| 261 |
deferred = {qid: a for qid, a in answers.items() if a.get("deferred")}
|
|
|
|
| 280 |
|
| 281 |
def main():
|
| 282 |
ap = argparse.ArgumentParser(description="SyFox System One server (v3 API)")
|
| 283 |
+
ap.add_argument("--model", default="model/giant", help="base model directory")
|
| 284 |
ap.add_argument("--port", type=int, default=8010)
|
| 285 |
ap.add_argument("--host", default="127.0.0.1")
|
| 286 |
ap.add_argument("--lang", default="off",
|
|
|
|
| 299 |
help="append every deferral to FILE.jsonl (active learning)")
|
| 300 |
args = ap.parse_args()
|
| 301 |
|
| 302 |
+
if not Path(args.model).is_dir() and _resolve_base(args.model) == args.model:
|
| 303 |
raise SystemExit(f"syfox: model dir not found: {args.model}")
|
| 304 |
STATE["base_model"] = args.model
|
| 305 |
STATE["lang"] = args.lang
|
|
|
|
| 310 |
miller_window=args.miller_window,
|
| 311 |
parallel_settle=args.threads > 0, threads=args.threads)
|
| 312 |
|
| 313 |
+
_get_engine(_resolve_base(args.model)) # load the default fabric up front
|
| 314 |
print(f"SyFox v{core_version()} serving on http://{args.host}:{args.port} "
|
| 315 |
f"(model: {args.model}, core: si-substrate, lang: {args.lang}, "
|
| 316 |
f"ngrams: {args.ngrams})")
|