Skip to content

Backplane reference-run freshness: warning-only + weekly cadence (self-heal CI) - #2827

Merged
stranske merged 1 commit into
mainfrom
fix/backplane-freshness-warning-only
Jul 24, 2026
Merged

Backplane reference-run freshness: warning-only + weekly cadence (self-heal CI)#2827
stranske merged 1 commit into
mainfrom
fix/backplane-freshness-warning-only

Conversation

@stranske

Copy link
Copy Markdown
Owner

Why (the bigger blocker)

#2821 stopped reference-run staleness from failing the required suite. But staleness still hard-failed the dedicated health-78 lane (its CLI exited 1), so the only way to clear that red was a manual reference-run refresh — and nothing schedules one, so it recurs weekly. That's the underlying blocker: freshness didn't self-heal.

Design grounding

The contract docs set the intended model: sibling freshness contracts (docs/contracts/langsmith-observability-contract.md) make the scheduled path warning-only with opt-in enforcement (enforce_block). And reference_run_evidence is a human-reviewed baseline (it carries a verifier issue/PR + disposition comment), so a 7-day wall-clock hard-fail on it is mis-calibrated. This aligns the backplane freshness with that documented pattern.

Change

  • validate_backplane_registry.py main(): exits non-zero only on blocking (structural) findings. Reference-run staleness → ::warning:: annotation (on stderr, so it shows even in --json mode), non-blocking by default. New --enforce-freshness opts into failing (mirrors langsmith enforce_block). Report gains blocking_ok/blocking_count/stale_count + per-finding severity.
  • health-78: weekly schedule: (warning-only cadence surfacing) + a workflow_dispatch enforce_freshness input for a deliberate gate. With main() warning-only, the lane goes green-with-warning on an aged baseline instead of stuck-red — no manual intervention to keep CI green.

Verification

  • 27 backplane tests pass, incl.: staleness warning-only (exit 0) with stale_count surfaced; --enforce-freshness fails; ::warning:: emitted; and a deliberate-break proving structural defects (missing sha256) still block. black/ruff/actionlint clean.
  • On the currently-stale live registry: default CLI exits 0 (warning), --enforce-freshness exits 1.

Explicitly out of scope (won't fabricate provenance)

Auto-regenerating the evidence — re-emitting the real Pension-Data reference conformance run and writing back genuine provenance (run URLs, sha256s, generated_at) — needs an actual cross-repo run and can't be built/verified blind here. That's the true "self-refresh"; I'll spec it separately rather than fake a timestamp. This PR removes the CI pain (no stuck red, no manual clears) and surfaces the freshness signal on cadence.

🤖 Generated with Claude Code

…ekly cadence

Follow-up to #2821. That PR stopped reference-run staleness from failing the
REQUIRED suite; this addresses the underlying blocker: staleness still hard-failed
the dedicated health-78 lane (its CLI exited 1), so the only way to clear the red
was a manual reference-run refresh — which nothing schedules, so it recurs weekly.

The contract docs establish the intended model: sibling freshness contracts
(langsmith-observability-contract.md) make the scheduled path WARNING-ONLY with
opt-in enforcement (enforce_block). The reference_run_evidence is a human-reviewed
baseline (carries verifier issue/PR + disposition comment), so a 7-day wall-clock
hard-fail on it is mis-calibrated. Align with the documented pattern:

- validate_backplane_registry.py `main()`: exit non-zero only on BLOCKING
  (structural) findings. Reference-run staleness is emitted as a `::warning::`
  annotation (on stderr, so it surfaces even in --json mode) and is non-blocking
  by default. New `--enforce-freshness` opts into failing on staleness (mirrors
  langsmith's enforce_block). Report gains blocking_ok/blocking_count/stale_count
  and per-finding severity. Structural defects still fail (test-gated).
- health-78: add a weekly `schedule:` (warning-only cadence surfacing) and a
  `workflow_dispatch` `enforce_freshness` input for a deliberate gate. With main()
  now warning-only, the lane goes green-with-warning on an aged baseline instead of
  stuck-red — no manual intervention needed to keep CI green.

Tests: staleness warning-only (exit 0) with stale_count surfaced; --enforce-freshness
fails; ::warning:: annotation emitted; structural defects still block (deliberate-break).
27 pass; black/ruff/actionlint clean.

NOT in scope (needs a real cross-repo run, won't fabricate provenance): auto-
REGENERATING the evidence by re-emitting the Pension-Data reference conformance run
and writing back real provenance. Speccing that separately.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@cursor

cursor Bot commented Jul 24, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@coderabbitai

coderabbitai Bot commented Jul 24, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 43 minutes

Your organization has reached its usage spending cap. Adjust your spending cap in the billing tab.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 49b31567-7802-4420-93d3-44f9a8aabbe6

📥 Commits

Reviewing files that changed from the base of the PR and between 5eb4200 and dc86ed2.

📒 Files selected for processing (3)
  • .github/workflows/health-78-backplane-contract.yml
  • scripts/validate_backplane_registry.py
  • tests/test_backplane_registry.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/backplane-freshness-warning-only

Comment @coderabbitai help to get the list of available commands.

@stranske-keepalive

Copy link
Copy Markdown
Contributor

Workflow source needed

PR #2827 needs either a linked GitHub issue or one valid non-issue Workflow Source before PR metadata automation can manage it safely.

Please do one of:

  • Add <!-- meta:issue:123 --> or a normal Closes #123 / Related to #123 line.
  • Check one Workflow Source option in the PR body.
  • Add a hidden marker such as <!-- workflow-source:local_request -->, <!-- workflow-source:manual_remote -->, <!-- workflow-source:review_followup -->, <!-- workflow-source:sync_campaign -->, or <!-- workflow-source:dependabot -->.
  • Add a workflow source label such as workflow:source-direct-pr, workflow:source-local-request, workflow:source-review-followup, workflow:source-sync, or workflow:no-automation.

Once a valid source is present, this warning will not be reposted.

@stranske
stranske temporarily deployed to agent-high-privilege July 24, 2026 22:50 — with GitHub Actions Inactive

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: dc86ed204e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

# scheduled path). Reference-run staleness is a ::warning:: here, not a failure,
# so an aged reference baseline is visible on cadence without wedging CI. Use the
# manual dispatch (enforce_freshness=true) for a deliberate freshness gate.
schedule:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Document the new scheduled and manual workflow contract

The workflow now supports a weekly schedule and manual freshness enforcement, but the inspected inventories still describe health-78-backplane-contract.yml as PR/push-only (docs/ci/WORKFLOWS.md:199 and docs/ci/WORKFLOW_SYSTEM.md:737). Operators relying on those canonical docs will not discover the cadence or enforce_freshness gate, so update both inventories and the backplane contract documentation alongside this trigger change.

AGENTS.md reference: AGENTS.md:L60-L65

Useful? React with 👍 / 👎.

@stranske-keepalive

Copy link
Copy Markdown
Contributor

Automated Status Summary

Head SHA: cb1e4f9
Latest Runs: ⏳ pending — Gate
Required contexts: Gate / gate, Health 45 Agents Guard / guard
Required: core tests (3.12): ⏳ pending, core tests (3.13): ⏳ pending, docker smoke: ⏳ pending, gate: ⏳ pending

Workflow / Job Result Logs
(no jobs reported) ⏳ pending

Coverage Overview

  • Coverage history entries: 1

Coverage Trend

Metric Value
Current 75.74%
Baseline 85.00%
Delta -9.26%
Minimum 70.00%
Status ✅ Pass

Top Coverage Hotspots (lowest coverage)

File Coverage Missing
scripts/issue_dedup_smoke.py 0.0% 4
scripts/runner_lib/__main__.py 0.0% 3
scripts/validate_template_sync.py 0.0% 81
scripts/langchain/topic_splitter.py 19.1% 57
tools/codex_log_analyzer.py 19.6% 140
scripts/repo_review_round2_runner.py 25.1% 344
scripts/prune_agent_stubs.py 39.7% 26
scripts/repo_review_round1_runner.py 40.7% 133
tools/ensure_workflow_timeout_variables.py 42.1% 74
scripts/sync_label_docs.py 42.9% 64
tools/discover_model_catalog.py 44.8% 55
scripts/repo_review_backlog_scan.py 45.3% 116
scripts/repo_review_body_writer.py 46.5% 86
tools/codex_session_analyzer.py 47.9% 59
scripts/create_verifier_labels.py 48.3% 58

Low Coverage Files (<50.0%)

File Coverage Missing
scripts/issue_dedup_smoke.py 0.0% 4
scripts/runner_lib/__main__.py 0.0% 3
scripts/validate_template_sync.py 0.0% 81
scripts/langchain/topic_splitter.py 19.1% 57
tools/codex_log_analyzer.py 19.6% 140
scripts/repo_review_round2_runner.py 25.1% 344
scripts/prune_agent_stubs.py 39.7% 26
scripts/repo_review_round1_runner.py 40.7% 133
tools/ensure_workflow_timeout_variables.py 42.1% 74
scripts/sync_label_docs.py 42.9% 64
tools/discover_model_catalog.py 44.8% 55
scripts/repo_review_backlog_scan.py 45.3% 116
scripts/repo_review_body_writer.py 46.5% 86
tools/codex_session_analyzer.py 47.9% 59
scripts/create_verifier_labels.py 48.3% 58

Updated automatically; will refresh on subsequent CI/Docker completions.


Keepalive checklist

Scope

No scope information available

Tasks

  • No tasks defined

Acceptance criteria

  • No acceptance criteria defined

@stranske
stranske merged commit 6d8d26f into main Jul 24, 2026
50 checks passed
@stranske
stranske deleted the fix/backplane-freshness-warning-only branch July 24, 2026 22:54
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