Repository navigation
Rescue: paired, alternating OpenCode compaction on/off A/B evaluation - #82
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Grounded motivation
Existing user field receipts at declared 4K: 2/2 baseline OpenCode sessions timed out after providing correct fix evidence; 3/3 opt-in compaction-disabled sessions passed, durations 28.43s/22.36s/10.21s. Offline
rescue-evidencecorrectly marks this as repeated but not causally verified, especially because early baseline receipts predate the compaction policy field.Controlled next experiment
Add an opt-in
llmrig rescue --agent opencode --model MODEL --context 4096 --compaction-ab --compaction-repeats 1 --agent-timeout 90 --ab-budget 600 --output REPORT.json. For each of the three versioned read-only coding fixtures, launch fresh OpenCode sessions with the same model, declared context, prompt, budget and permissions; alternate baseline unspecified/default compaction vs explicitcompaction.auto: false, in AB/BA order. Uses 6 sessions by default, up to 18 across repeats 1–3. Reserve both full per-session timeouts before launching a pair, or mark experiment incomplete. Stop on tool/file integrity boundary violation.Report structural per-trial evidence (strict passes, fix evidence, exits, timeouts, rubric-only misses, privacy-safe event counters) with condition/pair order and explicitly exploratory observed differences. No raw model text, secrets, paths, persistent OpenCode config changes or auto-repair. No running model unless explicit CLI opt-in.
Caveats
A/B ordering does not prove causality or generalize to long tasks. No direct OpenCode compaction event or Ollama per-request context measurement. Disabling compaction globally may cause context-window exhaustion. Always
no_automatic_or_global_compaction_change.Unit tests cover pair order, exact config diff, budget/timeout fairness, safety stop, CLI routing, mutual exclusion. Require all CI and CodeQL checks green before merge.