Repository navigation
test(dispatch-wrapper): preserve utility operand boundaries - #98657
Conversation
15228cc to
4fdea0c
Compare
|
Codex review: needs real behavior proof before merge. Reviewed August 30, 2026, 2:20 AM ET / 06:20 UTC. ClawSweeper reviewWhat this changesThe PR makes the dispatch-wrapper resolver skip a post-lock-target Merge readiness⛔ Blocked until stronger real behavior proof is added - 5 items remain Keep open with a P1 finding: the new Priority: P1 Review scores
Verification
How this fits togetherOpenClaw resolves transparent command wrappers before matching an allow-always rule and before dispatching the original command. The resolved effective executable feeds approval policy, while the original wrapper command remains the process actually launched. flowchart LR
A[Agent command] --> B[Wrapper resolver]
B --> C[Effective executable]
C --> D[Allow-always policy]
D --> E[Original wrapper process]
E --> F[Inner command or error]
Before merge
Findings
Agent review detailsSecurityNeeds attention: The authorization target introduced by the resolver no longer matches the command the inspected flock implementation executes. PR surfaceSource 0, Tests +14. Total +14 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the current fail-closed handling for a post-target Do we have a high-confidence way to reproduce the issue? No. A direct util-linux 2.39.3 probe of the proposed argv fails while trying to execute Is this the best way to solve the issue? No. The patch generalizes a separator convention into a Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 63f265c0ddb9. LabelsLabel changes:
Label justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
4fdea0c to
fe5e06d
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review |
4 similar comments
|
@clawsweeper re-review |
|
@clawsweeper re-review |
|
@clawsweeper re-review |
|
@clawsweeper re-review |
|
@clawsweeper re-review |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
@clawsweeper re-review |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
@clawsweeper re-review |
|
This pull request has been automatically marked as stale due to inactivity. |
5ad14d2 to
6c8ecdb
Compare
6c8ecdb to
43a454b
Compare
|
Thanks @zhangLei99586! Proof: util-linux 2.41 runs
Example
|
…#98657) Keep durable exec approval analysis aligned with the utility operand that actually runs. Add regression coverage for valid and invalid flock separator placement and the BSD script transcript operand. Co-authored-by: Ayaan Zaidi <[email protected]>
Related: #98964
What Problem This Solves
The original patch treated unsupported post-lock
flock --syntax as a transparent command and treated BSDscript --as if it removed the transcript-file operand. Both assumptions could make approval analysis inspect a process that the utility does not execute.Root cause
The candidate inferred wrapper grammar from
--alone. The utilities keep positional operand rules after option parsing ends.Fix
flock -- <lock> <command>form still resolves and persists the inner executable.flock <lock> -- <command>remains blocked because util-linux executes--as its command.script -- <transcript> <command>keeps the transcript operand before the command.Evidence
flock -- <lock> /usr/bin/printf ...and prints the inner marker.flock <lock> -- /usr/bin/touch <marker>with exit 69; the marker remains absent./usr/bin/printfand emits that persistent pattern.script(1)defines[file [command ...]]and says a command cannot be specified without a script file.Change size