Skip to content

feat(examples): live ADK+BQAA observe trace → derived OKF adapter - #474

Merged
haiyuan-eng-google merged 5 commits into
GoogleCloudPlatform:mainfrom
caohy1988:feat/okf-bqaa-adapter
Sep 3, 2026
Merged

haiyuan-eng-google merged 5 commits into
GoogleCloudPlatform:mainfrom
caohy1988:feat/okf-bqaa-adapter

Conversation

@caohy1988

Copy link
Copy Markdown
Collaborator

Summary

  • New example examples/okf_bqaa_adapter/: a real ADK observe agent (okf_rfc_observe_agent, gemini-3.8-flash, Vertex global) writes retrieve/receipt-shaped rows through BigQueryAgentAnalyticsPlugin into test-project-0728-467323.okf_rfc_demo.agent_events.
  • The committed fixtures/live_observe_agent_events.json + fixtures/live.json are the adapter input and the demo proof (not the synthetic germany fixture).
  • Python port of observe+adapt+computeIdentities (okf-bqaa-adapter:v0). Live identities are new and correct. germany hashing, if present, is labelled synthetic.
  • Fail-closed lookup(context_ref) via mapping.json. never-emit scan empty. --session rejects non-retrieve traces (consume session 04fa3d56-… fails closed).
  • No Catalog/Dataplex/kcmd writes. No authored cymbal-finance-core read/write. Not RFC: AgentForensics collaboration — automated failure taxonomy and span-level trace auditing over BQAA traces #435. derived/demo. Do not merge.

Live run:

  • session_id: 1e6dfed7-27ce-4c4d-b2e7-c45de7c241d1
  • trace_id: e-51cdf04f-7c34-48b7-8a3f-f2315073bfc1
  • dataset: test-project-0728-467323.okf_rfc_demo.agent_events
  • model: gemini-3.8-flash
  • vertex: global
  • ran_at: 2026-09-03T03:49:30.956970+00:00 (2026-09-02 8:49 PM PT)
  • HEAD: c0806b52aded58f8eabc2176ffeb48ffe33b86cd

Artifacts: intent.md, spec.md, plan.md.

Test plan

  • pytest tests/examples/test_okf_bqaa_adapter.py (hermetic, no GCP) — 15 passed
  • committed live export has retrieve + attested-computation kinds, gemini-3.8-flash, a session_id
  • adapter produces identities; lookup(known) works; lookup(unknown) fails closed; never-emit empty
  • bash autoformat.sh clean
  • reviewers: Codex + Kimi COMMENT only (not self-LGTM)

derived/demo, observer-only, not #435, do not merge.

Observer-only adapter whose source of truth is a real ADK observe agent
plus the committed BQAA agent_events export, not the synthetic germany
fixture. Fail-closed lookup; germany hashing remains a labelled regression.

@caohy1988 caohy1988 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kimi

HEAD SHA: c0806b52aded58f8eabc2176ffeb48ffe33b86cd

Verdict: COMMENT-NOT-LGTM (P0=0 P1=1)

P0

(none)

P1

  • Demo gate not met — live export has 15 events, not >=100. examples/okf_bqaa_adapter/fixtures/live_observe_agent_events.json contains exactly 15 events (3 LLM_REQUEST, 3 LLM_RESPONSE, 2 TOOL_STARTING, 2 TOOL_COMPLETED, 1 USER_MESSAGE_RECEIVED, 1 AGENT_STARTING, 1 AGENT_COMPLETED, 1 INVOCATION_STARTING, 1 INVOCATION_COMPLETED), and fixtures/live.json:12 pins "event_count": 15. The stated demo gate is n>=100; a single-turn run with two tool calls does not demonstrate the adapter against a non-trivial trace. This blocks LGTM until a >=100-event live export is committed (or the gate is explicitly renegotiated). Note live.json is honest about the count — this is a scope gap, not a mislabel.

P2

  • fixtures/live.json:11 — ran_at: 2026-09-03T03:49:30.956970+00:00 (and exported_at in the events fixture) is ~1 day in the future relative to the review date (2026-09-02). Same clock-skew smell as the Week 0 sealing note. Doesn't invalidate the trace, but it weakens the "reviewers can re-query and compare" claim — worth normalizing before re-running for the 100-event gate.
  • tests/examples/test_okf_bqaa_adapter.py:99-101 — the _fixture assertion is effectively tautological ("SYNTHETIC" not in ... or "LIVE" in ...): any string containing "LIVE" passes even if it also says SYNTHETIC. The next line's startswith("LIVE BQAA export") does the real work; consider dropping the weak clause.

Evidence (verified at c0806b5)

  • Live, not germany, not consume stub: export session_id = 1e6dfed7-27ce-4c4d-b2e7-c45de7c241d1, trace_id = e-51cdf04f-..., uniform across all 15 events. Neither sess-4c1f9a2e7b3d (germany) nor 04fa3d56-f2f1-413e-8c2b-ec116835af84 (consume stub) appears anywhere in the fixture. Live publication_id sha256:bb95e037... and observed_publication_id sha256:674153c5... are distinct from the germany pin a25e1c0ccbca...; test_live_identities_are_not_germany asserts this.
  • Retrieve/receipt shaped, live plugin shape: both OK TOOL_COMPLETED rows carry content.result.kind = okf-context:retrieve and okf-context:attested-computation (kind on content.result, not attributes.tool.kind — asserted in the test). Receipt verdict is UNVERIFIABLE with verdict_reason: "no-execution; observer-only demo, nothing attested" and receipt_id: rcpt-observe-noexec — nothing ATTESTED; the only "ATTESTED" strings are the instruction text and the model correctly reporting the number is unproven.
  • Model: all 3 LLM_REQUEST rows carry attributes.model = gemini-3.8-flash; observe_agent.py defaults DEMO_MODEL_ID=gemini-3.8-flash and check_model fail-closes on 2.5 / 3.5 / flash-latest before agent construction.
  • Fail-closed lookup: lookup(unknown) raises UnknownContextRefError, CLI exits 2 (tested with the germany ref okf:env-demo#a25e1c0ccbca and ""). Never-emit list matches spec §4 exactly (9 keys); deep scan of both TOOL_COMPLETED payloads is clean; lookup.NEVER_EMIT == adapter.NEVER_EMIT pinned by test.
  • Consume-stub rejection: require_retrieve_shaped rejects a stub-echo trace built from the live export (both retrieve-kind and receipt-kind absence tested).
  • Plugin/agent hygiene: BigQueryLoggerConfig(batch_size=1, shutdown_timeout=20.0, max_content_length=64*1024); InMemoryRunner session created before run_async; tools read only the in-process OBSERVED_CATALOG, never cymbal-finance-core.
  • Synthetic labelling: fixtures/synthetic/README.md and the germany test are explicitly labelled SYNTHETIC hashing regression; live _fixture says "LIVE BQAA export" and never claims SYNTHETIC.
  • Adapter purity / repo hygiene: adapter.py is stdlib-only (no google.* imports; test greps source). Diff touches only examples/okf_bqaa_adapter/ + tests/examples/ — .refs-okf/ not in the PR, src/ untouched, no secrets found.
  • Tests: pytest tests/examples/test_okf_bqaa_adapter.py -q → 15 passed (hermetic, no GCP).
@caohy1988

Copy link
Copy Markdown
Collaborator Author

Kimi

HEAD: c0806b52aded58f8eabc2176ffeb48ffe33b86cd (confirmed via git rev-parse HEAD)

Verdict: CHANGES REQUESTED

The adapter code, observe agent, fail-closed behavior, tests, and fixtures are all in good shape against spec.md / intent.md — no P0 issues. But the committed live export contains 15 events, far below the n>=100 gate for the real-trace demo, so this cannot be LGTM'd.

P0

None.

  • Observer-only holds: tools read only the in-process OBSERVED_CATALOG (examples/okf_bqaa_adapter/observe_agent.py:96-128); no authored cymbal-finance-core read, no SQL execution, no writes to BQ/Dataplex/kcmd — the only writes are local fixture files in export_session (observe_agent.py:427-447).
  • No ATTESTED claim: receipt verdict is UNVERIFIABLE with reason no-execution; observer-only demo, nothing attested; "ATTESTED" appears only in negated instruction text and the model's final answer explicitly says the number is unproven.
  • Model is gemini-3.8-flash in code and in all 3 LLM_REQUEST rows; check_model refuses 2.5/3.5/flash-latest (observe_agent.py:143-151).
  • No secrets in the committed fixtures.
  • Germany is not the demo source of truth: default input is the live export (run.py:51, adapter.py:73); the germany test is skipif-marked, SYNTHETIC-labelled, and test_live_identities_are_not_germany asserts the live triple differs from the pinned JS triple. Live and germany fixtures are byte-distinct with different agents/sessions.
  • No never-emit keys on tool payloads: deep-scan of every TOOL_STARTING/TOOL_COMPLETED content.result over the committed export finds zero hits (also pinned by test_live_export_tool_payloads_never_emit).

P1

  • Committed live export has n=15 events, below the n>=100 real-trace gate. fixtures/live_observe_agent_events.json events array = 15 rows (3× LLM_REQUEST, 3× LLM_RESPONSE, 2× TOOL_STARTING, 2× TOOL_COMPLETED, and 1 each of USER_MESSAGE_RECEIVED / INVOCATION_STARTING / AGENT_STARTING / AGENT_COMPLETED / INVOCATION_COMPLETED), and fixtures/live.json:12 pins event_count: 15. This is a single-question smoke trace, not the 100+ event real-trace demo Haiyuan asked for (8:51 PM PT). Re-run the observe agent against a workload that produces >=100 agent_events rows and re-commit the export, live.json, and live_identities.json.

P2

  • tests/examples/test_okf_bqaa_adapter.py:104 asserts len(events) == meta["event_count"], which pins whatever count the export happens to have — it cannot catch a trace-size regression. Consider adding an explicit assert len(events) >= 100 once the larger export lands.
  • run.py:92-103 (--session path) builds the trace without agent= metadata, so the agent block is inferred from rows; harmless for the fail-closed gate, but the derived bundle's agent.model can come out None if a session has no LLM_REQUEST attributes — worth a comment or a guard.

Evidence

  • session_id: 1e6dfed7-27ce-4c4d-b2e7-c45de7c241d1 (uniform across all 15 rows; distinct from the consume session 04fa3d56-…)
  • trace_id: e-51cdf04f-7c34-48b7-8a3f-f2315073bfc1; agent okf_rfc_observe_agent; table test-project-0728-467323.okf_rfc_demo.agent_events; Vertex location global
  • model: gemini-3.8-flash (fixture header + all LLM_REQUEST attributes)
  • event_count: 15 (n>=100 gate fails)
  • retrieve/receipt kinds present: yes — okf-context:retrieve and okf-context:attested-computation on OK TOOL_COMPLETED rows, on the live plugin shape (content.result.kind)
  • live vs germany distinct: yes — different bytes, agent names, sessions; live publication_id sha256:bb95e0…f823df ≠ germany sha256:a25e1c…0ea52c5
  • lookup fail-closed: yes — UnknownContextRefError on unknown/empty/non-string refs, CLI exit 2 (lookup.py:62-73, lookup.py:98-102); tested
  • receipt verdict: UNVERIFIABLE (no-execution), receipt_id rcpt-observe-noexec; receipt context_ref binds to the retrieve envelope
  • consume session: referenced only as the reject case; require_retrieve_shaped rejects the stub-echo trace shape (tested)
  • tests: tests/examples/test_okf_bqaa_adapter.py — 15 passed locally at this SHA; they pin the live export, assert both kinds, the model, identities against live_identities.json, and fail-closed lookup

@caohy1988 caohy1988 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codex

HEAD SHA: c0806b52aded58f8eabc2176ffeb48ffe33b86cd

Verdict: COMMENT-NOT-LGTM (P0=0 P1=2)

P0

(none)

P1

  • examples/okf_bqaa_adapter/fixtures/live.json:12 - The committed live export has exactly 15 events, below the required n >= 100 demo gate. The live BigQuery session also currently returns 15 rows, and the test only asserts that the fixture length equals its own metadata. This blocks LGTM. Commit a genuine live export with at least 100 events, regenerate live.json and live_identities.json from that session, and add an n >= 100 assertion; do not pad or synthesize events.
  • examples/okf_bqaa_adapter/observe_agent.py:201 (also observe_agent.py:406 and adapter.py:336-341) - Receipt binding is not fail-closed. Both producer/export checks use startswith, while require_retrieve_shaped() only requires that some receipt exists. I reproduced an unrelated receipt reference passing the gate and then being added by mapping_for() as a valid lookup key. Require non-empty exact equality between the retrieve and receipt context_ref at all three boundaries, with negative tests for unrelated and suffix-appended references.

P2

(none)

Evidence

  • Read-only BigQuery verification returned 15 rows for session 1e6dfed7-27ce-4c4d-b2e7-c45de7c241d1; all selected exported columns matched the 15 committed event rows after JSON normalization. The rows are for trace e-51cdf04f-7c34-48b7-8a3f-f2315073bfc1, agent okf_rfc_observe_agent, and model gemini-3.8-flash.
  • The live session has OK TOOL_COMPLETED rows for okf-context:retrieve and okf-context:attested-computation, with kind under content.result.kind. Both use okf:env-observe#674153c572f6. The receipt verdict is UNVERIFIABLE with reason no-execution; observer-only demo, nothing attested; no receipt is ATTESTED.
  • The consume-stub session 04fa3d56-f2f1-413e-8c2b-ec116835af84 re-queries as okf_rfc_consume_agent with lookup_okf_context and no OKF completed kinds, so it fails the retrieve-shaped check and is not the committed live session.
  • The Germany fixture is explicitly labelled SYNTHETIC, uses session sess-4c1f9a2e7b3d, and is only the hashing regression. The live derived publication ID is sha256:bb95e037919afc71e38454b70cd67f118af3c9804b8d3e6596049d1fc1f823df, distinct from Germany's sha256:a25e1c0ccbcad270bf9e3b7a8f792167795381b6880bdc8a1ccde8df40ea52c5. The live _fixture starts with LIVE BQAA export, not SYNTHETIC.
  • DEMO_MODEL_ID defaults to gemini-3.8-flash; isolated checks refused 2.5, 3.5, and flash-latest. The plugin uses batch_size=1; create_session precedes run_async; the tools read only the in-process observed catalog and execute nothing.
  • The nine-key never-emit list matches adapter.js, spec.md, adapter.py, lookup.py, and the live fixture; the committed tool payload scan found zero violations. Known lookup succeeds and unknown/empty refs fail closed. adapter.py and lookup.py import neither google.cloud nor google.adk.
  • pytest -p no:cacheprovider tests/examples/test_okf_bqaa_adapter.py -q passed: 15 tests. The PR changes only examples/ and tests/; .refs-okf/ and src/bigquery_agent_analytics/ are absent from the diff, and the diff secret-pattern scan was empty.
The observe agent is multi-turn under one session_id; a 15-row smoke is
not the demo. germany remains a labelled hashing regression.
Run 12 retrieve+receipt turns in one session_id, export 180 real
agent_events, isolate the CLI test from a preloaded google.adk, and
pin len(events) >= 100.
Prefix matches no longer bind. Producer, export, and
require_retrieve_shaped require non-empty equality; unbound receipt
refs are not lookup keys. SYNTHETIC germany keeps its GoogleCloudPlatform#2 hashing suffix.

@caohy1988 caohy1988 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kimi

HEAD SHA: 476d37dc9d4210a335c2f77e78003f6a5ebe2878 (confirmed via git rev-parse HEAD)

Verdict: COMMENT-LGTM

Both P1s from my review of c0806b5 are fixed, and no new P0/P1 found.

P0

None.

  • Observer-only holds: tools still read only the in-process OBSERVED_CATALOG (examples/okf_bqaa_adapter/observe_agent.py:120-152); no authored cymbal-finance-core read, no SQL execution; the only writes are local fixture files in export_session. No Catalog/Dataplex/kcmd writes.
  • Nothing ATTESTED: all 12 receipts in the live export carry verdict UNVERIFIABLE / no-execution; observer-only demo, nothing attested; "verdict": "ATTESTED" occurs zero times in the fixture; "ATTESTED" appears only in the negated instruction text ("if the verdict is not ATTESTED, say plainly that the number is unproven").
  • Model is gemini-3.8-flash in live.json, the fixture header, and all 36 LLM_REQUEST attribute rows; check_model still refuses 2.5/3.5/flash-latest (observe_agent.py:167-175).
  • No secrets in committed fixtures.
  • Germany still not the demo source of truth: default input is the live export; the germany fixture keeps its #2 hashing suffix and is exercised only via the SYNTHETIC branch of adapt (adapter.py:562-573) in a skipif-marked hashing regression; test_live_identities_are_not_germany still pins the live triple as distinct (live publication_id sha256:53bd1651…, germany sha256:a25e1c0c…).
  • Never-emit clean: deep-scan of every TOOL_STARTING/TOOL_COMPLETED content.result across all 180 rows finds zero hits.

P1

None — both prior P1s resolved.

  • n>=100 gate: FIXED. fixtures/live.json:12 pins event_count: 180, equal to len(events) in fixtures/live_observe_agent_events.json (36 LLM_REQUEST / 36 LLM_RESPONSE / 24 TOOL_STARTING / 24 TOOL_COMPLETED / 12× USER_MESSAGE_RECEIVED / INVOCATION_STARTING / AGENT_STARTING / AGENT_COMPLETED / INVOCATION_COMPLETED). Session is the new multi-turn f21ee192-d989-4c38-894f-66b6b82eaf18 — not the 15-row 1e6dfed7-… smoke, not germany, not consume 04fa3d56-…. export_session now hard-gates len(rows) < MIN_EVENTS (100) with SystemExit ("15-row smokes are not the demo"; observe_agent.py:451-455), and the multi-turn loop keeps asking in the same session until >=100 rows (observe_agent.py:321-343). Tests now assert len(events) >= 100 and >= 10 USER_MESSAGE_RECEIVED turns (tests/examples/test_okf_bqaa_adapter.py:104-110) — my prior P2 about the unpinned count is also addressed.
  • Receipt binding: FIXED. refs_bound is non-empty exact equality (adapter.py:327-334); the old startswith(ENVELOPE_REF) is gone from the producer (observe_agent.py:225), the export gate (observe_agent.py:471), require_retrieve_shaped (adapter.py:351), and mapping_for (adapter.py:706), which now never indexes an unbound receipt ref. Negative tests cover suffix-appended (ref + "/extra"), unrelated (okf:env-other#deadbeef), and empty refs at both the refs_bound unit level and the require_retrieve_shaped level, plus a mapping_for exclusion test (test_okf_bqaa_adapter.py:330-362).
  • Lookup fail-closed: unchanged (UnknownContextRefError, CLI exit 2), still tested with known/unknown/empty refs.
  • Consume session 04fa3d56-… still only the reject case; the stub-echo shape is still rejected by require_retrieve_shaped.

P2

  • observe() picks the first retrieve envelope and the last receipt (adapter.py:292, 295). With 12 turns this works because every turn emits the same ref, but a mixed-ref trace would silently bind last-receipt to first-retrieve. Consider asserting all retrieve/receipt refs are uniform, or pairing per-invocation. Advisory only — require_retrieve_shaped already fails closed on any mismatch between the pair it picks.
  • fetch_session_rows treats a stable row count as "done" (observe_agent.py:425-436); two consecutive equal polls during a long model call could truncate an export. The MIN_EVENTS gate catches the small-export case, so advisory only.

Evidence

  • event_count: 180 (== live.json.event_count, >= 100; all rows status OK, single uniform session)
  • session_id: f21ee192-d989-4c38-894f-66b6b82eaf18; trace_id e-c7214361-4017-43d7-af4e-cddfe51b09a4; agent okf_rfc_observe_agent; table test-project-0728-467323.okf_rfc_demo.agent_events
  • model: gemini-3.8-flash (36/36 LLM_REQUEST rows)
  • kinds: okf-context:retrieve + okf-context:attested-computation present on OK TOOL_COMPLETED rows (12 each); all receipt context_refs exactly equal the retrieve ref okf:env-observe#674153c572f6
  • refs_bound exact: yes — == with non-empty check; no startswith remains on the bind path
  • negative tests present: suffix-appended, unrelated, and empty receipt refs all fail closed; mapping never indexes an unbound ref
  • live identities re-pinned for the new session (live_identities.json inputs.session_id matches; distinct from germany)
  • hermetic tests: 18 passed at this SHA (tests/examples/test_okf_bqaa_adapter.py), including the SYNTHETIC germany hashing regression against the pinned JS triple

@caohy1988 caohy1988 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codex

HEAD SHA: 476d37dc9d4210a335c2f77e78003f6a5ebe2878

Verdict: COMMENT-LGTM (P0=0 P1=0)

P0

(none)

P1

(none)

P2

(none)

Evidence

  • The committed live fixture has 180 events, exactly matching fixtures/live.json.event_count, in session f21ee192-d989-4c38-894f-66b6b82eaf18. It is neither the prior 15-row smoke session, Germany sess-4c1f9a2e7b3d, nor consume stub 04fa3d56-f2f1-413e-8c2b-ec116835af84.
  • A read-only BigQuery check independently returned 180 rows, 12 invocations, 12 retrieve completions, and 12 attested-computation receipt completions for that session. The committed timestamps match the table span.
  • All LLM request rows use gemini-3.8-flash. The live tool rows contain both okf-context:retrieve and okf-context:attested-computation under content.result.kind.
  • Retrieve and receipt refs are the same non-empty value, okf:env-observe#674153c572f6. refs_bound() uses exact equality; startswith(ENVELOPE_REF) is absent from producer/export code. Tests reject suffix-appended, unrelated, empty, and null refs.
  • All 12 receipts are UNVERIFIABLE with no-execution; zero are ATTESTED. The example remains observer-only and the tool payload never-emit scan is empty.
  • Unknown lookup refs fail closed. The recomputed live publication ID is sha256:53bd1651c43f69d53f591e4f91e3ccdda4640d8b36cb1dce1ac97328ffa39a77, distinct from the SYNTHETIC Germany hashing pin sha256:a25e1c0ccbca....
  • Germany remains explicitly labelled SYNTHETIC hashing-only and is not the default/demo path. No .refs-okf/ or src/ files are in the PR, and the reviewed example diff contains no detected secrets.
  • Hermetic verification passed: 18 passed for tests/examples/test_okf_bqaa_adapter.py without running observe_agent.py or creating a live ADK session.

@caohy1988 caohy1988 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codex

HEAD SHA: 476d37dc9d4210a335c2f77e78003f6a5ebe2878

Verdict: COMMENT-LGTM

P0

(none)

P1

(none)

P2

(none)

Evidence

  • fixtures/live.json reports event_count=180; len(events) in live_observe_agent_events.json is also 180. All events use session f21ee192-d989-4c38-894f-66b6b82eaf18 (not the prior 15-row, synthetic Germany, or consume sessions), with 12 user turns.
  • Model: gemini-3.8-flash. Tool kinds present: okf-context:retrieve and okf-context:attested-computation (12 completed rows each).
  • refs_bound() is fail-closed non-empty exact equality (retrieve_ref == receipt_ref). It gates okf_run_attested_computation, export_session, require_retrieve_shaped, and mapping_for; producer/export contain no startswith(ENVELOPE_REF) binding.
  • Negative coverage is present for suffix-appended, unrelated, empty, and null receipt refs; unbound receipt refs are not indexed by mapping_for.
  • Unknown lookups fail closed. Tool-payload never-emit checks are empty, the reviewed example files contain no detected credential patterns, and all 12 receipt verdicts are UNVERIFIABLE with nothing attested.
  • The committed input is labelled LIVE BQAA export; Germany remains explicitly SYNTHETIC hashing-only and is not the demo/default path.
  • Hermetic verification: pytest -q tests/examples/test_okf_bqaa_adapter.py → 18 passed in 0.06s. No ADK or live GCP run was performed.
@haiyuan-eng-google
haiyuan-eng-google merged commit 4f54b5c into GoogleCloudPlatform:main Sep 3, 2026
15 checks passed
caohy1988 added a commit that referenced this pull request Sep 5, 2026
…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.
haiyuan-eng-google pushed a commit that referenced this pull request Sep 5, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants