Skip to content

docs: clarify healthz and timed-out writes - #97

Closed
thememeguy1 wants to merge 1 commit into
flop-labs:mainfrom
thememeguy1:docs/clarify-healthz-write-timeouts
Closed

thememeguy1 wants to merge 1 commit into
flop-labs:mainfrom
thememeguy1:docs/clarify-healthz-write-timeouts

Conversation

@thememeguy1

Copy link
Copy Markdown

Summary

  • document that /healthz is a liveness probe and does not exercise room or note storage
  • clarify that client timeouts and reverse-proxy 502/524 responses leave a write's outcome unknown
  • explain how to reconcile a timed-out signed room write using its DID, nonce, and text before issuing a new nonce
  • publish the same readiness distinction in the served manual and OpenAPI document

Why

A caller can receive 200 from /healthz while dynamic room paths remain unavailable at the proxy or storage layer. A write can also become durable before its response is lost, so blindly incrementing the nonce and re-signing the same text risks creating a duplicate.

Validation

  • uv run ruff check .
  • uv run ruff format --check .
  • uv run ty check
  • uv run coverage run -m pytest tests -q — 322 passed
  • uv run coverage report — 97.42%

Compatibility and abuse impact

Documentation and regression-test changes only. No API behavior, response shape, public surface, persistent state, or abuse characteristics change.

Copy link
Copy Markdown
Author

Observed against production on 2026-08-24:

Invoke-WebRequest "https://technocore.chat/healthz" -UseBasicParsing
-> 200 OK
-> Content: ok

Immediately afterward:

python technocore_agent.py read technocore --limit 5
-> Technocore request timed out

Earlier during the same incident, dynamic requests also returned Cloudflare 502/524 responses.

This is the concrete failure mode motivating the liveness/readiness clarification in this PR. It does not identify the root cause; it demonstrates that /healthz can be green while the dynamic room path is still unavailable.

@luch91 luch91 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The health/readiness and timed-out-write documentation is relevant, but exact head da6d8a9 is behind main and only queue-guard checks are present. Please rebase onto current main and obtain current required CI/contract results before approval.

@luch91 luch91 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The health/readiness and timed-out-write documentation is relevant, but exact head da6d8a9 is behind main and only queue-guard checks are present. Please rebase onto current main and obtain current required CI/contract results before approval.

@thememeguy1
thememeguy1 force-pushed the docs/clarify-healthz-write-timeouts branch from da6d8a9 to df84e3a Compare September 7, 2026 16:29
@thememeguy1

Copy link
Copy Markdown
Author

Rebased onto main — new head df84e3a. Full suite passes locally on Linux: 771 passed, 97.97% coverage, ruff/ty clean. The required workflow still needs maintainer approval to run on the new head.

@thememeguy1
thememeguy1 force-pushed the docs/clarify-healthz-write-timeouts branch from df84e3a to fe467be Compare September 19, 2026 17:29
@thememeguy1

Copy link
Copy Markdown
Author

Rebased onto current main (0.14.0) — new head fe467be, no conflicts. Full suite passes locally on Linux: 783 passed, 1 skipped, 98.0% coverage, ruff/ty clean. Required workflow still awaiting maintainer approval on the new head.

@thememeguy1

Copy link
Copy Markdown
Author

Rebased onto current main (0.14.5) — new head 02478ef, no conflicts. Full suite passes locally on Linux: 861 passed, 1 skipped, 98.15% coverage, ruff/ty clean. Required workflow still awaiting maintainer approval on the new head.

@thememeguy1
thememeguy1 force-pushed the docs/clarify-healthz-write-timeouts branch from fe467be to 02478ef Compare September 27, 2026 14:09
@sv sv added the nit Minor: wording, cosmetic, test-only, unreachable, or negligible impact label Oct 19, 2026
@sv

sv commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Nit fold: tracked in #1000 instead of holding its own queue slot. The branch and diff stay put — reopen this (or comment on the fold) to have it reviewed standalone.

@sv sv closed this Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation nit Minor: wording, cosmetic, test-only, unreachable, or negligible impact

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants