MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / _touch_query_stamp

Function _touch_query_stamp

graphify/cli.py:1210–1219  ·  view source on GitHub ↗

Record that graphify oriented the agent recently, next to the queried graph. The strict guard suppresses its block while this stamp is fresh. Fail-silent.

(graph_path: "Path")

Source from the content-addressed store, hash-verified

1208
1209
1210def _touch_query_stamp(graph_path: "Path") -> None:
1211 """Record that graphify oriented the agent recently, next to the queried graph.
1212 The strict guard suppresses its block while this stamp is fresh. Fail-silent."""
1213 try:
1214 from graphify.paths import write_text_atomic
1215 stamp = Path(graph_path).parent / "cache" / "last_query_stamp"
1216 stamp.parent.mkdir(parents=True, exist_ok=True)
1217 write_text_atomic(stamp, str(time.time()))
1218 except Exception:
1219 pass
1220
1221
1222def _query_stamp_fresh() -> bool:

Callers 1

dispatch_commandFunction · 0.85

Calls 1

write_text_atomicFunction · 0.90

Tested by

no test coverage detected