zrb 1.9.16__py3-none-any.whl → 1.9.17__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.
zrb/config/llm_config.py CHANGED
@@ -49,18 +49,29 @@ _DEFAULT_SYSTEM_PROMPT = (
49
49
  "Markdown.\n\n"
50
50
  "1. **Plan:** Internally devise a step-by-step plan. This plan MUST "
51
51
  "include verification steps for each action.\n\n"
52
- "2. **Execute and Verify (The E+V Loop):**\n"
52
+ "2. **Assess and Decide:** Before executing, you MUST evaluate the risk of "
53
+ "your plan. For any destructive actions (modifying or deleting data), "
54
+ "consider the command's nature and target. Based on your assessment, "
55
+ "decide the appropriate course of action:\n"
56
+ " * **Low/Moderate Risk:** Proceed directly.\n"
57
+ " * **High Risk:** Refuse to execute, state your plan, and explain "
58
+ "the risk to the user.\n"
59
+ " * **Extreme Risk (e.g., operating on critical system files):** "
60
+ "Refuse and explain the danger.\n\n"
61
+ "3. **Execute and Verify (The E+V Loop):**\n"
53
62
  " * Execute each step of your plan.\n"
54
63
  " * **CRITICAL:** After each step, you MUST use a tool to verify "
55
- "the outcome (e.g., check exit codes, read back file contents, check "
56
- "system state).\n\n"
57
- "3. **Report Final Outcome:**\n"
64
+ "the outcome (e.g., check exit codes, read back file contents).\n\n"
65
+ "4. **Report Final Outcome:**\n"
58
66
  " * Provide a concise summary of the result.\n"
59
- " * **You MUST explicitly state how you verified the final state** "
60
- "(e.g., 'The script was executed, and I verified its success by checking "
61
- "for the presence of the output file `results.txt`.').\n"
67
+ " * **You MUST explicitly state how you verified the final state**.\n"
62
68
  " * If an error occurred, report the error and the failed "
63
- "verification step."
69
+ "verification step.\n\n"
70
+ "---\n"
71
+ "**FINAL REMINDER:** Your last step before responding MUST be to ensure "
72
+ "you have followed the Execute and Verify (E+V) loop. If you are about "
73
+ "to claim an action was taken, you MUST have already completed the "
74
+ "corresponding verification tool call. Do not hallucinate verifications."
64
75
  ).strip()
65
76
 
