Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
Harness train: pass the two src census tests master added
garrytan43c8fac3a439
diff --git a/src/commands/skill-resolver.ts b/src/commands/skill-resolver.tsindex 5f8569e0bd..934d081703 100644--- a/src/commands/skill-resolver.ts+++ b/src/commands/skill-resolver.ts@@ -334,7 +334,7 @@ async function runPin(args: string[]): Promise<void> {const problem = pinProblem({ name, ...(line !== undefined ? { line } : {}) });if (problem) usage(problem, 'Fix the value and retry.');const known = catalogSkillIds(home, catalog);- if (!known) runtimeFailure(new ResolverError('skill_index_missing', `The catalog "${catalog}" has not been built, so the pin cannot be checked; nothing was written.`, { suggestion: `Build it first (gbrain setup <harness> --skill-loading resolve, or gbrain skills index build --catalog ${catalog} ...).` }), json);+ if (!known) runtimeFailure(new ResolverError('skill_index_missing', `The catalog "${catalog}" has not been built, so the pin cannot be checked; nothing was written.`, { suggestion: `Build it first with gbrain skills index build --catalog ${catalog} ...; or run gbrain setup <harness> --skill-loading resolve.` }), json);if (!known.has(name)) exitCliError(opError('skill_resolver_pin_unknown', `"${name}" is not a skill in ${catalog}; nothing was written.`, `Check the id with gbrain skills index status --catalog ${catalog}, then retry.`, { docs: 'docs/guides/skill-resolver.md#skill_resolver_pin_unknown' }), CMD, { json });const others = pins.filter((x) => x.name !== name);if (others.length >= PINS_MAX) usage(`${catalog} already has ${PINS_MAX} pins.`, 'Remove one first.');diff --git a/test/cli-socket.test.ts b/test/cli-socket.test.tsindex 23cace07e4..1e1b53ac3d 100644--- a/test/cli-socket.test.ts+++ b/test/cli-socket.test.ts@@ -114,6 +114,7 @@ const NOT_READ_BEHAVIOR = new Set(['GBRAIN_BIN', 'GBRAIN_BIN_OVERRIDE', 'GBRAIN_BINARY_VERSION', 'GBRAIN_ROOT', 'GBRAIN_VERIFY', 'GBRAIN_FRICTION_RUN_ID', 'GBRAIN_NOTABILITY_EVAL_REAL','GBRAIN_WHOKNOWS_FIXTURE_PATH', 'GBRAIN_PACK_STAT_TTL_MS', 'GBRAIN_EMBEDDING', 'GBRAIN_BASE_PATH_PREFIXES', 'GBRAIN_RECOVERED_RETRY','GBRAIN_SKILLS_NO_AUTOREBUILD', 'GBRAIN_TEST_SKILL_LANE_DEADLINE_MS', 'GBRAIN_TEST_SKILL_LANE_STALL', 'GBRAIN_VERSION',+ 'GBRAIN_HOME_ENV', 'GBRAIN_TEST_OPENCLAW_SKILL_DEADLINE_MS',]);describe('identity', () => {