Repository navigation
PR #31 — Kuan Commercial Integrity Hardening - #31
Merged
NomosLudens merged 9 commits intoJul 11, 2026
Merged
Conversation
- Secured Platform Admin boundaries and requirePlatformAdmin middleware. - Created robust pure native timezone handling & config select box for rules saving. - Replaced calendar .ics GREGORIAN compliance, value escaping and sanitization. - Implemented deep Resource Ownership Isolation across Guardian boundaries. - Locked down transition states in order and payment state machines. - Refactored public route to support opt-in privacy, sessionStorage fallback, visitor key crypto.randomUUID and clear saved data button. - Updated serve.mjs with binary-safe asset/index arrayBuffer loading and Buffer request payload parsing. - Documented full QA checklist under docs/qa/.
Contributor
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
kuan | 6308927 | Jul 11 2026, 11:01 PM |
… monthly calendar grid with indicators
NomosLudens
deleted the
codex/pr31-kuan-commercial-integrity-hardening
branch
September 4, 2026 00:22
NomosLudens
pushed a commit
that referenced
this pull request
Sep 4, 2026
- Secured Platform Admin boundaries and requirePlatformAdmin middleware. - Created robust pure native timezone handling & config select box for rules saving. - Replaced calendar .ics GREGORIAN compliance, value escaping and sanitization. - Implemented deep Resource Ownership Isolation across Guardian boundaries. - Locked down transition states in order and payment state machines. - Refactored public route to support opt-in privacy, sessionStorage fallback, visitor key crypto.randomUUID and clear saved data button. - Updated serve.mjs with binary-safe asset/index arrayBuffer loading and Buffer request payload parsing. - Documented full QA checklist under docs/qa/.
NomosLudens
pushed a commit
that referenced
this pull request
Sep 4, 2026
…egrity-hardening PR #31 — Kuan Commercial Integrity Hardening
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.
Description
This pull request implements the technical hardening specifications of PR #31 — Kuan Commercial Integrity Hardening on top of the
mainbranch. All security boundaries, temporal operations, and resource isolation protocols have been secured and verified natively with 100% testing coverage.Key Implementations:
Platform Admin Boundaries & Security (
src/lib/admin-security.ts):requirePlatformAdminand safe redirection validation usingprocess.env.KUAN_PUBLIC_APP_URL.Timezones & Calendar Temporal Alignment (
src/lib/kuan/calendar.ts):America/Sao_Paulo).kuan.config.tsx.business_context_id.CALSCALE:GREGORIAN.Multi-Tenant Resource Ownership Isolation:
assertOwnedClient,assertOwnedAppointment,assertOwnedOrder) across critical endpoints to block potential cross-guardian information leaks.Concurrent State Machine Transition Rules:
.eq(\"status\", previousStatus)) insidesrc/lib/kuanyin.functions.ts.Opt-In Client Privacy Consent Layer:
g.$guardianId.tsx(opt-out by default).localStorageONLY on positive opt-in.sessionStoragefallback (avoiding persistent device markers while preventing immediate active chat erasure on page reload).crypto.randomUUID().Binary-Safe Server Architecture (
serve.mjs):.arrayBuffer(). This guarantees UTF-8 integrity and blocks calendar/attachment binary payload corruption.Validation & Quality Assurance: