Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
chore(wave): keep the #7923 catch-block dispatch to two lines, baseline the callback at 302 and refresh the structural suites manifest
garrytand43f49371ecd
diff --git a/scripts/function-size-baseline.tsv b/scripts/function-size-baseline.tsvindex 86b6d796ca..df4d0ac06e 100644--- a/scripts/function-size-baseline.tsv+++ b/scripts/function-size-baseline.tsv@@ -31,6 +31,7 @@ src/core/context-engine.ts createGBrainContextEngine 520 seed: W5 baseline, refasrc/core/context/retrieval-reflex.ts resolveEntitiesToPointers 362 seed: W5 baseline, refactor wave 1 (decomposition deferred to wave 2, plan D1); +7 fix wave 11 #6195: multi-word weak n-gram norms and the weak-title arm call (logic in weakTitleHits)src/core/cycle.ts runCycleUnscoped 1277 #6696 (A5): the body of runCycle, renamed when runCycle became its background-origin wrapper (9 lines shorter); seed: W5 baseline, refactor wave 1 (decomposition deferred to wave 2, plan D1); +5 #5809: extract_atoms phase gets a real abort signal; +2 #5809: cycle_already_running names the lock holder; +1 #4578: a lock steal during the last selected phase reports lock_stolen (one phase per runCycle call); +4 GBRA-40 F4b: planner-stats refresh after the freshness phases; +14 #5876: Life Chronicle phase dispatch block; +6 GBRA-40 Lane D: facts_drain phase dispatch; +10 GBRA-49: edge_contradictions phase dispatch block (adapter in cycle/edge-contradictions.ts); +6 #6188: fence_repair phase dispatch block (logic in cycle/fence-repair.ts); +2 fix wave 12 #6242: lease-set result and the maintenance-busy skip call (logic in skipBrainWidePhases and cycle/lock-set.ts); +7 C4: standing_questions phase dispatch block (logic in questions/phase.ts)src/core/cycle/extract-atoms.ts runPhaseExtractAtoms 790 seed: W5 baseline, refactor wave 1 (decomposition deferred to wave 2, plan D1); +12 #5809/#5832: hard/soft stop checks, chat-call signal, abortable pacing, no post-stop writes; +1 #5856: one BudgetTracker per drain attempt (reuse the attempt's tracker); +2 fix wave 9 lane P (#5041): opt-in write-through hook creation and its per-item call (derived-write-through.ts); +1 #5031: per-run page-atom title memo for the case-insensitive adoption fallback+src/core/cycle/extract-atoms.ts runPhaseExtractAtoms>withBudgetTracker(#1) 302 +2 #7923: an idempotency conflict on a batch another run of the origin admitted waits on that batch and is counted (logic in persistence/atom-maintenance.ts concurrentAtomBatch); decomposition deferred with runPhaseExtractAtoms (refactor wave 2, plan D1)src/core/cycle/extract-facts.ts runExtractFacts 382 seed: W5 baseline, refactor wave 1 (decomposition deferred to wave 2, plan D1); -129 wave 9 follow-ups (receipts): the page reconcile plan and writes moved into planFenceReconcile/reconcileWrites/writeFenceReconcile, shared with the managed preparer; +2 #6264 (landed alongside): ontology observations never gate the unfenced-rows count; +2 #6259 (landed alongside): a quarantined page projects no fence facts; +1 #5575 I2 (L1a-taint): the run result sums the write-gate tally each page reconcile returns; +1 merge v0.60.249.0: Wave B PR 1 segmented-page skip (+4, absorbed before) and master growth compose at 382src/core/cycle/grade-takes.ts GradeTakesPhase.process 402 seed: W5 baseline, refactor wave 1 (decomposition deferred to wave 2, plan D1)src/core/cycle/propose-takes.ts ProposeTakesPhase.process 430 seed: W5 baseline, refactor wave 1 (decomposition deferred to wave 2, plan D1); +2 #5958 (issue #5874): call_timeout_ms read and its per-page bound (phaseBoundedCallTimeout); +1 #5425 [UC4]: the one attribution-check call after the extractor returns (logic in propose-takes-attribution.ts)diff --git a/scripts/structural-suites.tsv b/scripts/structural-suites.tsvindex e8ede32690..964bbb4f8b 100644--- a/scripts/structural-suites.tsv+++ b/scripts/structural-suites.tsv@@ -277,6 +277,7 @@ test/postgres-engine.test.ts postgres-engine / search date filtering 2 source-sutest/postgres-engine.test.ts postgres-engine / search path timeout isolation 7 source-surface-helpertest/postgres15-sql-compat-7112.test.ts #7112: shipped SQL parses on every supported Postgres (15+) 2 readFileSynctest/private-visibility.test.ts shared private predicate lives once (#4352 remediation) 1 readFileSync+test/purge-root-metafile-7613.test.ts (file-level) 2 readFileSynctest/q2-typing-package.test.ts (file-level) 3 readFileSynctest/redos-hardening.test.ts #1569 --no-schema-pack + heartbeat wiring (structural) 2 readFileSync,source-surface-helpertest/redos-hardening.test.ts megawave vm-watchdog removal (bootstrap-verify freeze) 5 readFileSyncdiff --git a/src/core/cycle/extract-atoms.ts b/src/core/cycle/extract-atoms.tsindex 67a922751b..ab8db637c4 100644--- a/src/core/cycle/extract-atoms.ts+++ b/src/core/cycle/extract-atoms.ts@@ -1346,9 +1346,7 @@ export async function runPhaseExtractAtoms(continue;}const concurrent = managed && origin ? await concurrentAtomBatch(engine, managed, origin, err) : null; // #7923- if (concurrent === 'done') { duplicatesSkipped++; continue; }- if (concurrent === 'held') { heldFailed++; continue; }- if (concurrent === 'pending') { writesPending++; continue; }+ if (concurrent) { if (concurrent === 'done') duplicatesSkipped++; else if (concurrent === 'held') heldFailed++; else writesPending++; continue; }const written = managed && origin ? await atomWriteFailure(engine, managed, origin, err) : null; // #7514: never a provider errorif (written) { hardFailureCount++; failures.push({ source: originLabel, ...written }); continue; }// gbrain#4148: classify. Transient provider/infra errors (timeouts,