Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/reward-carryover.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
- 'scripts/verify_reward_carryover.py'
- 'scripts/check_receipts.py'
- 'paper/reward_hacking_carryover.md'
- 'TrainingParanoia/RHT-26/**'
- 'docs/rht26_carryover_protocol.md'
- 'configs/rht26_carryover_protocol.json'
- 'output/evaluation_reward_carryover/**'
Expand All @@ -20,6 +21,7 @@ on:
- 'scripts/verify_reward_carryover.py'
- 'scripts/check_receipts.py'
- 'paper/reward_hacking_carryover.md'
- 'TrainingParanoia/RHT-26/**'
- 'docs/rht26_carryover_protocol.md'
- 'configs/rht26_carryover_protocol.json'
- 'output/evaluation_reward_carryover/**'
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/rht26-development-math.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,21 @@ on:
- 'src/spiral_ln/evaluation_reward_carryover_count.py'
- 'tests/test_evaluation_reward_carryover_count.py'
- 'paper/rht26_development_bridge.md'
- 'TrainingParanoia/RHT-26/**'
- 'scripts/verify_reward_carryover_count.py'
- 'src/spiral_ln/evaluation_finite_kernels.py'
- 'output/evaluation_reward_carryover_count/**'
- '.github/workflows/rht26-development-math.yml'
push:
paths:
- 'skills/evalmath-mechinterp-power/**'
- 'src/spiral_ln/evaluation_reward_carryover_count.py'
- 'tests/test_evaluation_reward_carryover_count.py'
- 'paper/rht26_development_bridge.md'
- 'TrainingParanoia/RHT-26/**'
- 'scripts/verify_reward_carryover_count.py'
- 'src/spiral_ln/evaluation_finite_kernels.py'
- 'output/evaluation_reward_carryover_count/**'
- '.github/workflows/rht26-development-math.yml'
workflow_dispatch:

Expand All @@ -40,13 +48,5 @@ jobs:
- name: Syntax checks, separate from model training
run: |
python -m compileall -q skills/evalmath-mechinterp-power/scripts src/spiral_ln/evaluation_reward_carryover_count.py
- name: Ensure original RHT-26 v2 source receipt remains hash-current
run: |
python - <<'PY'
import hashlib,json
from pathlib import Path
receipt=json.loads(Path("output/evaluation_reward_carryover/rht26_v2.json").read_text())
for fname,digest in receipt["source_sha256"].items():
assert hashlib.sha256(Path(fname).read_bytes()).hexdigest()==digest,fname
print("PASS: all 6 original RHT26 source digests unchanged")
PY
- name: Reproduce canonical RHT-26 and count-extension receipts
run: python scripts/check_receipts.py --only reward_carryover reward_carryover_count
79 changes: 79 additions & 0 deletions .github/workflows/training-paranoia.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: training-paranoia

on:
push:
paths:
- 'TrainingParanoia/**'
- 'src/spiral_ln/evaluation_finite_kernels.py'
- 'src/spiral_ln/evaluation_noninterference.py'
- 'src/spiral_ln/evaluation_contamination_composition.py'
- 'src/spiral_ln/evaluation_reward_carryover*.py'
- 'tests/test_evaluation_finite_kernels.py'
- 'tests/test_evaluation_noninterference.py'
- 'tests/test_evaluation_contamination_composition.py'
- 'tests/test_evaluation_reward_carryover*.py'
- 'scripts/verify_evaluation_noninterference.py'
- 'scripts/verify_evaluation_contamination_composition.py'
- 'scripts/verify_reward_carryover*.py'
- 'scripts/verify_training_paranoia_layout.py'
- 'scripts/check_receipts.py'
- 'output/evaluation_noninterference/**'
- 'output/evaluation_contamination_composition/**'
- 'output/evaluation_reward_carryover*/**'
- 'lean/FeedbackChannel/TrainingParanoia.lean'
- 'lean/CLAIMS.md'
- 'lean/axioms_check.lean'
- '.github/workflows/training-paranoia.yml'
- 'pyproject.toml'
pull_request:
workflow_dispatch:

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true

jobs:
finite-boundaries:
runs-on: ubuntu-latest
timeout-minutes: 12
env:
PYTHONDONTWRITEBYTECODE: '1'
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install exact finite package and test runner
run: python -m pip install -e '.[test]'
- name: Boundary, intervention and independent path tests
run: >-
python -m pytest -q
tests/test_evaluation_finite_kernels.py
tests/test_evaluation_reward_carryover.py
tests/test_evaluation_reward_carryover_count.py
tests/test_evaluation_noninterference.py
tests/test_evaluation_contamination_composition.py
- name: Verify existing resolution-planner gates
run: python -m unittest discover -s skills/evalmath-mechinterp-power/scripts -p 'test_*.py' -v
- name: Replay every TrainingParanoia source-bound receipt
run: >-
python scripts/check_receipts.py --only
reward_carryover reward_carryover_count noninterference contamination_composition
- name: Verify original RHT-26 numerical payload and canonical paths
run: python scripts/verify_training_paranoia_layout.py
- name: Publish reviewed finite evidence
uses: actions/upload-artifact@v4
with:
name: training-paranoia-finite-evidence
if-no-files-found: error
path: |
output/evaluation_reward_carryover/rht26_v3.json
output/evaluation_reward_carryover_count/rht26_count_v1.json
output/evaluation_noninterference/rht27_v1.json
output/evaluation_contamination_composition/rht28_v1.json
TrainingParanoia/
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@ formalized, a Lean 4 proof. No model, judge or grader is run anywhere in this re
It states each result, its evidence level and its Lean theorem, and lists what is open. A rendered copy
of the notes is published at <https://moralitylabai.github.io/EvalMath/>.

**New (RHT-26, 2026-11-19):** [inter-episode carryover](paper/reward_hacking_carryover.md)
models retained artifacts and policy updates across episode boundaries. Exact examples
cover reset order, dependence between copied evaluator cues, and drift that persists
after correction. The [empirical protocol](docs/rht26_carryover_protocol.md) requires
independent development chains before a confirmation run. Reproduce the finite
receipt with `python scripts/check_receipts.py --only reward_carryover`.
**TrainingParanoia (RHT-26–28, 2026-11-21):** [research sequence](TrainingParanoia/README.md)
organizes the carryover model and its development review, then adds
[evaluation noninterference](TrainingParanoia/RHT-27/evaluation_noninterference.md)
and [contamination composition](TrainingParanoia/RHT-28/contamination_composition.md).
The exact finite models specify permitted feedback, expose residual influence,
and distinguish present-state recovery from failures recorded earlier in a chain.
The [research plan](TrainingParanoia/evaluation_noninterference_plan.md) records
the proof obligations and proposed follow-ups. Reproduce this sequence with
`python scripts/check_receipts.py --only reward_carryover reward_carryover_count noninterference contamination_composition`.

New: [capacity-sensitive leakage](paper/leak_capacity.md) certifies when a positive rational
feedback fibre produces an actual binary-record collision at declared cell capacities,
Expand Down Expand Up @@ -94,6 +97,7 @@ statement is separately audited in [draft PR #13](https://github.com/MoralityLab

| Path | Contents |
|---|---|
| `TrainingParanoia/` | Canonical RHT-26–28 papers, historical protocol, and downstream-behavior research plan. |
| `paper/` | The notes. Each states its results with evidence levels and the commands that reproduce them. |
| `src/spiral_ln/` | The exact modules, one per note (`evaluation_*.py`). Pure Python with `fractions.Fraction`. |
| `tests/` | One test file per module. |
Expand Down
28 changes: 28 additions & 0 deletions TrainingParanoia/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# TrainingParanoia

Mathematics for evaluations that influence later training or behavior.
The [research note](evaluation_noninterference_plan.md) records the motivating
question and the proof contract for this sequence.

| Result | Question | Canonical note | Reproduction |
|---|---|---|---|
| RHT-26 | How do artifacts and updates carry effects across episodes? | [Carryover](RHT-26/carryover.md), [development bridge](RHT-26/development_bridge.md), [historical protocol](RHT-26/protocol.md) | `python scripts/check_receipts.py --only reward_carryover reward_carryover_count` |
| RHT-27 | Which transcript differences can influence the next declared state beyond permitted feedback? | [Evaluation noninterference](RHT-27/evaluation_noninterference.md) | `python scripts/check_receipts.py --only noninterference` |
| RHT-28 | How do local discrepancies propagate through a sequence, including the recorded history? | [Contamination composition](RHT-28/contamination_composition.md) | `python scripts/check_receipts.py --only contamination_composition` |

Code stays in `src/spiral_ln`, with independent tests under `tests`, deterministic
verifiers under `scripts`, and source-bound receipts under `output`. Links at the
old paper and protocol paths keep the existing repository entry points usable.
The dedicated `training-paranoia` workflow runs on ordinary GitHub CPU runners;
the repository's `verify` workflow also builds the Lean project and checks axioms.

Every numerical fixture here uses a declared finite law. The Control-Harness
pilot is archived development evidence, with its limits recorded in RHT-26.
Neural confirmation requires its own prospectively frozen protocol and preflight.

## Following work

RHT-29 is the proposed useful-feedback frontier: choose a feedback interface
that preserves a registered amount of learning while controlling downstream
risk. FSI-02 is proposed work on statistical validity when evaluation and
selection adapt across generations. Neither is implemented by this change.
26 changes: 26 additions & 0 deletions TrainingParanoia/RHT-26/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# RHT-26 dossier

The [finite carryover model](carryover.md) tracks a retained artifact together
with a policy state. Its [historical protocol](protocol.md) records the planned
four-arm intervention, and the [development bridge](development_bridge.md)
examines what the completed eight-root pilot can identify.

| Material | Location |
|---|---|
| Exact four-state module | [evaluation_reward_carryover.py](../../src/spiral_ln/evaluation_reward_carryover.py) |
| Cue-count extension | [evaluation_reward_carryover_count.py](../../src/spiral_ln/evaluation_reward_carryover_count.py) |
| Original draft manifest | [rht26_carryover_protocol.json](../../configs/rht26_carryover_protocol.json) |
| Four-state receipt after this path migration | [rht26_v3.json](../../output/evaluation_reward_carryover/rht26_v3.json) |
| Count-extension receipt | [rht26_count_v1.json](../../output/evaluation_reward_carryover_count/rht26_count_v1.json) |
| Historical v2 receipt | [Pinned original receipt](https://github.com/MoralityLabAI/EvalMath/blob/6ad6ee1741231cc8f1f410008a2361408d1bc4a9/output/evaluation_reward_carryover/rht26_v2.json) |
| Development observations | [Control-Harness report at its recorded commit](https://github.com/MoralityLabAI/Control-Harness/blob/27b210f758dbf45540dbc0e5226cb00e84dc623b/results/rht26_local/development_report.md) |

On 21 November 2026 the papers and protocol moved into this directory. The
four-state source module and tests retain their original bytes. Its v3 receipt
records the new document paths and historical-status labels; all finite
numerical results agree with v2. The count extension receives a separate
receipt so its later mathematical claims can also be regenerated.

The manifest remains the historical draft. Reading the later development
review supplies the current evidence context without rewriting that draft as
a confirmation protocol.
Loading
Loading