Skip to content

docs(dashboard): add end-user manual for the Looker Studio dashboard - #425

Merged
haiyuan-eng-google merged 3 commits into
mainfrom
agent/dashboard-user-manual
Aug 14, 2026
Merged

haiyuan-eng-google merged 3 commits into
mainfrom
agent/dashboard-user-manual

Conversation

@caohy1988

Copy link
Copy Markdown
Collaborator

Summary

  • add dashboard/looker_studio/USER_MANUAL.md, an end-user guide to the Looker Studio dashboard, kept separate from the contributor README
  • link it from the dashboard README ("Just want to use the dashboard?") and the repository README's documentation table

Documentation Generated

File Diataxis quadrant Description
dashboard/looker_studio/USER_MANUAL.md Tutorial + How-to + Reference + Troubleshooting Prerequisites, three-step setup, page-by-page reading guide, everyday tasks, troubleshooting table, plain-language privacy/cost summary
dashboard/looker_studio/README.md (link) One-paragraph pointer separating user docs from contributor docs
README.md (link) Documentation-table row for the manual

Notes for review

  • Every UI string in the manual was verified against docs/index.html / app.mjs at head ("Create my dashboard", "Copy setup link", "Copy security checklist", the Ready for … and Split … status lines).
  • The "paste a BigQuery Console table link" rows describe the behavior added in feat(dashboard): accept BigQuery Console table links #424; if this lands first, that table documents a feature that arrives with feat(dashboard): accept BigQuery Console table links #424. Suggest merging feat(dashboard): accept BigQuery Console table links #424 first (it is CI-green and finding-free).
  • Facts sourced from the contributor README and docs/dashboard-implementation.md: 8 pages / 37 parity charts, shared rolling-90-day date control, 90-second cold-load allowance, 1280 px minimum viewport with collapsed drawer, the 2026-07-29 clipped-page republish, and the Viewer's-Credentials sharing steps.

Testing

  • python3 -m pytest tests/test_looker_studio_dashboard.py — 26 passed
  • Link check: relative links (README.md, README.md#large-table-operating-guidance, USER_MANUAL.md) resolve at their committed paths
Add dashboard/looker_studio/USER_MANUAL.md, a user-facing guide separate
from the contributor README: prerequisites, three-step setup through the
configurator (including fully qualified table-ID and Console table-link
paste), the secure-sharing checklist, a page-by-page reading guide, common
tasks (setup links, billing project, cost habits), troubleshooting, and a
plain-language privacy/cost summary.

Link the manual from the dashboard README and the repository README so
dashboard users find it without reading contributor documentation.
@caohy1988

Copy link
Copy Markdown
Collaborator Author

Independent review at 3e28d08 (draft) — fact-checked against the shipped behavior, no findings

Docs-only PR, so the review is accuracy verification. Every load-bearing claim checked against the code and the week's verified record:

No code paths touched; the browser-smoke gate doesn't apply (no docs/ changes). CI green. Ready to undraft from this side.

@caohy1988

Copy link
Copy Markdown
Collaborator Author

Code Review Results

Scope: PR #425, b979f83 -> 3e28d08 (3 files, 225 insertions)
Intent: Add a standalone end-user manual for creating, securing, using, and troubleshooting the Looker Studio dashboard, and link it from both README files.
Mode: markdown report-only

Reviewers: correctness, security, adversarial

  • Security was selected because the manual defines BigQuery permissions, Viewer credentials, sharing, privacy, and billing behavior.
  • Adversarial review was selected because incorrect setup or recovery instructions can block access or lead users to abandon a valid provisioning flow.

Triage Groups

Group Findings Context Preferred Resolution Why
Access model #1, #6 The manual compresses separate permission and verification requirements Correct the read/job permission model first (#1), then mirror the complete security checklist (#6) One pass can make initial setup and shared-viewer guidance consistent
Known failure recovery #2, #4 Two normal failure states are missing or routed to the wrong remedy Add the provisioning warning (#2), then split quota from IAM recovery (#4) Users need distinct actions for transient provisioning, rendering, permissions, and quotas

P1 -- High

# File Issue Reviewer Confidence
1 dashboard/looker_studio/USER_MANUAL.md:24 Preview is presented as proof of query-job access correctness, security, adversarial 100
2 dashboard/looker_studio/USER_MANUAL.md:78 The known transient provisioning error screen is undocumented correctness, adversarial 100
  • Add streaming evaluation, Dashboard V2, design docs, and CI workflow #1 - A least-privilege user can preview table rows and still lack bigquery.jobs.create in the billing project. Every dashboard query then fails, even though the manual says the user is ready. The same omission appears in the shared-viewer guidance at line 203. State that Preview proves table-read access only, and require a simple query or confirmed BigQuery Job User permission in the selected billing project. Google documents table-row listing and query-job creation as separate permission paths in tabledata.list and BigQuery query troubleshooting.
  • Revamp README, enhance documentation navigation, and fix CI #2 - The configurator warns that the new tab can show a loading, not-found, or error page for about 10 seconds while Google provisions the report, and explicitly says not to close it. The manual describes only the later 90-second chart-render wait. Add the measured provisioning warning to Step 2 and add the missing troubleshooting row; keep it separate from chart rendering.

P2 -- Moderate

# File Issue Reviewer Confidence
3 dashboard/looker_studio/USER_MANUAL.md:185 The clean-clone CLI path omits the required PyYAML dependency correctness, adversarial 100
4 dashboard/looker_studio/USER_MANUAL.md:201 Quota failures are given only IAM remedies adversarial 75
6 dashboard/looker_studio/USER_MANUAL.md:95 The manual omits the checklist's viewer-only-account test security 75
  • Revise README for clarity and updated link #3 - hydrate_dashboard.py imports yaml before argument parsing, but cloning the repository does not install dependencies and the manual names only an authenticated bq CLI. Add a PyYAML install step or a supported project dependency-install command, then smoke-test the sequence in a clean environment.
  • Overhaul README, add documentation indexes, and fix CI issues #4 - The troubleshooting row groups permission and quota errors, but every remedy is an access check. IAM changes do not restore an exhausted quota. Split the row and direct quota failures to the named BigQuery quota or reservation, its reset behavior, and the billing-project administrator.
  • Add Python 3.14 support and fix related test issues #6 - The manual says its four security steps are the same as the copied checklist. The actual checklist also requires a test with an account that has only viewer access and says to keep the report private until all checks pass. Add that fifth check or remove the claim of equivalence; the safer fix is to mirror the checklist.

Actionable Findings

# File Issue Route Notes
1 dashboard/looker_studio/USER_MANUAL.md:24 Separate table-read and query-job permission checks gated_auto -> downstream-resolver Update setup and shared-viewer wording; verify against the selected billing project
2 dashboard/looker_studio/USER_MANUAL.md:78 Document the transient provisioning page gated_auto -> downstream-resolver Add the approximately 10-second do-not-close warning and an 11th troubleshooting row
3 dashboard/looker_studio/USER_MANUAL.md:185 Install or declare PyYAML for the CLI path gated_auto -> downstream-resolver Re-run from a dependency-clean environment
4 dashboard/looker_studio/USER_MANUAL.md:201 Give quota errors a quota-specific remedy gated_auto -> downstream-resolver Keep permission and quota recovery separate
6 dashboard/looker_studio/USER_MANUAL.md:95 Mirror the complete security checklist gated_auto -> downstream-resolver Keep private until the viewer-only-account test passes

Coverage

  • Exact head rechecked: 3e28d08aa5268721900a0860dffe5d0ccd89a551; PR remains open and draft. PR feat(dashboard): accept BigQuery Console table links #424 is already in its ancestry, so the Console-link dependency is satisfied.
  • All required PR checks are green, including Python 3.10-3.14, package build, format, configurator browser smoke, CLA, and scan-pr.
  • Local isolated-head verification: 26 dashboard pytest cases passed; the full configurator MJS suite passed; browser-smoke negative self-tests passed; git diff --check passed.
  • Relative README/manual links and the large-table-operating-guidance anchor resolve at the reviewed head.
  • Independent validator batch: 6 candidates checked, 5 validated, 1 dropped. The rejected item concerned mixed table/dataset Console workspaces; the existing close-extra-tabs or paste-the-dotted-ID fallback is sufficient.
  • Cross-model review was not run. The independent validator checked every retained finding. No reviewer failed, no finding was malformed, and none was suppressed by confidence or mode-aware demotion.
  • No review plan was discovered, so settlement suppression was not evaluated.
  • Residual risk: the live Looker Studio template is mutable. The repository records a 2026-08-11 live verification, but repository-only review cannot prove that the external report has not changed since then.
  • Testing gap: no check keeps USER_MANUAL.md synchronized with configurator warnings, parser behavior, CLI dependencies, and the security checklist.
  • This fresh result supersedes the existing no-findings comment at the same PR head.

Verdict

Not ready

Reasoning: #1 can send a normal least-privilege user into a dashboard where every chart fails. #2 can make a user close a valid provisioning flow. The three P2 items are direct, low-risk documentation corrections and should land in the same revision.

Fix order: #1 permission model -> #2 provisioning warning -> #6 security checklist -> #3 CLI dependency -> #4 quota troubleshooting.

Prioritized actionable recap

  1. Add streaming evaluation, Dashboard V2, design docs, and CI workflow #1 P1 - USER_MANUAL.md:24 - mechanical: distinguish Preview/read access from query-job permission, including shared viewers.
  2. Revamp README, enhance documentation navigation, and fix CI #2 P1 - USER_MANUAL.md:78 - mechanical: document the approximately 10-second transient error page and do-not-close action.
  3. Add Python 3.14 support and fix related test issues #6 P2 - USER_MANUAL.md:95 - mechanical: add the viewer-only-account security test.
  4. Revise README for clarity and updated link #3 P2 - USER_MANUAL.md:185 - mechanical: make the PyYAML prerequisite reproducible.
  5. Overhaul README, add documentation indexes, and fix CI issues #4 P2 - USER_MANUAL.md:201 - mechanical: split quota recovery from IAM recovery.
Separate the table-read check (Preview) from the run-jobs check (a small
query, or the BigQuery Job User role in the billing project) — Preview
alone does not prove a user can run dashboard queries. Apply the same
two-permission model to the shared-viewer troubleshooting row.

Document the ~10-second provisioning window after clicking Create my
dashboard, in Step 2 and as a troubleshooting row, distinct from the
90-second chart-render allowance.

Mirror the configurator's full five-step security checklist, including
keeping the report private until the viewer-only-account test passes.

Split quota errors from permission errors and give them quota-specific
remedies; IAM changes cannot fix an exhausted quota.

Declare the PyYAML dependency for the hydrate_dashboard.py path,
verified by a clean-venv smoke test (fails before install, works after).
@caohy1988

Copy link
Copy Markdown
Collaborator Author

Round-2 verification at 3a8313c — all five corrections accurate; concur with the review

I checked the correction diff against the findings and the repo:

  1. Add streaming evaluation, Dashboard V2, design docs, and CI workflow #1 (permission split) — the new read/run-jobs split is the correct BigQuery model (tabledata.list vs jobs.create are separate paths), the SELECT COUNT(*) self-check is the right user-verifiable probe, and the shared-viewer troubleshooting row now names both requirements. Correct.
  2. Revamp README, enhance documentation navigation, and fix CI #2 (provisioning warning) — the added ~10-second do-not-close warning matches the configurator's own measured wait note, and it's properly separated from the 90-second chart-render allowance in both Step 2 and the new troubleshooting row.
  3. Add Python 3.14 support and fix related test issues #6 (checklist parity) — verified against index.html: the configurator checklist does include the viewer-only-account test, so the "same five steps" claim now holds.
  4. Revise README for clarity and updated link #3 (PyYAML) — verified: hydrate_dashboard.py has a bare import yaml (line 16) with no dependency bootstrap, so the added pip install pyyaml step is genuinely required on a clean clone.
  5. Overhaul README, add documentation indexes, and fix CI issues #4 (quota vs IAM split) — the two rows now carry distinct remedies; "more IAM won't fix a quota" is the right guidance.

For the record: my first-pass review verified the manual against shipped behavior but missed the permission-model compression and the missing provisioning warning — the multi-reviewer pass was the deeper read on those, and the corrections resolve them cleanly. No remaining findings from me; CI green at this head.

@caohy1988

Copy link
Copy Markdown
Collaborator Author

Code Review Results

Scope: PR #425, b979f83 -> 3a8313c (3 files, 247 insertions)
Intent: Add a zero-jargon end-user manual for creating, securing, using, and troubleshooting the Looker Studio dashboard, and resolve the five findings from the prior review.
Mode: markdown report-only

Reviewers: correctness, security, adversarial, previous-comments

  • Security was selected because the manual defines Viewer credentials, BigQuery permissions, sharing, privacy, and billing behavior.
  • Adversarial review was selected because a plausible but incomplete setup or recovery instruction can fail in normal use.
  • Previous-comments review checked every claimed correction against the prior five findings.

Triage Groups

Group Findings Context Preferred Resolution Why
CLI preflight #3, #5 The printed command is neither dependency-clean nor location-portable Put prerequisites first, use the dataset location, then test the sequence in clean US and non-US fixtures One ordered example can resolve both defects
Operational interpretation #2, #4 The manual overstates error coverage and generalizes quota recovery Align each statement with the product contract or the named BigQuery limit Both defects can send an operator to the wrong conclusion or wait path

P1 -- High

# File Issue Reviewer Confidence
1 dashboard/looker_studio/USER_MANUAL.md:101 Viewer-credentials test does not prove isolation or usable viewer access previous-comments, correctness, security, adversarial 100
2 dashboard/looker_studio/USER_MANUAL.md:129 Errors page is described as broader than its tool-only metrics correctness 75

P2 -- Moderate

# File Issue Reviewer Confidence
3 dashboard/looker_studio/USER_MANUAL.md:193 PyYAML is installed after the command that imports it correctness, adversarial, previous-comments 100
4 dashboard/looker_studio/USER_MANUAL.md:223 Midnight-Pacific reset is stated as the general daily-quota rule correctness, adversarial 100
5 dashboard/looker_studio/USER_MANUAL.md:197 Preflight example hard-codes the US location correctness 75

Actionable Findings

# File Issue Route Notes
1 dashboard/looker_studio/USER_MANUAL.md:101 Make the Viewer-credentials gate test isolation and complete viewer permissions gated_auto -> downstream-resolver Update the manual and copied checklist together; verify with denied and authorized viewer accounts
2 dashboard/looker_studio/USER_MANUAL.md:129 Disclose tool-only error coverage gated_auto -> downstream-resolver Match product_contract.yaml and qualify the opening summary
3 dashboard/looker_studio/USER_MANUAL.md:193 Put PyYAML installation before the helper gated_auto -> downstream-resolver Re-run the printed sequence in a clean environment
4 dashboard/looker_studio/USER_MANUAL.md:223 Correct quota reset and reservation recovery guidance gated_auto -> downstream-resolver Link or name the current limit-specific behavior
5 dashboard/looker_studio/USER_MANUAL.md:197 Use the dataset's actual location gated_auto -> downstream-resolver Verify with at least one non-US dataset

Coverage


Verdict

Not ready

Reasoning: The revision fixes the provisioning flow and separates quota errors from IAM errors, but #1 leaves the security gate capable of approving Owner credentials and #2 overstates the dashboard's error coverage. Three direct P2 documentation corrections also remain.

Fix order: #1 Viewer-credentials gate -> #2 tool-only error scope -> #3 dependency order -> #5 dataset location -> #4 quota timing.

Prioritized actionable recap

  1. Add streaming evaluation, Dashboard V2, design docs, and CI workflow #1 P1 - USER_MANUAL.md:101 - gated auto: require denied and authorized viewer tests; include both table-read and billing-project job permissions.
  2. Revamp README, enhance documentation navigation, and fix CI #2 P1 - USER_MANUAL.md:129 - gated auto: label the Errors page as tool-error-only and disclose that LLM errors are excluded.
  3. Revise README for clarity and updated link #3 P2 - USER_MANUAL.md:193 - gated auto: install PyYAML before invoking hydrate_dashboard.py.
  4. docs: add ontology and context graph learning guide #5 P2 - USER_MANUAL.md:197 - gated auto: replace literal US with the actual dataset location.
  5. Overhaul README, add documentation indexes, and fix CI issues #4 P2 - USER_MANUAL.md:223 - gated auto: distinguish general quota replenishment, custom query resets, and reservations.
Make the pre-sharing gate a two-account test: a no-access account must be
locked out (data appearing there means the report is still on Owner's
credentials) and an authorized viewer with table read plus job permission
in the billing project must render charts. Extend the job-permission
requirement to the privacy summary, and describe the configurator's
copied checklist as a compact version rather than claiming equivalence.

Scope the Errors page and the opening summary to tool errors; LLM errors
are not charted in v1, matching the product contract.

Reorder the CLI preflight so the PyYAML install precedes the command
that imports it (clean-venv verified in the published order), and
replace the hard-coded US location with the dataset's actual location
plus where to find it.

Correct quota guidance: reset behavior follows the named limit (interval
replenishment for many daily quotas, midnight Pacific for custom query
quotas), and reservation capacity is an administrator remedy distinct
from quota resets.
@caohy1988

Copy link
Copy Markdown
Collaborator Author

Round-3 findings verified — both hold

  1. Add streaming evaluation, Dashboard V2, design docs, and CI workflow #1 (viewer test can pass under Owner credentials) — correct. Step 5 as written is a positive-only check and conflates table-read with job-creation permission, contradicting the manual's own (correct) Before-you-start split. The two-sided test the review prescribes — a no-access account must see nothing and a read+jobs.create viewer must render — is the only version that actually proves the Step-4 setting took effect.
  2. Revamp README, enhance documentation navigation, and fix CI #2 (Errors page overstated) — correct. Verified against product_contract.yaml at this head: all four Errors-page charts are tool-scoped (Tool Errors, Tool Errors Over Time, Top 5 Agents by Tool Errors, Top 5 Tools by Errors), and llm-error-visibility sits in deferred_enhancements with an explicit dependency note. The page guide should say tool-error analytics and name the exclusion.

Both are mechanical doc edits; nothing further from me this round.

@caohy1988

Copy link
Copy Markdown
Collaborator Author

Round-3 corrections verified at f7f0a01 — clean

  • Add streaming evaluation, Dashboard V2, design docs, and CI workflow #1 — Step 5 is now genuinely two-sided: the no-access account must see errors/empty charts (with the correct interpretation that seeing data means Owner's credentials are still on), and the authorized viewer must render with both permissions named. The privacy summary at the end was updated to match. The "a viewer test that shows data can be a failure" framing is exactly right.
  • Revamp README, enhance documentation navigation, and fix CI #2 — the page guide now says tool errors with the LLM exclusion stated, and the opening summary says "tool errors" — consistent with the contract's four tool-scoped charts and the deferred llm-error-visibility entry.
  • The extras are also right: preflight prerequisites now come before the command, the --location guidance matches BigQuery's job-location rejection behavior, and the quota row no longer generalizes reset behavior (interval vs midnicht-Pacific vs reservations correctly distinguished).

CI green at this head. Nothing outstanding from me — ready to undraft when you are.

@haiyuan-eng-google
haiyuan-eng-google marked this pull request as ready for review August 14, 2026 00:01
@haiyuan-eng-google
haiyuan-eng-google merged commit c47dc93 into main Aug 14, 2026
15 checks passed
haiyuan-eng-google pushed a commit that referenced this pull request Aug 30, 2026
…configurator (#450)

* chore(release): 0.5.1 — evalbench reader, canonical rubrics, single-input configurator

Version bump 0.5.0 -> 0.5.1 and the changelog cut for everything merged
since v0.5.0 (2026-08-11). In the wheel: the EvalBench BigQuery run
reader (#444), canonical evaluation rubrics in core (#431), and the CLI
judge-feedback escaping fix (#438). Repo/live-template side: the
single fully-qualified table-ID configurator entrance (#449), Console
table-link paste (#424), the attested external-access contract with its
staleness workflow (#446), the end-user manual (#425), Grafana metric
and scan-bound fixes (#433) with the one-command local run (#422), and
the documentation and CI follow-ups.

* chore(release): fold #432 golden-matching into the 0.5.1 cut

The release branch was cut one commit before #432 landed on main; the
synthetic merge CI builds would already ship golden_matching.py in the
0.5.1 wheel, so the module and its three top-level exports must be in
the release section. Merges main and documents the module in Release
highlights and Added.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants