Split Face organ reasoning effort
This commit is contained in:
parent
910252248b
commit
4ec9d00c84
9 changed files with 49 additions and 25 deletions
|
|
@ -871,8 +871,8 @@ function repoFaceHeartbeatCodexOptions(job: JobRecord, role: "face" | "interpret
|
|||
if (role === "face") {
|
||||
return {
|
||||
model: config.repoFaceHeartbeats.turnCodexModel,
|
||||
...(config.repoFaceHeartbeats.codexModelReasoningEffort
|
||||
? { reasoningEffort: config.repoFaceHeartbeats.codexModelReasoningEffort }
|
||||
...(config.repoFaceHeartbeats.turnCodexModelReasoningEffort
|
||||
? { reasoningEffort: config.repoFaceHeartbeats.turnCodexModelReasoningEffort }
|
||||
: {}),
|
||||
};
|
||||
}
|
||||
|
|
@ -882,8 +882,8 @@ function repoFaceHeartbeatCodexOptions(job: JobRecord, role: "face" | "interpret
|
|||
...(config.repoFaceHeartbeats.mindCodexModels.length > 0
|
||||
? { models: config.repoFaceHeartbeats.mindCodexModels.join(",") }
|
||||
: {}),
|
||||
...(config.repoFaceHeartbeats.codexModelReasoningEffort
|
||||
? { reasoningEffort: config.repoFaceHeartbeats.codexModelReasoningEffort }
|
||||
...(config.repoFaceHeartbeats.mindCodexModelReasoningEffort
|
||||
? { reasoningEffort: config.repoFaceHeartbeats.mindCodexModelReasoningEffort }
|
||||
: {}),
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ const booleanFromEnv = z.preprocess((value) => {
|
|||
}, z.boolean());
|
||||
|
||||
type OllamaThinkMode = boolean | "low" | "medium" | "high";
|
||||
type CodexReasoningEffort = "none" | "low" | "medium" | "high" | "xhigh";
|
||||
|
||||
const envSchema = z.object({
|
||||
NODE_ENV: z.enum(["development", "test", "production"]).default("development"),
|
||||
|
|
@ -89,7 +90,7 @@ const envSchema = z.object({
|
|||
CODEX_EXECUTABLE: z.string().min(1).default("codex"),
|
||||
CODEX_EXEC_ARGS: z.string().default(""),
|
||||
CODEX_MODEL: z.string().min(1).default("gpt-5.4"),
|
||||
CODEX_MODEL_REASONING_EFFORT: z.enum(["low", "medium", "high", "xhigh"]).default("low"),
|
||||
CODEX_MODEL_REASONING_EFFORT: z.enum(["none", "low", "medium", "high", "xhigh"]).default("low"),
|
||||
CODEX_EXEC_TIMEOUT_MS: z.coerce.number().int().positive().default(120000),
|
||||
STYLE_PACK_PATH: z.string().min(1).default("styles/void-default.md"),
|
||||
SYSTEM_MESSAGES_PATH: z.string().min(1).default("config/system-messages.json"),
|
||||
|
|
@ -128,9 +129,18 @@ const envSchema = z.object({
|
|||
REPO_FACE_MIND_CODEX_MODEL: z.string().min(1).default("gpt-5.4"),
|
||||
REPO_FACE_MIND_CODEX_MODELS: z.string().default("gpt-5.4"),
|
||||
REPO_FACE_TURN_CODEX_MODEL: z.string().min(1).default("gpt-5.4"),
|
||||
REPO_FACE_TURN_CODEX_REASONING_EFFORT: z
|
||||
.enum(["none", "low", "medium", "high", "xhigh"])
|
||||
.default("low"),
|
||||
REPO_FACE_IMAGINATION_CODEX_REASONING_EFFORT: z
|
||||
.enum(["none", "low", "medium", "high", "xhigh"])
|
||||
.default("none"),
|
||||
REPO_FACE_MIND_CODEX_REASONING_EFFORT: z
|
||||
.enum(["none", "low", "medium", "high", "xhigh"])
|
||||
.default("none"),
|
||||
REPO_FACE_HEARTBEAT_CODEX_REASONING_EFFORT: z
|
||||
.enum(["low", "medium", "high", "xhigh"])
|
||||
.optional(),
|
||||
.enum(["none", "low", "medium", "high", "xhigh"])
|
||||
.default("none"),
|
||||
REPO_FACE_STATE_PROJECTOR_ENABLED: booleanFromEnv.default(true),
|
||||
EPIPHANY_AGENT_ROOT: z.string().min(1).default("E:/Projects/EpiphanyAgent"),
|
||||
INDEX_ALL_CHANNELS: booleanFromEnv.default(false),
|
||||
|
|
@ -161,7 +171,7 @@ export interface AppConfig {
|
|||
codexExecutable: string;
|
||||
codexExecArgs: string[];
|
||||
codexModel: string;
|
||||
codexModelReasoningEffort: "low" | "medium" | "high" | "xhigh";
|
||||
codexModelReasoningEffort: CodexReasoningEffort;
|
||||
codexExecTimeoutMs: number;
|
||||
stylePackPath: string;
|
||||
systemMessagesPath: string;
|
||||
|
|
@ -197,7 +207,10 @@ export interface AppConfig {
|
|||
mindCodexModel?: string;
|
||||
mindCodexModels: string[];
|
||||
turnCodexModel: string;
|
||||
codexModelReasoningEffort?: "low" | "medium" | "high" | "xhigh";
|
||||
turnCodexModelReasoningEffort: CodexReasoningEffort;
|
||||
imaginationCodexModelReasoningEffort: CodexReasoningEffort;
|
||||
mindCodexModelReasoningEffort: CodexReasoningEffort;
|
||||
codexModelReasoningEffort?: CodexReasoningEffort;
|
||||
stateProjectorEnabled: boolean;
|
||||
};
|
||||
epiphanyAgentRoot: string;
|
||||
|
|
@ -439,6 +452,9 @@ export function loadConfig(env: NodeJS.ProcessEnv = process.env): AppConfig {
|
|||
? parseList(parsed.REPO_FACE_MIND_CODEX_MODELS)
|
||||
: [parsed.REPO_FACE_MIND_CODEX_MODEL],
|
||||
turnCodexModel: parsed.REPO_FACE_TURN_CODEX_MODEL,
|
||||
turnCodexModelReasoningEffort: parsed.REPO_FACE_TURN_CODEX_REASONING_EFFORT,
|
||||
imaginationCodexModelReasoningEffort: parsed.REPO_FACE_IMAGINATION_CODEX_REASONING_EFFORT,
|
||||
mindCodexModelReasoningEffort: parsed.REPO_FACE_MIND_CODEX_REASONING_EFFORT,
|
||||
codexModelReasoningEffort: parsed.REPO_FACE_HEARTBEAT_CODEX_REASONING_EFFORT,
|
||||
stateProjectorEnabled: parsed.REPO_FACE_STATE_PROJECTOR_ENABLED,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -535,8 +535,8 @@ async function appendModelOutputLog(input: {
|
|||
await appendFile(logPath, `${JSON.stringify(record)}\n`, "utf8");
|
||||
}
|
||||
|
||||
function getReasoningEffortOption(value: unknown): "low" | "medium" | "high" | "xhigh" | undefined {
|
||||
if (value === "low" || value === "medium" || value === "high" || value === "xhigh") {
|
||||
function getReasoningEffortOption(value: unknown): "none" | "low" | "medium" | "high" | "xhigh" | undefined {
|
||||
if (value === "none" || value === "low" || value === "medium" || value === "high" || value === "xhigh") {
|
||||
return value;
|
||||
}
|
||||
return undefined;
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ export async function runCodexExec(input: {
|
|||
executable: string;
|
||||
executableArgs: string[];
|
||||
model: string;
|
||||
reasoningEffort: "low" | "medium" | "high" | "xhigh";
|
||||
reasoningEffort: "none" | "low" | "medium" | "high" | "xhigh";
|
||||
timeoutMs: number;
|
||||
workingDirectory: string;
|
||||
prompt: string;
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ export interface OwnerCodexProviderOptions {
|
|||
executable: string;
|
||||
executableArgs: string[];
|
||||
model: string;
|
||||
reasoningEffort: "low" | "medium" | "high" | "xhigh";
|
||||
reasoningEffort: "none" | "low" | "medium" | "high" | "xhigh";
|
||||
timeoutMs: number;
|
||||
workingDirectory: string;
|
||||
historyLookup?: HistoryLookupTool;
|
||||
|
|
|
|||
|
|
@ -25,7 +25,8 @@ async function main() {
|
|||
const options = parseArgs(process.argv.slice(2));
|
||||
const faceModel = options["face-model"] ?? process.env.REPO_FACE_TURN_CODEX_MODEL ?? "gpt-5.4";
|
||||
const interpreterModel = options["interpreter-model"] ?? options.model ?? process.env.REPO_FACE_MIND_CODEX_MODEL ?? "gpt-5.4";
|
||||
const reasoningEffort = options["reasoning-effort"] ?? process.env.REPO_FACE_HEARTBEAT_CODEX_REASONING_EFFORT ?? "low";
|
||||
const faceReasoningEffort = options["face-reasoning-effort"] ?? options["reasoning-effort"] ?? process.env.REPO_FACE_TURN_CODEX_REASONING_EFFORT ?? "low";
|
||||
const interpreterReasoningEffort = options["interpreter-reasoning-effort"] ?? process.env.REPO_FACE_MIND_CODEX_REASONING_EFFORT ?? "none";
|
||||
const mcpMode = options.mcp === "mock" ? "mock" : "real-readonly";
|
||||
const outPath = resolve(repoRoot, options.out ?? defaultOut);
|
||||
const selectedIdentities = options.identity
|
||||
|
|
@ -52,7 +53,7 @@ async function main() {
|
|||
process.stderr.write(`[dry-run] face turn ${identity}\n`);
|
||||
const childRun = await runCodex(facePrompt, {
|
||||
model: faceModel,
|
||||
reasoningEffort,
|
||||
reasoningEffort: faceReasoningEffort,
|
||||
scenarioId: `${identity}_swarm_dry_run_child`,
|
||||
logPath: childLogPath,
|
||||
mcpMode,
|
||||
|
|
@ -71,7 +72,7 @@ async function main() {
|
|||
});
|
||||
const interpreterRun = await runCodex(interpreterPrompt, {
|
||||
model: interpreterModel,
|
||||
reasoningEffort,
|
||||
reasoningEffort: interpreterReasoningEffort,
|
||||
scenarioId: `${identity}_swarm_dry_run_interpreter`,
|
||||
mcpMode: "none",
|
||||
});
|
||||
|
|
@ -97,7 +98,7 @@ async function main() {
|
|||
await rm(retryLogPath, { force: true }).catch(() => undefined);
|
||||
const retryChildRun = await runCodex(appendDryRunSafety(retryPrompt, mcpMode), {
|
||||
model: faceModel,
|
||||
reasoningEffort,
|
||||
reasoningEffort: faceReasoningEffort,
|
||||
scenarioId: `${identity}_swarm_dry_run_retry_child`,
|
||||
logPath: retryLogPath,
|
||||
mcpMode,
|
||||
|
|
@ -116,7 +117,7 @@ async function main() {
|
|||
});
|
||||
const retryInterpreterRun = await runCodex(retryInterpreterPrompt, {
|
||||
model: interpreterModel,
|
||||
reasoningEffort,
|
||||
reasoningEffort: interpreterReasoningEffort,
|
||||
scenarioId: `${identity}_swarm_dry_run_retry_interpreter`,
|
||||
mcpMode: "none",
|
||||
});
|
||||
|
|
@ -199,7 +200,8 @@ async function main() {
|
|||
generatedAt: new Date().toISOString(),
|
||||
faceModel,
|
||||
interpreterModel,
|
||||
reasoningEffort,
|
||||
faceReasoningEffort,
|
||||
interpreterReasoningEffort,
|
||||
mcpMode,
|
||||
passed: runs.every((run) => run.assessment.failures.length === 0),
|
||||
summary: runs.map((run) => ({
|
||||
|
|
|
|||
|
|
@ -4232,7 +4232,9 @@ function runCodexTextProjectionWithModels(input: {
|
|||
const startedAt = new Date().toISOString();
|
||||
const startedMs = Date.now();
|
||||
const model = input.models[0] ?? input.config.codexModel;
|
||||
const reasoningEffort = input.config.repoFaceHeartbeats.codexModelReasoningEffort ?? "low";
|
||||
const reasoningEffort = input.organ === "imagination"
|
||||
? input.config.repoFaceHeartbeats.imaginationCodexModelReasoningEffort
|
||||
: input.config.repoFaceHeartbeats.codexModelReasoningEffort ?? "none";
|
||||
const args = [
|
||||
...input.config.codexExecArgs,
|
||||
"exec",
|
||||
|
|
|
|||
|
|
@ -19,7 +19,8 @@ async function main() {
|
|||
const faceModel = options["face-model"] ?? process.env.REPO_FACE_TURN_CODEX_MODEL ?? "gpt-5.4";
|
||||
const interpreterModelCandidates = modelCandidatesFromOptions(options);
|
||||
const interpreterModel = interpreterModelCandidates.join(",");
|
||||
const reasoningEffort = options["reasoning-effort"] ?? process.env.REPO_FACE_HEARTBEAT_CODEX_REASONING_EFFORT ?? "low";
|
||||
const faceReasoningEffort = options["face-reasoning-effort"] ?? options["reasoning-effort"] ?? process.env.REPO_FACE_TURN_CODEX_REASONING_EFFORT ?? "low";
|
||||
const interpreterReasoningEffort = options["interpreter-reasoning-effort"] ?? process.env.REPO_FACE_MIND_CODEX_REASONING_EFFORT ?? "none";
|
||||
const facePromptPath = resolve(repoRoot, options["face-prompt"] ?? defaultFacePrompt);
|
||||
const outPath = resolve(repoRoot, options.out ?? defaultOut);
|
||||
const facePrompt = await readFile(facePromptPath, "utf8");
|
||||
|
|
@ -28,7 +29,7 @@ async function main() {
|
|||
|
||||
const childRun = await runCodexWithModelFallback(facePrompt, {
|
||||
models: [faceModel],
|
||||
reasoningEffort,
|
||||
reasoningEffort: faceReasoningEffort,
|
||||
scenarioId: "nibu_interpreter_loop_child",
|
||||
logPath: childLogPath,
|
||||
useMockMcp: true,
|
||||
|
|
@ -44,7 +45,7 @@ async function main() {
|
|||
});
|
||||
const interpreterRun = await runCodexWithModelFallback(interpreterPrompt, {
|
||||
models: interpreterModelCandidates,
|
||||
reasoningEffort,
|
||||
reasoningEffort: interpreterReasoningEffort,
|
||||
scenarioId: "nibu_interpreter_loop_parent",
|
||||
logPath: undefined,
|
||||
useMockMcp: false,
|
||||
|
|
@ -59,7 +60,8 @@ async function main() {
|
|||
generatedAt: new Date().toISOString(),
|
||||
faceModel,
|
||||
interpreterModel,
|
||||
reasoningEffort,
|
||||
faceReasoningEffort,
|
||||
interpreterReasoningEffort,
|
||||
facePromptPath,
|
||||
passed: failures.length === 0,
|
||||
failures,
|
||||
|
|
@ -87,7 +89,8 @@ async function main() {
|
|||
outPath,
|
||||
faceModel,
|
||||
interpreterModel,
|
||||
reasoningEffort,
|
||||
faceReasoningEffort,
|
||||
interpreterReasoningEffort,
|
||||
passed: report.passed,
|
||||
failures,
|
||||
childTools,
|
||||
|
|
|
|||
|
|
@ -338,3 +338,4 @@
|
|||
{"ts":"2026-05-25T00:22:21Z","type":"implementation","status":"ok","note":"Adjusted the kiosk dashboard portrait composition: CTB remains on the long side, inspector/control becomes a full-width top band, tree and detail occupy the lower work area, and the watchdog HUD now has reserved top-right air instead of overlapping Face stat bars."}
|
||||
{"ts":"2026-05-25T05:24:26Z","type":"implementation","status":"ok","note":"Repo Faces now have a bounded read-only open-web Eyes tool: MCP exposes search_web, Face turns allow it alongside archive/source search, and prompt doctrine treats web results as open-world leads rather than canon or durable memory."}
|
||||
{"ts":"2026-05-25T06:02:18Z","type":"implementation","status":"ok","note":"Paused the Face swarm after an incoherent agent-tail loop and promoted the parent projector/interpreter path into explicit Imagination and Mind organs. Imagination now runs via REPO_FACE_IMAGINATION_CODEX_MODELS defaulting to gpt-5.4 and receives typed state plus semantic curiosity/research clusters as possibility-space; Mind now runs via REPO_FACE_MIND_CODEX_MODELS defaulting to gpt-5.4 and owns thought-to-memory/speech routing. Added latest-human-steering facts so agent-only tails cannot outrank the newest human anchor, fixed repeated sleep-memory maintenance spawn by writing a starting status before launch, and verified Heimdall/Kiko dry runs route private state instead of stale public proof loops."}
|
||||
{"ts":"2026-05-25T06:42:38Z","type":"implementation","status":"ok","note":"Split repo Face Codex reasoning effort by organ. Face turns stay on gpt-5.4 with REPO_FACE_TURN_CODEX_REASONING_EFFORT=low so characters can think a bit; parent Imagination and Mind stay on gpt-5.4 but default to zero reasoning via REPO_FACE_IMAGINATION_CODEX_REASONING_EFFORT=none and REPO_FACE_MIND_CODEX_REASONING_EFFORT=none. Legacy heartbeat reasoning remains none. Verified config load reports face=low, imagination=none, mind=none."}
|
||||
|
|
|
|||
Loading…
Reference in a new issue