Skip to content

Correct logging identity, acceptance, and archive ordering - #75

Merged
gitgik merged 1 commit into
masterfrom
users/gitgik/fix-logging-guarantees
Nov 22, 2026
Merged

gitgik merged 1 commit into
masterfrom
users/gitgik/fix-logging-guarantees

Conversation

@gitgik

@gitgik gitgik commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

Problem

Application/service IDs plus timestamps do not establish unique events or causality. Asynchronous queues do not remove logging cost or prevent loss, and deleting broker records before archival risks losing the only retained copy.

Changes

  • Separate stable event identity, event/observed time, and trace relationships.
  • Define bounded-queue choices and distinguish volatile enqueue, persistent acceptance, archive completion, and search visibility.
  • Put verified archival before checkpoint advancement and explain replay-safe writes.
  • Distinguish checkpoints from time/size retention and show outage backlog versus net recovery throughput.

Update Markdown and its notebook without adding a logging stack.

Validation

Independently checked the 18 GB backlog, one-hour recovery, conservative 90-minute budget, and equal-rate versus growing-lag cases. The notebook schema passes; code, outputs, and metadata are unchanged. git diff --check passes.

GitHub CI passes on Python 3.9, 3.10, and 3.11. Markdown links and Codacy pass.

This specifies failure boundaries and assumptions; it is not evidence of an implemented durable pipeline.

Separate identity, causality, acceptance, and visibility. Bound asynchronous logging behavior, order archival before checkpoint advancement, and explain retention and recovery-rate assumptions. Independently checked the worked backlog example and unchanged notebook execution state.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 7411b498-db61-4f72-8629-4af2b007c3a4
@review-notebook-app

Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the design documentation and matching notebook updates.

No open issues 🎉

What changed in this PR

Updates the distributed logging design documentation and matching notebook to clarify event identity, durability boundaries, and safe archival ordering. These changes describe design requirements and failure assumptions; they do not implement a logging pipeline.

Changes:

  • Separate stable event identity from timestamps and trace relationships.
  • Clarify bounded-queue behavior, logging overhead, and the distinction between enqueue, durable acceptance, archival, and search visibility.
  • Require verified archival before checkpoint advancement, explain replay-safe writes, and illustrate retention sizing using outage backlog and recovery throughput.
File Description
distributed_logging.md Revises logging identity, acceptance, archival, and retention guidance.
distributed_logging.ipynb Mirrors the documentation updates in notebook Markdown cells.

Review effort: Balanced

@gitgik
gitgik merged commit e9efec0 into master Nov 22, 2026
9 checks passed
@gitgik
gitgik deleted the users/gitgik/fix-logging-guarantees branch November 22, 2026 09:19
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.

2 participants