[PR #2699] [CLOSED] serve: use active template instructions for recovery #4220

Closed
opened 2026-11-07 15:34:08 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/2699
Author: @allowq
Created: 10/15/2026
Status: ❌ Closed

Base: main ← Head: pr/active-template-recovery


📝 Commits (1)

  • dc061a6 serve: use active template instructions for recovery

📊 Changes

2 files changed (+147 additions, -3 deletions)

View changed files

📝 serve/server.py (+29 -3)
➕ serve/test_active_template_sentence.py (+118 -0)

📄 Description

Issue: Loop recovery misses instructions from a custom template

Follow up #728. Enabled reasoning-loop recovery searches for a bundled
instruction even when the active template emits a different instruction.

PR: Resolve recovery instructions from the active template

Resolve executed high/low instructions per Service and replace only the first
system instruction. Preserve generated IDs and bundled fallback.
The existing recovery option remains disabled by default.

Validation: serve.test_active_template_sentence; executed branches, computed
instructions, Service isolation, fallback and recovery.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/2699 **Author:** [@allowq](https://github.com/allowq) **Created:** 10/15/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `pr/active-template-recovery` --- ### 📝 Commits (1) - [`dc061a6`](https://github.com/Niko1221/Strata/commit/dc061a6f1a27d6d7a4f137c01c9e3ad53f1e5a3b) serve: use active template instructions for recovery ### 📊 Changes **2 files changed** (+147 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `serve/server.py` (+29 -3) ➕ `serve/test_active_template_sentence.py` (+118 -0) </details> ### 📄 Description # Issue: Loop recovery misses instructions from a custom template Follow up #728. Enabled reasoning-loop recovery searches for a bundled instruction even when the active template emits a different instruction. # PR: Resolve recovery instructions from the active template Resolve executed high/low instructions per Service and replace only the first system instruction. Preserve generated IDs and bundled fallback. The existing recovery option remains disabled by default. Validation: `serve.test_active_template_sentence`; executed branches, computed instructions, Service isolation, fallback and recovery. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:34:08 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#4220
No description provided.