mrs-core 0.1.3__tar.gz → 0.1.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. {mrs_core-0.1.3/mrs_core.egg-info → mrs_core-0.1.4}/PKG-INFO +22 -10
  2. {mrs_core-0.1.3 → mrs_core-0.1.4}/README.md +21 -9
  3. {mrs_core-0.1.3 → mrs_core-0.1.4}/mrs/registry.py +0 -5
  4. {mrs_core-0.1.3 → mrs_core-0.1.4/mrs_core.egg-info}/PKG-INFO +22 -10
  5. {mrs_core-0.1.3 → mrs_core-0.1.4}/pyproject.toml +1 -1
  6. {mrs_core-0.1.3 → mrs_core-0.1.4}/LICENSE +0 -0
  7. {mrs_core-0.1.3 → mrs_core-0.1.4}/MANIFEST.in +0 -0
  8. {mrs_core-0.1.3 → mrs_core-0.1.4}/NOTICE +0 -0
  9. {mrs_core-0.1.3 → mrs_core-0.1.4}/mrs/__init__.py +0 -0
  10. {mrs_core-0.1.3 → mrs_core-0.1.4}/mrs/diagnostics.py +0 -0
  11. {mrs_core-0.1.3 → mrs_core-0.1.4}/mrs/engine.py +0 -0
  12. {mrs_core-0.1.3 → mrs_core-0.1.4}/mrs/exceptions.py +0 -0
  13. {mrs_core-0.1.3 → mrs_core-0.1.4}/mrs/operators/__init__.py +0 -0
  14. {mrs_core-0.1.3 → mrs_core-0.1.4}/mrs/operators/base.py +0 -0
  15. {mrs_core-0.1.3 → mrs_core-0.1.4}/mrs/operators/evaluate.py +0 -0
  16. {mrs_core-0.1.3 → mrs_core-0.1.4}/mrs/operators/filter.py +0 -0
  17. {mrs_core-0.1.3 → mrs_core-0.1.4}/mrs/operators/inspect.py +0 -0
  18. {mrs_core-0.1.3 → mrs_core-0.1.4}/mrs/operators/reflect.py +0 -0
  19. {mrs_core-0.1.3 → mrs_core-0.1.4}/mrs/operators/rewrite.py +0 -0
  20. {mrs_core-0.1.3 → mrs_core-0.1.4}/mrs/operators/summarize.py +0 -0
  21. {mrs_core-0.1.3 → mrs_core-0.1.4}/mrs/operators/transform.py +0 -0
  22. {mrs_core-0.1.3 → mrs_core-0.1.4}/mrs/phases.py +0 -0
  23. {mrs_core-0.1.3 → mrs_core-0.1.4}/mrs/pipeline.py +0 -0
  24. {mrs_core-0.1.3 → mrs_core-0.1.4}/mrs/presets.py +0 -0
  25. {mrs_core-0.1.3 → mrs_core-0.1.4}/mrs/state.py +0 -0
  26. {mrs_core-0.1.3 → mrs_core-0.1.4}/mrs_core.egg-info/SOURCES.txt +0 -0
  27. {mrs_core-0.1.3 → mrs_core-0.1.4}/mrs_core.egg-info/dependency_links.txt +0 -0
  28. {mrs_core-0.1.3 → mrs_core-0.1.4}/mrs_core.egg-info/top_level.txt +0 -0
  29. {mrs_core-0.1.3 → mrs_core-0.1.4}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mrs-core
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: MRS-Core: A deterministic modular reasoning engine.
5
5
  Author: Ryan Sabouhi
6
6
  License: Apache-2.0
@@ -81,7 +81,7 @@ MRS records:
81
81
  - Each operator is a small Python class registered via the Operator Registry.
82
82
 
83
83
  ### Drop-In Presets
84
- `simple`, `reasoning`, `full_chain` ready for production use.
84
+ `simple`, `reasoning`, `full_chain` presets included for immediate use and extension.
85
85
 
86
86
  ---
87
87
 
@@ -112,12 +112,19 @@ print(result["phase"])
112
112
 
113
113
  # Example Output
