Skip to content

Rescue: paired, alternating OpenCode compaction on/off A/B evaluation - #82

Merged
sunilteja93 merged 6 commits into
mainfrom
feat/rescue-compaction-controlled-ab
Oct 18, 2026
Merged

sunilteja93 merged 6 commits into
mainfrom
feat/rescue-compaction-controlled-ab

Conversation

@sunilteja93

Copy link
Copy Markdown
Owner

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-evidence correctly 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 explicit compaction.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.

@sunilteja93
sunilteja93 merged commit f086f30 into main Oct 18, 2026
10 checks passed
@sunilteja93
sunilteja93 deleted the feat/rescue-compaction-controlled-ab branch October 18, 2026 20:51
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.

1 participant