# Pwn AI Agent Turnfinalizer

> Drive PWN::AI::Agent::TurnFinalizer from pwn_eval.

- Skill: `0dayinc/pwn-ai-agent-turnfinalizer` (Agent Skill)
- Install (CLI): `npx get-skill add 0dayinc/pwn-ai-agent-turnfinalizer`
- Raw SKILL.md: https://api.skillmd.com/api/skills/0dayinc/pwn-ai-agent-turnfinalizer/raw
- Safety review: pending (external: skill-scanner PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- License: MIT
- Author: 0dayInc (https://skillmd.com/u/0dayinc)
- Updated: 2026-11-19
- Page: https://skillmd.com/skills/0dayinc/pwn-ai-agent-turnfinalizer

---


# PWN::AI::Agent::TurnFinalizer

agent-style post-reply learning. Loop.run returns the user-visible answer first; Reward / Policy / Curriculum keep running off that path. User-visible turn (Loop.run) tools, streaming, TaskSummarizer, final text After the reply is already decided TurnFinalizer.defer -> daemon thread re-attaches the R5 episode snapshot Learning.auto_introspect (critic, Reward.judge, PRM, HER, reflect) Default ON during Loop.run (PWN::Env[:ai][:agent][:defer_introspect]). Direct Learning.auto_introspect calls (specs, cron, tools) stay inline so existing ORM contracts still get a synchronous return value.

## When to use

Call `PWN::AI::Agent::TurnFinalizer` from `pwn_eval` when the task needs this module.
Do not reimplement it in shell.

## Methodologies

Generated from `pwn/ai/agent/turn_finalizer.rb`. Prefer the public class methods below.
Class methods take `(opts = {})` and read `opts`.

## How to call

```ruby
PWN::AI::Agent::TurnFinalizer.help
PWN::AI::Agent::TurnFinalizer.enter_user_path(opts)
```

## Public methods

- `enter_user_path`
- `leave_user_path`
- `user_path`
- `should_defer`
- `defer`
- `finalize`
- `join_all`
- `pending`
- `commit_artifacts`
- `required_artifacts`
- `output_paths`
- `artifact_snapshot`
- `observe_artifacts`
- `arbitrate`
- `evidence_ledger`
- `evidence_satisfied`
- `authors`
- `help`
- `commit_artifacts!`
- `enter_user_path!`
- `evidence_satisfied?`
- `join_all!`
- `leave_user_path!`
- `should_defer?`
- `user_path?`

## Source

`pwn/ai/agent/turn_finalizer.rb`

## Verification

`PWN::AI::Agent::TurnFinalizer.respond_to?(:enter_user_path)` after the
module is loaded. Read the source for parameter names.

