Skip to content

fix(oc-path): bound config file reads with size cap - #110714

Merged
obviyus merged 1 commit into
openclaw:mainfrom
cxbAsDev:fix/bound-oc-path-cli
Aug 30, 2026
Merged

obviyus merged 1 commit into
openclaw:mainfrom
cxbAsDev:fix/bound-oc-path-cli

Conversation

@cxbAsDev

@cxbAsDev cxbAsDev commented Jul 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Bound every openclaw path file read to 16 MiB before parsing.
  • Read each file once from one pinned descriptor and reuse that snapshot for set --diff.
  • Reject special files without blocking and keep the JSONC oversized-input diagnostic.

What Problem This Solves

openclaw path read a user-selected file into memory before the JSONC parser enforced its 16 MiB limit. A 20,971,532-byte input was fully buffered before rejection. The set path also read the same file twice, and a FIFO could wait indefinitely for a writer.

Root cause

The CLI file-load boundary used fs.readFile directly. The size contract lived inside the JSONC parser, after the unbounded allocation, and set separately loaded bytes for its diff.

Fix

  • Open the user path once with nonblocking read flags, then verify the opened descriptor is a regular file.
  • Read only the descriptor range through the shipped 16 MiB JSONC ceiling for all file kinds.
  • Return raw text with the parsed syntax tree so every verb uses one canonical snapshot.
  • Preserve OC_JSONC_INPUT_TOO_LARGE for JSONC/JSON and use OC_PATH_INPUT_TOO_LARGE for other formats.

Evidence

  • Exact main eea8f9615e68b10c693c040cf60b149151beb87e: the 12 MiB control succeeded; the 20,971,532-byte JSONC input returned the typed error only after all 20,971,532 bytes were read.
  • Exact head c6f34752d1643d02419801f14b200e04334bf6aa: the same control succeeded through the bounded descriptor reader; the same oversized input returned the typed error before any file bytes were read.
  • Regression proof: the new Commander-boundary test fails on main for the unbounded read and FIFO wait, then passes on the repaired head.

Validation

  • Focused CLI tests: 29 passed.
  • Full OcPath plugin tests: 684 passed.
  • Exact-head build and CLI smoke: passed.
  • Type-aware lint, docs checks, formatting, dependency pins, plugin boundary checks, import cycles, and conflict checks: passed.
  • Local TypeScript typecheck was not run because this host reserves typecheck for CI.

Production shape

  • Owner: the OcPath CLI file-load boundary.
  • Modes before: unbounded read for every verb, plus a second unbounded read for set.
  • Modes after: one pinned, bounded, regular-file read shared by resolve, find, set, and emit.
  • Production delta: +43 lines in plugin source. The growth adds the security boundary and typed failures; it replaces the PR's custom 52-line reader and removes the duplicate set read.

ClawSweeper rank-up move

  • Confirmed: the supported policy intentionally applies the existing 16 MiB ceiling to every OcPath file kind because every user-selected file read must be bounded before parsing.

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. labels Jul 18, 2026
@clawsweeper

clawsweeper Bot commented Jul 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 30, 2026, 2:43 AM ET / 06:43 UTC.

ClawSweeper review

What this changes

The branch bounds every openclaw path file-loading command to a descriptor-backed 16 MiB snapshot, rejects non-regular files, reuses the snapshot for set --diff, and documents the cross-format diagnostics.

Regression provenance

Possible regression — probable (reviewed change; known regression link). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

This PR remains necessary: fetched current main still performs an unbounded fs.readFile before JSONC parsing, while the branch moves the cap and regular-file check to the shared CLI loading boundary. The implementation is coherent; the remaining maintainer choice is whether the documented 16 MiB limit should intentionally apply to YAML, JSONL, and Markdown as well as JSONC.

Priority: P2
Reviewed head: c6f34752d1643d02419801f14b200e04334bf6aa
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-boundary repair with command-level proof and targeted regression coverage; compatibility policy confirmation is the remaining merge consideration.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): The current PR body records an exact-head, command-boundary before/after scenario for a 20,971,532-byte JSONC input and a successful control; source maps that scenario to the shared loader and all four loading verbs. The current proof: sufficient label corroborates the submitted real-path evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The current PR body records an exact-head, command-boundary before/after scenario for a 20,971,532-byte JSONC input and a successful control; source maps that scenario to the shared loader and all four loading verbs. The current proof: sufficient label corroborates the submitted real-path evidence.
Evidence reviewed 7 items Introduced owner boundary: The introduced loader opens the selected path nonblocking, rejects non-regular descriptors, reads at most the shared ceiling plus one byte for raced growth detection, and closes the descriptor before parsing.
All loading callers use the canonical snapshot: Resolve, set, find, and emit each call the shared loader; set passes the returned raw snapshot to its dry-run diff instead of reading the path again.
Focused boundary coverage: The added table-driven test exercises resolve, find, set, emit, and a non-JSONC diagnostic without using fs.readFile; the FIFO case checks that special files receive a typed error rather than waiting for a writer.
Findings None None.
Security None None.

How this fits together

OcPath is OpenClaw’s CLI facility for inspecting and editing workspace JSONC, JSONL, YAML, and Markdown files. CLI subcommands resolve a path to a file, load and parse it, then emit a match, edit result, search result, or normalized file output.

flowchart LR
  A[CLI path command] --> B[Resolve selected file]
  B --> C[Open descriptor nonblocking]
  C --> D{Regular file within 16 MiB?}
  D -->|No| E[Typed CLI diagnostic]
  D -->|Yes| F[Parse one file snapshot]
  F --> G[Resolve find set or emit]
  G --> H[CLI output or write]
Loading

Decision needed

Question Recommendation
Should openclaw path intentionally reject YAML, JSONL, and Markdown inputs over 16 MiB to match JSONC’s existing protection? Accept a uniform 16 MiB ceiling: Keep the documented all-format limit so every parser is protected at the shared file-load boundary.

Why: The branch intentionally changes the size behavior of file kinds that previously had no documented pre-parse ceiling, so code review cannot determine the desired compatibility policy alone.

Before merge

  • Resolve merge risk (P1) - Merging deliberately changes compatibility for existing YAML, JSONL, and Markdown inputs above 16 MiB: they will now fail with OC_PATH_INPUT_TOO_LARGE rather than be parsed.
  • Complete next step (P2) - The code repair is concrete, but a maintainer must confirm the deliberate all-format compatibility policy before merge.
Agent review details

Security

None.

PR surface

Source +43, Tests +82, Docs +1. Total +126 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 3 68 25 +43
Tests 1 93 11 +82
Docs 1 4 3 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 165 39 +126

Review metrics

Metric Value Why it matters
Production versus test delta production +43, tests +82, docs +1 The production growth is concentrated in the new shared descriptor boundary and replaces a duplicate set-path read; the expanded tests cover its command callers and FIFO behavior.

Stored data model

Persistent data-model change detected: serialized state: extensions/oc-path/src/cli.ts, unknown-data-model-change: extensions/oc-path/src/cli.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Accept the documented all-format ceiling (recommended)
    Approve the 16 MiB limit as the supported compatibility policy for every OcPath file kind.
  2. Narrow the compatibility change
    Revise the shared loader only if maintainers want a different explicit size policy for non-JSONC formats.

Technical review

Best possible solution:

Adopt one documented 16 MiB pre-parse ceiling for every OcPath file kind if maintainers accept that compatibility policy, keeping the single descriptor-backed snapshot as the sole loader.

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

Yes—source-reproducible with high confidence: fetched current main calls fs.readFile before its JSONC size check, and the PR supplies an exact-head before/after command-boundary account for oversized input and FIFO handling.

Is this the best way to solve the issue?

Yes technically: placing one bounded, descriptor-backed snapshot at the CLI load owner fixes every loading verb and eliminates the duplicate diff read. The only unresolved question is whether the uniform cross-format limit is the intended product policy.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against a6446347b12a.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove merge-risk: 🚨 other: Current PR review merge-risk labels are merge-risk: 🚨 compatibility.

Label justifications:

  • P2: This is a bounded CLI reliability and resource-safety repair without evidence of an active emergency.
  • merge-risk: 🚨 compatibility: The branch newly refuses non-JSONC OcPath inputs above 16 MiB, changing behavior for existing large files.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The current PR body records an exact-head, command-boundary before/after scenario for a 20,971,532-byte JSONC input and a successful control; source maps that scenario to the shared loader and all four loading verbs. The current proof: sufficient label corroborates the submitted real-path evidence.
  • proof: sufficient: Contributor real behavior proof is sufficient. The current PR body records an exact-head, command-boundary before/after scenario for a 20,971,532-byte JSONC input and a successful control; source maps that scenario to the shared loader and all four loading verbs. The current proof: sufficient label corroborates the submitted real-path evidence.

Evidence

What I checked:

  • Introduced owner boundary: The introduced loader opens the selected path nonblocking, rejects non-regular descriptors, reads at most the shared ceiling plus one byte for raced growth detection, and closes the descriptor before parsing. (extensions/oc-path/src/cli.ts:173, c6f34752d164)
  • All loading callers use the canonical snapshot: Resolve, set, find, and emit each call the shared loader; set passes the returned raw snapshot to its dry-run diff instead of reading the path again. (extensions/oc-path/src/cli.ts:343, c6f34752d164)
  • Focused boundary coverage: The added table-driven test exercises resolve, find, set, emit, and a non-JSONC diagnostic without using fs.readFile; the FIFO case checks that special files receive a typed error rather than waiting for a writer. (extensions/oc-path/src/cli.test.ts:302, c6f34752d164)
  • Existing JSONC contract and documented extension: JSONC already enforced a 16 MiB parser-level limit; the branch exports that constant for the CLI boundary and documents the new all-file input policy plus distinct error codes. (extensions/oc-path/src/oc-path/jsonc/parse.ts:43, c6f34752d164)
  • Current-main necessity: Fetched main still defines loadAst using fs.readFile before invoking the JSONC parser, so it retains the reported unbounded-read behavior and has not subsumed this PR. (extensions/oc-path/src/cli.ts:173, a6446347b12a)
  • Runtime prerequisite: The repository’s supported Node range includes Node 24.19.0, where the inspected runtime exposes Readable.prototype.toArray, the stream collection API used by the introduced reader. (package.json:2174, c6f34752d164)

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Confirm that the documented 16 MiB ceiling is the intended upgrade policy for all OcPath file kinds.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • 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.

History

Review history (5 earlier review cycles)
  • reviewed 2026-08-17T11:23:13.051Z sha 68376d2cc32b1a213055166c0d2a5b0c37530fda :: needs changes before merge. :: [P2] Open special paths nonblocking before statting | [P2] Reuse the parsed snapshot for dry-run diffs
  • reviewed 2026-08-18T08:38:59.911Z sha 68376d2cc32b1a213055166c0d2a5b0c37530fda :: needs changes before merge. :: [P2] Open special paths without blocking | [P2] Reuse one input snapshot for set and diff | [P2] Preserve the JSONC diagnostic for set
  • reviewed 2026-08-23T13:55:22.953Z sha 68376d2cc32b1a213055166c0d2a5b0c37530fda :: found issues before merge. :: [P2] Open special paths without blocking | [P2] Parse and diff one input snapshot | [P2] Preserve the JSONC diagnostic for set | [P1] Decide and document the cross-format cap
  • reviewed 2026-08-29T14:07:23.864Z sha 68376d2cc32b1a213055166c0d2a5b0c37530fda :: found issues before merge. :: [P2] Open special paths without blocking | [P2] Read and parse one file snapshot | [P2] Preserve the JSONC error for set | [P1] Define the cross-format cap
  • reviewed 2026-08-30T06:28:19.774Z sha d49c2bda0087ebcd73cfcb2225a9ceba58368c9b :: needs maintainer review before merge. :: none

@cxbAsDev

Copy link
Copy Markdown
Contributor Author

Behavior Proof — Bounded oc-path CLI File Reads

Test Coverage

Running extensions/oc-path test suite: 698 passed

 ✓ |extensions| extensions/oc-path/src/oc-path/tests/emit.test.ts (7 tests) 4ms
 ✓ |extensions| extensions/oc-path/src/oc-path/tests/jsonl/emit.test.ts (6 tests) 4ms
 ✓ |extensions| extensions/oc-path/src/oc-path/tests/jsonc/emit.test.ts (6 tests) 5ms
 ✓ |extensions| extensions/oc-path/src/oc-path/tests/jsonc/resolve.test.ts (10 tests) 7ms
 ✓ |extensions| extensions/oc-path/src/oc-path/tests/resolve.test.ts (8 tests) 4ms
 ✓ |extensions| extensions/oc-path/src/oc-path/tests/slug.test.ts (10 tests) 4ms
 ✓ |extensions| extensions/oc-path/src/oc-path/tests/jsonl/parse.test.ts (5 tests) 6ms
 ✓ |extensions| extensions/oc-path/src/oc-path/tests/sentinel.test.ts (4 tests) 2ms

 Test Files  40 passed (40)
      Tests  698 passed (698)
   Start at  09:28:40
   Duration  5.71s

The loadOcPathFileSafely helper with 10 MiB cap is exercised across the full oc-path test matrix including loadAst and set --diff paths.

Full CI

All CI gates green (preflight, lint, types, checks, tests).

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@cxbAsDev
cxbAsDev force-pushed the fix/bound-oc-path-cli branch from ae2572e to d29b89e Compare July 19, 2026 01:50
@cxbAsDev

Copy link
Copy Markdown
Contributor Author

Rebased on latest main — adapted to mains existing test structure. All 701 oc-path tests pass including the updated oversized-file rejection test.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Jul 19, 2026
@cxbAsDev

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. labels Jul 19, 2026
@cxbAsDev
cxbAsDev force-pushed the fix/bound-oc-path-cli branch from 3bc897f to dfca8f2 Compare July 19, 2026 05:58
@cxbAsDev

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Rebased on latest upstream/main and pushed a clean head:

  • 110766: removed unrelated dirty files; kept only src/cli/capability-cli/media-output.ts descriptor-bound read fix.
  • 110713: removed unused fs import from node:fs/promises.
  • All other PRs rebased cleanly with no code changes.

CI is green and Real behavior proof passed on the current head. Please re-review for ready-for-maintainer-look.

@clawsweeper

clawsweeper Bot commented Jul 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@cxbAsDev
cxbAsDev force-pushed the fix/bound-oc-path-cli branch from dfca8f2 to ea407f6 Compare July 19, 2026 06:28
@cxbAsDev

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Addressed the latest review findings in code; pushed a clean head. Please re-review.

@clawsweeper

clawsweeper Bot commented Jul 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@cxbAsDev
cxbAsDev force-pushed the fix/bound-oc-path-cli branch from b508709 to 32cf5cf Compare July 19, 2026 07:04
@cxbAsDev

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Preserved the JSONC oversized-input diagnostic contract and refreshed the head to re-run checks after infrastructure flakes. Please re-review.

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Aug 29, 2026
@obviyus
obviyus force-pushed the fix/bound-oc-path-cli branch from 68376d2 to d49c2bd Compare August 30, 2026 06:21
@obviyus
obviyus requested a review from a team as a code owner August 30, 2026 06:21
@openclaw-barnacle openclaw-barnacle Bot added the docs Improvements or additions to documentation label Aug 30, 2026
@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Aug 30, 2026
@github-actions

github-actions Bot commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

Dependency graph guard cleared

This PR no longer has blocked dependency graph changes. A future dependency graph change requires a fresh /allow-dependencies-change comment after the guard blocks that new head SHA.

  • Current SHA: c6f34752d1643d02419801f14b200e04334bf6aa

@openclaw-barnacle openclaw-barnacle Bot added the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Aug 30, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 30, 2026
@obviyus
obviyus force-pushed the fix/bound-oc-path-cli branch from d49c2bd to c6f3475 Compare August 30, 2026 06:37
@github-actions github-actions Bot removed the dependencies-changed PR changes dependency-related files label Aug 30, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. labels Aug 30, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Aug 30, 2026
@obviyus
obviyus merged commit 357078c into openclaw:main Aug 30, 2026
205 of 208 checks passed
@obviyus

obviyus commented Aug 30, 2026

Copy link
Copy Markdown
Collaborator

Thanks @cxbAsDev!

Proof: A 12 MiB JSON file still resolves normally. A 20,971,532-byte input now returns OC_JSONC_INPUT_TOO_LARGE before any file bytes are read.

  • Bug: openclaw path buffered the full selected file before its size check, read set inputs twice, and could wait on a FIFO.
  • Fix: The CLI now opens one nonblocking descriptor, enforces the 16 MiB boundary before parsing, and reuses one snapshot across all file-loading verbs.

Example

Before After
Oversized JSONC was fully read before rejection. Oversized JSONC is rejected before the file body is read.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 31, 2026
Bound user-selected OcPath files before parsing so oversized and special files cannot consume unbounded memory or hang the CLI.

Reuse one descriptor snapshot across resolve, find, set, and emit while preserving the JSONC oversized-input diagnostic.

Co-authored-by: Ayaan Zaidi <[email protected]>
@cxbAsDev
cxbAsDev deleted the fix/bound-oc-path-cli branch September 3, 2026 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation extensions: oc-path merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants