Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
119 commits
Select commit Hold shift + click to select a range
c8a1eff
fix(graph): reconcile verified retirement and retry state
ScriptedAlchemy Nov 8, 2026
e304bfe
style(graph): apply Bazel rustfmt to sealed retirement
ScriptedAlchemy Nov 8, 2026
3c66144
fix(graph): preserve unrelated directories during store recovery
ScriptedAlchemy Nov 8, 2026
65bd98f
fix(graph): refuse unverified sealed paths during rebuild
ScriptedAlchemy Nov 8, 2026
3d98921
style(graph): format sealed generation retirement tests
ScriptedAlchemy Nov 8, 2026
c5b8980
test(automation): bind scheduler fixtures to backend identities
ScriptedAlchemy Nov 8, 2026
c22406e
fix(graph): verify failed-adoption cleanup before unlink
ScriptedAlchemy Nov 8, 2026
7c9a6f4
style(graph): format failed adoption cleanup
ScriptedAlchemy Nov 8, 2026
882d642
fix(graph): refuse occupied sealed generation installs
ScriptedAlchemy Nov 8, 2026
dacd4a0
style(storage): format no-replace directory installation
ScriptedAlchemy Nov 9, 2026
e2f3371
test(graph): preserve unverified sealed artifacts on recovery
ScriptedAlchemy Nov 9, 2026
b568770
fix(graph): refuse occupied sealed staging on rebuild
ScriptedAlchemy Nov 9, 2026
5de9d92
fix(graph): require receipts for abandoned staging cleanup
ScriptedAlchemy Nov 9, 2026
0bf8a86
fix(graph): bind abandoned receipts to canonical generation identity
ScriptedAlchemy Nov 9, 2026
bd4f39e
test(graph): preserve unreceipted staging in crash regression
ScriptedAlchemy Nov 9, 2026
95e8a8b
Merge master into fix/4616-verified-sealed-retirement-clean-history
ScriptedAlchemy Nov 9, 2026
35abfc8
test(graph-db): import the canonical sealed receipt filename
ScriptedAlchemy Nov 9, 2026
f3d8f4e
fix(graph): verify row spill ownership before reclaim
ScriptedAlchemy Nov 9, 2026
05c18a3
fix(graph): publish row spills only with a complete owner receipt
ScriptedAlchemy Nov 9, 2026
d13622c
fix(graph): recover pending row spills after producer exit
ScriptedAlchemy Nov 9, 2026
ded88e8
fix(graph): distinguish spill owners across reused process IDs
ScriptedAlchemy Nov 9, 2026
59b5cd3
fix(graph): keep row-spill sweep bound to one sealed-root handle
ScriptedAlchemy Nov 9, 2026
552b5c7
fix(storage): continue cleanup after a verified child unlink fails
ScriptedAlchemy Nov 9, 2026
6eadebb
fix(graph): verify logical owner before old-format cleanup
ScriptedAlchemy Nov 9, 2026
53457e4
fix(graph): bind pending spill receipts to canonical names
ScriptedAlchemy Nov 9, 2026
e60c894
test(storage): use genuine spill and seal ownership identities
ScriptedAlchemy Nov 9, 2026
3d99237
Merge master into fix/4616-verified-sealed-retirement-clean-history
ScriptedAlchemy Nov 9, 2026
6287274
fix(graph): reclaim crashed sealed stages with owner receipts
ScriptedAlchemy Nov 9, 2026
76ac5bd
test(graph): import sealed staging recovery helpers
ScriptedAlchemy Nov 9, 2026
95a6696
fix(graph): preserve live sealed staging across remounts
ScriptedAlchemy Nov 9, 2026
8d97999
fix(graph): reject unowned receipts in sealed census
ScriptedAlchemy Nov 9, 2026
c87aa2f
test(graph): keep sparse census regression Unix-only
ScriptedAlchemy Nov 9, 2026
54b3b0a
fix(graph): exclude unproven staging from sealed census
ScriptedAlchemy Nov 9, 2026
f192a01
style(graph): format sealed census and recovery regressions
ScriptedAlchemy Nov 9, 2026
e006c62
test(graph): retire five sealed replay generations
ScriptedAlchemy Nov 9, 2026
79c53bb
fix(graph): anchor sealed proof marker writes to held directories
ScriptedAlchemy Nov 9, 2026
43b1ac4
style(fs): normalize sealed proof regression formatting
ScriptedAlchemy Nov 9, 2026
fa9ae40
fix(graph): preserve foreign sealed proof marker entries
ScriptedAlchemy Nov 9, 2026
280928f
style(fs): format sealed marker preservation regression
ScriptedAlchemy Nov 9, 2026
261682f
style(graph): fix Bazel rustfmt failures in sealed regressions
ScriptedAlchemy Nov 9, 2026
424ef24
fix(graph): bind sealed census size walks to held directories
ScriptedAlchemy Nov 9, 2026
db26ea9
fix(graph): bound sealed census directory descriptors
ScriptedAlchemy Nov 9, 2026
02a570b
style(graph): satisfy Bazel rustfmt for sealed census regression
ScriptedAlchemy Nov 9, 2026
66d70ee
fix(graph): remove unowned sealed cleanup after checked retirement
ScriptedAlchemy Nov 9, 2026
807a738
fix(graph): preserve sealed artifacts after uncertain reader close
ScriptedAlchemy Nov 9, 2026
44f9220
fix(graph): retain poisoned close state across retirement retries
ScriptedAlchemy Nov 9, 2026
b6f3ed5
fix(graph): retain failed-close readers across retirement retries
ScriptedAlchemy Nov 9, 2026
0b7c055
test(graph): prove failed retirement cannot delete sealed bytes
ScriptedAlchemy Nov 9, 2026
e50180b
fix(graph): preserve poisoned close with an absent engine
ScriptedAlchemy Nov 9, 2026
9dfe06d
fix(graph): fence lazy reopen against physical close
ScriptedAlchemy Nov 10, 2026
4af6755
style(graph): format lazy-close regression setup
ScriptedAlchemy Nov 10, 2026
a59921d
fix(graph): verify failed spill publication cleanup
ScriptedAlchemy Nov 10, 2026
9f04bed
style(graph): keep spill install result explicit
ScriptedAlchemy Nov 10, 2026
f1f880f
fix(graph): keep pending receipt failure cleanup owner-bound
ScriptedAlchemy Nov 10, 2026
72d885b
fix(graph): attribute sealed hardlinks to serving heads
ScriptedAlchemy Nov 10, 2026
8b1b062
style(graph): normalize sealed hardlink regression wrapping
ScriptedAlchemy Nov 10, 2026
94b5d9f
docs(graph): clarify shared-inode census accounting bounds
ScriptedAlchemy Nov 10, 2026
b23f36f
style(graph): align native tests with pinned rustfmt
ScriptedAlchemy Nov 10, 2026
bca1e23
fix(graph): bound sealed census hard-link bookkeeping
ScriptedAlchemy Nov 10, 2026
3c4fab3
fix(graph): keep shared census budget portable
ScriptedAlchemy Nov 10, 2026
d7bbee1
docs(graph): retain public sealed census API documentation
ScriptedAlchemy Nov 10, 2026
6027cba
fix(graph): refuse missing registered sealed retirement
ScriptedAlchemy Nov 10, 2026
9c3dfc4
style(graph): align retirement error mapping with rustfmt
ScriptedAlchemy Nov 10, 2026
b9798d7
test(graph): exercise relocated sealed paths on Unix
ScriptedAlchemy Nov 10, 2026
1f3e336
fix(graph): import sealed retirement verifier in native test
ScriptedAlchemy Nov 10, 2026
7367793
test(graph): align graph-db unit tests with sealed retirement contracts
ScriptedAlchemy Nov 10, 2026
6939336
fix(graph): release fully observed hard-link census identities
ScriptedAlchemy Nov 10, 2026
b1a9acd
test(graph): fix canonical corruption paths and formatting
ScriptedAlchemy Nov 10, 2026
580c546
fix(fs): retain census identities across sealed publication
ScriptedAlchemy Nov 10, 2026
cc772b3
test(graph): keep census scheduling private and preserve layered proof
ScriptedAlchemy Nov 10, 2026
80977b3
test(fs): import Unix inode metadata in census test module
ScriptedAlchemy Nov 10, 2026
6ac1861
test(graph): assert layered census generation counts
ScriptedAlchemy Nov 10, 2026
9e581d7
style(graph): match Bazel rustfmt for sealed census test
ScriptedAlchemy Nov 10, 2026
527b1df
fix(retention): refuse unreadable sealed census children
ScriptedAlchemy Nov 10, 2026
942a95b
fix(retention): preserve receipt I/O refusals in sealed census
ScriptedAlchemy Nov 10, 2026
eea5e3f
style(retention): normalize denied-receipt fixture formatting
ScriptedAlchemy Nov 10, 2026
3bc8783
style(private-fs): format retained payload assertion
ScriptedAlchemy Nov 10, 2026
0a098e1
fix(retention): classify socket receipts through held metadata
ScriptedAlchemy Nov 10, 2026
78e8d3e
style(retention): scope socket test import to module
ScriptedAlchemy Nov 10, 2026
c59bcfe
fix(private-fs): normalize no-follow receipt refusals
ScriptedAlchemy Nov 11, 2026
6088b7c
fix(doctor): scope sealed census to projection identities
ScriptedAlchemy Nov 11, 2026
2eb7085
test(global-db): remove redundant runtime reopens
ScriptedAlchemy Nov 11, 2026
308192a
chore(graph): preserve verified installs with native progress
ScriptedAlchemy Nov 11, 2026
4108e7d
test(graph): remove obsolete sealed builder import
ScriptedAlchemy Nov 11, 2026
2f05c8d
fix(fs): classify macOS socket receipts as nonregular
ScriptedAlchemy Nov 11, 2026
40ab61b
test(doctor): register schema authority before journal fixture
ScriptedAlchemy Nov 11, 2026
9491d6f
fix(graph): own sealed staging writes through held directory
ScriptedAlchemy Nov 12, 2026
ddb3a6a
test(fs): cover held directory producer ownership
ScriptedAlchemy Nov 12, 2026
9d195fb
fix(graph): refuse substituted sealed installs
ScriptedAlchemy Nov 12, 2026
7e05ab8
docs(fs): bound held path ownership claims
ScriptedAlchemy Nov 12, 2026
aaac678
Merge remote-tracking branch 'origin/master' into fix/4616-verified-s…
ScriptedAlchemy Nov 12, 2026
5c75f4f
test(dashboard): use the production runtime scheduler
ScriptedAlchemy Nov 13, 2026
87ccf41
test(cli): retain profile daemon readiness diagnostics
ScriptedAlchemy Nov 13, 2026
3c78257
test(dashboard): capture stalled overview phase timings
ScriptedAlchemy Nov 13, 2026
e79c2ae
test(daemon): require completed terminal retention pages
ScriptedAlchemy Nov 13, 2026
1b73b15
test(runtime): keep restart readiness within one deadline
ScriptedAlchemy Nov 13, 2026
094883f
test(advisory): use the production runtime policy
ScriptedAlchemy Nov 13, 2026
d8d24f5
test(fixtures): remove temporary tracing overrides
ScriptedAlchemy Nov 13, 2026
f1a21b0
test(private-fs): prove batch barriers overlap directly
ScriptedAlchemy Nov 13, 2026
d0d811b
Merge master into verified sealed retirement fixes
ScriptedAlchemy Nov 13, 2026
d94157b
style(tests): apply canonical fixture formatting
ScriptedAlchemy Nov 13, 2026
655cfd3
Merge master into sealed retirement repair
ScriptedAlchemy Nov 13, 2026
0205e08
test(runtime): wait for scheduler attachment during project open
ScriptedAlchemy Nov 13, 2026
f8352b6
chore(agent-hosts): trace paired configuration publication
ScriptedAlchemy Nov 13, 2026
5334b37
test(agent-hosts): capture paired config publication phases
ScriptedAlchemy Nov 13, 2026
3df1e45
test(dashboard): capture automation ledger read phases
ScriptedAlchemy Nov 13, 2026
4c85732
fix(fs): classify nonregular sealed receipt opens
ScriptedAlchemy Nov 14, 2026
365b9a9
Merge remote-tracking branch 'origin/fix/4616-verified-sealed-retirem…
ScriptedAlchemy Nov 14, 2026
546c8b6
fix(private-fs): clean failed Windows pending receipts
ScriptedAlchemy Nov 14, 2026
8480166
style(agent-hosts): apply hosted span formatting
ScriptedAlchemy Nov 14, 2026
75eaca8
style(private-fs): format pending receipt assertions
ScriptedAlchemy Nov 14, 2026
31beb52
test: remove scoped host and ledger phase capture
ScriptedAlchemy Nov 14, 2026
ede54ac
chore: integrate canonical runtime and fixture repairs
ScriptedAlchemy Nov 14, 2026
0af0825
test(global-db): reuse the published cancellation fixture
ScriptedAlchemy Nov 14, 2026
3606c63
fix(graph): clean failed initial staging receipts
ScriptedAlchemy Nov 14, 2026
f9bf227
test(fs): cover initial receipt failure and retry
ScriptedAlchemy Nov 14, 2026
bc21c16
style(fs): wrap initial receipt open assignment
ScriptedAlchemy Nov 14, 2026
6d8db65
style(fs): format receipt retry regressions
ScriptedAlchemy Nov 14, 2026
bfc5e80
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
30 changes: 22 additions & 8 deletions crates/tracedecay-agent-hosts/src/agents/text_file_transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ impl Drop for HostFileWriteLock {
/// a pathological churn storm surfaces as a typed error instead of a spin.
const HOST_FILE_LOCK_ACQUIRE_ATTEMPTS: usize = 64;

#[tracing::instrument(name = "agent_hosts.agents.config.lock", level = "trace", skip_all)]
pub(super) fn lock_host_file_write(path: &Path) -> Result<HostFileWriteLock> {
let parent = path
.parent()
Expand Down Expand Up @@ -279,6 +280,7 @@ impl HostFileSnapshot {
}
}

#[tracing::instrument(name = "agent_hosts.agents.config.snapshot", level = "trace", skip_all)]
fn capture_host_file_snapshot(path: &Path) -> std::io::Result<HostFileSnapshot> {
let before = match std::fs::symlink_metadata(path) {
Ok(metadata) if metadata.file_type().is_file() => metadata,
Expand Down Expand Up @@ -376,6 +378,11 @@ pub(crate) fn update_text_file_transactionally<T>(

/// Hold both path locks while publishing two host documents in order.
/// A failure leaves completed mutations in place.
#[tracing::instrument(
name = "agent_hosts.agents.config.update_pair",
level = "trace",
skip_all
)]
pub(crate) fn update_two_config_files_locked<T>(
first_path: &Path,
second_path: &Path,
Expand Down Expand Up @@ -406,14 +413,21 @@ pub(crate) fn update_two_config_files_locked<T>(
let first_existing = snapshot_utf8(first_path, &first_snapshot)?;
let second_existing = snapshot_utf8(second_path, &second_snapshot)?;
let (output, first_mutation, second_mutation) = update(first_existing, second_existing)?;
apply_file_mutation(first_path, &first_snapshot, &first_mutation)?;
apply_file_mutation(second_path, &second_snapshot, &second_mutation).map_err(|error| {
TraceDecayError::Config {
message: format!(
"{error}; earlier changes to {} remain in place",
first_path.display()
),
}
tracing::trace_span!(
"agent_hosts.agents.config.apply_document",
document = "first"
)
.in_scope(|| apply_file_mutation(first_path, &first_snapshot, &first_mutation))?;
tracing::trace_span!(
"agent_hosts.agents.config.apply_document",
document = "second"
)
.in_scope(|| apply_file_mutation(second_path, &second_snapshot, &second_mutation))
.map_err(|error| TraceDecayError::Config {
message: format!(
"{error}; earlier changes to {} remain in place",
first_path.display()
),
})?;
Ok(output)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -439,24 +439,34 @@ impl ProfileDaemon {
let deadline = std::time::Instant::now() + std::time::Duration::from_secs(30);
// Follow the exact isolated profile's published endpoint, retaining
// child ownership and startup diagnostics if admission fails.
while !current_daemon_connection(&cli.profile).is_ok_and(|connection| {
match connection.endpoint() {
DaemonEndpoint::Unix(socket) => {
std::os::unix::net::UnixStream::connect(socket).is_ok()
loop {
let readiness_error = match current_daemon_connection(&cli.profile) {
Ok(connection) => {
let connected = match connection.endpoint() {
DaemonEndpoint::Unix(socket) => {
std::os::unix::net::UnixStream::connect(socket).map(|_| ())
}
DaemonEndpoint::Loopback(address) => {
std::net::TcpStream::connect(address).map(|_| ())
}
};
match connected {
Ok(()) => break,
Err(error) => format!("connect to {}: {error}", connection.endpoint()),
}
}
DaemonEndpoint::Loopback(address) => std::net::TcpStream::connect(address).is_ok(),
}
}) {
Err(error) => format!("read daemon authority: {error}"),
};
if let Some(status) = daemon.child.as_mut().unwrap().try_wait().unwrap() {
panic!(
"profile daemon exited before listening for {}: {status}; stderr:\n{}",
"profile daemon exited before listening for {}: {status}; last readiness error: {readiness_error}; stderr:\n{}",
cli.profile.display(),
stderr()
);
}
assert!(
std::time::Instant::now() < deadline,
"the registered daemon never listened for profile {}; stderr:\n{}",
"the registered daemon never listened for profile {}; last readiness error: {readiness_error}; stderr:\n{}",
cli.profile.display(),
stderr()
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1074,10 +1074,36 @@ mod published_artifact_ceiling {

let stride = (total_polls / 12).max(1);
let mut cancelled_published = 0;
// Each convergence joins its exact runtime retirement. Reuse the
// canonically initialized store, restoring the upgrade's inputs and
// proving the entire workflow state before admitting a fresh runtime.
let store = &reference.store;
for cancel_at in (1..total_polls).step_by(stride) {
let daemon_store = DaemonPublishedStore::create().await;
let store = &daemon_store.store;
store.run(BULK_ROWS);
{
let mut connection = Connection::open(&store.path).unwrap();
let transaction = connection.transaction().unwrap();
republish(&transaction, &before.table_sql, &before.digest);
{
let mut insert = transaction
.prepare(
"INSERT INTO workflow_artifact_payloads
(rowid, payload_digest, byte_length, payload)
VALUES (?1, ?2, ?3, ?4)",
)
.unwrap();
for (rowid, digest, byte_length, payload) in &before.artifacts {
insert
.execute(rusqlite::params![rowid, digest, byte_length, payload])
.unwrap();
}
}
transaction.commit().unwrap();
}
assert_eq!(
store.state(),
before,
"poll {cancel_at} must start from the published workflow state"
);
let (outcome, _) = converge_cancelled_at(&store.path, cancel_at).await;
let state = store.state();
match outcome {
Expand Down
7 changes: 6 additions & 1 deletion crates/tracedecay-global-db/src/tests/lcm_schema/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,19 @@ use tracedecay_runtime_core::db::{

use crate::tests::harness::open_registered_test_database_fixture;

async fn open_global_db(db_path: &Path) -> tracedecay_domain::errors::Result<TestConnection> {
async fn initialize_global_db(db_path: &Path) -> tracedecay_domain::errors::Result<()> {
if let Some(parent) = db_path.parent() {
std::fs::create_dir_all(parent)?;
}
drop(
open_registered_test_database_fixture(db_path, TestDatabaseRuntimeScope::ProfileSessions)
.await?,
);
Ok(())
}

async fn open_global_db(db_path: &Path) -> tracedecay_domain::errors::Result<TestConnection> {
initialize_global_db(db_path).await?;
Ok(TestConnection::open(db_path))
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,9 @@ async fn fresh_temporal_schema_stores_and_searches_a_summary_node() {
async fn temporal_payload_manifest_schema_is_payload_global() {
let tmp = TempDir::new().unwrap();
let db_path = tmp.path().join(".tracedecay").join("sessions.db");
let db = open_global_db(&db_path)
initialize_global_db(&db_path)
.await
.expect("temporal schema initialization should not error");
drop(db);

let raw_db = TestConnection::open(&db_path);
let conn = (*raw_db).clone();
Expand Down Expand Up @@ -175,10 +174,9 @@ mod admission;
async fn temporal_schema_query_indexes_cover_exact_lookup_shapes() {
let tmp = TempDir::new().unwrap();
let db_path = tmp.path().join(".tracedecay").join("sessions.db");
let db = open_global_db(&db_path)
initialize_global_db(&db_path)
.await
.expect("temporal schema initialization should not error");
drop(db);

let raw_db = TestConnection::open(&db_path);
let conn = (*raw_db).clone();
Expand Down Expand Up @@ -305,10 +303,9 @@ async fn temporal_schema_root_retrieval_indexes_cover_catalog_and_large_query_sh

let tmp = TempDir::new().unwrap();
let db_path = tmp.path().join(".tracedecay").join("sessions.db");
let db = open_global_db(&db_path)
initialize_global_db(&db_path)
.await
.expect("temporal schema initialization should not error");
drop(db);

let raw_db = TestConnection::open(&db_path);
let conn = (*raw_db).clone();
Expand Down Expand Up @@ -608,10 +605,9 @@ async fn temporal_schema_root_retrieval_indexes_cover_catalog_and_large_query_sh
async fn temporal_schema_rejects_unexpected_indexes_without_dropping_them() {
let tmp = TempDir::new().unwrap();
let db_path = tmp.path().join(".tracedecay").join("sessions.db");
let db = open_global_db(&db_path)
initialize_global_db(&db_path)
.await
.expect("temporal schema initialization should not error");
drop(db);

let raw_db = TestConnection::open(&db_path);
let conn = (*raw_db).clone();
Expand Down Expand Up @@ -719,10 +715,9 @@ async fn temporal_schema_refuses_markerless_malformed_fts_without_mutation() {
async fn temporal_schema_rejects_missing_fts_without_rebuilding_it() {
let tmp = TempDir::new().unwrap();
let db_path = tmp.path().join(".tracedecay").join("sessions.db");
let db = open_global_db(&db_path)
initialize_global_db(&db_path)
.await
.expect("temporal schema initialization should not error");
drop(db);

let raw_db = TestConnection::open(&db_path);
let conn = (*raw_db).clone();
Expand Down Expand Up @@ -791,10 +786,9 @@ async fn temporal_schema_rejects_missing_fts_without_rebuilding_it() {
async fn temporal_schema_rejects_missing_graph_publication_authority_without_rebuilding_it() {
let tmp = TempDir::new().unwrap();
let db_path = tmp.path().join(".tracedecay").join("sessions.db");
let db = open_global_db(&db_path)
initialize_global_db(&db_path)
.await
.expect("temporal schema initialization should not error");
drop(db);

let raw_db = TestConnection::open(&db_path);
let conn = (*raw_db).clone();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,10 +285,9 @@ async fn temporal_schema_replaces_an_empty_earlier_authority_with_the_final_cont
async fn temporal_schema_rejects_transition_storage_without_mutating_it() {
let tmp = TempDir::new().unwrap();
let db_path = tmp.path().join(".tracedecay").join("sessions.db");
let db = open_global_db(&db_path)
initialize_global_db(&db_path)
.await
.expect("fresh store should receive the final temporal schema");
drop(db);

let raw_db = TestConnection::open(&db_path);
let conn = (*raw_db).clone();
Expand Down Expand Up @@ -332,10 +331,9 @@ async fn temporal_schema_rejects_transition_storage_without_mutating_it() {
async fn temporal_schema_rejects_foreign_summary_namespace_tables_without_mutation() {
let tmp = TempDir::new().unwrap();
let db_path = tmp.path().join(".tracedecay").join("sessions.db");
let db = open_global_db(&db_path)
initialize_global_db(&db_path)
.await
.expect("fresh initialization should install the final temporal schema");
drop(db);

let raw_db = TestConnection::open(&db_path);
let conn = (*raw_db).clone();
Expand Down Expand Up @@ -383,10 +381,9 @@ async fn temporal_schema_rejects_foreign_summary_namespace_tables_without_mutati
async fn final_store_missing_temporal_marker_requires_reset_without_mutation() {
let tmp = TempDir::new().unwrap();
let db_path = tmp.path().join(".tracedecay").join("sessions.db");
let db = open_global_db(&db_path)
initialize_global_db(&db_path)
.await
.expect("fresh store should receive every final authority");
drop(db);

let raw_db = TestConnection::open(&db_path);
let conn = (*raw_db).clone();
Expand Down Expand Up @@ -556,10 +553,9 @@ async fn writer_ledger_does_not_hide_a_nonempty_unmarked_store() {
async fn final_schema_admission_rejects_extra_temporal_column_metadata() {
let tmp = TempDir::new().unwrap();
let db_path = tmp.path().join(".tracedecay").join("sessions.db");
let db = open_global_db(&db_path)
initialize_global_db(&db_path)
.await
.expect("fresh initialization should install the final temporal schema");
drop(db);

let raw_db = TestConnection::open(&db_path);
let conn = (*raw_db).clone();
Expand Down Expand Up @@ -598,10 +594,9 @@ async fn final_schema_admission_rejects_extra_temporal_column_metadata() {
async fn final_schema_admission_rejects_missing_temporal_occurrence_time_index() {
let tmp = TempDir::new().unwrap();
let db_path = tmp.path().join(".tracedecay").join("sessions.db");
let db = open_global_db(&db_path)
initialize_global_db(&db_path)
.await
.expect("fresh initialization should install the final temporal indexes");
drop(db);

let raw_db = TestConnection::open(&db_path);
let conn = (*raw_db).clone();
Expand Down Expand Up @@ -635,10 +630,9 @@ async fn final_schema_admission_rejects_missing_temporal_occurrence_time_index()
async fn final_schema_admission_rejects_missing_graph_publication_table() {
let tmp = TempDir::new().unwrap();
let db_path = tmp.path().join(".tracedecay").join("sessions.db");
let db = open_global_db(&db_path)
initialize_global_db(&db_path)
.await
.expect("fresh initialization should install graph publication authority");
drop(db);

let raw_db = TestConnection::open(&db_path);
let conn = (*raw_db).clone();
Expand Down Expand Up @@ -670,10 +664,9 @@ async fn final_schema_admission_rejects_missing_graph_publication_table() {
async fn final_schema_admission_rejects_incompatible_graph_publication_column_metadata() {
let tmp = TempDir::new().unwrap();
let db_path = tmp.path().join(".tracedecay").join("sessions.db");
let db = open_global_db(&db_path)
initialize_global_db(&db_path)
.await
.expect("fresh initialization should install graph publication authority");
drop(db);

let raw_db = TestConnection::open(&db_path);
let conn = (*raw_db).clone();
Expand Down Expand Up @@ -712,10 +705,9 @@ async fn final_schema_admission_rejects_incompatible_graph_publication_column_me
async fn final_schema_admission_rejects_extra_graph_publication_table() {
let tmp = TempDir::new().unwrap();
let db_path = tmp.path().join(".tracedecay").join("sessions.db");
let db = open_global_db(&db_path)
initialize_global_db(&db_path)
.await
.expect("fresh initialization should install graph publication authority");
drop(db);

let raw_db = TestConnection::open(&db_path);
let conn = (*raw_db).clone();
Expand Down Expand Up @@ -753,10 +745,9 @@ async fn final_schema_admission_rejects_extra_graph_publication_table() {
async fn final_schema_admission_rejects_mixed_case_extra_temporal_table() {
let tmp = TempDir::new().unwrap();
let db_path = tmp.path().join(".tracedecay").join("sessions.db");
let db = open_global_db(&db_path)
initialize_global_db(&db_path)
.await
.expect("fresh initialization should install the final temporal schema");
drop(db);

let raw_db = TestConnection::open(&db_path);
let conn = (*raw_db).clone();
Expand Down Expand Up @@ -794,10 +785,9 @@ async fn final_schema_admission_rejects_mixed_case_extra_temporal_table() {
async fn final_schema_admission_rejects_mixed_case_extra_graph_publication_table() {
let tmp = TempDir::new().unwrap();
let db_path = tmp.path().join(".tracedecay").join("sessions.db");
let db = open_global_db(&db_path)
initialize_global_db(&db_path)
.await
.expect("fresh initialization should install graph publication authority");
drop(db);

let raw_db = TestConnection::open(&db_path);
let conn = (*raw_db).clone();
Expand Down Expand Up @@ -835,10 +825,9 @@ async fn final_schema_admission_rejects_mixed_case_extra_graph_publication_table
async fn final_schema_admission_rejects_extra_index_on_canonical_graph_table() {
let tmp = TempDir::new().unwrap();
let db_path = tmp.path().join(".tracedecay").join("sessions.db");
let db = open_global_db(&db_path)
initialize_global_db(&db_path)
.await
.expect("fresh initialization should install graph publication authority");
drop(db);

let raw_db = TestConnection::open(&db_path);
let conn = (*raw_db).clone();
Expand Down
Loading
Loading