Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

test: integration fixes after merging the wave-11 lanes

garrytanbc36a01c026e
diff --git a/docs/architecture/canonical-writers.tsv b/docs/architecture/canonical-writers.tsv
index bca0021e75..a0974ae5c9 100644
--- a/docs/architecture/canonical-writers.tsv
+++ b/docs/architecture/canonical-writers.tsv
@@ -14,7 +14,7 @@ src/commands/jobs.ts 0 coordinator The purge job (registered here, body in src/c
src/commands/migrate-engine.ts 11 early_refusal Managed mode refuses this legacy entry point before its canonical filesystem/provider effects.
src/commands/migrations/v0_13_1.ts 2 engine_guard Unmanaged metadata batches retain page guards and row locks; managed active Markdown pages route through the canonical grandfather publisher instead of direct SQL.
src/commands/migrations/v0_32_2.ts 2 coordinator On a managed brain each entity page publishes its rendered facts fence through a managed_maintenance_adopt_fact_fence request that adopts the legacy rows in place inside the coordinated publication, database-only pages included; unmanaged brains keep the file-first backfill, which the trigger refuses on managed brains.
-src/commands/pages.ts 1 engine_guard The dry-run preview reads through the engine; the purge runs purgeDeletedPagesCoordinated, which is coordinated on managed brains.
+src/commands/pages.ts 2 engine_guard Both engine references are dry-run previews (the --dry-run listing and the D6 consent count before a hard purge, #6114); the purge runs purgeDeletedPagesCoordinated, which is coordinated on managed brains.
src/commands/reconcile-links.ts 2 engine_guard Canonical table SQL trigger requires coordinator capability; legacy calls fail before canonical DB publication.
src/commands/reindex-aliases.ts 1 engine_guard Canonical table SQL trigger requires coordinator capability; legacy calls fail before canonical DB publication.
src/commands/sources-set-path.ts 1 coordinator Managed rebind uses native exclusion, exact manifest verification and a retained source-incarnation receipt; unmanaged pointer repair remains explicit.
diff --git a/scripts/serial-files.tsv b/scripts/serial-files.tsv
index c225d3d7ba..afe932a706 100644
--- a/scripts/serial-files.tsv
+++ b/scripts/serial-files.tsv
@@ -57,9 +57,14 @@ test/brain-registry.serial.test.ts R1 R1: mutates process.env (GBRAIN_HOME)
test/brain-repo-durability.serial.test.ts exclusive exclusive: hardenBrainRepo's own scaffolding commit fires the just-installed post-commit hook (background push) which races the synchronous push-probe on the same bare remote ("cannot lock ref" → needs_attention non-empty). The race is intra-call; pooled CPU contention widens the window past what the assertions tolerate (observed on a 4-vCPU CI runner, never locally). Sequential lane restores master-era timing until the probe learns to retry ref-lock contention.
test/brainstorm/checkpoint.serial.test.ts R1 R1: mutates process.env (GBRAIN_HOME)
test/brainstorm/unpriced-chat-model.serial.test.ts global-state global-state: process-wide test seams __setChatTransportForTests, __setEmbedTransportForTests; configureGateway changes the process-wide AI gateway; R1: mutates process.env (GBRAIN_HOME, GBRAIN_AUDIT_DIR)
+test/capture-consent-gate.serial.test.ts R1 R1: mutates process.env (GBRAIN_HOME); also real PGLite engines and the module-global harvest queue
test/check-update-refresh.serial.test.ts R1 R1: mutates process.env (GBRAIN_HOME)
test/checkpoint-harvest.serial.test.ts R1 R1: mutates process.env (GBRAIN_HOME, CLAUDE_CONFIG_DIR)
test/cli-dispatch-lifecycle.serial.test.ts R2 R2: mock.module(../src/core/engine-factory.ts, ../src/commands/orphans.ts, ../src/commands/salience.ts, ../src/commands/serve.ts (+4 more)) replaces modules for every file in the process
+test/cli-help-no-side-effects-2.serial.test.ts global-state global-state: spawns about 100 real gbrain CLI children with a probe preload and fingerprints a shared fixture brain and HOME; part 2 of the help gate
+test/cli-help-no-side-effects-3.serial.test.ts global-state global-state: spawns about 100 real gbrain CLI children with a probe preload and fingerprints a shared fixture brain and HOME; part 3 of the help gate
+test/cli-help-no-side-effects-4.serial.test.ts global-state global-state: spawns about 100 real gbrain CLI children with a probe preload and fingerprints a shared fixture brain and HOME; part 4 of the help gate
+test/cli-help-no-side-effects.serial.test.ts global-state global-state: spawns about 100 real gbrain CLI children with a probe preload and fingerprints a shared fixture brain and HOME; split into four parts to fit the serial lane budget
test/code-callers-pin.serial.test.ts global-state global-state: spyOn console.log, console.error, process.exit; process.chdir changes the shared cwd
test/code-def-refs-pin.serial.test.ts global-state global-state: spyOn console.log, console.error, process.exit; process.chdir changes the shared cwd
test/codex-rollout-0154.serial.test.ts R1 R1: mutates GBRAIN_HOME/CODEX_HOME for in-process session-end hook runs
@@ -221,6 +226,7 @@ test/llm-intent-hybrid-integration.serial.test.ts global-state global-state: pro
test/loops-close-fact.serial.test.ts global-state global-state: process-wide test seams __setChatTransportForTests; configureGateway changes the process-wide AI gateway; patches process stdout/stderr/console
test/loops-extract-run.serial.test.ts R2 R2: mock.module(../src/core/ai/gateway.ts) replaces modules for every file in the process
test/managed-connector-routing.serial.test.ts global-state global-state: spyOn globalThis.fetch
+test/managed-push-remedy.serial.test.ts R1 R1: mutates process.env (GBRAIN_HOME)
test/managed-unsupported-preflight.serial.test.ts R2 R2: mock.module(../src/core/ai/gateway.ts) replaces modules for every file in the process
test/mcp-admin-cli.serial.test.ts global-state global-state: spyOn console.log, globalThis.fetch
test/mcp-backup-nag.serial.test.ts R2 R2: mock.module(../src/core/search/hybrid.ts, ../src/core/search/projection-readiness.ts) replaces modules for every file in the process
diff --git a/test/context/entity-salience.test.ts b/test/context/entity-salience.test.ts
index 6c866f848e..0b4dfb5ad9 100644
--- a/test/context/entity-salience.test.ts
+++ b/test/context/entity-salience.test.ts
@@ -8,6 +8,7 @@ import {
extractCandidatesFromWindow,
MAX_CANDIDATES,
MAX_WEAK_CANDIDATES,
+ MAX_WEAK_NGRAM_CANDIDATES,
} from '../../src/core/context/entity-salience.ts';
/** STRONG candidate queries only (the v1 contract most tests pin). */
@@ -121,10 +122,12 @@ describe('extractCandidates', () => {
const weakPart = Array.from({ length: 50 }, (_, i) => `wkword${i}xy`).join(' ');
const out = extractCandidates(`${strongPart}. ${weakPart}`);
const strong = out.filter((c) => !c.weak);
- const weak = out.filter((c) => c.weak);
+ const weak = out.filter((c) => c.weak && !c.multiToken);
+ const ngrams = out.filter((c) => c.multiToken);
expect(strong.length).toBeLessThanOrEqual(MAX_CANDIDATES);
expect(strong.length).toBe(MAX_CANDIDATES); // weak never displaces strong
- expect(weak.length).toBeLessThanOrEqual(MAX_WEAK_CANDIDATES);
+ expect(weak.length).toBe(MAX_WEAK_CANDIDATES);
+ expect(ngrams.length).toBe(MAX_WEAK_NGRAM_CANDIDATES); // #6195: lowercase n-grams have their own cap
// strong candidates come first in the output
expect(out.findIndex((c) => c.weak)).toBeGreaterThanOrEqual(strong.length);
});
diff --git a/test/embedding-key-source-cli.test.ts b/test/embedding-key-source-cli.test.ts
index 85b5af887c..7e7916980a 100644
--- a/test/embedding-key-source-cli.test.ts
+++ b/test/embedding-key-source-cli.test.ts
@@ -25,7 +25,7 @@ beforeAll(() => {
afterAll(() => rmSync(home, { recursive: true, force: true }));
test('an ordinary command warns once on stderr and leaks no key bytes; a hook command never warns', async () => {
- const command = await runCli(['engine', '--help'], opts);
+ const command = await runCli(['engine'], opts);
expect(command.exitCode).toBe(0);
expect(warnings(command.stderr)).toEqual([expect.stringContaining('[gbrain] warning: OPENAI_API_KEY in this process\'s environment differs from openai_api_key')]);
expect(leaked(command.stdout + command.stderr)).toEqual([]);
@@ -39,6 +39,6 @@ test('`gbrain config unset openai_api_key` keeps the env key in effect and stops
expect(unset.exitCode).toBe(0);
expect(leaked(unset.stdout + unset.stderr)).toEqual([]);
expect(JSON.parse(readFileSync(configFile, 'utf8')).openai_api_key).toBeUndefined();
- const after = await runCli(['engine', '--help'], opts);
+ const after = await runCli(['engine'], opts);
expect(warnings(after.stderr)).toEqual([]);
}, 120_000);
diff --git a/test/fixtures/goldens/cli/engine-free-db-down.json b/test/fixtures/goldens/cli/engine-free-db-down.json
index baeeed2016..e32936f537 100644
--- a/test/fixtures/goldens/cli/engine-free-db-down.json
+++ b/test/fixtures/goldens/cli/engine-free-db-down.json
@@ -216,14 +216,14 @@
" attach [--harness H] Machine two: adopt a cloned agent workspace.",
" harness [--harness claude-code|codex|opencode|all] [--url U | --port N] [--source ID]",
" [--token-name NAME | --token TOK] [--name MCPNAME] [--project DIR]...",
- " [--no-hooks] [--no-capture] [--force] [--status] [--remove] [--refresh-skills] [--yes] [--json]",
+ " [--no-hooks] [--no-capture] [--force] [--status] [--remove [--dry-run]] [--refresh-skills] [--yes] [--json]",
" [--seat <label> | --no-seat]",
" Wire framework-spawned Claude Code / Codex / opencode",
" sessions to a RUNNING `gbrain serve --http` on this box",
" (#4043): scoped bearer token, user-scope MCP + headless",
" pre-approval, lifecycle hooks (user scope, or per --project",
" dir), codex config block, opencode config entry. No",
- " agent.json needed. Idempotent; --remove tears it down.",
+ " agent.json needed. Idempotent; --remove tears it down (--dry-run previews).",
" --source ID: the source the hooks + token bind to",
" (default: sources.default, else the sole populated",
" non-default source, else default).",
diff --git a/test/fixtures/goldens/exports/runtime.json b/test/fixtures/goldens/exports/runtime.json
index cb3dcd179b..52d9637c52 100644
--- a/test/fixtures/goldens/exports/runtime.json
+++ b/test/fixtures/goldens/exports/runtime.json
@@ -689,7 +689,8 @@
"resolveSourceLocalFilePath",
"serializeMarkdown",
"serializePageToMarkdown",
- "splitBody"
+ "splitBody",
+ "yamlBlockError"
],
"./minions": [
"MinionQueue",
diff --git a/test/fixtures/goldens/exports/types.json b/test/fixtures/goldens/exports/types.json
index 416f474795..3d7ba26b02 100644
--- a/test/fixtures/goldens/exports/types.json
+++ b/test/fixtures/goldens/exports/types.json
@@ -454,7 +454,7 @@
"kind": "variable",
"name": "DEGRADED_STAGES",
"signature": [
- "readonly [\"embed_unavailable\", \"embed_timeout\", \"expansion_failed\", \"expansion_partial\", \"rescore_skipped\", \"vector_arm_failed\", \"keyword_arm_failed\", \"title_arm_failed\", \"budget_dropped_all\", \"budget_truncated\", \"keyword_zero\", \"cache_prestamp\", \"reranker_skipped\", \"rerank_passthrough\", \"rerank_failed\", \"keyword_relaxed_carried\", \"safe_index_pending\", \"vector_candidates_incomplete\", \"projection_pending\", \"projection_status_unknown\"]"
+ "readonly [\"embed_unavailable\", \"embed_timeout\", \"expansion_failed\", \"expansion_partial\", \"rescore_skipped\", \"vector_arm_failed\", \"keyword_arm_failed\", \"title_arm_failed\", \"budget_dropped_all\", \"budget_truncated\", \"keyword_zero\", \"cache_prestamp\", \"reranker_skipped\", \"rerank_passthrough\", \"rerank_failed\", \"keyword_relaxed_carried\", \"safe_index_pending\", \"vector_candidates_incomplete\", \"keyword_candidates_incomplete\", \"projection_pending\", \"projection_status_unknown\"]"
]
},
{
@@ -468,14 +468,14 @@
"kind": "type",
"name": "DegradedStage",
"signature": [
- "\"embed_unavailable\" | \"embed_timeout\" | \"expansion_failed\" | \"expansion_partial\" | \"rescore_skipped\" | \"vector_arm_failed\" | \"keyword_arm_failed\" | \"title_arm_failed\" | \"budget_dropped_all\" | \"budget_truncated\" | \"keyword_zero\" | \"cache_prestamp\" | \"reranker_skipped\" | \"rerank_passthrough\" | \"rerank_failed\" | \"keyword_relaxed_carried\" | \"safe_index_pending\" | \"vector_candidates_incomplete\" | \"projection_pending\" | \"projection_status_unknown\""
+ "\"embed_unavailable\" | \"embed_timeout\" | \"expansion_failed\" | \"expansion_partial\" | \"rescore_skipped\" | \"vector_arm_failed\" | \"keyword_arm_failed\" | \"title_arm_failed\" | \"budget_dropped_all\" | \"budget_truncated\" | \"keyword_zero\" | \"cache_prestamp\" | \"reranker_skipped\" | \"rerank_passthrough\" | \"rerank_failed\" | \"keyword_relaxed_carried\" | \"safe_index_pending\" | \"vector_candidates_incomplete\" | \"keyword_candidates_incomplete\" | \"projection_pending\" | \"projection_status_unknown\""
]
},
{
"kind": "interface",
"members": [
"reason?: \"candidate_budget\" | \"iterative_scan_unavailable\" | \"no_provider\" | \"provider_error\" | \"timeout\" | \"variant_embed_failed\" | \"original_embed_failed\" | \"first_result_truncated\" | \"no_key\" | \"empty_result_set\" | \"malformed_shape\" | \"budget\" | \"egress_denied\" | \"embedding_disabled\" | undefined",
- "stage: \"embed_unavailable\" | \"embed_timeout\" | \"expansion_failed\" | \"expansion_partial\" | \"rescore_skipped\" | \"vector_arm_failed\" | \"keyword_arm_failed\" | \"title_arm_failed\" | \"budget_dropped_all\" | \"budget_truncated\" | \"keyword_zero\" | \"cache_prestamp\" | \"reranker_skipped\" | \"rerank_passthrough\" | \"rerank_failed\" | \"keyword_relaxed_carried\" | \"safe_index_pending\" | \"vector_candidates_incomplete\" | \"projection_pending\" | \"projection_status_unknown\""
+ "stage: \"embed_unavailable\" | \"embed_timeout\" | \"expansion_failed\" | \"expansion_partial\" | \"rescore_skipped\" | \"vector_arm_failed\" | \"keyword_arm_failed\" | \"title_arm_failed\" | \"budget_dropped_all\" | \"budget_truncated\" | \"keyword_zero\" | \"cache_prestamp\" | \"reranker_skipped\" | \"rerank_passthrough\" | \"rerank_failed\" | \"keyword_relaxed_carried\" | \"safe_index_pending\" | \"vector_candidates_incomplete\" | \"keyword_candidates_incomplete\" | \"projection_pending\" | \"projection_status_unknown\""
],
"name": "DegradedStageEntry"
},
@@ -715,6 +715,7 @@
"expansion_applied: boolean",
"intent?: \"entity\" | \"temporal\" | \"event\" | \"concept\" | \"general\" | undefined",
"keyword_arm_confidence?: KeywordArmConfidenceDecision | undefined",
+ "keyword_candidates?: CjkKeywordMeta | undefined",
"metadata_boost_gate?: MetadataBoostGateDecision | undefined",
"mode?: \"conservative\" | \"balanced\" | \"tokenmax\" | undefined",
"relational_evidence_slot?: RelationalEvidenceSlotDecision | undefined",
@@ -1215,7 +1216,7 @@
"kind": "variable",
"name": "RANKING_ONLY_DEGRADED_STAGES",
"signature": [
- "ReadonlySet<\"embed_unavailable\" | \"embed_timeout\" | \"expansion_failed\" | \"expansion_partial\" | \"rescore_skipped\" | \"vector_arm_failed\" | \"keyword_arm_failed\" | \"title_arm_failed\" | \"budget_dropped_all\" | \"budget_truncated\" | \"keyword_zero\" | \"cache_prestamp\" | \"reranker_skipped\" | \"rerank_passthrough\" | \"rerank_failed\" | \"keyword_relaxed_carried\" | \"safe_index_pending\" | \"vector_candidates_incomplete\" | \"projection_pending\" | \"projection_status_unknown\">"
+ "ReadonlySet<\"embed_unavailable\" | \"embed_timeout\" | \"expansion_failed\" | \"expansion_partial\" | \"rescore_skipped\" | \"vector_arm_failed\" | \"keyword_arm_failed\" | \"title_arm_failed\" | \"budget_dropped_all\" | \"budget_truncated\" | \"keyword_zero\" | \"cache_prestamp\" | \"reranker_skipped\" | \"rerank_passthrough\" | \"rerank_failed\" | \"keyword_relaxed_carried\" | \"safe_index_pending\" | \"vector_candidates_incomplete\" | \"keyword_candidates_incomplete\" | \"projection_pending\" | \"projection_status_unknown\">"
]
},
{
@@ -1329,6 +1330,7 @@
"autocut?: AutocutInput",
"beforeDate?: string | undefined",
"beforeDateInclusive?: boolean | undefined",
+ "cjkKeyword?: CjkKeywordRun | undefined",
"crossModal?: \"image\" | \"text\" | \"both\" | \"auto\" | undefined",
"detail?: \"low\" | \"medium\" | \"high\" | undefined",
"embeddingColumn?: string | ResolvedColumn | undefined",
@@ -1337,6 +1339,7 @@
"exclude_slugs?: string[] | undefined",
"floorRatio?: number | undefined",
"graph_signals?: boolean | undefined",
+ "hnswIterativeScan?: \"relaxed_order\" | \"strict_order\" | \"off\" | undefined",
"include_slug_prefixes?: string[] | undefined",
"intentWeighting?: boolean | undefined",
"language?: string | undefined",
@@ -2639,7 +2642,7 @@
"retrieval_reflex_volunteer?: boolean | undefined",
"retrieval_reflex_window_turns?: number | undefined",
"schema_pack?: string | undefined",
- "search?: { adaptive_return?: boolean; adaptive_return_entity_max?: number; adaptive_return_other_max?: number; adaptive_return_min_keep?: number; vector_legacy_guard?: boolean; } | undefined",
+ "search?: { adaptive_return?: boolean; adaptive_return_entity_max?: number; adaptive_return_other_max?: number; adaptive_return_min_keep?: number; vector_legacy_guard?: boolean; hnsw_iterative_scan?: string; cjk_keyword_deadline_ms?: number; } | undefined",
"search_embedding_column?: string | undefined",
"self_upgrade?: { mode?: \"auto\" | \"notify\" | \"off\"; mode_prompted?: boolean; quiet_hours?: { start?: number; end?: number; tz?: string; }; failed_versions?: string[]; attempting_version?: string; last_check_ts?: number; last_applied_version?: string; } | undefined",
"storage?: unknown",
@@ -5311,6 +5314,13 @@
"signature": [
"(body: string) => { compiled_truth: string; timeline: string; }"
]
+ },
+ {
+ "kind": "function",
+ "name": "yamlBlockError",
+ "signature": [
+ "(block: string) => Error | null"
+ ]
}
],
"./minions": [
@@ -5835,7 +5845,7 @@
{
"kind": "class",
"members": [
- "canonical?: \"unknown\" | \"projection_pending\" | \"timeout\" | \"embedding_disabled\" | \"writer_lock_unavailable\" | \"writer_pool_capacity\" | \"owner_unavailable\" | \"recovery_required\" | \"queue_capacity\" | \"revision_required\" | \"revision_conflict\" | \"idempotency_conflict\" | \"source_changed\" | \"write_pending\" | \"storage_error\" | \"cancelled\" | \"permission_denied\" | \"scope_denied\" | \"invalid_params\" | \"not_found\" | \"page_not_found\" | \"page_identity_changed\" | \"write_claim_lost\" | \"request_too_large\" | \"response_too_large\" | \"writer_registration_required\" | \"writer_identity_invalid\" | \"writer_not_initialized\" | \"writer_coordinator_required\" | \"fact_already_expired\" | \"source_writeback_required\" | \"unsupported_mutation_protocol\" | \"writer_upgrade_required\" | \"writer_not_quiesced\" | \"skill_bundle_required\" | \"take_row_collision\" | \"invalid_source_uri\" | \"writer_admin_locked\" | \"connector_account_changed\" | \"connector_intent_outdated\" | \"checkpoint_validation_timeout\" | \"invalid_connector_text\" | \"connector_holds_exhausted\" | \"connector_fence_below_timeline\" | \"core_budget_exceeded\" | \"core_mark_owner_only\" | \"core_remote_edit_refused\" | \"core_delete_owner_only\" | \"timeline_rows_would_be_removed\" | \"embedding_failed\" | \"bucket_not_found\" | \"database_error\" | \"unknown_transport\" | \"rate_limited\" | \"extraction_failed\" | \"fact_not_found\" | \"provenance_required\" | \"unavailable\" | \"budget_unsatisfiable\" | \"embedding_budget_below_worst_case\" | \"access_command_failed\" | \"access_denied_test_user\" | \"access_env_missing\" | \"acknowledgment_unavailable\" | \"admin_policy_enforced\" | \"ambiguous_id\" | \"ambiguous_ref\" | \"ambiguous_skill\" | \"answer_not_yours\" | \"answer_pending\" | \"answer_unavailable\" | \"api_not_enabled\" | \"approval_required\" | \"autopilot_job_owned_by_other_brain\" | \"benchmark_duplicate_task_id\" | \"benchmark_empty\" | \"benchmark_exists\" | \"benchmark_judge_llm_no_rubric\" | \"benchmark_judge_qrels_no_expected\" | \"benchmark_judge_rule_no_checks\" | \"benchmark_judge_unknown_kind\" | \"benchmark_malformed\" | \"benchmark_missing_judge\" | \"benchmark_missing_task\" | \"benchmark_missing_task_id\" | \"benchmark_not_found\" | \"benchmark_rule_check_bad_arg\" | \"benchmark_rule_check_malformed\" | \"benchmark_rule_check_unknown_op\" | \"bootstrap_empty\" | \"bootstrap_pending_review\" | \"bridge_ownership_conflict\" | \"cache_quota_exceeded\" | \"catalog_capacity_exceeded\" | \"catalog_unavailable\" | \"changed_since_preview\" | \"chronicle_skipped\" | \"no_pricing\" | \"checkpoint_missing\" | \"claim_already_used\" | \"client_json_unreadable\" | \"client_json_wrong_type\" | \"client_shape_invalid\" | \"code_callees_requires_symbol\" | \"code_callers_requires_symbol\" | \"code_def_requires_symbol\" | \"code_refs_requires_symbol\" | \"code_reused\" | \"colon_slug_windows_write_through\" | \"command_failed\" | \"config_error\" | \"confirmation_required\" | \"conflicting_source_scope\" | \"consent_timeout\" | \"content_rejected\" | \"cost_cap_exceeded\" | \"cost_preview_requires_yes\" | \"cycle_failed\" | \"d_sel_too_small\" | \"delta_cursor_upgrade_required\" | \"demo_graph_failed\" | \"demo_import_failed\" | \"demo_verification_failed\" | \"derived_cap_exhausted\" | \"destination_not_ready\" | \"dirty_tree\" | \"effect_not_failed\" | \"embedding_auth_failed\" | \"embedding_configuration\" | \"embedding_model_mismatch\" | \"embedding_plane_split\" | \"embedding_storage_unavailable\" | \"embedding_unavailable\" | \"embedding_unconfigured\" | \"embedding_width_mismatch\" | \"engine_graduated\" | \"eval_suite_unwired\" | \"export_limit\" | \"extractor_identity_mismatch\" | \"facts_absorb_write_refused\" | \"facts_drain_deferred\" | \"facts_drain_job_failed\" | \"facts_payload_expired\" | \"feedback_disabled\" | \"feedback_not_authorized\" | \"fetch_failed\" | \"fix_not_writable\" | \"file_removed_during_scan\" | \"file_too_large\" | \"follow_approval_required\" | \"frontmatter_slug_conflict\" | \"full_resync_required\" | \"gate_failed\" | \"git_index_locked\" | \"git_index_stale\" | \"git_push_unavailable\" | \"git_target_unsafe\" | \"git_unavailable\" | \"graduation_drain_timeout\" | \"graduation_embedding_dimension_mismatch\" | \"graduation_foreign_host_binding\" | \"graduation_in_progress\" | \"graduation_interrupted\" | \"graduation_rollback_writes_lost\" | \"graduation_source_writer_held\" | \"graduation_split_brain\" | \"graduation_target_auth_failed\" | \"graduation_target_ddl_unreachable\" | \"graduation_target_not_empty\" | \"graduation_target_unsupported\" | \"graduation_unclassified_table\" | \"graduation_unsupported_platform\" | \"graduation_verify_failed\" | \"graph_incomplete\" | \"held_out_overlaps_benchmark\" | \"held_out_required_for_bundled\" | \"independent_principal_required\" | \"insufficient_scope\" | \"internal\" | \"internal_error\" | \"interrupted\" | \"invalid_acknowledgment\" | \"invalid_client\" | \"invalid_fence\" | \"sync_in_progress\" | \"invalid_frontmatter\" | \"invalid_grant_clock_skew\" | \"invalid_grant_revoked\" | \"invalid_grant_testing_expiry\" | \"invalid_rating\" | \"invalid_receipt\" | \"invalid_receipt_transition\" | \"invalid_request\" | \"invalid_source\" | \"invalid_source_pin\" | \"invalid_token\" | \"invalid_write_wait\" | \"legacy_job_selection_invalid\" | \"legacy_jobs_active\" | \"local_conflict\" | \"lock_busy\" | \"managed_pull_skipped\" | \"membership_inactive\" | \"membership_not_found\" | \"method_not_allowed\" | \"migration_failed\" | \"migrations_pending\" | \"migrations_running\" | \"missing_source_scope\" | \"missing_source_value\" | \"models_strict_violation\" | \"no_refresh_token\" | \"no_routing_eval\" | \"no_skill_md\" | \"no_worker\" | \"no_worker_surface\" | \"not_a_git_repo\" | \"not_connected\" | \"no_brain\" | \"overlapping_path\" | \"page_projection_conflict\" | \"parse_error\" | \"parser_regression\" | \"pasted_wrong_url\" | \"payload_too_large\" | \"pending_writes\" | \"pglite_busy\" | \"plan_output_failed\" | \"plan_stale\" | \"port_in_use\" | \"preview_changed\" | \"profile_incompatible\" | \"projection_owner_resident\" | \"publication_pending\" | \"receipt_conflict\" | \"receipt_fence_changed\" | \"receipt_fence_required\" | \"receipt_identity_mismatch\" | \"redirect_uri_mismatch\" | \"ref_not_in_answer\" | \"refresh_dirty\" | \"refresh_diverged\" | \"refresh_drain_timeout\" | \"refresh_no_upstream\" | \"refresh_not_managed\" | \"refresh_not_owner\" | \"refresh_source_changed\" | \"relay_disabled\" | \"relay_session_expired\" | \"relay_unreachable\" | \"rename_held\" | \"request_already_submitted\" | \"requirements_changed\" | \"requires_local_engine\" | \"resume_spec_mismatch\" | \"revision_unavailable\" | \"scope_missing\" | \"serve_port_in_use\" | \"serve_status_only\" | \"shared_skills_unavailable\" | \"shared_skills_unsupported\" | \"skill_asset_not_found\" | \"skill_candidate_invalid\" | \"skill_not_found\" | \"skill_retention_capacity\" | \"skill_unavailable\" | \"source_binding_required\" | \"source_id_taken\" | \"source_not_ready\" | \"source_profile_no_backfill\" | \"source_referenced\" | \"source_root_conflict\" | \"split_bad_ratio\" | \"split_unparseable\" | \"stale_unavailable\" | \"state_mismatch\" | \"sync_not_applicable\" | \"sync_parser_regression\" | \"target_escape\" | \"timeline_comment_markup\" | \"topology_change_required\" | \"trusted_local_only\" | \"unexpected_file_bytes\" | \"unexpected_staging_bytes\" | \"unknown_command\" | \"unknown_flag\" | \"unknown_method\" | \"unknown_source\" | \"unknown_tool\" | \"unmanaged_path\" | \"unsupported_export_data\" | \"upstream\" | \"verification_failed\" | \"withdrawal_capacity\" | \"withdrawal_provenance\" | \"writer_admin_intent_required\" | \"writer_admin_state_changed\" | \"writer_busy\" | \"writer_identity_publish_failed\" | \"writer_manifest_mismatch\" | \"writer_manifest_unsafe\" | \"writer_regrant_required\" | \"writer_transfer_conflict\" | \"writer_transfer_required\" | \"wrong_account_consented\" | undefined",
+ "canonical?: \"unknown\" | \"keyword_candidates_incomplete\" | \"projection_pending\" | \"timeout\" | \"embedding_disabled\" | \"writer_lock_unavailable\" | \"writer_pool_capacity\" | \"owner_unavailable\" | \"recovery_required\" | \"queue_capacity\" | \"revision_required\" | \"revision_conflict\" | \"idempotency_conflict\" | \"source_changed\" | \"write_pending\" | \"storage_error\" | \"cancelled\" | \"permission_denied\" | \"scope_denied\" | \"invalid_params\" | \"not_found\" | \"page_not_found\" | \"page_identity_changed\" | \"write_claim_lost\" | \"request_too_large\" | \"response_too_large\" | \"writer_registration_required\" | \"writer_identity_invalid\" | \"writer_not_initialized\" | \"writer_coordinator_required\" | \"fact_already_expired\" | \"source_writeback_required\" | \"unsupported_mutation_protocol\" | \"writer_upgrade_required\" | \"writer_not_quiesced\" | \"skill_bundle_required\" | \"take_row_collision\" | \"invalid_source_uri\" | \"writer_admin_locked\" | \"connector_account_changed\" | \"connector_intent_outdated\" | \"checkpoint_validation_timeout\" | \"invalid_connector_text\" | \"connector_holds_exhausted\" | \"connector_fence_below_timeline\" | \"core_budget_exceeded\" | \"core_mark_owner_only\" | \"core_remote_edit_refused\" | \"core_delete_owner_only\" | \"timeline_rows_would_be_removed\" | \"embedding_failed\" | \"bucket_not_found\" | \"database_error\" | \"unknown_transport\" | \"rate_limited\" | \"extraction_failed\" | \"fact_not_found\" | \"provenance_required\" | \"unavailable\" | \"budget_unsatisfiable\" | \"embedding_budget_below_worst_case\" | \"access_command_failed\" | \"access_denied_test_user\" | \"access_env_missing\" | \"acknowledgment_unavailable\" | \"admin_policy_enforced\" | \"ambient_capture_off\" | \"ambiguous_id\" | \"ambiguous_ref\" | \"ambiguous_skill\" | \"answer_not_yours\" | \"answer_pending\" | \"answer_unavailable\" | \"api_not_enabled\" | \"approval_required\" | \"autopilot_job_owned_by_other_brain\" | \"budget_below_recent_runtime\" | \"benchmark_duplicate_task_id\" | \"benchmark_empty\" | \"benchmark_exists\" | \"benchmark_judge_llm_no_rubric\" | \"benchmark_judge_qrels_no_expected\" | \"benchmark_judge_rule_no_checks\" | \"benchmark_judge_unknown_kind\" | \"benchmark_malformed\" | \"benchmark_missing_judge\" | \"benchmark_missing_task\" | \"benchmark_missing_task_id\" | \"benchmark_not_found\" | \"benchmark_rule_check_bad_arg\" | \"benchmark_rule_check_malformed\" | \"benchmark_rule_check_unknown_op\" | \"bootstrap_empty\" | \"bootstrap_pending_review\" | \"bridge_ownership_conflict\" | \"cache_quota_exceeded\" | \"catalog_capacity_exceeded\" | \"catalog_unavailable\" | \"changed_since_preview\" | \"chronicle_skipped\" | \"no_pricing\" | \"checkpoint_missing\" | \"claim_already_used\" | \"client_json_unreadable\" | \"client_json_wrong_type\" | \"client_shape_invalid\" | \"code_callees_requires_symbol\" | \"code_callers_requires_symbol\" | \"code_def_requires_symbol\" | \"code_refs_requires_symbol\" | \"code_reused\" | \"colon_slug_windows_write_through\" | \"command_failed\" | \"concurrent_write\" | \"config_error\" | \"confirmation_required\" | \"conflicting_source_scope\" | \"consent_timeout\" | \"content_rejected\" | \"cost_cap_exceeded\" | \"cost_preview_requires_yes\" | \"cycle_failed\" | \"d_sel_too_small\" | \"delta_cursor_upgrade_required\" | \"demo_graph_failed\" | \"demo_import_failed\" | \"demo_verification_failed\" | \"derived_cap_exhausted\" | \"destination_not_ready\" | \"dirty_tree\" | \"effect_not_failed\" | \"embedding_auth_failed\" | \"embedding_configuration\" | \"embedding_model_mismatch\" | \"embedding_plane_split\" | \"embedding_storage_unavailable\" | \"embedding_unavailable\" | \"embedding_unconfigured\" | \"embedding_width_mismatch\" | \"engine_graduated\" | \"eval_suite_unwired\" | \"export_limit\" | \"extractor_identity_mismatch\" | \"facts_absorb_write_refused\" | \"facts_drain_deferred\" | \"facts_drain_job_failed\" | \"facts_payload_expired\" | \"feedback_disabled\" | \"feedback_not_authorized\" | \"fetch_failed\" | \"fix_not_writable\" | \"file_removed_during_scan\" | \"file_too_large\" | \"follow_approval_required\" | \"frontmatter_slug_conflict\" | \"full_resync_required\" | \"gate_failed\" | \"git_index_locked\" | \"git_index_stale\" | \"git_push_unavailable\" | \"git_target_unsafe\" | \"git_unavailable\" | \"graduation_drain_timeout\" | \"graduation_embedding_dimension_mismatch\" | \"graduation_foreign_host_binding\" | \"graduation_in_progress\" | \"graduation_interrupted\" | \"graduation_rollback_writes_lost\" | \"graduation_source_writer_held\" | \"graduation_split_brain\" | \"graduation_target_auth_failed\" | \"graduation_target_ddl_unreachable\" | \"graduation_target_not_empty\" | \"graduation_target_unsupported\" | \"graduation_unclassified_table\" | \"graduation_unsupported_platform\" | \"graduation_verify_failed\" | \"graph_incomplete\" | \"harness_hook_duplicates\" | \"harness_hook_unowned\" | \"held_out_overlaps_benchmark\" | \"held_out_required_for_bundled\" | \"independent_principal_required\" | \"insufficient_scope\" | \"internal\" | \"internal_error\" | \"interrupted\" | \"invalid_acknowledgment\" | \"invalid_client\" | \"invalid_fence\" | \"sync_in_progress\" | \"invalid_frontmatter\" | \"invalid_grant_clock_skew\" | \"invalid_grant_revoked\" | \"invalid_grant_testing_expiry\" | \"invalid_rating\" | \"invalid_receipt\" | \"invalid_receipt_transition\" | \"invalid_request\" | \"invalid_source\" | \"invalid_source_pin\" | \"invalid_token\" | \"invalid_write_wait\" | \"legacy_job_selection_invalid\" | \"legacy_jobs_active\" | \"local_conflict\" | \"lock_busy\" | \"managed_pull_skipped\" | \"membership_inactive\" | \"membership_not_found\" | \"method_not_allowed\" | \"migration_lease_lost\" | \"migration_failed\" | \"migrations_pending\" | \"migrations_running\" | \"missing_source_scope\" | \"missing_source_value\" | \"models_strict_violation\" | \"no_refresh_token\" | \"no_routing_eval\" | \"no_skill_md\" | \"no_worker\" | \"no_worker_surface\" | \"not_a_git_repo\" | \"not_connected\" | \"no_brain\" | \"overlapping_path\" | \"page_projection_conflict\" | \"parse_error\" | \"parser_regression\" | \"pasted_wrong_url\" | \"payload_too_large\" | \"pending_writes\" | \"persistence_write_stall\" | \"pglite_busy\" | \"plan_output_failed\" | \"plan_stale\" | \"port_in_use\" | \"preview_changed\" | \"profile_incompatible\" | \"projection_owner_resident\" | \"publication_pending\" | \"receipt_conflict\" | \"receipt_fence_changed\" | \"receipt_fence_required\" | \"receipt_identity_mismatch\" | \"redirect_uri_mismatch\" | \"ref_not_in_answer\" | \"refresh_dirty\" | \"refresh_diverged\" | \"refresh_drain_timeout\" | \"refresh_no_upstream\" | \"refresh_not_managed\" | \"refresh_not_owner\" | \"refresh_source_changed\" | \"relay_disabled\" | \"relay_session_expired\" | \"relay_unreachable\" | \"rename_held\" | \"request_already_submitted\" | \"requirements_changed\" | \"requires_local_engine\" | \"resume_spec_mismatch\" | \"revision_unavailable\" | \"scope_missing\" | \"serve_port_in_use\" | \"serve_status_only\" | \"shared_skills_unavailable\" | \"shared_skills_unsupported\" | \"skill_asset_not_found\" | \"skill_candidate_invalid\" | \"skill_not_found\" | \"skill_retention_capacity\" | \"skill_unavailable\" | \"source_binding_required\" | \"source_id_taken\" | \"source_not_ready\" | \"source_profile_no_backfill\" | \"source_referenced\" | \"source_root_conflict\" | \"split_bad_ratio\" | \"split_unparseable\" | \"stale_unavailable\" | \"state_mismatch\" | \"sync_not_applicable\" | \"sync_parser_regression\" | \"target_escape\" | \"timeline_comment_markup\" | \"topology_change_required\" | \"transcript_secret_exposure\" | \"trusted_local_only\" | \"unexpected_file_bytes\" | \"unexpected_staging_bytes\" | \"unknown_command\" | \"unknown_flag\" | \"unknown_method\" | \"unknown_source\" | \"unknown_tool\" | \"unmanaged_path\" | \"unsupported_export_data\" | \"upstream\" | \"verification_failed\" | \"withdrawal_capacity\" | \"withdrawal_provenance\" | \"writer_admin_intent_required\" | \"writer_admin_state_changed\" | \"writer_busy\" | \"writer_identity_publish_failed\" | \"writer_manifest_mismatch\" | \"writer_manifest_rescope_required\" | \"writer_manifest_unsafe\" | \"writer_regrant_required\" | \"writer_transfer_conflict\" | \"writer_transfer_required\" | \"wrong_account_consented\" | undefined",
"canonicalCode: string",
"cause?: unknown",
"code: ErrorCode",
@@ -6967,6 +6977,7 @@
"autocut?: AutocutInput",
"beforeDate?: string | undefined",
"beforeDateInclusive?: boolean | undefined",
+ "cjkKeyword?: CjkKeywordRun | undefined",
"crossModal?: \"image\" | \"text\" | \"both\" | \"auto\" | undefined",
"decide?: DecideSearchOpts | undefined",
"dedupOpts?: { cosineThreshold?: number; maxTypeRatio?: number; maxPerPage?: number; } | undefined",
@@ -6982,6 +6993,7 @@
"explainTarget?: TargetTrace | undefined",
"floorRatio?: number | undefined",
"graph_signals?: boolean | undefined",
+ "hnswIterativeScan?: \"relaxed_order\" | \"strict_order\" | \"off\" | undefined",
"include_slug_prefixes?: string[] | undefined",
"intentWeighting?: boolean | undefined",
"keywordArmConfidenceFloor?: number | null | undefined",
@@ -7796,7 +7808,7 @@
"kind": "variable",
"name": "DEGRADED_STAGES",
"signature": [
- "readonly [\"embed_unavailable\", \"embed_timeout\", \"expansion_failed\", \"expansion_partial\", \"rescore_skipped\", \"vector_arm_failed\", \"keyword_arm_failed\", \"title_arm_failed\", \"budget_dropped_all\", \"budget_truncated\", \"keyword_zero\", \"cache_prestamp\", \"reranker_skipped\", \"rerank_passthrough\", \"rerank_failed\", \"keyword_relaxed_carried\", \"safe_index_pending\", \"vector_candidates_incomplete\", \"projection_pending\", \"projection_status_unknown\"]"
+ "readonly [\"embed_unavailable\", \"embed_timeout\", \"expansion_failed\", \"expansion_partial\", \"rescore_skipped\", \"vector_arm_failed\", \"keyword_arm_failed\", \"title_arm_failed\", \"budget_dropped_all\", \"budget_truncated\", \"keyword_zero\", \"cache_prestamp\", \"reranker_skipped\", \"rerank_passthrough\", \"rerank_failed\", \"keyword_relaxed_carried\", \"safe_index_pending\", \"vector_candidates_incomplete\", \"keyword_candidates_incomplete\", \"projection_pending\", \"projection_status_unknown\"]"
]
},
{
@@ -7810,14 +7822,14 @@
"kind": "type",
"name": "DegradedStage",
"signature": [
- "\"embed_unavailable\" | \"embed_timeout\" | \"expansion_failed\" | \"expansion_partial\" | \"rescore_skipped\" | \"vector_arm_failed\" | \"keyword_arm_failed\" | \"title_arm_failed\" | \"budget_dropped_all\" | \"budget_truncated\" | \"keyword_zero\" | \"cache_prestamp\" | \"reranker_skipped\" | \"rerank_passthrough\" | \"rerank_failed\" | \"keyword_relaxed_carried\" | \"safe_index_pending\" | \"vector_candidates_incomplete\" | \"projection_pending\" | \"projection_status_unknown\""
+ "\"embed_unavailable\" | \"embed_timeout\" | \"expansion_failed\" | \"expansion_partial\" | \"rescore_skipped\" | \"vector_arm_failed\" | \"keyword_arm_failed\" | \"title_arm_failed\" | \"budget_dropped_all\" | \"budget_truncated\" | \"keyword_zero\" | \"cache_prestamp\" | \"reranker_skipped\" | \"rerank_passthrough\" | \"rerank_failed\" | \"keyword_relaxed_carried\" | \"safe_index_pending\" | \"vector_candidates_incomplete\" | \"keyword_candidates_incomplete\" | \"projection_pending\" | \"projection_status_unknown\""
]
},
{
"kind": "interface",
"members": [
"reason?: \"candidate_budget\" | \"iterative_scan_unavailable\" | \"no_provider\" | \"provider_error\" | \"timeout\" | \"variant_embed_failed\" | \"original_embed_failed\" | \"first_result_truncated\" | \"no_key\" | \"empty_result_set\" | \"malformed_shape\" | \"budget\" | \"egress_denied\" | \"embedding_disabled\" | undefined",
- "stage: \"embed_unavailable\" | \"embed_timeout\" | \"expansion_failed\" | \"expansion_partial\" | \"rescore_skipped\" | \"vector_arm_failed\" | \"keyword_arm_failed\" | \"title_arm_failed\" | \"budget_dropped_all\" | \"budget_truncated\" | \"keyword_zero\" | \"cache_prestamp\" | \"reranker_skipped\" | \"rerank_passthrough\" | \"rerank_failed\" | \"keyword_relaxed_carried\" | \"safe_index_pending\" | \"vector_candidates_incomplete\" | \"projection_pending\" | \"projection_status_unknown\""
+ "stage: \"embed_unavailable\" | \"embed_timeout\" | \"expansion_failed\" | \"expansion_partial\" | \"rescore_skipped\" | \"vector_arm_failed\" | \"keyword_arm_failed\" | \"title_arm_failed\" | \"budget_dropped_all\" | \"budget_truncated\" | \"keyword_zero\" | \"cache_prestamp\" | \"reranker_skipped\" | \"rerank_passthrough\" | \"rerank_failed\" | \"keyword_relaxed_carried\" | \"safe_index_pending\" | \"vector_candidates_incomplete\" | \"keyword_candidates_incomplete\" | \"projection_pending\" | \"projection_status_unknown\""
],
"name": "DegradedStageEntry"
},
@@ -8057,6 +8069,7 @@
"expansion_applied: boolean",
"intent?: \"entity\" | \"temporal\" | \"event\" | \"concept\" | \"general\" | undefined",
"keyword_arm_confidence?: KeywordArmConfidenceDecision | undefined",
+ "keyword_candidates?: CjkKeywordMeta | undefined",
"metadata_boost_gate?: MetadataBoostGateDecision | undefined",
"mode?: \"conservative\" | \"balanced\" | \"tokenmax\" | undefined",
"relational_evidence_slot?: RelationalEvidenceSlotDecision | undefined",
@@ -8340,7 +8353,7 @@
"kind": "variable",
"name": "RANKING_ONLY_DEGRADED_STAGES",
"signature": [
- "ReadonlySet<\"embed_unavailable\" | \"embed_timeout\" | \"expansion_failed\" | \"expansion_partial\" | \"rescore_skipped\" | \"vector_arm_failed\" | \"keyword_arm_failed\" | \"title_arm_failed\" | \"budget_dropped_all\" | \"budget_truncated\" | \"keyword_zero\" | \"cache_prestamp\" | \"reranker_skipped\" | \"rerank_passthrough\" | \"rerank_failed\" | \"keyword_relaxed_carried\" | \"safe_index_pending\" | \"vector_candidates_incomplete\" | \"projection_pending\" | \"projection_status_unknown\">"
+ "ReadonlySet<\"embed_unavailable\" | \"embed_timeout\" | \"expansion_failed\" | \"expansion_partial\" | \"rescore_skipped\" | \"vector_arm_failed\" | \"keyword_arm_failed\" | \"title_arm_failed\" | \"budget_dropped_all\" | \"budget_truncated\" | \"keyword_zero\" | \"cache_prestamp\" | \"reranker_skipped\" | \"rerank_passthrough\" | \"rerank_failed\" | \"keyword_relaxed_carried\" | \"safe_index_pending\" | \"vector_candidates_incomplete\" | \"keyword_candidates_incomplete\" | \"projection_pending\" | \"projection_status_unknown\">"
]
},
{
@@ -8454,6 +8467,7 @@
"autocut?: AutocutInput",
"beforeDate?: string | undefined",
"beforeDateInclusive?: boolean | undefined",
+ "cjkKeyword?: CjkKeywordRun | undefined",
"crossModal?: \"image\" | \"text\" | \"both\" | \"auto\" | undefined",
"detail?: \"low\" | \"medium\" | \"high\" | undefined",
"embeddingColumn?: string | ResolvedColumn | undefined",
@@ -8462,6 +8476,7 @@
"exclude_slugs?: string[] | undefined",
"floorRatio?: number | undefined",
"graph_signals?: boolean | undefined",
+ "hnswIterativeScan?: \"relaxed_order\" | \"strict_order\" | \"off\" | undefined",
"include_slug_prefixes?: string[] | undefined",
"intentWeighting?: boolean | undefined",
"language?: string | undefined",
diff --git a/test/fixtures/goldens/pglite-upgrade-replay/catalog-after-boot.json b/test/fixtures/goldens/pglite-upgrade-replay/catalog-after-boot.json
index a6f750e588..e33ac41521 100644
--- a/test/fixtures/goldens/pglite-upgrade-replay/catalog-after-boot.json
+++ b/test/fixtures/goldens/pglite-upgrade-replay/catalog-after-boot.json
@@ -2563,7 +2563,8 @@
"36 consumer_version text/text NULL",
"37 consumer_host_id uuid/uuid NULL",
"38 published_at timestamp with time zone/timestamptz NULL",
- "39 error_detail jsonb/jsonb NULL"
+ "39 error_detail jsonb/jsonb NULL",
+ "40 claim_phase jsonb/jsonb NULL"
],
"flags": "relkind=r rls=false force_rls=false"
},
diff --git a/test/schema-bootstrap-coverage.test.ts b/test/schema-bootstrap-coverage.test.ts
index 9ff610e830..5e4c104860 100644
--- a/test/schema-bootstrap-coverage.test.ts
+++ b/test/schema-bootstrap-coverage.test.ts
@@ -1048,6 +1048,10 @@ const COLUMN_EXEMPTIONS = new Set<string>([
// posture as v178: persistence_requests is migration-created on PGLite, no
// index references the column, and every reader treats NULL as no detail.
'persistence_requests.error_detail',
+ // #6176 (migration v217) — claim phase of a running request. Same posture
+ // as v178/v198: persistence_requests is migration-created on PGLite, no
+ // index references the column, and every reader treats NULL as no recorded phase.
+ 'persistence_requests.claim_phase',
// #5455 (migration v183) — managed mode epoch. persistence_brain is
// migration-created on PGLite; no index in either blob references it, and
// pre-migration readers go through to_jsonb(persistence_brain)->'mode_epoch'.
diff --git a/test/scripts/check-skill-refs.test.ts b/test/scripts/check-skill-refs.test.ts
index d95a81c228..22cbe348e5 100644
--- a/test/scripts/check-skill-refs.test.ts
+++ b/test/scripts/check-skill-refs.test.ts
@@ -236,7 +236,7 @@ describe('check-skill-refs', () => {
expect(pass.out).toContain('OK');
});
- test('cli-refs warn lane: unknown gbrain command in a fenced block warns without failing', () => {
+ test('cli-refs lane: an unknown gbrain command in a fenced block fails the build (#6197)', () => {
// The script derives the known-command set from src/cli.ts +
// src/core/operations.ts of the CWD repo, so this one runs from the real
// repo root against a temp skills dir.
@@ -253,6 +253,6 @@ describe('check-skill-refs', () => {
);
expect(out).toContain('[cli-refs]');
expect(out).toContain('not-a-real-command');
- expect(code).toBe(0); // warn-only lane never fails the build
+ expect(code).toBe(1);
}, 30_000);
});