Skip to content

feat(benchmarks+devtools): campaigns, SLO, evidence-report (#998, #1063, #997) - #1072

Merged
Sinity merged 3 commits into
masterfrom
feature/test/verifiability-phase6
May 16, 2026
Merged

Sinity merged 3 commits into
masterfrom
feature/test/verifiability-phase6

Conversation

@Sinity

@Sinity Sinity commented May 16, 2026 •

Copy link
Copy Markdown
Owner

Summary

Three coordinated improvements to verification infrastructure: registers missing benchmark campaigns, adds daemon convergence to SLO tracking, and introduces the evidence-report dashboard command.

Problem

  1. test_reader_api.py was referenced in slo-catalog.yaml but not registered as a benchmark campaign. test_daemon_convergence.py existed but was invisible to all tooling.
  2. No single view existed showing verification health — verify history, contract evidence, suppression state, witness lifecycle, and benchmark campaigns required reading multiple files.
  3. Pre-existing test failure: test_obligation_diff_accepts_ref_flags_and_markdown asserted the old "## Proof Obligations" heading.

Solution

Benchmark campaigns (devtools/benchmark_scenario_catalog.py, docs/plans/campaign-coverage.yaml):

  • Registered reader-api and daemon-convergence as authored benchmark campaigns
  • devtools benchmark-campaign list now shows 5 campaigns

SLO catalog (docs/plans/slo-catalog.yaml):

  • Added daemon_convergence_single_file as an informational SLO entry (30s budget)
  • Makes daemon throughput visible in devtools verify --lab

Evidence report (devtools/evidence_report.py):

  • New devtools evidence-report command
  • Reads .cache/verify-history.jsonl, .cache/verification/evidence/*.json, tests/witnesses/*.witness.json, .local/benchmark-campaigns/
  • Supports --json output; always exits 0 (diagnostic, not blocking)
  • 6 tests in tests/unit/devtools/test_evidence_report.py

Test fix: Updated test_obligation_diff.py stale heading assertion.

Verification

$ python -m devtools benchmark-campaign list
# 5 campaigns listed including reader-api and daemon-convergence

$ python -m devtools verify-slos
# PASS (6 surfaces) — daemon_convergence_single_file: p50=229ms (≤30000ms)

$ python -m devtools evidence-report
# Evidence Report showing history, 14 contract artifacts, witnesses, campaigns

$ devtools verify --quick
# exit_code: 0

Ref #998 #1063 #997 #845

Co-Authored-By: Claude [email protected]

@coderabbitai

coderabbitai Bot commented May 16, 2026 •

Copy link
Copy Markdown

Warning

Rate limit exceeded

@Sinity has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 25 minutes and 40 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 3c4f9320-5c2d-431a-b392-063273fe29ba

📥 Commits

Reviewing files that changed from the base of the PR and between 1db6066 and f9c7928.

📒 Files selected for processing (12)
  • AGENTS.md
  • devtools/benchmark_scenario_catalog.py
  • devtools/command_catalog.py
  • devtools/evidence_report.py
  • docs/devtools.md
  • docs/plans/campaign-coverage.yaml
  • docs/plans/slo-catalog.yaml
  • docs/test-quality-workflows.md
  • docs/verification-catalog.md
  • tests/unit/daemon/test_convergence_final_state.py
  • tests/unit/devtools/test_evidence_report.py
  • tests/unit/devtools/test_obligation_diff.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/test/verifiability-phase6

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@Sinity Sinity changed the title feat(benchmarks): register reader-api/daemon-convergence campaigns and SLO entry (#1063, #997) feat(benchmarks+devtools): campaigns, SLO, evidence-report (#998, #1063, #997) May 16, 2026
Sinity and others added 3 commits May 16, 2026 07:08
…s; add convergence SLO

Register two missing benchmark campaigns in both the Python catalog
(benchmark_scenario_catalog.py) and the campaign-coverage manifest:

- reader-api: reader HTTP API list/get/facets/context-pack/cost-rollup
  (already referenced by slo-catalog.yaml but not tracked as a campaign)
- daemon-convergence: ingest convergence at synthetic scale tiers

Add daemon_convergence_single_file to slo-catalog.yaml as an informational
gate (30s budget) to make daemon throughput visible in devtools verify --lab.

Also fix stale obligation_diff test asserting old "## Proof Obligations"
heading (renamed to "## Affected Verification Checks").

Update witness timestamps and regenerated docs.

Ref #1063 #997 #845

Co-Authored-By: Claude <[email protected]>
…state (#998)

Adds devtools evidence-report — a read-only dashboard command that
aggregates verification evidence from cached data without running tests:

- Verify history (last 5 runs + 30-day pass/fail counts)
- Contract evidence artifacts (.cache/verification/evidence/*.json)
- Suppression state (count by kind, unregistered count)
- Witness lifecycle (total, stale count)
- Benchmark campaign runs (.local/benchmark-campaigns/)

Supports both human-readable (default) and --json output. Always exits 0
(diagnostic report, not a blocking gate). 6 tests in test_evidence_report.py.

Ref #998

Co-Authored-By: Claude <[email protected]>
Proves that after live ingest of a synthetic corpus the archive reaches
a consistent final state: all files succeed, conversations and messages
appear in the DB, and the convergence-debt table is empty.

The test runs through the full LiveBatchProcessor + DaemonConverger +
make_default_convergence_stages pipeline against 3 synthetic sessions
(10 messages each). Executes in ~0.2s so no slow marker is needed.

Closes Phase 8 of the verifiability revamp (#1058, #845, #999).

Co-Authored-By: Claude <[email protected]>
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