mirror of
https://github.com/safishamsi/graphify.git
synced 2026-10-16 17:09:17 +00:00
fix(skill): stop --update from printing the whole corpus
The incremental step dumped every file path into the agent context even
though later steps read the sidecar from disk. Print a short summary
and leave the full result in .graphify_incremental.json.
(cherry picked from commit d23d1c618a)
This commit is contained in:
1 parent
07f3d0fc3c
commit
d611afbee9
30 files changed
+298
-29
No files matched your search
@@ -29,6 +29,14 @@ def test_audit_coverage_passes():
|
||||
assert problems == [], "\n".join(problems)
|
||||
|
||||
|
||||
def test_update_reference_does_not_dump_incremental_corpus():
|
||||
"""--update must not print every corpus path into the agent context (#3944)."""
|
||||
text = (gen.FRAGMENTS_DIR / "references" / "shared" / "update.md").read_text(encoding="utf-8")
|
||||
assert "print(json.dumps(result, indent=2, ensure_ascii=False))" not in text
|
||||
assert "new_by_type" in text
|
||||
assert "graphify-out/.graphify_incremental.json" in text
|
||||
|
||||
|
||||
def test_check_passes():
|
||||
"""The committed artifacts and the expected/ snapshot match a fresh render.
|
||||
|
||||
|
||||
Reference in new issue
Block a user