Network standard 0.2.1 - #1
Merged
Merged
Conversation
Rolls this satellite onto the standard that 2plot.ai, 2plot.dev and dash-documentation-boilerplate now ship. No dl2.* component changed; everything here is the documentation site, its analytics and its CI. Three defects found while doing it, all of which failed silently: * Crawler traffic was never counted. The tracker was a Flask before_request registered after add_llms_routes, and the llms bot middleware answers every crawler with prerendered HTML, which short-circuits the remaining handlers. No crawler request ever reached the ledger, so this site reported bot_hits: 0 to 2plot.ai structurally. Registration order cannot fix it -- Flask wants the tracker first, Starlette's add_middleware wants it last -- so it now wraps the WSGI/ASGI callable and sits outside the handler chain entirely. * Every page shipped an empty og:image. Dash emits the tag unconditionally and leaves it content="" when it finds no image, which unfurls as a blank card -- worse than declaring none. Fixed at the source via register_page(image_url=...). * The web app manifest could never have offered an install: empty name and short_name, and icon paths pointing at the site root where nothing is served. Nothing linked to it either. Also: a control-board toggle could rename the site at runtime (apply_llms_state re-registered the root page as "Home", which resolve_site_title skips as generic); the ad fetch and traffic rollup reached the hub as python-requests and inflated its bot_hits; and gunicorn was pinned under a CVE floor by a transitive markdown2dash pin. Adds: explicit SITE_BRAND on every surface, the internal-traffic contract in both directions, scripts/network_smoke.py + smoke_live.py, an 80-test secretless suite covering all of the above and the smoke scripts themselves, cd.yml, dependabot.yml, and the network CI baseline (least-privilege permissions, timeouts, actionlint, a Docker build/boot/battery job, in-image version fingerprints, pip-audit). Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
0.2.0 was never published, so 0.2.1 is the first release that reaches PyPI. The tag command, the check_release invocation and the expected /healthz body all said 0.2.0. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.