Read anchors resolve like file_changes (r<k> rows, MISSING when absent at base), anchors with a symbol must hold it in the mapped window or gain SYMBOL_MISSING, and one capped git-grep caller list per symbol follows the windows within --max-lines. Specs without reads or symbols print what v1 did. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
17 lines
1.2 KiB
JSON
17 lines
1.2 KiB
JSON
{"id": {"id": "t:cut_spec:cut-x.r1", "kind": "CutSpec"},
|
|
"status": "InForce",
|
|
"document": {"kind": "cut_spec", "value": {
|
|
"base": "BASE", "deletes": [],
|
|
"file_changes": [
|
|
{"change": "symbol present in the moved window", "location": {"path": "a.txt", "line": 20, "end_line": 22, "symbol": "a21"}},
|
|
{"change": "symbol the window lacks", "location": {"path": "b.txt", "line": 30, "end_line": 31, "symbol": "b99"}},
|
|
{"change": "identifier with 3 callers outside the windows", "location": {"path": "sym.txt", "line": 4, "end_line": 6, "symbol": "needle_three"}},
|
|
{"change": "non-identifier symbol is a literal substring", "location": {"path": "sym.txt", "line": 9, "end_line": 9, "symbol": "::ba"}}
|
|
],
|
|
"reads": [
|
|
{"why": "moved below the insertion", "location": {"path": "a.txt", "line": 20, "end_line": 22}},
|
|
{"why": "deleted path", "location": {"path": "c.txt", "line": 2, "end_line": 3}},
|
|
{"why": "path absent at base", "location": {"path": "sub/a.txt", "line": 1, "end_line": 2}},
|
|
{"why": "identifier with 60 callers", "location": {"path": "sym.txt", "line": 7, "end_line": 8, "symbol": "needle_many"}},
|
|
{"why": "an identifier matches whole words only", "location": {"path": "a.txt", "line": 20, "end_line": 22, "symbol": "a2"}}
|
|
]}}}
|