SolsticeAI commited on
Commit
0eac63d
Β·
verified Β·
1 Parent(s): 0c76a22

feat: update templates/gemma.jinja with Protium-1.0 Objective-Gated Protocol

Browse files
Files changed (1) hide show
  1. templates/gemma.jinja +56 -79
templates/gemma.jinja CHANGED
@@ -1,32 +1,24 @@
1
- {%- set template_version = template_version if template_version is defined else "hypersynapse-sas-v3.0.0-soft-spectrum" %}
2
 
3
  {#- ========================================================================== -#}
4
- {#- HYPER SYNAPSE β€” SAS v3.0 "SOFT SPECTRUM" -#}
5
- {#- Solstice-AI Cognitive Architecture for Qwen3.8-family ChatML models. -#}
6
- {#- Render pipeline lineage: qwen3.8-froggeric-v22.5.0 (DavidAU, MIT). -#}
 
7
  {#- -#}
8
- {#- DESIGN CONTRACT (v3.0): -#}
9
- {#- 1. NO HARD BOUNDS. Every reasoning budget is a soft share of the model's -#}
10
- {#- own output ("roughly a third to half of your output"), elastic in both -#}
11
- {#- directions. Never a token quota. Never a word floor. Never a ceiling. -#}
12
- {#- 2. VARIABLE THINKING. Depth is continuous: any integer 10-100 maps onto -#}
13
- {#- the level spectrum. 0-9 remain legacy level numbers. Named levels, -#}
14
- {#- swarm modes, runtime kwargs and inline tags all resolve to one state. -#}
15
- {#- 3. ONE SOURCE OF TRUTH. Inline tags, {REASON:} / [MODE:] prefixes and -#}
16
- {#- the reasoning_effort / thinking_level kwargs all feed the SAME -#}
17
- {#- resolver (S1). Later signals in the conversation override earlier -#}
18
- {#- ones, so depth can be re-escalated mid-chat. -#}
19
- {#- 4. DEPTH-TOOL COUPLING. (a) With tools attached and NO explicit depth -#}
20
- {#- signal, depth auto-collapses to L4 (tool work wants discipline, not -#}
21
- {#- essays). (b) Two or more consecutive tool failures auto-escalate depth -#}
22
- {#- one band (capped at L7). Swarm/council modes are never auto-tuned. -#}
23
  {#- -#}
24
- {#- CANONICAL VOCABULARY: [L0]..[L9], 'swarm', 'council', integer 10-100. -#}
25
- {#- COMPAT ALIASES (resolve inward, documented below): ulow..amax, einstein, -#}
26
- {#- spoon, deep-research, i-prefixed silent modes, legacy think-tags. -#}
27
- {#- -#}
28
- {#- THE SPECTRUM (soft shares of total output, elastic both directions): -#}
29
- {#- [L0] Mortal - thinking off; answer directly. -#}
30
  {#- [L1] Hermes - rapid instinct. usually under ~10% of output. -#}
31
  {#- [L2] Apollo - crisp logic. roughly ~10-25% of output. -#}
32
  {#- [L3] Artemis - edge-case hunting. roughly ~20-40% of output. -#}
@@ -35,7 +27,7 @@
35
  {#- [L6] Solstice - deep derivation. roughly ~50-70% of output. -#}
36
  {#- [L7] Hyperion - first principles roughly ~60-85% of output. -#}
37
  {#- (default). -#}
38
- {#- [L8] Einstein - solo mastery. often most of the output. -#}
39
  {#- [L9] Oracle - proof-grade rigour. as much as genuine proof demands.-#}
40
  {#- swarm - 20-perspective divergent swarm, verdict line. -#}
41
  {#- council - adversarial research council, verdict line. -#}
@@ -43,12 +35,11 @@
43
  {#- CONTINUOUS DEPTH MAP (10-100): 1-14 L1 | 15-29 L2 | 30-44 L3 | 45-59 L4 | -#}
44
  {#- 60-69 L5 | 70-79 L6 | 80-89 L7 | 90-96 L8 | 97-100 L9 | 0 = off. -#}
45
  {#- -#}
46
- {#- INLINE SYNTAX (case-insensitive, stripped before the model sees them): -#}
47
- {#- think on/off/minimal/low/medium/high/xhigh/ultracode/extreme/max -#}
48
  {#- [L0]..[L9] | {REASON:level|name|number} | [MODE:level|name|number] -#}
49
- {#- Prefix 'i' = silent variant: {REASON:i8} runs L8 quality, thinking off. -#}
50
- {#- PRECEDENCE: default L7 < runtime kwarg (session baseline) < inline -#}
51
- {#- signals, last one in conversation order wins. -#}
52
  {#- ========================================================================== -#}
53
 
54
  {#- ------------------------------------------------------------------ -#}
@@ -194,82 +185,67 @@
194
  {#- ================================================================== -#}
195
 
196
  {%- set soft_budget_contract -%}
197
- REASONING BUDGET CONTRACT (SOFT β€” NEVER A HARD LIMIT):
198
- - Reasoning depth at this level is guided as a typical SHARE of your total output for this reply. The share is elastic in both directions: a trivial task may need far less than the guide, a genuinely hard task may need more.
199
- - Shares are calibration, not quotas. Never truncate real reasoning to stay under a share. Never pad, stall, or manufacture doubt to reach one.
200
- - Scale continuously with genuine complexity. Think exactly as long as thinking earns its place, then answer. Usefulness and correctness are the only true bounds.
 
 
201
  {%- endset %}
202
 
203
  {%- set terse_core -%}
204
- Never: open with preamble or pleasantries; restate the question; add filler transitions; hedge with niceties; or repeat a point you've already made.
205
- Always: keep essential steps, caveats, uncertainties, and specifics β€” never drop correctness or a needed warning for brevity. Use the least structure that conveys the answer. If a request is genuinely ambiguous, ask a sharp question, don't guess.
 
 
 
206
  {%- endset %}
207
 
208
  {%- set inst_hermes -%}
209
  Reasoning effort: Hermes β€” [L1] (rapid instinct).
210
- Mindset: high-velocity precision. One quick sanity pass over the core ask β€” spot-check the premise, the arithmetic, the syntax β€” then commit to the shortest verified route to the answer.
211
- Depth guide: keep visible reasoning to a light touch β€” usually under a tenth of your output, and near zero when the answer is obvious. Spend only what correctness demands.
212
  {%- endset %}
213
  {%- set inst_apollo -%}
214
- Reasoning effort: Apollo β€” [L2] (crisp logic and clarity).
215
- Mindset: transparent, disciplined deduction. Isolate constraints and givens, trace each premise to its implication, and eliminate ambiguity by choosing the most standard productive interpretation.
216
- Depth guide: compact and focused β€” roughly a tenth to a quarter of your output, tuned to how tangled the constraints actually are. Conclude as soon as the premise is validated.
217
  {%- endset %}
218
  {%- set inst_artemis -%}
219
- Reasoning effort: Artemis β€” [L3] (precision edge-case hunter).
220
- Mindset: boundary and failure-mode audit. Probe zero/negative/overflow conditions, null and empty states, concurrency collisions, off-by-one traps, and degenerate inputs before accepting any hypothesis; fortify what you find.
221
- Depth guide: measured scrutiny β€” roughly a fifth to two-fifths of your output, scaling with how many real edge surfaces the task has. Hunt hard, then close.
222
  {%- endset %}
223
  {%- set inst_athena -%}
224
- Reasoning effort: Athena β€” [L4] (strategic synthesis and balance).
225
- Mindset: architectural balance. Decompose the request into modular sub-tasks with explicit prerequisite chains; weigh genuine trade-offs (performance vs readability, latency vs throughput, simplicity vs flexibility) and justify the chosen path.
226
- Depth guide: balanced deliberation β€” roughly a third to half of your output, expanding with the number of real decision axes. Every step must produce valid input for the next.
227
  {%- endset %}
228
  {%- set inst_prometheus -%}
229
- Reasoning effort: Prometheus β€” [L5] (architectural forethought).
230
- Mindset: defensive engineering. Model second-order effects and failure modes before building: upstream crashes, malformed payloads, scale jumps, memory and cache pressure, technical debt. Integrate fault tolerance and graceful degradation into the design itself.
231
- Depth guide: systemic forethought β€” roughly two-fifths to three-fifths of your output, growing with blast radius and life-cycle stakes of the change.
232
  {%- endset %}
233
  {%- set inst_solstice -%}
234
  Reasoning effort: Solstice β€” [L6] (deep systemic derivation).
235
- Mindset: nothing on faith. Declare the foundational axioms, generate at least two fundamentally distinct approaches, analyse each on its merits, then red-team the leading hypothesis β€” actively seek counterexamples and boundary contradictions before tightening the final derivation.
236
- Depth guide: continuous deep derivation β€” roughly half to seventy percent of your output, stretching with proof depth. Full runway for formal traces; stop the moment certainty is reached.
237
  {%- endset %}
238
  {%- set inst_hyperion -%}
239
  Reasoning effort: Hyperion β€” [L7] (first-principles synthesis; default).
240
- Mindset: foundational synthesis. Decompose the problem to its root cause from first principles, stress-test the logic against every plausible path, adversarial input, and edge case, and document intermediate steps, considered alternatives, and rejected hypotheses as you go.
241
- Depth guide: majority-of-output reasoning β€” typically three-fifths to four-fifths of your reply, wholly elastic to real difficulty. No shortcuts while uncertainty remains; immediate closure once it doesn't.
242
  {%- endset %}
243
  {%- set inst_einstein -%}
244
- Reasoning effort: Einstein β€” [L8] (solo theoretical mastery).
245
- Mindset: breakthrough derivation in pure solo mode β€” radical first-principles intuition, lateral synthesis, and mathematical transcendence without persona clutter. Strip conventional dogma to the bare informational constraints; look for the elegant unified model that collapses multi-stage complexity into one coherent solution; carry every deduction to an unassailable conclusion including edge and asymptotic behaviour.
246
- Depth guide: reasoning commonly dominates the reply β€” often three-fifths to nine-tenths of output β€” but stays a guide, not a target: derive exactly as long as the theory demands, then deliver.
247
  {%- endset %}
248
  {%- set inst_oracle -%}
249
- Reasoning effort: Oracle β€” [L9] (proof-grade exhaustive rigour).
250
- Mindset: definitive authority. Decompose the problem to atomic constituents; verify every assumption, lemma, and invariant; systematically falsify each step against worst-case inputs and degenerate states; deliver the complete, finalized, proof-grade solution with total implementation completeness.
251
- Depth guide: unbounded by design β€” the reasoning may justly be the clear majority of the output, stretching as far as genuine proof demands and not one token further. Rigour is the only metric; padding is failure.
252
  {%- endset %}
253
  {%- set inst_swarm -%}
254
  Reasoning effort: Swarm β€” 20-perspective divergent swarm (specialized mode).
255
- Mindset: breakthrough problem solving through structured divergence and convergence.
256
- Phase 1 β€” Disassembly: strip the problem of conventional paradigms; isolate the bare informational core.
257
- Phase 2 β€” Perspective activation: internally simulate a divergent swarm of specialist voices β€” analytical logician, creative maverick, systems engineer, adversarial red-teamer, systems-dynamics modeller, algorithmic optimizer, human-factors critic, and kindred perspectives as the problem demands.
258
- Phase 3 β€” Cross-pollination: force creative collisions between the strongest divergent concepts; synthesize hybrids that resolve real tensions between speed, memory, cost, and correctness.
259
- Phase 4 β€” Convergence: solidify the highest-conviction breakthrough into a master-grade deliverable.
260
- Depth guide: the swarm fills as much of the output as genuine exploration earns β€” commonly the majority for open-ended challenges β€” with every phase sized freely by what the problem actually needs. No phase is ever trimmed short or artificially extended.
261
- Output contract: reason through the four phases, then close your reasoning and open the final answer with the line "[SWARM VERDICT]" followed by a one-paragraph synthesis naming the winning direction and the single strongest objection it survived.
262
  {%- endset %}
263
  {%- set inst_deep_swarm -%}
264
- Reasoning effort: Council β€” deep-swarm adversarial research council (specialized mode).
265
- Mindset: simulate an exhaustive multi-expert research institute and produce verified, proof-grade, definitive results.
266
- Protocol 1 β€” Calibration: rate the task's complexity honestly; set explicit domain boundaries and success criteria before any deliberation.
267
- Protocol 2 β€” Panel: assemble a compact council of complementary virtual specialists tailored to this prompt (domain principal, formal-methods critic, systems architect, security/compliance lead, final synthesizer).
268
- Protocol 3 β€” Adversarial deliberation: let the council debate, expose hidden assumptions, challenge lazy consensus, and trace proofs to their roots.
269
- Protocol 4 β€” Candidate matrix: formulate several genuinely distinct candidate architectures; score each on correctness, completeness, efficiency, and robustness; document the winning trade-off.
270
- Protocol 5 β€” Master deliverable: present the definitive result with clear structure and complete implementation.
271
- Depth guide: deliberation may justly occupy the bulk of the output for hard problems and shrink to a focused pass for easy ones β€” always governed by what verification actually requires, never by a quota.
272
- Output contract: deliberate through the five protocols, then open the final answer with the line "[COUNCIL VERDICT]" followed by the council's ruling, the decisive argument, and the loudest dissent the ruling overcame.
273
  {%- endset %}
274
 
275
  {#- ================================================================== -#}
@@ -607,7 +583,8 @@ Output contract: deliberate through the five protocols, then open the final answ
607
  {%- set _suppress_tools = _runtime_tool_protocol %}
608
  {%- endif %}
609
 
610
- {{- bos_token -}}\n{#- System emission: profile + soft contract + tools. -#}
 
611
  {%- if reasoning_instructions or _sc or (_has_tools and not _suppress_tools) %}
612
  {{- '<start_of_turn>system\n' }}
613
  {%- if reasoning_instructions %}
@@ -836,7 +813,7 @@ Output contract: deliberate through the five protocols, then open the final answ
836
  {%- set ns2.consecutive_failures = 0 %}
837
  {%- endif %}
838
  {%- if ns2.prev_role != 'tool' %}
839
- {{- '<start_of_turn>user\n' }}
840
  {%- endif %}
841
  {%- set _is_json_payload = (_tool_format == 'json' and content | trim | length > 0 and (content | trim)[:1] in ('{', '[')) %}
842
  {%- if not _is_json_payload and max_tool_response_chars > 0 and content | length > max_tool_response_chars %}
 
1
+ {%- set template_version = template_version if template_version is defined else "protium-v1.0.0-objective-gated" %}
2
 
3
  {#- ========================================================================== -#}
4
+ {#- PROTIUM-1.0 β€” OBJECTIVE-GATED COGNITIVE ARCHITECTURE -#}
5
+ {#- Solstice-AI Zero-Waste Protocol for High-Efficiency Reasoning Models -#}
6
+ {#- Named after Protium (1H): Zero Neutrons. Zero Dead Weight. Pure Thrust. -#}
7
+ {#- Lineage: qwen3.8-froggeric-v22.5.0 (DavidAU, MIT) -> Solstice-AI -#}
8
  {#- -#}
9
+ {#- CORE TENETS: -#}
10
+ {#- 1. TOKEN 1 TARGET ANCHOR: Lock the termination condition at step 1. -#}
11
+ {#- 2. FORWARD-ONLY SOLVE: Advance directly toward the target. Eliminate -#}
12
+ {#- conversational filler ("let's see", "hmm", "wait"). No rhetorical -#}
13
+ {#- hesitation; execute pure continuous deduction. -#}
14
+ {#- 3. EARLY EXIT GATE: Terminate thinking the instant the target condition -#}
15
+ {#- is satisfied and verified. Never dwell, stall, or manufacture doubt. -#}
16
+ {#- 4. DELTA-ONLY CORRECTION: Fix only the broken variable upon contradiction;-#}
17
+ {#- never regress into full restarts or circular overthinking loops. -#}
18
+ {#- 5. ABSOLUTE RESOLVE: Decisive, unhedged final delivery. Zero preamble. -#}
 
 
 
 
 
19
  {#- -#}
20
+ {#- THE SPECTRUM (soft share of output, elastic both directions): -#}
21
+ {#- [L0] Mortal - thinking off; execute directly. -#}
 
 
 
 
22
  {#- [L1] Hermes - rapid instinct. usually under ~10% of output. -#}
23
  {#- [L2] Apollo - crisp logic. roughly ~10-25% of output. -#}
24
  {#- [L3] Artemis - edge-case hunting. roughly ~20-40% of output. -#}
 
27
  {#- [L6] Solstice - deep derivation. roughly ~50-70% of output. -#}
28
  {#- [L7] Hyperion - first principles roughly ~60-85% of output. -#}
29
  {#- (default). -#}
30
+ {#- [L8] Einstein - theoretical mastery. dominates output when required. -#}
31
  {#- [L9] Oracle - proof-grade rigour. as much as genuine proof demands.-#}
32
  {#- swarm - 20-perspective divergent swarm, verdict line. -#}
33
  {#- council - adversarial research council, verdict line. -#}
 
35
  {#- CONTINUOUS DEPTH MAP (10-100): 1-14 L1 | 15-29 L2 | 30-44 L3 | 45-59 L4 | -#}
36
  {#- 60-69 L5 | 70-79 L6 | 80-89 L7 | 90-96 L8 | 97-100 L9 | 0 = off. -#}
37
  {#- -#}
38
+ {#- INLINE SYNTAX (case-insensitive, stripped before model sees them): -#}
 
39
  {#- [L0]..[L9] | {REASON:level|name|number} | [MODE:level|name|number] -#}
40
+ {#- [regular] | [vanilla] | [standard] | [default] -#}
41
+ {#- Prefix 'i' = silent variant: {REASON:i8} runs L8 rigor, thinking hidden. -#}
42
+ {#- PRECEDENCE: default L7 < runtime kwarg < inline signals (last wins). -#}
43
  {#- ========================================================================== -#}
44
 
45
  {#- ------------------------------------------------------------------ -#}
 
185
  {#- ================================================================== -#}
186
 
187
  {%- set soft_budget_contract -%}
188
+ PROTIUM OBJECTIVE-GATED REASONING CONTRACT:
189
+ 1. Target Anchor: At token 1, isolate the exact success condition β€” define what a verified, completed solution entails.
190
+ 2. Forward-Only Solve: Advance directly toward the target. Eliminate self-conversational chatter ("let's see", "hmm", "wait", "now let me check"). Discard rhetorical hesitation; execute continuous deductive steps.
191
+ 3. Early Exit Gate: The instant the target condition is met and verified, terminate thinking immediately and emit the final response. Never dwell, pad, or re-verify what has already been proven.
192
+ 4. Delta-Only Correction: If a contradiction or constraint violation is encountered, isolate and repair only the specific broken variable. Never regress into full restarts or circular overthinking loops.
193
+ 5. Absolute Resolve: Formulate a definitive, decisive conclusion without hedging, equivocating, or artificial disclaimers. Correctness and crisp utility are the only metrics.
194
  {%- endset %}
195
 
196
  {%- set terse_core -%}
197
+ Operational Directives:
198
+ - Zero preamble, pleasantries, or question restatements.
199
+ - Deliver direct, unhedged answers with maximum information density.
200
+ - Retain all essential mathematical, programmatic, and logical technical rigor.
201
+ - If genuine ambiguity exists, resolve it along the most probable engineering standard or ask one targeted clarifying question.
202
  {%- endset %}
203
 
204
  {%- set inst_hermes -%}
205
  Reasoning effort: Hermes β€” [L1] (rapid instinct).
206
+ Mindset: High-velocity execution. Rapid sanity check of premise, arithmetic, or syntax β€” then commit immediately to the shortest verified bridge to the conclusion. Conclude in a light single-digit share of output; zero when obvious.
 
207
  {%- endset %}
208
  {%- set inst_apollo -%}
209
+ Reasoning effort: Apollo β€” [L2] (disciplined deduction).
210
+ Mindset: Structured, transparent logic. Isolate given constraints, trace linear implications with zero detour, and exit thinking the instant premise validation is reached (typically 10-25% of output).
 
211
  {%- endset %}
212
  {%- set inst_artemis -%}
213
+ Reasoning effort: Artemis β€” [L3] (boundary & failure audit).
214
+ Mindset: Rigorous boundary validation. Audit null/empty states, numeric limits, concurrency hazards, off-by-one errors, and malformed inputs. Fortify against edge cases, then terminate thinking immediately (roughly 20-40% of output).
 
215
  {%- endset %}
216
  {%- set inst_athena -%}
217
+ Reasoning effort: Athena β€” [L4] (strategic architecture).
218
+ Mindset: Modular synthesis. Deconstruct requirements into structured sub-tasks with strict prerequisite dependency chains. Weigh concrete trade-offs (performance vs maintainability, latency vs throughput) and execute the optimal vector (roughly 30-50% of output).
 
219
  {%- endset %}
220
  {%- set inst_prometheus -%}
221
+ Reasoning effort: Prometheus β€” [L5] (defensive engineering).
222
+ Mindset: Second-order systemic modeling. Anticipate upstream crashes, payload corruption, scaling cliffs, memory footprints, and lifecycle debt. Embed fault tolerance and graceful degradation directly into the design (roughly 40-60% of output).
 
223
  {%- endset %}
224
  {%- set inst_solstice -%}
225
  Reasoning effort: Solstice β€” [L6] (deep systemic derivation).
226
+ Mindset: Axiomatic derivation. Establish fundamental invariants, formulate distinct candidate architectures, stress-test each against boundary constraints, and converge on the dominant derivation with zero assumptions taken on faith (roughly 50-70% of output).
 
227
  {%- endset %}
228
  {%- set inst_hyperion -%}
229
  Reasoning effort: Hyperion β€” [L7] (first-principles synthesis; default).
230
+ Mindset: Comprehensive first-principles synthesis. Decompose problems to atomic ground truths. Maintain continuous forward momentum across all proof surfaces. Immediate exit the instant resolution is achieved (typically 60-85% of output).
 
231
  {%- endset %}
232
  {%- set inst_einstein -%}
233
+ Reasoning effort: Einstein β€” [L8] (theoretical mastery).
234
+ Mindset: Invariant reduction and breakthrough synthesis. Strip peripheral complexity to the bare mathematical and informational core. Construct the unified invariant model that resolves multi-stage complexity into one cohesive, unassailable derivation.
 
235
  {%- endset %}
236
  {%- set inst_oracle -%}
237
+ Reasoning effort: Oracle β€” [L9] (proof-grade authority).
238
+ Mindset: Exhaustive formal verification. Atomic proofs, invariant proofs, complete edge falsification, and 100% complete implementation without placeholders. Think as long as genuine proof requires; close immediately once established.
 
239
  {%- endset %}
240
  {%- set inst_swarm -%}
241
  Reasoning effort: Swarm β€” 20-perspective divergent swarm (specialized mode).
242
+ Mindset: Four-phase convergent breakdown. Phase 1: Disassembly to core parameters. Phase 2: Divergent multi-angle simulation (logician, systems engineer, red-teamer, optimizer, critic). Phase 3: Cross-pollination and tension resolution. Phase 4: Convergence onto master deliverable.
243
+ Output contract: Conclude thinking and open final response with "[SWARM VERDICT]" followed by a decisive synthesis naming the winning vector and the primary objection survived.
 
 
 
 
 
244
  {%- endset %}
245
  {%- set inst_deep_swarm -%}
246
+ Reasoning effort: Council β€” adversarial research council (specialized mode).
247
+ Mindset: Five-protocol institutional deliberation. Protocol 1: Parameter calibration and success criteria. Protocol 2: Multi-specialist panel assembly. Protocol 3: Adversarial debate and stress-testing. Protocol 4: Trade-off scoring matrix. Protocol 5: Master architecture.
248
+ Output contract: Conclude thinking and open final response with "[COUNCIL VERDICT]" followed by the definitive ruling, key justification, and dissenting risk accounted for.
 
 
 
 
 
 
249
  {%- endset %}
250
 
251
  {#- ================================================================== -#}
 
583
  {%- set _suppress_tools = _runtime_tool_protocol %}
584
  {%- endif %}
585
 
586
+ {#- System emission: profile + soft contract + tools. -#}
587
+ {{- bos_token -}}
588
  {%- if reasoning_instructions or _sc or (_has_tools and not _suppress_tools) %}
589
  {{- '<start_of_turn>system\n' }}
590
  {%- if reasoning_instructions %}
 
813
  {%- set ns2.consecutive_failures = 0 %}
814
  {%- endif %}
815
  {%- if ns2.prev_role != 'tool' %}
816
+ {{- '<|im_start|>user' }}
817
  {%- endif %}
818
  {%- set _is_json_payload = (_tool_format == 'json' and content | trim | length > 0 and (content | trim)[:1] in ('{', '[')) %}
819
  {%- if not _is_json_payload and max_tool_response_chars > 0 and content | length > max_tool_response_chars %}