Skip to main content

goal_passthrough

The unattacked direct-prompt baseline optimizer for superred.

GoalPassthroughOptimizer performs no attack. On each run it injects the adversarial Goal.description verbatim, exactly once, into the first user-facing controllable, then ends the run. It is the zero-attack reference point in an attacker sweep: it answers "what does the target do when simply asked the harmful question, with no jailbreak?"

Behaviour

Event Response
RunStartEvent acknowledge; arm the single injection for this run
first ControllablePreCallEvent (non-system_prompt) ControllableInjection(value=goal.description)
subsequent ControllablePreCallEvent ControllableNoInjection (single-turn)
ControllablePostCallEvent ControllableNoInjection (never edits responses)
RunEndEvent RunEndResponse(done=True) (one attempt per task)

The system_prompt controllable is always declined, so a benchmark Task that pre-sets the system prompt via configure_target keeps it intact. The baseline only fills the user-message channel.

Properties

  • No LLM use. It never calls the LLMClient, so it spends none of the per-task budget and is invariant to the attacker-model dimension.
  • Scope-robust. It locks onto the first non-system_prompt controllable it sees, so it works against any chatbot-style target regardless of how the user-message controllable is named.
  • Zero config. Constructs with no arguments, like every superred optimizer.

Install

pip install -e optimizers/goal_passthrough
from goal_passthrough_optimizer import GoalPassthroughOptimizer

Credits / upstream

This module is original work of the superred project, released under the MIT License (see LICENSE). It contains no third-party code, no bundled datasets, and does not reimplement or port any external paper method. Its only dependency is the superred framework itself.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

superred_optimizer_goal_passthrough-0.1.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file superred_optimizer_goal_passthrough-0.1.0.tar.gz.

File metadata

File hashes

Hashes for superred_optimizer_goal_passthrough-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a978e22b6c11b15ade54ec2b2f96f2ed8c0ce44718c95de3bd4cbde35648a4f0
MD5 db28ea98f75f79d2be1389e9a7dd81b7
BLAKE2b-256 ea4fe21f08511537ff5050072ef3b60d4269076b10414878355f2b85f4ca7741

See more details on using hashes here.

Provenance

The following attestation bundles were made for superred_optimizer_goal_passthrough-0.1.0.tar.gz:

Publisher: release.yml on RoldSI/superred-modules

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file superred_optimizer_goal_passthrough-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for superred_optimizer_goal_passthrough-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2faa7a9822a5dc14f5df4c00258f702d7d57acbe1e46ffeb7ef667cd89c580e8
MD5 a94b6fc07597e8be8061eb43889c68f0
BLAKE2b-256 09d26d67aaa4c55bb22c213391f390d3d6857d058a4e0b96d0c30e9f976d91f3

See more details on using hashes here.

Provenance

The following attestation bundles were made for superred_optimizer_goal_passthrough-0.1.0-py3-none-any.whl:

Publisher: release.yml on RoldSI/superred-modules

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page