Skip to content

The worker copy read gate's broad handlers are listed and the statement shapes regenerated - #2193

Merged
zlareb1 merged 2 commits into
mainfrom
fix/worker-copy-ci-gates
Dec 5, 2026
Merged

zlareb1 merged 2 commits into
mainfrom
fix/worker-copy-ci-gates

Conversation

@zlareb1

@zlareb1 zlareb1 commented Dec 5, 2026 •

Copy link
Copy Markdown
Member

Related: #2165

Changelog category (leave one):

  • CI Fix or Improvement (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):

None: CI only.

Why

Main's CI fails two gates after the worker stored copies change:

  • tests/unit/test_degraded_unnoted.py::test_every_broad_handler_notes_its_fallback_or_says_why_it_need_not names server/knowledge/app/source_access.py::_reader_own_subject::1 and ::_worker_copy_eligible::1, which are broad handlers that note nothing and are not in tests/unit/degraded_unnoted.txt.
  • tests/analyzer/test_corpus.py::test_shapes_file_matches_builders reports one new and one gone statement shape. The read gate's knowledge_sources query now also selects owner_subject.

Scope and risk

  • Both handlers are listed as fail_closed, beside the existing _eligible_sources entries. When the reader's standing cannot be read, the reader owns no worker source. When the worker authority (registration, approval, owner's worker account) cannot be verified, no copy is admitted. Neither serves a smaller answer, so there is nothing to note.
  • tests/analyzer/shapes.txt is regenerated with python -m tests.analyzer.corpus --write. The diff swaps that one query's shape for its new one.
  • No code changes.

Compatibility, rollout and rollback

  • Wire: none.
  • Operator steps: none.
  • Rollback: reverting brings the two gate failures back.

Tests

  • tests/analyzer/test_corpus.py -k shapes_file passes locally.
  • tests/unit/test_degraded_unnoted.py is over the local focused gate's memory limit, so it runs in CI.

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 found both failures in main's CI logs and wrote the fix.

  • 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: tests/analyzer/shapes.txt.
  • No migration.
  • No plugin-shipped file changed.
  • No frontend change.
  • Docs need no change.
  • Repository text has no dates, people, host names, internal namespaces, ticket or decision numbers.
  • Commits are signed off.
  • I signed the Contributor License Agreement (CLA) if CLA assistant requested a signature.

🤖 Generated with Claude Code

…atement shapes

The read gate's two new broad handlers admit no copy when a check cannot be read,
so they are fail-closed sites with nothing to note. The read gate's source query
now selects owner_subject, so its recorded statement shape changes.

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

vercel Bot commented Dec 5, 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 5, 2026 1:21am UTC
loom-telemetry Ready Ready Preview Dec 5, 2026 1:21am UTC

Request Review

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
@zlareb1
zlareb1 merged commit 3efe16d into main Dec 5, 2026
75 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