Draft Realm Chat legal and conduct contract - #178
Draft
ael-dev3 wants to merge 2 commits into
Draft
Conversation
ael-dev3
force-pushed
the
agent/realm-chat-legal-contract
branch
from
August 3, 2026 10:40
57034c9 to
94a2993
Compare
ael-dev3
force-pushed
the
agent/realm-chat-legal-contract
branch
from
August 3, 2026 12:08
94a2993 to
24fa82a
Compare
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.
Scope
This is PR A only from the staged Realm Chat program: the review-only legal, conduct, privacy, and product contract. Realm Chat remains disabled.
It proposes:
2026-08-03-v5;2026-08-03-HEGEMONY-SOCIAL-CONTRACT-V4;2026-08-03-hegemony-entry-agreement-v5;2026-08-03-v6; and2026-08-03-realm-chat-policy-v1forrealm:genesis-001.The visible Terms and Social Contract are bound to new exact SHA-256 digests. V4 becomes retained historical evidence, the per-FID evidence bound increases from five to six, and all production-safety checks retain their fail-closed upper bound.
What this does not ship
This PR adds no chat UI, public route, SpacetimeDB table or reducer, generated binding, production channel seed, database publication, deployment, moderation action, secret, config change, live-player data, or activation claim.
WARPKEEP_REALM_CHAT_CLIENT_ENTRY_ENABLEDremainsfalse. Server channel activation must remain authoritative in later work.Review blockers
Do not merge or activate based on this draft without explicit project-owner and qualified legal review.
The required review must resolve and approve:
If the proposed bundle is later approved, merged, and deployed as current, every Keeper will need a fresh unchecked acceptance. Earlier evidence cannot satisfy the V5 entry gate.
Contract fixed for later PRs
realm:genesis-001;The authority model follows SpacetimeDB's documented private-table and caller-filtered-view boundaries:
https://spacetimedb.com/docs/tables/access-permissions/
https://spacetimedb.com/docs/functions/views/
Security re-audit
A third-pass audit found and fixed one release-critical rollout mismatch plus several integrity/drift gaps:
review-only-rollout-blocked; read-only publisher dry runs remain available;downloadorping; andThe diff was also rechecked for browser-side identity/sequence authority, public chat storage, exposed secrets, schema or generated-binding changes, unsafe legal-document active content, and accidental chat activation. No additional runtime authority path was found. Chat remains disabled.
Verification
Passed on the rebased head:
npm run checkon Node 22.23.2 — 268 files, 2,972 tests, typecheck, production build, asset/license/file-size checks, production-output exclusions, and Mini App verification;pnpm --dir services/auth-bridge run check— 285 unit tests, 11 Workerd tests, and both typecheck passes;pnpm --dir spacetimedb run verify— 326 tests and SpacetimeDB 2.6.1 module build;npm run stdb:verify-bindings;npm run stdb:verify-worker-migration;npm run stdb:verify-access-request-migration;npm run stdb:verify-additive-migration— complete disposable protocol-v14 proof, with no live database access;git diff --checkplus a range-diff after rebasing onto currentmain.Environment-only limitation:
chrome-attestationbecause this Mac's Google Chrome executable has two hard links, while the verifier requires exactly one. The executable is also group-writable. Warpkeep correctly refused to launch it. No repository or Chrome changes were made; browser QA must be repeated in a clean reviewed Chrome environment before merge.Later PR sequence