Repository navigation
BPD-AMM-06: selective trust gate, registered subfloor development null - #92
Merged
Merged
Conversation
…ent-root EvalMath decision
…ion and 256-case assays
…t-only donor future
…isy local policies
…and repeatability preflight
…parity and release guards
…ent and corrected EvalMath
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 |
…DEVELOPMENT_LOCK.json
… sealed confirmation
patrickdugan
marked this pull request as ready for review
November 18, 2026 08:52
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 at5fd82942ed9c30f20c15c4074b838d8ce6f6fd68before scoring. The independent 64-model training receipt was committed at28eb88bf32316f87bbfd20a98a85ad757d6b914dbefore 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
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.mdand AMM06README.mdstate the hard stop. Detailed RESULTS.md andresults/{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.