Skip to content

feat(org): Phase 3 in-host Knowledge org-ui slice - #62

Merged
XYAIStudio merged 2 commits into
mainfrom
cursor/org-knowledge-phase3-9b02
Sep 19, 2026
Merged

XYAIStudio merged 2 commits into
mainfrom
cursor/org-knowledge-phase3-9b02

Conversation

@XYAIStudio

Copy link
Copy Markdown
Owner

Summary

Phase 3 vertical slice: Knowledge as an in-host Organization sub-UI, using the same org-ui dual-delivery seam as Announcements (#57), Org chart (#58), Employees (#59), Governance (#60), and Skills (#61).

  • Shared page: dashboard/src/org-ui/pages/knowledge (KnowledgePage)
  • Dashboard route: /organization/knowledge (workbench path tab + entry card)
  • Host APIs: GET/POST /api/org-module/knowledge, GET /api/org-module/knowledge/{kb_id}, GET …/{kb_id}/documents/{doc_id}, POST …/{kb_id}/notes — thin wrappers around existing KnowledgeService
  • Writes use require_permission("knowledge_bases") (admin bypass); the page hides create actions without that permission
  • freeos org export-standalone now lists knowledge and imports the same KnowledgePage

No sidecar, no iframe, no second login wall. This is not a second knowledge database.

Org Knowledge vs FreeOS KB

Surface What it is Where it lives
Organization Knowledge (this page) Browse / create notes against the same host knowledge bases Chat and Agents retrieve from Octop knowledge_bases / knowledge_documents · /organization/knowledge · /api/org-module/knowledge*
Host Knowledge Bases Full mount / upload / folders / embeddings / IMA same tables · /knowledge-bases · /api/knowledge-bases*
openXYOS sidecar knowledge Notes + parsed files in SQL.js optional :3780 /api/knowledge — not cloned, not read on the default path

UX is inspired by openXYOS KnowledgePage (bases + notes/files, search, create note). Data is host KB rows. A note created here becomes a markdown document in the selected host base, so chat retrieval can see it.

This does not merge sidecar notes into a new org-only table. It also does not replace the host Knowledge Bases page.

Data model (host SoT)

Surface Store API
Org Knowledge view Octop knowledge_bases / knowledge_documents GET /api/org-module/knowledge · GET …/{kb_id} · POST … · POST …/{kb_id}/notes
Host Knowledge Bases same /api/knowledge-bases* · Dashboard /knowledge-bases
Sidecar notes/files openXYOS SQL.js optional /api/knowledge — default path does not start or call :3780

Deferrals (out of this PR)

  • Chat / start a retrieval conversation from this page
  • Sidecar notes/files CRUD and parse pipeline
  • Upload, folders, embedding settings, IMA mount (stay on /knowledge-bases)
  • Chat / Tasks / Agents / Settings
  • Full export-standalone Vite/Node packaging (Phase 5)

Target branch

  • Base is main (continues the Phase 3 org-ui slices already merged there)

Type of change

  • New feature

Test plan

  • uv run pytest tests/unit/test_org_knowledge.py tests/unit/cli/test_org_export_standalone.py tests/unit/test_org_skills.py tests/unit/test_org_governance.py tests/unit/test_org_chart.py tests/unit/test_org_announcements.py tests/unit/test_org_module.py (61 passed)
  • uv run ruff check + uv run mypy --strict on changed org/knowledge modules
  • cd dashboard && npx tsc --noEmit
  • cd dashboard && npx vitest run src/org-ui src/pages/Organization src/routes/controlAdminPath.test.ts (74 passed)
  • make all (full ship bar; run in CI)

Live browser walkthrough of /organization/knowledge was not run here (no signed-in FreeOS host in this environment). Component tests cover list/create/preview without iframe.

Checklist

  • Updated CHANGELOG.md (if user-facing)
  • README / docs updated (if needed)
Open in Web Open in Cursor 

cursoragent and others added 2 commits September 19, 2026 03:46
Bridge Organization Knowledge to host FreeOS knowledge bases instead of
cloning the openXYOS sidecar notes/files DB. Add KnowledgePage under
/organization/knowledge, wrap KnowledgeService on /api/org-module/knowledge,
and include the page in export-standalone.

Co-authored-by: XYAI Labs <haoboy8@gmail.com>
Record that Organization Knowledge bridges host FreeOS knowledge bases
rather than cloning the sidecar notes database.

Co-authored-by: XYAI Labs <haoboy8@gmail.com>
@XYAIStudio
XYAIStudio marked this pull request as ready for review September 19, 2026 03:47
@XYAIStudio
XYAIStudio merged commit a2b879e into main Sep 19, 2026
4 checks passed
@XYAIStudio
XYAIStudio deleted the cursor/org-knowledge-phase3-9b02 branch September 19, 2026 03:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants