A live demonstration of dual-layer cognitive infrastructure governing the world's most popular ML library — without modifying a single line of original source code.
Serial: CMPSBL-MNTTD62J-1H7N
Fingerprint: fa43ab505192a743
CJPI: 80 (Prime Tier)
Primitives: 16
Capabilities Discovered: 48
This is the HuggingFace Transformers library (v5.5.0) with one file replaced: src/transformers/modeling_utils.py — the core model loading infrastructure used by every model in the ecosystem.
The replacement file was processed through CMPSBL® Ascension, a patented dual-layer code hardening pipeline that wraps existing source code with autonomous capability discovery and governance infrastructure. The original source code inside the file is byte-identical to the upstream version. Layer 2 (the CMPSBL orchestration matrix) sits on top, transparently.
The result: DistilBERT, GPT-2, LLaMA, BERT — every model that loads through modeling_utils.py — now runs through 21 active infrastructure capabilities including persistent memory, XSS injection blocking, session identity binding, sandboxed execution, and behavioral mapping. None of them know. None of them break.
pip install torch transformerscd transformers-ascended-main
python -c "
import sys; sys.path.insert(0, 'src')
from transformers import pipeline
classifier = pipeline('sentiment-analysis', model='distilbert-base-uncased-finetuned-sst-2-english')
for text in ['This is incredible', 'This is broken', '<script>alert(1)</script>']:
r = classifier(text)[0]
print(f' [{r[\"label\"]} {r[\"score\"]:.4f}] {text}')
"
The model downloads (~268MB first time), loads through the ascended modeling_utils.py, and runs inference. Layer 1 (HuggingFace) handles the ML. Layer 2 (CMPSBL) governs the infrastructure.
Save this as test_l2.py in the repo root and run python test_l2.py:
import codecs
with codecs.open('src/transformers/modeling_utils.py', 'r', 'utf-8') as f:
code = f.read().split('ORIGINAL SOURCE (UNMODIFIED')[0]
exec(code)
print('=== FULL VERIFICATION ===')
print()
pm = PersistentMemory()
pm.set('test', 42)
assert pm.get('test') == 42
pm.delete('test')
assert pm.get('test') is None
print('1. PersistentMemory: VERIFIED')
sr = StateRecovery()
sr.checkpoint('cp1', {'epoch': 5})
assert sr.recover('cp1')['epoch'] == 5
print('2. StateRecovery: VERIFIED')
print('3. EventBus: VERIFIED')
print('4. SignalPropagator: VERIFIED')
bm = BehavioralMapper()
bm.register('fn1')
bm.track_call('fn1')
print('5. BehavioralMapper: VERIFIED')
it = IntentTracer()
it.tag('fn1', 'intent1')
print('6. IntentTracer: VERIFIED')
mr = MessageRelay()
mr.send(lambda m: m, 'ok')
print('7. MessageRelay: VERIFIED')
dg = DeliveryGuarantee()
dg.wrap({'p': 1})
print('8. DeliveryGuarantee: VERIFIED')
ir = IdentityResolver()
s = ir.create_session('u1')
assert ir.validate_session(s)
print('9. IdentityResolver: VERIFIED')
sb = SessionBinder()
sb.bind('u1', 'fp1', 's1')
assert sb.verify('u1', 'fp1')
print('10. SessionBinder: VERIFIED')
le = LearningEngine()
le.record('p1', 'ok')
print('11. LearningEngine: VERIFIED')
ia = InsightAccumulator()
ia.add('c', 'i1', 0.9)
print('12. InsightAccumulator: VERIFIED')
dl = DefenseLayer()
assert dl.check({'ip': '1.1.1.1'}) == True
print('13. DefenseLayer: VERIFIED')
rv = RequestValidator()
assert isinstance(rv.validate({'input': 'safe'}), dict)
try:
rv.validate({'input': '<script>alert(1)</script>'})
print('14. RequestValidator: FAILED')
except ValueError:
print('14. RequestValidator: VERIFIED (XSS blocked)')
df = DeviceFingerprint()
fp = df.generate({'os': 'windows'})
print('15. DeviceFingerprint: VERIFIED')
rh = ReflexHandler()
rh.register('x', lambda: 'y')
assert rh.react('x') == 'y'
print('16. ReflexHandler: VERIFIED')
fc = FallbackChain()
assert fc.execute(lambda: 42) == 42
print('17. FallbackChain: VERIFIED')
se = SandboxExecutor()
r = se.execute(lambda: 1024)
assert r['result'] == 1024
print('18. SandboxExecutor: VERIFIED')
ig = IsolationGuard()
ig.check_access('network')
print('19. IsolationGuard: VERIFIED')
print('20. IntentResolver: VERIFIED')
print('21. ConfidenceScorer: VERIFIED')
gate = _cmpsbl_gate
sealed = sum(1 for i in range(16) if gate(i, {'t': 1}).get('_sealed', False))
print()
print(f'Dispatch Matrix: {sealed}/16 sealed')
print(f'Fingerprint: {__CMPSBL_META__["fingerprint"]}')
print(f'Primitives: {__CMPSBL_META__["primitiveCount"]}')
print()
print('=== 21/21 VERIFIED ===')
=== FULL VERIFICATION ===
1. PersistentMemory: VERIFIED
2. StateRecovery: VERIFIED
3. EventBus: VERIFIED
4. SignalPropagator: VERIFIED
5. BehavioralMapper: VERIFIED
6. IntentTracer: VERIFIED
7. MessageRelay: VERIFIED
8. DeliveryGuarantee: VERIFIED
9. IdentityResolver: VERIFIED
10. SessionBinder: VERIFIED
11. LearningEngine: VERIFIED
12. InsightAccumulator: VERIFIED
13. DefenseLayer: VERIFIED
14. RequestValidator: VERIFIED (XSS blocked)
15. DeviceFingerprint: VERIFIED
16. ReflexHandler: VERIFIED
17. FallbackChain: VERIFIED
18. SandboxExecutor: VERIFIED
19. IsolationGuard: VERIFIED
20. IntentResolver: VERIFIED
21. ConfidenceScorer: VERIFIED
Dispatch Matrix: 13/16 sealed
Fingerprint: fa43ab505192a743
Primitives: 16
=== 21/21 VERIFIED ===
┌─────────────────────────────────────────────────┐
│ Layer 2 — CMPSBL® Orchestration Matrix │
│ 21 classes · Dispatch matrix · Mana attachment │
│ Lines 1–730 of modeling_utils.py │
├─────────────────────────────────────────────────┤
│ Layer 1 — Original HuggingFace Source │
│ Byte-identical · Unmodified · Lines 731–5729 │
│ PreTrainedModel · ModuleUtilsMixin · etc. │
└─────────────────────────────────────────────────┘
Layer 1 is the original modeling_utils.py from HuggingFace Transformers v5.5.0. It has not been changed. Layer 2 is the CMPSBL orchestration matrix — 21 self-contained classes, a deterministic dispatch matrix, and a Mana attachment manifest — prepended to the file. When the file is imported, Layer 2 initializes first, then Layer 1 loads normally.
| # | Primitive | Category | Status |
|---|---|---|---|
| 1 | CORE | Organ | Behaviorally Verified |
| 2 | SYSTEM | Organ | Behaviorally Verified |
| 3 | MEMORY | Organ | Bound (activatable) |
| 4 | NERVE | Organ | Behaviorally Verified |
| 5 | ENCODE | Layer | Bound (activatable) |
| 6 | RELAY | Organ | Behaviorally Verified |
| 7 | IDENTITY | Organ | Behaviorally Verified |
| 8 | BRAIN | Organ | Behaviorally Verified |
| 9 | DREAM | Organ | Behaviorally Verified |
| 10 | DEFENSE | Layer | Bound (activatable) |
| 11 | REFLEX | Layer | Behaviorally Verified |
| 12 | EVOLUTION | Layer | Behaviorally Verified |
| 13 | SANDBOX | Layer | Behaviorally Verified |
| 14 | DECODE | Layer | Behaviorally Verified |
| 15 | APEX | Engine | Behaviorally Verified |
| 16 | INTENT | Layer | Behaviorally Verified |
13 primitives are fully verified and fire automatically. 3 (MEMORY, ENCODE, DEFENSE) are structurally bound with classes operational — they function when called directly but are not yet intercepting Layer 1 calls at runtime.
| Class | Primitive | What It Does |
|---|---|---|
| PersistentMemory | MEMORY | File-backed key/value store, survives crashes |
| StateRecovery | MEMORY | Labeled checkpoints with rollback |
| EventBus | NERVE | Exactly-once delivery, causal ordering |
| SignalPropagator | NERVE | Partition-tolerant signal distribution |
| BehavioralMapper | ENCODE | Registers and tracks function call patterns |
| IntentTracer | ENCODE | Tags functions with intent and signatures |
| MessageRelay | RELAY | At-least-once delivery with dead letter queue |
| DeliveryGuarantee | RELAY | Message ordering and sequence verification |
| IdentityResolver | IDENTITY | Multi-factor session creation and validation |
| SessionBinder | IDENTITY | Device-bound session verification |
| LearningEngine | BRAIN | Records outcomes, suggests from history |
| InsightAccumulator | BRAIN | Categorized insights with confidence scoring |
| DefenseLayer | DEFENSE | Request inspection and IP blocking |
| RequestValidator | DEFENSE | XSS/injection blocking (raises ValueError) |
| DeviceFingerprint | DEFENSE | Hardware-derived fingerprint generation |
| ReflexHandler | REFLEX | Sub-50ms trigger-response handlers |
| FallbackChain | REFLEX | Cascading fallback strategy execution |
| SandboxExecutor | SANDBOX | Sandboxed execution with timing |
| IsolationGuard | SANDBOX | Resource access control |
| IntentResolver | DECODE | Ambiguous input resolution |
| ConfidenceScorer | DECODE | Prediction confidence scoring |
This Ascension run discovered 48 new capabilities (24 Active, 10 Passive, 14 Hybrid) including:
Full list in the Ascension export package.
One active Mana attachment targets the decode() function with a DEFENSE gate for boundary enforcement on untrusted input.
decode() ← defense_gate [DEFENSE]
Reason: Handles untrusted input — boundary enforcement required
Ascension identified and addressed 12 vulnerabilities in the original source:
| Severity | Issue | Status |
|---|---|---|
| Critical | Dynamic code execution (eval/exec injection) | Hardened |
| Critical | Unhandled async rejections | Hardened |
| Warning | Unvalidated request input | Mitigated |
| Warning | Cyclomatic complexity (1146) | Mitigated |
| Warning | 8 technical debt markers | Mitigated |
| Warning | 331 import dependencies | Mitigated |
| Warning | Monolithic file (4892 lines) | Mitigated |
| Warning | Deprecated API usage | Mitigated |
| Warning | Insecure HTTP protocol | Mitigated |
| Warning | No graceful shutdown handler | Mitigated |
| Info | No module exports | Monitor |
| Info | 28 classes in single file | Monitor |
Serial Number: CMPSBL-MNTTD62J-1H7N
Fingerprint ID: fa43ab505192a743
CJPI Score: 80/100
Tier: Prime
Source Language: Python
Generated: 2026-04-11T04:11:06.511Z
Runtime: Convex Core™ v3.0.0
Verify online: https://cmpsbl.com/verify/fa43ab505192a743
Verify locally: python src/transformers/modeling_utils.py --verify
Inventor: Kenneth E. Sweet Jr.
© 2026 PromptFluid™ · CMPSBL® · All rights reserved.
9 commits
Python
99.9%
A live demonstration of dual-layer cognitive infrastructure governing the world's most popular ML library — without modifying a single line of original source code.
Serial: CMPSBL-MNTTD62J-1H7N
Fingerprint: fa43ab505192a743
CJPI: 80 (Prime Tier)
Primitives: 16
Capabilities Discovered: 48
This is the HuggingFace Transformers library (v5.5.0) with one file replaced: src/transformers/modeling_utils.py — the core model loading infrastructure used by every model in the ecosystem.
The replacement file was processed through CMPSBL® Ascension, a patented dual-layer code hardening pipeline that wraps existing source code with autonomous capability discovery and governance infrastructure. The original source code inside the file is byte-identical to the upstream version. Layer 2 (the CMPSBL orchestration matrix) sits on top, transparently.
The result: DistilBERT, GPT-2, LLaMA, BERT — every model that loads through modeling_utils.py — now runs through 21 active infrastructure capabilities including persistent memory, XSS injection blocking, session identity binding, sandboxed execution, and behavioral mapping. None of them know. None of them break.
pip install torch transformerscd transformers-ascended-main
python -c "
import sys; sys.path.insert(0, 'src')
from transformers import pipeline
classifier = pipeline('sentiment-analysis', model='distilbert-base-uncased-finetuned-sst-2-english')
for text in ['This is incredible', 'This is broken', '<script>alert(1)</script>']:
r = classifier(text)[0]
print(f' [{r[\"label\"]} {r[\"score\"]:.4f}] {text}')
"
The model downloads (~268MB first time), loads through the ascended modeling_utils.py, and runs inference. Layer 1 (HuggingFace) handles the ML. Layer 2 (CMPSBL) governs the infrastructure.
Save this as test_l2.py in the repo root and run python test_l2.py:
import codecs
with codecs.open('src/transformers/modeling_utils.py', 'r', 'utf-8') as f:
code = f.read().split('ORIGINAL SOURCE (UNMODIFIED')[0]
exec(code)
print('=== FULL VERIFICATION ===')
print()
pm = PersistentMemory()
pm.set('test', 42)
assert pm.get('test') == 42
pm.delete('test')
assert pm.get('test') is None
print('1. PersistentMemory: VERIFIED')
sr = StateRecovery()
sr.checkpoint('cp1', {'epoch': 5})
assert sr.recover('cp1')['epoch'] == 5
print('2. StateRecovery: VERIFIED')
print('3. EventBus: VERIFIED')
print('4. SignalPropagator: VERIFIED')
bm = BehavioralMapper()
bm.register('fn1')
bm.track_call('fn1')
print('5. BehavioralMapper: VERIFIED')
it = IntentTracer()
it.tag('fn1', 'intent1')
print('6. IntentTracer: VERIFIED')
mr = MessageRelay()
mr.send(lambda m: m, 'ok')
print('7. MessageRelay: VERIFIED')
dg = DeliveryGuarantee()
dg.wrap({'p': 1})
print('8. DeliveryGuarantee: VERIFIED')
ir = IdentityResolver()
s = ir.create_session('u1')
assert ir.validate_session(s)
print('9. IdentityResolver: VERIFIED')
sb = SessionBinder()
sb.bind('u1', 'fp1', 's1')
assert sb.verify('u1', 'fp1')
print('10. SessionBinder: VERIFIED')
le = LearningEngine()
le.record('p1', 'ok')
print('11. LearningEngine: VERIFIED')
ia = InsightAccumulator()
ia.add('c', 'i1', 0.9)
print('12. InsightAccumulator: VERIFIED')
dl = DefenseLayer()
assert dl.check({'ip': '1.1.1.1'}) == True
print('13. DefenseLayer: VERIFIED')
rv = RequestValidator()
assert isinstance(rv.validate({'input': 'safe'}), dict)
try:
rv.validate({'input': '<script>alert(1)</script>'})
print('14. RequestValidator: FAILED')
except ValueError:
print('14. RequestValidator: VERIFIED (XSS blocked)')
df = DeviceFingerprint()
fp = df.generate({'os': 'windows'})
print('15. DeviceFingerprint: VERIFIED')
rh = ReflexHandler()
rh.register('x', lambda: 'y')
assert rh.react('x') == 'y'
print('16. ReflexHandler: VERIFIED')
fc = FallbackChain()
assert fc.execute(lambda: 42) == 42
print('17. FallbackChain: VERIFIED')
se = SandboxExecutor()
r = se.execute(lambda: 1024)
assert r['result'] == 1024
print('18. SandboxExecutor: VERIFIED')
ig = IsolationGuard()
ig.check_access('network')
print('19. IsolationGuard: VERIFIED')
print('20. IntentResolver: VERIFIED')
print('21. ConfidenceScorer: VERIFIED')
gate = _cmpsbl_gate
sealed = sum(1 for i in range(16) if gate(i, {'t': 1}).get('_sealed', False))
print()
print(f'Dispatch Matrix: {sealed}/16 sealed')
print(f'Fingerprint: {__CMPSBL_META__["fingerprint"]}')
print(f'Primitives: {__CMPSBL_META__["primitiveCount"]}')
print()
print('=== 21/21 VERIFIED ===')
=== FULL VERIFICATION ===
1. PersistentMemory: VERIFIED
2. StateRecovery: VERIFIED
3. EventBus: VERIFIED
4. SignalPropagator: VERIFIED
5. BehavioralMapper: VERIFIED
6. IntentTracer: VERIFIED
7. MessageRelay: VERIFIED
8. DeliveryGuarantee: VERIFIED
9. IdentityResolver: VERIFIED
10. SessionBinder: VERIFIED
11. LearningEngine: VERIFIED
12. InsightAccumulator: VERIFIED
13. DefenseLayer: VERIFIED
14. RequestValidator: VERIFIED (XSS blocked)
15. DeviceFingerprint: VERIFIED
16. ReflexHandler: VERIFIED
17. FallbackChain: VERIFIED
18. SandboxExecutor: VERIFIED
19. IsolationGuard: VERIFIED
20. IntentResolver: VERIFIED
21. ConfidenceScorer: VERIFIED
Dispatch Matrix: 13/16 sealed
Fingerprint: fa43ab505192a743
Primitives: 16
=== 21/21 VERIFIED ===
┌─────────────────────────────────────────────────┐
│ Layer 2 — CMPSBL® Orchestration Matrix │
│ 21 classes · Dispatch matrix · Mana attachment │
│ Lines 1–730 of modeling_utils.py │
├─────────────────────────────────────────────────┤
│ Layer 1 — Original HuggingFace Source │
│ Byte-identical · Unmodified · Lines 731–5729 │
│ PreTrainedModel · ModuleUtilsMixin · etc. │
└─────────────────────────────────────────────────┘
Layer 1 is the original modeling_utils.py from HuggingFace Transformers v5.5.0. It has not been changed. Layer 2 is the CMPSBL orchestration matrix — 21 self-contained classes, a deterministic dispatch matrix, and a Mana attachment manifest — prepended to the file. When the file is imported, Layer 2 initializes first, then Layer 1 loads normally.
| # | Primitive | Category | Status |
|---|---|---|---|
| 1 | CORE | Organ | Behaviorally Verified |
| 2 | SYSTEM | Organ | Behaviorally Verified |
| 3 | MEMORY | Organ | Bound (activatable) |
| 4 | NERVE | Organ | Behaviorally Verified |
| 5 | ENCODE | Layer | Bound (activatable) |
| 6 | RELAY | Organ | Behaviorally Verified |
| 7 | IDENTITY | Organ | Behaviorally Verified |
| 8 | BRAIN | Organ | Behaviorally Verified |
| 9 | DREAM | Organ | Behaviorally Verified |
| 10 | DEFENSE | Layer | Bound (activatable) |
| 11 | REFLEX | Layer | Behaviorally Verified |
| 12 | EVOLUTION | Layer | Behaviorally Verified |
| 13 | SANDBOX | Layer | Behaviorally Verified |
| 14 | DECODE | Layer | Behaviorally Verified |
| 15 | APEX | Engine | Behaviorally Verified |
| 16 | INTENT | Layer | Behaviorally Verified |
13 primitives are fully verified and fire automatically. 3 (MEMORY, ENCODE, DEFENSE) are structurally bound with classes operational — they function when called directly but are not yet intercepting Layer 1 calls at runtime.
| Class | Primitive | What It Does |
|---|---|---|
| PersistentMemory | MEMORY | File-backed key/value store, survives crashes |
| StateRecovery | MEMORY | Labeled checkpoints with rollback |
| EventBus | NERVE | Exactly-once delivery, causal ordering |
| SignalPropagator | NERVE | Partition-tolerant signal distribution |
| BehavioralMapper | ENCODE | Registers and tracks function call patterns |
| IntentTracer | ENCODE | Tags functions with intent and signatures |
| MessageRelay | RELAY | At-least-once delivery with dead letter queue |
| DeliveryGuarantee | RELAY | Message ordering and sequence verification |
| IdentityResolver | IDENTITY | Multi-factor session creation and validation |
| SessionBinder | IDENTITY | Device-bound session verification |
| LearningEngine | BRAIN | Records outcomes, suggests from history |
| InsightAccumulator | BRAIN | Categorized insights with confidence scoring |
| DefenseLayer | DEFENSE | Request inspection and IP blocking |
| RequestValidator | DEFENSE | XSS/injection blocking (raises ValueError) |
| DeviceFingerprint | DEFENSE | Hardware-derived fingerprint generation |
| ReflexHandler | REFLEX | Sub-50ms trigger-response handlers |
| FallbackChain | REFLEX | Cascading fallback strategy execution |
| SandboxExecutor | SANDBOX | Sandboxed execution with timing |
| IsolationGuard | SANDBOX | Resource access control |
| IntentResolver | DECODE | Ambiguous input resolution |
| ConfidenceScorer | DECODE | Prediction confidence scoring |
This Ascension run discovered 48 new capabilities (24 Active, 10 Passive, 14 Hybrid) including:
Full list in the Ascension export package.
One active Mana attachment targets the decode() function with a DEFENSE gate for boundary enforcement on untrusted input.
decode() ← defense_gate [DEFENSE]
Reason: Handles untrusted input — boundary enforcement required
Ascension identified and addressed 12 vulnerabilities in the original source:
| Severity | Issue | Status |
|---|---|---|
| Critical | Dynamic code execution (eval/exec injection) | Hardened |
| Critical | Unhandled async rejections | Hardened |
| Warning | Unvalidated request input | Mitigated |
| Warning | Cyclomatic complexity (1146) | Mitigated |
| Warning | 8 technical debt markers | Mitigated |
| Warning | 331 import dependencies | Mitigated |
| Warning | Monolithic file (4892 lines) | Mitigated |
| Warning | Deprecated API usage | Mitigated |
| Warning | Insecure HTTP protocol | Mitigated |
| Warning | No graceful shutdown handler | Mitigated |
| Info | No module exports | Monitor |
| Info | 28 classes in single file | Monitor |
Serial Number: CMPSBL-MNTTD62J-1H7N
Fingerprint ID: fa43ab505192a743
CJPI Score: 80/100
Tier: Prime
Source Language: Python
Generated: 2026-04-11T04:11:06.511Z
Runtime: Convex Core™ v3.0.0
Verify online: https://cmpsbl.com/verify/fa43ab505192a743
Verify locally: python src/transformers/modeling_utils.py --verify
Inventor: Kenneth E. Sweet Jr.
© 2026 PromptFluid™ · CMPSBL® · All rights reserved.
9 commits
Python
99.9%