Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
9beb563
feat: rename SOP to LOOP across LoopForge
Nov 24, 2026
c32dd01
Merge origin/main into fix/pr1286
Nov 24, 2026
d8658d5
Apply LOOP terminology to copy merged from main and fix CHANGELOG anchor
Nov 24, 2026
cf30e06
Merge origin/main into fix/pr1286
Nov 24, 2026
9269d2d
Renumber the LOOP terminology migration to 043 and re-apply the renam…
Nov 24, 2026
eb22556
Restore the legacy (SOP:…) draft note check clobbered by the rename s…
Nov 24, 2026
d03ac06
Merge origin/main into fix/pr1286
Nov 24, 2026
8afd098
Merge origin/main into codex/rename-sop-to-loop
Nov 24, 2026
25261b9
fix(chatbot): recognize proposal receipts saved before the LOOP rename
Nov 24, 2026
f6e6269
Merge origin/main into codex/rename-sop-to-loop
Nov 25, 2026
4dbdc4e
Merge origin/main into codex/rename-sop-to-loop
Nov 25, 2026
6a35c49
Apply LOOP terminology to the chat attribution copy merged from main
Nov 25, 2026
b06d138
Merge origin/main into codex/rename-sop-to-loop
Nov 25, 2026
dfac081
Resume paused children marked before the LOOP rename
Nov 25, 2026
462e8a3
Merge origin/main into codex/rename-sop-to-loop
Nov 25, 2026
c65fac8
Merge remote-tracking branch 'refs/remotes/origin/merge-audit/main' i…
codex Nov 25, 2026
b271be0
Merge main and preserve LOOP terminology in updated workflows
codex Nov 25, 2026
ed9eddf
test: cover run evaluation before approval
codex Nov 25, 2026
8c53442
test: exercise five previously uncovered platform routes
codex Nov 25, 2026
a88d01b
fix: translate LOOP evaluation and runner allocation messages
codex Nov 25, 2026
74dfee4
fix(engine): name LOOP in the remaining auto-assign errors
Nov 25, 2026
1fec864
Merge main while preserving LOOP terminology
codex Nov 25, 2026
7c6a20a
Merge remote-tracking branch 'refs/remotes/origin/merge-audit/release…
codex Nov 25, 2026
1be1d8a
Merge updated Runner controls without losing LOOP translations
codex Nov 25, 2026
50b5c89
fix: name LOOP in errors merged from main
Nov 25, 2026
a744e02
fix(migrations): preserve customized LOOP template copy
codex Nov 25, 2026
318d927
test(install): copy migration 043 into the live install fixture
Nov 25, 2026
e523d8c
Merge main into the LOOP terminology branch
codex Nov 26, 2026
bd3fb43
Name LOOP in comments and test copy merged from main
Nov 26, 2026
4d8ce40
Merge origin/main (68ed15f3) into codex/rename-sop-to-loop
Nov 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/repository-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"ai-agents",
"multi-agent",
"agentic-workflow",
"sop",
"loop",
"workflow-automation",
"software-engineering",
"human-on-the-loop",
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
run: bash scripts/build-chatbot.sh
- name: Let Chromium use its sandbox as an unprivileged user
run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
# Engine and API tests run SOP nodes in the shared test-native sandbox,
# Engine and API tests run LOOP nodes in the shared test-native sandbox,
# which is bwrap on Linux.
- name: Install bubblewrap for the native sandbox
run: sudo apt-get update && sudo apt-get install -y bubblewrap
Expand Down Expand Up @@ -91,13 +91,13 @@ jobs:
working-directory: e2e
- run: bash ../scripts/install-playwright-deps.sh npx playwright
working-directory: e2e
# The e2e SOPs and the runner the suite starts use the native e2e sandbox,
# The e2e LOOPs and the runner the suite starts use the native e2e sandbox,
# which is bwrap on Linux.
- name: Let bubblewrap create user namespaces
run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
- name: Install bubblewrap for the native sandbox
run: sudo apt-get update && sudo apt-get install -y bubblewrap
# The welcome SOP runs in generic-docker. As in a Compose installation, it
# The welcome LOOP runs in generic-docker. As in a Compose installation, it
# uses the pinned platform image instead of building one during the tests.
- name: Pull the pinned platform image for the generic-docker sandbox
run: |
Expand Down
89 changes: 45 additions & 44 deletions CHANGELOG.md

Large diffs are not rendered by default.

94 changes: 48 additions & 46 deletions README.md

Large diffs are not rendered by default.

88 changes: 45 additions & 43 deletions README.zh-CN.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion THIRD_PARTY_NOTICES.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ SOFTWARE.

## Executor CLI packages

The Docker build downloads pinned Codex, CodeBuddy and DeepSeek Harness (`@deepseek-ai/dsh`, MIT) CLI packages from their provider registries. DeepSeek Harness depends on `@img/sharp-libvips-linux-x64` / `@img/sharp-libvips-linux-arm64`, unmodified prebuilt libvips shared libraries under LGPL-3.0-or-later; the library versions are listed in the package's `versions.json`, and their sources are available from https://github.com/libvips/libvips and https://github.com/lovell/sharp-libvips. Claude Code is proprietary and is not included in published images. When a conversation asks to install a missing CLI, the platform downloads the pinned `@anthropic-ai/claude-code` or `@deepseek-ai/dsh` package, or the public npm package for OpenCode, Kimi Code or Pi, into the installation's data directory. Cursor CLI and Antigravity are installed with their providers' installers. An SOP sandbox that selects Claude Code, OpenCode, Kimi Code or Pi installs the same package on first use. These packages and their bundled dependencies retain the licenses/notices shipped by their providers and are subject to those providers' terms; they are not relicensed under LoopForge's MIT license. Provider accounts, credentials and service terms apply separately. The installed packages retain their original license/readme files.
The Docker build downloads pinned Codex, CodeBuddy and DeepSeek Harness (`@deepseek-ai/dsh`, MIT) CLI packages from their provider registries. DeepSeek Harness depends on `@img/sharp-libvips-linux-x64` / `@img/sharp-libvips-linux-arm64`, unmodified prebuilt libvips shared libraries under LGPL-3.0-or-later; the library versions are listed in the package's `versions.json`, and their sources are available from https://github.com/libvips/libvips and https://github.com/lovell/sharp-libvips. Claude Code is proprietary and is not included in published images. When a conversation asks to install a missing CLI, the platform downloads the pinned `@anthropic-ai/claude-code` or `@deepseek-ai/dsh` package, or the public npm package for OpenCode, Kimi Code or Pi, into the installation's data directory. Cursor CLI and Antigravity are installed with their providers' installers. A LOOP sandbox that selects Claude Code, OpenCode, Kimi Code or Pi installs the same package on first use. These packages and their bundled dependencies retain the licenses/notices shipped by their providers and are subject to those providers' terms; they are not relicensed under LoopForge's MIT license. Provider accounts, credentials and service terms apply separately. The installed packages retain their original license/readme files.

The platform image also includes the official WeCom CLI `@wecom/cli@1.3.4` and its matching platform binary package, distributed under the MIT License, Copyright (c) 2026 WeCom. Their original license and readme files are retained in the image's npm package directories. Source: <https://github.com/WecomTeam/wecom-cli>.

