Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
test(trust): Step 7 value headers sit above the tests they describe again (/ship review pass 3, #7511)
garrytan617ad6e989f2
diff --git a/test/trust-release-fence.test.ts b/test/trust-release-fence.test.tsindex 3c48542b70..c1909289c2 100644--- a/test/trust-release-fence.test.ts+++ b/test/trust-release-fence.test.ts@@ -352,10 +352,6 @@ for (const backend of testBackends()) {expect(fenceCells(readFileSync(file(root), 'utf8'))).toHaveLength(1);}, { setup, databaseUrl }), 180_000);- // Generated by gstack /ship Step 7 coverage audit (#7511).- // Value: protects=on an unmanaged brain a held fact whose entity page exists still releases database-only: no trust_release request, no fence row;- // fails_when=submitTrustRelease's managed-mode check is dropped and every release goes through the door; why_new=no test releases a real hold unmanaged;- // seam=none; no_claim=the unmanaged page body (only that no fence row and no request appear)test('a release that ended without committing twice admits a distinct attempt each time and replays the committed one', () => managedBrain(async ({ engine, ctx, root }) => {await seedPage(engine, ctx);const ref = await holdRemember(engine, ctx);@@ -384,6 +380,10 @@ for (const backend of testBackends()) {expect(fenceCells(readFileSync(file(root), 'utf8'))).toHaveLength(1);}, { setup, databaseUrl }), 180_000);+ // Generated by gstack /ship Step 7 coverage audit (#7511).+ // Value: protects=on an unmanaged brain a held fact whose entity page exists still releases database-only: no trust_release request, no fence row;+ // fails_when=submitTrustRelease's managed-mode check is dropped and every release goes through the door; why_new=no test releases a real hold unmanaged;+ // seam=none; no_claim=the unmanaged page body (only that no fence row and no request appear)test('on an unmanaged brain a held fact releases database-only even when its entity page exists', async () => {const home = mkdtempSync(join(tmpdir(), 'gbrain-release-unmanaged-'));try {@@ -429,10 +429,6 @@ for (const backend of testBackends()) {expect(readFileSync(file(root), 'utf8')).toBe(before);}, { setup, databaseUrl }), 180_000);- // Generated by gstack /ship Step 7 coverage audit (#7511).- // Value: protects=a release into a page of an archived source refuses source_changed before admission: the fact stays held, no request, the file is unchanged;- // fails_when=the sources.archived check in submitTrustRelease is dropped or inverted; why_new=no test released with the source archived;- // seam=none; no_claim=gbrain sources archive itself (it refuses the default source; a raw UPDATE of sources.archived under gbrain.topology_change stands in)test('a hold re-gated after the owner approved it is not published under the older approval: preview_changed, nothing admitted', () => managedBrain(async ({ engine, ctx }) => {await seedPage(engine, ctx);const ref = await holdRemember(engine, ctx);@@ -445,6 +441,10 @@ for (const backend of testBackends()) {expect(await engine.executeRaw("SELECT id FROM persistence_requests WHERE operation='trust_release'")).toEqual([]);}, { setup, databaseUrl }), 180_000);+ // Generated by gstack /ship Step 7 coverage audit (#7511).+ // Value: protects=a release into a page of an archived source refuses source_changed before admission: the fact stays held, no request, the file is unchanged;+ // fails_when=the sources.archived check in submitTrustRelease is dropped or inverted; why_new=no test released with the source archived;+ // seam=none; no_claim=gbrain sources archive itself (it refuses the default source; a raw UPDATE of sources.archived under gbrain.topology_change stands in)test('a release into a page of an archived source refuses source_changed: the fact stays held and nothing is admitted', () => managedBrain(async ({ engine, ctx, root }) => {await seedPage(engine, ctx);const ref = await holdRemember(engine, ctx);