Skip to content

fix(doctor): skip stale npm generations during host-link repair - #176121

Merged
steipete merged 1 commit into
mainfrom
upd/upd-l1684
Oct 18, 2026
Merged

steipete merged 1 commit into
mainfrom
upd/upd-l1684

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes #176063. Doctor and post-update host-link repair walk stale managed npm generations, making update maintenance grow with accumulated installation history.

User Impact

Host-link checks and repairs inspect the install-record-selected roots. Stale generations no longer add package walks to these passes. Recovery and retirement retain broad discovery; this does not make the entire Doctor command independent of retained history.

Why This Change Was Made

A shared selector derives managed npm project roots directly from install paths, including legacy and scoped packages, while preserving the managed-path ownership checks. Doctor consumes readable persisted records without performing recovery discovery first; post-core convergence uses its current in-memory records. Recognized ledger I/O failures retain a warned full-root fallback; invalid records and lost read authority still refuse repair.

The existing Doctor retirement and Gateway cleanup owners remain responsible for stale generations. The obsolete async full-root enumerator is removed. No new deletion path, configuration, schema, or dependencies.

Thanks @patelmm79 for the report and detailed reproduction. Implemented independently; no downstream contributor code was copied or executed.

Evidence

  • Regression: two active plugins plus 40 stale generations. Baseline audited all 42 packages; the fix audits and repairs only the two selected packages, never enumerates the projects directory on the readable-ledger path, and leaves stale host links untouched. The measured Doctor host-link audit + repair pass fell from 172.9 ms to 109.6 ms on this synthetic fixture (single local samples; not an end-to-end fleet timing claim).

  • Real convergence fixture repairs the selected generation before payload smoke checks and never traverses the stale roots. Empty records, deduplication, legacy/scoped packages, warned unreadable-record fallback, and invalid-record refusal are covered.

  • All 13 importing test files were exercised (179 tests). Six old fixture cases across the update-caller and persistence suites assumed an unrecorded managed package was active; the fixtures now record that package and retain their original revocation/recovery assertions. Final targeted replay: 19 passed, including all ten persistence tests. Install-record and stale-generation-retirement owner suites also passed. New host-link regression: 485 ms; convergence regression: 164 ms. Final two-file replay: 39.96 s wall time, including compilation; persistence test time was about 8.5 s.

  • Live, isolated state with the same 42-generation fixture: pnpm openclaw doctor --non-interactive and pnpm openclaw doctor --fix --non-interactive both exited 0. After repair: 2 active host links, 0 stale host links, 40 retirement markers, all 40 stale package directories preserved. Existing non-default-state protection skipped service management; no Gateway was started or restarted.

    Both commands used HOME="$PWD/.artifacts/l1684/home" OPENCLAW_STATE_DIR="$PWD/.artifacts/l1684/live-state" OPENCLAW_DISABLE_BUNDLED_PLUGINS=1. Fresh-checkout UI assets were built by Doctor. Missing optional provider/health configuration remained advisory.

  • Core and affected-test typechecks, targeted type-aware oxlint, oxfmt, git diff --check, and Madge passed (0 cycles). Full check:changed / SQLite inventory was skipped under the campaign's local gate budget; PR CI supplies broad proof. No remote lease was used.

  • Final isolated Codex review: no actionable P0–P2 findings.

Production: +92 / -30 (net +62); tests: +240 / -28 (net +212); docs: +2. The remaining production growth is the shared record selector and explicit unreadable-ledger handling; the unused async full-tree walk and its duplicate tests were removed.

@clawsweeper

clawsweeper Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@steipete
steipete marked this pull request as ready for review October 18, 2026 06:58
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime cli CLI command changes commands Command implementations size: M labels Oct 18, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-18T07:01:37.637075Z 46ef87f Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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: 46ef87fbf1

ℹ️ 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 on lines +59 to +60
!["EACCES", "EPERM", "EIO", "SQLITE_CANTOPEN", "SQLITE_IOERR"].some((code) =>
hasErrnoCode(error, code),

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 Recognize Node's SQLite I/O error shape

When the installed-index read fails through the repository's Node SQLite path, the error typically has code: "ERR_SQLITE_ERROR" with primary errcode 10 for I/O failure or 14 for open failure, rather than either listed SQLITE_* string. Consequently, an unreadable database bypasses the new fallback and aborts Doctor instead of warning and inspecting all managed roots as documented. Classify the SQLite primary result code here, or reuse the repository's SQLite error classifier.

AGENTS.md reference: AGENTS.md:L83-L84

Useful? React with 👍 / 👎.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. 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 clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 18, 2026
@clawsweeper

clawsweeper Bot commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

Restricts Doctor and post-update host-link maintenance to managed npm projects selected by plugin install records.

Example: Two recorded plugins have 40 additional stale npm generations.

  • Before: Host-link maintenance inspects all 42 packages.
  • After: Host-link maintenance inspects the two selected packages and leaves stale generations to the existing retirement owner.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful, focused repair with production-owner regressions and reported CLI verification, but two source-verifiable P2 defects remain.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate; its body reports isolated Doctor audit and repair commands with two selected links repaired and 40 stale package directories preserved, while source tests exercise the real selection and link owners.
Patch quality 🦐 gold shrimp (3/6) 2 actionable review findings remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Doctor and post-update maintenance become slower as obsolete npm plugin generations accumulate.
Reason: The maintainer-authored direction targets unnecessary maintenance work using existing install authority, without adding configuration or changing retirement policy.

Merge readiness

⛔ Needs changes before merge - 2 items remain

This PR addresses a current maintenance-performance defect, but Windows path selection and native SQLite error handling need focused corrections before merge.

Priority: P2
Reviewed head: 46ef87fbf1a419aa52dc995065134edf07ee9caa

Before merge

  • Preserve Windows identity for recorded isolated npm projects (P2) - A valid persisted install path can differ only in casing from the configured npm root, as explicitly covered by installed-plugin-index-generation-precedence.test.ts. For an isolated project whose recorded state-directory prefix is C:\USERS\ALICE.OPENCLAW while npmRoot uses C:\Users\Alice.openclaw, this call reaches isPluginNpmProjectDir with different spellings. Its strict parent comparison at install-paths.ts:168 rejects the same physical project. Previous discovery constructed paths from npmRoot and accepted it; the new selector silently omits it from Doctor and convergence, leaving its stale host link unrepaired. Apply Windows path-identity semantics while retaining the realpath ownership checks, and add selected-root coverage for that existing representation.
  • Recognize native SQLite result codes before refusing fallback (P2) - When the persisted-index read fails with Node's native SQLite error shape, code is ERR_SQLITE_ERROR and errcode has primary result 10 for I/O failure or 14 for an open failure, including extended I/O results such as 778. The state-worker error transport preserves these fields, but this string-only allowlist matches none of them. Doctor therefore throws before managed-root maintenance instead of taking the warned fallback promised by this change. Use the existing sqlitePrimaryResultCode primitive for the intended storage failures, retain refusal for invalid records and authority loss, and cover the actual native error shape rather than only mocked EACCES.

Findings

  • [P2] Preserve Windows identity for recorded isolated npm projects — src/plugins/installed-plugin-npm-roots.ts:33-36
  • [P2] Recognize native SQLite result codes before refusing fallback — src/commands/doctor-plugin-host-links.ts:59-60

Tests

  • Missing end-to-end proof: The supplied isolated-state Doctor results do not show a v2026.10.4-to-candidate upgrade preserving existing plugin settings and selected generation paths.
Agent review details

How this fits together

Doctor reads persisted plugin records, and post-core convergence supplies current in-memory records; a shared selector derives managed npm roots for the existing host-link audit and repair owner.

flowchart TD
  A[Doctor] --> C[Plugin install records]
  B[Post core convergence] --> C
  C --> D[Selected managed npm roots]
  D --> E[Existing host link owner]
  E --> F[Audit or repair selected packages]
  A --> G[Recovery and retirement discovery]
Loading

Technical review

Best possible solution:

Keep the shared record-selected maintenance path, preserve Windows path identity, and classify native SQLite storage failures without weakening invalid-record or authority refusals.

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

Current-main source enumerates every admitted generation before host-link inspection; the PR supplies matching filesystem regression results, while this review executed no target code.

Is this the best way to solve the issue?

Direct selection from authoritative records removes discovery work at its source and preserves separate recovery ownership; the implementation needs the two compatibility corrections listed below.

Full review comments:

  • [P2] Preserve Windows identity for recorded isolated npm projects — src/plugins/installed-plugin-npm-roots.ts:33-36
    A valid persisted install path can differ only in casing from the configured npm root, as explicitly covered by installed-plugin-index-generation-precedence.test.ts. For an isolated project whose recorded state-directory prefix is C:\USERS\ALICE.OPENCLAW while npmRoot uses C:\Users\Alice.openclaw, this call reaches isPluginNpmProjectDir with different spellings. Its strict parent comparison at install-paths.ts:168 rejects the same physical project. Previous discovery constructed paths from npmRoot and accepted it; the new selector silently omits it from Doctor and convergence, leaving its stale host link unrepaired. Apply Windows path-identity semantics while retaining the realpath ownership checks, and add selected-root coverage for that existing representation.
    Confidence: 0.98
  • [P2] Recognize native SQLite result codes before refusing fallback — src/commands/doctor-plugin-host-links.ts:59-60
    When the persisted-index read fails with Node's native SQLite error shape, code is ERR_SQLITE_ERROR and errcode has primary result 10 for I/O failure or 14 for an open failure, including extended I/O results such as 778. The state-worker error transport preserves these fields, but this string-only allowlist matches none of them. Doctor therefore throws before managed-root maintenance instead of taking the warned fallback promised by this change. Use the existing sqlitePrimaryResultCode primitive for the intended storage failures, retain refusal for invalid records and authority loss, and cover the actual native error shape rather than only mocked EACCES.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against eec35949bda1.

Provenance checked

  • Managed npm project enumeration changes intended behavior with a stated reason (ea68218: Per-package npm isolation required maintenance across isolated projects and the legacy shared root.)
  • Doctor host-link repair changes intended behavior with a stated reason (6ee406b: Repair obsolete nested OpenClaw hosts after upgrades while respecting managed installation boundaries.)
  • Publication admission and broad recovery keeps the original intent (917e1b8: Exclude staged, backed-up, quarantined, and substituted projects while retaining canonical generation and legacy layouts.)
  • Shared convergence ownership keeps the original intent (397f298: Move convergence from the update CLI into a reusable Doctor-owned service without duplicating policy.)
  • Lifecycle refusal and persistence fixtures keeps the original intent (3ca2b4e: Retain initiating authority through host-link effects and stop subsequent writes after refusal.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test src/plugins/npm-project-roots.test.ts src/plugins/installed-plugin-index-generation-precedence.test.ts src/plugins/installed-plugin-index-records.test.ts src/commands/doctor-plugin-host-links.test.ts
  • pnpm test src/commands/doctor/shared/post-core-plugin-convergence.test.ts src/commands/doctor/shared/post-core-plugin-convergence.persistence.test.ts src/cli/update-cli/update-command-plugin-caller.test.ts
  • Run the selected-root casing regression on Windows.
  • Verify a v2026.10.4-to-candidate upgrade with existing selected and stale plugin generations and settings preserved.
  • pnpm check:changed

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit ea68218 adds src/plugins/npm-project-roots.ts:15 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ea682182d05a; files: src/plugins/npm-project-roots.ts)
  • Vincent Koc: Raw commit 917e1b8 adds src/plugins/npm-project-roots.ts:29 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 917e1b811de1; files: src/plugins/npm-project-roots.ts)
  • Jason (Json): Raw commit 25a6148 adds src/commands/doctor/shared/post-core-plugin-convergence.ts:114 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 25a6148d1a9a; files: src/commands/doctor/shared/post-core-plugin-convergence.ts)

PR surface

Source +62, Tests +212, Docs +2. Total +276 across 10 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 4 92 30 +62
Tests 5 240 28 +212
Docs 1 2 0 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 10 334 58 +276

Review metrics

Metric Value Why it matters
Production versus test LOC Production +92/-30; tests +240/-28 Growth supports a shared record selector, explicit storage fallback handling, and distinct Doctor/convergence regressions while removing the obsolete async enumerator.

Root-cause cluster

Relationship: same_root_cause
Canonical: #176063
Summary: This PR and the alternative open implementation address the same stale-generation maintenance enumeration defect.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Labels

Label changes:

  • add P2: The central problem is bounded maintenance latency on installations with accumulated plugin generations.
  • add merge-risk: 🚨 compatibility: Valid differently cased Windows records can silently lose host-link maintenance under the new selector.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: The central problem is bounded maintenance latency on installations with accumulated plugin generations.
  • merge-risk: 🚨 compatibility: Valid differently cased Windows records can silently lose host-link maintenance under the new selector.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 18, 2026, 3:15 AM ET / 07:15 UTC.

@steipete
steipete merged commit 44df069 into main Oct 18, 2026
225 of 230 checks passed
@steipete
steipete deleted the upd/upd-l1684 branch October 18, 2026 07:20
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 19, 2026
…claw#176121)

Doctor's plugin host-link audit/repair and the post-update core plugin convergence walked every admitted plugin npm root, including stale __openclaw-generation__ trees, so their cost grew with leftover generations rather than active plugins (8.5+ minute Doctor runs on plugin-heavy installs, inside the update budget). Both now share one selector driven by plugin install records; when the records cannot be read, they fall back to the full walk with an OPENCLAW_PLUGIN_NPM_ROOTS_FALLBACK warning. Stale generation retirement keeps its existing owner. Thanks @patelmm79 for the detailed report.

Fixes openclaw#176063
steipete added a commit that referenced this pull request Oct 23, 2026
Prune 70 stale max-lines entries (508 -> 438). Reconcile the counted OPENCLAW_* budget from 452 -> 461 and rename the internal agent FTS schema constant.

Record FACTORY_GITHUB_PROOF, FACTORY_ACTOR_ID, FACTORY_SESSION_KEY (#173668), IMAGE_ACTIVATION_CAPTURE_MARKER (#173711), UPDATE_DOCTOR_HISTORICAL_SCANS (#177933), SESSION_WATCHDOG (#176915), PACKAGE_PERMISSIONS_REPAIRED (#175423), PLUGIN_NPM_ROOTS_FALLBACK (#176121), DISABLE_CRON_HOST_EXECUTION and DISABLE_GATEWAY_LOCAL_TERMINALS (#177855), and the removal of DEVICE_NAME_PREFIX (#178345). All names above use the OPENCLAW_ prefix. AGENT_FTS_SCHEMAS is an internal constant, not an environment variable.
steipete added a commit that referenced this pull request Oct 23, 2026
* fix(ci): block baseline inventory drift in CI and keep shard size advisory

The max-lines suppression inventory and the OPENCLAW_* budget used the limit
severity policy, so GitHub Actions only annotated a tree that disagreed with
its own inventory. Main absorbed moved suppressions, stale entries, and
unrecorded env names with green CI, and every later local ratchet run failed
on debt the branch did not create.

Inventory/tree consistency (unlisted suppression, stale entry, name count
different from the budget) now blocks everywhere, like the sibling shrink
ratchets. Growth relative to the merge base keeps the limit policy so
owner-approved growth still lands with a CI warning.

The core tsgo shard root budget is a shared cost signal its contract marks
advisory; routing it through the limit reporter made it locally fatal. It now
warns everywhere.

Proof: new ratchet and env-budget regressions fail on the base scripts and
pass with the fix; the real boundary check on main's shard layout exits 0 with
four advisory warnings instead of failing.

* ci(tsgo): rebalance core test shards under the root budget

agents-tools (722), gateway-root (725), infra (728), and plugins-platform
(728) exceeded the advisory 720-root limit. Move whole test globs to shards
with headroom: src/media to messaging, src/acp to gateway-other,
src/security to config-cli, and root src/gateway/github* to gateway-methods.
The largest shard is now 719 roots and exactly-once ownership holds.

Messaging test-root selection of the shard guard now includes src/media.

* ci(tsgo): move agents CLI backend tests into the commands shard

Newer main tests pushed agents-root to 722 roots. Root-level
src/agents/cli-*.test.ts files join the commands shard, which already owns
src/agents/command and CLI program tests: agents-root 693, commands 516.

* test(ui): split chat message rendering coverage

Preserve current main coverage across grouping, markdown, tools, attachments, and images, sharing render lifecycle and attachment fixtures. Keep all 59 direct cases and eight parameterized declarations, expanding to the same 79 passing tests.

The image disclosure case now waits for its lazy renderer instead of depending on an earlier image test. All seven files have line-cap headroom; UI types and scoped lint pass. Independent review found no actionable P0-P2 defects.

* chore(ci): reconcile max-lines baseline and env budget with main

Prune 70 stale max-lines entries (508 -> 438). Reconcile the counted OPENCLAW_* budget from 452 -> 461 and rename the internal agent FTS schema constant.

Record FACTORY_GITHUB_PROOF, FACTORY_ACTOR_ID, FACTORY_SESSION_KEY (#173668), IMAGE_ACTIVATION_CAPTURE_MARKER (#173711), UPDATE_DOCTOR_HISTORICAL_SCANS (#177933), SESSION_WATCHDOG (#176915), PACKAGE_PERMISSIONS_REPAIRED (#175423), PLUGIN_NPM_ROOTS_FALLBACK (#176121), DISABLE_CRON_HOST_EXECUTION and DISABLE_GATEWAY_LOCAL_TERMINALS (#177855), and the removal of DEVICE_NAME_PREFIX (#178345). All names above use the OPENCLAW_ prefix. AGENT_FTS_SCHEMAS is an internal constant, not an environment variable.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 23, 2026
…aw#179181)

* fix(ci): block baseline inventory drift in CI and keep shard size advisory

The max-lines suppression inventory and the OPENCLAW_* budget used the limit
severity policy, so GitHub Actions only annotated a tree that disagreed with
its own inventory. Main absorbed moved suppressions, stale entries, and
unrecorded env names with green CI, and every later local ratchet run failed
on debt the branch did not create.

Inventory/tree consistency (unlisted suppression, stale entry, name count
different from the budget) now blocks everywhere, like the sibling shrink
ratchets. Growth relative to the merge base keeps the limit policy so
owner-approved growth still lands with a CI warning.

The core tsgo shard root budget is a shared cost signal its contract marks
advisory; routing it through the limit reporter made it locally fatal. It now
warns everywhere.

Proof: new ratchet and env-budget regressions fail on the base scripts and
pass with the fix; the real boundary check on main's shard layout exits 0 with
four advisory warnings instead of failing.

* ci(tsgo): rebalance core test shards under the root budget

agents-tools (722), gateway-root (725), infra (728), and plugins-platform
(728) exceeded the advisory 720-root limit. Move whole test globs to shards
with headroom: src/media to messaging, src/acp to gateway-other,
src/security to config-cli, and root src/gateway/github* to gateway-methods.
The largest shard is now 719 roots and exactly-once ownership holds.

Messaging test-root selection of the shard guard now includes src/media.

* ci(tsgo): move agents CLI backend tests into the commands shard

Newer main tests pushed agents-root to 722 roots. Root-level
src/agents/cli-*.test.ts files join the commands shard, which already owns
src/agents/command and CLI program tests: agents-root 693, commands 516.

* test(ui): split chat message rendering coverage

Preserve current main coverage across grouping, markdown, tools, attachments, and images, sharing render lifecycle and attachment fixtures. Keep all 59 direct cases and eight parameterized declarations, expanding to the same 79 passing tests.

The image disclosure case now waits for its lazy renderer instead of depending on an earlier image test. All seven files have line-cap headroom; UI types and scoped lint pass. Independent review found no actionable P0-P2 defects.

* chore(ci): reconcile max-lines baseline and env budget with main

Prune 70 stale max-lines entries (508 -> 438). Reconcile the counted OPENCLAW_* budget from 452 -> 461 and rename the internal agent FTS schema constant.

Record FACTORY_GITHUB_PROOF, FACTORY_ACTOR_ID, FACTORY_SESSION_KEY (openclaw#173668), IMAGE_ACTIVATION_CAPTURE_MARKER (openclaw#173711), UPDATE_DOCTOR_HISTORICAL_SCANS (openclaw#177933), SESSION_WATCHDOG (openclaw#176915), PACKAGE_PERMISSIONS_REPAIRED (openclaw#175423), PLUGIN_NPM_ROOTS_FALLBACK (openclaw#176121), DISABLE_CRON_HOST_EXECUTION and DISABLE_GATEWAY_LOCAL_TERMINALS (openclaw#177855), and the removal of DEVICE_NAME_PREFIX (openclaw#178345). All names above use the OPENCLAW_ prefix. AGENT_FTS_SCHEMAS is an internal constant, not an environment variable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes commands Command implementations docs Improvements or additions to documentation gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

doctor/update: plugin npm-root walks enumerate stale generation trees — O(all roots) not O(active plugins); slow doctor on plugin-heavy installs

1 participant