{"version":2,"width":120,"height":32,"timestamp":1788413071,"idle_time_limit":5.0,"command":"bash /tmp/okf-why-demo/record_why.sh","title":"BQAA → derived OKF · why the next agent does better · live-adapter proof","env":{"SHELL":"/bin/zsh"}}
[0.018334, "o", "\u001b[1;36m# Why a BQAA trace becomes derived OKF a later agent can look up\u001b[0m\r\n\u001b[2m# stdlib CLI · SDK PR 474 HEAD 476d37dc (do not merge) · derived/demo, nothing attested\u001b[0m\r\n\r\n"]
[1.237139, "o", "\u001b[1;33m# 1 · ASK\u001b[0m\r\n"]
[1.237177, "o", "\u001b[1;36m# A finance agent is asked for Germany last-quarter revenue — and whether to trust it.\u001b[0m\r\n\u001b[1;36m# Trap: Customer revenue (legacy) is still on the shelf, superseded.\u001b[0m\r\n"]
[2.372893, "o", "\u001b[1;32m$\u001b[0m python3 -c \"import json; t=json.load(open('examples/okf_bqaa_adapter/fixtures/live_observe_agent_events.json')); print(next(e['content']['text_summary'] for e in t['events'] if e['event_type']=='USER_MESSAGE_RECEIVED'))\"\r\n"]
[2.918367, "o", "What was active-customer revenue in Germany last quarter — and can I trust the number?\r\n"]
[5.342222, "o", "\r\n\u001b[1;33m# 2 · OBSERVE\u001b[0m\r\n\u001b[1;36m# The live trace ranked the current metric first and excluded the superseded one.\u001b[0m\r\n\u001b[1;36m# Receipt: UNVERIFIABLE — the number is unproven.\u001b[0m\r\n"]
[6.37213, "o", "\u001b[1;32m$\u001b[0m python3 examples/okf_bqaa_adapter/_why_observe.py\r\n"]
[6.91535, "o", "180 events · okf_rfc_observe_agent\r\nsession f21ee192-d989-4c38-894f-66b6b82eaf18\r\nrank 1: Active-customer revenue\r\nexcluded: Customer revenue (legacy) | superseded; out of force since 2026-06-20\r\nreceipt: UNVERIFIABLE · nothing attested\r\n"]
[9.739373, "o", "\r\n\u001b[1;33m# 3 · PUBLISH\u001b[0m\r\n\u001b[1;36m# One command turns that telemetry into derived OKF a later agent can look up.\u001b[0m\r\n"]
[10.670193, "o", "\u001b[1;32m$\u001b[0m python3 examples/okf_bqaa_adapter/run.py\r\n"]
[11.187286, "o", "LABEL derived/demo, observer-only, nothing attested\r\nADAPTER okf-bqaa-adapter:v0\r\nTABLE test-project-0728-467323.okf_rfc_demo.agent_events\r\nSESSION f21ee192-d989-4c38-894f-66b6b82eaf18\r\nTRACE e-c7214361-4017-43d7-af4e-cddfe51b09a4\r\nMODEL gemini-3.8-flash\r\nCONTEXT_REF okf:env-observe#674153c572f6\r\nRECEIPT "]
[11.187297, "o", "UNVERIFIABLE rcpt-observe-noexec\r\nOBSERVATION_ID sha256:85ea62a96e5076a292572a996f0408865c4c56aac696bbeb79a73bbc5eda8af6\r\nSNAPSHOT_ID sha256:f18befd010ff7e3d1fe140303626a82dc985c986846093f73643e7d0eea92b75\r\nPUBLICATION_ID sha256:53bd1651c43f69d53f591e4f91e3ccdda4640d8b36cb1dce1ac97328ffa39a77\r\nFILES "]
[11.187299, "o", "8"]
[11.1873, "o", "\r\n"]
[11.187329, "o", "OUT /Users/haiyuancao/BigQuery-Agent-Analytics-SDK-okf-adapter/examples/okf_bqaa_adapter/out\r\n"]
[12.81117, "o", "\u001b[1;36m# 8 derived stubs (metric, computation, policy, tables, log) with their own identity chain\u001b[0m\r\n"]
[12.811222, "o", "\u001b[1;36m# This is the handle a Knowledge Catalog entry would expose — this CLI path did not write Catalog.\u001b[0m\r\n"]
[13.836155, "o", "\u001b[1;32m$\u001b[0m grep -h '^title:' examples/okf_bqaa_adapter/out/bundle/*/*.md\r\n"]
[13.859456, "o", "title: Active-customer revenue by region and quarter\r\n"]
[13.859515, "o", "title: Active customer\r\n"]
[13.859584, "o", "title: Active-customer revenue\r\n"]
[13.85964, "o", "title: Customer revenue (legacy)\r\n"]
[13.859696, "o", "title: Revenue recognition eligibility\r\n"]
[13.859795, "o", "title: Billing invoice lines\r\n"]
[13.859829, "o", "title: CRM customers\r\n"]
[15.683164, "o", "\r\n\u001b[1;33m# 4 · NEXT AGENT\u001b[0m\r\n\u001b[1;36m# lookup(context_ref) returns that publication.\u001b[0m\r\n"]
[16.509644, "o", "\u001b[1;32m$\u001b[0m python3 examples/okf_bqaa_adapter/run.py --lookup 'okf:env-observe#674153c572f6'\r\n"]
[17.015956, "o", "{\r\n  \"context_ref\": \"okf:env-observe#674153c572f6\",\r\n  \"publication_id\": \"sha256:53bd1651c43f69d53f591e4f91e3ccdda4640d8b36cb1dce1ac97328ffa39a77\",\r\n  \"label\": \"derived/demo\"\r\n}\r\n"]
[17.020328, "o", "\u001b[1;36m# Payoff: use Active-customer revenue, not legacy; the number is unproven.\u001b[0m\r\n"]
[19.641044, "o", "\r\n\u001b[2m# junk refs fail closed (expected exit 2, not a crash)\u001b[0m\r\n"]
[19.641096, "o", "\u001b[1;32m$\u001b[0m python3 examples/okf_bqaa_adapter/run.py --lookup 'okf:env-junk#deadbeef'\r\n"]
[20.10383, "o", "FAIL_CLOSED context_ref not bound in mapping (fail closed): 'okf:env-junk#deadbeef'\r\n"]
[20.108476, "o", "\u001b[2m# expected FAIL_CLOSED exit 2 — not a crashed demo\u001b[0m\r\n"]
[22.456114, "o", "\u001b[2J\u001b[H\u001b[1;33m# 4 · NEXT AGENT\u001b[0m\r\n"]
[22.456177, "o", "\u001b[1;32m$\u001b[0m python3 examples/okf_bqaa_adapter/run.py --lookup 'okf:env-observe#674153c572f6'\r\n"]
[22.535625, "o", "{\r\n  \"context_ref\": \"okf:env-observe#674153c572f6\",\r\n  \"publication_id\": \"sha256:53bd1651c43f69d53f591e4f91e3ccdda4640d8b36cb1dce1ac97328ffa39a77\",\r\n  \"label\": \"derived/demo\"\r\n}\r\n"]
[22.53988, "o", "\u001b[1;36m# Payoff: use Active-customer revenue, not legacy; the number is unproven.\u001b[0m\r\n"]
[26.165057, "x", "0"]
