Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
test(pathological): type the S-51/S-70 page helpers; regen structural manifest and llms-full (GBRA-133 PR 1)
garrytan64086c7fa4a1
diff --git a/llms-full.txt b/llms-full.txtindex 59110b83bb..df42e76c7a 100644--- a/llms-full.txt+++ b/llms-full.txt@@ -7580,6 +7580,8 @@ Every hold and error has three fields, from one table| `write_gate_rejected` | page | none | yes | always: write_gate.external_mode=reject is the user's setting || `legacy_slug_conflict` | page | none | yes | always: only a person decides which legacy page the file takes over || `origin_conflict` | page | repair | no | the hold carries a reason (the pages differ, ids conflict or none is the page the path names), or the heal is off |+| `rename_identity_unreadable` | page | none | yes | always: the file title or id holds characters the database cannot compare |+| `rename_reconcile_failed` | page | none | yes | always: the old page may be a duplicate || `origin_conflict_decision` | page | none | yes | always: the pages differ, their ids conflict or none is the page the path names || `revision_conflict` | page | retry | no | the same path fails again after a rerun || `page_identity_changed` | page | retry | no | the same path fails again after a rerun |diff --git a/scripts/structural-suites.tsv b/scripts/structural-suites.tsvindex 1bdadbbde7..4210c83dcc 100644--- a/scripts/structural-suites.tsv+++ b/scripts/structural-suites.tsv@@ -414,5 +414,6 @@ test/v0_37_gap_fill.serial.test.ts reinit-pglite — backup + reinit 8 source-sutest/w13-small-hardening.test.ts P1.14 paid-consent lint wording 1 exec-scantest/worker-supervised-db-probe.test.ts issue #1801 fix #2 — supervised DB self-defense 5 readFileSynctest/write-attribution-legacy.test.ts write attribution inventory 1 readFileSync+test/yaml-load-bounded-only.test.ts js-yaml load is imported only by data-frontmatter.ts 2 readFileSync# unknown (detectors present, no attributable suite):# unknown test/e2e/postgres-driver-install.test.tsdiff --git a/test/pathological/s-51-rename-identity-unreadable.test.ts b/test/pathological/s-51-rename-identity-unreadable.test.tsindex c10f0ea64e..afdbc3e9e3 100644--- a/test/pathological/s-51-rename-identity-unreadable.test.ts+++ b/test/pathological/s-51-rename-identity-unreadable.test.ts@@ -18,7 +18,7 @@ import { expectUnitNotAborted, pathologicalArms } from './harness.ts';import { md, withProbeEngine, withProbeRepo, type ProbeRepo } from './s-blockers-fixture.ts';const body = (title: string, extra = '') => `---\ntitle: ${title}\ntype: note\n---\n${Array.from({ length: 12 }, (_, i) => `Line ${i} of the ${title} note, long enough that git pairs an edited move.`).join('\n')}\n${extra}`;-const page = async (engine: BrainEngine, sourceId: string, slug: string) =>+const page = async (engine: BrainEngine, sourceId: string, slug: string): Promise<number | null> =>(await engine.executeRaw<{ id: number }>('SELECT id FROM pages WHERE source_id=$1 AND slug=$2 AND deleted_at IS NULL', [sourceId, slug]))[0]?.id ?? null;const holdsOf = async (engine: BrainEngine, sourceId: string) => ((await readGitSourceHolds(engine, { sourceIds: [sourceId] }))[0]?.holds ?? []);const syncWith = (r: ProbeRepo, engine: BrainEngine) => performSync(engine, { repoPath: r.root, sourceId: r.sourceId, noPull: true, noEmbed: true, noExtract: true, concurrency: 1 });diff --git a/test/pathological/s-70-classifier-origin.test.ts b/test/pathological/s-70-classifier-origin.test.tsindex c1c3185c5c..9e3c503988 100644--- a/test/pathological/s-70-classifier-origin.test.ts+++ b/test/pathological/s-70-classifier-origin.test.ts@@ -71,7 +71,7 @@ function failingReconcile(engine: BrainEngine, error: () => unknown): BrainEngin}const syncWith = (r: ProbeRepo, engine: BrainEngine) => performSync(engine, { repoPath: r.root, sourceId: r.sourceId, noPull: true, noEmbed: true, noExtract: true, concurrency: 1 });-const live = async (r: ProbeRepo, slug: string) => (await r.engine.executeRaw<{ id: number }>('SELECT id FROM pages WHERE source_id=$1 AND slug=$2 AND deleted_at IS NULL', [r.sourceId, slug]))[0]?.id ?? null;+const live = async (r: ProbeRepo, slug: string): Promise<number | null> => (await r.engine.executeRaw<{ id: number }>('SELECT id FROM pages WHERE source_id=$1 AND slug=$2 AND deleted_at IS NULL', [r.sourceId, slug]))[0]?.id ?? null;const ledger = (r: ProbeRepo) => loadSyncFailures().filter(f => f.source_id === r.sourceId).map(f => ({ path: f.path, state: f.state }));for (const { backend, databaseUrl } of pathologicalArms()) {