Skip to content

Forward upstream PR #436#6

Merged
HKLHaoBin merged 3 commits into
feat-structured-merge-blockedfrom
forward/pr-436
Nov 30, 2025
Merged

Forward upstream PR #436#6
HKLHaoBin merged 3 commits into
feat-structured-merge-blockedfrom
forward/pr-436

Conversation

@HKLHaoBin

Copy link
Copy Markdown
Owner

Mirror of upstream PR 666ghj#436 for testing on feat-structured-merge-blocked.

birdinfuture and others added 3 commits November 30, 2025 16:57
…ture

Introduced a hybrid generation pipeline to optimize for both model capability and stability:

1. Dual-Track System:
   - Added `ModelCapabilityDiscriminator` to automatically detect model strength (e.g., gemini3-pro-preview vs qwen2.5-7b-instruct-1m).
   - Implemented `FastChapterGenerationNode` for strong models, enabling stateful, continuous generation with global context.
   - Retained the original divide-and-conquer strategy as a "Safe Lane" for weaker models or fallbacks.

2. Real-time Supervision:
   - Introduced `StreamSupervisor` with sliding window validation to monitor generation quality in real-time.
   - Added mechanisms to detect repetition loops and format collapses during long-context generation.

3. Adaptive Fallback:
   - Updated `ReportAgent` to dynamically switch tracks.
   - Implemented automatic fallback to Safe Lane if the Fast Track encounters critical errors.
@HKLHaoBin HKLHaoBin merged commit bc3f646 into feat-structured-merge-blocked Nov 30, 2025
@HKLHaoBin HKLHaoBin deleted the forward/pr-436 branch December 2, 2025 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants