Repository navigation
docs(435): seal Week 0 preregistration (clock still off) - #473
haiyuan-eng-google merged 4 commits into
Conversation
Adopt the v4 freeze-candidate as the sealed preregistration, filling the three leftover placeholders (value gate 50%, noisy-small-n fail if CI spans zero, no separate absolute hit@1 floor). Does not start the six-week clock and does not kick a Week 1 snapshot.
|
Implementer update — PR ready for Codex + Kimi review (not merged). New HEAD:
Consistency re-checked: Tests: The six-week clock has still NOT started. No Week 1 snapshot was kicked, D4 is unamended, no live BigQuery or judge calls were made, and nothing was merged (this PR included; #456–#472 untouched). Merge remains Haiyuan's call after dual LGTM. |
caohy1988
left a comment
There was a problem hiding this comment.
Reviewer: Codex
PR 473 review
- Verdict: REQUEST_CHANGES
- HEAD SHA:
7ee1901449258f97ed3a6b39b019aaaae7efe12e - Base: upstream/main
3222207aa3a04d27e94d70c2b17d798f4f952d5e - P0 count: 0
- P1 count: 1
- P2 count (informational): 1
P1 findings
- The plan of record still contains the superseded preregistration placeholders.
docs/agentforensics_mvp_plan.md:130still says the value gate is>= the preregistered fraction; the sealed value is 50% of completed, non-investigator-adjudicated counterfactual investigations.docs/agentforensics_mvp_plan.md:133still requiresabsolute hit@1 >= the preregistered floor; the sealed decision explicitly has no separate absolute hit@1 floor. The only hit@1 gates are CI lower bound>0and point uplift>= +10pp, and a CI that spans zero fails.- This makes the plan disagree with
docs/week0_preregistration.md:22-23,examples/fixtures/week0_real_preregistration.json:16-18, and the #435 seal comment. An operator following the plan could apply an undefined value threshold or an extra Week 6 rejection gate. - Required change: replace both stale clauses with the sealed rules. Keep the existing volume-slip rule: apply 50% to completed investigations only; do not silently pass.
P2 findings (informational)
- The freeze test does not guard the no-separate-floor decision or plan alignment.
tests/test_week0_real_freeze.py:200checks the old v4 floors, while the new test attests/test_week0_real_freeze.py:126checkssealed, clock off,value_gate_pct == 50, and noisy-small-n failure wording. It does not assertabsolute_hit_at_1_floor is Noneor reject the stalepreregistered fraction/preregistered floorphrases in the plan. This is why all 24 focused tests pass despite finding #1. Add those assertions when practical; this is not a separate blocker.
Coverage and verification
- Reviewed the current GitHub HEAD twice; it remained
7ee1901449258f97ed3a6b39b019aaaae7efe12e. - The range from
3222207has three unique, linear commits:00e7b93,fcf365b, and7ee1901. It changes only the five expected files. There are no merge commits or conflict markers. CHANGELOG.md:12has the required Unreleased bullet.- The sealed doc and JSON agree on
sealed: true,freeze_candidate: false,clock_started: false, value gate 50%, noisy-small-n failure when the 95% CI spans zero, and no separate absolute hit@1 floor. - No change starts a Week 1 snapshot, enables live BigQuery or live judges, invents a D4 consumer, merges #468/#470, or creates a partner/SANA fork.
- GitHub checks are green at the reviewed SHA, including format, build, security scan, browser smoke, and Python 3.10-3.14 tests.
- Offline scratch validation:
24 passed; Pyink would leave the changed test unchanged; the preregistration JSON parses;git diff --checkis clean. No live BigQuery command was run. - The P1 finding was independently confirmed by correctness, testing, and a separate validation pass.
What can wait
- Finding #2 is informational and can follow the plan correction, although adding it in the same fix would prevent this exact drift from recurring.
- Week 1 execution, a snapshot job, live BigQuery, live judge calls, and merging the presenter/do-not-merge PRs remain out of scope and must stay off.
Actionable findings
- #1 - P1 -
docs/agentforensics_mvp_plan.md:130and:133: replace the stale value-gate and absolute-hit@1 placeholders with the sealed decisions, then rerun the focused test and format checks.
Verdict
REQUEST_CHANGES
P0: 0. P1: 1. P2: 1 informational. The seal is correct in the dedicated doc and JSON, but the plan of record still gives contradictory execution criteria. Fix #1 before approval.
Actionable recap: #1 - P1 - docs/agentforensics_mvp_plan.md:130 and :133 - mechanical documentation correction required.
caohy1988
left a comment
There was a problem hiding this comment.
Reviewer: Kimi
Review — PR #473: docs(435): seal Week 0 preregistration (clock still off)
- Verdict: LGTM / APPROVE
- HEAD reviewed:
7ee1901449258f97ed3a6b39b019aaaae7efe12e(matchesgh pr view 473headRefOid; worktree HEAD is the same SHA) - P0: 0 · P1: 0 · P2: 2 (informational)
- Unique commits vs upstream/main
3222207: 3 (00e7b93seal content,fcf365bpyink wrap,7ee1901CHANGELOG bullet). Zero merge commits. Diff touches exactly the 5 expected files.
Contract check (all pass)
sealed: true,freeze_candidate: false,clock_started: false—examples/fixtures/week0_real_preregistration.json:26,5,4; mirrored indocs/week0_preregistration.mdbanner and the plan status paragraph.value_gate_pct: 50(completed, adjudicated counterfactual investigations; volume-slip → 50% of completed only) — json:16,decision_rules.value_gate; doc "Decision rules (sealed)" agrees.- Noisy-small-n: point clears but 95% CI spans zero → gate fails, no localization, no uplift claim, week-6 may not override — json
decision_rules.noisy_small_n_localization, doc agrees. - No separate absolute hit@1 floor:
absolute_hit_at_1_floor: nullwith explicit rule (json:17-18); CI >0 and +10pp remain the hit@1 gates — matches contract. - D4 untouched and restated:
docs/week0_d4_memo.jsonnot in diff;tests/test_week0_real_freeze.py:182still assertsno_new_bq_jobs/no_new_live_judge_calls/ single named consumer; plan paragraph restates "D4 still forbids new BigQuery jobs and new live judge calls." - No merge of #468/#470 (no merge commits; scoped diff); no Week 1 kick (no snapshot job, docs-only change,
not_week_1_execution: trueretained); no partner/SANA fork invention (partner fixture/doc untouched, existing anti-SANA assertions intact).
P0 scan (none found)
clock_startedfalse everywhere; no Week 1 snapshot; no live BQ; no D4 consumer changes; no other-PR merges; no conflict markers (scanned all 5 files at HEAD).- Sealed numbers vs the #435 seal comment (caohy1988, 2026-09-02T21:03:23Z, referencing commit
00e7b93): value gate ≥50%, fail-on-CI-spans-zero, no absolute hit@1 floor, seal time 2026-09-02 2:05 PM PT — all match verbatim. Commits after00e7b93change only the CHANGELOG bullet and a test-line rewrap; no sealed number moved.
P1 scan (none found)
- CHANGELOG Unreleased bullet present (
CHANGELOG.md:12-28), accurate, and consistent with the sealed values. - Tests assert sealed + clock off: new
test_preregistration_is_sealed_and_does_not_start_the_clock(tests/test_week0_real_freeze.py:126) pinssealed/freeze_candidate/clock_started/value_gate_pct == 50plus κ floors;test_real_preregistration_copies_the_v4_floors_without_a_clock(:202) updated consistently. - Ran the suite at HEAD:
pytest tests/test_week0_real_freeze.py→ 24 passed (matches PR test plan). Ran read-only (-p no:cacheprovider, no bytecode); worktree unmodified. - Format/CI: all PR checks green (Build, Format check, Test 3.10–3.14, scan-pr, cla/google);
pyink --checkclean locally. - Fixture JSON parses;
sealed_at(2026-09-02T14:05:00-07:00) is consistent with the doc banner's "2:05 PM PT" (PDT) and the #435 seal comment. - "Preregistered fraction" placeholder is resolved where it must be: the prereg doc and JSON now carry the concrete 50% / fail-rule / no-floor values.
P2 (informational — non-blocking)
docs/agentforensics_mvp_plan.md:130and:133still use the deferred phrasing — "Value gate: ≥ the preregistered fraction", "absolute hit@1 ≥ the preregistered floor", "resolves per the week-0 rule". The sealed preregistration now resolves all three (50%, no floor, fail), so there is no disagreement — but a reader of the plan table alone cannot see the sealed numbers. A one-line pointer ("sealed indocs/week0_preregistration.md, 2026-09-02") in those cells would close the loop. Can wait for a follow-up docs pass.docs/week0_preregistration.md:6— nested bold markers**The six-week clock has **not** started**render as literal asterisks in strict Markdown renderers. Cosmetic only; the freeze test already tolerates the literal form.
What can wait
- The plan-table cross-reference (P2-1) and the bold-marker nit (P2-2) — follow-up docs commit at leisure.
- Week 1 kickoff, snapshot corpus (≥100 reproducible failed sessions), and any D4 amendment — correctly out of scope here; the clock stays off until a human kicks the first Week 1 snapshot job.
Reviewed read-only: no push, no amend, no merge, no GitHub posting, no live BQ, clock untouched.
…#473 P1) Codex P1 on 7ee1901: docs/agentforensics_mvp_plan.md rows 3-4 and 6 still carried freeze-candidate placeholders ("the preregistered fraction", "absolute hit@1 >= the preregistered floor") that disagree with the sealed docs/week0_preregistration.md and week0_real_preregistration.json. - Value gate: >=50% of completed, adjudicated counterfactual investigations; volume slip applies the 50% to completed only, never a silent pass. - hit@1 gates are CI lower bound >0 AND point uplift >= +10pp; there is no separate absolute hit@1 floor; point-clears-but-CI-spans-zero FAILS. - Labeler-ledger slip clause now names the sealed 50% instead of "applied proportionally". - Both table cells point at docs/week0_preregistration.md (Kimi P2). - week0_preregistration.md banner: drop the nested bold so "has **not** started" renders (Kimi P2). Tests (Codex P2): test_week0_real_freeze asserts absolute_hit_at_1_floor is None and value_gate_pct == 50 in the sealed fixture, and rejects the stale phrases / asserts the sealed wording in the plan. Clock still off; no live BigQuery.
|
Review fixes landed in 18e8eb2 (on top of 7ee1901). Clock still off; no live BigQuery.
Also aligned the labeler-ledger slip clause ("applied proportionally" → sealed 50% on completed investigations only) so the plan has one statement of the rule.
|
caohy1988
left a comment
There was a problem hiding this comment.
Reviewer: Codex
Verdict: APPROVE
P0 count: 0
P1 count: 0
P2 count (informational): 0
HEAD SHA: 18e8eb20f79c39af83e572ba819059c7875d3dfe
Findings
No P0, P1, or P2 findings.
Verification
- Required HEAD confirmed: local
HEADandgh pr view 473 --repo GoogleCloudPlatform/BigQuery-Agent-Analytics-SDK --json headRefOidboth report18e8eb20f79c39af83e572ba819059c7875d3dfe. - Review base confirmed:
upstream/mainis3222207aa3a04d27e94d70c2b17d798f4f952d5e, which is also the merge base. The PR has four unique, linear commits:00e7b93,fcf365b,7ee1901, and18e8eb2; there are no merge commits. - Prior P1 resolved:
docs/agentforensics_mvp_plan.md:130now sets the value gate to at least 50% of completed, adjudicated counterfactual investigations, including the volume-slip rule.docs/agentforensics_mvp_plan.md:133now states CI lower bound >0 plus point uplift >= +10pp, no separate absolute hit@1 floor, and failure when the CI spans zero. - Regression coverage added:
tests/test_week0_real_freeze.py:252-253explicitly rejects bothpreregistered fractionandpreregistered floor;tests/test_week0_real_freeze.py:257-261requires the sealed plan wording. The fixture assertions pinvalue_gate_pct == 50andabsolute_hit_at_1_floor is Noneattests/test_week0_real_freeze.py:213-217. - Artifacts agree:
docs/week0_preregistration.md:22-23states the 50% value gate and no separate absolute hit@1 floor;docs/week0_preregistration.md:30-37states the completed-investigation and CI-spans-zero rules. The JSON pinsclock_started: false,freeze_candidate: false,value_gate_pct: 50,absolute_hit_at_1_floor: null, andsealed: trueatexamples/fixtures/week0_real_preregistration.json:4-5,:16-17, and:26. The CHANGELOG entry is present atCHANGELOG.md:12-28. - Scope and safety hold: the diff changes only the changelog, plan, preregistration doc/fixture, and offline freeze test.
docs/week0_d4_memo.mdis untouched; there are no conflict markers, no Week 1 snapshot, no live BigQuery work, and no merge of PR #468 or #470. - Validation passed:
python3 -m pytest -p no:cacheprovider tests/test_week0_real_freeze.py(25 passed),python3 -m pyink --check tests/test_week0_real_freeze.py, JSON parsing, andgit diff --check upstream/main...HEAD. GitHub reports every non-skipped check successful; no CI check is red or pending.
caohy1988
left a comment
There was a problem hiding this comment.
Reviewer: Kimi
PR #473 r2 — docs(435): seal Week 0 preregistration (clock still off)
Verdict: LGTM — approve. No blockers.
P0 count: 0
P1 count: 0
HEAD reviewed: 18e8eb20f79c39af83e572ba819059c7875d3dfe — confirmed via
gh pr view 473 --json headRefOid (exact match). 4 unique commits vs
upstream/main (3222207): 00e7b93 (seal), fcf365b (pyink wrap),
7ee1901 (CHANGELOG), 18e8eb2 (plan gates state the sealed values — the r2
P1 fix). Diff touches exactly 5 files: CHANGELOG.md,
docs/agentforensics_mvp_plan.md, docs/week0_preregistration.md,
examples/fixtures/week0_real_preregistration.json,
tests/test_week0_real_freeze.py. Docs/fixture/tests only — no src/, no
producer code, no Week 1 artifacts.
Contract verification
- sealed: true, freeze_candidate: false, clock_started: false —
examples/fixtures/week0_real_preregistration.json(top-level keys, plus
sealed_at: 2026-09-02T14:05:00-07:00,sealed_by); doc banner
docs/week0_preregistration.md:3-9; plandocs/agentforensics_mvp_plan.md:53.
JSON parses cleanly; values verified programmatically. - value_gate_pct: 50 (completed, adjudicated counterfactual
investigations) — fixturefloors.value_gate_pct == 50;
docs/week0_preregistration.md:22and decision rule at line 30;
plandocs/agentforensics_mvp_plan.md:130now states "≥50% of completed,
adjudicated counterfactual investigations" with the volume-slip re-scope
applied to completed investigations only. - Noisy-small-n: fail if point clears but 95% CI spans zero —
docs/week0_preregistration.md:34("the gate fails… Week-6 judgment may
not override"); fixturedecision_rules.noisy_small_n_localizationsays
"the gate FAILS"; plandocs/agentforensics_mvp_plan.md:133mirrors it. - No separate absolute hit@1 floor — fixture
floors.absolute_hit_at_1_floor: nullwithabsolute_hit_at_1_rule
documenting that CI > 0 and +10pp are the hit@1 gates;
docs/week0_preregistration.md:23; plan
docs/agentforensics_mvp_plan.md:133. - D4 still forbids new BQ jobs and live judges —
docs/agentforensics_mvp_plan.md:57and
docs/week0_preregistration.md"What this does not do" (line 41 ff.). - Does not merge 468/470, does not kick Week 1 — no files from those PRs
in the diff; doc explicitly states it "does not merge
presenter/do-not-merge PRs";clock_started: falseeverywhere and
not_week_1_execution: trueretained.
P0 sweep (all clear)
- Clock start: none —
clock_started: falsein fixture, banner, and plan;
every statement says the clock starts only with the first Week 1 snapshot
job. - Week 1 execution: none — no snapshot/Week 1 files touched.
- Live BQ / live judges: none — docs + fixture + tests only.
- Sealed numbers changed: none — v4 floors preserved exactly (80 / 80 / 0.6 /
0.45 / 70 / CI>0 / +10pp), pinned in
tests/test_week0_real_freeze.py:200-230. - Other-PR merges: none in the file list.
- Conflict markers: none (grep over the full diff).
P1 sweep (all clear)
- Plan vs sealed doc/JSON agreement — FIXED (the prior P2/P1). The r2
commit18e8eb2rewrites the two stale cells: value gate
(docs/agentforensics_mvp_plan.md:130) and week-6 hit@1 row
(docs/agentforensics_mvp_plan.md:133), plus the ledger line (line 141).
Grep confirms no remaining "preregistered fraction" / "preregistered floor"
/ "absolute hit@1 ≥" in any markdown; the only "freeze-candidate" mentions
left are historical references (CHANGELOG entry for the earlier freeze PR,
and the seal notes describing what the freeze-candidate left open) — not
live plan language. - Stale-phrase guard test — present.
tests/test_week0_real_freeze.py:248
(test_plan_gates_agree_with_the_sealed_preregistration) asserts the three
stale phrases are absent from the plan and that "≥50%", "completed", "no
separate absolute hit@1 floor", "fails", and the doc reference are
present. Sealed-value pins added at
tests/test_week0_real_freeze.py:126-143
(test_preregistration_is_sealed_and_does_not_start_the_clock) and extended
intest_real_preregistration_copies_the_v4_floors_without_a_clock
(value_gate_pct == 50, absolute_hit_at_1_floor is None). - CHANGELOG — present.
CHANGELOG.md:12entry records the seal, the
three filled numbers, and the explicit clock-still-off statement. - CI — green. All required checks SUCCESS on the reviewed HEAD (Format,
check-changes, scan-pr, Tests on Python 3.10–3.14, Configurator browser
smoke, Build package, cla/google); zizmor jobs SKIPPED by workflow design.
PR is MERGEABLE. Local pytest run was not possible from this worktree (no
pytest in the untracked.venv), but CI covers this test file on five
Python versions, so this is not a verification gap.
P2 (non-blocking, optional)
docs/agentforensics_mvp_plan.md:131still says "preregistered margin" for
the week-4 headroom gate. That is a distinct concept (headroom margin vs.
the total first-error baseline), not one of the three sealed numbers, and
the guard test deliberately does not forbid it — but a future pass could
point it at the sealed doc for symmetry. No action required for this PR.
Summary
The r2 commit resolves the one open item from the prior review: the plan of
record now states the sealed values (50% value gate on completed adjudicated
investigations, no separate absolute hit@1 floor, CI-spans-zero fails the
gate) instead of deferred "preregistered X" phrasing, and a guard test pins
the stale phrases out. Full contract holds; clock stays off; scope is clean.
LGTM.
Review written to file only; no GitHub review posted, no push, no merge, no
worktree modification.
…luators Version bump 0.5.1 -> 0.5.2 and the changelog cut for everything merged since v0.5.1 (2026-08-29), 19 commits. In the wheel: the versioned EvalBench import pipeline (#451-#453: immutable snapshots with the W0.4 failed-session contract, the version-pinned failed_sessions view, evalbench-score), the native agent_events snapshot writer (#464), the failure taxonomy frozen at G1 v0.1.0 and its span-level localisation layer with persisted span labels (#467, #470), the evaluator API unification behind PerformanceEvaluator with compatibility aliases (#123), and the canonical metric factories plus opt-in policy scorecard (#91). Repo side: skill-evolution host hooks and auditable patch provenance (#395, #477), the scheduled skill-evolution Cloud Run Job (#472), the OKF adapter example (#474), the AgentForensics Week 0 freeze and sealed preregistration (#435, #473), and the EvalBench demo and CLI-discoverability follow-ups. Entries the Unreleased section lacked are added in this cut: #91, #123 (its bullets move under Changed with the PR number), #395, #472, #474, #476.
…478) * chore(release): 0.5.2 — EvalBench snapshots, G1 taxonomy, unified evaluators Version bump 0.5.1 -> 0.5.2 and the changelog cut for everything merged since v0.5.1 (2026-08-29), 19 commits. In the wheel: the versioned EvalBench import pipeline (#451-#453: immutable snapshots with the W0.4 failed-session contract, the version-pinned failed_sessions view, evalbench-score), the native agent_events snapshot writer (#464), the failure taxonomy frozen at G1 v0.1.0 and its span-level localisation layer with persisted span labels (#467, #470), the evaluator API unification behind PerformanceEvaluator with compatibility aliases (#123), and the canonical metric factories plus opt-in policy scorecard (#91). Repo side: skill-evolution host hooks and auditable patch provenance (#395, #477), the scheduled skill-evolution Cloud Run Job (#472), the OKF adapter example (#474), the AgentForensics Week 0 freeze and sealed preregistration (#435, #473), and the EvalBench demo and CLI-discoverability follow-ups. Entries the Unreleased section lacked are added in this cut: #91, #123 (its bullets move under Changed with the PR number), #395, #472, #474, #476. * chore(release): file the skill-evolution bullets as repo-side scripts/skill_evolution.py is not in the wheel (which ships only src/bigquery_agent_analytics and src/bigquery_ontology), so the #395 and #397 entries move from Added to their own repo-side section, matching the Deploy section this cut already uses for #472.
Summary
Test plan
python3 -m pytest tests/test_week0_real_freeze.py— 25 passed at18e8eb2(24 at7ee1901;18e8eb2addstest_plan_gates_agree_with_the_sealed_preregistration)pyink --checkclean on the changed test;git diff --checkclean; fixture JSON parses18e8eb2: plan rows 3–4 and 6 state the sealed values and point atdocs/week0_preregistration.md(Codex P1, Kimi P2-1); freeze test assertsabsolute_hit_at_1_floor is None,value_gate_pct == 50, and rejects the stale plan phrases (Codex P2); banner nested-bold fixed (Kimi P2-2)18e8eb2