test(core): refresh write lock config fixtures

This commit is contained in:
Peter Steinberger
2026-05-02 15:07:29 +01:00
parent eddc589ca5
commit 3a52e95473
2 changed files with 28 additions and 0 deletions

View File

@@ -354,6 +354,7 @@ vi.mock("../session-manager-init.js", () => ({
vi.mock("../../session-write-lock.js", () => ({
acquireSessionWriteLock: (params: Parameters<AcquireSessionWriteLockFn>[0]) =>
hoisted.acquireSessionWriteLockMock(params),
resolveSessionWriteLockAcquireTimeoutMs: () => 60000,
resolveSessionLockMaxHoldFromTimeout: () => 1,
}));

View File

@@ -20816,6 +20816,23 @@ export const GENERATED_BASE_CONFIG_SCHEMA: BaseConfigSchemaResponse = {
description:
"Controls cross-session send permissions using allow/deny rules evaluated against channel, chatType, and key prefixes. Use this to fence where session tools can deliver messages in complex environments.",
},
writeLock: {
type: "object",
properties: {
acquireTimeoutMs: {
type: "integer",
exclusiveMinimum: 0,
maximum: 9007199254740991,
title: "Session Write Lock Acquire Timeout",
description:
"Milliseconds to wait while acquiring a session transcript write lock before reporting the session as busy. Default: 60000; raise for slow disks or long prep/cleanup, lower only when quick failure is preferred.",
},
},
additionalProperties: false,
title: "Session Write Lock",
description:
"Groups session transcript write-lock acquisition controls. Tune only when legitimate transcript prep, cleanup, compaction, or mirror work contends longer than the default wait.",
},
agentToAgent: {
type: "object",
properties: {
@@ -27899,6 +27916,16 @@ export const GENERATED_BASE_CONFIG_SCHEMA: BaseConfigSchemaResponse = {
help: "Matches the raw, unnormalized session-key prefix for exact full-key policy targeting. Use this when normalized keyPrefix is too broad and you need agent-prefixed or transport-specific precision.",
tags: ["access", "storage"],
},
"session.writeLock": {
label: "Session Write Lock",
help: "Groups session transcript write-lock acquisition controls. Tune only when legitimate transcript prep, cleanup, compaction, or mirror work contends longer than the default wait.",
tags: ["storage"],
},
"session.writeLock.acquireTimeoutMs": {
label: "Session Write Lock Acquire Timeout",
help: "Milliseconds to wait while acquiring a session transcript write lock before reporting the session as busy. Default: 60000; raise for slow disks or long prep/cleanup, lower only when quick failure is preferred.",
tags: ["performance", "storage"],
},
"session.agentToAgent": {
label: "Session Agent-to-Agent",
help: "Groups controls for inter-agent session exchanges, including loop prevention limits on reply chaining. Keep defaults unless you run advanced agent-to-agent automation with strict turn caps.",