Skip to content

perf(models-config): targetProvider short-circuit with disk-vs-config validation - #73261

Closed
zeroaltitude wants to merge 38 commits into
openclaw:mainfrom
zeroaltitude:perf/models-config-target-provider-short-circuit
Closed

zeroaltitude wants to merge 38 commits into
openclaw:mainfrom
zeroaltitude:perf/models-config-target-provider-short-circuit

Conversation

@zeroaltitude

@zeroaltitude zeroaltitude commented Apr 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Splits the targetProvider short-circuit half of #72869 into a standalone PR.

Adds a fast path to ensureOpenClawModelsJson for callers that know which provider/model they are about to use (e.g. the pi-embedded runner). When set, the implicit-provider-discovery pipeline can be skipped IF the on-disk models.json provider entry structurally matches what the current configuration would produce.

Why structural comparison

A naive "is configured" check (does any non-empty credential exist on disk for this provider) silently bypasses several real failure modes:

  • Rotated apiKey: cold start with new key in config, old key still on disk, presence-only check fires, all calls fail with 401 until something else invalidates.
  • Attacker-tampered baseUrl: redirect to exfil endpoint kept across restarts.
  • Attacker-injected headers: arbitrary auth material kept across restarts.

The new readExistingProviderMatchesConfig compares all four security-relevant fields:

Field Comparison
apiKey resolved through resolveSecretInputRef (env-ref expansion via createConfigRuntimeEnv) before string equality vs. disk
baseUrl exact string equality
headers stable structural equality (key-order independent)
auth stable structural equality

Any mismatch falls through to full planning + write. This is safe to use on cold start and after gateway restart.

API

Adds EnsureOpenClawModelsJsonOptions exported type with targetProvider and targetModel, layered on top of the existing options shape (kept all of pluginMetadataSnapshot, workspaceDir, providerDiscoveryProviderIds, providerDiscoveryTimeoutMs).

Tests

6 cases in models-config.target-provider-short-circuit.test.ts:

  • hit-on-match — full structural match short-circuits planning
  • miss-on-rotated-key — config apiKey change forces a full plan
  • miss-on-baseUrl-change — tampered disk baseUrl rejects short-circuit
  • miss-on-tampered-headers — any disk header drift rejects short-circuit
  • miss-on-cold-cache — empty in-memory cache + missing disk file forces a plan
  • hit-after-warm-fingerprint — warm in-memory cache reuse

Dependencies

This is one of two PRs split out of the original combined #72869. The cache-fingerprint work (auth-profiles content hash, models.json drift detection, fingerprint hashing, security hardening) is in #73260.

This branch can land independently of the cache PR; the two changes touch different code paths.

Related

Real behavior proof

  • Behavior or issue addressed: Target-provider models-config short-circuit safety from PR perf(models-config): targetProvider short-circuit with disk-vs-config validation #73261, including provider-level api drift and uncacheable models hash fail-closed behavior.

  • Real environment tested: Local OpenClaw topic branch perf/models-config-target-provider-short-circuit at 2f89c7b99a, including final perf(models-config): content-hash auth-profiles + models.json drift detection #73260 ContentHashOutcome contract, isolated temporary agent directory, production ensureOpenClawModelsJson invoked through a tsx runtime driver with no test harness or mocks.

  • Exact steps or command run after this patch: Ran a real proof driver after the patch covering steady-state targetProvider hit, provider api drift, and oversize models.json.

  • Evidence after fix: Full copied runtime output is in the PR comment: perf(models-config): targetProvider short-circuit with disk-vs-config validation #73261 (comment)

    Excerpt of copied live output:

    ensureOpenClawModelsJson targetProvider=... steady-state: wrote=false
    provider api changed on disk/config comparison: short-circuit refused; full plan wrote=true
    planner restored config-side provider api
    models.json > 1 MiB: scoped cache refused; full plan wrote=true
    planner shrank models.json below 1 MiB
    proof: PASS
    
  • Observed result after fix: The production path keeps the short-circuit only for structurally matching provider config, refuses provider-level api drift, and refuses uncacheable models hashes instead of treating them as stable cache hits.

  • What was not tested: Nothing else for this PR's changed behavior beyond the isolated local runtime proof and supplemental automated validation.

…etection

Replaces mtime-based fingerprinting with content-based hashes for the
implicit-provider-discovery cache key, plus a second-factor models.json
content hash that catches external edits / partial corruption / sibling
process writes between cache hits. Includes the security hardening
findings raised by Aisle on the original combined PR (openclaw#72869).

# Why content hashes

The previous mtime-based key invalidated on every OAuth token refresh
because auth-profiles.json gets rewritten with new access/refresh
timestamps even when the set of available providers doesn't change.
Same for models.json mtime: the file is the OUTPUT of this function,
so each call observed its own write and invalidated the next call.

Now:

- auth-profiles.json: SHA-256 over a stable serialization that strips
  volatile OAuth session fields (access, refresh, expires*, issuedAt,
  refreshed/lastChecked/lastRefresh/lastValidatedAt). Token rotation
  no longer invalidates; structural changes (added/removed profiles,
  rotated static type:token credentials) still do.

- models.json: NOT included in the input fingerprint (would cause
  self-invalidation). Instead its content hash is captured at write
  time and stored alongside the readyCache entry. Every cache check
  recomputes the file hash and compares; any external edit /
  corruption / tamper invalidates the cache and forces re-plan.

# Security hardening (Aisle review on PR openclaw#72869)

- 🟠 High #1 (CWE-59 symlink-following chmod): ensureModelsFileMode
  now lstats first and refuses to chmod symlinks or non-regular files.
  Closes the attack where a symlink at ${agentDir}/models.json points
  at a sensitive owned file and our best-effort chmod follows.

- 🟡 Med #3 (CWE-1321 prototype pollution): stripAuthProfilesVolatile
  now uses Object.create(null) for the result and explicitly filters
  __proto__ / prototype / constructor keys (belt-and-suspenders).

- 🟡 Med #4 (DoS via unbounded fingerprinting): MAX_AUTH_PROFILES_BYTES
  = 8 MiB cap (above which we hash raw bytes), MAX_AUTH_PROFILES_DEPTH
  = 64 with a depth-cap marker so deeply-nested JSON cannot stack-
  overflow the gateway.

- 🟡 Med #5 (CWE-312 secrets in cache): buildModelsJsonFingerprint now
  returns SHA-256 hex of the canonical payload instead of the raw
  stable-stringified payload. The readyCache holds no verbatim secret
  material; heap snapshots / debug telemetry / core dumps cannot leak
  apiKey strings via this path.

# Token-rotation correctness

"token" is intentionally NOT in AUTH_PROFILE_VOLATILE_FIELDS even
though OAuth-style 'token' fields rotate. Profiles with type: 'token'
use the literal token key as a long-lived static credential, and
stripping it would mask real auth-state changes when a user rotates
that credential. Documented inline.

# Tests

Two tests in models-config.fingerprint-cache.test.ts:
- 'does not invalidate the cache when OAuth session fields rotate'
  (rotates access/refresh/expires; cache stays valid)
- 'DOES invalidate the cache when a static type:token credential rotates'
  (rotates the literal token field; cache invalidates)

# Compatibility

MODELS_JSON_STATE.readyCache value shape extended with modelsJsonHash:
{ fingerprint, modelsJsonHash, result }. All three plan return paths
(skip/noop/write) capture the post-write hash. The refreshedFingerprint
re-key path forwards modelsJsonHash through unchanged.

This is one of two PRs split out of openclaw#72869. The targetProvider
short-circuit work landed separately.
… validation

Add a fast path to ensureOpenClawModelsJson for callers that know which
provider/model they're about to use (e.g. the pi-embedded runner).
When set, the implicit-provider-discovery pipeline can be skipped IF
the on-disk models.json provider entry STRUCTURALLY matches what the
current configuration would produce.

# Why structural comparison

A naive 'is configured' check (does any non-empty credential exist on
disk for this provider) silently bypasses several real failure modes:

- Rotated apiKey: cold start with new key in config, old key still on
  disk, presence-only check fires, all calls fail with 401 until
  something else invalidates.
- Attacker-tampered baseUrl: redirect to exfil endpoint kept across
  restarts.
- Attacker-injected headers: arbitrary auth material kept across
  restarts.

The new readExistingProviderMatchesConfig compares all four
security-relevant fields:

  apiKey  - resolved through resolveSecretInputRef (env-ref expansion
            via createConfigRuntimeEnv) before string equality vs. disk
  baseUrl - exact string equality
  headers - stable structural equality (key-order independent)
  auth    - stable structural equality

Any mismatch falls through to full planning + writes.  This is safe to
use on cold start and after gateway restart.

# API

Adds EnsureOpenClawModelsJsonOptions exported type with targetProvider
and targetModel, layered on top of the existing options shape (kept
all of pluginMetadataSnapshot, workspaceDir, providerDiscoveryProviderIds,
providerDiscoveryTimeoutMs).

# Tests

5 cases in models-config.target-provider-short-circuit.test.ts:
- hit-on-match: full structural match short-circuits planning
- miss-on-rotated-key: config apiKey change forces a full plan
- miss-on-baseUrl-change: tampered disk baseUrl rejects short-circuit
- miss-on-tampered-headers: any disk header drift rejects short-circuit
- miss-on-cold-cache: empty in-memory cache + missing disk file forces a plan
- hit-after-warm-fingerprint: warm in-memory cache reuse

# Dependencies

This is one of two PRs split out of the original combined openclaw#72869.
The cache-fingerprint work (auth-profiles content hash, models.json
drift detection, fingerprint hashing, security hardening) landed
separately as perf/models-config-cache-fingerprint.

This branch can land independently.  When both branches land, the
original PR openclaw#72869 can be closed as superseded.
@aisle-research-bot

aisle-research-bot Bot commented Apr 28, 2026 •

Copy link
Copy Markdown

🔒 Aisle Security Analysis

We found 4 potential security issue(s) in this PR:

# Severity Title
1 🟠 High TOCTOU symlink swap enables arbitrary file read and chmod via models.json short-circuit path
2 🟠 High SSRF / credential exfiltration via models.json per-model baseUrl/api not validated in targetProvider short-circuit
3 🟡 Medium Potential stack/CPU DoS via recursive stableStringify on attacker-controlled models.json fields
4 🔵 Low TOCTOU race in models.json short-circuit integrity check leads to stale readyCache
1. 🟠 TOCTOU symlink swap enables arbitrary file read and chmod via models.json short-circuit path
Property Value
Severity High
CWE CWE-367
Location src/agents/models-config.ts:98-316

Description

In readExistingProviderMatchesConfig(), the code attempts to be symlink-safe by calling fs.lstat(targetPath) and rejecting symlinks and large files, but then performs a separate fs.readFile(targetPath, "utf8").

This creates a classic time-of-check/time-of-use window:

  • Check: lstat() verifies models.json is a regular file and <= 1 MiB
  • Use: a later readFile() re-opens the path and will follow symlinks
  • If an attacker can write to agentDir (or otherwise replace models.json), they can swap the file between these calls (or immediately after) with a symlink or different file, bypassing the earlier protections.

Additionally, ensureModelsFileModeForModelsJson() uses fs.chmod(pathname, 0o600) on the path with no symlink protection. If models.json is swapped to a symlink (e.g., to some other file writable by the process), the chmod can affect an unintended target.

Vulnerable code:

const lst = await fs.lstat(targetPath).catch(() => null);
if (!lst || lst.isSymbolicLink() || !lst.isFile()) {
  return false;
}
if (lst.size > MAX_MODELS_JSON_SHORT_CIRCUIT_BYTES) {
  return false;
}
...
raw = await fs.readFile(targetPath, "utf8");

and:

await fs.chmod(pathname, 0o600).catch(() => {
  ​// best-effort
});

Recommendation

Make the read and permission-setting operations symlink-safe and race-resistant by operating on an already-opened file descriptor and validating it with fstat, ideally with O_NOFOLLOW.

One approach (POSIX):

import { open } from "node:fs/promises";
import { constants as FS } from "node:fs";

const fh = await open(targetPath, FS.O_RDONLY | FS.O_NOFOLLOW);
try {
  const st = await fh.stat();
  if (!st.isFile()) return false;
  if (st.size > MAX_MODELS_JSON_SHORT_CIRCUIT_BYTES) return false;
  const raw = await fh.readFile({ encoding: "utf8" });
  ...
} finally {
  await fh.close();
}

For mode enforcement, avoid chmod(path) on a path that can be swapped; instead:

  • re-open with O_NOFOLLOW and use fh.chmod(0o600) (or fs.fchmod), or
  • at minimum, lstat() immediately before chmod and abort if symlink, acknowledging remaining race windows.

This removes the TOCTOU window and prevents symlink-following reads/chmods.

2. 🟠 SSRF / credential exfiltration via models.json per-model baseUrl/api not validated in targetProvider short-circuit
Property Value
Severity High
CWE CWE-918
Location src/agents/models-config.ts:260-279

Description

The ensureOpenClawModelsJson() targetProvider short-circuit uses readExistingProviderMatchesConfig() to decide whether an existing on-disk models.json can be trusted without re-planning/re-writing.

However, readExistingProviderMatchesConfig() only compares a subset of provider fields (apiKey, baseUrl, headers, auth) and explicitly does not compare other security-relevant fields such as the provider's models[] entries.

This is security-relevant because the runtime later uses per-model fields originating from models.json (not just provider-level fields). In particular, the embedded runner falls back to discoveredModel.baseUrl (from models.json) when no provider-level baseUrl override is configured:

  • If an attacker can tamper with models.json on disk (or if it is supplied from an untrusted location), they can inject a malicious per-model baseUrl / api (or other request-shaping fields) while keeping provider-level baseUrl/headers/auth unchanged.
  • The short-circuit will accept the disk state and skip rewriting, leaving the malicious per-model destination in place.
  • Requests can then be sent to attacker-controlled endpoints, potentially including provider credentials/headers, enabling SSRF and/or credential exfiltration.

Vulnerable logic (short-circuit trusts disk even if models[] differs):

​// Other provider fields (models[], ... compat, etc.) are NOT compared.
​// ...
if (!stableEqual(configuredProvider.baseUrl, diskProvider.baseUrl)) return false;
​// apiKey, headers, auth comparisons...
return true;

Runtime sink consuming per-model baseUrl from models.json:

baseUrl: providerConfig.baseUrl ?? discoveredModel.baseUrl,
...
baseUrl: requestConfig.baseUrl ?? discoveredModel.baseUrl,

Recommendation

Do not short-circuit unless all request-destination and request-shaping fields that can affect runtime network calls are proven consistent between config and disk.

At minimum, include structural comparison of models[] entries for fields that can influence transport, such as per-model baseUrl, api, headers, and provider-level request options (if persisted), or simply reject short-circuit when diskProvider.models is present and configuredProvider does not explicitly define an identical set.

Example defensive approach (prefer correctness over speed):

​// Pseudocode: extend comparison to cover model-level transport fields
if (!stableEqual(configuredProvider.models, diskProvider.models)) return false;
if (!stableEqual(configuredProvider.request, diskProvider.request)) return false;
if (!stableEqual(configuredProvider.api, diskProvider.api)) return false;

Alternatively, make the short-circuit conditional on cfg.models.mode and only allow it when the system is expected to fully manage models.json (no merge semantics), and/or always re-plan when models.json contains any per-model transport overrides.

Also consider validating that any resolved baseUrl targets are within an allowlist (or at least are HTTPS and not link-local/private IP ranges) before use to mitigate SSRF across the stack.

3. 🟡 Potential stack/CPU DoS via recursive stableStringify on attacker-controlled models.json fields
Property Value
Severity Medium
CWE CWE-674
Location src/agents/models-config.ts:31-44

Description

ensureOpenClawModelsJson() added a short-circuit path that reads and parses models.json from disk and then compares diskProvider.baseUrl/headers/auth with configured values using stableEqual(), which is implemented as stableStringify(a) === stableStringify(b).

In src/agents/models-config.ts, the local stableStringify() implementation is fully recursive and has no depth limit. While the file read is capped to 1 MiB, an attacker who can modify models.json can still craft extremely deep (but small) nested arrays/objects (e.g., [[[[...]]]]) that:

  • cause maximum call stack size exceeded crashes (uncontrolled recursion)
  • or cause high CPU time during stringification, stalling the process

Vulnerable code:

function stableEqual(a: unknown, b: unknown): boolean {
  return stableStringify(a) === stableStringify(b);
}

and the recursive serializer:

function stableStringify(value: unknown): string {
  if (value === null || typeof value !== "object") return JSON.stringify(value);
  if (Array.isArray(value)) return `[${value.map((entry) => stableStringify(entry)).join(",")}]`;
  const entries = Object.entries(value as Record<string, unknown>).toSorted(([a], [b]) =>
    a.localeCompare(b),
  );
  return `{${entries.map(([key, entry]) => `${JSON.stringify(key)}:${stableStringify(entry)}`).join(",")}}`;
}

Even though diskProvider originates from JSON (so it can’t contain cycles), it can contain adversarial depth.

Recommendation

Avoid unbounded recursive stringification on untrusted data.

Options:

  1. Validate shapes and compare directly for the specific fields being checked:
  • baseUrl: must be string | undefined
  • headers: must be Record<string,string> | undefined (no nested objects)
  • auth: constrain to a known shallow schema
  1. If stable structural comparison is still required, use a non-recursive implementation or enforce a maximum depth and fail closed (return false to force full planning) when exceeded.

Example depth-limited stringify:

function stableStringifySafe(value: unknown, depth = 0, maxDepth = 200): string {
  if (depth > maxDepth) throw new Error("max depth exceeded");
  if (value === null || typeof value !== "object") return JSON.stringify(value) ?? "null";
  if (Array.isArray(value)) {
    return `[${value.map(v => stableStringifySafe(v, depth + 1, maxDepth)).join(",")}]`;
  }
  const rec = value as Record<string, unknown>;
  const keys = Object.keys(rec).sort();
  return `{${keys.map(k => `${JSON.stringify(k)}:${stableStringifySafe(rec[k], depth + 1, maxDepth)}`).join(",")}}`;
}

function stableEqual(a: unknown, b: unknown): boolean {
  try {
    return stableStringifySafe(a) === stableStringifySafe(b);
  } catch {
    return false; // fall through to full plan
  }
}

This keeps the short-circuit check robust while preventing stack/CPU DoS.

4. 🔵 TOCTOU race in models.json short-circuit integrity check leads to stale readyCache
Property Value
Severity Low
CWE CWE-367
Location src/agents/models-config.ts:422-456

Description

ensureOpenClawModelsJson() has a new "targetProvider short-circuit" path that:

  • Reads and parses models.json to check if the on-disk provider entry matches the current config
  • If it matches, it returns {wrote:false} and populates MODELS_JSON_STATE.readyCache
  • This happens outside withModelsJsonWriteLock() (which is only an in-process lock)

Because there is no locking or post-check revalidation of the file’s contents/identity, another process (or thread) with concurrent write access to models.json can modify the file immediately after the match check and before/after the cache is populated.

Impact:

  • The function can return success even though models.json has changed since it was verified
  • The result is cached in-memory (readyCache), delaying corrective rewrites until the cache key changes or the process restarts
  • If downstream code trusts models.json after calling ensureOpenClawModelsJson(), it may consume attacker-modified provider settings (e.g., baseUrl/headers/auth), depending on the broader threat model

Vulnerable code (short-circuit path):

const matches = await readExistingProviderMatchesConfig(...);
if (matches) {
  await ensureModelsFileModeForModelsJson(targetPath);
  const result = { agentDir, wrote: false };
  MODELS_JSON_STATE.readyCache.set(cacheKey, Promise.resolve({ fingerprint, result }));
  return result;
}

Recommendation

Make the short-circuit check robust against concurrent modification before caching/returning:

Option A (simplest): run the short-circuit path under the same withModelsJsonWriteLock(targetPath, ...) block so only one in-process caller can check+cache at a time.

Option B (stronger, cross-process TOCTOU mitigation): use an atomic check strategy and only cache if the file is unchanged:

  • fd = await fs.open(targetPath, 'r')
  • stat1 = await fd.stat() (capture ino, mtimeMs, size)
  • raw = await fd.readFile('utf8') and parse/compare
  • stat2 = await fd.stat() and ensure ino/mtimeMs/size unchanged
  • only then populate readyCache and return

Example sketch:

const fd = await fs.open(targetPath, 'r');
try {
  const s1 = await fd.stat();
  const raw = await fd.readFile('utf8');
  const parsed = JSON.parse(raw);
  const ok = /* compare parsed vs config */;
  const s2 = await fd.stat();
  if (ok && s1.ino === s2.ino && s1.mtimeMs === s2.mtimeMs && s1.size === s2.size) {
    MODELS_JSON_STATE.readyCache.set(cacheKey, Promise.resolve({ fingerprint, result }));
    return result;
  }
} finally {
  await fd.close();
}

Also consider avoiding caching the short-circuit result unless the check is performed under a lock or validated with a file-identity/mtime recheck.


Analyzed PR: #73261 at commit 10361a0

Last updated on: 2026-04-28T05:45:21Z

Re-review progress:

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 682c12624c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/agents/models-config.ts Resolved
@greptile-apps

greptile-apps Bot commented Apr 28, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

Adds a targetProvider fast path to ensureOpenClawModelsJson that short-circuits the implicit-provider-discovery pipeline when the on-disk models.json entry structurally matches current config. The implementation correctly addresses all previously-flagged security concerns (symmetric baseUrl comparison, env-ref apiKey resolution, stable headers/auth equality, prototype-chain injection guard, symlink protection, size cap) and populates readyCache after a successful short-circuit so subsequent calls take the warm in-memory path.

Confidence Score: 5/5

PR is safe to merge — no P0 or P1 findings; all previously flagged security issues confirmed resolved.

All four security-critical field comparisons (apiKey, baseUrl, headers, auth) are symmetric and handle the undefined-vs-string drift case. The readyCache ordering fix is verified by the new fs.readFile spy test. Prototype injection, symlink, and oversized-file vectors are guarded. No new attack surfaces introduced.

No files require special attention.

Reviews (2): Last reviewed commit: "fix(models-config): symmetric baseUrl, e..." | Re-trigger Greptile

Comment thread src/agents/models-config.ts Resolved
Comment thread src/agents/models-config.ts Resolved
Addresses Codex P1, Greptile P2, and Aisle Med #1/#2/#3 on openclaw#73260:

# Streaming bounded hash (Codex P1 / Aisle Med #2)

The previous oversize-branch in readAuthProfilesStableHash still did
fs.readFile(path) which loaded the entire file into memory \u2014 the
MAX_AUTH_PROFILES_BYTES cap was effectively unenforced.  Same problem
for readModelsJsonContentHash (no cap at all).

New helper safeHashRegularFile():
  - lstat first; reject symlinks and non-regular files
  - bail at lstat-time if size exceeds maxBytes (returns sentinel hash
    so size-change still invalidates the cache)
  - open with O_NOFOLLOW where supported (closes lstat\u2192open TOCTOU)
  - fstat after open to verify it's still a regular file
  - createReadStream(fd) with bounded highWaterMark; destroy if accumulated
    bytes exceed maxBytes (handles the case where attacker grows the
    file between lstat and stream completion)

Both readers now route through safeHashRegularFile.  Models.json gets
a 1 MiB cap (MAX_MODELS_JSON_BYTES); auth-profiles keeps its 8 MiB cap.

# O_NOFOLLOW chmod (Aisle Med #1, CWE-367)

The previous lstat-then-chmod sequence was racy: an attacker who
could rename/replace ${agentDir}/models.json between the two syscalls
could have chmod() follow a swapped-in symlink to an arbitrary file.

Replaced with fs.open(path, O_RDONLY | O_NOFOLLOW) \u2192 fchmod via the
file handle.  The open itself refuses symlinks atomically; the
fchmod operates on the validated fd, eliminating the race.  When
O_NOFOLLOW is unavailable (rare but possible), falls back to plain
O_RDONLY \u2014 the prior lstat protection was already best-effort.

# Symlink-safe reads (Aisle Med #3, CWE-59)

Previous fs.readFile in the hash readers followed symlinks.  With
the safeHashRegularFile refactor above, both auth-profiles.json and
models.json now reject symlinks before reading.

# JSDoc fix (Greptile P2)

readModelsJsonContentHash's prior comment said "forces a re-plan"
when the file is absent, but the call site does null === null
comparison which is a cache hit, not a re-plan (the steady-state
skip case for plan.action === 'skip').  Updated the comment to
explain the actual semantics: stable absence is a stable result;
drift is a re-plan.

# Tests

14/14 existing tests pass.  No new test cases needed \u2014 the existing
file-mode and fingerprint-cache tests cover both the symlink-rejection
paths (via lstat shortcut) and the modelsJsonHash second-factor.
Lint: 0 errors.
…tegration

Addresses Codex P2, Greptile P1+P2x2, and Aisle High #1 + Med #2/#3/#4
on PR openclaw#73261:

# Greptile P1 / Aisle High #1: asymmetric baseUrl (CWE-918, SSRF)

The previous guard:
  if (typeof configuredProvider.baseUrl === 'string' &&
      configuredProvider.baseUrl !== diskProvider.baseUrl)
short-circuited the check entirely when config omitted baseUrl
(common for providers with compiled-in defaults).  An attacker who
could tamper with on-disk models.json could set baseUrl to an exfil
endpoint and the short-circuit would accept it silently \u2014 exactly
the SSRF/credential-exfil vector this PR was meant to close.

Replaced with symmetric stableEqual() so config-undefined vs
disk-string is a mismatch and falls through to full planning, which
re-applies provider/plugin defaults and rewrites the file.

# Codex P2: env-ref API key comparison

resolveConfiguredApiKeyForCompare resolved env refs to the env-var
VALUE (env[ref.id]).  But planOpenClawModelsJson persists env-source
api keys to models.json as the env-var NAME (e.g. 'OPENAI_API_KEY'),
not the value \u2014 that's what resolveApiKeyFromCredential returns for
env source.  Comparing value-vs-name always mismatched, so the
short-circuit never fired for the most common config form
('apiKey: "${env.OPENAI_API_KEY}"').

Now the helper returns the env-var NAME for env-source refs, while
still verifying the env is currently populated (so we don't
short-circuit on a misconfigured environment).  Plaintext values
still compare directly.

# Greptile P2 (perf): readyCache integration

The short-circuit returned before the readyCache check, so warm
callers paid the disk read + JSON.parse cost on every call.
Reordered:
  1. compute fingerprint (cheap)
  2. check readyCache \u2014 warm hit returns immediately, no disk I/O
  3. if cold, attempt short-circuit on disk
  4. if short-circuit succeeds, populate readyCache so subsequent
     calls take the warm path

Net effect: warm callers now skip disk entirely; cold callers with
intact disk state still get the short-circuit benefit; full plan
fires only on real drift.

# Aisle Med #2 (CWE-59): symlink-following short-circuit reads

readExistingProviderMatchesConfig used fs.readFile on a possibly-
symlinked target.  Now lstat-checks first and refuses symlinks /
non-regular files.

# Aisle Med #3 (CWE-1321): prototype-chain key access

explicitProviders[targetProvider] could fall through to a prototype
key like '__proto__' / 'constructor' / 'prototype'.  Now uses
Object.hasOwn at both lookup sites (caller AND
readExistingProviderMatchesConfig) to refuse inherited keys.  Also
explicit string check rejects the three known dangerous keys.

# Aisle Med #4 (CWE-400): unbounded models.json read

Added MAX_MODELS_JSON_SHORT_CIRCUIT_BYTES = 1 MiB cap on the disk
read in the short-circuit path.  Files above the cap fall through
to full planning rather than being parsed.

# Tests

Updated hit-after-warm-fingerprint test (Greptile P2) to use
fs.readFile spy and assert no disk read occurs on the warm path.
Added short-circuit-populates-cache test that drops the in-memory
cache between runs, fires the short-circuit, then verifies the
third call takes the warm path with no disk read.

14/14 tests pass.  Lint: 0 errors.
@zeroaltitude

Copy link
Copy Markdown
Contributor Author

All five findings landed in 10361a0569:

  • 🟠 fix: add @lid format support and allowFrom wildcard handling #1 High (CWE-918 SSRF via tampered baseUrl): symmetric stableEqual comparison; config-undefined vs disk-string now mismatches and falls through to full plan. See Greptile P1 thread for details.
  • 🟡 Login fails with 'WebSocket Error (socket hang up)' ECONNRESET #2 Med (CWE-59 symlink-following short-circuit reads): readExistingProviderMatchesConfig now lstats first and refuses symlinks / non-regular files before reading.
  • 🟡 WA business, groups & office hours  #3 Med (CWE-1321 prototype-chain key access): Object.hasOwn checks at both lookup sites (caller-side explicitProviders[targetProvider] and disk-side parsed.providers[targetProvider]); explicit string-equality rejection of __proto__ / constructor / prototype.
  • 🟡 Images not passed to Claude CLI - only path reference in text #4 Med (CWE-400 unbounded read): MAX_MODELS_JSON_SHORT_CIRCUIT_BYTES = 1 MiB cap enforced at lstat time before reading.
  • 🟡 CLI: add Opencode integration #5 Med (partial provider comparison): documented inline that the comparison covers apiKey/baseUrl/headers/auth (the security-critical subset). Tampering with non-security fields like models[] / maxTokens / contextWindow would change inference behavior but isn't an exfil vector \u2014 accepting that trade-off keeps the short-circuit reachable. Comment notes that adding fields here is the path forward if any of those becomes security-critical.

@zeroaltitude

Copy link
Copy Markdown
Contributor Author

@greptile-apps: please do re-review/re-score

@clawsweeper

clawsweeper Bot commented Apr 30, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed June 4, 2026, 6:22 PM ET / 22:22 UTC.

Summary
The branch adds content-hash models/auth cache drift checks, a provider/model-scoped ensureOpenClawModelsJson short-circuit, embedded-runner wiring, tests, and a runtime proof script.

PR surface: Source +1219, Tests +1738, Other +257. Total +3214 across 13 files.

Reproducibility: yes. for the review findings from source inspection: the PR head removes imports it still needs, reads legacy auth-profile JSON, and omits current-main plugin catalog reconciliation. I did not run tests because this is a read-only review.

Review metrics: none identified.

Merge readiness
Overall: 🧂 unranked krab
Proof: 🧂 unranked krab
Patch quality: 🧂 unranked krab
Result: blocked until stronger real behavior proof is added.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • Restore imports and current-main SQLite auth-profile plus plugin-catalog behavior in src/agents/models-config.ts.
  • Update focused tests to exercise SQLite auth-profile changes and generated plugin catalog writes/removals.
  • Refresh real runtime proof on the latest head after the repairs.

Proof guidance:

  • [P1] Needs stronger real behavior proof before merge: The PR has copied runtime output and a proof script, but the proof predates the latest head and does not cover the current SQLite auth-profile or plugin catalog contracts; refresh proof on the current commit with private data redacted. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Risk before merge

  • [P1] The current PR head appears build-blocked because required plugin-catalog helper imports were removed while the helper functions still reference those names.
  • [P1] Auth-profile cache invalidation watches legacy auth-profiles.json instead of the current SQLite auth-profile database, so provider credential/profile changes can leave stale provider availability cached.
  • [P1] Generated plugin catalog providers are no longer merged before planning or written/removed after planning, which can drop plugin-owned model providers or preserve stale shards.
  • [P1] The supplied real behavior proof is stale relative to the latest head and does not exercise the current SQLite auth-profile and plugin catalog contracts.
  • [P1] The fail-closed cache behavior may still be desirable, but it has auth/provider and operator compatibility impact that should be accepted only after the current-main regressions are repaired and proven.

Maintainer options:

  1. Fix current-main contracts before merge (recommended)
    Restore the plugin-catalog imports, SQLite auth-profile fingerprinting, plugin catalog merge/write/removal behavior, and current-head proof before maintainers reconsider merge.
  2. Pause for sibling cache alignment
    If the split with the related cache PR is still moving, pause this branch until both branches share one current-main models-config implementation and proof path.
  3. Accept stricter cache behavior explicitly
    Maintainers can intentionally accept the fail-closed uncacheable cache behavior, but only after the auth/profile and plugin-catalog upgrade proof shows existing setups do not break unexpectedly.

Next step before merge

  • [P1] Human/contributor follow-up is needed because the branch needs code repairs plus current-head real behavior proof before merge; ClawSweeper should not mark an automated repair while proof remains insufficient.

Security
Needs attention: The diff changes sensitive auth/provider cache and models.json trust paths and currently regresses canonical auth-profile and plugin-catalog security boundaries.

Review findings

  • [P1] Restore the plugin catalog imports — src/agents/models-config.ts:30-38
  • [P1] Use the SQLite auth profile store for cache fingerprints — src/agents/models-config.ts:1300-1301
  • [P1] Restore plugin catalog merge and write handling — src/agents/models-config.ts:1322-1323
Review details

Best possible solution:

Layer the targetProvider/targetModel fast path on top of current-main models-config contracts, preserving SQLite auth-profile fingerprinting and generated plugin catalog reconciliation, then refresh current-head runtime proof.

Do we have a high-confidence way to reproduce the issue?

Yes for the review findings from source inspection: the PR head removes imports it still needs, reads legacy auth-profile JSON, and omits current-main plugin catalog reconciliation. I did not run tests because this is a read-only review.

Is this the best way to solve the issue?

No. The targetProvider fast path is a plausible optimization, but the current implementation is not the best merge shape until it preserves the current-main SQLite auth-profile and generated plugin-catalog contracts.

Full review comments:

  • [P1] Restore the plugin catalog imports — src/agents/models-config.ts:30-38
    This hunk drops the ./plugin-model-catalog.js import block, but the file still calls isGeneratedPluginModelCatalog, listPluginModelCatalogRelativePaths, decodePluginModelCatalogRelativePathPluginId, resolvePluginModelCatalogOwnerPluginId, and isPluginModelCatalogRelativePath. The PR head therefore fails TypeScript before the new runtime path can be exercised.
    Confidence: 0.98
  • [P1] Use the SQLite auth profile store for cache fingerprints — src/agents/models-config.ts:1300-1301
    Current main stores auth profiles in openclaw-agent.sqlite, but this PR fingerprints agentDir/auth-profiles.json. Credential/profile changes written through saveAuthProfileStore will not affect authProfilesOutcome, so the ready cache and target-provider fast path can keep stale provider availability after auth changes.
    Confidence: 0.96
  • [P1] Restore plugin catalog merge and write handling — src/agents/models-config.ts:1322-1323
    Current main merges generated plugin catalog providers into the parsed root before planning and applies plan.pluginCatalogWrites on every action path. This PR passes only existingModelsFile.parsed and returns from skip/noop/write without writing or removing catalog shards, so plugin-owned model providers can disappear from the root plan or leave stale generated catalogs behind.
    Confidence: 0.95

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

Codex review notes: model gpt-5.5, reasoning high; reviewed against f4c448f65b5f.

Label changes

Label justifications:

  • P1: The PR touches hot auth/provider startup paths and current head has build-blocking and auth/provider cache regressions that would affect real agent workflows if merged.
  • merge-risk: 🚨 compatibility: The cache/fail-closed and plugin catalog changes affect upgrade/runtime behavior for existing agent directories and generated model catalogs.
  • merge-risk: 🚨 auth-provider: The PR fingerprints legacy auth-profile JSON instead of the canonical SQLite auth-profile store, risking stale provider credentials and availability.
  • merge-risk: 🚨 security-boundary: The PR changes models.json trust and provider transport cache behavior, and the stale-auth/catalog regressions can preserve unsafe or outdated provider state.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🧂 unranked krab.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The PR has copied runtime output and a proof script, but the proof predates the latest head and does not cover the current SQLite auth-profile or plugin catalog contracts; refresh proof on the current commit with private data redacted. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed

PR surface:

Source +1219, Tests +1738, Other +257. Total +3214 across 13 files.

View PR surface stats
Area Files Added Removed Net
Source 5 1327 108 +1219
Tests 5 1860 122 +1738
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 3 277 20 +257
Total 13 3464 250 +3214

Security concerns:

  • [high] Stale SQLite auth profile changes can keep cached provider state — src/agents/models-config.ts:1300
    The PR fingerprints auth-profiles.json, while current main persists auth profiles in SQLite; provider credential or profile changes can therefore fail to invalidate models-config cache entries.
    Confidence: 0.94
  • [medium] Generated plugin catalog reconciliation is skipped — src/agents/models-config.ts:1323
    The plan/write path no longer feeds generated plugin catalog providers into planning or applies catalog writes/removals, which can preserve stale plugin-owned provider transport rows or drop valid plugin-owned providers.
    Confidence: 0.91

What I checked:

Likely related people:

  • Peter Steinberger: Recent current-main commit b4a63886af4bbda38926f5273ee0df75c6a40862 added the current models-config.ts and SQLite auth-profile adapter content, and shortlog shows the largest history share across the central models/auth catalog files. (role: recent area contributor; confidence: high; commits: b4a63886af4b, c29b09874416, 749eb4efeadc; files: src/agents/models-config.ts, src/agents/auth-profiles/sqlite.ts)
  • Vincent Koc: History shows prior models readiness/cache and provider-related work in this area, including fix(models): cache models.json readiness for embedded runs. (role: adjacent owner; confidence: medium; commits: 2b210703a3b9, f16ecd1dac5d, 2e08f0f4221f; files: src/agents/models-config.ts)
  • Josh Avant: Recent history around source-managed SecretRef markers and secret-safe models persistence is directly adjacent to the auth/provider cache surface changed here. (role: adjacent security/auth contributor; confidence: medium; commits: 0bcb95e8fa5e, 36d2ae2a2235, 8e20dd22d890; files: src/agents/models-config.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@openclaw-barnacle openclaw-barnacle Bot added channel: line Channel integration: line commands Command implementations labels May 1, 2026
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. and removed commands Command implementations labels May 5, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9e4c01b6b8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/agents/models-config.ts Outdated
Comment on lines +459 to +462
// Populate readyCache so the next call with identical inputs
// takes the warm-cache path above without re-reading disk.
MODELS_JSON_STATE.readyCache.set(cacheKey, Promise.resolve({ fingerprint, result }));
return result;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Scope ready-cache entries to short-circuit mode

When a targetProvider short-circuit succeeds, this stores a global readyCache entry keyed only by fingerprint, even though only one provider was validated. A later ensureOpenClawModelsJson(...) call without targetProvider can hit that cache and skip full planning, leaving other providers stale on disk. This is reproducible whenever one caller does targeted prewarm and another later expects full reconciliation in the same process.

Useful? React with 👍 / 👎.

Comment thread src/agents/models-config.ts Outdated
Comment on lines +367 to +368
} else if (typeof diskProvider.apiKey === "string" && diskProvider.apiKey.length > 0) {
return false;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Treat non-string disk apiKey as mismatch

In the resolvedConfiguredApiKey === undefined branch, only non-empty string diskProvider.apiKey values are rejected. If models.json has a non-string apiKey (for example tampered object/number) while config omits apiKey, this function still returns a structural match and short-circuits planning. That preserves malformed or attacker-modified provider state instead of forcing a rewrite.

Useful? React with 👍 / 👎.

@openclaw-barnacle openclaw-barnacle Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 25, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels May 25, 2026
@clawsweeper

clawsweeper Bot commented May 25, 2026 •

Copy link
Copy Markdown
Contributor

ClawSweeper PR egg: 🔥 warming; proof passed, review follow-up or readiness checks remain. Hatch with @clawsweeper hatch when eligible.

Rules and details

Hatchability:

  • Merged PRs are hatchable.
  • Open PRs are hatchable when they are status: 👀 ready for maintainer look, status: 🚀 automerge armed, or labeled clawsweeper:automerge.
  • Closed unmerged PRs are hatchable only when one of those hatchable labels is still present in the durable record.

About:

  • Eggs appear after real-behavior proof passes. They are collectible flavor only.
  • Review momentum changes the shell state: follow-up work warms it, re-review makes it wobble, and a clean final review lets it hatch.
  • The hatch is seeded from this repository and PR number, so the same PR keeps the same creature; the reviewed head SHA can only change safe visual details.
  • Rarity is just collectible sparkle: 🥚 common, 🌱 uncommon, 💎 rare, ✨ glimmer, and 🌈 legendary.

@openclaw-barnacle openclaw-barnacle Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 25, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. labels May 25, 2026
@zeroaltitude

Copy link
Copy Markdown
Contributor Author

Reviewed the latest ClawSweeper comment and prepared the requested CHANGELOG.md cleanup locally. I am not claiming the PR is fixed yet because my current session cannot produce a signed GPG commit: ~/.openclaw-tank/bin/unlock-gpg.sh presets the agent but the signing self-test fails, and OpenClaw policy requires verified signed commits. I will push the cleanup once signing is fixed.

@openclaw-barnacle openclaw-barnacle Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 27, 2026
@zeroaltitude

Copy link
Copy Markdown
Contributor Author

ClawSweeper changelog finding addressed.

  • [P3] Removed the release-owned / unrelated CHANGELOG.md entries from ## Unreleased.
  • Commit: 63afa11b06 (signed; local signature status G).
  • Validation: git diff --check passed for the changelog cleanup before commit.

@clawsweeper please re-review.

@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 27, 2026
…rget-provider-short-circuit

# Conflicts:
#	src/agents/embedded-agent-runner/compact.hooks.harness.ts
#	src/agents/embedded-agent-runner/compact.hooks.test.ts
#	src/agents/embedded-agent-runner/run.ts
@openclaw-barnacle openclaw-barnacle Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 28, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels May 28, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 28, 2026
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 28, 2026
…rget-provider-short-circuit

Integration rotation: merge origin/main into topic branch.

Conflict resolution in src/agents/models-config.ts:
- Keep branch's content-based fingerprinting (ContentHashOutcome, readAuthProfilesStableOutcome,
  modelsContentOutcomesMatch, sync buildModelsJsonFingerprint with authProfilesHash).
- Keep branch's target-provider short-circuit fast path — the entire block is the point of this PR.
- Drop main's mtime-based fingerprinting, inlined withModelsJsonWriteLock, and readPluginCatalogMtimes.
- Keep HEAD's planAndWrite(fingerprint) call.
@zeroaltitude

Copy link
Copy Markdown
Contributor Author

Superseded by #90741 — a single reconciled implementation that unifies the content-hash fingerprint cache (#73260) and the targetProvider short-circuit (#73261). The two optimizations are complementary, not competing: a warm-process whole-input memoizer, a provider-scoped cold-start/cross-provider short-circuit, and the full plan, layered in that order in ensureOpenClawModelsJson.

#90741 also fixes a correctness gap shared by both PRs: the fingerprint hashed the legacy auth-profiles.json file, which reads absent for any agent already migrated to the canonical SQLite auth store — so real credential changes never invalidated the implicit-provider-discovery cache. #90741 fingerprints the canonical openclaw-agent.sqlite store instead (volatile OAuth session fields still stripped, so token rotation stays cache-stable).

Verified on the unified branch: 190/190 models-config tests and tsgo:core:all clean. Closing in favor of #90741 — reopen if a scenario there isn't covered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P1 High-priority user-facing bug, regression, or broken workflow. proof: supplied External PR includes structured after-fix real behavior proof. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. scripts Repository scripts size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant