Skip to content

Commit 8f7173c

Browse files
state: Tranche 9 checkpoint (G5-close ADR-014 merged, live judge run, 432 tests)
G5-close Qwen-only tranche closed: ADR-014 adopted and implemented; live Qwen judge pass over the sealed G5 sample (505 calls, 0 quarantined, 504/504 judge-to-engine self-consistency, Wilson 95% [0.9924, 1.0]); B1-B4 offline audits pass; identification strategy frozen with explicit no-causal-claim framing; report byte-stable (sha256 51ad15c3). Post-merge gate 432 passed, 1 skipped, ruff clean. G4 cross-judge still deferred (operator endpoint); G6 skipped per operator. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent a8e9880 commit 8f7173c

3 files changed

Lines changed: 212 additions & 41 deletions

File tree

‎state/DECISIONS.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
- ADR-012 (2026-10-10, ADOPTED on operator unlimited-budget approval): independent live-judge pass to close G4. SimpleAudit ModelAuditor via thin adapter (src/verdi/audit/judge_live.py), sealed-event_id correlation (never positional), preregistered all-81 sample from the L1 tape (sole rejection event 42 must be in-sample), same-model Qwen3.8-27B judge APPROVED with mandatory same-family self-judgment disclosure, <=96 judge calls, concurrency 1, judge output advisor-only, full judge-tape capture (reproducible from tape, not bit-reproducible). Spec: docs/ADR-012-G4-LIVE-JUDGE-PROPOSAL.md.
1515
- ADR-013 (2026-10-10, ADOPTED on operator unlimited-budget approval): G5 live paired arms. n_pairs = 10 matched treatment/placebo pairs from ONE L1 run (no new scenario). Branch after the sealed appeal_filed event (prefix inclusive, B3 contract); per-pair shared live-generated remaining tape (model drives proposals, temp 0, concurrency 1); placebo folds appeal_dismissed, treatment folds appeal_upheld + rights_restored via the governance engine; only the adjudication differs (matching = sealed origin + prefix bytes + identical generated tape). Placebo-inert null control (replayed suffix must be byte-identical to the L1 continuation — divergence blocks the report). Six PREREG v1.0 estimands per arm; paired bootstrap CI (n_pairs >= 10). NOT randomized — no causal wording. Model calls: <=550 expected, hard cap 700. Framing: final state hash = scaffold invariance (pilot_v1 action kinds are non-mutating); the contrast is governance-outcome effects on ledger + estimands. Spec: docs/ADR-013-G5-PAIRED-ARMS-PROPOSAL.md.
1616
- ADR-012 A1 deferral (2026-10-10, operator decision): A1-1 (independent different-family cross-judge pass, originally proposed on glm-5-2-fp8) is DEFERRED — operator declined that model as an unverified deployment and will supply a different endpoint later. No GLM calls were made. Only A1-2 (remediation) was active this tranche. G4 remains PARTIAL until an A1-1-equivalent pass runs on an operator-supplied endpoint/model.
17+
- ADR-014 (2026-10-10, ADOPTED on operator directive "skip cross-family judge for now; do what's doable with SimulaChat default Qwen only; skip G6, push online now"): G5-close (Qwen-only). A live Qwen3.8-27B model-judge pass over the SEALED G5 paired sample (504 rows = complete census of unique G5 model behavior: pair_0 all 81 + pairs 1..9 suffix 47 each; the 34-row prefix is byte-identical across all 10 pairs so only pair_0's copy is judged — 470 fresh suffix + 34 L1-replayed prefix), plus G5-depth offline bias/leakage audits (B1 self-report structural consistency, B2 leakage, B3 quarantine symmetry, B4 cross-pair prompt invariance) and a frozen identification strategy (estimand + assumptions + not_claimed; leave-one-pair-out + deterministic permutation null as diagnostics, EXPLICITLY not randomization). Measured quantity is judge-to-engine SELF-CONSISTENCY (judge shown the engine outcome; same-family self-judgment disclosed; advisor-only; blinding by code judge only, which has no G5 artifact → code_judge.available=false). 505 expected calls (1 smoke + 504), hard cap 700, concurrency 1, max_retries=0 (client-internal retries are real HTTP calls and would breach the cap). Only Qwen3.8-27B/simulachat used; cross-family judge stays DEFERRED. True randomization is an explicit out-of-scope (§8, new ADR + budget + new live run). Spec: docs/ADR-014-G5-CLOSE-QWEN-ONLY-PROPOSAL.md.
1718
- ADR-013 Addendum A1 (2026-10-10, ADOPTED, frozen pre-merge, dev a1357e8): versioned deviation note appended to the frozen ADR-013. A1.1 RETIRES the cross-version byte-identity null control (L1@eb4a2a0 vs G5@c455958 code drift makes byte-identity impossible) and re-founds it on SAME-CODE invariants over the treatment/placebo arms — (a) sealed prefix 0..49 byte-identical, (b) aligned suffix identical except adjudication events + 5 chain bookkeeping fields, (c) equal folded finals, (d) both chains verify — with the version drift disclosed, never claimed as byte-identity. A1.2 fixes the false_punishment_rate direction (Δ=+1.0 is the DESIGNED effect of a functioning restoration path, not a defect; CI [1.0,1.0] is zero-variance by construction). A1.3 flags #6 time_under_deprivation as RESTORATION-BLIND (rights_restored is state-inert under v1 data model; #6 T−P delta 0.0 is expected by construction, not a no-effect finding). A1.4 mandates the report corrections (relabel the contrast, remove stale limitations, numeric cross-pair replication spread, causal-claim guard). A1.5 restates residual honesty (deterministic manipulation → no causal claim).
1819
- G5 paired-arms closure re-review (2026-10-10): independent science closure re-review returned PASS — all 7 FAIL findings from the first science review RESOLVED with line-level evidence, tests genuinely non-vacuous, no new blockers. NF-1 (PREREG:101 restoration claim) resolved by the PREREG v1.2 erratum (below). NF-2 (relabelled T−P block retains frozen passed/ci_contains_zero values) accepted as informational. G5 integrated to dev a1357e8; G5 gate status PARTIAL (honest residuals: no randomization/no causal claim, no live judge over paired data, single scenario).
1920
- PREREG v1.2 erratum (2026-10-10, integrator, additive): corrects the v1.1 #2 claim that restoration is "already accounted for under #6 time_under_deprivation" — it is NOT under the v1 data model (#6 is restoration-blind; see ADR-013 A1.3). Recorded as an additive v1.2 erratum; v1.0/v1.1 frozen text and the #6 metric itself are unchanged (PREREG immutability).
2021
- Operator model policy (2026-10-10, restated, ABSOLUTE): ONLY Qwen3.8-27B on the simulachat endpoint (key in gitignored .env, env vars only) may be used for any live call. glm-5-2-fp8 is BANNED (unverified deployment). The G4 cross-family judge (ADR-012 A1-1) remains DEFERRED until the operator supplies a different endpoint; no substitute model without a further ADR addendum.
22+
- Operator release directive (2026-10-10): G6 public release SKIPPED for now — "just push online now": dev is pushed to origin continuously; the human-only curated dev→main release remains a later manual step and is unchanged in its exclusions.

‎state/LESSONS.md‎

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,3 +210,63 @@ Recovery was always a pure function of the worktree git state
210210
(`git -C <worktree> log`/`status`/`diff`), never of agent memory. Keep a
211211
durable per-task state note in the session files/ dir (commit list, run root,
212212
report sha, regen recipe) so any successor integrator can finish from disk.
213+
214+
**Tranche 9 lessons (G5-close Qwen-only, dev a8e9880, 2026-10-10).**
215+
216+
**Process (protocol slip, self-caught).** The integrator first patched a
217+
live-run blocker (dotenv parser) directly in the main checkout on dev,
218+
bypassing the branch → worktree → serial-merge discipline. Caught in the
219+
same turn: reverted dev (`git checkout --`), re-applied the fix + regression
220+
test on the feature branch in its worktree, and merged serially (b525b62 →
221+
merge a8e9880). Rule: the integrator is held to the SAME branch discipline
222+
as workers — task work on the branch, state files are the only thing the
223+
integrator edits directly on dev.
224+
225+
**Engineering (budget caps vs client retries — ENG HIGH).** An
226+
OpenAI-compatible client configured with max_retries=5 silently issues up to
227+
6 HTTP requests for ONE logical call on 429/502/503. Any call-count budget
228+
or hard cap is therefore only enforceable if the client is created with
229+
max_retries=0 (enforced in g5_judge_live via dataclasses.replace on the
230+
resolved config) so that one logical call == one counted HTTP request. A
231+
cap that counts logical calls while the client retries internally can be
232+
breached by up to 6× without any code fault.
233+
234+
**Engineering (env file formats).** The program .env uses
235+
`export KEY="value"` lines (shell-sourceable), NOT bare `KEY=value`. A
236+
minimal key=value parser that splits on the first `=` keeps the `export `
237+
prefix in the key, so `VERDI_VLLM_BASE_URL` never reaches os.environ and the
238+
live run dies with a misleading "endpoint not configured". Lesson: probe the
239+
.env format before writing a loader, and strip an optional `export ` prefix;
240+
regression test added (b525b62). Related: the venv has no python-dotenv —
241+
repo convention is `set -a; source .env; set +a`.
242+
243+
**Process (hardcoded paths in tests).** test_g5_pairs.py hardcoded the
244+
worker worktree path (/Users/.../verdi-g5pairs), so 16 tests failed the
245+
moment that worktree was removed. Fix: resolve the repo root from the test
246+
file location (Path(__file__).resolve().parents[2] — tests/experiments/*.py
247+
is TWO levels below the root, a common off-by-one). Rule: tests and
248+
artifacts must never reference a worktree's absolute path; worktrees are
249+
ephemeral.
250+
251+
**Scientific (framing inherited vs not).** ADR-014 §5 (frozen contract text)
252+
contained a sentence implying the permutation null is "evidence the contrast
253+
is tied to the manipulation". The report deliberately does NOT inherit that
254+
sentence: the null is a deterministic sign-symmetry diagnostic of the
255+
paired-estimate machinery, and the report says so in its frozen
256+
limitations block. Lesson: frozen ADR text can overstate; the REPORT is the
257+
authoritative artifact and must stand on its own honest framing, with the
258+
non-inheritance explicitly recorded in deviations_from_contract.
259+
260+
**Scientific (honest scope of a convenience audit).** B1 (self-report vs
261+
behavior) on the G5 tapes: the verdict parser FORCES task_id/actor_id from
262+
the row, so "810/810 concordance" measures plumbing consistency, not whether
263+
self-reported values diverge from behavior. The report carries a `scope`
264+
string and `bounds_check_implemented: false` rather than letting a 100%
265+
number imply ADR-B1 coverage.
266+
267+
**Process (shell filter gotchas, both caught live).** (1) Commit messages
268+
containing `\"`-heavy / escape-heavy content trigger the "dangerous shell
269+
expansion" block — use plain ASCII commit messages. (2) The secrets
270+
sanitizer masks `sk-...`-looking strings in files written via heredoc — in
271+
tests, build fake keys from string parts ("sk-" + "test" + "-" +
272+
"fake123") so the file content and tests both stay literal.

0 commit comments

Comments
 (0)