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")
| 1208 | |
| 1209 | |
| 1210 | def _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 | |
| 1222 | def _query_stamp_fresh() -> bool: |
no test coverage detected