Repository navigation
fix(harness): forward run flags to plugin subprocesses - #324
Merged
eddie-knight merged 1 commit intoOct 5, 2026
Merged
Conversation
pvtr run read --write-directory, --output, --write and --include-payload into its own config but launched plugins with only --config, --loglevel and --service, so plugins fell back to their defaults and wrote YAML to ./evaluation_results regardless of what the user passed. Hand the harness-resolved values to the plugin through PVTR_* env vars, the same channel queueCmd already uses for PVTR_BINARIES_PATH. Env is preferred over extra flags because a plugin built on a pre-v1.26 SDK does not register --output or --include-payload and would fail on an unknown flag, whereas it simply ignores the variables. Fixes privateerproj#323 Signed-off-by: Julian Vance <julianvance242@gmail.com>
jmeridth
approved these changes
Oct 5, 2026
jmeridth
added a commit
to privateerproj/pvtr
that referenced
this pull request
Oct 5, 2026
What/Why Pick up the SDK fix that forwards run flags to plugin subprocesses (privateerproj/privateer-sdk#324). Also pulls go-gemara v0.11.0 and grc-store-protocol v0.17.0 transitively. Proof it works make test, make binary, and golangci-lint run all pass. Risk Low. Patch bump of the SDK. grc-store-protocol jumps ten minors, but it is indirect and pvtr does not call it. AI role Claude Opus 5.5 ran the bump, verification, and drafted this message. Human review pending. Review focus Whether the grc-store-protocol 0.7 -> 0.17 jump affects plugins that talk to a GRC store. Signed-off-by: jmeridth <jmeridth@gmail.com>
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.
Fixes #323
pvtr runread--write-directory,--output,--writeand--include-payloadinto its own config but launched plugins with only--config,--logleveland--service. Plugins therefore fell back to their defaults and wrote YAML to./evaluation_results/<service>/whatever the user passed.This forwards the harness-resolved values through
PVTR_*env vars, the channelqueueCmdalready uses forPVTR_BINARIES_PATH. Env rather than flags because a plugin built on a pre-v1.26 SDK does not register--outputor--include-payloadand would fail on an unknown flag, whereas it ignores the variables. The resolved values already encode flag > env > config.yml precedence on the harness side, andTestReadConfig_HyphenatedKeyViaUnderscoredEnvcovers the plugin side picking them up.Backward compatibility: no exported API change; older plugins keep their current behavior.
🤖 Generated with Claude Code