Skip to content

docs: resolve docs-audit improvements P1–P25 + source-side notes, archive findings#72

Merged
lesnik512 merged 2 commits into
mainfrom
docs/audit-improvements-p1-p25
Jun 13, 2026
Merged

docs: resolve docs-audit improvements P1–P25 + source-side notes, archive findings#72
lesnik512 merged 2 commits into
mainfrom
docs/audit-improvements-p1-p25

Conversation

@lesnik512

Copy link
Copy Markdown
Member

What

The open tail of the 2026-06-12 docs audit. Bugs B1–B14 (#63) and inaccuracies I1–I22 (#64) already shipped; this PR resolves the remaining 25 improvements (P1–P25) plus the 4 source-side docstring/comment notes, then archives the findings doc as fully shipped.

Every source-referenced claim was re-verified against the code before writing.

Highlights

  • Correctness in examples: undefined symbols removed (order in timers, OrderIn/Order in fastapi, the chained-publishing session block); checklist.md retry kwargs were shorthand that doesn't exist (initial=/max=/…) and would TypeError if copied — now the real ExponentialRetry(initial_delay_seconds=…, …).
  • Accurate behavior docs: _OutboxConfigError row fate (lease-expiry retry, not retry_strategy); the unstarted-foreign-broker WARNING + fail-and-retry safety net; timer_id dedups only live rows; MANUAL silent-return = terminal reject; compare_server_default=False means a green validate_schema() doesn't prove server defaults exist; the fetched metric footnote.
  • Gaps documented: OutboxRouter doesn't expose dlq_table/metrics_recorder/routers and there's no router workaround (documented, not papered over — forwarding them would be a separate feature).
  • Nav/index sync, install all extra, multi-queue subscribers, duplicate-delivery-on-crash caveat for chains.
  • Source-side: testing.py docstrings/comments (incl. a class docstring that contradicted the module docstring on sync-mode timer firing); _REJECT_RELAY_MSG wording.

Verification

  • mkdocs build --strict — clean (all internal links/anchors resolve).
  • just lint-ci — clean.
  • Docs + docstring/comment only; no logic changed.

A follow-up commit archives planning/active/2026-06-12-docs-audit-findings.mdarchived/ (status: shipped).

🤖 Generated with Claude Code

lesnik512 and others added 2 commits June 13, 2026 13:55
Closes the open tail of the 2026-06-12 docs audit (bugs B1–B14 shipped in
#63, inaccuracies I1–I22 in #64; this is the improvements + source-side
remainder). Every source-referenced claim was verified against the code.

Docs (P1–P25):
- index.md: sync the on-page index with mkdocs nav (tutorials,
  instrumentation seams, prometheus/otel setup, new Operations section).
- installation.md: document the `all` extra.
- how-it-works.md: self-contained DLQ snippet; retarget "Relay tutorial"
  link to the actual tutorial.
- basic.md: say to save the module as app.py.
- tutorials: schema-validation "what's next" pointer; `faststream[cli,kafka]`.
- relay.md: import OutboxMessage alias; document the unstarted-foreign-broker
  WARNING + fail-and-retry safety net; correct the _OutboxConfigError row
  fate (lease-expiry retry, not retry_strategy); fix the misplaced
  NotImplementedError comment.
- timers.md: timer_id dedups only live rows (partial index); fix the
  undefined-`order` snippet.
- subscriber.md: document multi-queue subscribers + connection budget +
  same-queue competition; MANUAL silent-return = terminal reject warning.
- publisher.md: "publisher's" not "decorator's" static headers; make the
  chained example coherent (FastAPI-context session note, no undefined
  symbols); duplicate-delivery-on-crash caveat.
- fastapi.md: document dlq_table/metrics_recorder/routers not exposed on
  OutboxRouter (no router workaround); clarify "fresh session per delivery";
  self-contained quickstart stubs.
- schema-validation.md + alembic.md: compare_server_default=False caveat
  (a green validate_schema does not prove server defaults exist).
- observability.md: `sum by (destination)` on per-queue PromQL; correct the
  `fetched` footnote (skipped when inflight full; first-queue tag only).
- checklist.md: real ExponentialRetry kwarg names (the shorthand raised
  TypeError if copied).

Source-side docstring/comment fixes (no logic change):
- testing.py: "list of _FakeRow records" not "list of dicts"; fix the
  `test_broker.fake_client.dlq_rows` accessor comment; correct the
  TestOutboxBroker docstring (future-dated rows fire immediately in sync
  mode — it contradicted the already-correct module docstring).
- publisher/usecase.py: de-duplicate the _REJECT_RELAY_MSG wording.

Verified: mkdocs build --strict clean (all links/anchors resolve); lint-ci
clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
All findings resolved: B1–B14 (#63), I1–I22 (#64), and P1–P25 + the 4
source-side notes (#72). Move active → archived with status: shipped and
PR provenance.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@lesnik512 lesnik512 merged commit 8324151 into main Jun 13, 2026
3 checks passed
@lesnik512 lesnik512 deleted the docs/audit-improvements-p1-p25 branch June 13, 2026 10:58
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