Skip to content

chore(weave): in-memory trace server monitor-query validation and missing-ref reporting#7337

Merged
andrewtruong merged 2 commits into
masterfrom
andrew/fake-ts-10-remaining-caps
Jun 23, 2026
Merged

chore(weave): in-memory trace server monitor-query validation and missing-ref reporting#7337
andrewtruong merged 2 commits into
masterfrom
andrew/fake-ts-10-remaining-caps

Conversation

@andrewtruong

@andrewtruong andrewtruong commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

Adds monitor query validation and missing-ref reporting to the fake impl, and un-gates the remaining fake-backend tests now that the fake is at parity. Last PR in the fake trace server stack.

Copy link
Copy Markdown
Collaborator Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@andrewtruong andrewtruong marked this pull request as ready for review June 22, 2026 16:57
@andrewtruong andrewtruong requested a review from a team as a code owner June 22, 2026 16:57
@codecov

codecov Bot commented Jun 22, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 28.57143% with 5 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
weave/trace_server/in_memory_trace_server.py 28.57% 5 Missing ⚠️

📢 Thoughts on this report? Let us know!

@w-b-hivemind

w-b-hivemind Bot commented Jun 23, 2026

Copy link
Copy Markdown

HiveMind Sessions

3 sessions · 18m · $3.49

Session Agent Duration Tokens Cost Lines
Conductor Coding Agents Workspace Setup
37f2a745-175f-42d4-a2ac-ebd7a95ca37c
claude 26s 13.4K $0.29 +0 -0
Test Migration Strategy Second Opinion
019edc93-d144-7042-b294-c633880762d8
codex 1m 29.4K $0.34 +0 -0
Clickhouse Test Parity Strategy Discussion
531ebc21-de16-4194-ac75-dbaff05d2cd4
claude 17m 58.6K $2.86 +32 -0
Total 18m 101.4K $3.49 +32 -0

View all sessions in HiveMind →

Run claude --resume 37f2a745-175f-42d4-a2ac-ebd7a95ca37c or codex resume 019edc93-d144-7042-b294-c633880762d8 to pickup where you left off.

@andrewtruong andrewtruong marked this pull request as draft June 23, 2026 13:13
…ing-ref reporting

Mirror two ClickHouse behaviors the fake backend was missing:

- obj_create now calls validate_monitor_query_fields(...) so a saved Monitor
  with a bad query field fails loudly at create time (InvalidFieldError with
  the allowed-field list; structurally-invalid queries -> InvalidRequest;
  opaque/absent queries untouched), matching clickhouse_trace_server_batched.
- refs_read_batch now collects every missing base-object digest and raises
  RefObjectsNotFoundError(msg, missing_object_digests) instead of failing on
  the first missing ref. Soft-deleted objects are 'found' (read back as None),
  not missing.
Un-gate the FAKE_NOT_IMPLEMENTED tests now that the fake backend covers them:
monitor query validation, refs_read_batch missing-ref digests, agent user
feedback, call filtering by ref-properties over table rows, and declarative
evaluation child-call metadata tagging (the last three already worked on the
fake; the gates were over-conservative).

Re-tag two inherently CH/served-backend tests to NOT_CLICKHOUSE_BACKEND
(permanent) rather than FAKE_NOT_IMPLEMENTED: test_lock_acquire_release_real_clickhouse
(real ClickHouse lock) and test_flask_server (werkzeug request threads cannot
reach the in-process fake client).
@andrewtruong andrewtruong force-pushed the andrew/fake-ts-10-remaining-caps branch from 0b1485e to bbd8031 Compare June 23, 2026 15:52
@andrewtruong andrewtruong marked this pull request as ready for review June 23, 2026 16:09
@andrewtruong andrewtruong changed the title feat(weave): in-memory trace server monitor-query validation and missing-ref reporting chore(weave): in-memory trace server monitor-query validation and missing-ref reporting Jun 23, 2026

@rgao-coreweave rgao-coreweave left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@andrewtruong andrewtruong merged commit 25b9d00 into master Jun 23, 2026
113 of 114 checks passed
@andrewtruong andrewtruong deleted the andrew/fake-ts-10-remaining-caps branch June 23, 2026 16:47
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants