Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

spec/tla: follow the import expiry recheck in the mutant code edits

garrytana1e8c543ca76
diff --git a/scripts/structural-suites.tsv b/scripts/structural-suites.tsv
index fe3111ae59..7d064019a7 100644
--- a/scripts/structural-suites.tsv
+++ b/scripts/structural-suites.tsv
@@ -405,6 +405,7 @@ test/skillpack-writer-guard.test.ts (file-level) 6 readFileSync
test/snapshot-shape-guard.test.ts (file-level) 10 readFileSync
test/sources-webhook.test.ts Webhook sync job extraction contract 1 source-surface-helper
test/spec-drain-lease-constants.test.ts the TLA+ workflow runs when anything a mutant names changes 1 readFileSync
+test/spec-refresh-barrier.test.ts spec/tla/README.md documents the refresh-barrier mutants 1 readFileSync
test/spec-refresh-barrier.test.ts the TLA+ workflow runs when anything a refresh-barrier mutant names changes 1 readFileSync
test/spend-off-switch.test.ts reindex / onboard off-switch dispatch (regression guards) 3 bun-file
test/spring-skill-index.test.ts spring-loaded skill index 10 readFileSync
diff --git a/spec/tla/refresh-barrier/mutants.json b/spec/tla/refresh-barrier/mutants.json
index f8bbea8f7b..f8631b3921 100644
--- a/spec/tla/refresh-barrier/mutants.json
+++ b/spec/tla/refresh-barrier/mutants.json
@@ -375,8 +375,8 @@
"edits": [
{
"file": "src/core/persistence/refresh-barrier.ts",
- "before": " await declarePersistenceProtocol(tx);\n const [held] = await tx.executeRaw(`SELECT 1 FROM persistence_requests r JOIN sources s ON s.id=r.source_id\n WHERE r.id=$1::uuid AND r.state='deferred' AND COALESCE(s.last_commit,'')=r.deferred_import_from FOR SHARE OF s`, [row.id]);\n",
- "after": " const [held] = await tx.executeRaw(`SELECT 1 FROM persistence_requests r JOIN sources s ON s.id=r.source_id\n WHERE r.id=$1::uuid AND r.state='deferred' AND COALESCE(s.last_commit,'')=r.deferred_import_from FOR SHARE OF s`, [row.id]);\n await declarePersistenceProtocol(tx);\n"
+ "before": " await declarePersistenceProtocol(tx);\n const [held] = await tx.executeRaw(`SELECT 1 FROM persistence_requests r JOIN sources s ON s.id=r.source_id\n WHERE r.id=$1::uuid AND r.state='deferred' AND r.deferred_import_from=$2 AND COALESCE(s.last_commit,'')=r.deferred_import_from\n AND r.updated_at<now()-($3::double precision*interval '1 millisecond') FOR SHARE OF s`, [row.id, row.deferred_import_from, maxWaitMs]);\n",
+ "after": " const [held] = await tx.executeRaw(`SELECT 1 FROM persistence_requests r JOIN sources s ON s.id=r.source_id\n WHERE r.id=$1::uuid AND r.state='deferred' AND r.deferred_import_from=$2 AND COALESCE(s.last_commit,'')=r.deferred_import_from\n AND r.updated_at<now()-($3::double precision*interval '1 millisecond') FOR SHARE OF s`, [row.id, row.deferred_import_from, maxWaitMs]);\n await declarePersistenceProtocol(tx);\n"
}
],
"tests": [
@@ -403,8 +403,8 @@
"edits": [
{
"file": "src/core/persistence/refresh-barrier.ts",
- "before": "=r.deferred_import_from FOR SHARE OF s`, [row.id]);",
- "after": "=r.deferred_import_from`, [row.id]);"
+ "before": "interval '1 millisecond') FOR SHARE OF s`, [row.id, row.deferred_import_from, maxWaitMs]);",
+ "after": "interval '1 millisecond')`, [row.id, row.deferred_import_from, maxWaitMs]);"
}
],
"tests": [