Repository navigation
fix: honor quick integrity checks during historical upgrades - #175662
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a24b4bf1b9
ℹ️ 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".
| }); | ||
| writeCurrentStateSchemaMetadata(db, now); | ||
| assertOpenClawStateDatabaseForMaintenance(db, { pathname }); | ||
| assertMigratedStateTableIntegrity(db, pathname, previousVersion, true); |
There was a problem hiding this comment.
Limit post-migration checks to tables actually affected
For a canonical recent upgrade such as shared-state v26→v27, passing true unions every historical repair table into the post-migration checks, so assertSqliteTableIntegrity performs full scans of unrelated tables such as audit_events and subagent_runs even though the v27 migration only changes the replay, skill-usage, and lease indexes. Large installations therefore still incur potentially expensive unrelated full-index scans during the default QUICK upgrade path; track which historical repairs actually ran or omit the historical union for this runtime migration path.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
The canonical v26-to-v27 path returns earlier through migrateBoundedStateSchema and calls assertMigratedStateTableIntegrity with its default historicalRepair = false. It does not reach the cited call with true. That wider scope is reached only when the bounded path is unavailable and the historical convergence helpers run. No change is needed for the canonical recent-upgrade example.
| honor the requested check. Same-version Doctor repairs, automatic rollback | ||
| images, restore validation, and legacy transformed recovery archives retain full | ||
| integrity checks. |
There was a problem hiding this comment.
Correct the stated same-version Doctor integrity policy
This says same-version Doctor repairs retain full checks, but the new resolver returns QUICK plus the historical-repair table scope when foundVersion === supportedVersion, and the updated current-schema test explicitly allows an untouched corrupt index to remain unless FULL is requested. An operator relying on this paragraph may run doctor --fix believing the whole database was verified; document that ordinary same-version repair is QUICK by default and requires --full-integrity-check for whole-database coverage.
Useful? React with 👍 / 👎.
|
Codex review: blocked before merge. What this changesSeparates migration integrity coverage from backup eligibility and carries the requested QUICK or FULL policy through Doctor and update preparation. Example: Run openclaw doctor --fix on an agent database at schema version 24.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 3 items remain Keep open: this maintainer-authored PR addresses unnecessary full scans, but the same-version documentation and a diff-caused test failure need correction. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherDoctor and updater maintenance receive integrity options, preserve recovery images, validate SQLite databases, and pass admitted state to schema migration owners. flowchart TD
A[Doctor or update CLI] --> B[Maintenance owner]
B --> C[Recovery capture]
B --> D[Integrity policy]
D --> E[SQLite validation workers]
E --> F[Schema migration owners]
F --> G[Runtime admission]
Technical reviewBest possible solution: Retain separate backup and integrity policies, correct the same-version contract and regression expectation, and complete the historical upgrade evidence. Do we have a high-confidence way to reproduce the issue? Current-main source deterministically selects FULL for historical migrations without scoped-backup declarations, and the PR reports a matching public Doctor baseline; no target code was executed during this review. Is this the best way to solve the issue? Separating integrity coverage from recovery format addresses the coupling directly, reuses existing maintenance owners, and preserves the explicit FULL and recorded-corruption recovery paths. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ff908fed3f95. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceSource +306, Tests +151, Docs +9, Other +1. Total +467 across 47 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 17, 2026, 12:24 PM ET / 16:24 UTC. |
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ab97e707eb
ℹ️ 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".
| 13: [ | ||
| "cron_jobs", | ||
| "subagent_runs", | ||
| "workspace_setup_state", | ||
| "workspace_attestations", |
There was a problem hiding this comment.
Include workspace aliases in the v13 integrity scope
For upgrades from before v13, migrateJsonCanonicalWideRowsV13 reads workspace_path_aliases by workspace_key to populate workspace_setup_state.workspace_path, but this scope omits that source table. Because the default quick_check does not detect table/index inconsistencies, corruption in idx_workspace_path_aliases_workspace can make the migration miss an existing alias, persist a null workspace path, and then discard the corresponding attestation source. Add workspace_path_aliases to the v13 affected-table checks before running this migration.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
The indexed lookup is real, but the migration preserves the alias/path in workspace_path_aliases and transfers the attestation timestamps into workspace_setup_state; hashes remain in workspace_generated_bootstrap_hashes. It drops the old attestation table after that transfer, not the alias source. A missing alias lookup therefore produces the existing NULL-path orphan representation rather than losing the underlying path or attestation.
readWorkspaceStateSnapshotFromDatabase accepts that matching-key orphan, and replaceWorkspaceAttestationInDatabase heals its NULL path. Runtime alias resolution reads by alias_key and retains its path/key collision checks. This is a recoverable instance of the documented QUICK tradeoff for logical index inconsistencies in untouched tables. I have named the specific edge in the PR; it remains a follow-up rather than widening the migration scope in this change. Explicit FULL still detects the index inconsistency.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f4def059a6
ℹ️ 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".
| agentId: params.agentId, | ||
| path: params.pathname, | ||
| env: params.env, | ||
| integrityCheck: params.integrityCheck, |
There was a problem hiding this comment.
Propagate FULL into pre-v17 media schema upgrades
When Doctor runs with --full-integrity-check against an agent database at v16 or older, this property is never consumed by migrateOpenClawAgentDatabaseToMediaPrerequisiteSchemaSteps: that helper accepts only OpenClawAgentDatabaseOptions and calls both agentDatabaseIntegrityBeforeMutationSteps and ensureOpenClawAgentSchema without the requested mode. Consequently, the pre-media schema migration still performs QUICK/scoped admission, allowing unrelated index corruption to survive an explicitly requested whole-database check; thread integrityCheck into that helper.
AGENTS.md reference: AGENTS.md:L69-L69
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 2257026733b655e8580669b9159ef366e4896fa1.
Fixed by forwarding the selected mode through the pre-v17 media prerequisite gate and schema ensure, and through the subsequent canonical-index precheck. The index owner retains scoped FULL validation for every table it actually rebuilds. The known-corruption and preserving recovery branches remain unchanged.
The real v16 migration regression fails before this correction in both modes: default emits a whole PRAGMA integrity_check, while explicit FULL sends a QUICK worker request. After the correction both modes pass, preserving event identity/content/media and reaching the current schema; the existing malformed-v16-transcript rollback case also passes. This closes an additional ordinary-upgrade policy omission without changing the completed agent24/state20 measurement path.
…w#175662) Honor the requested QUICK integrity policy in ordinary historical update and Doctor migrations, independently of recovery-backup format. Carry the existing mode through captures, schema/media repairs, repair opens, asynchronous admission and lease cleanup. Keep scoped FULL checks on affected/rebuilt tables, foreign-key checks, explicit FULL/recovery verification, and the rule that QUICK cannot supply FULL admission. On a 6.07 GB stable agent24/state20 fixture, default public Doctor changes from 12 whole FULL / 0 QUICK / 2 scoped FULL / 13 FK to 0 whole FULL / 16 QUICK / 292 scoped FULL / 17 FK. Explicit FULL retains 12 whole FULL checks. Observed durations on the busy host are not controlled speedup claims. Separate failing-then-passing pre-v17 regressions cover default QUICK, explicit FULL and malformed transcript preservation. Candidate-side behavior only: the installed updater runs first. Untouched logical index inconsistencies remain the accepted QUICK tradeoff. Rollback/restore certification and known-corruption recovery retain FULL. No schema, SDK surface or PostgreSQL behavior changes.
What Problem This Solves
Routine upgrades from historical SQLite schemas silently selected whole-database FULL integrity checks despite the default QUICK policy. On a 6.07 GB stable agent24/state20 fixture, public Doctor executed 12 whole FULL checks and no explicit QUICK check.
User Impact
Ordinary update and Doctor upgrades now use whole-database
quick_check, FULL checks of affected tables, and foreign-key validation.--full-integrity-checkretains whole-database FULL validation. Explicit backup/database verification, Doctor recovery, rollback-image certification, restore validation, and corruption refusal keep their existing contracts. QUICK receipts cannot satisfy a later FULL request.This is candidate-side behavior: the installed updater runs first, so this change cannot accelerate work already performed by an older installed updater. No schema, SDK surface, or PostgreSQL behavior changes.
Why This Change Was Made
Historical migration backup eligibility and integrity coverage shared one decision, so a required full-file recovery backup implicitly forced FULL verification. The existing integrity owner now receives a separate cumulative migration-table scope; backup eligibility is unchanged. The requested mode reaches original captures, legacy Doctor/media repairs (including pre-v17 media prerequisites), same-version repairs, ACP inspection, credential relocation, and disposable update rehearsals. Doctor's existing maintenance scope carries that policy through synchronous and asynchronous repair opens and lease cleanup. The integrity worker receives both the mode and table scope. Temporary QUICK repair handles do not publish FULL runtime admission.
The superseded backup-driven FULL selection is removed. History inspection traced this to #174742 (
dae099a9414): QUICK eligibility depended on declared migration/backup scope, while undeclared and same-version repairs selected FULL. That was a generic repair policy, not a distinct rollback-certification requirement. This change extends the QUICK default to ordinary historical repairs; explicit recovery and restore certification remain distinct. Accepted edges for the removed implicit checks:Structural corruption, affected-table defects, foreign-key violations, and real credential/ownership conflicts still refuse the operation. No foreign-key check was removed.
Evidence
Final candidate:
417c5180c88f61ce01ce80110c30ec59a8b953bc.The synthetic fixture uses actual stable v2026.10.4 agent24/state20 DDL, 665,600 transcript rows and 1,024 sessions, totaling 6,070,161,408 bytes. Each public Doctor arm runs on a fresh private copy. Completed arms preserve original capture, reach agent31/state27, and preserve relevant row counts plus ordered 100-row hashes. This is bounded preservation proof, not full-corpus byte equality. Times below are observations on a busy host, not controlled speedup claims.
57314db33e30cb17486ac75ef4def059a682The default 6.07 GB result is transparently reused from
cb17486: thef4def059correction changes only FULL/unspecified lease-cleanup policy. Its public Doctor QUICK smoke produces identical check counts (0/16/292/17), and its FULL smoke and 6.07 GB FULL control both produce 12/0/42/12. The final pre-v17 correction cannot run on an agent24 source: both changed call sites require source version <=16. The completed 6.07 GB arms therefore remain applicable, with separate real-v16 regression proof for the final correction. Earlier arms that exposed policy omissions are excluded from this comparison. Explicit FULL measurement source:f4def059a6820da5498ec04d64b540d809224621.Default native integrity/FK invocations increase 27 → 325, as whole scans become individual affected-table checks. This PR does not claim fewer total SQL statements. Completed live-agent integrity-worker requests remain 1 → 1; that is the traced integrity-worker boundary, not total Doctor requests. The four extra FK checks are repeated live-agent admissions during shared-auth read, shared-auth cleanup, delivery rewrite, and title repair. The trace does not establish unchanged images after identical mutations, so none were removed as duplicates.
Gateway main-thread SQLite in affected owners remains T1 0 → 0; global T1 remains 181 → 181. No warmed-turn SQL/request change is claimed; this is an upgrade-only behavior fix.
Focused regressions fail on base or on the demonstrated omission before correction. They cover historical default versus explicit FULL using real SQLite index corruption, cumulative table scopes, original capture/rehearsal policy, credential and delivery repair, synchronous/asynchronous maintenance inheritance, lease cleanup, and rejection of QUICK-to-FULL receipt promotion. The cleanup regression fails three of four cases before its fix and passes all four afterward. The real pre-v17 regression reproduces both default whole-FULL and explicit-FULL-to-QUICK omissions before correction; both modes and the malformed-transcript rollback case pass afterward.
Final-head CI
39054935606completed SUCCESS: 138 successful jobs, 22 skipped, zero failures, including all test matrices, PostgreSQL conformance, types, lint, source/export contracts, Madge, and worker/T1/dialect checks. The required CI gate is green. The exact-head published-driver update cell39054941238completed SUCCESS: 9 successful jobs, 15 skipped, including its update product exercise. All 16 changed tests appear in the final CI preflight and directly edited-test selection policy; all 97 Node matrix jobs succeeded. Two consolidated-log transport failures prevent a per-file execution-log map, which is not claimed.The pre-v17 correction exposed two TS2339 diagnostics because its internal parameter type omitted
integrityCheck; commit417c5180c88fixes that annotation without changing runtime behavior or public database options. The directly affected Doctor typecheck, single-file type-aware lint, formatting, and diff check pass. The pre-v17 policy/rollback regression passes all 3 cases and remains applicable to the type-only correction.Canonical Knip export scans ran on the exact CI merge
754001c841e2and its actual main parent484f36aa09a6: both exit 1 with the same 13 inherited findings (8 production, 5 full-tree, zero scripts), byte-identical logs, and zero new findings. This supersedes the earlier 35-finding result because upstream removed exports and changed scan configuration. The new main findings have been routed to their maintenance owner. No green-Knip claim is made.Two independent Codex autoreview rounds are complete, with no accepted unresolved finding. The second round's only finding was an index-only version of the old same-version FULL override; the reviewed working-tree successor fixed it. Subsequent measured policy violations were corrected with failing regressions, respecting the two-round cap. The simplification pass reuses existing policy/maintenance owners; no new cache, handshakes, schema or fallback path.
One investigated local tooling failure remains disclosed: the Darwin-only PR worktree provisioner case exceeded its 120 s timeout (164.523 s) on this busy host. Linux skips it, and ordinary macOS PR CI does not select it. No timeout was raised and no full-suite replay is claimed.
The seven SQLite-native STRICT ADD COLUMN checks cost 14.961 s on this baseline and 102.474 s in the prior 43.615 GB measurement. SQLite performs existing-row validation for every STRICT ADD COLUMN, including nullable TEXT/INTEGER/ANY, so no harmless column-definition change avoids them while retaining the canonical schema. No such change is made, and no five-minute large-fixture claim is made.
LOC: 73 files, +1115/-165; production/tooling +504/-88. Most growth is explicit historical table scope and boundary regressions. The full check-by-check evidence below identifies mode, scope, database/image, and elapsed seconds.
Native SQLite observations from one public Doctor run per arm on the same 6.070 GB synthetic stable agent24/state20 corpus. Times are busy-host observations, not a controlled speedup claim.
Summed native check execution below is included in Doctor time; it must not be added again. Totals include every observed phase.
Completed live-agent integrity-worker IPC requests: base-private = 1, candidate-verified-quick = 1, candidate-final-explicit-full = 1. This narrowly counts the existing integrity worker reports; it is not total Doctor SQL requests. Snapshot children and synchronous checks are separate.
base-private: every native integrity/FK check
Source:
57314db33e30d3a828c43ef7d6a672952bf8500d. Final schema: agent 31, state 27.Labels distinguish capture/snapshot paths from live database paths within this arm. Repeated live labels can span migrations or mutations; they do not assert unchanged physical-image identity. Raw evidence retains exact paths and caller stacks.
wholewholewholewholewholewholewholewholewholewholewholewholewholewholewholewholewholewholewholewholecache_entriestrajectory_runtime_eventswholewholewholewholewholeObserved phases: doctor-flow (27).
candidate-verified-quick: every native integrity/FK check
Source:
cb17486ac75ed74c12dedb9d8fd8c18f8b19fe58. Final schema: agent 31, state 27.Labels distinguish capture/snapshot paths from live database paths within this arm. Repeated live labels can span migrations or mutations; they do not assert unchanged physical-image identity. Raw evidence retains exact paths and caller stacks.
wholewholewholewholewholeacp_replay_eventsacp_sessionsconfig_machine_statecron_run_receiptsdelivery_queue_entriesexecution_decision_factsmeeting_transcript_sessionsmeeting_transcript_summariesoperator_approvalsschema_metasession_state_headsskill_usagesqlite_stat1sqlite_stat4state_leasestask_runswholewholeauth_profile_stateauth_profile_storecontext_engine_turn_outboxmemory_entry_originsmemory_index_chunk_provenancememory_index_chunk_recall_metadatamemory_index_chunksmemory_index_sourcesmemory_index_stateschema_metasession_canonical_validation_pendingsession_conversationssession_entry_snapshotssession_key_contractsession_nodessession_pending_inputssession_reactionssession_transcript_active_eventssession_windowssqlite_stat1sqlite_stat4trajectory_runtime_eventstranscript_event_identitiestranscript_eventswholewholeauth_profile_stateauth_profile_storecontext_engine_turn_outboxmemory_entry_originsmemory_index_chunk_provenancememory_index_chunk_recall_metadatamemory_index_chunksmemory_index_sourcesmemory_index_stateschema_metasession_canonical_validation_pendingsession_conversationssession_entry_snapshotssession_key_contractsession_nodessession_pending_inputssession_reactionssession_transcript_active_eventssession_windowssqlite_stat1sqlite_stat4trajectory_runtime_eventstranscript_event_identitiestranscript_eventswholewholeacp_replay_eventsacp_sessionsconfig_machine_statecron_run_receiptsdelivery_queue_entriesexecution_decision_factsmeeting_transcript_sessionsmeeting_transcript_summariesoperator_approvalsschema_metasession_state_headsskill_usagesqlite_stat1sqlite_stat4state_leasestask_runswholewholeacp_replay_eventsacp_sessionsconfig_machine_statecron_run_receiptsdelivery_queue_entriesexecution_decision_factsmeeting_transcript_sessionsmeeting_transcript_summariesoperator_approvalsschema_metasession_state_headsskill_usagesqlite_stat1sqlite_stat4state_leasestask_runswholewholeacp_replay_eventsacp_sessionsconfig_machine_statecron_run_receiptsdelivery_queue_entriesexecution_decision_factsmeeting_transcript_sessionsmeeting_transcript_summariesoperator_approvalsschema_metasession_state_headsskill_usagesqlite_stat1sqlite_stat4state_leasestask_runswholeacp_replay_eventsacp_sessionsconfig_machine_statecron_run_receiptsdelivery_queue_entriesexecution_decision_factsmeeting_transcript_sessionsmeeting_transcript_summariesoperator_approvalsschema_metasession_state_headsskill_usagesqlite_stat1sqlite_stat4state_leasestask_runswholeacp_replay_eventsacp_replay_sessionsapns_registrationsaudit_eventsaudit_identity_keysclaw_installsclaw_package_refsconfig_machine_statecron_jobscurrent_conversation_bindingsdelivery_queue_entriesdevice_bootstrap_tokensdevice_pairing_paireddevice_pairing_pendingdiagnostic_eventsgateway_boot_lifecyclegateway_restart_handoffgateway_restart_intentgateway_restart_sentinelmanaged_outgoing_image_recordsmigration_runsofficial_external_plugin_catalog_snapshotsoperator_approvalssandbox_registry_entriesschema_metasecret_store_entriessession_watch_cursorssqlite_sequencesqlite_stat1sqlite_stat4subagent_runstask_runsuser_profile_identitiesworker_environmentsworker_session_placementsworker_session_tool_operationsworker_turn_tool_authoritiesworker_workspace_pending_resultsworktreeswholewholeauth_profile_stateauth_profile_storecontext_engine_turn_outboxmemory_entry_originsmemory_index_chunk_provenancememory_index_chunk_recall_metadatamemory_index_chunksmemory_index_sourcesmemory_index_stateschema_metasession_canonical_validation_pendingsession_conversationssession_entry_snapshotssession_key_contractsession_nodessession_pending_inputssession_reactionssession_transcript_active_eventssession_windowssqlite_stat1sqlite_stat4trajectory_runtime_eventstranscript_event_identitiestranscript_eventswholecache_entriestrajectory_runtime_eventsauth_profile_stateauth_profile_storecontext_engine_turn_outboxmemory_entry_originsmemory_index_chunk_provenancememory_index_chunk_recall_metadatamemory_index_chunksmemory_index_sourcesmemory_index_stateschema_metasession_canonical_validation_pendingsession_conversationssession_entry_snapshotssession_key_contractsession_nodessession_pending_inputssession_reactionssession_transcript_active_eventssession_windowssqlite_stat1sqlite_stat4trajectory_runtime_eventstranscript_event_identitiestranscript_eventswholewholeauth_profile_stateauth_profile_storememory_index_chunk_provenancememory_index_chunk_recall_metadatamemory_index_chunksmemory_index_sourcesmemory_index_stateschema_metasession_canonical_validation_pendingsession_conversationssession_entry_snapshotssession_key_contractsession_nodessession_pending_inputssession_transcript_active_eventssession_windowssqlite_stat1sqlite_stat4wholewholeauth_profile_stateauth_profile_storememory_index_chunk_provenancememory_index_chunk_recall_metadatamemory_index_chunksmemory_index_sourcesmemory_index_stateschema_metasession_canonical_validation_pendingsession_conversationssession_entry_snapshotssession_key_contractsession_nodessession_pending_inputssession_transcript_active_eventssession_windowssqlite_stat1sqlite_stat4wholewholeauth_profile_stateauth_profile_storememory_index_chunk_provenancememory_index_chunk_recall_metadatamemory_index_chunksmemory_index_sourcesmemory_index_stateschema_metasession_canonical_validation_pendingsession_conversationssession_entry_snapshotssession_key_contractsession_nodessession_pending_inputssession_transcript_active_eventssession_windowssqlite_stat1sqlite_stat4wholewholewholewholeauth_profile_stateauth_profile_storememory_index_chunk_provenancememory_index_chunk_recall_metadatamemory_index_chunksmemory_index_sourcesmemory_index_stateschema_metasession_canonical_validation_pendingsession_conversationssession_entry_snapshotssession_key_contractsession_nodessession_pending_inputssession_transcript_active_eventssession_windowssqlite_stat1sqlite_stat4wholewholeagent_database_leasesschema_metastate_leaseswholeObserved phases: doctor-flow (325).
candidate-final-explicit-full: every native integrity/FK check
Source:
f4def059a6820da5498ec04d64b540d809224621. Final schema: agent 31, state 27.Labels distinguish capture/snapshot paths from live database paths within this arm. Repeated live labels can span migrations or mutations; they do not assert unchanged physical-image identity. Raw evidence retains exact paths and caller stacks.
wholewholewholewholewholewholewholewholewholewholewholewholewholewholewholeacp_replay_eventsacp_sessionsconfig_machine_statecron_run_receiptsdelivery_queue_entriesexecution_decision_factsmeeting_transcript_sessionsmeeting_transcript_summariesoperator_approvalsschema_metasession_state_headsskill_usagesqlite_stat1sqlite_stat4state_leasestask_runswholewholewholewholecache_entriestrajectory_runtime_eventsauth_profile_stateauth_profile_storecontext_engine_turn_outboxmemory_entry_originsmemory_index_chunk_provenancememory_index_chunk_recall_metadatamemory_index_chunksmemory_index_sourcesmemory_index_stateschema_metasession_canonical_validation_pendingsession_conversationssession_entry_snapshotssession_key_contractsession_nodessession_pending_inputssession_reactionssession_transcript_active_eventssession_windowssqlite_stat1sqlite_stat4trajectory_runtime_eventstranscript_event_identitiestranscript_eventswholewholewholewholewholeObserved phases: doctor-flow (66).
Each arm retained its original capture, reached current agent/state schema versions, and preserved transcript/identity/origin counts and ordered 100-row sample hashes plus state-head/event counts and samples. This is bounded preservation proof, not whole-corpus byte equality.
Candidate-side behavior: these runs invoke the public Doctor command with repair/noninteractive and optional fullIntegrityCheck. An installed updater executes first in ordinary updates; candidate Doctor changes do not accelerate that already-installed updater. Optional UI sources/assets are absent in the same minimal runtime shape for every arm.
The 6.070 GB QUICK result was measured at cb17486 and is reused transparently for the FULL-control head f4def05. The f4def05 change makes lease cleanup follow the maintenance scope mode; its selected QUICK path is unchanged. The f4def05 public Doctor smoke tests passed in both modes with preserved data, and default QUICK exactly matched the prior 16 QUICK / 292 scoped FULL / 17 FK / zero whole FULL counts. Explicit FULL at f4def05 is measured again on the medium fixture. Later pre-v17 fixes cannot execute on this agent24 source; the final 417c518 type annotation changes no runtime behavior.
Setup failures, intermediate candidates that failed integrity-mode policy, and an interrupted run are excluded from this final comparison.
This 6.070 GB synthetic fixture does not establish the five-minute target for the earlier 43.6 GB corpus.