Skip to content

TreeDB: use DATA storage for native engine publication - #5167

Draft
snissn wants to merge 43 commits into
mainfrom
codex/native-engine-kind105-next01-20261020
Draft

snissn wants to merge 43 commits into
mainfrom
codex/native-engine-kind105-next01-20261020

Conversation

@snissn

@snissn snissn commented Oct 20, 2026 •

Copy link
Copy Markdown
Owner

TreeDB publishes and recovers native state through the DATA B-tree, replacing the retired PRIMARY representation. Explicit PRIMARY requests, persisted companion namespaces and committed DATA/PRIMARY swaps fail with ErrLegacyFormatRebuildRequired before recovery writes or cleanup. Incompatible pre-alpha directories require rebuilding. Two recoverable DATA slots, immediate-parent proof, physical identity, persistent value-log dependencies and held snapshots retain their contracts.

Imported ColumnStore collections persist partition-live carriers through kind105 command replay. Native JSON/BSON document vectors support CRUD, held searchers and kind103 replay. Immutable imported cuts reuse the original transaction/COW owner with allocator, sequence and complete root-identity validation. Native search retains bounded tombstone routing and deleted waypoints, shares the upper-layer routing budget, and reports CandidateRows, document materialization and one-shot setup counters. Default, minimal and production statistics modes remain supported; explicit full-diagnostics and work-accounting requests are refused because those counters are not implemented.

The final scope restores the established fresh no_wal_fast USER leaf default: external leaves in the persistent value log. Explicit true/false caller choices and persisted true/false layouts remain supported, including read-only reopen, environment-conflict refusal and large-payload pointer persistence. USER leaf placement does not change DATA root authority. The failed full-file META API experiment is removed; publication uses the original pinned META primitive and retains both prerequisite-data and final-META durability fences. No recovery acceptance, slot/parent or generation oracle is weakened. The deselected SYSTEM pager-format experiment remains removed.

The packet also retains the Windows eligibility guards for tests requiring unavailable online vacuum, reserved-lane error precedence before resource construction, and generation-loop suppression in both parent and child of the unapplied-WAL fixture. The gateway crash test requires a successful journal acknowledgement before exit. External-leaf fixtures explicitly select their intended producer, and crash-witness allocator expectations reflect the combined sync constructor while retaining logical/durable horizons, dependency closure, cuts, seeds and complete recovery-state checks.

NOT MERGEABLE — final candidate failed the unchanged strict durable-cost gate; execution is halted at the user-requested boundary.

Final exact cf68ca24a5fa769a5da252c5729e889853d5be11 versus PRIMARY b03c73fa010987b8ce4c904ff6dca2d2497be393: all eight quiet pairs / 16 original samples are retained, with no retries or exclusions. All five raw microbenchmarks passed. The public durable comparison failed timing and allocation limits:

Per durable replacement PRIMARY baseline Final DATA candidate
Median ns/op 4,826,448 10,351,223.5
Operations/s, reciprocal of median ns/op 207.1917 96.6069
Median B/op 222,296 211,619
Median allocations/op 378 392

Paired median time increased 118.938883% against the +5% limit; median allocations increased 3.703704% against the no-growth limit. Bytes and both actual route-activation gates passed. This result is a product performance failure, not a flaky-test waiver. Exact failed job; artifact 12304129258 retains original binaries, harness/bindings, samples and the failure-only diagnostic trace. Remaining hosted checks may finish after halt; they cannot clear this failed gate.

Automatic exact-cf68 review also found stale VectorIndex.Stats on retained current-searching handles. The finding is accepted and remains unresolved. A separate two-file current-cut Stats repair has independent source acceptance, but is unqualified and not applied to this PR. It is preserved locally for a future authorized continuation; it is not a current-head fix or mergeability claim.

Historical hosted cost evidence remains source-bound below. Exact prior head 8e98239f075173815d149b8cf5fdc56b58ceaa58 completed 54 hosted checks successfully and failed two: the strict durable replacement timing check within the raw-path job, and its aggregate required gate. The five raw microbenchmarks passed. The quiet eight-pair public durable replacement comparison failed:

Per durable replacement PRIMARY baseline b03c73fa DATA candidate 8e98239f
Median ns/op 8,445,569.5 16,807,316.5
Operations/s, reciprocal of median ns/op 118.405 59.498
Median B/op 222,334.5 219,307
Median allocations/op 378 279

Paired median time increased 99.109630%, exceeding the unchanged +5% limit. Bytes, objects, quiet-host checks, actual route activation and both complete public lifecycles passed. Distinct binary/runtime identities remain recorded rather than labeled equivalent. Earlier failures, including 237aa0c4 (+97.993812%) and the preceding +99.74148% result, remain retained. The failure-only same-binary traces confirmed the attempted META primitive activated, but both DATA persistence phases remained expensive. Those traces include setup/seed/Close and are diagnostics, not additional acceptance samples or exact timed-loop attribution. No filesystem-cause or performance-improvement claim is made.

Final source is cf68ca24a5fa769a5da252c5729e889853d5be11. All ten focused normal controls passed at this exact commit with zero skips, missing tests or failures: six profile/reopen/DATA recovery/refusal controls, the original public durable replacement lifecycle, and three JSON/BSON vector lifecycle/search controls. Independent GPT-6.1 Sol source review accepted exact commit cf68ca2 / tree 5c75b4c6c95a8d79f7aa42fada5347760994a9f0 under #4879, binding the reviewed components and final source postimages. This source acceptance does not certify performance or hosted CI. At source 237aa0c4, the contract guard, 24 cost-runner Python controls, 34 focused normal controls with83 subtests, 74 affected race controls with59 subtests, original history/vacuum lifecycle, and all eight original crash-witness rows with the maintained whole-state comparator passed. These receipts remain bound to237, rather than being presented as current-head or full-Q acceptance. Automatic review findings already dispositioned remain retained; new-head findings still require resolution. No manual hosted trigger is requested under #4879.

Focused commands used Go 1.26.9, GOWORK=off, GOMAXPROCS=2, default GC, and -p=1:

go test -json -count=1 -p=1 -timeout=180s -failfast -tags treedb_test ./TreeDB -run '^(TestOpen_NoWALFastUserLeafPlacementPersists|TestApplyProfile_FastSetsPolicyBools|TestNoWALActuallyUsesDATASealAndRecovery|TestDirectDATAOldViewSurvivesFallbackRecovery|TestDirectDATAPersistedPRIMARYRequiresRebuild|TestDirectDATAOfflineMaintenanceRefusesRetiredPRIMARY)$'
go test -json -count=1 -p=1 -timeout=180s -failfast -tags treedb_test ./TreeDB/mvcc -run '^(TestCommitAtDurableReplacementLifecycle)$'
go test -json -count=1 -p=1 -timeout=180s -failfast ./TreeDB/collections -run '^(TestNativeDocumentVectorDeletedRoutingRetainsLiveResults|TestNativeDocumentVectorBinaryIDLifecycle|TestNativeDocumentVectorChurnSearchAndMaterialization)$'

This PR does not claim final Q/P5 or Dgraph/Badger acceptance. The final strict cycle has failed. This PR remains open and blocked; no further blind performance variant, retry, new PR or full qualification campaign is selected. PR #5190 is merged. Execution is halted as requested; complete engine/Q and Dgraph acceptance remain open.

Refs #5142, #5144, #5171 and #5139.

@coderabbitai

coderabbitai Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 359 files, which is 259 over the limit of 100.

To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch.

Upgrade to a paid plan to raise the limit.

Usage-priced reviews support at most 300 files.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 618f3cec-c9b2-4145-a180-b2c3436b48e9
📥 Commits

Reviewing files that changed from the base of the PR and between b03c73f and cf68ca2.

📒 Files selected for processing: 359
  • .github/ci/ci_impact.json
  • .github/scripts/test_mvcc_primary_cost_gate.py
  • .github/workflows/treedb-tests.yml
  • CHANGELOG.md
  • TreeDB/README.md
  • TreeDB/caching/cow_basis_completion.go
  • TreeDB/caching/cow_cut.go
  • TreeDB/caching/cow_dictionary_cleanup_test.go
  • TreeDB/caching/cow_flush.go
  • TreeDB/caching/cow_native_import_test.go
  • TreeDB/caching/cow_native_semantic.go
  • TreeDB/caching/cow_resources.go
  • TreeDB/caching/db.go
  • TreeDB/caching/flush_apply_stats.go
  • TreeDB/caching/flush_backlog_coalescing_test.go
  • TreeDB/caching/flush_run_planner.go
  • TreeDB/caching/leaf_page_log.go
  • TreeDB/caching/leaf_page_log_lanes.go
  • TreeDB/caching/leaf_page_log_test.go
  • TreeDB/caching/stable_dictionary_resource_test.go
  • TreeDB/collections/api.go
  • TreeDB/collections/collection_schema_coordinator.go
  • TreeDB/collections/command_wal.go
  • TreeDB/collections/native_basis_refresh.go
  • TreeDB/collections/native_catalog_source.go
  • TreeDB/collections/native_command_wal_apply.go
  • TreeDB/collections/native_document_vector_binary_test.go
  • TreeDB/collections/native_document_vector_certificate.go
  • TreeDB/collections/native_document_vector_contract_test.go
  • TreeDB/collections/native_document_vector_coverage.go
  • TreeDB/collections/native_document_vector_graph.go
  • TreeDB/collections/native_document_vector_metadata_test.go
  • TreeDB/collections/native_document_vector_node.go
  • TreeDB/collections/native_document_vector_persist.go
  • TreeDB/collections/native_document_vector_plan.go
  • TreeDB/collections/native_document_vector_read.go
  • TreeDB/collections/native_document_vector_readreuse_test.go
  • TreeDB/collections/native_document_vector_replay.go
  • TreeDB/collections/native_document_vector_review_regression_test.go
  • TreeDB/collections/native_document_vector_search.go
  • TreeDB/collections/native_domain_rollover.go
  • TreeDB/collections/native_domain_state.go
  • TreeDB/collections/native_engine_handoff.go
  • TreeDB/collections/native_engine_state.go
  • TreeDB/collections/native_index_ddl.go
  • TreeDB/collections/native_json_composite_replay.go
  • TreeDB/collections/native_json_crud.go
  • TreeDB/collections/native_json_import.go
  • TreeDB/collections/native_json_indexes.go
  • TreeDB/collections/native_json_insert.go
  • TreeDB/collections/native_json_public.go
  • TreeDB/collections/native_json_public.md
  • TreeDB/collections/native_json_read.go
  • TreeDB/collections/native_json_rows.go
  • TreeDB/collections/native_json_txn.go
  • TreeDB/collections/native_partition_live_coverage.go
  • TreeDB/collections/native_partition_live_persist.go
  • TreeDB/collections/native_partition_live_source.go
  • TreeDB/collections/native_typed_state.go
  • TreeDB/collections/native_vector_graph.go
  • TreeDB/collections/public_dependency_directory_cost_test.go
  • TreeDB/collections/typed_storage_naming_test.go
  • TreeDB/collections/vector_index.go
  • TreeDB/collections/vector_index_ops.go
  • TreeDB/collections/vector_index_partition_live_replay_v1.go
  • TreeDB/collections/vector_index_partition_live_v1.go
  • TreeDB/collections/vector_index_persist.go
  • TreeDB/collections/vector_index_persist_test.go
  • TreeDB/collections/vector_index_search.go
  • TreeDB/collections/vector_partition_lifecycle_public_v1.go
  • TreeDB/collections/vector_partition_live_document_v1.go
  • TreeDB/collections/vector_partition_manifest.go
  • TreeDB/collections/vector_partition_persistent_searcher_v1.go
  • TreeDB/collections/vector_partition_router_v1.go
  • TreeDB/compact_storage_test.go
  • TreeDB/cow_p2_progress_test.go
  • TreeDB/cow_power_loss_test.go
  • TreeDB/cow_public_primary_selection_test.go
  • TreeDB/cow_public_retention_test.go
  • TreeDB/cow_public_review_regression_test.go
  • TreeDB/db/batch.go
  • TreeDB/db/command_wal_primary_fallback_v6_test.go
  • TreeDB/db/command_wal_publish.go
  • TreeDB/db/compact_index_test.go
  • TreeDB/db/compact_storage_audit.go
  • TreeDB/db/data_original_admission_test.go
  • TreeDB/db/db.go
  • TreeDB/db/dependency_directory_lifetime_v2_test.go
  • TreeDB/db/dependency_directory_snapshot_rebind_v2.go
  • TreeDB/db/dependency_directory_v2.go
  • TreeDB/db/dependency_directory_v2_bench_test.go
  • TreeDB/db/dependency_directory_v2_repeat_publication_test.go
  • TreeDB/db/dependency_directory_v2_test.go
  • TreeDB/db/durable_primary_rebuild_v5.go
  • TreeDB/db/durable_primary_recovery_v5.go
  • TreeDB/db/durable_primary_recovery_v5_test.go
  • TreeDB/db/durable_primary_runtime_v5.go
  • TreeDB/db/durable_primary_snapshot_rebind_v5.go
  • TreeDB/db/durable_primary_snapshot_rebind_v5_test.go
  • TreeDB/db/durable_root_bench_test.go
  • TreeDB/db/durable_root_open_test.go
  • TreeDB/db/durable_root_owner_continuity_test.go
  • TreeDB/db/durable_root_recovery.go
  • TreeDB/db/durable_root_runtime.go
  • TreeDB/db/durable_root_snapshot_rebind.go
  • TreeDB/db/durable_root_storage_transaction_test.go
  • TreeDB/db/fragmentation.go
  • TreeDB/db/fragmentation_trigger_test.go
  • TreeDB/db/historical_stale_build_archive_test.go
  • TreeDB/db/index_gen.go
  • TreeDB/db/index_gen_db.go
  • TreeDB/db/index_swap.go
  • TreeDB/db/leaf_generation_gc.go
  • TreeDB/db/leaf_generation_pack_authority_test.go
  • TreeDB/db/leaf_generation_pack_rewrite.go
  • TreeDB/db/leaf_generation_prepared_cleanup_test.go
  • TreeDB/db/maintenance_reachability.go
  • TreeDB/db/maintenance_reachability_test.go
  • TreeDB/db/metadata_disposal_completion_v6.go
  • TreeDB/db/namespace_instrumentation_test.go
  • TreeDB/db/native_composite_replay.go
  • TreeDB/db/native_generation_failure_predicates_test.go
  • TreeDB/db/native_mvcc_dependency_release_v6.go
  • TreeDB/db/native_root_reader.go
  • TreeDB/db/native_root_reader_test.go
  • TreeDB/db/native_semantic_state.go
  • TreeDB/db/one_shot_custody_test.go
  • TreeDB/db/open_readonly.go
  • TreeDB/db/ordered_root_publish.go
  • TreeDB/db/ordered_root_test_hooks_test.go
  • TreeDB/db/original_primary_runtime_cleanup.go
  • TreeDB/db/original_recovery_cleanup_test.go
  • TreeDB/db/original_startup_generation.go
  • TreeDB/db/original_startup_generation_test.go
  • TreeDB/db/owned_finish_callback_scope_v6_test.go
  • TreeDB/db/owned_successor_test.go
  • TreeDB/db/physical_cleanup_failure.go
  • TreeDB/db/physical_snapshot_cut_v1.go
  • TreeDB/db/pools.go
  • TreeDB/db/power_loss_certification_stale_build_test.go
  • TreeDB/db/power_loss_witness_external_registry_test.go
  • TreeDB/db/power_loss_witness_registry_test.go
  • TreeDB/db/primary_arena_owner_v5.go
  • TreeDB/db/primary_arena_release_work.go
  • TreeDB/db/primary_arena_release_work_test.go
  • TreeDB/db/primary_bank_construction_v5.go
  • TreeDB/db/primary_bank_release_work_v6.go
  • TreeDB/db/primary_capsule_recovery_v6.go
  • TreeDB/db/primary_capsule_runtime_v6.go
  • TreeDB/db/primary_capsule_snapshot_rebind_v6.go
  • TreeDB/db/primary_capsule_v6_test.go
  • TreeDB/db/primary_dependency_cleanup_test.go
  • TreeDB/db/primary_dependency_projection_test.go
  • TreeDB/db/primary_dependency_v5.go
  • TreeDB/db/primary_directory_test.go
  • TreeDB/db/primary_joint_completed_v6_test.go
  • TreeDB/db/primary_joint_recovery_proof_v6.go
  • TreeDB/db/primary_joint_swap_v6.go
  • TreeDB/db/primary_joint_vacuum_v6_test.go
  • TreeDB/db/primary_leaf_pack_v5_test.go
  • TreeDB/db/primary_offline_pair_v6.go
  • TreeDB/db/primary_offline_pair_v6_test.go
  • TreeDB/db/primary_owned_promotion_v6_test.go
  • TreeDB/db/primary_owner_refund_test.go
  • TreeDB/db/primary_platform_refusal_test.go
  • TreeDB/db/primary_publication_scratch_test.go
  • TreeDB/db/primary_read_certificate_v6.go
  • TreeDB/db/primary_read_certificate_v6_test.go
  • TreeDB/db/primary_review_repairs_test.go
  • TreeDB/db/primary_runtime_disposal_work_v6.go
  • TreeDB/db/primary_runtime_disposal_work_v6_test.go
  • TreeDB/db/primary_runtime_metadata_test.go
  • TreeDB/db/primary_seal_release_work_v6.go
  • TreeDB/db/primary_shared_transaction_v6_test.go
  • TreeDB/db/primary_slot_custody_v6_test.go
  • TreeDB/db/primary_vacuum_v5_test.go
  • TreeDB/db/publication_absent_closure_test.go
  • TreeDB/db/publication_custody_certificate_test.go
  • TreeDB/db/recoverable_root_set.go
  • TreeDB/db/registry_admission_test.go
  • TreeDB/db/registry_directory_admission_test.go
  • TreeDB/db/retained_scratch_budget_test.go
  • TreeDB/db/retired_primary_format.go
  • TreeDB/db/retired_primary_format_test.go
  • TreeDB/db/root_publication_activation.go
  • TreeDB/db/root_publication_activation_test.go
  • TreeDB/db/root_publication_build_group.go
  • TreeDB/db/root_publication_build_group_data_cleanup_test.go
  • TreeDB/db/root_publication_build_group_primary_v6_test.go
  • TreeDB/db/root_publication_metadata.go
  • TreeDB/db/root_publication_p2_test.go
  • TreeDB/db/root_publication_primary_cleanup_v6_test.go
  • TreeDB/db/root_publication_seal_release.go
  • TreeDB/db/snapshot_cleanup_completion.go
  • TreeDB/db/snapshot_cleanup_completion_test.go
  • TreeDB/db/snapshot_manager_cleanup_test.go
  • TreeDB/db/snapshot_primary_retention.go
  • TreeDB/db/snapshot_primary_retention_test.go
  • TreeDB/db/span_run_contract_test.go
  • TreeDB/db/stable_pager_owned_operations.go
  • TreeDB/db/stable_pager_owned_operations_test.go
  • TreeDB/db/stable_resource.go
  • TreeDB/db/stable_resource_test.go
  • TreeDB/db/standalone_leaf_page_stable_resource_test.go
  • TreeDB/db/state_value_log_lifetime_test.go
  • TreeDB/db/vacuum_collection_publication_guard_test.go
  • TreeDB/db/vacuum_collection_roots.go
  • TreeDB/db/vacuum_offline.go
  • TreeDB/db/vacuum_online.go
  • TreeDB/db/vacuum_original_completion_test.go
  • TreeDB/db/vacuum_shared_base.go
  • TreeDB/db/vacuum_shared_base_test.go
  • TreeDB/db/vacuum_system_leaf_policy_test.go
  • TreeDB/db/vector_prepare_replay_ownership_test.go
  • TreeDB/db/vlog_gc_incremental.go
  • TreeDB/db/vlog_ref_cache_read_test.go
  • TreeDB/db/vlog_ref_incarnation.go
  • TreeDB/db/vlog_ref_incarnation_test.go
  • TreeDB/db/vlog_rewrite.go
  • TreeDB/dictdb_outer_leaves_regression_test.go
  • TreeDB/direct_data_public_test.go
  • TreeDB/docs/spec/architecture.md
  • TreeDB/docs/spec/cow-cache-publication.md
  • TreeDB/docs/spec/primary-retirement.md
  • TreeDB/docs/spec/recoverable-root-set-maintenance-3681.md
  • TreeDB/docs/spec/recovery.md
  • TreeDB/docs/spec/storage-format.md
  • TreeDB/docs/spec/value-log-lifecycle.md
  • TreeDB/docs/spec/vector-partition-v1-contract.md
  • TreeDB/docs/spec/verification.md
  • TreeDB/docs/spec/write-path-and-durability.md
  • TreeDB/freelist/generation_v1_prune_test.go
  • TreeDB/freelist/generation_v1_reservation.go
  • TreeDB/freelist/generation_v1_reservation_construction_test.go
  • TreeDB/freelist/generation_v1_test.go
  • TreeDB/freelist/generation_v1_txn.go
  • TreeDB/index_vacuum_m4_matrix_test.go
  • TreeDB/internal/adaptive/controller.go
  • TreeDB/internal/crc/crc.go
  • TreeDB/internal/crc/crc_test.go
  • TreeDB/internal/dictdb/read_definition.go
  • TreeDB/internal/leafrefscan/walk.go
  • TreeDB/internal/powerlossoracle/ledger.go
  • TreeDB/internal/primaryarena/arena.go
  • TreeDB/internal/primaryarena/arena_test.go
  • TreeDB/internal/primaryarena/bundle.go
  • TreeDB/internal/primaryarena/bundle_test.go
  • TreeDB/internal/primaryarena/claim_retention_test.go
  • TreeDB/internal/primaryarena/custody.go
  • TreeDB/internal/primaryarena/metadata.go
  • TreeDB/internal/primaryarena/metadata_range.go
  • TreeDB/internal/primaryarena/metadata_retention_test.go
  • TreeDB/internal/primaryarena/native_mvcc_group_v6.go
  • TreeDB/internal/primaryarena/owned_file_test.go
  • TreeDB/internal/primaryarena/ownership.go
  • TreeDB/internal/primaryarena/physical_capture.go
  • TreeDB/internal/primaryarena/physical_close_work.go
  • TreeDB/internal/primaryarena/physical_close_work_test.go
  • TreeDB/internal/primaryarena/read_root_construction_release_v6.go
  • TreeDB/internal/primaryarena/read_root_v6.go
  • TreeDB/internal/primaryarena/read_root_v6_test.go
  • TreeDB/internal/primaryarena/release_queue.go
  • TreeDB/internal/primaryarena/release_queue_test.go
  • TreeDB/internal/primaryarena/retention.go
  • TreeDB/internal/raftfsm/raft_snapshot.go
  • TreeDB/internal/raftfsm/raft_snapshot_primary_v5_test.go
  • TreeDB/internal/raftfsm/snapshot_capture_files_v1.go
  • TreeDB/internal/rootpublication/admission.go
  • TreeDB/internal/rootpublication/coordinator.go
  • TreeDB/internal/rootpublication/coordinator_allocation.go
  • TreeDB/internal/rootpublication/coordinator_handoff_prepare_test.go
  • TreeDB/internal/rootpublication/dependency_directory_metadata_test.go
  • TreeDB/internal/rootpublication/dependency_directory_reader_v2.go
  • TreeDB/internal/rootpublication/dependency_directory_release_work.go
  • TreeDB/internal/rootpublication/durable_format_v1.go
  • TreeDB/internal/rootpublication/durable_primary_root_v5.go
  • TreeDB/internal/rootpublication/durable_primary_root_v5_test.go
  • TreeDB/internal/rootpublication/durable_root_record_scratch_test.go
  • TreeDB/internal/rootpublication/durable_root_terminal_completion_v6.go
  • TreeDB/internal/rootpublication/durable_root_transaction.go
  • TreeDB/internal/rootpublication/durable_root_transaction_native_mvcc_v6.go
  • TreeDB/internal/rootpublication/namespace_containing_unlock_test.go
  • TreeDB/internal/rootpublication/ordinary_finish_v6.go
  • TreeDB/internal/rootpublication/primary_bank_metadata_compact_v5_test.go
  • TreeDB/internal/rootpublication/primary_bank_metadata_v5.go
  • TreeDB/internal/rootpublication/primary_bank_metadata_v5_test.go
  • TreeDB/internal/rootpublication/primary_candidate_v5.go
  • TreeDB/internal/rootpublication/primary_capsule_v6.go
  • TreeDB/internal/rootpublication/primary_capsule_v6_test.go
  • TreeDB/internal/rootpublication/primary_data_certificate_v6.go
  • TreeDB/internal/rootpublication/primary_finish_containing_test.go
  • TreeDB/internal/rootpublication/primary_ordinary_abort_v6_test.go
  • TreeDB/internal/rootpublication/primary_transaction_construction_v6.go
  • TreeDB/internal/rootpublication/resource_token.go
  • TreeDB/internal/rootpublication/types.go
  • TreeDB/internal/transactionowner/owner.go
  • TreeDB/leaf_generation_roll_manifest_test.go
  • TreeDB/maintenance_leaf_vlog_test.go
  • TreeDB/mongo_gateway/write_concern_test.go
  • TreeDB/mvcc/captured_successor_test.go
  • TreeDB/mvcc/durable_replacement_cost_test.go
  • TreeDB/mvcc/primary_generation_routing_v6_test.go
  • TreeDB/native_document_vector_bench_test.go
  • TreeDB/native_document_vector_public_test.go
  • TreeDB/native_existing_collections_test.go
  • TreeDB/native_existing_indexed_ordered_cost_test.go
  • TreeDB/native_existing_indexed_ordered_txn_test.go
  • TreeDB/native_partition_live_public_test.go
  • TreeDB/node/primary_directory_native_mvcc.go
  • TreeDB/node/primary_directory_native_mvcc_test.go
  • TreeDB/node/primary_directory_v1.go
  • TreeDB/node/primary_directory_v1_test.go
  • TreeDB/open_backend.go
  • TreeDB/open_backend_roles_external_test.go
  • TreeDB/page/page.go
  • TreeDB/page/page_test.go
  • TreeDB/pager/grow_work.go
  • TreeDB/pager/pager.go
  • TreeDB/pager/physical_close_work.go
  • TreeDB/pager/primary_capsule_write_test.go
  • TreeDB/pager/primary_read_root_close_work.go
  • TreeDB/pager/primary_read_root_v6.go
  • TreeDB/pager/write_work.go
  • TreeDB/power_loss_certification_api_test.go
  • TreeDB/power_loss_certification_page_reuse_test.go
  • TreeDB/power_loss_oracle_test.go
  • TreeDB/primary_joint_vacuum_v6_test.go
  • TreeDB/primary_owned_promotion_v6_test.go
  • TreeDB/primary_profile_v5_test.go
  • TreeDB/profiles_test.go
  • TreeDB/public.go
  • TreeDB/testdata/power_loss_counterexamples.json
  • TreeDB/testdata/power_loss_risk_inventory.json
  • TreeDB/testdata/power_loss_witness_contracts.json
  • TreeDB/tree/charged_projection.go
  • TreeDB/tree/iterator.go
  • TreeDB/tree/owned_iterator.go
  • TreeDB/tree/owned_root_empty_test.go
  • TreeDB/tree/owned_successor.go
  • TreeDB/tree/owned_successor_test.go
  • TreeDB/tree/pages.go
  • TreeDB/tree/primary_directory.go
  • TreeDB/tree/primary_iterator.go
  • TreeDB/tree/tree.go
  • TreeDB/vlog_rewrite.go
  • TreeDB/zipper/primary_arena_test.go
  • TreeDB/zipper/primary_base_evidence.go
  • TreeDB/zipper/primary_base_evidence_test.go
  • TreeDB/zipper/primary_construction_failure_v6_test.go
  • TreeDB/zipper/primary_directory.go
  • TreeDB/zipper/primary_scratch_test.go
  • TreeDB/zipper/read_only_prepare.go
  • TreeDB/zipper/read_only_prepare_test.go
  • TreeDB/zipper/zipper.go
  • cmd/benchprof/README.md
  • cmd/unified_bench/README.md
  • docs/API_STABILITY.md
  • scripts/mvcc_primary_cost_gate.py
  • scripts/mvcc_raw_path_gate.md

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Preserve the existing PR branch history under its no-force-push rule.
The integrated tree is exactly reviewed and qualified source f9f18ba
(tree 7488381). All native105 changes are retained.
No production or test source differs from that source tree.
@snissn snissn changed the title Persist native partition-live carriers through kind105 recovery Use DATA-only storage and persist native partition-live carriers Oct 20, 2026
@snissn

snissn commented Oct 20, 2026

Copy link
Copy Markdown
Owner Author

@codex review

Please review the final DATA-only/native105 implementation at 74af8e545ff742cc78a73540e250cd85eaaf0630 (tree 748838182e9fb7c6c002d3c3ac2a1f14c63c2767). The source packet is frozen and internally reviewed; exact-head build/durable smoke and setup self-checks pass, with remaining hosted CI running. Local original shared-custody race controls pass at the identical qualified tree; public lifecycle evidence remains attributed to its production-identical predecessor. The unchanged strict cost runner built both original PRIMARY baseline and DATA candidate and passed both lifecycle controls, but host quietness refused before timing (zero samples); hosted cost qualification is still required.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-20T22:28:11.574485Z cf68ca2 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@snissn
snissn marked this pull request as ready for review October 20, 2026 13:27
Copilot AI balanced review requested due to automatic review settings October 20, 2026 13:27

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 was unable to review this pull request because the user who requested the review has reached their quota limit.

Keep DATA page dependencies separate from target metadata in power-loss fixtures, use decoded node types in factory witnesses, and retain exact physical span coverage for absent DATA keys. Consume unpublished vacuum generation metadata only after the original cleanup scopes end.
@snissn

snissn commented Oct 20, 2026

Copy link
Copy Markdown
Owner Author

Current-head qualification at 74af8e545ff742cc78a73540e250cd85eaaf0630 remains blocked. Codex completed a clean exact-head review with zero unresolved threads. Copilot was quota-unavailable; CodeRabbit declined the file count/credit limit.

The unchanged original 8-pair/128-durable-replacement comparison ran on hosted CI with both route activations and quietness passing:

Arm Median ns/op ops/s B/op allocs/op
Exact 69c00c1 PRIMARY baseline 4,968,591 201.264 222,392 378
Exact 74af8e5 DATA candidate 10,078,488 99.221 283,170.5 499

Median paired time increased 102.55%; timing, bytes and allocation gates all fail. The separate raw-five comparison passes four rows and fails BenchmarkRepeatedIterator at +7.71% paired time, with112B/op and2alloc/op unchanged. These are blocking results, with no tolerance changes, waiver or rerun. Local host-quiet refusal remains a separate setup-only attempt.

Hosted correctness failures cover borrowed-cohort cleanup, malformed ready-marker refusal, DATA span planning, DATA crash-closure oracle expectations, and physical node flag decoding; Windows also exposes the unsupported-vacuum branch in the cohort fixture. Source causes are being handled as one coherent repair, preserving every failed attempt and existing assertions. Remaining platform/race jobs are still running. The prior focused/public passes retain their original source attribution and do not replace these current-head failures.

@snissn snissn changed the title Use DATA-only storage and persist native partition-live carriers TreeDB: use DATA storage for native engine publication Oct 20, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4466b7396a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8e98239f07

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cf68ca24a5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +6936 to +6937
if idx.nativeDocumentStats != nil {
return *idx.nativeDocumentStats

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Refresh stats for native document handles

When a VectorIndex is loaded before subsequent inserts, updates, deletes, or a rebuild, its Search method reads the current native graph but this branch keeps returning the one-time snapshot captured by loadNativeDocumentVector. Consequently Nodes, LiveDocs, DeletedDocs, and RebuildNeeded remain stale for the lifetime of an otherwise current-searching handle; refresh these statistics from the current graph or update the cached value as mutations publish.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Accepted as a real in-scope defect. The retained native index handle captures Stats at load while Search reads the current cut. A separate two-file repair now reuses the existing admitted/validated current-cut status reader, preserves the handle-specific rebuild threshold, and leaves held-searcher status cut-bound. Its JSON/BSON lifecycle regression and independent source review are preserved in /mnt/fast4tb/gomap-5139-resume-20261017/artifacts/native-vector-stats-final01/. This patch has not run or been applied to the PR: final cf68 strict timing and allocation gates failed, so the PR is blocked/draft and execution is halted as requested. This thread intentionally remains unresolved; no stale-statistics fix or mergeability is claimed.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants