Repository navigation
fix: inspect canonical Markdown prose without swallowing shell operands - #124
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: needs maintainer review before merge. What this changesThe PR extends canonical Markdown ownership to recognize prose apostrophes without masking continued shell operands. Example: A Markdown guide contains
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it addresses a current scanner completeness defect, preserves conservative shell handling, and has collaborator-approved direction; no introduced defect was identified. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherClawScan installs a patched SkillSpector inside its scanner runtime; Markdown source enters bounded ownership and shell inspection, which produce raw findings and inspection completeness records. flowchart TD
A[Original Markdown] --> B[Bounded canonical parser]
B --> C[Exact punctuation ownership]
C --> D[Shell continuation and word precedence]
D --> E[Inspection completeness]
A --> F[Raw finding production]
E --> G[ClawScan scanner result]
F --> G
Technical reviewBest possible solution: Land the bounded ownership refinement while keeping runtime activation and PixelLab's WAV compatibility repair separate. Do we have a high-confidence way to reproduce the issue? Current-main source excludes several composed prose cases from punctuation ownership, and the added fixtures exercise those paths; this review did not execute target code. Is this the best way to solve the issue? Extending the existing canonical ownership parser is appropriate because it retains exact source mappings, shell-word precedence, conservative fallback, and raw finding production. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against aff544dc623c. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 28, 2026, 6:40 AM ET / 10:40 UTC. |
Summary
Fixes false parser incompleteness when ordinary Markdown possessives cross inline-code, table-cell, list or heading boundaries. Transports the reviewed source into the pinned runtime patch and adds 69 installed adapter controls.
Related: ClawHub #4046. WAV consumer compatibility remains required before recovering that original upload.
Scope
Security / Trust Impact
Findings still inspect original bytes. Unknown mappings, executable expansions, raw HTML and continued shell operands retain their conservative treatment. Existing models, reasoning, service tiers, budgets, source/dependency pins and lock bytes remain unchanged. No finding suppression or publication override is added.
Evidence
After: 126/126 text files; only 11 generated incomplete-reference rows disappear. All 58 other raw finding payloads and 147 reference payloads remain unchanged. The original WAV exclusion remains explicit.
$CMDfollowed by a continued Markdown list) stays partial and retains destructive operands after the repair.bda4f884f6c59fd206b5e4477fa5c278ac6ce43f.Verification
go test -count=1 ./...go vet ./...go run ./cmd/clawscan --helpMerge Danger
Door: two-way; revert this transport commit to restore the prior source.
Blast Radius: scanner. Native runtime publication and production consumer activation require their normal separate gates.