Skip to content

improvement: document DB-vs-engine reconcile + log retention (v0.2.2 followup)#51

Merged
Gumbees merged 1 commit into
developmentfrom
improvement/v0.2.2-docs-reconcile-and-log-retention
May 26, 2026
Merged

improvement: document DB-vs-engine reconcile + log retention (v0.2.2 followup)#51
Gumbees merged 1 commit into
developmentfrom
improvement/v0.2.2-docs-reconcile-and-log-retention

Conversation

@Gumbees

@Gumbees Gumbees commented May 26, 2026

Copy link
Copy Markdown
Collaborator

Summary

PR #50 (v0.2.2 bug fix for #49) shipped the reconcile-loop fix and log retention but didn't touch ARCHITECTURE.md or README.md. Closing the doc gap.

ARCHITECTURE.md

  • New ### DB-vs-Engine Reconcile subsection under Watch Engine ... explains the 2s reconcile pass, the path.exists() filter (the load-bearing fix that prevents the every-2s restart cycle when a stale DB row points at a missing path), and the missing-folder warn-once throttle.
  • New ### Log Retention subsection under File Layout ... documents prune_logs(dir, cap), the 1 GiB cap, never-delete-today-rule, startup + hourly invocation, and the cap rationale.

README.md

  • One paragraph in the Configuration section explaining the daily rotation + 1 GiB retention cap, so users know where to find logs and that they're self-managing.

Why not bundled into PR #50

The agent that implemented #49 focused on code + tests and skipped the surrounding docs. Catching that gap with a small follow-up rather than rebasing #50 — same end state, less churn.

Test plan

  • No code changes; docs only
  • CI build & test green (one-shot, no Rust changes)
  • Verify rendered MD looks right on GitHub after merge

🤖 Generated with Claude Code

…followup)

PR #50 fixed the reconcile-loop regression and added log retention but
didn't update the architecture/readme docs. Adds the missing sections.

ARCHITECTURE.md:
  - New "### DB-vs-Engine Reconcile" subsection under Watch Engine,
    explaining the 2s reconcile pass, the path.exists() filter that
    PR #50 added (the load-bearing fix for the v0.2.2-rc bug), and
    the missing-folder warn-once throttle.
  - New "### Log Retention" subsection under File Layout, covering
    the prune_logs() function, the 1 GiB cap, never-delete-today,
    startup + hourly invocation, and the rationale for the cap value.

README.md:
  - One paragraph in the Configuration section explaining the daily
    rotation + 1 GiB retention cap.

No code changes; docs only.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Gumbees Gumbees enabled auto-merge (squash) May 26, 2026 02:46
@Gumbees Gumbees merged commit 202ad9c into development May 26, 2026
2 checks passed
@Gumbees Gumbees deleted the improvement/v0.2.2-docs-reconcile-and-log-retention branch May 26, 2026 02:54
@Gumbees Gumbees mentioned this pull request May 26, 2026
5 tasks
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