feat(harness/shadow): scaffold differential-testing harness (RC3 R3.9)#136
Merged
Conversation
Scaffold the RC3 R3.9 shadow-mode harness: corpus loader (TXTAR), pure Compare(a, b) diff with epsilon tolerances, CLI binary that hits cerberus over HTTP for the native side and calls an OracleProvider interface for the reference side. Oracle is stubbed (noopOracle returning ErrOracleSkipped) until R3.10 lands internal/promshim/local/. Adds a 7-query smoke corpus, a `just shadow-mode` recipe, and a workflow_dispatch-only GitHub workflow. The harness exits cleanly when CERBERUS_URL is unset under prefer-native (records native errors per query) and exits 3 when an oracle is required but missing. Touches nothing under internal/. No raw SQL strings — the harness consumes cerberus's HTTP API. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- gofumpt: collapse aligned struct field column widths in main.go - gosec G304: nolint with reason for os.Open/os.Create on CLI-arg paths - gosec G704: nolint with reason for http.NewRequest/Do on CLI-arg URL - errcheck: wrap Close() in deferred funcs to satisfy errcheck Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Align table pipes and add code-fence languages. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
369e449 to
a7c93c5
Compare
4 tasks
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.
Summary
harness/compatibility/shadow/subtree: differ + corpus loader + CLI scaffold..github/workflows/shadow-mode.yml(manual dispatch only — full activation gated on R3.10 oracle landing).shadow-moderecipe.Test plan
go test ./harness/compatibility/shadow/...passes.just shadow-mode CORPUS=harness/compatibility/shadow/corpus/smoke.txtbuilds and runs against a running cerberus (or fails gracefully ifCERBERUS_URLunset).Roadmap: docs/roadmap.md § RC3 R3.9. Oracle: R3.10.