Spaces:
Sleeping
Sleeping
Commit ·
22c5fb7
1
Parent(s): 7953c39
R3.2.8.6-R1.1 Research-Logic Reasoning-Only Recovery (#28)
Browse files- R3.2.8.6-R1.1 Research-Logic Reasoning-Only Recovery (2047137525b0a50e1d30915002d59e98e859e57b)
1271 unmodified lines12721273127412751276127712781279128012811271 unmodified lines{evidence_block}{mode_directive}Return a concise PROVISIONAL RESEARCH LOGIC CONTRACT in plain English prose. It must guide later sections without fixing an expected result or conclusion. Do not use citations in the contract."""return self.stream_deepseek(sys_prompt, user_prompt, max_tokens=2200,model_role="reasoning", thinking=True, allow_fallback=False,)@staticmethoddef _front_matter_keywords(value, minimum=4, maximum=6):1271 unmodified lines1272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131271 unmodified lines{evidence_block}{mode_directive}Return a concise PROVISIONAL RESEARCH LOGIC CONTRACT in plain English prose. It must guide later sections without fixing an expected result or conclusion. Do not use citations in the contract."""def _stream_with_reasoning_exhaustion_recovery():try:yield from self.stream_deepseek(sys_prompt,user_prompt,max_tokens=2200,model_role="reasoning",thinking=True,allow_fallback=False,reasoning_only_recovery=True,)returnexcept DeepSeekReasoningOnlyExhaustionError as exc:logging.warning("Research logic reasoning-only exhaustion; retrying once with thinking disabled: %s",exc,)self._touch_execution_progress("research_logic_direct_recovery")recovery_system = (sys_prompt+ "\n\nRECOVERY MODE: Produce the final provisional research logic contract directly. ""Do not perform extended hidden reasoning. Preserve the original topic, literature synthesis, ""research evidence, uncertainty, evidence-strength boundaries, and mode-specific planning constraints. ""Do not invent findings, coefficients, causal claims, or facts.")yield from self.stream_deepseek(recovery_system,user_prompt,max_tokens=2200,model_role="reasoning",thinking=False,allow_fallback=False,)return _stream_with_reasoning_exhaustion_recovery()@staticmethoddef _front_matter_keywords(value, minimum=4, maximum=6):
core/pipeline_agent.py+36-4