Skip to content

v1.5.3: Fix write pipeline, WAL concurrency, --read-only mode#18

Merged
devwhodevs merged 1 commit intomainfrom
feature/v1.5.3-write-pipeline-fixes
Mar 31, 2026
Merged

v1.5.3: Fix write pipeline, WAL concurrency, --read-only mode#18
devwhodevs merged 1 commit intomainfrom
feature/v1.5.3-write-pipeline-fixes

Conversation

@devwhodevs
Copy link
Copy Markdown
Owner

Summary

  • Auto-link resolver: skip code blocks, inline code, frontmatter, filenames with extensions, and bare date patterns (YYYY-MM-DD)
  • Frontmatter merge: user-provided FM fields merged into auto-generated block instead of creating duplicate FM sections
  • Title extraction: reads title field from frontmatter, skips FM delimiters
  • Link application: create_note now uses apply_links() with protected regions instead of manual replacement
  • mtime sync: update stored mtime after edit/rewrite operations to prevent false conflict errors
  • WAL mode: SQLite WAL journal + 5s busy_timeout for concurrent MCP + CLI access
  • --read-only flag: engraph serve --read-only disables all write MCP and HTTP tools

Test plan

  • 450 unit tests passing (up from 426)
  • CLI create with FM + code blocks + dates: all protections verified
  • CLI edit → append: no mtime conflict
  • HTTP create: FM merge, link protection, date skip all working
  • HTTP edit → append: no mtime conflict
  • HTTP read-only: write returns 403, search still works
  • Release build: clean, no warnings

Write pipeline fixes:
- Auto-link resolver now skips code blocks, inline code, frontmatter,
  and filenames with extensions (prevents content mangling)
- Frontmatter merge: user-provided FM fields merged into auto-generated
  block instead of creating duplicate FM sections
- mtime synced to DB after edit/rewrite operations (prevents false
  conflict errors on successive writes)

Concurrency:
- SQLite WAL mode + 5s busy_timeout for concurrent MCP + CLI access

Read-only mode:
- --read-only flag for engraph serve disables all write MCP and HTTP
  tools while keeping search/read/context tools accessible

450 tests (up from 426), all passing.
@devwhodevs devwhodevs merged commit d41c127 into main Mar 31, 2026
1 of 3 checks passed
@devwhodevs devwhodevs deleted the feature/v1.5.3-write-pipeline-fixes branch March 31, 2026 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant