Repository navigation
refactor: share sandbox filesystem parameter contracts - #143189
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 9, 2026, 2:16 PM ET / 18:16 UTC (Revision 4). ClawSweeper reviewWhat this changesThe PR derives sandbox filesystem parameter types from the existing shared contract while preserving each backend’s methods and runtime behavior. Merge readiness⛔ Blocked before merge - 1 item remains Keep open as a useful, narrowly scoped cleanup with no actionable findings. Current main retains the duplication. The previous migration-proof blocker is unsupported because the introduced changes affect only equivalent type annotations. Priority: P3 Review scores
Verification
How this fits togetherSandbox filesystem bridges translate agent file requests into guarded operations on local or remote workspaces. Their shared interface defines the parameters and optional capabilities available to tools and backend plugins. flowchart LR
A[Agent file requests] --> B[Shared filesystem contract]
B --> C[Local sandbox bridge]
B --> D[Remote sandbox bridge]
B --> E[OpenShell and mxc plugins]
C --> F[Existing path and write checks]
D --> F
E --> F
F --> G[Filesystem results]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -116. Total -116 across 4 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep the existing shared interface as the parameter owner while preserving backend-specific capabilities and signatures. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a refactor, and the duplicated parameter records are directly observable in current source. Is this the best way to solve the issue? Yes. Extracting parameters from the existing interface removes duplication without adding aliases, changing the public API, or broadening backend capabilities. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 87b7cad2014b. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
Use the existing SandboxFsBridge method parameter types at matching implementation annotations. Preserve concrete capabilities and mxc signal-less signatures. Verified identical emitted runtime files, plugin builds, all SDK declarations and public API, plus full changed checks and independent P2 review.
7fb265c to
6f5b4da
Compare
|
Merged via squash.
|
Use the existing SandboxFsBridge method parameter types at matching implementation annotations. Preserve concrete capabilities and mxc signal-less signatures. Verified identical emitted runtime files, plugin builds, all SDK declarations and public API, plus full changed checks and independent P2 review.
Closes #143186
What Problem This Solves
Sandbox filesystem implementations repeat parameter records already defined by their shared public contract. Independent copies increase the maintenance cost of keeping implementations aligned. This is part of the maintainer-requested code reduction campaign.
Why This Change Was Made
Twenty-four exactly matching multiline annotations now derive their parameters from the corresponding
SandboxFsBridgemethod. Optional methods useNonNullablebefore extracting parameters; each concrete class retains its required methods and return types. The seven differing mxc signatures remain unchanged. No helpers, aliases, imports, runtime expressions, or SDK exports are added.User Impact
No user-visible behavior or public API change. This removes 116 production code/physical lines across four files while keeping the existing filesystem contract as the single owner of those parameter fields.
Evidence
No live sandbox or Gateway run is claimed for this erased-annotation change. The affected plugin builds and complete SDK/API output were verified; a full root runtime package build was not run. API rendering used the canonical command and its documented memory budget; declaration generation ran after the plugin builds completed.
Stored-data compatibility and CI
No serialized fields, filesystem operations, storage formats, schemas, migration rules or version markers change. The automated stored-data flag does not apply to these erased annotations, as confirmed by complete runtime and public API equivalence. The current source review independently disproves that concern; its remaining generated migration checklist is therefore not applicable.
The earlier CI failures were repaired at their owners in #143197 and #143281. This refreshed head still requires green hosted CI before landing.