Skip to content

Report the reasoning operations this build implements and fail them NOT_IMPLEMENTED - #4

Merged
harshach merged 2 commits into
release/6.2.0from
openmetadata/protocol-gaps
Nov 10, 2026
Merged

harshach merged 2 commits into
release/6.2.0from
openmetadata/protocol-gaps

Conversation

@harshach

Copy link
Copy Markdown

Uses the reasoning contract from open-metadata/OpenMetadata#35502, which must merge first; the copied schemas come from its commit 1728d000, and SOURCE.txt will be updated to the merge commit before this merges.

  • Capabilities list REFRESH, CHECK, EXPLAIN, RESULTS and QUERY as NOT_IMPLEMENTED, with reasons. Limits list only what the store enforces (maxQueuedJobs, maxDiskBytes); readiness stays the memory-budget answer. Per the protocol, an operation becomes AVAILABLE only once it runs and every limit it needs is enforced.
  • Jobs fail at capture, and results/query answer 501, with problem code NOT_IMPLEMENTED instead of NOT_READY with a message prefix, so OpenMetadata stops retrying. NOT_READY stays for disabled, memory budget, BUSY, stopping and unmeasurable-disk cases.
  • Contract checks: the test Contract checker now applies allOf, if/then, const and contains with min/maxContains, so the request schema's per-operation rules (OpenMetadata#35199, now in the copied schema) and the capabilities limit rules are checked against what the store writes. A new test flips each operation to AVAILABLE and requires a limits violation.
  • smoke-test.sh checks the operations list, NOT_IMPLEMENTED at capture and the 501 code; the README is updated.

Tests

  • Extension mvn -B -ntp verify: 241 unit + 11 integration tests pass.
  • Image smoke test: 95/95 checks pass.

The test checker followed only type-driven keywords, so the request schema's
per-operation rules and the capabilities' per-operation limit rules were never
applied to the documents the store writes. It now evaluates allOf, if/then,
const, contains with minContains/maxContains, and properties, required and
enum in untyped subschemas.
…NTED

Refresh the OpenMetadata contract schemas and examples to the protocol that
adds the capabilities' operations list, per-operation limit rules and the
NOT_IMPLEMENTED problem code.

Capabilities list REFRESH, CHECK, EXPLAIN, RESULTS and QUERY as
NOT_IMPLEMENTED with the reason, and only the limits the store enforces
(maxQueuedJobs, maxDiskBytes); readiness stays the memory-budget answer.
Jobs fail at capture, and results and queries answer 501, with
NOT_IMPLEMENTED instead of NOT_READY with a message prefix, so a client
stops retrying work this build cannot do. A test checks that the store
cannot claim any operation AVAILABLE without the limits it needs.
@harshach
harshach merged commit 8cf3e6e into release/6.2.0 Nov 10, 2026
3 checks passed
harshach added a commit that referenced this pull request Nov 10, 2026
Brings in the RULES step (#5), protocol gaps (#4), the Guava bump (#14) and
the image fixes (#9-#12). Conflicts kept both sides: the direct-buffer cap
beside the core-dump flag in the entrypoint, the measured CLASSIFY envelope
beside the RULES limits in the README, and both import sets in Limits.
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