You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dogfood review found a broad set of file open/stream/directory creation sites. This complements destructive filesystem work in #4076: the focus here is non-destructive I/O policy, including sharing modes, size bounds, permissions, atomic write setup, log/audit files, lock files, and raw byte loading.
Top areas include ExportImportCommandRunner, ProgramRunner, MetricsSink, AuditLogSink, BoundedLineReader, DataDirectorySecurity, GlobalToolLog, ReportCommandRunner, SearchAuditRecipes, FileIndexer, and LspServer.
FileStream: 23 hits across 20 production files.
Top areas include raw byte loading, SuggestionStore, BoundedFile, AtomicFileWriter, BoundedHttpContentReader, security/log/lock helpers, plugin pattern config, checksum, path aliases, and MCP index lock.
Directory.CreateDirectory: 15 hits across 11 production files.
Top areas include export/import, data-directory security, program runner, global log, hooks, full scan, lock creation, reporting, case-sensitivity probe, and MCP index lock.
Audit goals
Verify file opens use deliberate FileMode, FileAccess, FileShare, and async options.
Verify large or user-influenced reads use bounded readers or explicit byte/line caps.
Verify directories that hold DBs, logs, hooks, locks, temp files, or reports get correct permissions and ownership checks.
Verify lock/log/audit files handle stale files, concurrent writers, and permission failures consistently.
Summary
Dogfood review found a broad set of file open/stream/directory creation sites. This complements destructive filesystem work in #4076: the focus here is non-destructive I/O policy, including sharing modes, size bounds, permissions, atomic write setup, log/audit files, lock files, and raw byte loading.
Evidence
Known dogfood findings from the previous pass:
Findings:
File.Open: 18 hits across 11 production files.ExportImportCommandRunner,ProgramRunner,MetricsSink,AuditLogSink,BoundedLineReader,DataDirectorySecurity,GlobalToolLog,ReportCommandRunner,SearchAuditRecipes,FileIndexer, andLspServer.FileStream: 23 hits across 20 production files.SuggestionStore,BoundedFile,AtomicFileWriter,BoundedHttpContentReader, security/log/lock helpers, plugin pattern config, checksum, path aliases, and MCP index lock.Directory.CreateDirectory: 15 hits across 11 production files.Audit goals
FileMode,FileAccess,FileShare, and async options.Acceptance criteria