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

推荐订阅源

爱范儿
爱范儿
大猫的无限游戏
大猫的无限游戏
J
Java Code Geeks
MongoDB | Blog
MongoDB | Blog
Martin Fowler
Martin Fowler
GbyAI
GbyAI
Microsoft Azure Blog
Microsoft Azure Blog
Recent Announcements
Recent Announcements
F
Fortinet All Blogs
B
Blog
U
Unit 42
B
Blog RSS Feed
D
DataBreaches.Net
Google DeepMind News
Google DeepMind News
人人都是产品经理
人人都是产品经理
腾讯CDC
量子位
酷 壳 – CoolShell
酷 壳 – CoolShell
V
Visual Studio Blog
博客园 - 聂微东
MyScale Blog
MyScale Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 三生石上(FineUI控件)
Engineering at Meta
Engineering at Meta

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
chore(deadcode): remove unused infra consumers · openclaw...
vincentkoc · 2026-06-20 · via Recent Commits to openclaw:main

@@ -13,7 +13,7 @@ vi.unmock("./exec-approvals.js");

1313

vi.unmock("./exec-approvals-effective.js");

14141515

let collectExecPolicyScopeSnapshots: typeof import("./exec-approvals-effective.js").collectExecPolicyScopeSnapshots;

16-

let resolveExecPolicyScopeSummary: typeof import("./exec-approvals-effective.js").resolveExecPolicyScopeSummary;

16+

let resolveExecPolicyScopeSnapshot: typeof import("./exec-approvals-effective.js").resolveExecPolicyScopeSnapshot;

1717

let evaluateExecAllowlist: typeof import("./exec-approvals.js").evaluateExecAllowlist;

1818

let hasDurableExecApproval: typeof import("./exec-approvals.js").hasDurableExecApproval;

1919

let maxAsk: typeof import("./exec-approvals.js").maxAsk;

@@ -40,7 +40,7 @@ async function loadActualExecApprovalModules(): Promise<void> {

4040

"./exec-approvals-effective.js",

4141

);

4242

collectExecPolicyScopeSnapshots = effective.collectExecPolicyScopeSnapshots;

43-

resolveExecPolicyScopeSummary = effective.resolveExecPolicyScopeSummary;

43+

resolveExecPolicyScopeSnapshot = effective.resolveExecPolicyScopeSnapshot;

4444

evaluateExecAllowlist = execApprovals.evaluateExecAllowlist;

4545

hasDurableExecApproval = execApprovals.hasDurableExecApproval;

4646

maxAsk = execApprovals.maxAsk;

@@ -62,6 +62,14 @@ async function loadActualExecApprovalModules(): Promise<void> {

6262

resolveExecPolicyForMode = execApprovals.resolveExecPolicyForMode;

6363

}

646465+

function summarizeExecPolicyScopeSnapshot(

66+

params: Parameters<typeof resolveExecPolicyScopeSnapshot>[0],

67+

): Omit<ReturnType<typeof resolveExecPolicyScopeSnapshot>, "allowedDecisions"> {

68+

const { allowedDecisions: _allowedDecisions, ...summary } =

69+

resolveExecPolicyScopeSnapshot(params);

70+

return summary;

71+

}

72+6573

function expectFields(value: unknown, expected: Record<string, unknown>): void {

6674

if (!value || typeof value !== "object") {

6775

throw new Error("expected fields object");

@@ -84,7 +92,7 @@ function expectMalformedAgentAskUsesDefaults(agentAsk: unknown): void {

8492

},

8593

},

8694

} as unknown as ExecApprovalsFile;

87-

const summary = resolveExecPolicyScopeSummary({

95+

const summary = summarizeExecPolicyScopeSnapshot({

8896

approvals,

8997

globalExecConfig: {

9098

ask: "off",

@@ -410,7 +418,7 @@ describe("exec approvals policy helpers", () => {

410418

});

411419412420

it("explains stricter host security and ask precedence", () => {

413-

const summary = resolveExecPolicyScopeSummary({

421+

const summary = summarizeExecPolicyScopeSnapshot({

414422

approvals: {

415423

version: 1,

416424

defaults: {

@@ -448,7 +456,7 @@ describe("exec approvals policy helpers", () => {

448456

});

449457450458

it("maps normalized requested mode into policy snapshots", () => {

451-

const summary = resolveExecPolicyScopeSummary({

459+

const summary = summarizeExecPolicyScopeSnapshot({

452460

approvals: {

453461

version: 1,

454462

},

@@ -478,7 +486,7 @@ describe("exec approvals policy helpers", () => {

478486

});

479487480488

it("lets narrower legacy policy override a global normalized mode in snapshots", () => {

481-

const summary = resolveExecPolicyScopeSummary({

489+

const summary = summarizeExecPolicyScopeSnapshot({

482490

approvals: {

483491

version: 1,

484492

},

@@ -508,7 +516,7 @@ describe("exec approvals policy helpers", () => {

508516

});

509517510518

it("preserves mode-derived siblings for partial narrower legacy policy snapshots", () => {

511-

const summary = resolveExecPolicyScopeSummary({

519+

const summary = summarizeExecPolicyScopeSnapshot({

512520

approvals: {

513521

version: 1,

514522

},

@@ -538,7 +546,7 @@ describe("exec approvals policy helpers", () => {

538546

});

539547540548

it("reports full plus on-miss as full because on-miss only gates allowlist misses", () => {

541-

const summary = resolveExecPolicyScopeSummary({

549+

const summary = summarizeExecPolicyScopeSnapshot({

542550

approvals: {

543551

version: 1,

544552

},

@@ -568,7 +576,7 @@ describe("exec approvals policy helpers", () => {

568576

});

569577570578

it("uses the actual approvals path when reporting host sources", () => {

571-

const summary = resolveExecPolicyScopeSummary({

579+

const summary = summarizeExecPolicyScopeSnapshot({

572580

approvals: {

573581

version: 1,

574582

defaults: {

@@ -599,7 +607,7 @@ describe("exec approvals policy helpers", () => {

599607

const stateDir = path.join(process.cwd(), ".tmp-openclaw-state");

600608

process.env.OPENCLAW_STATE_DIR = stateDir;

601609

try {

602-

const summary = resolveExecPolicyScopeSummary({

610+

const summary = summarizeExecPolicyScopeSnapshot({

603611

approvals: {

604612

version: 1,

605613

defaults: {

@@ -626,7 +634,7 @@ describe("exec approvals policy helpers", () => {

626634

});

627635628636

it("does not let host ask=off suppress a stricter requested ask", () => {

629-

const summary = resolveExecPolicyScopeSummary({

637+

const summary = summarizeExecPolicyScopeSnapshot({

630638

approvals: {

631639

version: 1,

632640

defaults: {

@@ -649,7 +657,7 @@ describe("exec approvals policy helpers", () => {

649657

});

650658651659

it("clamps askFallback to the effective security", () => {

652-

const summary = resolveExecPolicyScopeSummary({

660+

const summary = summarizeExecPolicyScopeSnapshot({

653661

approvals: {

654662

version: 1,

655663

defaults: {

@@ -685,7 +693,7 @@ describe("exec approvals policy helpers", () => {

685693

});

686694687695

it("attributes host policy to wildcard agent entries before defaults", () => {

688-

const summary = resolveExecPolicyScopeSummary({

696+

const summary = summarizeExecPolicyScopeSnapshot({

689697

approvals: {

690698

version: 1,

691699

defaults: {

@@ -725,7 +733,7 @@ describe("exec approvals policy helpers", () => {

725733

});

726734727735

it("inherits requested agent policy from global tools.exec config", () => {

728-

const summary = resolveExecPolicyScopeSummary({

736+

const summary = summarizeExecPolicyScopeSnapshot({

729737

approvals: {

730738

version: 1,

731739

agents: {

@@ -759,7 +767,7 @@ describe("exec approvals policy helpers", () => {

759767

});

760768761769

it("reports askFallback from the OpenClaw default when approvals omit it", () => {

762-

const summary = resolveExecPolicyScopeSummary({

770+

const summary = summarizeExecPolicyScopeSnapshot({

763771

approvals: {

764772

version: 1,

765773

agents: {},