Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
test: managed bypass flags refuse managed_sync_flag_refused by name (#6696 C2); Postgres doctor goldens gain serve_build_drift ok (#6696 C6)
garrytana92736e99586
diff --git a/test/fixtures/goldens/doctor/hot-checks-postgres-json.json b/test/fixtures/goldens/doctor/hot-checks-postgres-json.jsonindex 7cc31d7a40..e5979480ab 100644--- a/test/fixtures/goldens/doctor/hot-checks-postgres-json.json+++ b/test/fixtures/goldens/doctor/hot-checks-postgres-json.json@@ -2337,6 +2337,20 @@"name": "host_identity_mismatch","status": "ok"},+ {+ "category": "ops",+ "details": {+ "count": 0,+ "docs": "docs/guides/troubleshooting.md#serve-build-drift",+ "newer": [],+ "older": [],+ "owner": null,+ "this_version": "<version>"+ },+ "message": "No live gbrain consumer on this host writes a heartbeat row. A serve that predates heartbeats writes none; consumers_without_heartbeat names it when it holds claims.",+ "name": "serve_build_drift",+ "status": "ok"+ },{"category": "brain","details": {@@ -5500,6 +5514,20 @@"name": "host_identity_mismatch","status": "ok"},+ {+ "category": "ops",+ "details": {+ "count": 0,+ "docs": "docs/guides/troubleshooting.md#serve-build-drift",+ "newer": [],+ "older": [],+ "owner": null,+ "this_version": "<version>"+ },+ "message": "No live gbrain consumer on this host writes a heartbeat row. A serve that predates heartbeats writes none; consumers_without_heartbeat names it when it holds claims.",+ "name": "serve_build_drift",+ "status": "ok"+ },{"category": "brain","details": {diff --git a/test/fixtures/goldens/doctor/json-postgres-fresh.json b/test/fixtures/goldens/doctor/json-postgres-fresh.jsonindex ab7a22cd01..366c25fbe2 100644--- a/test/fixtures/goldens/doctor/json-postgres-fresh.json+++ b/test/fixtures/goldens/doctor/json-postgres-fresh.json@@ -2117,6 +2117,20 @@"name": "host_identity_mismatch","status": "ok"},+ {+ "category": "ops",+ "details": {+ "count": 0,+ "docs": "docs/guides/troubleshooting.md#serve-build-drift",+ "newer": [],+ "older": [],+ "owner": null,+ "this_version": "<version>"+ },+ "message": "No live gbrain consumer on this host writes a heartbeat row. A serve that predates heartbeats writes none; consumers_without_heartbeat names it when it holds claims.",+ "name": "serve_build_drift",+ "status": "ok"+ },{"category": "brain","details": {diff --git a/test/persistence-sync-options.serial.test.ts b/test/persistence-sync-options.serial.test.tsindex f85e6af0a3..0c6f9c09d4 100644--- a/test/persistence-sync-options.serial.test.ts+++ b/test/persistence-sync-options.serial.test.ts@@ -223,8 +223,10 @@ check('inherited cancellation and a released filesystem context never enter thecheck('old inactive sync intents and managed bypass options remain refused', async engine => {const f = await fixture(engine);- for (const change of [{ noPull: false }, { includeGitignored: true }, { skipFailed: true }]) {- await expect(performManagedSync(engine, { ...f.opts, ...change })).rejects.toMatchObject({ code: 'writer_coordinator_required' });+ await expect(performManagedSync(engine, { ...f.opts, noPull: false })).rejects.toMatchObject({ code: 'writer_coordinator_required' });+ // #6696 C2: the managed bypass flags refuse by name, before anything runs.+ for (const [change, flag] of [[{ includeGitignored: true }, '--include-gitignored'], [{ skipFailed: true }, '--skip-failed']] as const) {+ await expect(performManagedSync(engine, { ...f.opts, ...change })).rejects.toMatchObject({ code: 'managed_sync_flag_refused', detail: flag });}await engine.transaction(async tx => {await tx.executeRaw("SELECT set_config('gbrain.topology_change','on',true)");