Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
cc61e9d
perf(sessions): read projection queue heads once per window
ScriptedAlchemy Nov 8, 2026
e1874e3
style(sessions): format queue-head window regression
ScriptedAlchemy Nov 8, 2026
7f8147b
perf(sessions): avoid idle projection writer transactions
ScriptedAlchemy Nov 8, 2026
d265e31
perf(sessions): skip terminal retries during restart re-arm
ScriptedAlchemy Nov 8, 2026
7322c88
style(sessions): format projection queue regression
ScriptedAlchemy Nov 8, 2026
35da211
fix(sessions): avoid idle retry-rearm writer transactions
ScriptedAlchemy Nov 8, 2026
5466c90
perf(sessions): avoid terminal-only projection writer leases
ScriptedAlchemy Nov 8, 2026
1c08ac0
perf(sessions): skip deferred-only projection writer polls
ScriptedAlchemy Nov 8, 2026
6f32ff2
perf(sessions): honor deferred sequence head without writer
ScriptedAlchemy Nov 8, 2026
71195bb
perf(sessions): avoid writer leases during projection rebuilds
ScriptedAlchemy Nov 8, 2026
348d92f
style(sessions): apply hosted Bazel rustfmt corrections
ScriptedAlchemy Nov 8, 2026
f7e4a6e
fix(sessions): preserve queue index plans under QPSG
ScriptedAlchemy Nov 8, 2026
aadc35a
style(sessions): format projection index import
ScriptedAlchemy Nov 8, 2026
c1d1f67
style(sessions): satisfy Bazel rustfmt import ordering
ScriptedAlchemy Nov 8, 2026
5fa0250
fix(sessions): clone queued observation id in restart assertion
ScriptedAlchemy Nov 8, 2026
b8e1c38
fix(projection): register strict queue index authority
ScriptedAlchemy Nov 8, 2026
73b7422
fix(sessions): validate queued-head partial index predicate
ScriptedAlchemy Nov 8, 2026
4700f30
style(sessions): normalize projection regression spacing
ScriptedAlchemy Nov 8, 2026
ba5f862
fix(storage): validate the complete active queue index definition
ScriptedAlchemy Nov 8, 2026
16a4266
test(automation): bind scheduler fixtures to backend identities
ScriptedAlchemy Nov 8, 2026
935c8c7
perf(sessions): avoid rearming already-due projection retries
ScriptedAlchemy Nov 8, 2026
ca73d62
style(sessions): apply hosted Rust 2024 formatting
ScriptedAlchemy Nov 8, 2026
35c00f3
fix(sessions): document stable QPSG retry cutoff plans
ScriptedAlchemy Nov 8, 2026
5632168
perf(sessions): update exact rows from each retry window
ScriptedAlchemy Nov 9, 2026
7708ab1
test(sessions): measure settled retry writer leases
ScriptedAlchemy Nov 9, 2026
e30bcbc
fix(sessions): preserve qualified projection audit ownership
ScriptedAlchemy Nov 9, 2026
84bf091
test(sessions): distinguish mount-local projection retry deadlines
ScriptedAlchemy Nov 9, 2026
1df969b
perf(sessions): move sparse retry scans off SQLite writer
ScriptedAlchemy Nov 9, 2026
fbec982
test(sessions): cover interrupted retry recovery across restart
ScriptedAlchemy Nov 9, 2026
b6d7a9b
fix(sessions): bound retry recovery by observation sequence
ScriptedAlchemy Nov 9, 2026
c19037a
style(sessions): format retry recovery restart assertion
ScriptedAlchemy Nov 9, 2026
46a16e6
fix(sessions): freeze retry eligibility across rearm windows
ScriptedAlchemy Nov 9, 2026
7dd565d
simplify(sessions): use the frozen retry snapshot as the scan bound
ScriptedAlchemy Nov 9, 2026
ebe7739
fix(sessions): release retry snapshot before batched writes
ScriptedAlchemy Nov 9, 2026
f0b5e5c
fix(sessions): rearm retry backlogs beyond staging memory
ScriptedAlchemy Nov 9, 2026
a144ac6
fix(sessions): refuse unbounded retry staging disk spill
ScriptedAlchemy Nov 9, 2026
09a2762
fix(sessions): rearm earlier mounts one retry page at a time
ScriptedAlchemy Nov 9, 2026
6269188
fix(sessions): refuse incompatible projection retry queues
ScriptedAlchemy Nov 9, 2026
b7cd1af
fix(sessions): preserve the shipped retry queue on recovery
ScriptedAlchemy Nov 9, 2026
1c0af1e
perf(sessions): batch durable source presence reoffers
ScriptedAlchemy Nov 9, 2026
49edb8a
perf(sessions): avoid rearming retries that matured mid-recovery
ScriptedAlchemy Nov 9, 2026
d494ae8
style(sessions): format source and retry recovery regressions
ScriptedAlchemy Nov 9, 2026
5aa7854
test(sessions): measure SQLite statement pages on the writer
ScriptedAlchemy Nov 9, 2026
89bd943
style(sessions): format the matured retry guard
ScriptedAlchemy Nov 9, 2026
c3ddf73
fix(storage): count prepared reads and writes inside SQL transactions
ScriptedAlchemy Nov 9, 2026
ad5e8af
Merge master into fix/4756-bounded-projection-head-read
ScriptedAlchemy Nov 9, 2026
ddbcad6
perf(sessions): scope rewrite queue updates to source records
ScriptedAlchemy Nov 9, 2026
3e6aa1f
style(sessions): format the rewrite queue regression
ScriptedAlchemy Nov 9, 2026
81e71e5
perf(sessions): skip settled source rewrite retirements
ScriptedAlchemy Nov 9, 2026
6aeabb8
test(sessions): preserve queued revivals during rewrite cleanup
ScriptedAlchemy Nov 9, 2026
50d2822
perf(sessions): skip absent source-record retirement work
ScriptedAlchemy Nov 9, 2026
7125670
fix(sessions): resume source retirement in bounded writer pages
ScriptedAlchemy Nov 9, 2026
6aab511
style(sessions): format bounded rewrite regression counters
ScriptedAlchemy Nov 9, 2026
57ff967
perf(sessions): seek rewrite pages past settled survivors
ScriptedAlchemy Nov 9, 2026
a169d54
fix(sessions): preserve typed rollback result for rewrite seek
ScriptedAlchemy Nov 9, 2026
6a0abf5
perf(sessions): avoid second scan for single rewrite page
ScriptedAlchemy Nov 9, 2026
54e8f80
test(sessions): bound rewrite fixture setup and scope writer
ScriptedAlchemy Nov 9, 2026
656ae03
perf(sessions): skip repeated retained-prefix rewrite updates
ScriptedAlchemy Nov 9, 2026
9573a03
perf(sessions): avoid unchanged pending rewrite updates
ScriptedAlchemy Nov 9, 2026
cd99010
test(sessions): batch retry fixture writes without reducing coverage
ScriptedAlchemy Nov 9, 2026
6974281
perf(sessions): avoid empty source-rewrite tail transactions
ScriptedAlchemy Nov 9, 2026
010fcce
fix(sessions): discard source-rewrite lookahead without must-use warning
ScriptedAlchemy Nov 9, 2026
c47732c
perf(sessions): coalesce temporal resets in source retirement pages
ScriptedAlchemy Nov 10, 2026
721fdc8
test(sessions): bound projected restart fixture batches
ScriptedAlchemy Nov 10, 2026
0099fe6
style(sessions): apply pinned formatting to restart regression
ScriptedAlchemy Nov 10, 2026
9aa9d45
test(global-db): batch published fixture assembly
ScriptedAlchemy Nov 10, 2026
b0816d9
test(daemon): seat decoded census fixture before probing
ScriptedAlchemy Nov 10, 2026
c8d5c76
test(daemon): prepare artifacts before broker recovery assertions
ScriptedAlchemy Nov 10, 2026
21f4863
fix(runtime): preserve admitted deadlines and bounded writer checks
ScriptedAlchemy Nov 11, 2026
3a20499
test(sessions): repair rewrite corruption before restart
ScriptedAlchemy Nov 11, 2026
3016d45
test(sessions): carry bounded global-db fixture setup
ScriptedAlchemy Nov 11, 2026
7249acd
Merge branch 'master' into fix/4756-bounded-projection-head-read
ScriptedAlchemy Nov 11, 2026
60b772a
test(cli): await held core before starting dashboard
ScriptedAlchemy Nov 11, 2026
46e388f
test(global-db): batch overlap reconciliation fixture writes
ScriptedAlchemy Nov 12, 2026
b7d813d
test(cli): isolate and partition retained heap measurements
ScriptedAlchemy Nov 12, 2026
2e6f5d0
chore(sessions): integrate master into bounded projection reads
ScriptedAlchemy Nov 12, 2026
b5c8cb7
test(db): reuse published schema for cancellation sweep
ScriptedAlchemy Nov 13, 2026
ee5cf6e
test(dashboard): use the production runtime scheduler
ScriptedAlchemy Nov 13, 2026
f33740c
fix(daemon): finish degraded code owners before reset publication
ScriptedAlchemy Nov 13, 2026
1bce5f2
test(daemon): require a completed terminal maintenance page
ScriptedAlchemy Nov 13, 2026
7299062
merge: integrate master into bounded projection repair
ScriptedAlchemy Nov 13, 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 @@ -825,17 +825,54 @@ fn dashboard_started_while_the_project_opens_mounts_sessions_on_publication() {
let hold = canonical_temp_path(home.path()).join("hold-after-core-publish");
std::fs::write(&hold, b"hold").unwrap();
let entered = PathBuf::from(format!("{}.entered", hold.display()));
let _daemon = crate::common::spawn_tracedecay_daemon_with(home.path(), {
let daemon_log = home.path().join("dashboard-daemon.log");
let _daemon = crate::common::spawn_tracedecay_daemon_logged(home.path(), &daemon_log, {
let hold = hold.clone();
move |command| {
command.env("TRACEDECAY_TEST_HOLD_AFTER_CORE_PUBLISH", &hold);
}
});
// The dashboard request opens the project; the core server answers it
// while the open is held before the full server publishes.
// Status carries the deadline for a cold project open. Establish this
// fixture's held core before the dashboard's one-shot mounting grace can
// expire, and await the receipt written after the core becomes reachable.
// Setup and dashboard launch share the original command budget.
let launch_deadline = Instant::now() + cli_timeout();
let mut opening_command = tracedecay_command_without_daemon(home.path(), &project_root);
opening_command.args(["status", "--json"]);
let opening = run_with_timeout(
opening_command,
launch_deadline.saturating_duration_since(Instant::now()),
);
assert!(
opening.status.success(),
"status should open the project\nstdout:\n{}\nstderr:\n{}",
String::from_utf8_lossy(&opening.stdout),
String::from_utf8_lossy(&opening.stderr)
);
crate::common::poll_until(
launch_deadline,
Duration::from_millis(20),
|| entered.is_file().then_some(()),
|| {
format!(
"core publication was not held:\n{}",
std::fs::read_to_string(&daemon_log).expect("read isolated daemon log")
)
},
);

let mut command = tracedecay_command_without_daemon(home.path(), &project_root);
command.args(["dashboard", "--host", "127.0.0.1", "--port", "0"]);
let dashboard = run_with_timeout(command, cli_timeout());
let dashboard = run_with_timeout(
command,
launch_deadline.saturating_duration_since(Instant::now()),
);
assert!(
dashboard.status.success(),
"dashboard should start on the held core\nstdout:\n{}\nstderr:\n{}",
String::from_utf8_lossy(&dashboard.stdout),
String::from_utf8_lossy(&dashboard.stderr)
);
assert!(entered.is_file(), "core publication was not held");
let stdout = String::from_utf8_lossy(&dashboard.stdout);
let launch_url = stdout
Expand Down
2 changes: 1 addition & 1 deletion crates/tracedecay-global-db/src/observation_projection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub(super) use apply::{
derive_projection_with_alias, retire_source_record, verify_workflow_effects,
};
pub use rebuild::{project_observation, project_queued_observations, rebuild_projection};
pub(crate) use schema::OBSERVATION_PROJECTION_PERFORMANCE_INDEX_SQL;
pub(crate) use schema::{ACTIVE_QUEUE_INDEX_SQL, OBSERVATION_PROJECTION_PERFORMANCE_INDEX_SQL};
pub(super) use schema::{
ensure_observation_projection_performance_indexes, ensure_observation_projection_schema,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1677,7 +1677,8 @@ pub(in super::super) async fn retire_source_record(
};
supersede_projected_message(conn, &message).await?;
}
request_session_temporal_reset(conn, observation_id).await?;
// Source-rewrite completion coalesces temporal reset requests for the
// retired page after all output ownership has been reconciled.
Ok(true)
}

Expand Down
Loading
Loading