Summary
Implement a production-safe dynamic tensor update path for ThemisDB based on:
- tensor delta logging
- manifest-driven freshness/state metadata
- snapshot-based rebuild
- advisory-only tensor artifacts
- exact graph fallback
This issue is the concrete engineering bridge between:
- dynamic graph updates under RocksDB/MVCC,
- distributed tensor artifacts,
- hybrid query planning,
- and graph-verified finalization.
Problem
A production knowledge graph changes continuously under:
- insert
- update
- delete
- MVCC / transactional write workloads
Exact RocksDB-backed state can be updated quickly, but tensor artifacts such as:
- tensor summaries
- routing tensors
- factorized artifacts
- shard summaries
- optional TT-like structures
cannot safely be recomputed synchronously in the commit path without unacceptable complexity, latency, and correctness risk.
The system therefore needs a derived-artifact maintenance model that:
- preserves exact graph truth,
- supports asynchronous tensor freshness,
- remains planner-visible,
- and never treats tensor artifacts as final truth-bearing state.
Goals
Design and implement a dynamic tensor-maintenance path with:
- tensor delta log
- manifest freshness/state model
- snapshot-based update worker
- patch / partial-refit / rebuild lifecycle
- planner/runtime compatibility contract
- exact graph fallback guarantees
Architectural Position
This issue must follow the explicit Tensor-Graph architecture boundaries:
- Graph Truth remains authoritative
- Tensor artifacts remain advisory-only
- summary-first retrieval may guide candidate selection
- exact-on-demand graph loading remains mandatory where correctness matters
- graph-verified finalization remains the final correctness boundary
This issue must not attempt to make tensor artifacts fully ACID-synchronous with every graph mutation.
Instead, it should define a controlled model where:
- exact graph state is immediately correct,
- tensor artifacts are versioned and freshness-scoped,
- planner/runtime can accept or reject them based on policy.
Phase 1: Design / API Contract
Required delta-log concepts
Required manifest fields
Phase 2: Core Implementation
Worker responsibilities
Phase 3: Failure Handling & Edge Cases
Important edge cases
Phase 4: Tests
Required test groups
Phase 5: Performance / Hardening
Performance questions
Phase 6: Documentation & Acceptance
Phase 7: Integration
Acceptance Criteria
Production Readiness Checklist
Known Issues & Limitations
- Fully transactional inline TT-core maintenance is out-of-scope
- Highly optimized incremental tensor-train update under MVCC is still research-heavy
- GPU-based tensor update acceleration should remain optional until benchmarked
- Initial versions may prefer rebuild safety over aggressive partial-refit sophistication
Breaking Changes
References
TARGET_ARCHITECTURE.md
HARDWARE_REQUIREMENTS.md
DISTRIBUTED_TENSOR_SHARDING.md
TENSOR_GRAPH_RESEARCH_ALIGNMENT.md
Summary
Implement a production-safe dynamic tensor update path for ThemisDB based on:
This issue is the concrete engineering bridge between:
Problem
A production knowledge graph changes continuously under:
Exact RocksDB-backed state can be updated quickly, but tensor artifacts such as:
cannot safely be recomputed synchronously in the commit path without unacceptable complexity, latency, and correctness risk.
The system therefore needs a derived-artifact maintenance model that:
Goals
Design and implement a dynamic tensor-maintenance path with:
Architectural Position
This issue must follow the explicit Tensor-Graph architecture boundaries:
This issue must not attempt to make tensor artifacts fully ACID-synchronous with every graph mutation.
Instead, it should define a controlled model where:
Phase 1: Design / API Contract
Required delta-log concepts
insert,update,delete)Required manifest fields
source_seq_startsource_seq_enddelta_lagartifact_age_msresidualrank_caprank_statusadvisory_onlyrebuild_stateinvalidation_reasonupdate_mode = patch | partial_refit | rebuildlast_rebuild_atPhase 2: Core Implementation
Worker responsibilities
Phase 3: Failure Handling & Edge Cases
Important edge cases
Phase 4: Tests
Required test groups
test_tensor_delta_logtest_tensor_manifesttest_tensor_update_workertest_tensor_snapshot_consistencytest_tensor_planner_policyPhase 5: Performance / Hardening
Performance questions
Phase 6: Documentation & Acceptance
Phase 7: Integration
Acceptance Criteria
Production Readiness Checklist
Known Issues & Limitations
Breaking Changes
References
TARGET_ARCHITECTURE.mdHARDWARE_REQUIREMENTS.mdDISTRIBUTED_TENSOR_SHARDING.mdTENSOR_GRAPH_RESEARCH_ALIGNMENT.md