Skip to content

feat: add minimal scrub mode with environment deduplication - #19

Merged
rynfar merged 2 commits into
mainfrom
codex/backlog-minimal-mode-5-20261001
Oct 1, 2026
Merged

rynfar merged 2 commits into
mainfrom
codex/backlog-minimal-mode-5-20261001

Conversation

@rynfar

@rynfar rynfar commented Oct 1, 2026 •

Copy link
Copy Markdown
Owner

Add opt-in MERIDIAN_OPENCODE_SCRUB_MODE=minimal while keeping aggressive defaults unchanged. Minimal removes known identity/runtime fingerprints and duplicate environment preambles, preserves client cwd/project/persona policy, and avoids a generic identity and residual brand rewriting. Restore current main's passthrough guards, OMO fixes, package metadata and newline handling during reconciliation.

Preserve briankeefe's actual source commit 40094cd9adaef32456befa54c1b969d611785395 as authored cherry eddcf85a40701b94c6b95cfbe16b7cd644d57350 with Author/AuthorDate intact. Separate maintainer correction a2c479c addresses the owner's existing review: the authored minimal function reproduced a retained environment preamble, which the corrected tests remove while retaining cwd.

Validation: 28 tests / zero failures; standalone typecheck, build, dry-run pack and two-fixture byte-identical aggressive default comparison. Independently installed packed plugin passes actual headless OpenCode 1.18.33 / Opus 5.5 / SDK 0.2.141 / Claude Code 2.1.284 on macOS arm64 in both modes: one actual read each, random client-only tool receipt reaches SDK, same-session continuation, zero client errors and four scrub invocations / zero errors. Maintained headless harness and durable results/limits included. Original contributor failing client/model omitted; live OMO and universal billing remedy are not claimed. No package publication or version bump.

Incorporates #5. Final-head build CI passed (tests, build and pack). The final escrowed minimal harness also passed after removing unrelated fixture branches.

@rynfar
rynfar merged commit 77316d2 into main Oct 1, 2026
1 check passed
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