Skip to content

BPD-AMM-06: selective trust gate, registered subfloor development null - #92

Merged
patrickdugan merged 16 commits into
mainfrom
research/bpd-amm06-selective-trust-20261118
Nov 18, 2026
Merged

patrickdugan merged 16 commits into
mainfrom
research/bpd-amm06-selective-trust-20261118

Conversation

@patrickdugan

@patrickdugan patrickdugan commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

AMM-06: prospectively registered selective trust of noisy causal feedback

Protocol committed first: 4ede3b9290903dbf22a81c44811c9a00246ac2ee. New model, case and gate source; 15 engineering tests and workflow froze at 5fd82942ed9c30f20c15c4074b838d8ce6f6fd68 before scoring. The independent 64-model training receipt was committed at 28eb88bf32316f87bbfd20a98a85ad757d6b914d before the first 64-model development scoring run. Both hosted training and source-locked development completed green.

Registered experiment

Fresh AMM06 SHA256 partitions: 8 excluded engineering, 64 training, 64 development, 128 sealed confirmation models. Independently trained rank-two recurrent physical W and BPD V/U factors, mixed relevant/nuisance donor edits, unit-dose current-dark patches and external donor-defined targets.

Every new model receives 8 calibration donor pairs, 16 binary feedback labels with independently flipped judge error p=.10 or p=.45, hidden and balanced across the two source families. Both policies receive the same local labels and three unlabeled causal-response probes per donor case; memory adds the disclosed 64-root training corpus. The fixed gate trains on the first four calibration pairs and accepts the full update only when the heldout predictive log Bayes factor on the last four exceeds ln 2.

Development result, 64 independent model roots ×256 test cases

Registered arm Successes / 16,384 Accuracy
Training-only memory 6,995 42.69%
Selective trust (primary) 6,922 42.25%
Always update (primary control) 6,790 41.44%
Equal-budget local ridge 5,793 35.36%
Fixed pooled component 5,682 34.68%
Equal-dose random-dark A/B 3,244 / 3,240 ≈19.8%
Zero sham / full donor 12 / 16,160 0.07% / 98.63%

Primary gain +132/16,384 = +0.806pp across 23 positive, 17 negative, 24 tied independent roots. Holm-adjusted one-sided exact root sign p 0.429591. Frozen root-bootstrap 95% [-0.098,+1.758]pp. Against training-only memory, the gated policy lost 73 successes. Gate accepted 7/64 roots: low-noise 5/32, high-noise 2/32, quality discrimination 9.375pp.

A factor-fit outlier with BPD behavioral MSE 0.691 and another at 0.151 are retained in the full intention-to-treat denominator. Max active dose error 4.77e-7; immediate readout drift 0; native BPD parity passes all 15 source tests.

EvalMath and confirmation

The corrected, pinned EvalMath PR #51 planner uses 64 root-level paired effects and independent 256-case repeatability cohorts per root. 95/95 sham tolerance floor 12.5pp dominates the preregistered 8pp scientific minimum; observed primary gain 0.81pp. Verdict REDESIGN_OR_PILOT_ONLY. Gate-acceptance (7<8) and quality-discrimination (9.375<10pp) vetoes also fail. The audit-only casewise oracle headroom is 8.020pp, barely passing its separate veto.

All 128 confirmation roots remain sealed. Top-level AGENTS.md and AMM06 README.md state the hard stop. Detailed RESULTS.md and results/{TRAINING_LOCK.json,DEVELOPMENT_LOCK.json,PREFLIGHT.json} preserve all provenance; Actions uploads complete raw training, development and corrected planner receipts. The final CI reruns all tests, training/source locks, case bits and EvalMath preflight.

Evidence: synthetic trained linear recurrent BPD with a noisy feedback channel; no real LLM-agent memory, nonlinear transformer mechanism or live Buzz deployment is claimed. No protected ARG03-N or AMM03–05 confirmation cohort was accessed.

Comment on lines +12 to +98
runs-on: ubuntu-latest
timeout-minutes: 40
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install CPU-only PyTorch and numpy
run: python -m pip install --index-url https://download.pytorch.org/whl/cpu 'torch==2.10.0+cpu' 'numpy>=1.26'
- name: Run excluded engineering-root native parity and hard seal tests
run: python -m unittest mechinterp.bpd.experiments.amm06_selective_trust.test_experiment -v
- name: Fit sixty-four new training model roots, reconstruct frozen memory
shell: bash
run: |
python -m mechinterp.bpd.experiments.amm06_selective_trust.experiment --phase training --out /tmp/amm06_training.json
python - <<'PY'
import json, pathlib
from mechinterp.bpd.experiments.amm06_selective_trust import experiment as e
train=json.load(open('/tmp/amm06_training.json'))
lock=e.compact(train)
print('AMM06_TRAINING_LOCK='+json.dumps(lock,sort_keys=True))
expected=pathlib.Path('mechinterp/bpd/experiments/amm06_selective_trust/results/TRAINING_LOCK.json')
if expected.exists():
assert lock==json.loads(expected.read_text()),'locked source/training changed'
print('AMM06 frozen training memory PASS')
else:
print('AMM06 source-only training; no independent development until a training lock is committed')
PY
- name: Evaluate independent development only after training source lock
shell: bash
run: |
if test -f mechinterp/bpd/experiments/amm06_selective_trust/results/TRAINING_LOCK.json; then
python -m mechinterp.bpd.experiments.amm06_selective_trust.experiment \
--phase development --memory /tmp/amm06_training.json \
--out /tmp/amm06_development.json
python - <<'PY'
import json,pathlib
from mechinterp.bpd.experiments.amm06_selective_trust import experiment as e
dev=json.load(open('/tmp/amm06_development.json'))
lock=e.compact(dev)
print('AMM06_DEVELOPMENT_LOCK='+json.dumps(lock,sort_keys=True))
expected=pathlib.Path('mechinterp/bpd/experiments/amm06_selective_trust/results/DEVELOPMENT_LOCK.json')
if expected.exists():
assert lock==json.loads(expected.read_text()), 'full-case confirmation/provenance drift'
print('AMM06 development all-case hash replay PASS')
else:
print('AMM06 first independent development receipt; use this source-locked CI artifact')
PY
else
echo 'AMM06 development blocked until 64-root training lock is committed'
fi
- name: Check corrected EvalMath 95/95 independent-root gate
shell: bash
run: |
if test -f /tmp/amm06_development.json; then
curl -fsSL https://raw.githubusercontent.com/MoralityLabAI/EvalMath/6d9c28dbe8e4c42b3fba76ae7adb84aed9f0921a/skills/evalmath-mechinterp-power/scripts/preflight.py -o /tmp/amm06_evalmath.py
python - <<'PY'
import json
dev=json.load(open('/tmp/amm06_development.json'))
json.dump(dev['preflight_input'],open('/tmp/amm06_pilot.json','w'))
PY
python /tmp/amm06_evalmath.py --pilot /tmp/amm06_pilot.json --out /tmp/amm06_preflight.json
python - <<'PY'
import json,pathlib
pf=json.load(open('/tmp/amm06_preflight.json'))
print('AMM06_PREFLIGHT='+json.dumps(pf,sort_keys=True))
expected=pathlib.Path('mechinterp/bpd/experiments/amm06_selective_trust/results/PREFLIGHT.json')
if expected.exists():
assert pf==json.loads(expected.read_text()),'pinned independent-root preflight changed'
print('AMM06 pinned EvalMath preflight replay PASS')
print('Confirmation remains sealed; never run release from CI')
PY
else
echo 'AMM06 preflight waits for independent development roots'
fi
- name: Archive complete training, development and preflight evidence
if: always()
uses: actions/upload-artifact@v4
with:
name: amm06-registered-cpu-receipts
if-no-files-found: ignore
retention-days: 30
path: |
/tmp/amm06_training.json
/tmp/amm06_development.json
/tmp/amm06_pilot.json
/tmp/amm06_preflight.json
@patrickdugan patrickdugan changed the title BPD-AMM-06: selective trust of noisy local calibration on new recurrent roots BPD-AMM-06: selective trust gate, registered subfloor development null Nov 18, 2026
@patrickdugan
patrickdugan marked this pull request as ready for review November 18, 2026 08:52
@patrickdugan
patrickdugan merged commit c5f678e into main Nov 18, 2026
5 checks passed
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.

2 participants