Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

Merge remote-tracking branch 'origin/capy/gbra130-repair-core' into capy/gbra130-item-isolation

garrytan5c2d37d0f251
diff --cc src/core/item-failure.ts
index 4753a81bd9,22cfdfebf5..893c6ea732
--- a/src/core/item-failure.ts
+++ b/src/core/item-failure.ts
@@@ -27,18 -27,10 +27,22 @@@ import { acceptedPendingReceipt } from
/** Every per-item loop that isolates its items, with the inventory row it fixes (reports/GBRA-130-inventory.md). */
export const ISOLATE_SITES = {
+ 'autopilot.global_maintenance': 'A-10',
+ 'synthesize.postprocess': 'A-4',
+ 'synthesize.triage_verdict_cache': 'B-6',
+ 'backfill.rows': 'A-47',
+ 'purge.recorded_tombstones': 'A-49',
+ 'retention.expired_sources': 'A-50',
+ 'consolidate.buckets': 'A-22',
+ 'extract_facts.expire_deleted': 'A-21',
+ 'maintain.cycle_sources': 'A-41',
+ 'patterns.ground_pages': 'A-23',
+ 'patterns.ground_timeline_appends': 'A-23',
+ 'links.extract_stale': 'A-1',
+ 'repair.apply_items': 'A-9',
+ 'repair.all_kinds': 'A-45',
+ 'repair.content_lane_kinds': 'A-46',
+ 'migration.credential_reseal': 'A-27',
} as const satisfies Record<string, string>;
export type IsolateSite = keyof typeof ISOLATE_SITES;
diff --cc test/pathological/catalogue.ts
index dda4fb1f36,34c5ed9c55..57423125e6
--- a/test/pathological/catalogue.ts
+++ b/test/pathological/catalogue.ts
@@@ -18,45 -18,8 +18,49 @@@ export interface SiteCases
}
export const CATALOGUE: Record<IsolateSite, SiteCases> = {
+ 'autopilot.global_maintenance': {
+ file: 'test/pathological/a10-global-maintenance-stamp.test.ts',
+ item: 'a phase failing the same way in three passes stops withholding the stamp',
+ run: 'a run-scoped failure at the phase loop stops the job and records no streak',
+ },
+ 'synthesize.postprocess': {
+ file: 'test/pathological/a4-synthesize-postprocess.test.ts',
+ item: 'A-4 item: a carried output whose postprocess request ended revision_conflict',
+ run: 'A-4 run: a run-scoped error while reading a carried output stops the pass',
+ },
+ 'synthesize.triage_verdict_cache': {
+ file: 'test/pathological/b6-triage-verdict-surrogate.test.ts',
+ item: 'B-6 item: a verdict the database refuses is not cached',
+ run: 'B-6 run: a run-scoped error writing a verdict stops the pass',
+ },
+ 'backfill.rows': { file: 'test/pathological/a47-backfill-poison-row.test.ts',
+ item: 'item: a row whose UPDATE violates a CHECK is skipped, recorded and passed; its siblings land',
+ run: 'run: a run-scoped failure (' },
+ 'purge.recorded_tombstones': { file: 'test/pathological/a49-unmanaged-purge-tombstones.test.ts',
+ item: 'item: a tombstone whose delete is refused is reported and kept; the other tombstones and the bulk delete still purge',
+ run: 'run: a run-scoped failure (' },
+ 'retention.expired_sources': { file: 'test/pathological/a50-unmanaged-expired-sources.test.ts',
+ item: 'item: a source whose delete times out is blocked with its code and the manual purge; the other expired sources purge',
+ run: 'run: a run-scoped failure (' },
+ 'consolidate.buckets': { file: 'test/pathological/a22-consolidate-buckets.test.ts',
+ item: 'a private entity page with world facts fails its bucket and later buckets still consolidate',
+ run: 'a run-scoped error inside a bucket still stops consolidate' },
+ 'extract_facts.expire_deleted': { file: 'test/pathological/a21-facts-expire-deleted.test.ts',
+ item: 'a refused deleted-page expiry is reported and the other pages still expire and reconcile',
+ run: 'a run-scoped error during a deleted-page expiry still stops extract_facts' },
+ 'maintain.cycle_sources': { file: 'test/pathological/a41-maintain-sources.test.ts',
+ item: 'a source whose cycle throws is blocked with its code and the next source still cycles',
+ run: "a run-scoped error in one source's cycle still stops maintain" },
+ 'patterns.ground_pages': { file: 'test/pathological/a23-patterns-grounding.test.ts',
+ item: 'a refused leftover pattern page is reported, the new page grounds and the watermark is stamped',
+ run: 'a run-scoped error while grounding a page still fails the phase' },
+ 'patterns.ground_timeline_appends': { file: 'test/pathological/a23-patterns-grounding.test.ts',
+ item: 'a refused timeline-append page is recorded and the other page still grounds',
+ run: 'a run-scoped error while grounding timeline appends still stops grounding' },
+ 'links.extract_stale': { file: 'test/pathological/a1-links-extract.test.ts',
+ item: 'A-1 item: a page whose derive throws is reported', run: 'A-1 run: a run-scoped error at one page stops the unit' },
+ 'repair.apply_items': { file: 'test/pathological/a9-repair-core.test.ts', item: 'item case: an item whose apply throws', run: 'run case: a run-scoped' },
+ 'repair.all_kinds': { file: 'test/pathological/a45-repair-all-kinds.test.ts', item: 'item case: a kind whose plan throws', run: 'run case: a run-scoped' },
+ 'repair.content_lane_kinds': { file: 'test/pathological/a46-content-lane-kinds.test.ts', item: 'item case: fences throwing is recorded', run: 'run case: a run-scoped' },
+ 'migration.credential_reseal': { file: 'test/pathological/a27-credential-reseal.test.ts', item: 'item case: the unbuildable page is held', run: 'run case: a run-scoped' },
};
diff --cc test/postgres-unit-arms.txt
index e414d47056,cac2fce508..6b437b9f9d
--- a/test/postgres-unit-arms.txt
+++ b/test/postgres-unit-arms.txt
@@@ -218,17 -218,12 +218,23 @@@ test/page-prepare-shared-origin-6517.te
test/page-purge-batch-sweep-6884.test.ts
test/page-purge-journal-timeout-6511.test.ts
test/page-state-engine.test.ts
+test/pathological/a1-links-extract.test.ts
+test/pathological/a10-global-maintenance-stamp.test.ts
+test/pathological/a21-facts-expire-deleted.test.ts
+test/pathological/a22-consolidate-buckets.test.ts
+test/pathological/a23-patterns-grounding.test.ts
+ test/pathological/a26-safe-chunks-reseal.test.ts
+ test/pathological/a27-credential-reseal.test.ts
+test/pathological/a4-synthesize-postprocess.test.ts
+test/pathological/a41-maintain-sources.test.ts
+ test/pathological/a44-slug-conflicts-rotation.test.ts
+ test/pathological/a45-repair-all-kinds.test.ts
+ test/pathological/a46-content-lane-kinds.test.ts
+test/pathological/a47-backfill-poison-row.test.ts
+test/pathological/a49-unmanaged-purge-tombstones.test.ts
+test/pathological/a50-unmanaged-expired-sources.test.ts
+ test/pathological/a9-repair-core.test.ts
+test/pathological/b6-triage-verdict-surrogate.test.ts
test/persistence-background-pause.test.ts
test/persistence-bounded-read-session.test.ts
test/persistence-capacity-forecast.test.ts