Skip to content

fix(harness): forward run flags to plugin subprocesses - #324

Merged
eddie-knight merged 1 commit into
privateerproj:mainfrom
julianvance242:fix/forward-run-flags
Oct 5, 2026
Merged

eddie-knight merged 1 commit into
privateerproj:mainfrom
julianvance242:fix/forward-run-flags

Conversation

@julianvance242

Copy link
Copy Markdown
Contributor

Fixes #323

pvtr run read --write-directory, --output, --write and --include-payload into its own config but launched plugins with only --config, --loglevel and --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 channel queueCmd already uses for PVTR_BINARIES_PATH. Env rather than 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 ignores the variables. The resolved values already encode flag > env > config.yml precedence on the harness side, and TestReadConfig_HyphenatedKeyViaUnderscoredEnv covers the plugin side picking them up.

Backward compatibility: no exported API change; older plugins keep their current behavior.

🤖 Generated with Claude Code

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>
@github-actions github-actions Bot added the fix label Oct 5, 2026
@jmeridth jmeridth added release and removed release labels Oct 5, 2026
@eddie-knight
eddie-knight merged commit ba68a30 into privateerproj:main Oct 5, 2026
5 checks passed
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: pvtr run does not forward --write-directory / --output to plugins

3 participants