You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Match Rules from successful Apply Patch observations #55
Allow Rules to match each file successfully handled by Apply Patch while preserving file ownership across additions, updates, moves, deletions, and multi-file patches.
Acceptance criteria
A successful patch produces one File observation per touched file.
Added files contribute full patch content; updated files contribute added, removed, and context hunk text without patch syntax.
Moved files use the destination path and deleted files are path-only.
Multi-file patches cannot combine one file path with another file content.
A successful unparseable patch degrades to path-only observations derived from its model-visible result summary.
Failed patches contribute no File observations, and acceptance coverage includes syntax exclusion and literal metacharacters.
One File observation per touched file: src/file-observation-patch.test.ts:92
Added files contribute full content: src/file-observation-patch.test.ts:14
Updates contribute added+removed+context text without patch syntax: src/file-observation-patch.test.ts:35
Moves use the destination path; deletes are path-only even with content-like lines: src/file-observation-patch.test.ts:58,77
Multi-file patches never cross file paths/content: src/file-observation-patch.test.ts:92
Successful unparseable patch degrades to path-only via model-visible A/D/M summary: src/file-observation-patch.test.ts:113; upstream v1.18.23 apply-patch emits exactly those lines
Failed patches contribute nothing (after-hook fires only on successful executions); syntax exclusion and literal-metacharacter coverage in the same file and src/rule-filter.test.ts.
Activity
frap129 commentedon Aug 30, 2026
Implemented in 1d4504d.
src/file-observation-patch.test.ts:92src/file-observation-patch.test.ts:14src/file-observation-patch.test.ts:35src/file-observation-patch.test.ts:58,77src/file-observation-patch.test.ts:92src/file-observation-patch.test.ts:113; upstream v1.18.23 apply-patch emits exactly those linessrc/rule-filter.test.ts.