Skip to content

Restore dependency review and MCP settings checks - #1879

Merged
zlareb1 merged 7 commits into
mainfrom
fix/ci-baseline-gates
Dec 1, 2026
Merged

zlareb1 merged 7 commits into
mainfrom
fix/ci-baseline-gates

Conversation

@zlareb1

@zlareb1 zlareb1 commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Related: #1877
Related: #1871
Related: #1843

Changelog category

  • CI Fix or Improvement

Changelog entry

CI verifies Maven and Rust build inputs when GitHub lacks a head dependency snapshot. MCP search reply limits are configurable.

Why

The unit suite rejects three MCP reply limits stored as constants. The dependency review also rejects pull requests when GitHub provides the static dependency diff alongside a missing-head-snapshot warning. Each fix is blocked by the check the other fix restores.

Scope and risk

This combines the MCP limit changes from the settings PR with the dependency review changes from the code quality PR. The dependency check still blocks high and critical advisories. When the head snapshot is absent, it also requires a complete comparison that proves the Maven and Rust snapshot inputs are unchanged.

Compatibility, rollout and rollback

  • The configuration reference documents defaults of 600 tokens, 30 source lines, and 32 query words for MCP search replies.
  • Operator steps are none.
  • Reverting restores the previous dependency review behavior and the fixed MCP limits.

Tests

  • python -m pytest -q tests/unit/test_tunable_constants.py tests/unit/test_dependency_review_workflow.py tests/unit/test_code_search_places.py tests/unit/test_settings_defaults.py
  • make format-check lint typecheck

AI assistance in the code

  • AI-generated by Codex. The combined changes were verified with the dependency review, settings and MCP tests.
  • I can explain every line of this diff and how it interacts with the rest of Loom.

Checklist

  • Local format, lint, type checks and focused tests pass.
  • The generated reference, example, schema and defaults snapshot match the settings.
  • Commits are signed off.

Note

Medium Risk
Dependency review logic is more permissive when snapshots are missing but relies on compare-diff heuristics; misclassification could allow or block PRs incorrectly. Settings changes are low-risk defaults with existing behavior preserved.

Overview
Dependency review no longer fails solely because GitHub reports no dependency graph snapshot for the PR head. When that specific warning is present, the workflow still evaluates advisories, then uses the Compare API to confirm Maven/Rust snapshot inputs (POMs, Cargo files, related workflows/scripts, etc.) are unchanged—allowing an snapshot_inputs: unchanged pass. Other incomplete snapshot warnings still fail, and modified build inputs while the head snapshot is missing still fail.

MCP code.search places move three hardcoded limits into settings: token budget (default 600), max lines for the leading place’s full body (30), and max query words for matching lines (32). code_lean reads these from config; schema, docs, example YAML, and defaults snapshot are updated accordingly.

Reviewed by Cursor Bugbot for commit a1de5b2. Bugbot is set up for automated code reviews on this repo. Configure here.

The unit gate rejects operator limits declared as module constants.
Put the reply budget, source line cap and query word cap in the
settings catalog and retain their defaults.

Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Record the three catalog defaults so the settings gate detects future
changes to them.

Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
The feature inventory requires a test for the setting. A search with two matching words checks that lowering the limit keeps only the longer match.

Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
The source limit controls the full body. A single place and cursor pages can exceed the reply's token target.

Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
GitHub returns the static dependency diff alongside a missing-head warning. Verify that Maven and Rust snapshot inputs are unchanged before acting on that diff.

Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
The Rust dependency workflow runs the snapshot tests before resolving Cargo dependencies.

Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Include the checkout root when checking input paths for the Rust workflow’s Python commands.

Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
@vercel

vercel Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
loom-docs Ready Ready Preview Dec 1, 2026 4:58am UTC
loom-telemetry Ready Ready Preview Dec 1, 2026 4:58am UTC

Request Review

@zlareb1
zlareb1 merged commit 34a6338 into main Dec 1, 2026
87 checks passed
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