Skip to content

Expose GPU fallback status in dispatch results - #8509

Merged
makr-code merged 2 commits into
developfrom
copilot/qry-04-expose-gpu-fallback
Dec 1, 2026
Merged

makr-code merged 2 commits into
developfrom
copilot/qry-04-expose-gpu-fallback

Conversation

@makr-code

@makr-code makr-code commented Dec 1, 2026 •

Copy link
Copy Markdown
Owner

Author: "ThemisDB Team"
Created: "2026-10-09"
Last Updated: "2026-11-19"
Status: "active"
AI_Used: true
AI_Models: "unknown"
AI_Contributor: "GitHub Copilot"
Human_Review: false
Human_Author: "ThemisDB Team"

Exact model backend not verifiable from final document text alone.

Pull Request

For EPIC-branch workflow PRs, use .github/PULL_REQUEST_TEMPLATE/epic-branch-flow.md.
This applies to both feature/* -> epic/* and epic/* -> develop integration PRs.

Target Version (Required)

Target Version: [Unreleased]

This is an audit-driven bug fix completing the GPU/query degraded-execution contract.


Description

CPU fallback previously returned success without an explicit caller-visible execution state. This change documents and verifies the {Ok, OkDegraded, Failed} status contract and its gpu, cpu_fallback, and none execution modes.

  • Result contract
    • Documents SubmitResult::ExecutionStatus and ExecutionMode.
    • Preserves existing submitted and via_gpu fields.
  • Regression coverage
    • Verifies failed fallback serialization reports:
      {
        "status": "failed",
        "mode": "cpu_fallback",
        "submitted": false,
        "via_gpu": false
      }
  • Operational documentation
    • Clarifies that OkDegraded requires the configured fallback callback to complete the equivalent CPU operation.
    • Records QRY-04 completion and focused test traceability in the audit roadmap.

Linked Issues

Type of Change

  • bug fix (non-breaking)
  • documentation
  • new feature (non-breaking)
  • refactoring (non-breaking)
  • breaking change
  • security fix
  • other

Breaking Change Checklist

  • Plan the MAJOR version bump in VERSION and CMakeLists.txt.
  • Add a migration guide in docs/migration/.
  • Prepare the GitHub Discussions announcement (≥ 2 weeks before release).
  • Update the CHANGELOG ### Removed / ### Changed section.

Testing

  • Unit tests added/updated
  • Integration tests added/updated
  • Manual testing performed
  • Benchmarks run (if performance-sensitive change)

Security Tiering Impact (for Runtime Changes)

  • Impacted tier(s): T2 Data Plane Engines

No authorization, fallback admission, or data-handling behavior was changed.

📚 Research & Knowledge (wenn applicable)

Based on scientific papers or best practices? No.

Relevante Quellen:

  • Paper:
  • Best Practice:
  • Architecture Decision:

AI-Generated Code (KI-generierter Code)

  • Symbol-Referenzen mit GetSymbolReferences_CppTools geprüft
  • Keine rohen Pointer und kein new/delete ohne explizites Review eingeführt
  • RAII und Exception-Safety für neue/angepasste Pfade geprüft
  • Keine unnötig komplexen KI-Abstraktionen eingeführt
  • Performance-Metriken geprüft, falls Hotpath betroffen

AI Review Workflow (Required for AI-assisted PRs)

  • Findings-first review performed
  • Security hardening review performed or N/A documented
  • API impact review performed or N/A documented
  • All Critical/High findings are resolved or explicitly accepted with rationale
  • Residual risks and follow-up actions documented in PR description
  • Severity policy applied

High-Finding Exception Record (only if High is accepted)

  • High-finding exception claimed in this PR

  • Finding reference:

  • Maintainer approver:

  • Mitigation in current release:

  • Target fix milestone:

  • Tracking issue:

  • Validation evidence:

Release Readiness Gate (Required for release-scoped changes)

Not release-scoped.

  • Review release readiness with .github/prompts/release-readiness-check.prompt.md for branch transition scope.
  • Validate branch governance against BRANCHING_STRATEGY.md and RELEASE_STRATEGY.md.
  • Validate versioning/changelog impact against VERSIONING.md and CHANGELOG.md.

Checklist

  • Code follows project style guidelines (clang-format / clang-tidy)
  • Self-review completed
  • Documentation updated (if needed)
  • Update CHANGELOG.md under [Unreleased]
  • No new warnings introduced
  • Security-sensitive paths reviewed by security maintainer (if applicable)

Scanner and IntelliSense Gates

  • IntelliSense/Compiler: no new errors in changed files
  • clang-tidy/cppcheck: no new high-risk findings in changed files
  • Gap Scanner: no new critical findings in categories security, input_validation, query_correctness, distributed_consistency, concurrency, memory
  • Gap Scanner: no new high findings in the same categories (or explicitly approved)
  • Gap Scanner delta report attached (baseline vs current), not only absolute totals
  • New unknown scanner findings triaged (fixed, re-categorized, or justified)

Copilot AI balanced review requested due to automatic review settings December 1, 2026 14:03

Copilot AI 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.

Copilot wasn't able to review any files in this pull request. Check if the Files changed in this pull request are included in default exclusions.

Copilot AI linked an issue Dec 1, 2026 that may be closed by this pull request
8 tasks
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
@makr-code makr-code changed the title [WIP] Expose GPU fallback in result status Expose GPU fallback status in dispatch results Dec 1, 2026
@makr-code
makr-code marked this pull request as ready for review December 1, 2026 14:24
@makr-code
makr-code merged commit b44dfe2 into develop Dec 1, 2026
22 of 24 checks passed
@github-actions github-actions Bot added the status/resolved Finding resolved and verified by automation label Dec 1, 2026
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Target: pr

Doc Metadata Gate


source_workflow: Gate: PR Doc Metadata
source_run: 46666956324
source_sha: b185172

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status/resolved Finding resolved and verified by automation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[QRY-04] Expose GPU fallback in result status

3 participants