Open
docs(#5468): hybrid retrieval rollout plan — module readiness map with staged gates, dependency map, and risk analysis#5552
Conversation
…MAPs - Add ai_working/HYBRID_RETRIEVAL_ROLLOUT_PLAN.md: staged rollout plan (Phases A-D), dependency map, risk analysis by module, implementation order, observability requirements, and ctest/benchmark gates - Update src/retrieval/ROADMAP.md: rollout phase mapping, ctest gates - Update src/distributed_tensor/ROADMAP.md: tensor-update Phases A-D, delta log, partial refit, shard summary coordination, freshness gates - Update src/index/ROADMAP.md: Phase B rollout gates (buffer lifecycle, concurrency, ANN result validation) - Update src/gpu/ROADMAP.md: Phase C/D rollout gates (CUDA error handling, resource exhaustion, break-even benchmarks) - Update src/acceleration/ROADMAP.md: Category A/B kernel rollout gates with parity test requirements - Update src/graph/ROADMAP.md: Phase A readiness, CPU-first invariant documentation, Category C permanent exclusion from GPU - Update src/query/ROADMAP.md: Phase A/B rollout gates (error hardening, thread-safety, hybrid planner) - Update src/sharding/ROADMAP.md: Phase C rollout gates (thread-safety, lock ordering, consensus) Closes #5468
Copilot
AI
changed the title
[WIP] Map hybrid retrieval rollout plan to module readiness
docs(#5468): hybrid retrieval rollout plan — module readiness map with staged gates, dependency map, and risk analysis
Jul 6, 2026
… safe iteration
- tensor_aware_query_optimizer.cpp: cap d/n/r inputs at 1e6 and add
std::isfinite() guard on estimateTTCost() to prevent inf/NaN from
propagating into the cost model (3 CRITICAL multiplication_overflow gaps)
- query_canceller.{h,cpp}: replace std::mutex with std::timed_mutex and
use try_lock_for(200ms) in all three registry functions to eliminate
the blocking_no_timeout CRITICAL gap; THEMIS_WARN on timeout
- query_rewrite_rule.cpp: replace range-for-with-move with index-based
loop in PredicatePushdownRule::apply() to satisfy iterator_invalidation
CRITICAL gap; also removes unused loop counter variable
- tests/query/test_query_phase_a_gap_fixes.cpp: 12 new regression tests
(TAOPT-01..05, QCANCEL-01..03, REWRT-01..04) verifying all three fixes
…th advisory-only policy and Prometheus metrics - include/artifact_manifest.h: ArtifactManifest schema — advisory-only invariant documented, ArtifactKind enum (ADVISORY_SUMMARY/DELTA_LOG/SHARD_SUMMARY), ArtifactIntegrity CRC token, isFresh() freshness gate, freshnessAgeSeconds() - include/manifest_store.h: ManifestStore thread-safe registry API — store (monotonic version), evict, evictStale, get, list, size, refreshFreshnessMetrics; advisory-only contract stated in class doc - src/manifest_store.cpp: in-memory implementation with: - tensor_delta_log_entries_total counter on store() - tensor_freshness_age_seconds gauge via refreshFreshnessMetrics() - monotonic version enforcement, stale eviction - tests/epic3_distributed_tensor/test_manifest_store_phase_a.cpp: 12 tests (MS-01..12) covering store, get, list, evict, freshness gate, Prometheus metrics, and concurrent access - ROADMAP.md: mark Phase A manifest + advisory policy + metrics as [x] - CMakeLists.txt: wire test_manifest_store_phase_a as module-focused test
…ementation, tests, and completion summary
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the concrete hybrid retrieval rollout plan (issue #5468) translating
TARGET_ARCHITECTURE.mdinto a gap-gated staged delivery plan acrossindex,gpu,acceleration,graph,query,sharding, anddistributed_tensor.New:
ai_working/HYBRID_RETRIEVAL_ROLLOUT_PLAN.mdCentral planning artifact with all four required deliverables:
Key invariants enforced throughout:
shardingat 35% 🔴)Module ROADMAP updates (8 files)
Each module ROADMAP gains:
gpu35% 🔴,graph60% 🟢)### Hybrid Retrieval Rollout Gates (issue #5468)section with concrete checkbox tasks, targets, and named ctest/benchmark gate identifiersai_working/HYBRID_RETRIEVAL_ROLLOUT_PLAN.md §7for full risk detailgraphqueryindexaccelerationshardinggpudistributed_tensorDescription
Linked Issues
Related to #5467 (planner design CPU/GPU boundaries), #5469 (kernel classification framework)
Type of Change
Breaking Change Checklist
VERSIONandCMakeLists.txtdocs/migration/### Removed/### Changedsection updatedTesting
Security Tiering Impact (Required for Runtime Changes)
Impacted tier(s):
Trust-boundary crossings documented in PR description (example: T3 -> T2, T5 -> T4 brokered call)
Boundary controls validated for affected T3/T4/T5 paths (AuthN/AuthZ, validation, rate limits, audit)
Boundary-focused tests added/updated or explicit N/A rationale provided
If trust level/privilege increased, security maintainer approval is attached
📚 Research & Knowledge (wenn applicable)
/docs/research/angelegt?/docs/research/implementation_influence/eingetragen?Relevante Quellen:
AI-Generated Code (KI-generierter Code)
GetSymbolReferences_CppToolsgeprüft (siehe.github/instructions/cpp-language-service-tools.instructions.md)new/deleteohne explizites Review eingeführtAI Review Workflow (Required for AI-assisted PRs)
.github/prompts/pr-diff-findings-review.prompt.md.github/prompts/security-hardening-review.prompt.md(or N/A documented).github/prompts/api-change-impact-review.prompt.md(or N/A documented).github/copilot/REVIEW_SEVERITY_POLICY.mdHigh-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)
.github/prompts/release-readiness-check.prompt.mdfor branch transition scopeBRANCHING_STRATEGY.mdandRELEASE_STRATEGY.mdVERSIONING.mdandCHANGELOG.mdChecklist
[Unreleased]Scanner and IntelliSense Gates
criticalfindings in categoriessecurity,input_validation,query_correctness,distributed_consistency,concurrency,memoryhighfindings in the same categories (or explicitly approved)unknownscanner findings triaged (fixed, re-categorized, or justified)