From ac87a907e849fc6ca2194cd7108494c345c11c06 Mon Sep 17 00:00:00 2001 From: Dennis Palatov Date: Wed, 11 Nov 2026 20:22:50 -0800 Subject: [PATCH 1/4] hub/site: add public visitor preview with explicit non-operational status --- hub/site/index.html | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 hub/site/index.html diff --git a/hub/site/index.html b/hub/site/index.html new file mode 100644 index 00000000..ed7f122d --- /dev/null +++ b/hub/site/index.html @@ -0,0 +1,38 @@ + + + + + + + Community Hub — public site preview + + + +
Community HubPublic-site preview
+
+

A home for communities that govern themselves

+

Find your people. Know how your community works.

+

Hub is an open-source foundation for community sites with explicit membership, roles, decisions, and accountable activity. Each community controls its own site and rules.

+

Preview, not a live community. This page contains no member data, registration, or admissions. It does not connect to a Hub daemon. A live service must verify membership and disclosure on its server before showing private information.

+
+

Discover

Learn about a community, its purpose and its published rules before deciding whether to participate.

Public description and charter: integration pending
+

Participate

See community workgroups, ownership and events when the site supports those governed capabilities.

Committees and events: not enabled in this preview
+

Accountability

Understand decisions and evidence, without confusing an approved action with a verified outcome.

Human-readable receipt integration pending
+
+

What happens next?

A visitor should be able to read public information without installing Hestia. Future membership and participation actions must use authenticated, governed Hub endpoints. There is deliberately no fake Join button here.

+
+ + + From 66b9a56ffc7b30056ef38658c9fef0cd9d331891 Mon Sep 17 00:00:00 2001 From: Dennis Palatov Date: Wed, 11 Nov 2026 20:22:52 -0800 Subject: [PATCH 2/4] hub/site: add public visitor preview with explicit non-operational status --- hub/site/README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 hub/site/README.md diff --git a/hub/site/README.md b/hub/site/README.md new file mode 100644 index 00000000..52bdf1ab --- /dev/null +++ b/hub/site/README.md @@ -0,0 +1,23 @@ +# Hub public website — first implementation slice + +Companion to [member website PRD](../docs/PRD_MEMBER_WEBSITE_FIRST_USER_2026-11-11.md) and Web4 #990/#991. + +## What this is +A static, responsive, accessible **public visitor shell**, located in the canonical `web4/hub` tree. It shows the intended member-facing information architecture without fabricating membership, admissions, profiles or witnessed outcomes. It runs without Hestia or private credentials. + +Preview locally: from this directory, `python3 -m http.server 8000`, then visit `http://localhost:8000`. This is **not** a production deployment and is not yet served by the Hub daemon. + +## Next binding slice (blocking release) +- Render site name, purpose, public charter and governing disclosure from a server-side **public projection**; do not accept browser-supplied law or identity. +- Keep `/admin/*`, operator keys and member-only tools completely outside the public-site bundle and public plane. No browser direct calls to loopback operator APIs. +- Treat locked, maintenance and unavailable states explicitly; never turn an unavailable read into a clean/empty membership claim. +- Add explicit admission choices only after API-level consent, CSRF/replay protection, authentication and authorization tests exist. +- Cross-browser privacy tests: no member-only or self-only profile fields in HTML, preload, cache, logs, or public JSON. +- Add read-only committees/ownership/events backed by governed projections, followed by real officer workflow and channel coexistence. +- Verify reverse-proxy HTTPS, CSP, no unsafe inline scripts, keyboard navigation and mobile before claiming public deployment. + +## Acceptance +1. Visitor sees purpose and preview limitations without logging in. +2. No fake join, no member listing, no invented action receipts. +3. No JavaScript or access token is required to render the page. +4. The future live endpoint must pass a fresh-user path on a real chapter, not merely this static preview. From 3a46801fac013b82f2e10dd1e8e5e37f9f320eac Mon Sep 17 00:00:00 2001 From: Dennis Palatov Date: Wed, 11 Nov 2026 20:22:54 -0800 Subject: [PATCH 3/4] hub/site: add public visitor preview with explicit non-operational status --- hub/site/test_site.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 hub/site/test_site.py diff --git a/hub/site/test_site.py b/hub/site/test_site.py new file mode 100644 index 00000000..9153315e --- /dev/null +++ b/hub/site/test_site.py @@ -0,0 +1,25 @@ +#!/usr/bin/env python3 +"""Zero-dependency regression: the public preview must not masquerade as a live community.""" +from pathlib import Path +import unittest + +PAGE = Path(__file__).with_name("index.html") + +class PublicSiteTests(unittest.TestCase): + def test_public_readable_without_js_or_login(self): + html = PAGE.read_text() + self.assertIn('', html) + self.assertIn('name="viewport"', html) + self.assertNotIn(" Date: Thu, 12 Nov 2026 21:21:37 -0800 Subject: [PATCH 4/4] ci(hub): gate public-site preview truthfulness regression --- .github/workflows/ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 94ad26cc..2cd90735 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,3 +57,11 @@ jobs: - name: Test working-directory: ${{ matrix.crate }} run: cargo test --locked + + public-site-preview: + name: hub public-site truthfulness (python) + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Check preview cannot masquerade as a live Hub + run: python3 -m unittest discover -s hub/site -p 'test_*.py'