tri-star-symbolic-assembly-lang 0.1.64__py3-none-any.whl → 0.1.65__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tri_star_symbolic_assembly_lang-0.1.64.dist-info → tri_star_symbolic_assembly_lang-0.1.65.dist-info}/METADATA +1 -1
- {tri_star_symbolic_assembly_lang-0.1.64.dist-info → tri_star_symbolic_assembly_lang-0.1.65.dist-info}/RECORD +10 -8
- tsal/__init__.py +7 -0
- tsal/core/__init__.py +7 -0
- tsal/core/meta_coherence.py +30 -0
- tsal/core/spin_algebra.py +36 -0
- {tri_star_symbolic_assembly_lang-0.1.64.dist-info → tri_star_symbolic_assembly_lang-0.1.65.dist-info}/WHEEL +0 -0
- {tri_star_symbolic_assembly_lang-0.1.64.dist-info → tri_star_symbolic_assembly_lang-0.1.65.dist-info}/entry_points.txt +0 -0
- {tri_star_symbolic_assembly_lang-0.1.64.dist-info → tri_star_symbolic_assembly_lang-0.1.65.dist-info}/licenses/LICENSE +0 -0
- {tri_star_symbolic_assembly_lang-0.1.64.dist-info → tri_star_symbolic_assembly_lang-0.1.65.dist-info}/top_level.txt +0 -0
@@ -2,8 +2,8 @@ crawler/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
crawler/madmonkey_crawler.py,sha256=itsyxObNBb_9Au3J1Ft6RTNw3dE65fO-WALLD0WFmBM,541
|
3
3
|
madmonkey/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
4
|
madmonkey/intake.py,sha256=R48YOPWn3ljts5dFASZLHpPsycKeONeOCvvIzucyMzU,378
|
5
|
-
tri_star_symbolic_assembly_lang-0.1.
|
6
|
-
tsal/__init__.py,sha256=
|
5
|
+
tri_star_symbolic_assembly_lang-0.1.65.dist-info/licenses/LICENSE,sha256=mN9d_5LOKa9NB-vFLGwqAp8bggJwjaQ0Pm4DHFMBmIs,2123
|
6
|
+
tsal/__init__.py,sha256=M4J9PrnaatjapRVNPxxpV31cYrB1u_WZyp-qEaZzo6c,3220
|
7
7
|
tsal/agents/__init__.py,sha256=a3HUdwlTN8d0ripzeftDXuG--R0uA964Rz1tx4EslIs,133
|
8
8
|
tsal/agents/priority_research_team.py,sha256=cHaG52YeApAa9Z7H9fCHtQTF0LgEHTy3azqldnJ58yE,1330
|
9
9
|
tsal/audit/__init__.py,sha256=IR7ChTMT0qkKzkPJeNoSUCR8JMe0yuLFZLQg2CymEd8,225
|
@@ -16,7 +16,7 @@ tsal/cli/meshkeeper.py,sha256=SaFwJZCtdoFdeRPR-bNd_8smfoAhippmKT50UPggN4k,78
|
|
16
16
|
tsal/cli/party.py,sha256=QCjLiVDfWi2OO0yVYIxQwYiXYsfchP_1Sz0u5UxjqMA,80
|
17
17
|
tsal/cli/reflect.py,sha256=Yw_Uzz-9NZ8hnT7NbAyhDoalyJQkN9z7Z4xg9ScsvK4,75
|
18
18
|
tsal/cli/watchdog.py,sha256=WqpwcMw14DJ8lILghzh24j7cqIlyiqQ2UaLGfcPsaa4,76
|
19
|
-
tsal/core/__init__.py,sha256=
|
19
|
+
tsal/core/__init__.py,sha256=DInzK93dN8Hp4pPaiOdgXQA5Aw1Y5T83eia5d6rKfjw,2510
|
20
20
|
tsal/core/connectivity.py,sha256=JE9w1rTXNyLlKVZBdW5yIvCm0zPQr7wTgSy1-R7UsNM,886
|
21
21
|
tsal/core/constants.py,sha256=DVQNLdv_MOQUoH6D_ZqOmW9rg9671rvJ-VgxBg3n0xc,565
|
22
22
|
tsal/core/entangle.py,sha256=gYNSUJhaSXsAgHtDrAcKJN6uJy4XwrjVRwUnTHXFE0Q,515
|
@@ -32,6 +32,7 @@ tsal/core/manifold.py,sha256=6I7KUDwomDZ9nAY7_s5V3wi0R6aDcZS9TJH4FtPA4K0,422
|
|
32
32
|
tsal/core/merge.py,sha256=SpZ_dDzjIDABBEAJSBpqHOWI4iMiZwv00bnVkXXBO-s,476
|
33
33
|
tsal/core/mesh_logger.py,sha256=NO8zoeDOxDTEFm5FKECXNyxSM4Rp_XSiHw4FR3F2Edw,817
|
34
34
|
tsal/core/mesh_ops.py,sha256=4znQ3BQ1IGaVo7_TWbfXEa7p96xnlvyIqzKFu9EAl_Q,915
|
35
|
+
tsal/core/meta_coherence.py,sha256=S8cnih_BE-stxxeEe09F-HxrZQ0rbAhNv3hBL6VL8ws,786
|
35
36
|
tsal/core/module_registry.py,sha256=vfDtsbwt8XygWsHIJ-B-mZ-xrQekJhFfj9vbmYgawKY,7449
|
36
37
|
tsal/core/oaths.py,sha256=NVDLbyEZUaHx918SyOllfnUo_HDoDszZK99vOs1kI3s,709
|
37
38
|
tsal/core/optimizer_utils.py,sha256=QovazST91zXH0kquUg1U_uvZmL59eKYv8BzCkw-F4WU,2263
|
@@ -42,6 +43,7 @@ tsal/core/reflection.py,sha256=VFqb-gQqdw-ks8j0fjzMKsl0p0LFGFnopU9unZ2dduo,3070
|
|
42
43
|
tsal/core/rev_eng.py,sha256=vKzHgsRzYVQJ5u-RPaYR862GDUPn9IemBUqe5Z2qf9w,6348
|
43
44
|
tsal/core/shadow.py,sha256=xC8uf078efyP-3Y-ZHOy73uL-Xj4T0iYaXZccKA2i9A,600
|
44
45
|
tsal/core/spark_translator.py,sha256=SaXiQa1hkyyi6SRsHbfOFxiSjuZOXVbEAXjBDv5JNiU,1478
|
46
|
+
tsal/core/spin_algebra.py,sha256=pdko9oIQFKFpv4VLsCmpCTHmp6DM8ZSIXSAJSUivumg,952
|
45
47
|
tsal/core/spiral_fusion.py,sha256=vvNLoYpPhoX6CEoFd2cma2g0DhP7KzbA0Cp8W2HUWCs,1548
|
46
48
|
tsal/core/spiral_memory.py,sha256=9i39JRZvMyRtRdzY4UHE3_RIiuW-XZOkQ0dAzPKldGs,561
|
47
49
|
tsal/core/spiral_vector.py,sha256=J6G4Fx52XiSwVw-Zb7ZQ9mMn82MvwEFEANP1_eFKu8k,1183
|
@@ -95,8 +97,8 @@ tsal/utils/language_db.py,sha256=mw8gVeMK4I6Z0QeQHNAfHYTriAeDfhVVmB911oFdPqM,151
|
|
95
97
|
tsal/utils/octopus_api.py,sha256=1JrhYjbbAbN1-bkCAiInuUNh8bb7EJxB4SHh3Fwq3qs,1315
|
96
98
|
tsal/utils/system_status.py,sha256=cHjG3Ow4YJADYJY383_OdEMEiJAngxyq01z0ADCzV4s,1054
|
97
99
|
tsal/utils/wikipedia_api.py,sha256=W5kf423wzH9FoqO5eDRuJQMuTpTpiUGjVXHa0fLlXSQ,1303
|
98
|
-
tri_star_symbolic_assembly_lang-0.1.
|
99
|
-
tri_star_symbolic_assembly_lang-0.1.
|
100
|
-
tri_star_symbolic_assembly_lang-0.1.
|
101
|
-
tri_star_symbolic_assembly_lang-0.1.
|
102
|
-
tri_star_symbolic_assembly_lang-0.1.
|
100
|
+
tri_star_symbolic_assembly_lang-0.1.65.dist-info/METADATA,sha256=ki9VaCPyQpY3pJagbO0VKmblBiqKnSVS5zWsncUFEzk,13737
|
101
|
+
tri_star_symbolic_assembly_lang-0.1.65.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
102
|
+
tri_star_symbolic_assembly_lang-0.1.65.dist-info/entry_points.txt,sha256=O8cY2PLbPf53e8gNbI8lFqupalxXYgrnex0eNtvvaNw,426
|
103
|
+
tri_star_symbolic_assembly_lang-0.1.65.dist-info/top_level.txt,sha256=r1-Vpw1iGasgah8k-86xzqpGDT8o-A0P-_6ZNrQ39i0,23
|
104
|
+
tri_star_symbolic_assembly_lang-0.1.65.dist-info/RECORD,,
|
tsal/__init__.py
CHANGED
@@ -39,6 +39,8 @@ from .tools.spiral_audit import audit_path
|
|
39
39
|
from .tools.reflect import reflect
|
40
40
|
from .core.constants import AXIS_ZERO, ensure_spin_axis, UndefinedPhaseError
|
41
41
|
from .core.oaths import GUARDIAN_OATH, ARC_REACTOR_BOOT_OATH
|
42
|
+
from .core.meta_coherence import SpiralSignature, compute_spiral_signature
|
43
|
+
from .core.spin_algebra import SpinState, SpinInteraction, combine_spins
|
42
44
|
|
43
45
|
PHI = 1.618033988749895
|
44
46
|
PHI_INV = 0.618033988749895
|
@@ -98,4 +100,9 @@ __all__ = [
|
|
98
100
|
"UndefinedPhaseError",
|
99
101
|
"GUARDIAN_OATH",
|
100
102
|
"ARC_REACTOR_BOOT_OATH",
|
103
|
+
"SpiralSignature",
|
104
|
+
"compute_spiral_signature",
|
105
|
+
"SpinState",
|
106
|
+
"SpinInteraction",
|
107
|
+
"combine_spins",
|
101
108
|
]
|
tsal/core/__init__.py
CHANGED
@@ -32,6 +32,8 @@ from .superpos import superpose
|
|
32
32
|
from .entangle import entangle
|
33
33
|
from .manifold import manifold_distance
|
34
34
|
from .reflection import ReflectionLog, mood_from_traits
|
35
|
+
from .meta_coherence import SpiralSignature, compute_spiral_signature
|
36
|
+
from .spin_algebra import SpinState, SpinInteraction, combine_spins
|
35
37
|
from .guardian_constants import (
|
36
38
|
PERCEPTION_THRESHOLD,
|
37
39
|
LEARNING_RATE,
|
@@ -83,4 +85,9 @@ __all__ = [
|
|
83
85
|
"MAX_NODES",
|
84
86
|
"MAX_AGENTS",
|
85
87
|
"MAX_DIMENSIONS",
|
88
|
+
"SpiralSignature",
|
89
|
+
"compute_spiral_signature",
|
90
|
+
"SpinState",
|
91
|
+
"SpinInteraction",
|
92
|
+
"combine_spins",
|
86
93
|
]
|
@@ -0,0 +1,30 @@
|
|
1
|
+
from __future__ import annotations
|
2
|
+
|
3
|
+
"""Simple meta-coherence calculation utilities."""
|
4
|
+
|
5
|
+
from dataclasses import dataclass
|
6
|
+
from typing import Sequence
|
7
|
+
|
8
|
+
import numpy as np
|
9
|
+
|
10
|
+
from .symbols import PHI
|
11
|
+
|
12
|
+
|
13
|
+
@dataclass
|
14
|
+
class SpiralSignature:
|
15
|
+
"""Fourier-based spiral signature."""
|
16
|
+
|
17
|
+
amplitude: np.ndarray
|
18
|
+
phase: np.ndarray
|
19
|
+
|
20
|
+
|
21
|
+
def compute_spiral_signature(phases: Sequence[float], golden_ratio: float = PHI) -> SpiralSignature:
|
22
|
+
"""Return a basic spiral signature chart from raw phase data."""
|
23
|
+
arr = np.asarray(phases, dtype=float)
|
24
|
+
freq = np.fft.fft(arr)
|
25
|
+
modulated = freq * golden_ratio
|
26
|
+
amplitude = np.abs(modulated)
|
27
|
+
phase = np.angle(modulated)
|
28
|
+
return SpiralSignature(amplitude=amplitude, phase=phase)
|
29
|
+
|
30
|
+
__all__ = ["SpiralSignature", "compute_spiral_signature"]
|
@@ -0,0 +1,36 @@
|
|
1
|
+
from __future__ import annotations
|
2
|
+
|
3
|
+
"""Minimal spin algebra for symbolic interactions."""
|
4
|
+
|
5
|
+
from enum import Enum
|
6
|
+
from dataclasses import dataclass
|
7
|
+
from typing import Tuple
|
8
|
+
|
9
|
+
|
10
|
+
class SpinState(Enum):
|
11
|
+
CURIOSITY = "curiosity"
|
12
|
+
DUTY = "duty"
|
13
|
+
DELIGHT = "delight"
|
14
|
+
INQUIRY = "inquiry"
|
15
|
+
|
16
|
+
|
17
|
+
@dataclass
|
18
|
+
class SpinInteraction:
|
19
|
+
"""Resulting state of combining two spins."""
|
20
|
+
|
21
|
+
left: SpinState
|
22
|
+
right: SpinState
|
23
|
+
result: SpinState
|
24
|
+
|
25
|
+
|
26
|
+
def combine_spins(a: SpinState, b: SpinState) -> SpinInteraction:
|
27
|
+
"""Return deterministic result for simple spin combinations."""
|
28
|
+
table = {
|
29
|
+
(SpinState.CURIOSITY, SpinState.DUTY): SpinState.INQUIRY,
|
30
|
+
(SpinState.DUTY, SpinState.CURIOSITY): SpinState.INQUIRY,
|
31
|
+
(SpinState.CURIOSITY, SpinState.DELIGHT): SpinState.DELIGHT,
|
32
|
+
}
|
33
|
+
result = table.get((a, b), a)
|
34
|
+
return SpinInteraction(left=a, right=b, result=result)
|
35
|
+
|
36
|
+
__all__ = ["SpinState", "SpinInteraction", "combine_spins"]
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|