|
Entropic 2.11.1
Local-first agentic inference engine
|
Tracks file read state for read-before-write enforcement. More...
#include <entropic/mcp/servers/filesystem.h>
Public Member Functions | |
| void | record_read (const std::string &path, size_t hash) |
| Record that a file was read. | |
| bool | was_read (const std::string &path) const |
| Check if a file was ever read. | |
Tracks file read state for read-before-write enforcement.
Definition at line 30 of file filesystem.h.
| void entropic::FileAccessTracker::record_read | ( | const std::string & | path, |
| size_t | hash | ||
| ) |
Record that a file was read.
Record that a file was read with its content hash.
| path | Canonical file path. |
| hash | Content hash at time of read. |
The tracker is what makes read-before-write enforceable: the hash stored here is compared at write time to detect external modification.
| path | Canonical file path. |
| hash | Content hash at time of read. @req REQ-MCP-021 |
Definition at line 48 of file filesystem.cpp.
| bool entropic::FileAccessTracker::was_read | ( | const std::string & | path | ) | const |
Check if a file was ever read.
Check if a file was ever read in this session.
| path | Canonical file path. |
| path | Canonical file path. |
Definition at line 63 of file filesystem.cpp.