rnd-outside-viewlisted
Install: claude install-skill oleksify/rnd-framework
# Outside View
A reference-class injection mechanism that runs DuckDB stats over the historical session corpus, formats per-shape FAIL rates into a markdown block, and injects that block into the Planner spawn prompt during Phase 1 of `rnd-start`. The block is read by the Planner before any estimation so the Planner sees historical base rates first.
## Overview
The outside-view mechanism fires once per `rnd-start` session, in the Phase 1 pre-step that runs AFTER the premortem fan-out and BEFORE the Planner spawn. It has no user-visible trigger — it is wired automatically into the orchestrator flow.
When invoked, `lib/outside-view.sh` queries `lib/stats/per_shape_fail_rate.sql` against the historical `.rnd` corpus, formats the results into a `## Outside View (Reference Class)` markdown block, writes that block to `$RND_DIR/outside-view.md`, and emits it on stdout so the orchestrator can capture it as `$OUTSIDE_VIEW_BLOCK`. The block is then appended to the Planner spawn prompt.
`lib/outside-view-emit.sh` appends one `outside_view_injected` audit event to `$RND_DIR/audit.jsonl` after the block is rendered.
## Block format
The rendered block has three parts in this order:
1. A header line: `## Outside View (Reference Class)`
2. A `## Framing constraint` section (always present, even in thin-corpus and unavailable modes).
3. An `- n_total: <int>` line followed by a `- Mode: ready | thin-corpus | unavailable` line, then either per-shape rows (ready mode only) or nothing (t