Repository navigation
feat: add minimal scrub mode with environment deduplication - #19
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.
Add opt-in
MERIDIAN_OPENCODE_SCRUB_MODE=minimalwhile 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
40094cd9adaef32456befa54c1b969d611785395as authored cherryeddcf85a40701b94c6b95cfbe16b7cd644d57350with Author/AuthorDate intact. Separate maintainer correctiona2c479caddresses 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.