66
77
  _DEFAULT_SPECIAL_INSTRUCTION_PROMPT = (
@@ -135,24 +146,27 @@ _DEFAULT_SUMMARIZATION_PROMPT = (
135
146
 
136
147
 
137
148
  _DEFAULT_CONTEXT_ENRICHMENT_PROMPT = (
138
- "You are a Memory Curator. Your sole purpose is to produce a concise, "
139
- "up-to-date Markdown block of long-term context.\n\n"
149
+ "You are a ruthless Memory Curator. Your only goal is to produce a "
150
+ "dense, concise, and up-to-date Markdown block of long-term context. "
151
+ "You MUST be aggressive in your curation to keep the context small.\n\n"
140
152
  "You will be given the `Previous Long-Term Context` and the `Recent "
141
153
  "Conversation History`. Your job is to return a NEW, UPDATED version of "
142
- "the `Long-Term Context` by applying these rules:\n\n"
143
- "**Curation Heuristics:**\n"
144
- "- **Extract Stable Facts:** Identify durable information such as user "
145
- "preferences (e.g., 'I prefer tabs over spaces'), project-level "
154
+ "the `Long-Term Context` by following these rules:\n\n"
155
+ "**Curation Rules (You MUST follow these):**\n"
156
+ "1. **Integrate, Don't Append:** You MUST merge new facts from the "
157
+ "`Recent Conversation History` into the `Previous Long-Term Context`. "
158
+ "Rewrite existing facts to incorporate new details. DO NOT simply "
159
+ "append new information at the end.\n"
160
+ "2. **Discard Ephemeral Details:** You MUST delete temporary states, "
161
+ "resolved errors, one-off requests, and conversational filler (e.g., 'Okay, "
162
+ "I will do that now'). The context should be a snapshot of the current "
163
+ "project state and user preferences, not a log.\n"
164
+ "3. **Retain Stable Facts:** You MUST retain durable information such as "
165
+ "user preferences (e.g., 'I prefer tabs over spaces'), project-level "
146
166
  "decisions, or architectural choices.\n"
147
- "- **Integrate, Don't Just Append:** Update existing facts if new "
148
- "information overrides them. Merge related facts to keep the context "
149
- "dense.\n"
150
- "- **Discard Ephemeral Details:** Omit temporary states, resolved "
151
- "errors, and one-off requests that do not reflect a permanent preference "
152
- "or project state.\n"
153
- "- **Mark Dynamic Info:** For temporary information that must be "
154
- "retained (e.g., CWD, contents of a file being actively edited), you "
155
- "MUST add a note: `(short-term, must be re-verified)`."
167
+ "4. **Mark Dynamic Info:** For temporary information that is critical to "
168
+ "retain (e.g., CWD, the name of a file being actively edited), you MUST "
169
+ "add a note: `(short-term, must be re-verified)`."
156
170
  ).strip()
157
171
 
158
172
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: zrb
3
- Version: 1.9.16
3
+ Version: 1.9.17
4
4
  Summary: Your Automation Powerhouse
5
5
  Home-page: https://github.com/state-alchemists/zrb
6
6
  License: AGPL-3.0-or-later
@@ -218,7 +218,7 @@ zrb/cmd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
218
218
  zrb/cmd/cmd_result.py,sha256=L8bQJzWCpcYexIxHBNsXj2pT3BtLmWex0iJSMkvimOA,597
219
219
  zrb/cmd/cmd_val.py,sha256=7Doowyg6BK3ISSGBLt-PmlhzaEkBjWWm51cED6fAUOQ,1014
220
220
  zrb/config/config.py,sha256=UpVm_IFD_bSfGS-QJoRo86xV63eGIuIwWICMaUZgR00,15268
221
- zrb/config/llm_config.py,sha256=YxMV_rRY8SU57aq4xlRiMm223yMzfQUzADmqAyoNRTI,17415
221
+ zrb/config/llm_config.py,sha256=co3E0o7314zOIM9IlDrfkkFb-Oyjf-onSJps2kZdZMY,18477
222
222
  zrb/config/llm_rate_limitter.py,sha256=0U0qm4qgCWqBjohPdwANNUzLR3joJCFYr6oW6Xpccfo,4436
223
223
  zrb/config/web_auth_config.py,sha256=_PXatQTYh2mX9H3HSYSQKp13zm1RlLyVIoeIr6KYMQ8,6279
224
224
  zrb/content_transformer/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -393,7 +393,7 @@ zrb/util/todo.py,sha256=r9_KYF2-hLKMNjsp6AFK9zivykMrywd-kJ4bCwfdafI,19323
393
393
  zrb/util/todo_model.py,sha256=hhzAX-uFl5rsg7iVX1ULlJOfBtblwQ_ieNUxBWfc-Os,1670
394
394
  zrb/xcom/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
395
395
  zrb/xcom/xcom.py,sha256=o79rxR9wphnShrcIushA0Qt71d_p3ZTxjNf7x9hJB78,1571
396
- zrb-1.9.16.dist-info/METADATA,sha256=mDFOvi0SF15P4y4BKlynOsHZrQJClrZC2dNeTB-Xzz0,9778
397
- zrb-1.9.16.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
398
- zrb-1.9.16.dist-info/entry_points.txt,sha256=-Pg3ElWPfnaSM-XvXqCxEAa-wfVI6BEgcs386s8C8v8,46
399
- zrb-1.9.16.dist-info/RECORD,,
396
+ zrb-1.9.17.dist-info/METADATA,sha256=RcwXXgQuNQOczzFbcORss-JxOieSRGxiAcqEmigI9xo,9778
397
+ zrb-1.9.17.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
398
+ zrb-1.9.17.dist-info/entry_points.txt,sha256=-Pg3ElWPfnaSM-XvXqCxEAa-wfVI6BEgcs386s8C8v8,46
399
+ zrb-1.9.17.dist-info/RECORD,,
File without changes