惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
酷 壳 – CoolShell
酷 壳 – CoolShell
WordPress大学
WordPress大学
小众软件
小众软件
博客园 - 司徒正美
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Jina AI
Jina AI
Hugging Face - Blog
Hugging Face - Blog
博客园 - Franky
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
量子位
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
雷峰网
雷峰网
云风的 BLOG
云风的 BLOG
M
MIT News - Artificial intelligence
F
Fortinet All Blogs
T
Tailwind CSS Blog
Martin Fowler
Martin Fowler
I
InfoQ
The GitHub Blog
The GitHub Blog
有赞技术团队
有赞技术团队
The Cloudflare Blog
罗磊的独立博客

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
refactor(agents): narrow runner harness helper types · op...
vincentkoc · 2026-06-17 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -12,7 +12,7 @@ import type { FailoverReason } from "../../embedded-agent-helpers.js";

1212

import { log } from "../logger.js";

1313
1414

/** Structured fields emitted whenever embedded run failover chooses an action. */

15-

export type FailoverDecisionLoggerInput = {

15+

type FailoverDecisionLoggerInput = {

1616

stage: "prompt" | "assistant";

1717

decision: "rotate_profile" | "fallback_model" | "surface_error";

1818

runId?: string;

@@ -31,7 +31,7 @@ export type FailoverDecisionLoggerInput = {

3131

};

3232
3333

/** Stable context captured before a concrete failover decision is known. */

34-

export type FailoverDecisionLoggerBase = Omit<FailoverDecisionLoggerInput, "decision" | "status">;

34+

type FailoverDecisionLoggerBase = Omit<FailoverDecisionLoggerInput, "decision" | "status">;

3535
3636

/**

3737

* Derives timeout failure reasons for logs that were built from timeout state

Original file line numberDiff line numberDiff line change

@@ -84,15 +84,15 @@ export type TraceAttempt = {

8484

status?: number;

8585

};

8686
87-

export type ExecutionTrace = {

87+

type ExecutionTrace = {

8888

winnerProvider?: string;

8989

winnerModel?: string;

9090

attempts?: TraceAttempt[];

9191

fallbackUsed?: boolean;

9292

runner?: "embedded" | "cli";

9393

};

9494
95-

export type RequestShapingTrace = {

95+

type RequestShapingTrace = {

9696

authMode?: string;

9797

thinking?: string;

9898

reasoning?: string;

@@ -102,7 +102,7 @@ export type RequestShapingTrace = {

102102

blockStreaming?: string;

103103

};

104104
105-

export type PromptSegmentTrace = {

105+

type PromptSegmentTrace = {

106106

key: string;

107107

chars: number;

108108

};

@@ -114,13 +114,13 @@ export type ToolSummaryTrace = {

114114

totalToolTimeMs?: number;

115115

};

116116
117-

export type CompletionTrace = {

117+

type CompletionTrace = {

118118

finishReason?: string;

119119

stopReason?: string;

120120

refusal?: boolean;

121121

};

122122
123-

export type ContextManagementTrace = {

123+

type ContextManagementTrace = {

124124

sessionCompactions?: number;

125125

lastTurnCompactions?: number;

126126

preflightCompactionApplied?: boolean;

Original file line numberDiff line numberDiff line change

@@ -145,7 +145,7 @@ export async function awaitAgentHarnessAgentEndHook(params: {

145145

}

146146
147147

/** Normalized before-finalize hook decision consumed by harness loops. */

148-

export type AgentHarnessBeforeAgentFinalizeOutcome =

148+

type AgentHarnessBeforeAgentFinalizeOutcome =

149149

| { action: "continue" }

150150

| { action: "revise"; reason: string }

151151

| { action: "finalize"; reason?: string };

Original file line numberDiff line numberDiff line change

@@ -18,7 +18,7 @@ import { buildAgentHookContext, type AgentHarnessHookContext } from "./hook-cont

1818

const log = createSubsystemLogger("agents/harness");

1919
2020

/** Prompt/developer-instruction pair after harness prompt-build hooks run. */

21-

export type AgentHarnessPromptBuildResult = {

21+

type AgentHarnessPromptBuildResult = {

2222

prompt: string;

2323

developerInstructions: string;

2424

};

Original file line numberDiff line numberDiff line change

@@ -83,7 +83,7 @@ export type AgentHarnessDeliveryDefaults = {

8383

sourceVisibleReplies?: "automatic" | "message_tool";

8484

};

8585
86-

export type AgentHarnessRunCapability = {

86+

type AgentHarnessRunCapability = {

8787

id: string;

8888

label: string;

8989

pluginId?: string;

@@ -98,22 +98,22 @@ export type AgentHarnessRunCapability = {

9898

runAttempt(params: AgentHarnessAttemptParams): Promise<AgentHarnessAttemptResult>;

9999

};

100100
101-

export type AgentHarnessSideQuestionCapability = {

101+

type AgentHarnessSideQuestionCapability = {

102102

runSideQuestion?(params: AgentHarnessSideQuestionParams): Promise<AgentHarnessSideQuestionResult>;

103103

};

104104
105-

export type AgentHarnessClassificationCapability = {

105+

type AgentHarnessClassificationCapability = {

106106

classify?(

107107

result: AgentHarnessAttemptResult,

108108

ctx: AgentHarnessAttemptParams,

109109

): AgentHarnessResultClassification | undefined;

110110

};

111111
112-

export type AgentHarnessCompactionCapability = {

112+

type AgentHarnessCompactionCapability = {

113113

compact?(params: AgentHarnessCompactParams): Promise<AgentHarnessCompactResult | undefined>;

114114

};

115115
116-

export type AgentHarnessSessionLifecycleCapability = {

116+

type AgentHarnessSessionLifecycleCapability = {

117117

reset?(params: AgentHarnessResetParams): Promise<void> | void;

118118

dispose?(): Promise<void> | void;

119119

};