Skip to content

feat: add read-surface SLO catalog and wire verify-slos lab gate (#872) - #976

Merged
Sinity merged 1 commit into
masterfrom
feature/feat/slo-catalog
May 9, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/feat/slo-catalog

Conversation

@Sinity

@Sinity Sinity commented May 9, 2026

Copy link
Copy Markdown
Owner

Summary

Committed docs/plans/slo-catalog.yaml with query/reader/facets/context/cost SLO budgets and wired devtools verify-slos into devtools verify --lab. The verify_slos lint now loads the catalog and enforces budgets.

Problem

devtools/verify_slos.py referenced docs/plans/slo-catalog.yaml which didn't exist on disk — the lint had no input and was a no-op.

Solution

  • docs/plans/slo-catalog.yaml: SLOs for 5 read surfaces with conservative initial budgets
  • devtools/verify_slos.py: loads catalog, reports violations, exits non-zero on budget breach
  • Registered in lab gate

Verification

Certification

WORK

  1. SLO catalog committed with query/reader/facets/context/cost budgets
  2. verify_slos exits non-zero when measured surface exceeds budget

REALIZATION

  1. docs/plans/slo-catalog.yaml; validate: tests/unit/devtools/test_slo_catalog.py
  2. devtools/verify_slos.py catalog loading + enforcement; lab gate at devtools/command_catalog.py

DECLARATION

I declare every WORK item above to be fully realized. Budget values are conservative initial settings. Verified by: pytest tests/unit/devtools/ -q.

Refs #872

Problem: devtools/verify_slos.py referenced docs/plans/slo-catalog.yaml,
but the catalog was missing on disk and the lint was unregistered, so
the SLO check could neither be discovered nor exercised.

What changed:
- author docs/plans/slo-catalog.yaml with starting-point budgets for the
  read surfaces called out in #872: query, reader, facets, context, cost
- register `devtools verify-slos` in devtools/command_catalog.py
- include verify-slos in `devtools verify --lab`
- add tests/unit/devtools/test_slo_catalog.py pinning the catalog shape
  and the pass/fail exit-code contract

Initial budgets are conservative starting points calibrated against the
existing synthetic-archive benchmark fixtures (test_search_filters.py,
test_reader_api.py). Tighten as evidence accumulates.

Ref #872

Co-Authored-By: Claude <[email protected]>
Copilot AI review requested due to automatic review settings May 9, 2026 11:01
@coderabbitai

coderabbitai Bot commented May 9, 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 33 minutes and 28 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: 7870df8d-b865-4316-a454-fe2991c7d09a

📥 Commits

Reviewing files that changed from the base of the PR and between 32cef74 and 7bfcf7a.

📒 Files selected for processing (5)
  • devtools/command_catalog.py
  • devtools/verify.py
  • docs/devtools.md
  • docs/plans/slo-catalog.yaml
  • tests/unit/devtools/test_slo_catalog.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/feat/slo-catalog

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.

@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: 7bfcf7ab2b

ℹ️ 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".

Comment thread devtools/verify.py Resolved
Comment thread tests/unit/devtools/test_slo_catalog.py Resolved
@Sinity
Sinity merged commit 45da0d3 into master May 9, 2026
8 of 14 checks passed
@Sinity
Sinity deleted the feature/feat/slo-catalog branch May 9, 2026 11:11
@Sinity
Sinity removed the request for review from Copilot May 9, 2026 11:23
@Sinity

Sinity commented Oct 1, 2026

Copy link
Copy Markdown
Owner Author

Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.

  • 55.F097 / P2: stale at the checked revision: The --lab verify-slos gate has been removed from the verifier. The current modes are static quick verification and native affected or complete-corpus verification (devtools/verify.py:1301); missing benchmark output is no longer accepted by the cited lab gate.

Only the rows listed above are dispositioned. Held findings remain open.

@Sinity

Sinity commented Oct 1, 2026

Copy link
Copy Markdown
Owner Author

Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.

  • 79.F060 / P2: refuted at the checked revision: The pinned catalog explicitly defines a measured violation as blocking regardless of gate at docs/plans/slo-catalog.yaml:20-32. Informational exempts missing measurements only, so the test correctly expects violations for deliberately slow measured context/cost surfaces rather than treating them as unmeasured placeholders.

Only the rows listed above are dispositioned. Held findings remain open.

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