Repository navigation
feat(org): bidirectional asset bus — loop ingest into managed control plane (P1.1) - #76
Merged
Merged
Conversation
XYAIStudio
marked this pull request as ready for review
September 20, 2026 10:22
When a managed organization runtime, OPENXYOS_BASE_URL, or org-os/runtime.json is present, loop run and assets apply POST ingest into that control plane for the current org workspace tenant (remote_applied=true). Without a runtime URL, keep mirror-only behavior and do not start Node. Colleagues stay registered as org-<slug> agents. Co-authored-by: XYAI Labs <haoboy8@gmail.com>
cursor
Bot
force-pushed
the
cursor/org-asset-bus-p11-709d
branch
from
September 20, 2026 10:22
c957395 to
9c412d6
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.
摘要
打通 FreeOS 宿主与组织控制面的双向资产总线(P1.1)。有托管组织运行时(或
OPENXYOS_BASE_URL/{FREEOS_HOME}/org-os/runtime.json)时,自增长循环与 assets apply 会 ingest 进当前组织工作区租户(remote_applied=true);没有运行时地址时保持镜像-only,且不拉起 Node。宿主 ↔ 组织资产方向
freeos org loop run/POST /api/org-module/loop/run/assets apply在控制面 URL 可用时 POST/api/freeos/ingest(员工 / 人才 / 技能 / 插件 / MCP)org-<slug>智能体{FREEOS_HOME}/openxyos-mirror/<tenant>/,remote_applied=false,不ensure_sidecar托管运行时启动时把 origin 写入
{FREEOS_HOME}/org-os/runtime.json,CLI 与 BFF 都能发现,不必依赖调用方导出OPENXYOS_BASE_URL。隐式127.0.0.1:3780仍不是必选控制面。Managed Node / iframe 仍是过渡桥;本 PR 走宿主路径(
src/octop/modules/org_os、/api/org-module/*)以及有无 Node 都能工作的 mirror/ingest。租户与身份
--tenant-id/FREEOS_ORG_TENANT_ID/modules.org_os.tenant_id/ 组织房间organization_id),不再硬编码1。ui_tenant_id;非数字租户才回退到控制面 session。如何验证
重点:
test_growth_loop_does_not_require_node_sidecar仍为绿(无 URL 时不启 Node,只写镜像)。test_growth_loop_ingests_when_runtime_json_present/test_apply_ingests_via_runtime_json_without_env_url:仅有runtime.json、未设OPENXYOS_BASE_URL时remote_applied=true,ingest 租户为工作区租户。test_apply_ingests_org_workspace_tenant_not_sidecar_session:工作区租户1不会被边车 session2覆盖。范围外
完整 App.tsx 迁移、export-standalone 重写(P1.2)、IM /approve、砍掉 Node(P2)、website CSS。