Skip to content

Commit f020a06

Browse files
committed
fix: warm-cache demo recording protocol and precise graphify attribution
1 parent 475be16 commit f020a06

3 files changed

Lines changed: 16 additions & 4 deletions

File tree

demo.tape

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Render with: vhs demo.tape → demo.gif
2+
#
3+
# RECORDING PROTOCOL: run `cocoa demo` once BEFORE recording so the fixture
4+
# clone and per-service analysis caches are warm — the recorded run then
5+
# completes in seconds instead of minutes and the GIF stays tight. Do NOT
6+
# record a cold run: analysis time varies with toolchain availability and
7+
# a fixed Sleep will truncate it.
18
Output demo.gif
29
Set FontSize 15
310
Set Width 1200
@@ -6,8 +13,7 @@ Set Theme "Catppuccin Mocha"
613

714
Type "cocoa demo"
815
Enter
9-
Sleep 90s
16+
Sleep 25s
1017
Type "cocoa blast -p ~/.cocoa/demo/microservices-demo-v0.10.5 --target hipstershop.Money.units --kind proto-field"
1118
Enter
12-
Sleep 8s
13-
Sleep 4s
19+
Sleep 10s

docs/COMPARISON.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ thing: **where the edges come from.**
88
| | graphify | COCOA |
99
|---|---|---|
1010
| Unit of understanding | a folder of files | a distributed system |
11-
| Edge derivation | tree-sitter AST + LLM inference | real analyzers (WALA, Jedi, ts-morph, go/types via CLDK) + proto/k8s stitching |
11+
| Edge derivation | tree-sitter AST for code (deterministic); LLM inference for docs/PDFs/images | real analyzers (WALA, Jedi, ts-morph, go/types via CLDK) + proto/k8s stitching |
1212
| Edge provenance | `EXTRACTED` / `INFERRED` / `AMBIGUOUS` | `DERIVED-STATIC` / `INFERRED` (labeled fallback only) |
1313
| Cross-language links | inferred by the model | derived: proto stubs ↔ handlers ↔ k8s wiring, with anchor-exclusivity and boundary-matching to prevent false edges |
1414
| Databases | absent | first-class: Redis ops, SQL tables, ORM mappings as graph nodes/edges |

test/test_plugin_assets.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,3 +153,9 @@ def test_comparison_is_provenance_led():
153153
text = (ROOT / "docs" / "COMPARISON.md").read_text()
154154
assert "graphify" in text.lower()
155155
assert "AMBIGUOUS" in text and "DERIVED-STATIC" in text
156+
157+
158+
def test_demo_tape_mandates_warm_cache_protocol():
159+
text = (ROOT / "demo.tape").read_text()
160+
assert "RECORDING PROTOCOL" in text
161+
assert "cold run" in text

0 commit comments

Comments
 (0)