Skip to content

test_degraded_unnoted lists the enrollment challenge spend, so main's unit job passes - #2132

Merged
zlareb1 merged 2 commits into
mainfrom
fix/degraded-unnoted-enrollment-spend
Dec 4, 2026
Merged

zlareb1 merged 2 commits into
mainfrom
fix/degraded-unnoted-enrollment-spend

Conversation

@zlareb1

@zlareb1 zlareb1 commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Related: #2047
Related: #2126

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):

...

Why

tests/unit/test_degraded_unnoted.py fails on main: #2126 added a broad handler in server/knowledge/app/mcp_worker_enrollment_flow.py::_spend after #2047's scan landed, and the scan's allowlist has no entry for it. Every pull request's unit job fails on it.

The handler names nothing in degraded, and it need not. _spend runs only on _link's failure path, which raises the enrollment's own error right after it, so no answer is served from its fallback. A failed spend is a write that did not land, which the allowlist's write category covers.

Scope and risk

One line in tests/unit/degraded_unnoted.txt. No server code changes.

Compatibility, rollout and rollback

  • Wire: none.
  • Operator steps: none.
  • Rollback: reverting leaves nothing behind.

Tests

  • pytest -q -p no:randomly tests/unit/test_degraded_unnoted.py: 1 failed, 1 passed on main (a229f49), naming mcp_worker_enrollment_flow.py::_spend::1; 2 passed with this entry.

AI assistance in the code (leave one; writing this description with AI is fine):

  • AI-generated (an agent wrote most of the diff): Claude Code; I checked the call site of _spend and the category's meaning in the scan test's _CATEGORIES.

  • 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 full make test-unit and applicable integration results are reported by CI; a full local run is not required before pushing.
  • Generated files are regenerated in this PR, not by hand: none are affected.
  • A new migration is additive and numbered after the latest on main; no merged migration is edited. None added.
  • A behaviour change to any file a plugin ships bumps both plugin manifests' version. None changed.
  • The frontend builds and its tests pass, if frontend/ changed. Not changed.
  • Docs under docs/ describe the system as it now is. No docs change.
  • Repository text has no dates, people, host names, internal namespaces, ticket or decision numbers.
  • Commits are signed off (git commit -s), as CONTRIBUTING.md asks.
  • I signed the Contributor License Agreement (CLA) if CLA assistant requested a signature: none was requested.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
@vercel

vercel Bot commented Dec 4, 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 4, 2026 8:39am UTC
loom-telemetry Ready Ready Preview Dec 4, 2026 8:39am UTC

Request Review

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
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