Expand Down
2 changes: 1 addition & 1 deletion chatbot/src/ActivityTrace.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ export default function ActivityTrace({
}) {
const [expanded, setExpanded] = useState(false);
const [now, setNow] = useState(Date.now);
// Fold the trace once its turn finishes (an SOP node keeps this instance).
// Fold the trace once its turn finishes (a LOOP node keeps this instance).
useEffect(() => {
if (!live) setExpanded(false);
}, [live]);
Expand Down
18 changes: 9 additions & 9 deletions chatbot/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,10 @@ const homeStarters = [
icon: "sparkles",
tone: "blue",
title: "快速接入",
description: "提供最低限度的鉴权与仓库,用默认角色与 SOP 立即开始。",
steps: ["鉴权", "仓库", "默认 SOP"],
description: "提供最低限度的鉴权与仓库,用默认角色与 LOOP 立即开始。",
steps: ["鉴权", "仓库", "默认 LOOP"],
},
// New users asked how to hook up a test environment and how roles and SOPs
// New users asked how to hook up a test environment and how roles and LOOPs
// work; these two cards start a guided conversation instead of dropping them
// on a settings page.
{
Expand All @@ -182,11 +182,11 @@ const homeStarters = [
id: "sop",
icon: "workflow",
tone: "green",
title: "选用 SOP 与角色",
description: "了解产品、前端、后端三套交付 SOP 和其中的角色,按需求推荐一套。",
title: "选用 LOOP 与角色",
description: "了解产品、前端、后端三套交付 LOOP 和其中的角色,按需求推荐一套。",
steps: ["产品", "前端", "后端"],
prompt:
"我准备写需求了。平台内置的产品、前端、后端交付 SOP 分别适合什么场景、好在哪里、里面有哪些角色?请结合当前项目推荐一套,并告诉我怎么绑定和派发第一条需求。我的需求是:",
"我准备写需求了。平台内置的产品、前端、后端交付 LOOP 分别适合什么场景、好在哪里、里面有哪些角色?请结合当前项目推荐一套,并告诉我怎么绑定和派发第一条需求。我的需求是:",
},
];

Expand Down Expand Up @@ -1907,7 +1907,7 @@ export default function App() {
kind: "run",
id: run.id,
runId: run.id,
name: run.workflowSnapshot?.name || "SOP 运行",
name: run.workflowSnapshot?.name || "LOOP 运行",
nodeId,
})
}
Expand Down Expand Up @@ -1986,7 +1986,7 @@ export default function App() {
<button
ref={projectPicker}
className={`context-pill project-picker${chat.projectId ? "" : " is-unset"}`}
title="对话所属的项目:需求、仓库、角色和 SOP 都按项目区分"
title="对话所属的项目:需求、仓库、角色和 LOOP 都按项目区分"
aria-label="选择项目"
aria-haspopup="listbox"
aria-expanded={menu?.type === "project"}
Expand Down Expand Up @@ -2474,7 +2474,7 @@ export default function App() {
) : dialog.type === "delete" ? (
<p>
删除“{dialog.session.title}”的聊天记录?本对话里还没提交 MR
的需求单会一并删除,已提交 MR 的需求和已保存的 SOP 会保留。
的需求单会一并删除,已提交 MR 的需求和已保存的 LOOP 会保留。
</p>
) : dialog.type === "edit" ? (
<>
Expand Down
20 changes: 10 additions & 10 deletions chatbot/src/ArtifactPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function DefinitionPreview({ artifact }) {
<section className="definition-preview">
<div className="definition-summary">
<span className="artifact-type-label">
{artifact.kind === "sop" ? "SOP" : "角色"}
{artifact.kind === "sop" ? "LOOP" : "角色"}
</span>
<h2>{data.name || artifact.name}</h2>
<p>{data.description}</p>
Expand Down Expand Up @@ -170,7 +170,7 @@ function OperationPreview({ artifact, runs }) {
<section className="operation-preview">
{run ? (
<p>
{run.workflowSnapshot?.name || "SOP 运行"}
{run.workflowSnapshot?.name || "LOOP 运行"}
{node ? ` · ${node.name || node.id}` : ""}
</p>
) : null}
Expand Down Expand Up @@ -247,7 +247,7 @@ export default function ArtifactPanel({
}
});
// The browser shows a desktop-width page, so it widens the pane like an
// opened SOP node and restores the width afterwards.
// opened LOOP node and restores the width afterwards.
const layout = useArtifactPanelLayout(
root,
onClose,
Expand Down Expand Up @@ -320,7 +320,7 @@ export default function ArtifactPanel({
matchesArtifact(artifact, "文件"),
);
const visibleDefinitions = definitions.filter((artifact) =>
matchesArtifact(artifact, "SOP 与角色"),
matchesArtifact(artifact, "LOOP 与角色"),
);
const visibleOperations = operations.filter((artifact) =>
matchesArtifact(artifact, "待确认操作"),
Expand All @@ -337,7 +337,7 @@ export default function ArtifactPanel({
item.id,
item.name,
]),
"SOP 运行",
"LOOP 运行",
),
);
const visibleSubagents = subagents.filter((agent) =>
Expand Down Expand Up @@ -389,7 +389,7 @@ export default function ArtifactPanel({
<strong>{artifact.name}</strong>
<small>
{target
? `${artifact.kind === "sop" ? "SOP" : "角色"} · ${artifact.asset?.status === "published" ? "已发布" : "已保存"}`
? `${artifact.kind === "sop" ? "LOOP" : "角色"} · ${artifact.asset?.status === "published" ? "已发布" : "已保存"}`
: artifact.source}
{artifact.size
? ` · ${artifact.size < 1024 ? `${artifact.size} B` : `${Math.ceil(artifact.size / 1024)} KB`}`
Expand Down Expand Up @@ -701,13 +701,13 @@ export default function ArtifactPanel({
) : null}
{visibleDefinitions.length ? (
<section className="artifact-section">
<h3>SOP 与角色</h3>
<h3>LOOP 与角色</h3>
{visibleDefinitions.map(row)}
</section>
) : null}
{visibleRuns.length ? (
<section className="artifact-section">
<h3>SOP 运行</h3>
<h3>LOOP 运行</h3>
{visibleRuns.map((run) => (
<button
type="button"
Expand All @@ -718,7 +718,7 @@ export default function ArtifactPanel({
kind: "run",
id: run.id,
runId: run.id,
name: run.workflowSnapshot?.name || "SOP 运行",
name: run.workflowSnapshot?.name || "LOOP 运行",
})
}
>
Expand All @@ -727,7 +727,7 @@ export default function ArtifactPanel({
</span>
<span className="artifact-file-copy">
<strong>
{run.workflowSnapshot?.name || "SOP 运行"}
{run.workflowSnapshot?.name || "LOOP 运行"}
</strong>
<small>
<i
Expand Down
40 changes: 20 additions & 20 deletions chatbot/src/QuickAccessWizard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const STEPS = [
},
{
id: "workflow",
title: "默认角色与 SOP",
title: "默认角色与 LOOP",
desc: "使用平台默认角色与通用交付流程",
},
{
Expand Down Expand Up @@ -666,7 +666,7 @@ async function provisionFallbackProjectSOP(projectId, workflowId, owner) {
"/api/workflows",
{
id: workflowId,
name: "后端交付 SOP",
name: "后端交付 LOOP",
projectId,
owner,
status: "draft",
Expand Down Expand Up @@ -767,7 +767,7 @@ export default function QuickAccessWizard({
: [
{
id: DEFAULT_SOP_ID,
name: "通用后端交付 SOP",
name: "通用后端交付 LOOP",
description:
"从需求定型、方案设计、代码实现、独立评审、测试验证到发起 MR 的标准交付链路。",
generic: true,
Expand Down Expand Up @@ -839,8 +839,8 @@ export default function QuickAccessWizard({
? "平台默认模板"
: projectMode === "existing" &&
workflow.projectId === currentProject?.id
? "本项目已有 SOP(直接复用)"
: "共享 SOP";
? "本项目已有 LOOP(直接复用)"
: "共享 LOOP";
return {
value: workflow.id,
label: workflow.name,
Expand Down Expand Up @@ -1002,7 +1002,7 @@ export default function QuickAccessWizard({

useEffect(() => {
if (!open || !selectedWorkflowId) return undefined;
// Only platform templates have template roles; a project SOP would 404.
// Only platform templates have template roles; a project LOOP would 404.
const known = (workflows || []).find((w) => w.id === selectedWorkflowId);
if (known && !known.generic) {
setTemplateAgents([]);
Expand Down Expand Up @@ -1059,7 +1059,7 @@ export default function QuickAccessWizard({
else setSelectedWorkflowId(DEFAULT_SOP_ID);
}, [open, projectMode, currentProject?.id]);

// A new project starts from the platform template; the SOP picked for the
// A new project starts from the platform template; the LOOP picked for the
// previously selected project belongs to that project and is not offered.
useEffect(() => {
if (open && projectMode === "create") setSelectedWorkflowId(DEFAULT_SOP_ID);
Expand Down Expand Up @@ -1210,7 +1210,7 @@ export default function QuickAccessWizard({
setError("");
try {
let targetProject = currentProject;
// Save the SOP the page shows; a stale id hidden by the current
// Save the LOOP the page shows; a stale id hidden by the current
// filter must never be bound to the project.
const sopId = activeWorkflow?.id || DEFAULT_SOP_ID;
if (projectMode === "create") {
Expand Down Expand Up @@ -1298,7 +1298,7 @@ export default function QuickAccessWizard({
item.projectId === targetProject.id &&
((item.tags || []).includes(`generic-source:${sopId}`) ||
item.id === `${sopId}-${targetProject.id}` ||
item.name === (activeWorkflow?.name || "通用后端交付 SOP")),
item.name === (activeWorkflow?.name || "通用后端交付 LOOP")),
);
if (existingProjectSop) {
provisionedWorkflow = existingProjectSop;
Expand All @@ -1315,7 +1315,7 @@ export default function QuickAccessWizard({
`/api/workflows/${encodeURIComponent(sopId)}/clone`,
{
id: cloneId,
name: (activeWorkflow?.name || "通用后端交付 SOP").replace(
name: (activeWorkflow?.name || "通用后端交付 LOOP").replace(
/^通用/,
"",
),
Expand Down Expand Up @@ -1417,7 +1417,7 @@ export default function QuickAccessWizard({
<HarnessIcon name="sparkles" size={20} />
</div>
<h2 id="qa-wizard-title">快速接入</h2>
<p>提供最低限度的鉴权与仓库,直接使用默认角色和 SOP。</p>
<p>提供最低限度的鉴权与仓库,直接使用默认角色和 LOOP。</p>
</div>
<ol className="qa-steps">
{STEPS.map((item, index) => {
Expand Down Expand Up @@ -1503,7 +1503,7 @@ export default function QuickAccessWizard({
</h3>
<p className="qa-lede qa-success-item" style={{ "--i": 1 }}>
已关联默认角色与「
{completedSummary?.workflow?.name || "通用后端交付 SOP"}
{completedSummary?.workflow?.name || "通用后端交付 LOOP"}
」,现在可以直接在工作台对话或派发需求。
</p>
</div>
Expand All @@ -1530,7 +1530,7 @@ export default function QuickAccessWizard({
</span>
<span>
{completedSummary?.workflow?.name ||
"通用后端交付 SOP"}
"通用后端交付 LOOP"}
</span>
<small>已绑定</small>
</li>
Expand Down Expand Up @@ -1616,9 +1616,9 @@ export default function QuickAccessWizard({
<HarnessIcon name="workflow" size={16} />
</span>
<span className="qa-action-copy">
<strong>查看或修改 SOP</strong>
<strong>查看或修改 LOOP</strong>
<small>
在流程模板里查看默认 SOP,或复制到项目自由调整
在流程模板里查看默认 LOOP,或复制到项目自由调整
</small>
</span>
<HarnessIcon
Expand Down Expand Up @@ -2005,12 +2005,12 @@ export default function QuickAccessWizard({
{activeStep.id === "workflow" ? (
<div className="qa-pane">
<div className="qa-field">
<span className="qa-label">默认交付 SOP</span>
<span className="qa-label">默认交付 LOOP</span>
<HarnessSelect
value={activeWorkflow?.id || DEFAULT_SOP_ID}
options={sopSelectOptions}
onChange={setSelectedWorkflowId}
ariaLabel="默认交付 SOP"
ariaLabel="默认交付 LOOP"
/>
</div>

Expand Down Expand Up @@ -2051,7 +2051,7 @@ export default function QuickAccessWizard({
<div
key="stages"
className="qa-flow-track qa-stagger"
aria-label="SOP 阶段预览"
aria-label="LOOP 阶段预览"
>
<div
className="qa-flow-node is-edge"
Expand Down Expand Up @@ -2144,11 +2144,11 @@ export default function QuickAccessWizard({
</dd>
</div>
<div>
<dt>默认 SOP</dt>
<dt>默认 LOOP</dt>
<dd>
<span className="qa-dot is-ok" />
<span>
{activeWorkflow?.name || "通用后端交付 SOP"}(
{activeWorkflow?.name || "通用后端交付 LOOP"}(
{roles.length} 个默认角色)
</span>
</dd>
Expand Down
2 changes: 1 addition & 1 deletion chatbot/src/RichContent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ export function RichContent({ message, assets = emptyAssets, projectId = "" }) {
);
}

// Full-window viewer shared by chat images, artifact previews and SOP node
// Full-window viewer shared by chat images, artifact previews and LOOP node
// files. Double-click an image to open; Esc closes.
export function ImageLightbox({ src, alt, onClose }) {
useEffect(() => {
Expand Down
Loading
Loading