Repository navigation
Add Kuan strategic plan: DB, server functions, UI, routes, RLS and tests - #35
Merged
NomosLudens merged 2 commits intoJul 12, 2026
Merged
Conversation
Contributor
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
kuan | 1f13655 | Jul 12 2026, 05:10 AM |
NomosLudens
deleted the
codex/integrate-kuan-strategic-plan-functionality-xr6cqf
branch
September 4, 2026 00:22
NomosLudens
pushed a commit
that referenced
this pull request
Sep 4, 2026
…-plan-functionality-xr6cqf Add Kuan strategic plan: DB, server functions, UI, routes, RLS and tests
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.
Motivation
Description
src/lib/kuan-plan.functions.tsimplement workspace loading, upsert plan, propose/transition/supersede decisions, milestone flows, review cycles, reviews, and linking/unlinking entities with logging and ownership checks.kuanyin_supersede_plan_decisionRPC guarded with proper privilege hardening undersupabase/migrations/20260712002000_create_kuanyin_strategic_plan.sqland20260712003000_harden_kuan_plan_rpc_privileges.sql, and a repair migration to adjust earlier chat policy changes./kuan/plano), route registrations,KuanPlanPage, decision cards, dialogs, action-card support for three new action types, plan-context rendering and injection into the chat prompt, and minor server adapter path fixes (serve.mjs).docs/qa/PR33_KUAN_CENTRAL_ESTRATEGICA.mdand a reproducible isolation scriptscripts/qa/pr33-real-isolation.tsto validate RLS across two Guardians.Testing
vitest; the new tests includesrc/lib/kuan-plan.transitions.test.ts,src/lib/kuan-plan-context.test.ts,src/lib/kuan-plan.sql-contract.test.tsand updatedsrc/lib/kuanyin-action.test.ts, and the suite passed locally undervitest.docs/qa/PR33_KUAN_CENTRAL_ESTRATEGICA.mdand the real-isolation scriptscripts/qa/pr33-real-isolation.tsis provided for validation against a real Supabase project; real Supabase QA was not executed in this environment due to missing credentials.SECURITY INVOKERand privilege hardening is applied; those checks are covered by the added contract test and passed in the test run.Codex Task