114
114
  ```bash
115
- [REFLECT] [TRANSFORM]
116
- MRS-CORE IS A MODULAR DETERMINISTIC REASONING PIPELINE.
117
-
118
- [EVAL CHARS=95 WORDS=14]
119
-
120
- PHASE: rewrite
115
+ FINAL TEXT:
116
+ [REFLECT] [TRANSFORM] THIS IS A TEST OF MRS-CORE.
117
+ [EVAL CHARS=49 WORDS=8]
118
+
119
+ LOG:
120
+ - Transform applied
121
+ - [PHASE] start → transform
122
+ - Reflect applied
123
+ - [PHASE] transform → reflect
124
+ - Evaluate applied
125
+ - [PHASE] reflect → evaluate
126
+ - Rewrite applied
127
+ - [PHASE] evaluate → rewrite
121
128
  ```
122
129
  ---
123
130
 
@@ -160,6 +167,11 @@ for name in ["simple", "reasoning", "full_chain"]:
160
167
  print(f"=== {name.upper()} ===")
161
168
  print(result["text"])
162
169
  ```
170
+
171
+ Note: Presets are *example chains*, not semantic models.
172
+ Operators are deterministic components; their meaning depends on the chain design.
173
+ `full_chain` is intentionally simple and does not represent a cognitive process.
174
+
163
175
  ---
164
176
 
165
177
  # Operator Anatomy
@@ -168,7 +180,7 @@ for name in ["simple", "reasoning", "full_chain"]:
168
180
  - receives the current ReasoningState
169
181
  - modifies state.text
170
182
  - appends to state.log
171
- - updates state.phase
183
+ - engine updates state.phase automatically based on the operator's phase transition rules
172
184
  - records an entry in state.history
173
185
 
174
186
  ### Example:
@@ -177,7 +189,7 @@ for name in ["simple", "reasoning", "full_chain"]:
177
189
  class ReflectOperator(Operator):
178
190
  phase = ("transform", "reflect")
179
191
 
180
- def run(self, state):
192
+ def run(self, state, **kwags):
181
193
  state.text = f"[REFLECT] {state.text}"
182
194
  state.log.append("Reflect applied")
183
195
  return state
@@ -55,7 +55,7 @@ MRS records:
55
55
  - Each operator is a small Python class registered via the Operator Registry.
56
56
 
57
57
  ### Drop-In Presets
58
- `simple`, `reasoning`, `full_chain` ready for production use.
58
+ `simple`, `reasoning`, `full_chain` presets included for immediate use and extension.
59
59
 
60
60
  ---
61
61
 
@@ -86,12 +86,19 @@ print(result["phase"])
86
86
 
87
87
  # Example Output
88
88
  ```bash
89
- [REFLECT] [TRANSFORM]
90
- MRS-CORE IS A MODULAR DETERMINISTIC REASONING PIPELINE.
91
-
92
- [EVAL CHARS=95 WORDS=14]
93
-
94
- PHASE: rewrite
89
+ FINAL TEXT:
90
+ [REFLECT] [TRANSFORM] THIS IS A TEST OF MRS-CORE.
91
+ [EVAL CHARS=49 WORDS=8]
92
+
93
+ LOG:
94
+ - Transform applied
95
+ - [PHASE] start → transform
96
+ - Reflect applied
97
+ - [PHASE] transform → reflect
98
+ - Evaluate applied
99
+ - [PHASE] reflect → evaluate
100
+ - Rewrite applied
101
+ - [PHASE] evaluate → rewrite
95
102
  ```
96
103
  ---
97
104
 
@@ -134,6 +141,11 @@ for name in ["simple", "reasoning", "full_chain"]:
134
141
  print(f"=== {name.upper()} ===")
135
142
  print(result["text"])
136
143
  ```
144
+
145
+ Note: Presets are *example chains*, not semantic models.
146
+ Operators are deterministic components; their meaning depends on the chain design.
147
+ `full_chain` is intentionally simple and does not represent a cognitive process.
148
+
137
149
  ---
138
150
 
139
151
  # Operator Anatomy
@@ -142,7 +154,7 @@ for name in ["simple", "reasoning", "full_chain"]:
142
154
  - receives the current ReasoningState
143
155
  - modifies state.text
144
156
  - appends to state.log
145
- - updates state.phase
157
+ - engine updates state.phase automatically based on the operator's phase transition rules
146
158
  - records an entry in state.history
147
159
 
148
160
  ### Example:
@@ -151,7 +163,7 @@ for name in ["simple", "reasoning", "full_chain"]:
151
163
  class ReflectOperator(Operator):
152
164
  phase = ("transform", "reflect")
153
165
 
154
- def run(self, state):
166
+ def run(self, state, **kwags):
155
167
  state.text = f"[REFLECT] {state.text}"
156
168
  state.log.append("Reflect applied")
157
169
  return state
@@ -19,8 +19,3 @@ class OperatorRegistry:
19
19
  if key not in OPERATOR_REGISTRY:
20
20
  raise OperatorNotFound(key)
21
21
  return OPERATOR_REGISTRY[key]
22
-
23
- @classmethod
24
- def all(cls):
25
- return dict(OPERATOR_REGISTRY)
26
-
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mrs-core
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: MRS-Core: A deterministic modular reasoning engine.
5
5
  Author: Ryan Sabouhi
6
6
  License: Apache-2.0
@@ -81,7 +81,7 @@ MRS records:
81
81
  - Each operator is a small Python class registered via the Operator Registry.
82
82
 
83
83
  ### Drop-In Presets
84
- `simple`, `reasoning`, `full_chain` ready for production use.
84
+ `simple`, `reasoning`, `full_chain` presets included for immediate use and extension.
85
85
 
86
86
  ---
87
87
 
@@ -112,12 +112,19 @@ print(result["phase"])
112
112
 
113
113
  # Example Output
114
114
  ```bash
115
- [REFLECT] [TRANSFORM]
116
- MRS-CORE IS A MODULAR DETERMINISTIC REASONING PIPELINE.
117
-
118
- [EVAL CHARS=95 WORDS=14]
119
-
120
- PHASE: rewrite
115
+ FINAL TEXT:
116
+ [REFLECT] [TRANSFORM] THIS IS A TEST OF MRS-CORE.
117
+ [EVAL CHARS=49 WORDS=8]
118
+
119
+ LOG:
120
+ - Transform applied
121
+ - [PHASE] start → transform
122
+ - Reflect applied
123
+ - [PHASE] transform → reflect
124
+ - Evaluate applied
125
+ - [PHASE] reflect → evaluate
126
+ - Rewrite applied
127
+ - [PHASE] evaluate → rewrite
121
128
  ```
122
129
  ---
123
130
 
@@ -160,6 +167,11 @@ for name in ["simple", "reasoning", "full_chain"]:
160
167
  print(f"=== {name.upper()} ===")
161
168
  print(result["text"])
162
169
  ```
170
+
171
+ Note: Presets are *example chains*, not semantic models.
172
+ Operators are deterministic components; their meaning depends on the chain design.
173
+ `full_chain` is intentionally simple and does not represent a cognitive process.
174
+
163
175
  ---
164
176
 
165
177
  # Operator Anatomy
@@ -168,7 +180,7 @@ for name in ["simple", "reasoning", "full_chain"]:
168
180
  - receives the current ReasoningState
169
181
  - modifies state.text
170
182
  - appends to state.log
171
- - updates state.phase
183
+ - engine updates state.phase automatically based on the operator's phase transition rules
172
184
  - records an entry in state.history
173
185
 
174
186
  ### Example:
@@ -177,7 +189,7 @@ for name in ["simple", "reasoning", "full_chain"]:
177
189
  class ReflectOperator(Operator):
178
190
  phase = ("transform", "reflect")
179
191
 
180
- def run(self, state):
192
+ def run(self, state, **kwags):
181
193
  state.text = f"[REFLECT] {state.text}"
182
194
  state.log.append("Reflect applied")
183
195
  return state
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "mrs-core"
7
- version = "0.1.3"
7
+ version = "0.1.4"
8
8
  description = "MRS-Core: A deterministic modular reasoning engine."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes