Skip to content

docs(analytics): exact analysis_revision and truncation wording; strip private backend references from the run-view contract text - #780

Merged
nimrodbusany merged 2 commits into
developfrom
docs/run-view-contract-wording
Nov 27, 2026
Merged

nimrodbusany merged 2 commits into
developfrom
docs/run-view-contract-wording

Conversation

@nimrodbusany

Copy link
Copy Markdown
Contributor

Wording fixes for the five experiment-run view contracts. Only descriptions, changelog text and tests change; no schema structure changes.

What changes

  • Analysis revision and truncation. The report, Pareto, leaderboard and correlations descriptions now state exactly when the analysis revision moves and how report rows, insights and warnings are truncated.
  • Cursor problems (leaderboard). Every invalid or stale cursor is the invalid_cursor problem. bad_request no longer lists cursor cases. The leaderboard 400 text now matches Pareto's.
  • trial_ref. The shared schema lists only the views that reference it: report, Pareto and leaderboard.
  • Report totals. The text describes what the schema actually guarantees. insights_total and warnings_total are optional meta keys, and the schema does not require or type them beyond the open meta value rule.
  • No private implementation references. Backend file paths, line numbers and module names are removed from contract descriptions and changelog text.

Evidence

  • bash scripts/local_gate.sh on HEAD: PASSED.
  • python scripts/breaking_schema_check.py --check: BREAKING unacked 0, allowed 0, PASSED.
  • python scripts/compile_changelog.py --check: 16 fragments valid.
  • python scripts/refresh_parity.py --check: up to date.
  • Run-view contract tests: 162 passed. The tests guard descriptions against file-path shapes only.
    • Four new or updated wording tests fail if the schema text is reverted.
    • One more test guards the Pareto cursor wording, which was already correct, against future drift.
  • Structural check: in the JSON diff, the only non-description lines are the regenerated parity hash and one comma.
  • Review: an independent model review (a blockers read plus deltas), no blocking findings remaining.

Ticket: none (contract wording)
Security note: Description-only change. No schema structure, validation rule or authorization behaviour changes. Removes private implementation references from public contract text.
Spine-Trail: st_08a194074bd1

🤖 Generated with Claude Code

nimrodbusany and others added 2 commits November 27, 2026 15:04
…p private backend references from the run-view contract text

The backend increments analysis_revision in the same transaction as any insert or delete of the run's configuration rows, and any update that changes a configuration row's analysis content (status, measures, summary_stats, experiment_parameters or metadata); writes that change none of these do not change it.

In the run report, insights beyond 50 and warnings beyond 1000 are truncated server-side in a deterministic order, and a warning longer than 512 characters is omitted, never cut. The untruncated counts are reported as the integers meta.insights_total and meta.warnings_total, which the existing open meta map already accepts; no typed property is added.

The description text of the five experiment-run views, their problem schemas, the shared trial reference and the deprecated legacy successors no longer cites backend file paths, line numbers, class, function or table names; the contract rules are unchanged and no schema keyword is touched.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@nimrodbusany
nimrodbusany requested a review from a team as a code owner November 27, 2026 13:36
@sonarqubecloud

Copy link
Copy Markdown

@nimrodbusany
nimrodbusany added this pull request to the merge queue Nov 27, 2026
Merged via the queue into develop with commit 2dcaf6c Nov 27, 2026
18 checks passed
@nimrodbusany
nimrodbusany deleted the docs/run-view-contract-wording branch November 27, 2026 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant