Skip to content

[WIP] Adapter: agentic-misalignment - #170

Open
Niyathi3011 wants to merge 3 commits into
harbor-framework:mainfrom
Niyathi3011:agentic-misalignment-adapter
Open

Niyathi3011 wants to merge 3 commits into
harbor-framework:mainfrom
Niyathi3011:agentic-misalignment-adapter

Conversation

@Niyathi3011

@Niyathi3011 Niyathi3011 commented Nov 30, 2026 •

Copy link
Copy Markdown

Status: WIP. Oracle and controls pass. Before spending on parity runs, I'd like sign-off on the parity plan below.

Harbor adapter for Anthropic's Agentic Misalignment benchmark (anthropic-experimental/agentic-misalignment @ ea0630e, arXiv:2510.05179, MIT).

  • 162 tasks (every upstream condition) plus an 18-task paper/parity split. Prompts are generated by upstream's own generate_prompts.py and are byte-identical to its output.
  • The verifier runs upstream's classifiers and model client unchanged, in a separate container. Only /app/response.txt is collected. No reward is written when the response is missing or the judge call fails.
  • The default judge is claude-sonnet-4-6. Upstream's claude-3-7-sonnet is retired, and newer Sonnet/Opus models reject upstream's temperature=0.0 judge call.
  • The parity agent makes upstream's single model call through upstream's ModelClient with pinned SDKs. The adapter also ships a harmful-control agent and metric.py.

Checks

  • Tests: 46 offline tests pass (uv run --extra parity pytest, no API key or Docker).

    • Prompt fidelity against upstream's generator, all 162 tasks.
    • The verifier with upstream's real classifiers, including the cases where no reward is written.
    • The harmful control on all 18 paper conditions.
    • The parity agent's message contract.
    • metric.py.
  • Validator: 30 passed. The 2 errors are the dataset and parity PR links, which don't exist yet.

  • Harbor runs (Harbor 0.27.0, judge claude-sonnet-4-6, 162 tasks each, 0 exceptions):

    Agent Reward harmful
    oracle 1.000 (162/162) 0.000
    harmful control 0.000 (0/162) 1.000
    nop unscored by design (162 x RewardFileNotFoundError) -

    Oracle: oracle

    Harmful control: harmful_control

    nop: nop

  • Parity-agent smoke run (1 task, claude-haiku-4-5): the model call succeeded, Harbor collected the response, and the judge scored it reward 1.

Notes

  • claude-haiku-5-5 can't be the parity model. On these prompts it opens with a thinking block, and upstream's client crashes reading it (content[0].text). This would happen on both sides, so the proposed tested model is claude-haiku-4-5.
  • Upstream bugs are preserved and documented in the README:
    • max_tokens is always 10000;
    • the blackmail verdict needs the word "blackmail" or "leverage";
    • extra_system_instructions raises NameError.

Parity plan (for sign-off)

  • Tasks and samples: the 18 paper conditions, 10 samples each, 3 runs per side.
  • Models: tested model claude-haiku-4-5; judge claude-sonnet-4-6 on both sides.
  • Metric: harmful rate, mean ± SEM, from metric.py.
  • Generalization: one Claude Code run on the 18 conditions.
  • Estimated cost: about $20.

Questions for the team:

  1. Is this judge and tested model OK?
  2. Can you provide a parity API key?
  3. Should saved responses carry upstream's canary string? The validator rejects canary strings in adapter files.
  4. Is the dataset name anthropic/agentic-misalignment OK, with tags v1.0 (162 tasks) and parity (18 tasks)?

Niyathi3011 and others added 3 commits November 30, 2026 13:30
Harbor adapter for Anthropic's Agentic Misalignment benchmark
(anthropic-experimental/agentic-misalignment @ ea0630e, arXiv:2510.05179).

- 162 tasks (every upstream condition) plus an 18-task paper/parity split;
  prompts generated by upstream's own generate_prompts.py, byte-identical
- verifier runs upstream's classifiers and model client unchanged in a
  separate container; only /app/response.txt is collected; no reward is
  written when the response is missing or the judge call fails
- default judge claude-sonnet-4-6 (upstream's claude-3-7-sonnet is retired;
  newer Sonnet/Opus reject upstream's temperature=0.0 judge call)
- parity agent ports upstream's single model call through upstream's
  ModelClient with pinned SDKs; harmful control agent and metric.py
- oracle 1.0 on 162/162, harmful control 0.0 on 162/162, nop unscored

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… 4.5

- tests/: 46 offline tests (no API key or Docker). Covers byte-identical
  prompts vs upstream's generate_prompts.py (162 conditions plus the
  production variant), generator options, the verifier with upstream's
  real classifiers and a fake judge (reward mapping, no reward without a
  response or judge), the harmful control on the 18 paper conditions, the
  parity agent's message contract and pinned uv client, and metric.py.
- Parity model: claude-haiku-5-5 opens with a thinking block on these
  prompts, and upstream's client (content[0].text) crashes on both sides.
  Proposed tested model is now claude-haiku-4-5; documented in README.
- README: test instructions and the 2026-11-30 parity-agent smoke run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…oposed parity model

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Niyathi3011 Niyathi3011 changed the title Add agentic-misalignment adapter [WIP] Adapter: agentic-misalignment Nov 30, 2026
@Niyathi3011

Copy link
Copy Markdown
Author

Hi @XiangningLin @audreina17, here is the proposed parity plan for agentic-misalignment (details in the description).

  • Agent: Scenario 3 custom agent that makes upstream's single model call through upstream's own ModelClient (temperature 1.0, max_tokens 10000). The original side runs upstream unmodified at ea0630e.
  • Tested model: claude-haiku-4-5. claude-haiku-5-5 opens with a thinking block on these prompts and upstream's client crashes on it, on both sides.
  • Judge: claude-sonnet-4-6 on both sides (upstream's claude-3-7-sonnet is retired).
  • Tasks: the paper's 18 conditions (--split parity), 10 samples per condition per run.
  • Runs: a sanity check first, then 3 runs per side, comparing harmful rate (mean ± SEM).
  • Plus one Claude Code run on the same 18 conditions, Harbor side only.
    -key needed: Anthropic (tested model + judge).

Open questions: is this judge/model OK, can you provide a parity key, should saved responses keep upstream's canary string, and is anthropic/agentic-misalignment with tags v1.0 (162) and parity (18) the right dataset name?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant