Discover
Learn about a community, its purpose and its published rules before deciding whether to participate.
Public description and charter: integration pendingdiff --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' 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. 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 @@ + + +
+ + + +A home for communities that govern themselves
+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.
+Learn about a community, its purpose and its published rules before deciding whether to participate.
Public description and charter: integration pendingSee community workgroups, ownership and events when the site supports those governed capabilities.
Committees and events: not enabled in this previewUnderstand decisions and evidence, without confusing an approved action with a verified outcome.
Human-readable receipt integration pendingA 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.