Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
8db58ec
fix(retention): verify and expose transactional GC progress
ScriptedAlchemy Nov 8, 2026
001b1ab
fix(retention): bound replay eligibility parsing before scanning
ScriptedAlchemy Nov 8, 2026
2a42006
style(retention): satisfy Bazel rustfmt for replay regressions
ScriptedAlchemy Nov 8, 2026
91ffd68
fix(retention): verify stored replay checkpoints before commit
ScriptedAlchemy Nov 8, 2026
ad3729b
fix(retention): verify canonical GC bootstrap checkpoints
ScriptedAlchemy Nov 8, 2026
21032e3
style(retention): satisfy Bazel rustfmt for GC regression
ScriptedAlchemy Nov 8, 2026
8e044d4
perf(retention): avoid repeated replay eligibility parsing
ScriptedAlchemy Nov 8, 2026
a1b2bcf
feat(retention): record committed page latency and replay parsing work
ScriptedAlchemy Nov 8, 2026
3924b36
style(retention): fix Bazel rustfmt for per-tick measurements
ScriptedAlchemy Nov 8, 2026
a945a8b
fix(retention): reject oversized payloads before sizing reads
ScriptedAlchemy Nov 8, 2026
ee4dc4c
style(retention): format replay read-cost regression
ScriptedAlchemy Nov 8, 2026
33988f7
test(retention): reopen read-cost fixture without denied PRAGMAs
ScriptedAlchemy Nov 8, 2026
370e91d
fix(retention): verify canonical candidate discharge after triggers
ScriptedAlchemy Nov 8, 2026
fd2ac3d
style(retention): keep canonical GC test helpers rustfmt-clean
ScriptedAlchemy Nov 8, 2026
d210841
style(retention): format candidate discharge assertions
ScriptedAlchemy Nov 8, 2026
57bae69
test(automation): bind scheduler fixtures to backend identities
ScriptedAlchemy Nov 8, 2026
4984a54
test(daemon): verify rollback at the store mount boundary
ScriptedAlchemy Nov 8, 2026
ee44f8c
test(daemon): isolate failed-mount cleanup from graph readiness
ScriptedAlchemy Nov 9, 2026
af10450
chore(retention): reconcile shared test prerequisites
ScriptedAlchemy Nov 9, 2026
ce112ef
fix(retention): report committed canonical bootstrap frontiers
ScriptedAlchemy Nov 9, 2026
1f04468
fix(retention): report committed empty bootstrap pages
ScriptedAlchemy Nov 9, 2026
680e992
chore(ci): stack daemon rollback on verified CLI fixtures
ScriptedAlchemy Nov 9, 2026
b3f839a
chore(ci): inherit verified CLI fixture admission
ScriptedAlchemy Nov 9, 2026
dfd0c6a
simplify(retention): admit replay body bytes once per page
ScriptedAlchemy Nov 9, 2026
9a1c8a2
fix(retention): account for ineligible replay pages
ScriptedAlchemy Nov 9, 2026
4ecf593
ci: integrate the verified prerequisite for #4827
ScriptedAlchemy Nov 9, 2026
189b071
ci: integrate the verified prerequisite for #4798
ScriptedAlchemy Nov 9, 2026
bfba483
fix(retention): scope SQL frontier logs to each store
ScriptedAlchemy Nov 9, 2026
ddabf4a
style(retention): format store-scoped frontier diagnostics
ScriptedAlchemy Nov 9, 2026
495a6da
ci: adopt authenticated cross-platform release staging
ScriptedAlchemy Nov 9, 2026
33a2060
Merge codex/cli-transport-fixture-admission into fix/daemon-mount-rol…
ScriptedAlchemy Nov 9, 2026
f3b937a
Merge fix/daemon-mount-rollback-fixture into fix/4787-retention-sql-p…
ScriptedAlchemy Nov 9, 2026
c3f2d94
fix(retention): refuse orphaned canonical bodies on vetoed delete
ScriptedAlchemy Nov 10, 2026
eb9bd17
perf(retention): batch canonical bootstrap writes
ScriptedAlchemy Nov 10, 2026
9b50818
perf(retention): batch observation bootstrap writer submissions
ScriptedAlchemy Nov 10, 2026
6edf069
fix(retention): verify bootstrap seed integrity before advancing
ScriptedAlchemy Nov 10, 2026
464e786
style(retention): format bootstrap tests for Bazel
ScriptedAlchemy Nov 10, 2026
59b9a77
perf(retention): avoid idle canonical GC writer admissions
ScriptedAlchemy Nov 11, 2026
224f0f7
style(gc): move idle regression imports to module scope
ScriptedAlchemy Nov 11, 2026
cc78124
Merge pull request #4798 from ScriptedAlchemy/fix/4787-retention-sql-…
ScriptedAlchemy Nov 11, 2026
d5669e7
fix(db): require batched execute_statements in adapters
ScriptedAlchemy Nov 11, 2026
2fe6c53
Merge origin/master into fix/daemon-mount-rollback-fixture
ScriptedAlchemy Nov 11, 2026
a1faf6c
chore(retention): reconcile with the Tokio runtime
ScriptedAlchemy Nov 13, 2026
0ef208d
test(native): use daemon scheduling in integration journeys
ScriptedAlchemy Nov 13, 2026
aa5da68
test(lsp): capture receipt admission phases on ACK failure
ScriptedAlchemy Nov 13, 2026
b0680c2
test(fixtures): align schema cancellation and retain hook diagnostics
ScriptedAlchemy Nov 13, 2026
51e30c6
Merge master into fix/daemon-mount-rollback-fixture
ScriptedAlchemy Nov 13, 2026
3f5f789
Merge master into fix/daemon-mount-rollback-fixture
ScriptedAlchemy Nov 13, 2026
2294395
test(runtime): remove completed investigation tracing
ScriptedAlchemy Nov 13, 2026
123aae9
test(storage): trace global schema fixture phases
ScriptedAlchemy Nov 13, 2026
767aa21
test(storage): remove schema phase investigation capture
ScriptedAlchemy Nov 13, 2026
caaff6f
test(storage): measure workflow cancellation sweep phases
ScriptedAlchemy Nov 13, 2026
569ee95
style(storage): format workflow sweep phase spans
ScriptedAlchemy Nov 14, 2026
e713de4
test(storage): remove workflow sweep phase capture
ScriptedAlchemy Nov 14, 2026
778f66a
test(global-db): reuse workflow cancellation baseline
ScriptedAlchemy Nov 14, 2026
bd624e0
chore: integrate canonical runtime and fixture repairs
ScriptedAlchemy Nov 14, 2026
68e0a25
test(mcp): name response phases in timeout failures
ScriptedAlchemy Nov 14, 2026
a9345b4
test(global-db): capture restored sweep phase timings
ScriptedAlchemy Nov 14, 2026
1be43ea
test(daemon): use the native provider fixture runtime
ScriptedAlchemy Nov 14, 2026
2a8f480
test(automation): remove completed settlement timing capture
ScriptedAlchemy Nov 14, 2026
e4db3eb
test(global-db): reuse cancellation sweep schema fixture
ScriptedAlchemy Nov 14, 2026
51a69e5
Merge remote-tracking branch 'origin/fix/daemon-mount-rollback-fixtur…
ScriptedAlchemy Nov 14, 2026
74dc425
fix(retention): integrate reviewed master changes
ScriptedAlchemy Nov 14, 2026
ec40c73
test(runtime): trace scripted daemon startup phases
ScriptedAlchemy Nov 14, 2026
1081212
chore(runtime): remove temporary daemon startup tracing
ScriptedAlchemy Nov 14, 2026
ef0e8c2
test(global-db): avoid unused schema fixture actor startup
ScriptedAlchemy Nov 14, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,16 @@ use tracedecay_store_runtime::DaemonSessionRuntimeRegistryV1;
const OBSERVED_AT: UtcMicros = UtcMicros(100);
const EXPIRES_AT: UtcMicros = UtcMicros(10_000);

fn run_native_journey(journey: impl Future<Output = ()>) {
// Native owners reuse the ambient runtime. Match the daemon's scheduling
// policy so a wake issued during a long owner poll stays stealable by
// another worker instead of being held in Tokio's default LIFO slot.
native_runtime::default_builder()
.build()
.expect("native journey runtime")
.block_on(journey);
}

struct UnexpectedAnalysis;

impl NativeIntegrationAnalysisPort for UnexpectedAnalysis {
Expand Down Expand Up @@ -760,8 +770,12 @@ async fn stack_snapshot(
selection.as_ref().clone()
}

#[tokio::test(flavor = "multi_thread")]
async fn declared_stack_runtime_shares_native_preview_and_failure_without_consuming_result() {
#[test]
fn declared_stack_runtime_shares_native_preview_and_failure_without_consuming_result() {
run_native_journey(shared_native_preview_and_failure_journey());
}

async fn shared_native_preview_and_failure_journey() {
for fail in [false, true] {
let directory = tempfile::tempdir().expect("temporary project directory");
let repository_root = directory.path().join("repo");
Expand Down Expand Up @@ -928,8 +942,12 @@ async fn declared_stack_runtime_shares_native_preview_and_failure_without_consum
}
}

#[tokio::test(flavor = "multi_thread")]
async fn checked_out_declared_stack_conflict_enqueues_without_moving_refs() {
#[test]
fn checked_out_declared_stack_conflict_enqueues_without_moving_refs() {
run_native_journey(checked_out_stack_conflict_journey());
}

async fn checked_out_stack_conflict_journey() {
let directory = tempfile::tempdir().expect("temporary project directory");
let repository_root = directory.path().join("repo");
let source_root = directory.path().join("dependency");
Expand Down Expand Up @@ -1392,8 +1410,12 @@ async fn checked_out_declared_stack_conflict_enqueues_without_moving_refs() {
code_index.shutdown().await;
}

#[tokio::test(flavor = "multi_thread")]
async fn independent_pair_applies_supported_modes_and_survives_daemon_restart() {
#[test]
fn independent_pair_applies_supported_modes_and_survives_daemon_restart() {
run_native_journey(independent_pair_restart_journey());
}

async fn independent_pair_restart_journey() {
for (index, mode) in [
MechanicalIntegrationModeV1::FastForward,
MechanicalIntegrationModeV1::TwoParentMerge,
Expand Down Expand Up @@ -1773,8 +1795,12 @@ async fn independent_pair_applies_supported_modes_and_survives_daemon_restart()
}
}

#[tokio::test(flavor = "multi_thread")]
async fn generated_only_change_requires_semantic_review() {
#[test]
fn generated_only_change_requires_semantic_review() {
run_native_journey(generated_only_change_journey());
}

async fn generated_only_change_journey() {
let directory = tempfile::tempdir().expect("temporary project directory");
let repository_root = directory.path().join("repo");
std::fs::create_dir_all(&repository_root).expect("repository root");
Expand Down Expand Up @@ -1818,8 +1844,12 @@ async fn generated_only_change_requires_semantic_review() {
code_index.shutdown().await;
}

#[tokio::test(flavor = "multi_thread")]
async fn foreign_destination_ref_drift_terminates_without_mutating_the_foreign_tip() {
#[test]
fn foreign_destination_ref_drift_terminates_without_mutating_the_foreign_tip() {
run_native_journey(foreign_destination_ref_drift_journey());
}

async fn foreign_destination_ref_drift_journey() {
let directory = tempfile::tempdir().expect("temporary project directory");
let repository_root = directory.path().join("repo");
std::fs::create_dir_all(&repository_root).expect("repository root");
Expand Down Expand Up @@ -1920,8 +1950,12 @@ async fn foreign_destination_ref_drift_terminates_without_mutating_the_foreign_t
/// Cleanup inspection of an owned checkout, asked while another thread walks
/// that checkout, classifies it from the shared walk. Reading the walk as
/// "no repository" classified the checkout as foreign.
#[tokio::test(flavor = "multi_thread")]
async fn owned_worktree_inspection_shares_the_discovery_walk_another_thread_owns() {
#[test]
fn owned_worktree_inspection_shares_the_discovery_walk_another_thread_owns() {
run_native_journey(shared_worktree_discovery_journey());
}

async fn shared_worktree_discovery_journey() {
let directory = tempfile::tempdir().expect("temporary project directory");
let repository_root = directory.path().join("repo");
std::fs::create_dir_all(&repository_root).expect("repository root");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1717,15 +1717,6 @@ fn settle_bound_owner_with_budget(
mut state: RetainedBoundSettlement,
budget: Duration,
) -> Result<RetainedOwnerValue<(AutomationSettledTerminal, AutomationRunLedgerRecord)>> {
#[cfg(test)]
let _capture = state.phase_hook.as_ref().map(|_| {
tracedecay_runtime_core::logging::FormattedTracingCapture::start_with_span_timings()
});
#[cfg(test)]
let _capture_span = state.phase_hook.as_ref().map(|_| {
tracing::info_span!("daemon.automation.retained_owner", run_id = %state.ledger.run_id)
.entered()
});
let started = std::time::Instant::now();
let mut delay = Duration::from_millis(25);
loop {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1941,8 +1941,13 @@ async fn a_cancellation_requested_before_mark_running_seals_cancelled() {
/// effect outcome. This test spends the real two-second wall on purpose, the
/// stall must be a monotonic measurement, not a virtual-clock artifact.
#[cfg(unix)]
#[tokio::test]
async fn a_wall_exhausted_provider_seals_timed_out_and_emits_the_no_progress_terminal() {
#[test]
fn a_wall_exhausted_provider_seals_timed_out_and_emits_the_no_progress_terminal() {
on_installed_runtime(verify_wall_exhausted_provider_terminal());
}

#[cfg(unix)]
async fn verify_wall_exhausted_provider_terminal() {
let (_artifact_dir, workflow_artifacts) = provider_artifact_store().await;
let profile = tempfile::TempDir::new().unwrap();
let directory = tempfile::TempDir::new().unwrap();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@ impl Executor for GitMutationWriteTransaction<'_> {
}
}

async fn execute_statements(
&self,
statements: Vec<tracedecay_runtime_core::db::engine::WriteStatement>,
) -> tracedecay_runtime_core::db::engine::Result<Vec<u64>> {
match self {
Self::Registered(transaction) => transaction.execute_statements(statements).await,
}
}

async fn execute_batch(&self, sql: &str) -> tracedecay_runtime_core::db::engine::Result<()> {
match self {
Self::Registered(transaction) => transaction.execute_batch(sql).await,
Expand Down
Loading
Loading