Skip to content

Propagate server deadlines to POST /query - #8508

Merged
makr-code merged 4 commits into
developfrom
copilot/qry-07-enforce-search-deadlines
Dec 1, 2026
Merged

makr-code merged 4 commits into
developfrom
copilot/qry-07-enforce-search-deadlines

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]


Description

  • Deadline propagation: HTTP POST /query receives the server request deadline and disconnect context.
  • Timeout behavior: observed server stop returns 504; the stricter body timeout_ms returns 408 if observed first.
  • Cooperative fallback: opted-in full scans poll the request context and discard partial results. Indexed synchronous operations remain checkpoint-only and may overrun.
  • Traceability: API, operations, and roadmap docs record this bounded slice. QRY-07 remains open for unresolved routes and blocking backends.
query_api_->handleQuery(req, requestContextForTimeout(connection_request, server_timeout_ms));

Linked Issues

Issue link supplied separately by repository automation.

Type of Change

Bug fix (non-breaking), documentation.

Breaking Change Checklist

N/A — no breaking change.

Testing

  • Unit tests added/updated

  • Integration tests added/updated

  • Manual testing performed

  • Benchmarks run (if performance-sensitive change)

  • Documentation metadata gate: python3 /home/runner/work/ThemisDB/ThemisDB/tests/test_doc_metadata_gate.py — 13 passed.

  • Focused C++ tests were not run: diagnostic CMake configuration stopped because fmt is unavailable.

Security Tiering Impact (for Runtime Changes)

  • Impacted tier(s): T2 Data Plane Engines / T3 Interface & Protocol Edge

📚 Research & Knowledge (wenn applicable)

Based on scientific papers or best practices? No.

Relevante Quellen:

  • Paper: N/A
  • Best Practice: N/A
  • Architecture Decision: N/A

AI-Generated Code (KI-generierter Code)

  • Symbol-Referenzen mit GetSymbolReferences_CppTools geprüft (siehe .github/instructions/cpp-language-service-tools.instructions.md)
  • 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 with .github/prompts/pr-diff-findings-review.prompt.md
  • Security hardening review performed for security-sensitive/runtime changes with .github/prompts/security-hardening-review.prompt.md (or N/A documented)
  • API impact review performed for API/contract changes with .github/prompts/api-change-impact-review.prompt.md (or N/A documented)
  • All Critical/High findings are resolved or explicitly accepted with rationale in PR description
  • Residual risks and follow-up actions documented in PR description
  • Severity policy applied according to .github/copilot/REVIEW_SEVERITY_POLICY.md

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)

N/A — this is not a release-scoped branch transition.

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)

CodeQL reported zero alerts but skipped C++ analysis because the database was too large. QRY-07 remains open; this PR does not claim complete search-deadline enforcement.

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
makr-code and others added 3 commits December 1, 2026 14:17
@makr-code makr-code changed the title [WIP] Enforce search deadlines with timeout and cancellation semantics Propagate server deadlines to POST /query 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 5d05bfd into develop Dec 1, 2026
27 of 30 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

Doxygen Governance Gate

  • Verdict: PASS
  • Base branch: develop
  • Changed C/C++ files: 0
  • Changed public headers: 0
  • Scoped modules: none
  • Release lane: no
  • Phase 6 modules in scope: none
  • Coverage enforced: no
  • Coverage threshold: 95.0%
  • Coverage result: skipped
  • Coverage waiver active: no
  • Approved waivers: none
  • Structural findings: 0
  • Advisory findings: 0
  • Blocking Doxygen warnings: 0
  • Suppressed out-of-scope Doxygen warnings: 1
  • XML generated: no

Suppressed out-of-scope warnings

  • 1 warnings were retained in artifacts but ignored for gate blocking because they do not belong to changed public headers.

source_workflow: Gate: PR Doxygen Governance
source_run: 46667099123
source_sha: c45e47f

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

✅ Wave C Policy Gate: Hash & SBOM Integrity

Result: ✅ Hash & SBOM Integrity PASSED
Workflow run: #46667099125
Triggered by: @makr-code

Checks

  • ✅ Dependency hash integrity check
  • ✅ SBOM generation and registry consistency
  • ✅ Edition-correct SBOM composition
  • ✅ Private plugin variance detection
  • ℹ️ Approved SBOM registry: docs/governance/SBOM_APPROVED_VERSIONS.md

See .github/workflows/gate-pr-hash-sbom.yml for details.

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

✅ Wave C Policy Gate: Private Plugin Boundary Enforcement

Result: ✅ Private Plugin Boundary Enforcement PASSED
Workflow run: #46667099125
Triggered by: @makr-code

Checks

  • ✅ Private plugin leakage detection
  • ✅ Plugin manifest visibility validation
  • ✅ Submodule commit-pin enforcement (no branch refs for private)

See .github/workflows/gate-pr-plugin-boundary.yml for details.

@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: 46667099107
source_sha: c45e47f

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

✅ Wave C Policy Gate: Community Fail-Closed Validation

Result: ✅ Community Fail-Closed Validation PASSED
Workflow run: #46667099125
Triggered by: @makr-code

Checks

  • ✅ No silent fallback patterns
  • ✅ License disclaimers present
  • ✅ No unguarded telemetry/tracking
  • ✅ No private plugin references in community/minimal scope
  • ✅ Community-only build config validation
  • ✅ No enterprise secrets leakage

See .github/workflows/gate-pr-community-failclosed.yml for details.

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

✅ Wave C Policy Gate: Edition & License Validation

Result: ✅ Edition & License Validation PASSED
Workflow run: #46667099125
Triggered by: @makr-code

Checks

  • ✅ Edition matrix consistency check
  • ✅ License feature gate validation
  • ✅ Enterprise/military marker detection
  • ℹ️ Target branch: develop

See .github/workflows/gate-pr-edition-license.yml for details.

@github-actions github-actions Bot added status/needs-approval Requires explicit maintainer approval before proceeding status/blocked Blocked by an external dependency or unresolved issue and removed status/resolved Finding resolved and verified by automation labels Dec 1, 2026
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

❌ Wave C Policy Gate: PR Merge Readiness

Result: ❌ PR Merge Readiness FAILED
Workflow run: #46667099125
Triggered by: @makr-code

Checks

  • ✅ Community Fail-Closed (success)
  • ✅ Edition & License (success)
  • ✅ Hash & SBOM Integrity (success)
  • ✅ Plugin Boundary (success)
  • ❌ Final Runtime API (failure)

Error Details

Failed gates: Final Runtime API

See .github/workflows/gate-pr-merge-readiness.yml for details.

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

Labels

status/blocked Blocked by an external dependency or unresolved issue status/needs-approval Requires explicit maintainer approval before proceeding

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[QRY-07] Enforce search deadlines

3 participants