Skip to content

feat(semantic-layers): add safe containment result cache - #42760

Merged
rusackas merged 56 commits into
apache:masterfrom
mikebridge:sc-106828-semantic-cache-integration
Oct 13, 2026
Merged

rusackas merged 56 commits into
apache:masterfrom
mikebridge:sc-106828-semantic-cache-integration

Conversation

@mikebridge

@mikebridge mikebridge commented Aug 4, 2026 •

Copy link
Copy Markdown
Member

SUMMARY

Adds an experimental, default-off containment cache for semantic-layer results.
A containment cache reuses a previously cached semantic-query result when that
result is proven to contain everything needed to answer a new query. For example,
a result grouped by country and city can answer a later country-only query by
rolling up the cached rows, avoiding another provider query while preserving
equivalent results.

Superset can reuse exact, projected, filtered, or additive-rollup results only when
the provider explicitly delegates cache responsibility and declares compatible
semantics. Identities include the semantic definition, provider material, and
either a global declaration or typed request security context.

Changes from the original PR

This replacement keeps the containment-reuse idea from #40221, but changes its
safety and architecture substantially:

  • Explicit opt-in: The original PR automatically wrapped semantic queries once
    SEMANTIC_LAYERS was enabled. This PR adds a separate, default-off
    SEMANTIC_LAYER_CONTAINMENT_CACHE rollout flag and requires each provider to
    explicitly delegate cache responsibility to Superset.
  • Provider contract: Providers declare whether reuse is global or
    execution-context scoped, supply secret-free result-affecting identity material,
    and opt into only the comparison, membership, NULL, and pattern semantics they
    can guarantee.
  • Security-aware identity: Cache identity includes the semantic definition and
    provider material. Context-scoped identity also incorporates a hash of the
    principal, roles, guest-token claims, and RLS cache key.
  • Smaller architecture: The original cache was a large multipurpose class and
    module. This version separates application orchestration, host adaptation,
    identity, containment policy, result transformation, repository storage, shared
    types, and distributed coordination.
  • Distributed mutation safety: Descriptor updates use bounded Redis owner-token
    leases and atomic compare-and-delete release, with direct Redis and Sentinel
    coverage. This replaces the original non-atomic descriptor-index updates.
  • Failure boundaries: Expected lookup, storage, and coordination failures leave
    provider queries available. Invalid or unsupported deployment configuration
    disables containment rather than semantic queries.
  • Forced refresh: force_query bypasses containment reads without changing
    ordinary result identity, and a successful forced provider result is stored under
    the canonical identity.
  • Result provenance: Semantic containment hits are propagated separately from
    ordinary query-cache hits so the UI can explain which cache supplied the result.
  • Rollout and observability: Requested/effective state, fixed-name metrics,
    unsupported-backend warnings, canary guidance, restart convergence, and rollback
    instructions are included.
  • Verification: The replacement adds deterministic concurrency and
    negative-control tests, a pinned real Redis/Sentinel CI path, and 100% statement
    and branch coverage for the semantic-layer package.

The implementation also incorporates the still-valid fixes from #41824, #41825,
#41826, and #41856 while avoiding unrelated files from the original branch.

Superseded PR Contribution retained here
#40221 Core containment proofs, transformation, result propagation, and UI indicator (Beto attribution retained)
#41824 Owner-safe descriptor mutation and concurrency regressions
#41825 force_query excluded from ordinary result identity
#41826 Successful forced refresh stored after read bypass
#41856 SQL NULL semantics and complete correctness coverage

Shortcut: SC-106828.

Rebase note (2026-09-14)

Rebased onto master. The one non-trivial resolution: master renamed
superset/async_events/cache_backend.py to superset/coordination/cache_backend.py
and introduced RedisCommandsMixin (a superset of the coordination primitives).
This branch's owner-token lease methods (acquire_owner_token / release_owner_token,
and now the fenced compare_owner_and_set) were folded into that mixin, reusing
master's _COMPARE_AND_DELETE_LUA and dropping the branch's duplicate
_OwnerTokenCacheMixin; the stale async_events.cache_backend imports and the
change-detector CI pattern were repointed to the new module path. No behavior change.

Review follow-ups (sadpandajoe)

  • Owner-token fence on the descriptor/value commit — atomic compare-owner-and-SET
    when value and lease share one Redis client, non-atomic immediate recheck otherwise
    (ab42028).
  • Bounded coordination Redis I/O via a private client with socket timeouts derived
    from SEMANTIC_CACHE_COORDINATION_WAIT_SECONDS; hung I/O falls back best-effort and
    still returns the provider result (ab42028).
  • ChartPills aggregates provenance across all query responses (HIT+MISS -> mixed)
    and the rollout guide lists the exact semantic_cache.containment.* counter names
    (c25fcfa).

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

The existing cached pill remains visually unchanged. For containment hits it is labelled “Semantic cache” and its tooltip says “Loaded from semantic cache”; ordinary result-cache hits retain the existing cached label and tooltip.

semantic-cache-tooltip

QA ENABLEMENT

This feature is default-off and requires an opted-in semantic provider. In the QA environment, add both flags to the existing FEATURE_FLAGS mapping in superset_config.py:

FEATURE_FLAGS = {
    # Preserve the environment’s existing flags.
    "SEMANTIC_LAYERS": True,
    "SEMANTIC_LAYER_CONTAINMENT_CACHE": True,
}

Configure a shared Redis-backed data cache and distributed-coordination cache. Separate Redis databases are recommended:

DATA_CACHE_CONFIG = {
    "CACHE_TYPE": "RedisCache",
    "CACHE_REDIS_HOST": "redis",
    "CACHE_REDIS_PORT": 6379,
    "CACHE_REDIS_DB": 1,
    "CACHE_DEFAULT_TIMEOUT": 300,
}

DISTRIBUTED_COORDINATION_CONFIG = {
    "CACHE_TYPE": "RedisCache",
    "CACHE_REDIS_HOST": "redis",
    "CACHE_REDIS_PORT": 6379,
    "CACHE_REDIS_DB": 2,
    "CACHE_REDIS_PASSWORD": "",
}

Use the QA Redis hostname and credentials rather than the example values. Restart every Superset web and worker process after changing configuration. The semantic provider used for QA must explicitly delegate cache responsibility to Superset and declare its scope, identity material, and supported containment capabilities; enabling the flags alone does not opt a provider in.

After restart, run a broad semantic query followed by a safely contained query. In the chart-data responses, expect X-Superset-Semantic-Cache: MISS followed by HIT. To roll back, disable SEMANTIC_LAYER_CONTAINMENT_CACHE, restart every web and worker process, and confirm subsequent responses report MISS.

TESTING INSTRUCTIONS

pytest --cov=superset/semantic_layers/ --cov-branch --cov-fail-under=100 \
  tests/unit_tests/semantic_layers/ -q
pytest -q tests/unit_tests/queries/query_object_test.py \
  tests/unit_tests/utils/test_cache_manager.py \
  tests/unit_tests/coordination/test_cache_backend.py \
  tests/unit_tests/config_test.py tests/unit_tests/initialization_test.py

Run the focused CachedLabel and ChartPills Jest tests, the chart-data API tests, frontend type checking, targeted Python/frontend pre-commit hooks, and changed-file pre-commit run --files <branch-changed-files> as recorded in the linked verification artifact. For synchronous JSON chart-data responses, verify X-Superset-Semantic-Cache: the initial provider request reports MISS, a contained reuse reports HIT, and a multi-query response with both outcomes reports MIXED. The dedicated CI job also exercises
pinned Redis and Sentinel services with expiry, stale-release, concurrent writer,
prune/store, parity, descriptor-bound, and lock-free healthy-read assertions.

Rollout requires both SEMANTIC_LAYERS and
SEMANTIC_LAYER_CONTAINMENT_CACHE, plus supported distributed coordination.
Canary one worker cohort after capturing latency/error/cache-health baselines and
observe one normal traffic cycle. Roll back by disabling the dedicated flag and
restarting every web/worker process; confirm an enabled gauge of zero and normal
provider success.

ADDITIONAL INFORMATION

  • Has associated issue: Shortcut SC-106828
  • Required feature flags: SEMANTIC_LAYERS, SEMANTIC_LAYER_CONTAINMENT_CACHE
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

Validation follow-up (independently reviewed)

  • Reject leftover WHERE filters on grained dimensions or output columns shared with a grained axis: cached monthly bucket starts cannot answer partial-month raw bounds. Regression tests cover both a March 15 upper bound and a January 15 lower bound, raw/grained filter variants, and successful raw-column containment.
  • Mapper filter-variant ordering remains tracked separately in SC-121337; this PR does not modify that mapper behavior. Cache containment rejects the unsafe narrowed range with either filter variant.
  • The atomic Lua fence is a same-client optimisation, not the default deployment path. Application initialization creates a private coordination client, so production uses the non-atomic immediate ownership recheck even when both caches point at the same Redis server. That residual race is the path under test and soak; no universal atomic-write guarantee is claimed.
  • Provider comparisons=True assumes binary/codepoint string ordering and equality; pattern_escape assumes case-sensitive LIKE. Providers on case-insensitive collations must not opt into these capabilities.
  • Scalar bool/int literal equality is guarded in implication and exact WHERE-filter matching. Mutation errors are logged before lease cleanup can replace the active exception.
  • Follow-ups: preserve Arrow dtypes across pandas rollups; evaluate stable guest-token scope identity instead of hashing iat/exp. Guest-token isolation remains conservative until that separate design is validated.
  • Non-blocking review follow-ups: avoid duplicate logging when both the mutation boundary and caller report an error; distinguish nested collection literals such as IN (1) and IN (True) without relying on Python bool/int equality. The scalar guard is not a claim that collection identity was redesigned.
  • TTL-default follow-up: resolve an unspecified entry timeout to the wrapped backend's concrete default when storing. The conservative unknown-TTL index remains non-expiring to avoid orphaning live values; an idle index can therefore outlive its values. Chart and contribution paths resolve concrete timeouts, so this is a latent fallback concern rather than their ordinary path.
  • Async-totals follow-up: totals bypass the normal result-cache write path and do not record its force-nonce marker. An async forced-refresh read-back can therefore query totals again even when the main result is already warmed. This avoids stale denominators but may perform one extra totals query; nonce handling remains a follow-up.

Keep hold! until Mike accepts: the grained-axis correctness fix and regressions, green exact-head CI including test-semantic-cache-coordination (Redis/Sentinel), and a flag-on soak on a real opted-in provider exercising non-atomic writes under concurrent forced refreshes and narrowed time ranges. Local unit coverage alone does not satisfy these gates.

@dosubot dosubot Bot added change:backend Requires changing the backend change:frontend Requires changing the frontend infra:caching Infra setup and configuration related to caching labels Aug 4, 2026
@github-actions github-actions Bot added doc Namespace | Anything related to documentation github_actions Pull requests that update GitHub Actions code packages labels Aug 4, 2026
@bito-code-review

bito-code-review Bot commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

Bito Automatic Review Skipped - Large PR

Bito didn't auto-review this change because the pull request exceeded the line limit. No action is needed if you didn't intend for the agent to review it. Otherwise, to manually trigger a review, type /review in a comment and save.

@netlify

netlify Bot commented Aug 4, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for superset-docs-preview ready!

Name Link
🔨 Latest commit 854c2f1
🔍 Latest deploy log https://app.netlify.com/projects/superset-docs-preview/deploys/6acdb108456683c9f16a8f68
😎 Deploy Preview https://deploy-preview-42760--superset-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov

codecov Bot commented Aug 4, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 99.03930% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.20%. Comparing base (1578b8c) to head (854c2f1).
⚠️ Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
superset/initialization/__init__.py 65.51% 9 Missing and 1 partial ⚠️
superset/common/query_context_processor.py 83.33% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #42760      +/-   ##
==========================================
+ Coverage   83.09%   83.20%   +0.11%     
==========================================
  Files        3028     3041      +13     
  Lines      196572   198327    +1755     
  Branches    45912    46080     +168     
==========================================
+ Hits       163332   165026    +1694     
- Misses      30016    30076      +60     
- Partials     3224     3225       +1     
Flag Coverage Δ
hive 35.05% <33.60%> (-0.02%) ⬇️
javascript 78.75% <100.00%> (+<0.01%) ⬆️
mysql 53.12% <34.76%> (-0.20%) ⬇️
postgres 53.13% <34.76%> (-0.19%) ⬇️
presto 36.82% <34.67%> (-0.03%) ⬇️
python 86.84% <99.01%> (+0.12%) ⬆️
sqlite 52.89% <34.76%> (-0.19%) ⬇️
superset-extensions-cli 91.24% <ø> (?)
unit 80.78% <99.01%> (+0.19%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mikebridge
mikebridge force-pushed the sc-106828-semantic-cache-integration branch from fa1d7fa to f143574 Compare August 4, 2026 21:24
@mikebridge

mikebridge commented Aug 4, 2026 •

Copy link
Copy Markdown
Member Author

Manual local testing

The clearest manual test uses two different semantic queries where the first
result safely contains the second. This distinguishes containment reuse from
Superset's ordinary exact-query cache.

No built-in production semantic provider opts into this cache yet, so this test
requires a local provider or extension implementing the new cache contract.

1. Start Redis

docker run --rm --name superset-semantic-redis \
  -p 6379:6379 redis:7-alpine

2. Configure Superset

Add the following to superset_config.py:

FEATURE_FLAGS = {
    "SEMANTIC_LAYERS": True,
    "SEMANTIC_LAYER_CONTAINMENT_CACHE": True,
}

DATA_CACHE_CONFIG = {
    "CACHE_TYPE": "RedisCache",
    "CACHE_REDIS_HOST": "127.0.0.1",
    "CACHE_REDIS_PORT": 6379,
    "CACHE_REDIS_DB": 1,
    "CACHE_DEFAULT_TIMEOUT": 300,
}

DISTRIBUTED_COORDINATION_CONFIG = {
    "CACHE_TYPE": "RedisCache",
    "CACHE_REDIS_HOST": "127.0.0.1",
    "CACHE_REDIS_PORT": 6379,
    "CACHE_REDIS_DB": 2,
    "CACHE_REDIS_PASSWORD": "",
}

When Superset runs in Docker, use the Redis service/container hostname instead
of 127.0.0.1. Restart every web and worker process after changing configuration.

3. Opt in the semantic provider

The provider needs the equivalent of:

from superset_core.semantic_layers.layer import (
    SemanticCacheCapabilities,
    SemanticCacheIdentityMaterial,
    SemanticCacheResponsibility,
    SemanticCacheScope,
)

semantic_cache_responsibility = SemanticCacheResponsibility.SUPERSET
semantic_cache_scope = SemanticCacheScope.EXECUTION_CONTEXT
semantic_cache_capabilities = SemanticCacheCapabilities(
    comparisons=True,
    membership=True,
    nulls=True,
    pattern_escape="\\",
)

def get_semantic_cache_provider_identity(self):
    return SemanticCacheIdentityMaterial(
        {"provider_version": "local-test-v1", "catalog": self.config.catalog}
    )

def get_semantic_cache_context_identity(self, context):
    return SemanticCacheIdentityMaterial({"tenant": "local-test"})

4. Exercise containment

  1. Create a chart from an opted-in semantic view, grouped by country and
    city, using an additive metric such as SUM(revenue).
  2. Run it and confirm that the semantic provider receives the request.
  3. Remove city, leaving the chart grouped only by country.
  4. Run it again.

The second query differs from the first, but the first result contains enough
detail to answer it. Superset should roll up the cached rows without another
provider request.

5. Verify the result

Inspect the chart-data response in browser developer tools. The response header should make the cache outcome immediately visible:

X-Superset-Semantic-Cache: HIT

The first request should report MISS; the contained second request should report HIT. Multi-query responses report MIXED when only some queries hit. The JSON response should also contain:

{
  "semantic_cache_hit": true
}

The cache pill tooltip should say Loaded from semantic cache. Provider logs
or a temporary request counter should show that only the first query reached the
provider. Confirm that the country totals exactly match a forced provider query.

6. Negative controls

  • Click the cache pill to force-refresh: the provider should run and
    semantic_cache_hit should be false.
  • Request a metric absent from the cached result: the provider should run.
  • Disable SEMANTIC_LAYER_CONTAINMENT_CACHE and restart: both requests should
    reach the provider.
  • Remove DISTRIBUTED_COORDINATION_CONFIG and restart: containment should be
    disabled without breaking semantic queries.
  • With EXECUTION_CONTEXT, repeat as another user: that user's first request
    should miss rather than reuse the other user's result.

The same behavior has a quick non-UI smoke test:

source ~/venv/superset/bin/activate
pytest -q tests/unit_tests/semantic_layers/cache_integration_test.py

@mikebridge
mikebridge marked this pull request as draft August 4, 2026 21:58
@mikebridge
mikebridge force-pushed the sc-106828-semantic-cache-integration branch from c2135da to 8237cc9 Compare August 4, 2026 22:29
@github-actions github-actions Bot added the api Related to the REST API label Aug 4, 2026
@mikebridge
mikebridge marked this pull request as ready for review August 6, 2026 14:55
@mikebridge

Copy link
Copy Markdown
Member Author

Update in 3b9d669dbd (master merged): the containment fail-safe now bypasses the cache and runs the provider whenever the host metadata token is missing or invalid, so it can't reuse a legacy entry without a token. The precision fix is preserved. This stays on hold until #45100 merges, since #45100 supplies the per-layer metadata version that containment keys on. The combination was tested in review, and the semantic suite passes after the master merge.

@github-actions github-actions Bot removed the requires:rebase Requires rebasing on top of current master label Oct 8, 2026
mikebridge added a commit to mikebridge/superset that referenced this pull request Oct 8, 2026
…m the provider token

`metadata_cache_token` meant two things: on the SDK view it is the token a
provider echoes back, and on the host ORM it is the generation that keys
host caches. Use one term for the host side, "metadata generation":

- ORM `SemanticLayer.metadata_generation` (was `metadata_cache_token`) and
  `SemanticView.metadata_generation`, used by every host cache key, the
  provider factory, annotation sources, value suggestions and
  compatibility.
- ORM `SemanticView.metadata_cache_token` stays as a documented alias so
  the containment integration (apache#42760) keeps reading the host value.
- The SDK contract (`SemanticView.metadata_cache_token`,
  `from_configuration_with_cache_token(cache_token=)`) is unchanged; its
  docstrings now say it is the provider's echo and never keys host caches.

Cache key payloads are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added the requires:rebase Requires rebasing on top of current master label Oct 9, 2026
# Conflicts:
#	superset-core/src/superset_core/semantic_layers/layer.py
#	superset/semantic_layers/mapper.py
#	tests/unit_tests/semantic_layers/mapper_test.py
@mikebridge

Copy link
Copy Markdown
Member Author

Pushed f90b19e, which brings in master and fixes one cache-identity gap.

  • Master merge: master's completeness check now runs inside the containment cache's provider dispatch, which is the miss path. An incomplete or rejected provider result raises before anything is stored.
  • Containment identity: it now includes the same producer result-version discriminator that master added to the direct result cache key (("semantic-result-version", layer type, version)). Results stored under an older producer guarantee can no longer be reused through a containment hit. Layers without a version keep their existing identity.
  • Tests: the discriminator partitions the containment definition identity, and a version change forces a miss and then a hit. A provider rejection or completeness error on a miss is raised, not cached, and the next successful query is stored normally.

Still on hold until the metadata-cache invalidation work lands; containment composes with its generation token. One docs-only conflict with master remains in docs/developer_docs/extensions/contribution-types.md.

@github-actions github-actions Bot added requires:rebase Requires rebasing on top of current master and removed requires:rebase Requires rebasing on top of current master labels Oct 9, 2026
@mikebridge

Copy link
Copy Markdown
Member Author

Merged latest master in 6115764833. The UPDATING.md conflict is resolved by retaining both release notes. The cache implementation and all direct/containment cache-key components are preserved.

Validation passed: 1,459 focused Python tests, 12 cache-pill Jest tests, changed-file pre-commit hooks, and the normal push coverage gate. GitHub reports this head as mergeable. The hold! label remains in place; this update does not change the dependency on #45100 or mark the PR ready for merge.

Merge prepared by Codex, with an independent Claude review of the exact merged tree. That review found no new issues; previously tracked deferred findings remain unchanged.

@github-actions github-actions Bot added requires:rebase Requires rebasing on top of current master and removed requires:rebase Requires rebasing on top of current master labels Oct 10, 2026
@mikebridge

Copy link
Copy Markdown
Member Author

Merged latest master in c8e39142ea, keeping both sides of the release-note and mapper/test conflicts. Containment dispatch and the single metadata observation are preserved. With #45100 merged, the host metadata generation now reaches both the direct result-cache key and containment identity alongside the producer result-version key. The hold! label remains unchanged.

Validation: 1,502 focused Python tests passed; the extra query-context run had 143 passes and one known Mac-only longdouble fixture failure whose test and production method are unchanged from master. After a fresh npm ci, all frontend package type builds, 12 cache-pill Jest tests, and changed-file hooks passed.

The previous two failed checks were check-hold-label (expected while held) and lint-frontend (TS7006 implicit-any errors in chart-plugin control panels). Those plugin files are outside this PR's diff, and the type errors did not reproduce in the fresh local package build. The new CI run will provide the remote result.

Merge prepared by Codex and independently reviewed by Claude on the exact committed tree; no blocking review findings. No ready-state or label changes were made.

@github-actions github-actions Bot added requires:rebase Requires rebasing on top of current master and removed requires:rebase Requires rebasing on top of current master labels Oct 12, 2026
@mikebridge

Copy link
Copy Markdown
Member Author

Merged the latest master into this branch at f7595d8. The mapper resolution preserves both the per-request filter metadata and semantic cache provenance; all changed test fixtures were reviewed for compatibility.

Validation: 1,518 focused Python tests and 47 frontend tests passed. The incoming-file Python run had 2,379 passes and one previously documented local Europe/Dublin timezone failure. Branch-file hooks and the normal pre-push checks, including coverage gates, passed. Codex prepared and validated the merge; an independent Claude review approved the exact committed tree with that documented baseline exception.

GitHub now reports MERGEABLE. CI is still running, and hold! remains in place.

@aminghadersohi aminghadersohi removed the hold! On hold label Oct 12, 2026
@aminghadersohi

Copy link
Copy Markdown
Contributor

Removing hold!: the remaining condition was #45100, which merged as 04db66b.

@mikebridge

Copy link
Copy Markdown
Member Author

Merged master again after #45061 and #44028. The release-note conflict retains both entries; the runtime semantic-layer gates, dashboard layout changes, cache provenance and initialization changes coexist in the merged tree. OpenAPI regeneration matches the checked-in specification.

Validation: 1,543 focused Python tests and 18 frontend tests passed. Tests in the incoming changed Python files had 778 passes and two documented local Europe/Dublin timezone failures. Branch-file hooks passed. Codex prepared and validated the merge; an independent Claude review covered the cache/runtime-gate interactions, changed fixtures and full branch Python annotations.

Pushed af6c876; GitHub reports MERGEABLE. Normal pre-push checks, including coverage gates, passed. CI is running; labels and readiness were left unchanged.

The independent review identified one non-blocking follow-up: containment still evaluates its parent SEMANTIC_LAYERS flag at process startup. If it is off at startup and enabled later through a runtime hook, semantic queries run but containment stays off. This fails safe by querying the provider; activation behavior should be aligned or explicitly documented before readiness. Claude approved the exact merge tree for push with this follow-up recorded.

@github-actions github-actions Bot removed the requires:rebase Requires rebasing on top of current master label Oct 13, 2026
@rusackas
rusackas merged commit 8ace079 into apache:master Oct 13, 2026
82 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api Related to the REST API change:backend Requires changing the backend change:frontend Requires changing the frontend doc Namespace | Anything related to documentation github_actions Pull requests that update GitHub Actions code i18n Namespace | Anything related to localization infra:caching Infra setup and configuration related to caching packages risk:ci-script PR modifies scripts that execute in CI (supply chain risk) size/XXL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants