From f1302ed5b3952aeb4ad386a793c0c78fe90d7a3c Mon Sep 17 00:00:00 2001 From: weichen Date: Tue, 13 Oct 2026 15:47:16 +0000 Subject: [PATCH 1/7] Enable canonical versioned Go module consumption Why: Allow consumers to download an immutable module revision without nested source checkouts or local path replacements. Evidence: SELF package tests and the prior canonical-path rejection are recorded in the Dev dependency-workspace task card; remote consumption is replayed against the committed candidate. Impact: Change the module identity and its Go imports while preserving API behavior. Existing historical submodule revisions remain buildable. Refs: Versioned dependencies U1/U3; feature/dependency-workspace --- PROJECT.md | 6 +- README.md | 11 +++ cmd/agent-system/main.go | 8 +- cmd/storage-migrate/integration_test.go | 2 +- cmd/storage-migrate/main.go | 2 +- cmd/storage-migrate/main_test.go | 2 +- eval/deliverable_test.go | 2 +- eval/live/helpers_test.go | 2 +- go.mod | 34 +++------ go.sum | 16 ++++ internal/app/account_lister_test.go | 2 +- internal/app/app.go | 74 +++++++++---------- internal/app/compiled.go | 10 +-- internal/app/compiled_authz_test.go | 8 +- internal/app/compiled_list_test.go | 10 +-- internal/app/ext13_shared_search_test.go | 8 +- internal/app/ext18_admin_test.go | 2 +- internal/app/ext9_publish_test.go | 8 +- internal/app/hostcaps.go | 16 ++-- internal/app/inproc_host_test.go | 14 ++-- internal/app/intent_flags_test.go | 4 +- internal/app/knowledge_authorization_test.go | 10 +-- internal/app/project_lifecycle.go | 10 +-- internal/app/project_lifecycle_test.go | 10 +-- internal/app/resource_authz_v2_test.go | 2 +- internal/app/scoped_host_test.go | 8 +- internal/bus/bus.go | 2 +- internal/bus/bus_test.go | 2 +- internal/cardsvc/cardsvc.go | 4 +- internal/cardsvc/cardsvc_test.go | 4 +- internal/cardsvc/mirror_switch_test.go | 4 +- internal/cmdbus/cmdbus.go | 4 +- internal/cmdbus/cmdbus_test.go | 4 +- internal/cmdbus/command_tools_test.go | 2 +- internal/cmdbus/pending_store_test.go | 4 +- internal/cmdbus/slash_intent_test.go | 2 +- internal/ctxasm/ctxasm.go | 4 +- internal/ctxasm/ctxasm_test.go | 2 +- internal/ctxasm/finish.go | 6 +- internal/ctxasm/finish_test.go | 4 +- internal/ctxasm/replay_test.go | 4 +- internal/ctxasm/summary_test.go | 2 +- internal/ctxasm/surface_proj_test.go | 4 +- internal/ctxasm/think_replay_test.go | 4 +- internal/genui/genui.go | 4 +- internal/genui/genui_test.go | 8 +- internal/genui/replay_test.go | 10 +-- internal/hostapi/server.go | 4 +- internal/hostapi/server_test.go | 4 +- internal/hostapi/shared_search_test.go | 2 +- internal/ingest/docgen_roundtrip_test.go | 4 +- internal/ingest/ingest.go | 2 +- internal/ingest/ingest_test.go | 2 +- internal/ingest/ooxml_python_test.go | 2 +- internal/ingest/ooxml_test.go | 2 +- internal/ingest/pptx.go | 2 +- internal/ingest/xlsx.go | 2 +- internal/intentgate/gate.go | 2 +- internal/intentgate/gate_test.go | 2 +- internal/intentsem/generator.go | 4 +- internal/intentsem/intentsem_test.go | 4 +- internal/intentsem/scorer.go | 2 +- internal/pgbus/pgbus.go | 6 +- internal/pgbus/pgbus_test.go | 6 +- internal/plugins/agents.go | 2 +- internal/plugins/agents_test.go | 2 +- internal/plugins/host.go | 10 +-- internal/plugins/host_test.go | 12 +-- internal/plugins/host_v2.go | 8 +- internal/plugins/host_v2_test.go | 2 +- internal/profiles/profiles.go | 4 +- internal/projectscope/projectscope.go | 6 +- internal/prompts/parse.go | 2 +- internal/prompts/prompts_test.go | 4 +- internal/prompts/service.go | 4 +- internal/quality/checker.go | 2 +- internal/rag/chunker.go | 2 +- internal/rag/embed.go | 2 +- internal/rag/hybrid.go | 6 +- internal/rag/rag_test.go | 6 +- internal/rag/shared_retrieval_test.go | 6 +- internal/route/route.go | 4 +- internal/route/route_test.go | 4 +- internal/runmgr/admission.go | 2 +- internal/runmgr/admission_test.go | 4 +- internal/runmgr/background_card_test.go | 6 +- internal/runmgr/background_test.go | 4 +- internal/runmgr/command_tools_test.go | 4 +- internal/runmgr/commands.go | 2 +- internal/runmgr/crossread_test.go | 6 +- internal/runmgr/entry_test.go | 6 +- internal/runmgr/events.go | 6 +- internal/runmgr/exec_tool_artifact_test.go | 12 +-- internal/runmgr/genui_auto.go | 2 +- internal/runmgr/hitl_timeout_test.go | 2 +- internal/runmgr/inputs.go | 2 +- internal/runmgr/inputs_persist_test.go | 2 +- internal/runmgr/knowledge_resource_test.go | 6 +- internal/runmgr/material.go | 2 +- internal/runmgr/material_test.go | 4 +- internal/runmgr/memory.go | 6 +- internal/runmgr/memory_test.go | 6 +- internal/runmgr/multi_instance_test.go | 4 +- internal/runmgr/notice_recursion_test.go | 4 +- internal/runmgr/perm_test.go | 6 +- internal/runmgr/realproc_test.go | 4 +- internal/runmgr/recovery_hold_test.go | 4 +- internal/runmgr/recovery_test.go | 12 +-- internal/runmgr/rewind.go | 4 +- internal/runmgr/rewind_test.go | 4 +- internal/runmgr/runmgr.go | 34 ++++----- internal/runmgr/shared_run_retrieval_test.go | 2 +- internal/runmgr/subagent_n2_test.go | 4 +- internal/runmgr/subagent_p3_test.go | 12 +-- internal/runmgr/subagent_transcript.go | 2 +- internal/runmgr/workflow_route_test.go | 16 ++-- internal/runtime/compose.go | 4 +- internal/runtime/compose_test.go | 4 +- internal/runtime/context_window_test.go | 2 +- internal/runtime/deliverable_latest_test.go | 2 +- internal/runtime/dual_speed_nudge_test.go | 4 +- internal/runtime/e4_escalation_test.go | 2 +- internal/runtime/factcheck.go | 4 +- internal/runtime/factcheck_test.go | 2 +- internal/runtime/final_reply_test.go | 2 +- internal/runtime/hostbridge.go | 6 +- internal/runtime/llm.go | 20 ++--- internal/runtime/llm_direct.go | 24 +++--- internal/runtime/llm_direct_e1_test.go | 6 +- internal/runtime/llm_direct_n3_test.go | 6 +- internal/runtime/llm_test.go | 6 +- internal/runtime/llm_think_test.go | 4 +- internal/runtime/llm_verify_test.go | 6 +- internal/runtime/material_flow_test.go | 4 +- internal/runtime/mock.go | 10 +-- internal/runtime/model.go | 2 +- internal/runtime/model_test.go | 2 +- internal/runtime/permission_ask_test.go | 4 +- internal/runtime/planless_nudge_test.go | 2 +- internal/runtime/review.go | 2 +- internal/runtime/review_test.go | 4 +- internal/runtime/runner.go | 6 +- internal/runtime/squad_runner.go | 8 +- internal/runtime/squad_runner_test.go | 6 +- internal/runtime/sub_loop.go | 10 +-- internal/runtime/sub_loop_test.go | 6 +- internal/runtime/toolselect_test.go | 2 +- internal/runtime/transcript_compact.go | 6 +- internal/runtime/transcript_seed.go | 2 +- internal/runtime/transcript_seed_test.go | 8 +- internal/runtime/usage_n3_test.go | 4 +- internal/runtime/verify.go | 6 +- internal/runtime/workflow_compiled.go | 10 +-- internal/runtime/workflow_compiled_test.go | 6 +- internal/runtime/workspace_tools_test.go | 4 +- internal/runtime/wp5_ab_test.go | 4 +- internal/server/accounts.go | 2 +- internal/server/action_matrix_test.go | 2 +- internal/server/adminzone_test.go | 16 ++-- internal/server/admission_test.go | 20 ++--- internal/server/artifact_download_test.go | 4 +- internal/server/audit_scope_test.go | 2 +- internal/server/auth.go | 2 +- internal/server/auth_e2e_test.go | 18 ++--- internal/server/borrow.go | 6 +- internal/server/command_pairs_test.go | 4 +- internal/server/compiled_list_test.go | 18 ++--- internal/server/disk_full_test.go | 18 ++--- internal/server/e2e_test.go | 36 ++++----- internal/server/intent_button_test.go | 4 +- internal/server/login_key_test.go | 2 +- internal/server/login_recovery_test.go | 2 +- internal/server/platform_api.go | 6 +- internal/server/project_events.go | 2 +- internal/server/project_events_test.go | 6 +- internal/server/project_lifecycle.go | 6 +- internal/server/project_lifecycle_test.go | 10 +-- .../server/project_resource_filter_test.go | 4 +- internal/server/ratelimit.go | 2 +- internal/server/ratelimit_e2e_test.go | 2 +- .../server/resource_authz_consumption_test.go | 6 +- internal/server/resource_authz_test.go | 2 +- internal/server/rewind.go | 2 +- internal/server/rewind_http_test.go | 20 ++--- internal/server/server.go | 40 +++++----- internal/server/shared_projects_test.go | 2 +- internal/server/shared_retrieval_test.go | 2 +- internal/server/sse_close_test.go | 2 +- internal/server/sse_retry_test.go | 4 +- internal/server/surface_api_test.go | 2 +- internal/server/workflow_route_test.go | 16 ++-- internal/settings/project_metadata.go | 2 +- internal/settings/project_metadata_test.go | 2 +- internal/settings/settings.go | 4 +- internal/settings/settings_test.go | 4 +- internal/skills/validate.go | 2 +- internal/squadadapter/adapter.go | 10 +-- internal/squadadapter/adapter_test.go | 6 +- internal/squadadapter/entry.go | 10 +-- .../squadadapter/orchestrate_native_test.go | 10 +-- internal/store/audit.go | 2 +- internal/store/audit_test.go | 2 +- internal/store/borrow.go | 2 +- internal/store/card_version_test.go | 2 +- internal/store/cards.go | 2 +- internal/store/config.go | 2 +- internal/store/content.go | 2 +- .../store/knowledge_authorization_test.go | 2 +- internal/store/messages.go | 2 +- internal/store/notices.go | 2 +- internal/store/outbox_tx_test.go | 2 +- internal/store/pgvector_test.go | 2 +- internal/store/platform.go | 2 +- internal/store/platform_test.go | 2 +- internal/store/project_events.go | 2 +- internal/store/project_events_test.go | 2 +- internal/store/project_projection.go | 2 +- internal/store/projects.go | 2 +- internal/store/prompts.go | 2 +- internal/store/recovery.go | 2 +- internal/store/recovery_test.go | 2 +- internal/store/search_postgres.go | 2 +- internal/store/store.go | 2 +- internal/store/store_test.go | 2 +- internal/store/surfaces.go | 2 +- internal/store/surfaces_test.go | 2 +- internal/store/typed_nil_blob_test.go | 4 +- internal/store/vectors.go | 2 +- internal/surfacesvc/actions_test.go | 4 +- internal/surfacesvc/surfacesvc.go | 4 +- internal/surfacesvc/surfacesvc_test.go | 4 +- internal/tools/ask.go | 2 +- internal/tools/codeorch_tool.go | 4 +- internal/tools/exec.go | 2 +- internal/tools/exec_interpreter.go | 4 +- internal/tools/exec_interpreter_test.go | 2 +- internal/tools/fs.go | 2 +- internal/tools/fs_checkpoint_test.go | 2 +- internal/tools/fs_test.go | 2 +- internal/tools/http.go | 2 +- internal/tools/http_test.go | 2 +- internal/tools/peers.go | 2 +- internal/tools/peers_test.go | 2 +- internal/tools/quality_review.go | 4 +- internal/tools/quality_review_test.go | 2 +- internal/tools/registry.go | 2 +- internal/tools/search.go | 4 +- internal/tools/search_test.go | 4 +- internal/wfcompile/ab_demo_test.go | 6 +- internal/wfcompile/compiler.go | 6 +- internal/wfcompile/host.go | 14 ++-- internal/wfcompile/run.go | 6 +- internal/wfcompile/wfcompile_test.go | 8 +- internal/workflow/registry.go | 2 +- internal/workflow/render.go | 2 +- internal/workflow/validate.go | 2 +- internal/workflow/workflow_test.go | 2 +- pkg/extension/extension.go | 2 +- pkg/extension/host.go | 2 +- pkg/extension/link/link.go | 4 +- pkg/extension/projects.go | 2 +- pkg/identity/identity.go | 4 +- pkg/identity/identity_test.go | 2 +- 263 files changed, 727 insertions(+), 716 deletions(-) diff --git a/PROJECT.md b/PROJECT.md index 9dd72c7..5574dca 100644 --- a/PROJECT.md +++ b/PROJECT.md @@ -7,10 +7,10 @@ ## 验证(P1–P4 状态) -- `go test ./...` — 单元 + 端到端(mock runner 全链路:流式/折叠部件/HITL 三分支/子代理任务树/工件/上传解析/中文检索/SSE 在线与重放/命令路由/插件装卸 fail-closed)。 -- `CGO_ENABLED=0 go build ./cmd/agent-system` — 单二进制(静态,内嵌前端后)。 +- `GOWORK=off go test -mod=readonly -count=1 ./...` — 单元 + 端到端(mock runner 全链路:流式/折叠部件/HITL 三分支/子代理任务树/工件/上传解析/中文检索/SSE 在线与重放/命令路由/插件装卸 fail-closed)。 +- `GOWORK=off CGO_ENABLED=0 go build -mod=readonly ./cmd/agent-system` — 单二进制(静态,内嵌前端后)。 - 存储:嵌入式 SQLite(modernc.org/sqlite,纯 Go);FTS5 全文 + CJK LIKE 兜底。 -- 依赖:agent-system-core(deps submodule + replace)、agent-native(runtime/llm 复用)。 +- 依赖:完整模块路径的 Core、Native、Intent、Command、Squad 及基础库,版本由 `go.mod` / `go.sum` 固定;Native 复用 runtime/llm。正式消费使用 `GOWORK=off`、无本地目录 `replace`。旧 deps gitlink 暂留供历史提交与在途分支重建。 ## 配置(启动层) diff --git a/README.md b/README.md index ec7501c..5286e9d 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,14 @@ 对话系统后端:Go 模块化单体,默认构建为单二进制(go:embed 内嵌前端与嵌入式 SQLite 存储)。组合 Agent-Native / Agent-Squad / Agent-Intent 生态,依赖 agent-system-core 契约。 契约与架构见 Agent-System-Documents 设计方案与架构文档;开发规范见 development-guidelines(Dev 仓 `development/guidelines`)。本仓为 Agent-System 多仓组合的组成部分。 + +## 模块与版本依赖 + +Go 模块路径为 `git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git`。Core、Native、Intent、Command、Squad 与基础库的实际提交版本由 `go.mod` / `go.sum` 固定;正式测试和构建使用 `GOWORK=off`,不使用源码目录 `replace`。私有获取使用 Dev 的进程级传输配置,不修改全局 Git 配置。 + +```bash +GOWORK=off go test -mod=readonly -count=1 ./... +GOWORK=off CGO_ENABLED=0 go build -mod=readonly -o /tmp/agent-system ./cmd/agent-system +``` + +完整产品还需要 Dev 构建入口装配前端 `web/dist` 后再编译;Go 模块测试不证明前端组合产物。`deps/` 的旧源码 gitlink 暂留供历史提交与在途分支重建。本地源码联调通过 Dev 的显式组件链接管理;在途分支迁移 import 与模块前缀时保持公开协议、数据和事件标识。 diff --git a/cmd/agent-system/main.go b/cmd/agent-system/main.go index f06c6f8..59fd36c 100644 --- a/cmd/agent-system/main.go +++ b/cmd/agent-system/main.go @@ -12,10 +12,10 @@ import ( "strings" "time" - "agent-system-backend/internal/app" - "agent-system-backend/internal/config" - "agent-system-backend/internal/store" - "agent-system-backend/pkg/identity" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/app" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/config" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/pkg/identity" ) var version = "0.1.0-dev" diff --git a/cmd/storage-migrate/integration_test.go b/cmd/storage-migrate/integration_test.go index d4997c0..823e04b 100644 --- a/cmd/storage-migrate/integration_test.go +++ b/cmd/storage-migrate/integration_test.go @@ -8,7 +8,7 @@ import ( "strings" "testing" - "agent-system-backend/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" ) // U4 集成(环境门控 AGENT_PG_TEST_DSN:CI test-pg job / 本机隔离实例): diff --git a/cmd/storage-migrate/main.go b/cmd/storage-migrate/main.go index 7ee9cb2..12d5255 100644 --- a/cmd/storage-migrate/main.go +++ b/cmd/storage-migrate/main.go @@ -31,7 +31,7 @@ import ( _ "modernc.org/sqlite" // SQLite 驱动(源,只读打开) - "agent-system-backend/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" ) func main() { diff --git a/cmd/storage-migrate/main_test.go b/cmd/storage-migrate/main_test.go index 8731e0e..09d92f4 100644 --- a/cmd/storage-migrate/main_test.go +++ b/cmd/storage-migrate/main_test.go @@ -6,7 +6,7 @@ import ( "strings" "testing" - "agent-system-backend/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" ) // U4 迁移工具测试:夹具覆盖全部当前 schema 的边值(布尔/空值/时间/JSON/ diff --git a/eval/deliverable_test.go b/eval/deliverable_test.go index 1764acd..447e1b9 100644 --- a/eval/deliverable_test.go +++ b/eval/deliverable_test.go @@ -7,7 +7,7 @@ import ( "path/filepath" "testing" - "agent-system-backend/internal/quality" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/quality" ) func TestDesensitizedSampleBeatsColumnNotes(t *testing.T) { diff --git a/eval/live/helpers_test.go b/eval/live/helpers_test.go index b712e12..2b09bed 100644 --- a/eval/live/helpers_test.go +++ b/eval/live/helpers_test.go @@ -18,7 +18,7 @@ import ( "testing" "time" - "agent-system-backend/internal/runtime" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/runtime" ) // upload 上传一个材料文件,返回 artifact id。 diff --git a/go.mod b/go.mod index e61a94f..251bc9e 100644 --- a/go.mod +++ b/go.mod @@ -1,20 +1,20 @@ -module agent-system-backend +module git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git go 1.27 require ( - agent-command v0.0.0 - agent-intent v0.0.0 - agent-native v0.0.0 - agent-squad v0.0.0 - agent-squad/adapters/native v0.0.0 - agent-system-core v0.0.0 - error-code-system v0.0.0 + git-ssh.u1680832.nyat.app/weichen/Agent-Command.git v0.0.0-20261013153614-1aa532f45e55 + git-ssh.u1680832.nyat.app/weichen/Agent-Intent.git v0.0.0-20261013153611-3a8468c83a80 + git-ssh.u1680832.nyat.app/weichen/Agent-Native.git v0.0.0-20261013153610-6ddd3da8df5c + git-ssh.u1680832.nyat.app/weichen/Agent-Squad.git v0.0.0-20261013154230-ed0952e08fd7 + git-ssh.u1680832.nyat.app/weichen/Agent-Squad.git/adapters/native v0.0.0-20261013154230-ed0952e08fd7 + git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git v0.4.1-0.20261013151137-f32d4317846f + git-ssh.u1680832.nyat.app/weichen/Error-Code-System.git v0.0.0-20261013150648-28d2d5074347 + git-ssh.u1680832.nyat.app/weichen/Logging-System.git v0.0.0-20261013150647-9c5442f06d05 github.com/jackc/pgx/v5 v5.9.2 github.com/ledongthuc/pdf v0.0.0-20260907135840-6c8c28e0e8a0 github.com/redis/go-redis/v9 v9.14.0 golang.org/x/crypto v0.56.0 - logging-system v0.0.0 modernc.org/sqlite v1.60.1 ) @@ -36,19 +36,3 @@ require ( modernc.org/mathutil v1.7.1 // indirect modernc.org/memory v1.12.1 // indirect ) - -replace agent-intent => ./deps/agent-intent - -replace agent-squad => ./deps/agent-squad - -replace agent-squad/adapters/native => ./deps/agent-squad/adapters/native - -replace agent-native => ./deps/agent-native - -replace agent-system-core => ./deps/agent-system-core - -replace error-code-system => ./deps/error-code-system - -replace logging-system => ./deps/logging-system - -replace agent-command => ./deps/agent-command diff --git a/go.sum b/go.sum index b4fc65f..f0c264d 100644 --- a/go.sum +++ b/go.sum @@ -1,3 +1,19 @@ +git-ssh.u1680832.nyat.app/weichen/Agent-Command.git v0.0.0-20261013153614-1aa532f45e55 h1:TAY0gfufDihgDhNNl3MN1V/Yf0vXpmFkBQ6KnUPasgE= +git-ssh.u1680832.nyat.app/weichen/Agent-Command.git v0.0.0-20261013153614-1aa532f45e55/go.mod h1:GkgKoD8bm/unq87QBZsWV0KmjlLRvfi5FQas8hLlJGY= +git-ssh.u1680832.nyat.app/weichen/Agent-Intent.git v0.0.0-20261013153611-3a8468c83a80 h1:MMYfIibHvQFqINaM9Hy0SQKivb3ofzyfUo2wMpacWIg= +git-ssh.u1680832.nyat.app/weichen/Agent-Intent.git v0.0.0-20261013153611-3a8468c83a80/go.mod h1:idJ6YUupl8JapXrwk4x5hVaqemp7c7x6f2Qf2ezCpz0= +git-ssh.u1680832.nyat.app/weichen/Agent-Native.git v0.0.0-20261013153610-6ddd3da8df5c h1:9FwMbsjF1qdnH/JANKZSYDXyHBd6H2tEo1z2cdPldds= +git-ssh.u1680832.nyat.app/weichen/Agent-Native.git v0.0.0-20261013153610-6ddd3da8df5c/go.mod h1:hONk3TC2TIn8Us+AcvoDCkBnIDAh1Aj/nevo9tJcZv4= +git-ssh.u1680832.nyat.app/weichen/Agent-Squad.git v0.0.0-20261013154230-ed0952e08fd7 h1:V0WHk7KWxUIF3nzYhQmlx72WhSZ1IjQuhALDgh4MTgE= +git-ssh.u1680832.nyat.app/weichen/Agent-Squad.git v0.0.0-20261013154230-ed0952e08fd7/go.mod h1:WRNAbaAaumPt7pe0Wg/2SxajcUc6IVZoBd7VJEe0tqk= +git-ssh.u1680832.nyat.app/weichen/Agent-Squad.git/adapters/native v0.0.0-20261013154230-ed0952e08fd7 h1:l5ZotXZWDje0uBlQhOA+VSieCCGC5fkS5XPqulX7inw= +git-ssh.u1680832.nyat.app/weichen/Agent-Squad.git/adapters/native v0.0.0-20261013154230-ed0952e08fd7/go.mod h1:+MOrRWwFOPs1F5LCAPR3pW5yqPoLKJtB6sWHsN54VN4= +git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git v0.4.1-0.20261013151137-f32d4317846f h1:39RW0R6zmtXLNbLQaqFCmtZ6zjEs2lhDLb9YLhudIiM= +git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git v0.4.1-0.20261013151137-f32d4317846f/go.mod h1:T3FU9NsngaxF/1C2ISi02fV7+aqNepOEvX0QhswA70Y= +git-ssh.u1680832.nyat.app/weichen/Error-Code-System.git v0.0.0-20261013150648-28d2d5074347 h1:mESnwe9ZpZqpLoGPzLyCWEmXDHKm7ouKC8qpF8EztEQ= +git-ssh.u1680832.nyat.app/weichen/Error-Code-System.git v0.0.0-20261013150648-28d2d5074347/go.mod h1:b8CDy31Xo3uRzAhA3HldwcgNnk0x5Lb02osIb9ewJ3A= +git-ssh.u1680832.nyat.app/weichen/Logging-System.git v0.0.0-20261013150647-9c5442f06d05 h1:gtFuWlGr7GlpEkuoIfIw6f/uXHUlYXlHU2qgLWAV46Y= +git-ssh.u1680832.nyat.app/weichen/Logging-System.git v0.0.0-20261013150647-9c5442f06d05/go.mod h1:Jg/bDRsd1/g5YjIoEUYkCsTgJOrTolYccfyb/tc57Dk= github.com/bsm/ginkgo/v2 v2.12.0 h1:Ny8MWAHyOepLGlLKYmXG4IEkioBysk6GpaRTLC8zwWs= github.com/bsm/ginkgo/v2 v2.12.0/go.mod h1:SwYbGRRDovPVboqFv0tPTcG1sN61LM1Z4ARdbAV9g4c= github.com/bsm/gomega v1.27.10 h1:yeMWxP2pV2fG3FgAODIY8EiRE3dy0aeFYt4l7wh6yKA= diff --git a/internal/app/account_lister_test.go b/internal/app/account_lister_test.go index 6ee2898..10f19dd 100644 --- a/internal/app/account_lister_test.go +++ b/internal/app/account_lister_test.go @@ -5,7 +5,7 @@ package app import ( "testing" - "agent-system-backend/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" ) func TestInprocHostListAccounts(t *testing.T) { diff --git a/internal/app/app.go b/internal/app/app.go index 33749b7..90783b2 100644 --- a/internal/app/app.go +++ b/internal/app/app.go @@ -19,44 +19,44 @@ import ( "syscall" "time" - "error-code-system/errcode" - "logging-system/logsys" - "logging-system/sink" + "git-ssh.u1680832.nyat.app/weichen/Error-Code-System.git/errcode" + "git-ssh.u1680832.nyat.app/weichen/Logging-System.git/logsys" + "git-ssh.u1680832.nyat.app/weichen/Logging-System.git/sink" - "agent-native/runtime/checkpoint" - agentllm "agent-native/runtime/llm" - agentmcp "agent-native/runtime/mcp" - "agent-native/runtime/policy" - "agent-native/runtime/telemetry" - agenttools "agent-native/runtime/tools" - nativeadp "agent-squad/adapters/native" - "agent-system-backend/internal/blobstore" - "agent-system-backend/internal/bus" - "agent-system-backend/internal/cardsvc" - "agent-system-backend/internal/cmdbus" - "agent-system-backend/internal/config" - "agent-system-backend/internal/genui" - "agent-system-backend/internal/hostapi" - "agent-system-backend/internal/intentgate" - "agent-system-backend/internal/intentsem" - "agent-system-backend/internal/pgbus" - "agent-system-backend/internal/plugins" - "agent-system-backend/internal/profiles" - "agent-system-backend/internal/prompts" - "agent-system-backend/internal/rag" - "agent-system-backend/internal/ratelimit" - "agent-system-backend/internal/runmgr" - "agent-system-backend/internal/runtime" - "agent-system-backend/internal/server" - "agent-system-backend/internal/settings" - "agent-system-backend/internal/skills" - "agent-system-backend/internal/squadadapter" - "agent-system-backend/internal/store" - "agent-system-backend/internal/surfacesvc" - "agent-system-backend/internal/tools" - "agent-system-backend/internal/workflow" - "agent-system-backend/pkg/extension" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/checkpoint" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" + agentmcp "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/mcp" + "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/policy" + "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/telemetry" + agenttools "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/tools" + nativeadp "git-ssh.u1680832.nyat.app/weichen/Agent-Squad.git/adapters/native" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/blobstore" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/bus" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/cardsvc" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/cmdbus" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/config" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/genui" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/hostapi" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/intentgate" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/intentsem" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/pgbus" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/plugins" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/profiles" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/prompts" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/rag" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/ratelimit" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/runmgr" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/runtime" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/server" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/settings" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/skills" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/squadadapter" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/surfacesvc" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/tools" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/workflow" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/pkg/extension" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) type Options struct { diff --git a/internal/app/compiled.go b/internal/app/compiled.go index da47164..8b34ea0 100644 --- a/internal/app/compiled.go +++ b/internal/app/compiled.go @@ -9,11 +9,11 @@ import ( "os" "path/filepath" - agentcommand "agent-command" - "agent-system-backend/internal/cmdbus" - "agent-system-backend/internal/server" - "agent-system-backend/pkg/extension" - core "agent-system-core" + agentcommand "git-ssh.u1680832.nyat.app/weichen/Agent-Command.git" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/cmdbus" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/server" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/pkg/extension" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) type compiledRegistry struct { diff --git a/internal/app/compiled_authz_test.go b/internal/app/compiled_authz_test.go index f081f8b..da91ec2 100644 --- a/internal/app/compiled_authz_test.go +++ b/internal/app/compiled_authz_test.go @@ -5,10 +5,10 @@ import ( "testing" "time" - "agent-system-backend/internal/cmdbus" - "agent-system-backend/internal/store" - "agent-system-backend/pkg/extension" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/cmdbus" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/pkg/extension" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // fakeExtAuthz 进程内扩展:注册 EXT-8 适配器+一条命令——修复前适配器注册被 diff --git a/internal/app/compiled_list_test.go b/internal/app/compiled_list_test.go index 17125e4..ad85766 100644 --- a/internal/app/compiled_list_test.go +++ b/internal/app/compiled_list_test.go @@ -7,11 +7,11 @@ import ( "testing" "time" - agentcommand "agent-command" - "agent-system-backend/internal/cmdbus" - "agent-system-backend/internal/settings" - "agent-system-backend/internal/store" - "agent-system-backend/pkg/extension" + agentcommand "git-ssh.u1680832.nyat.app/weichen/Agent-Command.git" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/cmdbus" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/settings" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/pkg/extension" ) // WP3-I4:applyCompiled 的注册面摘要——成功注册的命令/意图/技能记入 diff --git a/internal/app/ext13_shared_search_test.go b/internal/app/ext13_shared_search_test.go index 0c8f6ef..8bacad4 100644 --- a/internal/app/ext13_shared_search_test.go +++ b/internal/app/ext13_shared_search_test.go @@ -8,10 +8,10 @@ import ( "path/filepath" "testing" - "agent-system-backend/internal/rag" - "agent-system-backend/internal/settings" - "agent-system-backend/internal/store" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/rag" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/settings" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // newExt13Host EXT-13 装配:真实 store + rag 管线 + authz 槽 + inprocHost(bob 视角)。 diff --git a/internal/app/ext18_admin_test.go b/internal/app/ext18_admin_test.go index ae03746..e33993a 100644 --- a/internal/app/ext18_admin_test.go +++ b/internal/app/ext18_admin_test.go @@ -6,7 +6,7 @@ package app import ( "testing" - "agent-system-backend/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" ) func TestExt18AdminProviderPositive(t *testing.T) { diff --git a/internal/app/ext9_publish_test.go b/internal/app/ext9_publish_test.go index 62b2ff6..83021c0 100644 --- a/internal/app/ext9_publish_test.go +++ b/internal/app/ext9_publish_test.go @@ -5,10 +5,10 @@ import ( "path/filepath" "testing" - "agent-system-backend/internal/rag" - "agent-system-backend/internal/settings" - "agent-system-backend/internal/store" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/rag" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/settings" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // newExt9Host EXT-9 测试装配:真实 store + rag 管线 + inprocHost(无 embedder, diff --git a/internal/app/hostcaps.go b/internal/app/hostcaps.go index 866a4f4..56f96d3 100644 --- a/internal/app/hostcaps.go +++ b/internal/app/hostcaps.go @@ -1,20 +1,20 @@ package app import ( - "agent-system-backend/pkg/extension" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/pkg/extension" "context" "fmt" "sort" "strings" "sync" - "agent-system-backend/internal/ingest" - "agent-system-backend/internal/rag" - "agent-system-backend/internal/runtime" - "agent-system-backend/internal/settings" - "agent-system-backend/internal/store" - "agent-system-backend/internal/surfacesvc" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/ingest" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/rag" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/runtime" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/settings" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/surfacesvc" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // hostcaps 聚合 owner 作用域的宿主能力(存储、检索管线、LLM 路由)。 diff --git a/internal/app/inproc_host_test.go b/internal/app/inproc_host_test.go index acb6a39..fa62411 100644 --- a/internal/app/inproc_host_test.go +++ b/internal/app/inproc_host_test.go @@ -9,13 +9,13 @@ import ( "testing" "time" - agentcommand "agent-command" - "agent-system-backend/internal/cmdbus" - "agent-system-backend/internal/rag" - "agent-system-backend/internal/settings" - "agent-system-backend/internal/store" - "agent-system-backend/pkg/extension" - core "agent-system-core" + agentcommand "git-ssh.u1680832.nyat.app/weichen/Agent-Command.git" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/cmdbus" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/rag" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/settings" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/pkg/extension" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // newInprocTestApp 组合根测试版:走真实的 applyCompiled → cmdbus.Dispatch → diff --git a/internal/app/intent_flags_test.go b/internal/app/intent_flags_test.go index de77ba1..dbe0cb6 100644 --- a/internal/app/intent_flags_test.go +++ b/internal/app/intent_flags_test.go @@ -3,8 +3,8 @@ package app import ( "testing" - "agent-system-backend/internal/settings" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/settings" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // 慢通道开关默认关(行为与 I1 一致的机器证明): diff --git a/internal/app/knowledge_authorization_test.go b/internal/app/knowledge_authorization_test.go index e28dff3..cc5d302 100644 --- a/internal/app/knowledge_authorization_test.go +++ b/internal/app/knowledge_authorization_test.go @@ -1,11 +1,11 @@ package app import ( - "agent-system-backend/internal/rag" - "agent-system-backend/internal/settings" - "agent-system-backend/internal/store" - "agent-system-backend/pkg/extension" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/rag" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/settings" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/pkg/extension" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" "context" "testing" ) diff --git a/internal/app/project_lifecycle.go b/internal/app/project_lifecycle.go index 78ccf95..7ac06e1 100644 --- a/internal/app/project_lifecycle.go +++ b/internal/app/project_lifecycle.go @@ -1,11 +1,11 @@ package app import ( - "agent-system-backend/internal/projectscope" - "agent-system-backend/internal/server" - "agent-system-backend/internal/store" - "agent-system-backend/pkg/extension" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/projectscope" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/server" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/pkg/extension" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" "context" "errors" "sync" diff --git a/internal/app/project_lifecycle_test.go b/internal/app/project_lifecycle_test.go index 1650ff9..fa8ebf5 100644 --- a/internal/app/project_lifecycle_test.go +++ b/internal/app/project_lifecycle_test.go @@ -1,11 +1,11 @@ package app import ( - "agent-system-backend/internal/server" - "agent-system-backend/internal/settings" - "agent-system-backend/internal/store" - "agent-system-backend/pkg/extension" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/server" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/settings" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/pkg/extension" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" "bytes" "context" "encoding/json" diff --git a/internal/app/resource_authz_v2_test.go b/internal/app/resource_authz_v2_test.go index 17dff17..b8499ee 100644 --- a/internal/app/resource_authz_v2_test.go +++ b/internal/app/resource_authz_v2_test.go @@ -10,7 +10,7 @@ import ( "errors" "testing" - "agent-system-backend/pkg/extension" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/pkg/extension" ) func TestAuthorizeResourceV2FallbackAndQuery(t *testing.T) { diff --git a/internal/app/scoped_host_test.go b/internal/app/scoped_host_test.go index d284723..77e42de 100644 --- a/internal/app/scoped_host_test.go +++ b/internal/app/scoped_host_test.go @@ -5,10 +5,10 @@ import ( "path/filepath" "testing" - "agent-system-backend/internal/rag" - "agent-system-backend/internal/settings" - "agent-system-backend/internal/store" - "agent-system-backend/pkg/extension" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/rag" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/settings" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/pkg/extension" ) // EXT-11 红测:注入前 NewScopedHost fail-closed;注入后重建句柄与分发期同构 diff --git a/internal/bus/bus.go b/internal/bus/bus.go index d731103..969b10e 100644 --- a/internal/bus/bus.go +++ b/internal/bus/bus.go @@ -6,7 +6,7 @@ package bus import ( "sync" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) type subscriber struct { diff --git a/internal/bus/bus_test.go b/internal/bus/bus_test.go index 038e4a5..aed9881 100644 --- a/internal/bus/bus_test.go +++ b/internal/bus/bus_test.go @@ -3,7 +3,7 @@ package bus import ( "testing" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) func TestPublishClosesOverflowedSubscriber(t *testing.T) { diff --git a/internal/cardsvc/cardsvc.go b/internal/cardsvc/cardsvc.go index 6b4d0ab..32e7f07 100644 --- a/internal/cardsvc/cardsvc.go +++ b/internal/cardsvc/cardsvc.go @@ -9,8 +9,8 @@ import ( "sync" "time" - "agent-system-backend/internal/store" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // Emitter 由宿主注入(runmgr 事件缓冲包装):卡片事件走与会话事件同一管道, diff --git a/internal/cardsvc/cardsvc_test.go b/internal/cardsvc/cardsvc_test.go index dd400c0..4720626 100644 --- a/internal/cardsvc/cardsvc_test.go +++ b/internal/cardsvc/cardsvc_test.go @@ -6,8 +6,8 @@ import ( "testing" "time" - "agent-system-backend/internal/store" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) func openTest(t *testing.T) (*store.Store, *Service, func() []core.StreamEvent) { diff --git a/internal/cardsvc/mirror_switch_test.go b/internal/cardsvc/mirror_switch_test.go index 91f04e5..123f248 100644 --- a/internal/cardsvc/mirror_switch_test.go +++ b/internal/cardsvc/mirror_switch_test.go @@ -3,8 +3,8 @@ package cardsvc import ( "testing" - "agent-system-backend/internal/store" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // EXT-12 最小开关(红测):MirrorConvCards=false 时会话卡不镜像进项目公共流 diff --git a/internal/cmdbus/cmdbus.go b/internal/cmdbus/cmdbus.go index 9b63e7d..e73e401 100644 --- a/internal/cmdbus/cmdbus.go +++ b/internal/cmdbus/cmdbus.go @@ -14,8 +14,8 @@ import ( "sync" "time" - agentcommand "agent-command" - "agent-system-core" + agentcommand "git-ssh.u1680832.nyat.app/weichen/Agent-Command.git" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // AuditStore 审计落盘端口(store 实现;v7 建表、v18 加 owner 列)。 diff --git a/internal/cmdbus/cmdbus_test.go b/internal/cmdbus/cmdbus_test.go index 7b4e3f3..c3476f7 100644 --- a/internal/cmdbus/cmdbus_test.go +++ b/internal/cmdbus/cmdbus_test.go @@ -9,8 +9,8 @@ import ( "testing" "time" - agentcommand "agent-command" - "agent-system-core" + agentcommand "git-ssh.u1680832.nyat.app/weichen/Agent-Command.git" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // memAudit / memCards 测试替身。 diff --git a/internal/cmdbus/command_tools_test.go b/internal/cmdbus/command_tools_test.go index 96f0b62..7b5594a 100644 --- a/internal/cmdbus/command_tools_test.go +++ b/internal/cmdbus/command_tools_test.go @@ -10,7 +10,7 @@ import ( "testing" "time" - agentcommand "agent-command" + agentcommand "git-ssh.u1680832.nyat.app/weichen/Agent-Command.git" ) func newToolBus(t *testing.T) *Bus { diff --git a/internal/cmdbus/pending_store_test.go b/internal/cmdbus/pending_store_test.go index e515208..2b2eb16 100644 --- a/internal/cmdbus/pending_store_test.go +++ b/internal/cmdbus/pending_store_test.go @@ -5,8 +5,8 @@ import ( "path/filepath" "testing" - agentcommand "agent-command" - "agent-system-backend/internal/store" + agentcommand "git-ssh.u1680832.nyat.app/weichen/Agent-Command.git" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" ) func TestPendingConfirmRestoredAfterRestart(t *testing.T) { diff --git a/internal/cmdbus/slash_intent_test.go b/internal/cmdbus/slash_intent_test.go index 6c01f05..9bceead 100644 --- a/internal/cmdbus/slash_intent_test.go +++ b/internal/cmdbus/slash_intent_test.go @@ -5,7 +5,7 @@ import ( "encoding/json" "testing" - agentcommand "agent-command" + agentcommand "git-ssh.u1680832.nyat.app/weichen/Agent-Command.git" ) // EXT-10② 红测:插件命令规格自带 slash 别名 → 四入口同源(slash 命中同一命令 diff --git a/internal/ctxasm/ctxasm.go b/internal/ctxasm/ctxasm.go index 010a3d5..f43914b 100644 --- a/internal/ctxasm/ctxasm.go +++ b/internal/ctxasm/ctxasm.go @@ -9,8 +9,8 @@ import ( "time" "unicode/utf8" - agentllm "agent-native/runtime/llm" - core "agent-system-core" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // Report 记录一次组装的实际构成(可观测:模型看到了什么、裁了什么)。 diff --git a/internal/ctxasm/ctxasm_test.go b/internal/ctxasm/ctxasm_test.go index 0bb553b..1334ca5 100644 --- a/internal/ctxasm/ctxasm_test.go +++ b/internal/ctxasm/ctxasm_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) func fakeUser(text string) core.Message { diff --git a/internal/ctxasm/finish.go b/internal/ctxasm/finish.go index 401ce4b..bb885ef 100644 --- a/internal/ctxasm/finish.go +++ b/internal/ctxasm/finish.go @@ -9,9 +9,9 @@ import ( "strings" "sync" - agentllm "agent-native/runtime/llm" - "agent-native/runtime/reminders" - core "agent-system-core" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" + "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/reminders" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // Injection 是一条在组装末尾才决定是否注入的条件条目。 diff --git a/internal/ctxasm/finish_test.go b/internal/ctxasm/finish_test.go index 3bf915b..d989af1 100644 --- a/internal/ctxasm/finish_test.go +++ b/internal/ctxasm/finish_test.go @@ -4,8 +4,8 @@ import ( "strings" "testing" - agentllm "agent-native/runtime/llm" - core "agent-system-core" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) func TestVisibleHistoryDropsExcludedAndUnselectedVariants(t *testing.T) { diff --git a/internal/ctxasm/replay_test.go b/internal/ctxasm/replay_test.go index 23f4d15..05ac96f 100644 --- a/internal/ctxasm/replay_test.go +++ b/internal/ctxasm/replay_test.go @@ -6,8 +6,8 @@ import ( "testing" "unicode/utf8" - agentllm "agent-native/runtime/llm" - core "agent-system-core" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) func assistantWith(id string, parts ...core.Part) core.Message { diff --git a/internal/ctxasm/summary_test.go b/internal/ctxasm/summary_test.go index 10b3565..d3f9461 100644 --- a/internal/ctxasm/summary_test.go +++ b/internal/ctxasm/summary_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) func TestSummarizeBeyondInjectsExtract(t *testing.T) { diff --git a/internal/ctxasm/surface_proj_test.go b/internal/ctxasm/surface_proj_test.go index 55e84d6..8e7ec1c 100644 --- a/internal/ctxasm/surface_proj_test.go +++ b/internal/ctxasm/surface_proj_test.go @@ -7,8 +7,8 @@ import ( "strings" "testing" - agentllm "agent-native/runtime/llm" - core "agent-system-core" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) func surfaceSnap() core.SurfaceSnapshot { diff --git a/internal/ctxasm/think_replay_test.go b/internal/ctxasm/think_replay_test.go index f6e2df0..a70dc60 100644 --- a/internal/ctxasm/think_replay_test.go +++ b/internal/ctxasm/think_replay_test.go @@ -4,8 +4,8 @@ import ( "strings" "testing" - agentllm "agent-native/runtime/llm" - core "agent-system-core" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // 交错思考模型(MiniMax 等)要求历史 assistant 原样回传 ; diff --git a/internal/genui/genui.go b/internal/genui/genui.go index 69b0d81..0ae908b 100644 --- a/internal/genui/genui.go +++ b/internal/genui/genui.go @@ -11,8 +11,8 @@ import ( "strconv" "strings" - "agent-system-backend/pkg/extension" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/pkg/extension" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // PluginID 是插件身份(activation 台账与命令前缀共用)。 diff --git a/internal/genui/genui_test.go b/internal/genui/genui_test.go index 40a3dab..18af171 100644 --- a/internal/genui/genui_test.go +++ b/internal/genui/genui_test.go @@ -11,10 +11,10 @@ import ( "strings" "testing" - "agent-system-backend/internal/store" - "agent-system-backend/internal/surfacesvc" - "agent-system-backend/pkg/extension" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/surfacesvc" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/pkg/extension" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // realSvc 让 fakeHost.SurfaceSave 走真实 surfacesvc(校验/守卫行为与生产一致)。 diff --git a/internal/genui/replay_test.go b/internal/genui/replay_test.go index 49ab46a..c00dee3 100644 --- a/internal/genui/replay_test.go +++ b/internal/genui/replay_test.go @@ -19,11 +19,11 @@ import ( "testing" "time" - "agent-system-backend/internal/ctxasm" - "agent-system-backend/internal/store" - "agent-system-backend/internal/surfacesvc" - "agent-system-backend/pkg/extension" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/ctxasm" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/surfacesvc" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/pkg/extension" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) const materials = `材料: diff --git a/internal/hostapi/server.go b/internal/hostapi/server.go index 53aaa08..0c1b753 100644 --- a/internal/hostapi/server.go +++ b/internal/hostapi/server.go @@ -8,8 +8,8 @@ import ( "net/http" "strings" - "agent-system-backend/internal/store" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // Server 依赖由组合根注入。Dispatch/Search/Complete 可为 nil(对应路由返回 503)。 diff --git a/internal/hostapi/server_test.go b/internal/hostapi/server_test.go index 709912f..62bf06d 100644 --- a/internal/hostapi/server_test.go +++ b/internal/hostapi/server_test.go @@ -7,8 +7,8 @@ import ( "path/filepath" "testing" - "agent-system-backend/internal/store" - "agent-system-backend/pkg/extension" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/pkg/extension" ) func TestHostClientRoundTrip(t *testing.T) { diff --git a/internal/hostapi/shared_search_test.go b/internal/hostapi/shared_search_test.go index 6cfe340..c355ff6 100644 --- a/internal/hostapi/shared_search_test.go +++ b/internal/hostapi/shared_search_test.go @@ -6,7 +6,7 @@ import ( "net/http/httptest" "testing" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // EXT-8 余项:hostapi 检索面——SharedSearch 可用时整体切换(本人+适配器放行的 diff --git a/internal/ingest/docgen_roundtrip_test.go b/internal/ingest/docgen_roundtrip_test.go index 05abe8a..46ede19 100644 --- a/internal/ingest/docgen_roundtrip_test.go +++ b/internal/ingest/docgen_roundtrip_test.go @@ -3,9 +3,9 @@ package ingest import ( "testing" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" - "agent-system-backend/internal/docgen" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/docgen" ) // TestParseDocxFromDocgen 回读契约:docgen 产出的 docx 必须能被 builtin:docx diff --git a/internal/ingest/ingest.go b/internal/ingest/ingest.go index e409c49..12caf66 100644 --- a/internal/ingest/ingest.go +++ b/internal/ingest/ingest.go @@ -12,7 +12,7 @@ import ( "strings" "time" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" pdflib "github.com/ledongthuc/pdf" ) diff --git a/internal/ingest/ingest_test.go b/internal/ingest/ingest_test.go index 7bf0c42..2798fd1 100644 --- a/internal/ingest/ingest_test.go +++ b/internal/ingest/ingest_test.go @@ -7,7 +7,7 @@ import ( "strings" "testing" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) func TestParseMarkdown(t *testing.T) { diff --git a/internal/ingest/ooxml_python_test.go b/internal/ingest/ooxml_python_test.go index 74885b2..0d0745a 100644 --- a/internal/ingest/ooxml_python_test.go +++ b/internal/ingest/ooxml_python_test.go @@ -11,7 +11,7 @@ import ( "strings" "testing" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) func pythonModuleAvailable(t *testing.T, module string) bool { diff --git a/internal/ingest/ooxml_test.go b/internal/ingest/ooxml_test.go index a252aa0..aad48b7 100644 --- a/internal/ingest/ooxml_test.go +++ b/internal/ingest/ooxml_test.go @@ -11,7 +11,7 @@ import ( "strings" "testing" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // zipBytes 按名称构造 zip(键排序保证确定性)。 diff --git a/internal/ingest/pptx.go b/internal/ingest/pptx.go index d63cf2e..e88d0e4 100644 --- a/internal/ingest/pptx.go +++ b/internal/ingest/pptx.go @@ -17,7 +17,7 @@ import ( "strconv" "strings" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) func parsePptx(content []byte) ([]core.DocBlock, []string) { diff --git a/internal/ingest/xlsx.go b/internal/ingest/xlsx.go index b3dbcc2..494c77b 100644 --- a/internal/ingest/xlsx.go +++ b/internal/ingest/xlsx.go @@ -17,7 +17,7 @@ import ( "strings" "time" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // 解析上限(包级变量,测试可覆盖)。 diff --git a/internal/intentgate/gate.go b/internal/intentgate/gate.go index 8512b32..dd397ac 100644 --- a/internal/intentgate/gate.go +++ b/internal/intentgate/gate.go @@ -9,7 +9,7 @@ import ( "fmt" "sync" - agentintent "agent-intent/intent" + agentintent "git-ssh.u1680832.nyat.app/weichen/Agent-Intent.git/intent" ) // SlotQuestion 是命中意图后仍缺的必填槽位,以及建议的提问。 diff --git a/internal/intentgate/gate_test.go b/internal/intentgate/gate_test.go index 3201387..073bff0 100644 --- a/internal/intentgate/gate_test.go +++ b/internal/intentgate/gate_test.go @@ -5,7 +5,7 @@ import ( "encoding/json" "testing" - agentintent "agent-intent/intent" + agentintent "git-ssh.u1680832.nyat.app/weichen/Agent-Intent.git/intent" ) func raw(t *testing.T, v any) json.RawMessage { diff --git a/internal/intentsem/generator.go b/internal/intentsem/generator.go index 2f7ed75..5c79f6c 100644 --- a/internal/intentsem/generator.go +++ b/internal/intentsem/generator.go @@ -6,8 +6,8 @@ import ( "fmt" "strings" - agentintent "agent-intent/intent" - agentllm "agent-native/runtime/llm" + agentintent "git-ssh.u1680832.nyat.app/weichen/Agent-Intent.git/intent" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" ) // LightGenerator 用轻量模型实现 agentintent.CommandGenerator diff --git a/internal/intentsem/intentsem_test.go b/internal/intentsem/intentsem_test.go index fd8bfc7..9ebc780 100644 --- a/internal/intentsem/intentsem_test.go +++ b/internal/intentsem/intentsem_test.go @@ -6,8 +6,8 @@ import ( "strings" "testing" - agentintent "agent-intent/intent" - agentllm "agent-native/runtime/llm" + agentintent "git-ssh.u1680832.nyat.app/weichen/Agent-Intent.git/intent" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" ) // fakeEmbedder 返回脚本化向量:texts[i] → vecs[i](循环取模)。 diff --git a/internal/intentsem/scorer.go b/internal/intentsem/scorer.go index b7d8818..eca1fa0 100644 --- a/internal/intentsem/scorer.go +++ b/internal/intentsem/scorer.go @@ -8,7 +8,7 @@ import ( "context" "math" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // EmbeddingScorer 用语义向量实现 agentintent.SemanticScorer: diff --git a/internal/pgbus/pgbus.go b/internal/pgbus/pgbus.go index d476eaa..baf91b2 100644 --- a/internal/pgbus/pgbus.go +++ b/internal/pgbus/pgbus.go @@ -19,9 +19,9 @@ import ( "sync" "time" - "agent-system-backend/internal/bus" - "agent-system-backend/internal/store" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/bus" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" "github.com/jackc/pgx/v5" ) diff --git a/internal/pgbus/pgbus_test.go b/internal/pgbus/pgbus_test.go index f5400fa..7f52bf0 100644 --- a/internal/pgbus/pgbus_test.go +++ b/internal/pgbus/pgbus_test.go @@ -13,9 +13,9 @@ import ( "testing" "time" - "agent-system-backend/internal/bus" - "agent-system-backend/internal/store" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/bus" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) func pgTestStore(t *testing.T) (*store.Store, string) { diff --git a/internal/plugins/agents.go b/internal/plugins/agents.go index d86bab8..0d50902 100644 --- a/internal/plugins/agents.go +++ b/internal/plugins/agents.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // agentBannedKeys 是插件代理声明禁带的键:钩子、MCP 与权限模式归宿主与 diff --git a/internal/plugins/agents_test.go b/internal/plugins/agents_test.go index d7818b1..524819f 100644 --- a/internal/plugins/agents_test.go +++ b/internal/plugins/agents_test.go @@ -6,7 +6,7 @@ import ( "strings" "testing" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // writeAgentPlugin 写一个带 agents/ 资产的插件目录。 diff --git a/internal/plugins/host.go b/internal/plugins/host.go index 99f55a3..5446286 100644 --- a/internal/plugins/host.go +++ b/internal/plugins/host.go @@ -13,11 +13,11 @@ import ( "strings" "sync" - "agent-system-backend/internal/settings" - "agent-system-backend/internal/store" - "agent-system-backend/internal/tools" - "agent-system-backend/internal/workflow" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/settings" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/tools" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/workflow" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // Loaded 是一个已装载插件的内存态(注册结果快照)。 diff --git a/internal/plugins/host_test.go b/internal/plugins/host_test.go index aed4787..8cb978a 100644 --- a/internal/plugins/host_test.go +++ b/internal/plugins/host_test.go @@ -8,12 +8,12 @@ import ( "strings" "testing" - "agent-system-backend/internal/intentgate" - "agent-system-backend/internal/settings" - "agent-system-backend/internal/store" - "agent-system-backend/internal/tools" - "agent-system-backend/internal/workflow" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/intentgate" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/settings" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/tools" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/workflow" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) func newHost(t *testing.T) (*Host, *tools.Registry, string) { diff --git a/internal/plugins/host_v2.go b/internal/plugins/host_v2.go index b02b827..51b34a8 100644 --- a/internal/plugins/host_v2.go +++ b/internal/plugins/host_v2.go @@ -9,10 +9,10 @@ import ( "path/filepath" "strings" - "agent-system-backend/internal/skills" - "agent-system-backend/internal/store" - "agent-system-backend/internal/tools" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/skills" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/tools" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) func (h *Host) SetSkillsRoot(dir string) { h.skillsRoot = dir } diff --git a/internal/plugins/host_v2_test.go b/internal/plugins/host_v2_test.go index be0c5fd..f364c8f 100644 --- a/internal/plugins/host_v2_test.go +++ b/internal/plugins/host_v2_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) func TestV2AssetsAndNetwork(t *testing.T) { diff --git a/internal/profiles/profiles.go b/internal/profiles/profiles.go index f05e17b..31d54a2 100644 --- a/internal/profiles/profiles.go +++ b/internal/profiles/profiles.go @@ -4,8 +4,8 @@ package profiles import ( "reflect" - "agent-system-backend/internal/store" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // OwnerDefault 与 store 保持一致的默认租户(内置画像共享,owner=”)。 diff --git a/internal/projectscope/projectscope.go b/internal/projectscope/projectscope.go index 25bc722..f44145a 100644 --- a/internal/projectscope/projectscope.go +++ b/internal/projectscope/projectscope.go @@ -3,9 +3,9 @@ package projectscope import ( - "agent-system-backend/internal/store" - "agent-system-backend/pkg/extension" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/pkg/extension" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" "context" ) diff --git a/internal/prompts/parse.go b/internal/prompts/parse.go index aebe2e8..e156aa8 100644 --- a/internal/prompts/parse.go +++ b/internal/prompts/parse.go @@ -7,7 +7,7 @@ import ( "strconv" "strings" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // ParseModuleFile 解析一个库文件(frontmatter + 正文)。 diff --git a/internal/prompts/prompts_test.go b/internal/prompts/prompts_test.go index 973696b..42d2245 100644 --- a/internal/prompts/prompts_test.go +++ b/internal/prompts/prompts_test.go @@ -4,8 +4,8 @@ import ( "strings" "testing" - "agent-system-backend/internal/store" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // 内置库必须全部可解析、ID 唯一、层级合法、触发引用完整。 diff --git a/internal/prompts/service.go b/internal/prompts/service.go index 948e9aa..6dfe28d 100644 --- a/internal/prompts/service.go +++ b/internal/prompts/service.go @@ -8,8 +8,8 @@ import ( "sort" "strings" - "agent-system-backend/internal/store" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) //go:embed library/*.md diff --git a/internal/quality/checker.go b/internal/quality/checker.go index e565416..530da9e 100644 --- a/internal/quality/checker.go +++ b/internal/quality/checker.go @@ -6,7 +6,7 @@ import ( "strings" "time" - "agent-squad/squad" + "git-ssh.u1680832.nyat.app/weichen/Agent-Squad.git/squad" ) // Checker 把评分卡接到小队质检。不通过时把意见写到工作区 quality-feedback.md, diff --git a/internal/rag/chunker.go b/internal/rag/chunker.go index bd219be..64b51d1 100644 --- a/internal/rag/chunker.go +++ b/internal/rag/chunker.go @@ -5,7 +5,7 @@ package rag import ( "strings" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // FixedChunker 段落感知定长分块:优先沿空行段落边界聚包,段落超长按窗口硬切, diff --git a/internal/rag/embed.go b/internal/rag/embed.go index 2b54fc6..686608a 100644 --- a/internal/rag/embed.go +++ b/internal/rag/embed.go @@ -9,7 +9,7 @@ import ( "net/http" "time" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // Route 解析一次模型路由(设置层;组合根/管线调用方负责取有效设置)。 diff --git a/internal/rag/hybrid.go b/internal/rag/hybrid.go index e9438d2..045b134 100644 --- a/internal/rag/hybrid.go +++ b/internal/rag/hybrid.go @@ -6,9 +6,9 @@ import ( "encoding/hex" "log" - "agent-system-backend/internal/settings" - "agent-system-backend/internal/store" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/settings" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // Pipeline 实现设计 4.12 检索管线: diff --git a/internal/rag/rag_test.go b/internal/rag/rag_test.go index c3ce9f6..32a9205 100644 --- a/internal/rag/rag_test.go +++ b/internal/rag/rag_test.go @@ -7,9 +7,9 @@ import ( "strings" "testing" - "agent-system-backend/internal/settings" - "agent-system-backend/internal/store" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/settings" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // fakeEmbedder 确定性向量:按首字符映射,验证混合检索排序无需真实模型。 diff --git a/internal/rag/shared_retrieval_test.go b/internal/rag/shared_retrieval_test.go index 9118d69..4131d2e 100644 --- a/internal/rag/shared_retrieval_test.go +++ b/internal/rag/shared_retrieval_test.go @@ -5,9 +5,9 @@ import ( "path/filepath" "testing" - "agent-system-backend/internal/settings" - "agent-system-backend/internal/store" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/settings" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // EXT-8 余项红/绿:向量通道共享——他人 owner 的向量命中经 allow 放行可检。 diff --git a/internal/route/route.go b/internal/route/route.go index 2d12269..20a3d91 100644 --- a/internal/route/route.go +++ b/internal/route/route.go @@ -19,8 +19,8 @@ package route import ( - "agent-system-backend/internal/intentgate" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/intentgate" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // Kind 是路由决策类型。 diff --git a/internal/route/route_test.go b/internal/route/route_test.go index 86bbfab..0fc77ae 100644 --- a/internal/route/route_test.go +++ b/internal/route/route_test.go @@ -3,8 +3,8 @@ package route import ( "testing" - "agent-system-backend/internal/intentgate" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/intentgate" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) func startCmd(action intentgate.ActionRef) intentgate.Command { diff --git a/internal/runmgr/admission.go b/internal/runmgr/admission.go index a261845..9b8e788 100644 --- a/internal/runmgr/admission.go +++ b/internal/runmgr/admission.go @@ -6,7 +6,7 @@ import ( "log" "sync" - "agent-system-backend/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" ) // 协作存储 U3 切片 2:执行许可门(R8)。预算经 budgetFn 动态读取(设置 diff --git a/internal/runmgr/admission_test.go b/internal/runmgr/admission_test.go index 6172587..c6d52b6 100644 --- a/internal/runmgr/admission_test.go +++ b/internal/runmgr/admission_test.go @@ -6,8 +6,8 @@ import ( "testing" "time" - "agent-system-backend/internal/store" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // 协作存储 U3 切片 2(R8):执行预算在 runmgr 侧的行为面—— diff --git a/internal/runmgr/background_card_test.go b/internal/runmgr/background_card_test.go index 3f8f0d1..c203ddc 100644 --- a/internal/runmgr/background_card_test.go +++ b/internal/runmgr/background_card_test.go @@ -6,9 +6,9 @@ import ( "sync" "testing" - "agent-system-backend/internal/cardsvc" - "agent-system-backend/internal/runtime" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/cardsvc" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/runtime" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // newCardSpawnEnv 在后台派发环境上接线收件箱卡片服务,并捕获发出的卡片事件 diff --git a/internal/runmgr/background_test.go b/internal/runmgr/background_test.go index 82cf077..9555114 100644 --- a/internal/runmgr/background_test.go +++ b/internal/runmgr/background_test.go @@ -6,8 +6,8 @@ import ( "testing" "time" - "agent-system-backend/internal/runtime" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/runtime" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) type gateRunner struct { diff --git a/internal/runmgr/command_tools_test.go b/internal/runmgr/command_tools_test.go index 1ac14b6..d75f78e 100644 --- a/internal/runmgr/command_tools_test.go +++ b/internal/runmgr/command_tools_test.go @@ -8,8 +8,8 @@ import ( "context" "testing" - "agent-system-backend/internal/tools" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/tools" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // fakeBusSource EXT-14 测试桩:命令清单 + 分发记录(说话用 runmgr 视图类型, diff --git a/internal/runmgr/commands.go b/internal/runmgr/commands.go index c520651..5d9c243 100644 --- a/internal/runmgr/commands.go +++ b/internal/runmgr/commands.go @@ -6,7 +6,7 @@ import ( "log" "time" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // 协作存储 U5(KTD5):持久命令消费。任意 API 实例把取消/HITL 写入 diff --git a/internal/runmgr/crossread_test.go b/internal/runmgr/crossread_test.go index 0ae2554..44552e6 100644 --- a/internal/runmgr/crossread_test.go +++ b/internal/runmgr/crossread_test.go @@ -8,9 +8,9 @@ import ( "path/filepath" "testing" - "agent-system-backend/internal/settings" - "agent-system-backend/internal/store" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/settings" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) type crossEnv struct { diff --git a/internal/runmgr/entry_test.go b/internal/runmgr/entry_test.go index 33e52c5..d24a14f 100644 --- a/internal/runmgr/entry_test.go +++ b/internal/runmgr/entry_test.go @@ -3,9 +3,9 @@ package runmgr import ( "testing" - "agent-system-backend/internal/runtime" - "agent-system-backend/internal/workflow" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/runtime" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/workflow" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) type nameRunner struct{ name string } diff --git a/internal/runmgr/events.go b/internal/runmgr/events.go index 971e0c2..e64516e 100644 --- a/internal/runmgr/events.go +++ b/internal/runmgr/events.go @@ -6,9 +6,9 @@ import ( "sync" "time" - "agent-system-backend/internal/bus" - "agent-system-backend/internal/store" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/bus" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // eventBuffer 是会话事件批处理器(写放大治理): diff --git a/internal/runmgr/exec_tool_artifact_test.go b/internal/runmgr/exec_tool_artifact_test.go index e6256f9..b936af9 100644 --- a/internal/runmgr/exec_tool_artifact_test.go +++ b/internal/runmgr/exec_tool_artifact_test.go @@ -11,12 +11,12 @@ import ( "strings" "testing" - "agent-system-backend/internal/bus" - "agent-system-backend/internal/docgen" - "agent-system-backend/internal/settings" - "agent-system-backend/internal/store" - "agent-system-backend/internal/tools" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/bus" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/docgen" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/settings" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/tools" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) func newExecEnv(t *testing.T) (*runCtx, *store.Store) { diff --git a/internal/runmgr/genui_auto.go b/internal/runmgr/genui_auto.go index 12e1755..cd6247e 100644 --- a/internal/runmgr/genui_auto.go +++ b/internal/runmgr/genui_auto.go @@ -1,7 +1,7 @@ package runmgr import ( - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // SetGenUIAuto 注入自动建议闸门(组合根装配;nil 关闭)。 diff --git a/internal/runmgr/hitl_timeout_test.go b/internal/runmgr/hitl_timeout_test.go index 17bc087..17a8f4f 100644 --- a/internal/runmgr/hitl_timeout_test.go +++ b/internal/runmgr/hitl_timeout_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) func TestWaitHITLTimeout(t *testing.T) { diff --git a/internal/runmgr/inputs.go b/internal/runmgr/inputs.go index 6c74c09..8bf0609 100644 --- a/internal/runmgr/inputs.go +++ b/internal/runmgr/inputs.go @@ -7,7 +7,7 @@ import ( "strings" "unicode/utf8" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // WorkspaceFile 是要落到会话工作区 inputs/ 的原件(上传文件或默认模板)。 diff --git a/internal/runmgr/inputs_persist_test.go b/internal/runmgr/inputs_persist_test.go index cce3365..e8ba850 100644 --- a/internal/runmgr/inputs_persist_test.go +++ b/internal/runmgr/inputs_persist_test.go @@ -6,7 +6,7 @@ import ( "strings" "testing" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // 附件解析文本要落 inputs/<原名>.md 且跨轮可见:后续轮上下文里原件只剩占位时, diff --git a/internal/runmgr/knowledge_resource_test.go b/internal/runmgr/knowledge_resource_test.go index 2cbd96e..67a6dd4 100644 --- a/internal/runmgr/knowledge_resource_test.go +++ b/internal/runmgr/knowledge_resource_test.go @@ -1,9 +1,9 @@ package runmgr import ( - "agent-system-backend/internal/rag" - "agent-system-backend/internal/store" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/rag" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" "context" "encoding/json" "errors" diff --git a/internal/runmgr/material.go b/internal/runmgr/material.go index fc7d300..16c381d 100644 --- a/internal/runmgr/material.go +++ b/internal/runmgr/material.go @@ -16,7 +16,7 @@ import ( "strings" "unicode/utf8" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) const ( diff --git a/internal/runmgr/material_test.go b/internal/runmgr/material_test.go index 8f6efed..999dfb0 100644 --- a/internal/runmgr/material_test.go +++ b/internal/runmgr/material_test.go @@ -5,8 +5,8 @@ import ( "strings" "testing" - "agent-system-backend/internal/runtime" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/runtime" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // holdRunner 阻塞到 release 才完成——材料整理去重需要子任务仍在运行的窗口。 diff --git a/internal/runmgr/memory.go b/internal/runmgr/memory.go index c9bf432..559703a 100644 --- a/internal/runmgr/memory.go +++ b/internal/runmgr/memory.go @@ -4,9 +4,9 @@ import ( "context" "time" - "agent-native/runtime/memory" - "agent-system-backend/internal/store" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/memory" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // storeMemory 把 agent-native 的记忆端口接到 memory_entries 表(N3 WP5)。 diff --git a/internal/runmgr/memory_test.go b/internal/runmgr/memory_test.go index e13b221..69a4948 100644 --- a/internal/runmgr/memory_test.go +++ b/internal/runmgr/memory_test.go @@ -6,9 +6,9 @@ import ( "testing" "time" - "agent-native/runtime/memory" - "agent-system-backend/internal/store" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/memory" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // ---- N3 WP5:storeMemory 适配器 ---- diff --git a/internal/runmgr/multi_instance_test.go b/internal/runmgr/multi_instance_test.go index 51fd3a9..91ac3d3 100644 --- a/internal/runmgr/multi_instance_test.go +++ b/internal/runmgr/multi_instance_test.go @@ -11,8 +11,8 @@ import ( "testing" "time" - "agent-system-backend/internal/store" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // 协作存储 U5:双实例语义(KTD4/KTD5)。两个独立 Manager(A/B)共享同一 diff --git a/internal/runmgr/notice_recursion_test.go b/internal/runmgr/notice_recursion_test.go index f251e70..ed20e8d 100644 --- a/internal/runmgr/notice_recursion_test.go +++ b/internal/runmgr/notice_recursion_test.go @@ -4,8 +4,8 @@ import ( "testing" "time" - "agent-system-backend/internal/store" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // U3 真库门禁回归(job 2352 栈溢出):投递失败(会话行不存在)时旧实现的 diff --git a/internal/runmgr/perm_test.go b/internal/runmgr/perm_test.go index 37c8f88..771fb85 100644 --- a/internal/runmgr/perm_test.go +++ b/internal/runmgr/perm_test.go @@ -4,10 +4,10 @@ import ( "context" "testing" - agentllm "agent-native/runtime/llm" - agentpolicy "agent-native/runtime/policy" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" + agentpolicy "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/policy" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) func TestPlanModeRejectsWriteAndKeepsRead(t *testing.T) { diff --git a/internal/runmgr/realproc_test.go b/internal/runmgr/realproc_test.go index 122b643..7880ac2 100644 --- a/internal/runmgr/realproc_test.go +++ b/internal/runmgr/realproc_test.go @@ -19,8 +19,8 @@ import ( "testing" "time" - "agent-system-backend/internal/store" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" _ "github.com/jackc/pgx/v5/stdlib" ) diff --git a/internal/runmgr/recovery_hold_test.go b/internal/runmgr/recovery_hold_test.go index 866de78..ed3e3c6 100644 --- a/internal/runmgr/recovery_hold_test.go +++ b/internal/runmgr/recovery_hold_test.go @@ -6,8 +6,8 @@ import ( "testing" "time" - "agent-system-backend/internal/store" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // 协作存储 U3:恢复隔离(recovery hold)。未知外部副作用的 run 不得被启动 diff --git a/internal/runmgr/recovery_test.go b/internal/runmgr/recovery_test.go index 7712254..27539ae 100644 --- a/internal/runmgr/recovery_test.go +++ b/internal/runmgr/recovery_test.go @@ -10,12 +10,12 @@ import ( "testing" "time" - "agent-system-backend/internal/bus" - "agent-system-backend/internal/profiles" - "agent-system-backend/internal/settings" - "agent-system-backend/internal/store" - "agent-system-backend/internal/tools" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/bus" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/profiles" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/settings" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/tools" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) func openRecoveryStore(t *testing.T) *store.Store { diff --git a/internal/runmgr/rewind.go b/internal/runmgr/rewind.go index 1e1763e..5e9f737 100644 --- a/internal/runmgr/rewind.go +++ b/internal/runmgr/rewind.go @@ -6,8 +6,8 @@ import ( "path/filepath" "strings" - "agent-native/runtime/checkpoint" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/checkpoint" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) func (m *Manager) checkpointFile(owner, convID string) (string, error) { diff --git a/internal/runmgr/rewind_test.go b/internal/runmgr/rewind_test.go index 45bbde8..ac0b3dd 100644 --- a/internal/runmgr/rewind_test.go +++ b/internal/runmgr/rewind_test.go @@ -5,8 +5,8 @@ import ( "path/filepath" "testing" - "agent-system-backend/internal/tools" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/tools" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) func TestRewindRestoresTrackedWriteAndLeavesShellFile(t *testing.T) { diff --git a/internal/runmgr/runmgr.go b/internal/runmgr/runmgr.go index b3f3d99..841a027 100644 --- a/internal/runmgr/runmgr.go +++ b/internal/runmgr/runmgr.go @@ -16,24 +16,24 @@ import ( "time" "unicode/utf8" - nruntime "agent-native/runtime" - "agent-native/runtime/filestate" - agentllm "agent-native/runtime/llm" - agentpolicy "agent-native/runtime/policy" - "agent-native/runtime/subagent" + nruntime "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime" + "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/filestate" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" + agentpolicy "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/policy" + "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/subagent" - "agent-system-backend/internal/bus" - "agent-system-backend/internal/cardsvc" - "agent-system-backend/internal/ingest" - "agent-system-backend/internal/intentgate" - "agent-system-backend/internal/profiles" - "agent-system-backend/internal/route" - "agent-system-backend/internal/runtime" - "agent-system-backend/internal/settings" - "agent-system-backend/internal/store" - "agent-system-backend/internal/tools" - "agent-system-backend/internal/workflow" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/bus" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/cardsvc" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/ingest" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/intentgate" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/profiles" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/route" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/runtime" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/settings" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/tools" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/workflow" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) type Manager struct { diff --git a/internal/runmgr/shared_run_retrieval_test.go b/internal/runmgr/shared_run_retrieval_test.go index 1780b1a..337916a 100644 --- a/internal/runmgr/shared_run_retrieval_test.go +++ b/internal/runmgr/shared_run_retrieval_test.go @@ -8,7 +8,7 @@ import ( "context" "testing" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) type sharedFakeRetriever struct { diff --git a/internal/runmgr/subagent_n2_test.go b/internal/runmgr/subagent_n2_test.go index 49ddda1..040d3ba 100644 --- a/internal/runmgr/subagent_n2_test.go +++ b/internal/runmgr/subagent_n2_test.go @@ -7,8 +7,8 @@ import ( "testing" "time" - "agent-system-backend/internal/store" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // ---- N2 WP5:子代理独立转录、中断续跑、通知持久化 ---- diff --git a/internal/runmgr/subagent_p3_test.go b/internal/runmgr/subagent_p3_test.go index ce5c46a..2c0d9df 100644 --- a/internal/runmgr/subagent_p3_test.go +++ b/internal/runmgr/subagent_p3_test.go @@ -4,12 +4,12 @@ import ( "strings" "testing" - "agent-system-backend/internal/bus" - "agent-system-backend/internal/profiles" - "agent-system-backend/internal/runtime" - "agent-system-backend/internal/settings" - "agent-system-backend/internal/store" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/bus" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/profiles" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/runtime" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/settings" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) type captureRunner struct { diff --git a/internal/runmgr/subagent_transcript.go b/internal/runmgr/subagent_transcript.go index d83a262..74f3798 100644 --- a/internal/runmgr/subagent_transcript.go +++ b/internal/runmgr/subagent_transcript.go @@ -8,7 +8,7 @@ import ( "path/filepath" "time" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // subagent_transcript.go — 子代理独立转录与中断续跑(N2 WP5)。 diff --git a/internal/runmgr/workflow_route_test.go b/internal/runmgr/workflow_route_test.go index bdc3634..c513c57 100644 --- a/internal/runmgr/workflow_route_test.go +++ b/internal/runmgr/workflow_route_test.go @@ -5,14 +5,14 @@ import ( "testing" "time" - "agent-system-backend/internal/bus" - "agent-system-backend/internal/profiles" - "agent-system-backend/internal/runtime" - "agent-system-backend/internal/settings" - "agent-system-backend/internal/store" - "agent-system-backend/internal/tools" - "agent-system-backend/internal/workflow" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/bus" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/profiles" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/runtime" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/settings" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/tools" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/workflow" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) type launchCapture struct { diff --git a/internal/runtime/compose.go b/internal/runtime/compose.go index 8682e2b..0c88653 100644 --- a/internal/runtime/compose.go +++ b/internal/runtime/compose.go @@ -5,8 +5,8 @@ import ( "regexp" "strings" - agentllm "agent-native/runtime/llm" - core "agent-system-core" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // 工件编号和字节数只属于系统记录。收尾模型见过工具摘要后会把它们抄进回复。 diff --git a/internal/runtime/compose_test.go b/internal/runtime/compose_test.go index 8bbfb06..20e6a6b 100644 --- a/internal/runtime/compose_test.go +++ b/internal/runtime/compose_test.go @@ -5,8 +5,8 @@ import ( "strings" "testing" - agentllm "agent-native/runtime/llm" - core "agent-system-core" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) func TestEvidencePromptLastCheckWins(t *testing.T) { diff --git a/internal/runtime/context_window_test.go b/internal/runtime/context_window_test.go index 765ae5a..08b22b2 100644 --- a/internal/runtime/context_window_test.go +++ b/internal/runtime/context_window_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // 窗口按 token 配置并换算为字符阈值;此前 32000 字符硬默认会让长材料任务 diff --git a/internal/runtime/deliverable_latest_test.go b/internal/runtime/deliverable_latest_test.go index d5002c5..8843c57 100644 --- a/internal/runtime/deliverable_latest_test.go +++ b/internal/runtime/deliverable_latest_test.go @@ -3,7 +3,7 @@ package runtime import ( "testing" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // 修订(同名再登记)后,终轮检查与交付清单只看最新版本; diff --git a/internal/runtime/dual_speed_nudge_test.go b/internal/runtime/dual_speed_nudge_test.go index 5efbbeb..e37d132 100644 --- a/internal/runtime/dual_speed_nudge_test.go +++ b/internal/runtime/dual_speed_nudge_test.go @@ -8,8 +8,8 @@ import ( "testing" "time" - agentllm "agent-native/runtime/llm" - core "agent-system-core" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // 双速提醒经内核 Reminders 钩子进入下一请求的消息(不是响应部件): diff --git a/internal/runtime/e4_escalation_test.go b/internal/runtime/e4_escalation_test.go index 7d40600..e20de31 100644 --- a/internal/runtime/e4_escalation_test.go +++ b/internal/runtime/e4_escalation_test.go @@ -6,7 +6,7 @@ import ( "strings" "testing" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // ---- E4:R4 升级提醒 ---- diff --git a/internal/runtime/factcheck.go b/internal/runtime/factcheck.go index 6d8ea5f..741da22 100644 --- a/internal/runtime/factcheck.go +++ b/internal/runtime/factcheck.go @@ -7,9 +7,9 @@ import ( "regexp" "strings" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" - "agent-system-backend/internal/quality" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/quality" ) // factCheckMaxRounds 是 E3 的事实核查修正轮上限:两轮(第二轮为「最后一次 diff --git a/internal/runtime/factcheck_test.go b/internal/runtime/factcheck_test.go index 9473722..be21dad 100644 --- a/internal/runtime/factcheck_test.go +++ b/internal/runtime/factcheck_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // 事实核查:交付物里材料找不到出处的百分比被抽出并组成反馈;找到的不报。 diff --git a/internal/runtime/final_reply_test.go b/internal/runtime/final_reply_test.go index 6bf8e53..d3bc830 100644 --- a/internal/runtime/final_reply_test.go +++ b/internal/runtime/final_reply_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // 问题一回归(run_b520bf2e3037):事实核查修正轮触发时,现场那段正式总结必须 diff --git a/internal/runtime/hostbridge.go b/internal/runtime/hostbridge.go index 2b4e40a..5436810 100644 --- a/internal/runtime/hostbridge.go +++ b/internal/runtime/hostbridge.go @@ -8,9 +8,9 @@ import ( "path/filepath" "strings" - "agent-native/adapters/native" - "agent-native/runtime/tools" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/adapters/native" + "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/tools" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // kernelToolNames 是内核工作区自带的工具。同名宿主工具不注入,避免步骤因冲突失败。 diff --git a/internal/runtime/llm.go b/internal/runtime/llm.go index d06dae1..048da3e 100644 --- a/internal/runtime/llm.go +++ b/internal/runtime/llm.go @@ -8,16 +8,16 @@ import ( "strings" "time" - nruntime "agent-native/runtime" - "agent-native/runtime/gates" - agentllm "agent-native/runtime/llm" - agentmemory "agent-native/runtime/memory" - "agent-native/runtime/policy" - agenttools "agent-native/runtime/tools" - "agent-system-backend/internal/ctxasm" - "agent-system-backend/internal/prompts" - "agent-system-backend/internal/quality" - core "agent-system-core" + nruntime "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime" + "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/gates" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" + agentmemory "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/memory" + "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/policy" + agenttools "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/tools" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/ctxasm" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/prompts" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/quality" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // LLMRunner 主对话执行器:复用 agent-native 的 OpenAI 兼容流式客户端(不自研接入层)。 diff --git a/internal/runtime/llm_direct.go b/internal/runtime/llm_direct.go index aa40273..cc5f057 100644 --- a/internal/runtime/llm_direct.go +++ b/internal/runtime/llm_direct.go @@ -10,18 +10,18 @@ import ( "sync" "time" - nruntime "agent-native/runtime" - "agent-native/runtime/checkpoint" - "agent-native/runtime/filestate" - "agent-native/runtime/gates" - "agent-native/runtime/hooks" - agentllm "agent-native/runtime/llm" - agentsession "agent-native/runtime/session" - agenttools "agent-native/runtime/tools" - "agent-system-backend/internal/ctxasm" - "agent-system-backend/internal/squadadapter" - "agent-system-backend/internal/wfcompile" - core "agent-system-core" + nruntime "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime" + "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/checkpoint" + "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/filestate" + "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/gates" + "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/hooks" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" + agentsession "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/session" + agenttools "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/tools" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/ctxasm" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/squadadapter" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/wfcompile" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // directRun 是直连路径在一次 runtime.Run 期间的部件与交付物状态。 diff --git a/internal/runtime/llm_direct_e1_test.go b/internal/runtime/llm_direct_e1_test.go index 5d0d341..f5cd057 100644 --- a/internal/runtime/llm_direct_e1_test.go +++ b/internal/runtime/llm_direct_e1_test.go @@ -4,9 +4,9 @@ import ( "strings" "testing" - nruntime "agent-native/runtime" - agentllm "agent-native/runtime/llm" - core "agent-system-core" + nruntime "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // ---- F1:delegate_task 回传子代理全文,不再只有 160 字摘要 ---- diff --git a/internal/runtime/llm_direct_n3_test.go b/internal/runtime/llm_direct_n3_test.go index 3cf4382..a7e9d47 100644 --- a/internal/runtime/llm_direct_n3_test.go +++ b/internal/runtime/llm_direct_n3_test.go @@ -6,9 +6,9 @@ import ( "strings" "testing" - agentllm "agent-native/runtime/llm" - agentsession "agent-native/runtime/session" - core "agent-system-core" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" + agentsession "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/session" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // ---- N3 WP2:产品会话路径持久化(验收① 产品层机器证据)---- diff --git a/internal/runtime/llm_test.go b/internal/runtime/llm_test.go index 067488e..9acdb8e 100644 --- a/internal/runtime/llm_test.go +++ b/internal/runtime/llm_test.go @@ -3,15 +3,15 @@ package runtime import ( "context" - agentmemory "agent-native/runtime/memory" + agentmemory "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/memory" "errors" "fmt" "strings" "testing" "time" - agentllm "agent-native/runtime/llm" - core "agent-system-core" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) type emittedEvent struct { diff --git a/internal/runtime/llm_think_test.go b/internal/runtime/llm_think_test.go index a39d7c7..7c61c89 100644 --- a/internal/runtime/llm_think_test.go +++ b/internal/runtime/llm_think_test.go @@ -6,8 +6,8 @@ import ( "strings" "testing" - agentllm "agent-native/runtime/llm" - core "agent-system-core" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // TestSplitThinkBlock 单测:首部 … 剥离;未闭合/非首部/空块按原文。 diff --git a/internal/runtime/llm_verify_test.go b/internal/runtime/llm_verify_test.go index 95e449a..370f475 100644 --- a/internal/runtime/llm_verify_test.go +++ b/internal/runtime/llm_verify_test.go @@ -9,9 +9,9 @@ import ( "strings" "testing" - "agent-native/runtime/gates" - agentllm "agent-native/runtime/llm" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/gates" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) func textDeltaTurn(body string, calls ...agentllm.ToolCall) []agentllm.Event { diff --git a/internal/runtime/material_flow_test.go b/internal/runtime/material_flow_test.go index 0d03a9d..7123ccd 100644 --- a/internal/runtime/material_flow_test.go +++ b/internal/runtime/material_flow_test.go @@ -5,8 +5,8 @@ import ( "strings" "testing" - agentllm "agent-native/runtime/llm" - core "agent-system-core" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // matCtx 在 fakeRunCtx 之上实现材料整理的两个可选接口(附件即保证), diff --git a/internal/runtime/mock.go b/internal/runtime/mock.go index 36ee285..6daf7ef 100644 --- a/internal/runtime/mock.go +++ b/internal/runtime/mock.go @@ -5,11 +5,11 @@ import ( "strings" "time" - "agent-system-backend/internal/docgen" - "agent-system-backend/internal/squadadapter" - "agent-system-backend/internal/wfcompile" - "agent-system-backend/internal/workflow" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/docgen" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/squadadapter" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/wfcompile" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/workflow" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) func firstNonEmpty0(vals ...string) string { diff --git a/internal/runtime/model.go b/internal/runtime/model.go index 542ec84..46c9dc5 100644 --- a/internal/runtime/model.go +++ b/internal/runtime/model.go @@ -3,7 +3,7 @@ package runtime import ( "strings" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // SecretLookup 由组合根注入。返回该服务当前生效的明文;没有独立密钥时 ok 为 false,调用方用设置里的旧字段。 diff --git a/internal/runtime/model_test.go b/internal/runtime/model_test.go index bac984b..a8c51dc 100644 --- a/internal/runtime/model_test.go +++ b/internal/runtime/model_test.go @@ -3,7 +3,7 @@ package runtime import ( "testing" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) func effOf(kv map[string]any) core.EffectiveSettings { return core.EffectiveSettings(kv) } diff --git a/internal/runtime/permission_ask_test.go b/internal/runtime/permission_ask_test.go index 0a46a9a..d153b65 100644 --- a/internal/runtime/permission_ask_test.go +++ b/internal/runtime/permission_ask_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - nruntime "agent-native/runtime" - agentllm "agent-native/runtime/llm" + nruntime "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" ) // PermissionAskOf 只在宿主实现内核级询问时接线;否则返回 nil, diff --git a/internal/runtime/planless_nudge_test.go b/internal/runtime/planless_nudge_test.go index 87e3edb..209a6ca 100644 --- a/internal/runtime/planless_nudge_test.go +++ b/internal/runtime/planless_nudge_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // P4:计划提醒常开——没有任何计划/待办而任务变长时,给一次可忽略的轻提醒; diff --git a/internal/runtime/review.go b/internal/runtime/review.go index dc18781..4da4456 100644 --- a/internal/runtime/review.go +++ b/internal/runtime/review.go @@ -7,7 +7,7 @@ import ( "strings" "sync" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) const reviewProfileID = "agent.sub.review" diff --git a/internal/runtime/review_test.go b/internal/runtime/review_test.go index bbf029a..8d468ef 100644 --- a/internal/runtime/review_test.go +++ b/internal/runtime/review_test.go @@ -8,8 +8,8 @@ import ( "testing" "time" - agentllm "agent-native/runtime/llm" - core "agent-system-core" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) func TestReviewKeepsPassAndDropsTheRest(t *testing.T) { diff --git a/internal/runtime/runner.go b/internal/runtime/runner.go index d884842..91a9946 100644 --- a/internal/runtime/runner.go +++ b/internal/runtime/runner.go @@ -5,10 +5,10 @@ package runtime import ( "context" - nruntime "agent-native/runtime" - agentllm "agent-native/runtime/llm" + nruntime "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // RunCtx 是 Runner 的受控环境(由 runmgr 实现):事件发布、HITL、子代理、 diff --git a/internal/runtime/squad_runner.go b/internal/runtime/squad_runner.go index 22775cb..b984fd5 100644 --- a/internal/runtime/squad_runner.go +++ b/internal/runtime/squad_runner.go @@ -6,10 +6,10 @@ import ( "fmt" "strings" - agentllm "agent-native/runtime/llm" - "agent-squad/squad" - "agent-system-backend/internal/squadadapter" - core "agent-system-core" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" + "git-ssh.u1680832.nyat.app/weichen/Agent-Squad.git/squad" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/squadadapter" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // SquadRunner 是 runtime.entry=squad 时的对话入口。 diff --git a/internal/runtime/squad_runner_test.go b/internal/runtime/squad_runner_test.go index 08e688e..72ef91c 100644 --- a/internal/runtime/squad_runner_test.go +++ b/internal/runtime/squad_runner_test.go @@ -10,9 +10,9 @@ import ( "sync" "testing" - agentllm "agent-native/runtime/llm" - "agent-squad/squad" - core "agent-system-core" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" + "git-ssh.u1680832.nyat.app/weichen/Agent-Squad.git/squad" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) const squadGoodDoc = "# 应先把结论写进标题\n\n一句话:范围已经明确,按会议记录执行。\n\n依据来自附件里的原话。\n" diff --git a/internal/runtime/sub_loop.go b/internal/runtime/sub_loop.go index 3e5f302..c509637 100644 --- a/internal/runtime/sub_loop.go +++ b/internal/runtime/sub_loop.go @@ -8,11 +8,11 @@ import ( "strings" "time" - nruntime "agent-native/runtime" - agentllm "agent-native/runtime/llm" - agenttools "agent-native/runtime/tools" - "agent-system-backend/internal/prompts" - core "agent-system-core" + nruntime "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" + agenttools "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/tools" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/prompts" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) const subagentFallback = "你是被派生的子代理。独立完成给定子任务,输出完整、结构化的结果;需要分点时分条列出,不要为了简短而省略关键内容。" diff --git a/internal/runtime/sub_loop_test.go b/internal/runtime/sub_loop_test.go index c002c44..4842daf 100644 --- a/internal/runtime/sub_loop_test.go +++ b/internal/runtime/sub_loop_test.go @@ -5,9 +5,9 @@ import ( "strings" "testing" - agentllm "agent-native/runtime/llm" - "agent-system-backend/internal/prompts" - core "agent-system-core" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/prompts" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) type subRC struct { diff --git a/internal/runtime/toolselect_test.go b/internal/runtime/toolselect_test.go index 1fd9f2c..b71d92e 100644 --- a/internal/runtime/toolselect_test.go +++ b/internal/runtime/toolselect_test.go @@ -3,7 +3,7 @@ package runtime import ( "testing" - agentllm "agent-native/runtime/llm" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" ) func TestApplyToolSelectionRemovesName(t *testing.T) { diff --git a/internal/runtime/transcript_compact.go b/internal/runtime/transcript_compact.go index 06dbdbc..b80c5b1 100644 --- a/internal/runtime/transcript_compact.go +++ b/internal/runtime/transcript_compact.go @@ -5,9 +5,9 @@ import ( "strings" "time" - agentllm "agent-native/runtime/llm" - agentsession "agent-native/runtime/session" - core "agent-system-core" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" + agentsession "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/session" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) const compactKeepMessages = 16 diff --git a/internal/runtime/transcript_seed.go b/internal/runtime/transcript_seed.go index d6811a7..38e724e 100644 --- a/internal/runtime/transcript_seed.go +++ b/internal/runtime/transcript_seed.go @@ -7,7 +7,7 @@ import ( "os" "sort" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // seedMeta 是会话转录旁的播种状态:.seed.json。 diff --git a/internal/runtime/transcript_seed_test.go b/internal/runtime/transcript_seed_test.go index 6126882..1a93861 100644 --- a/internal/runtime/transcript_seed_test.go +++ b/internal/runtime/transcript_seed_test.go @@ -6,10 +6,10 @@ import ( "strings" "testing" - agentllm "agent-native/runtime/llm" - agentsession "agent-native/runtime/session" - "agent-system-backend/internal/ctxasm" - core "agent-system-core" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" + agentsession "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/session" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/ctxasm" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) func textPart(s string) core.Message { diff --git a/internal/runtime/usage_n3_test.go b/internal/runtime/usage_n3_test.go index 686abed..bf1938a 100644 --- a/internal/runtime/usage_n3_test.go +++ b/internal/runtime/usage_n3_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - agentllm "agent-native/runtime/llm" - core "agent-system-core" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // ---- N3 WP6:计费拆分与重试收口(backend 侧)---- diff --git a/internal/runtime/verify.go b/internal/runtime/verify.go index 836db62..5627c9a 100644 --- a/internal/runtime/verify.go +++ b/internal/runtime/verify.go @@ -6,9 +6,9 @@ import ( "strings" "time" - "agent-native/runtime/gates" - agentllm "agent-native/runtime/llm" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/gates" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) const verifyCapNotice = "本轮回复未通过终轮检查。" diff --git a/internal/runtime/workflow_compiled.go b/internal/runtime/workflow_compiled.go index ab7a3d3..f1d569f 100644 --- a/internal/runtime/workflow_compiled.go +++ b/internal/runtime/workflow_compiled.go @@ -6,11 +6,11 @@ import ( "strings" "time" - agentllm "agent-native/runtime/llm" - "agent-system-backend/internal/squadadapter" - "agent-system-backend/internal/wfcompile" - "agent-system-backend/internal/workflow" - core "agent-system-core" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/squadadapter" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/wfcompile" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/workflow" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // workflow_compiled.go — 工作流执行器(Q3 WP2):WorkflowDef 一律经 diff --git a/internal/runtime/workflow_compiled_test.go b/internal/runtime/workflow_compiled_test.go index 134322d..394268b 100644 --- a/internal/runtime/workflow_compiled_test.go +++ b/internal/runtime/workflow_compiled_test.go @@ -10,9 +10,9 @@ import ( "strings" "testing" - agentllm "agent-native/runtime/llm" - "agent-system-backend/internal/workflow" - core "agent-system-core" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/workflow" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // workflow_compiled_test.go — Q3 WP2 行为一致性(P4):run_workflow 三分支 diff --git a/internal/runtime/workspace_tools_test.go b/internal/runtime/workspace_tools_test.go index 45dff41..47b700a 100644 --- a/internal/runtime/workspace_tools_test.go +++ b/internal/runtime/workspace_tools_test.go @@ -7,8 +7,8 @@ import ( "strings" "testing" - agentllm "agent-native/runtime/llm" - core "agent-system-core" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // 裁定 1:会话沙箱配置时,内核工作区工具(read/edit/multi_edit/grep/glob/list) diff --git a/internal/runtime/wp5_ab_test.go b/internal/runtime/wp5_ab_test.go index 084d500..9295021 100644 --- a/internal/runtime/wp5_ab_test.go +++ b/internal/runtime/wp5_ab_test.go @@ -5,8 +5,8 @@ import ( "strings" "testing" - agentllm "agent-native/runtime/llm" - core "agent-system-core" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // wp5_ab_test.go 是 N1 WP5 验收的 A/B 对照:门禁机制下沉后, diff --git a/internal/server/accounts.go b/internal/server/accounts.go index 68e7697..a611c3e 100644 --- a/internal/server/accounts.go +++ b/internal/server/accounts.go @@ -15,7 +15,7 @@ import ( "sync" "time" - "agent-system-backend/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" ) var errBadPassword = errors.New("password must be 8-256 characters") diff --git a/internal/server/action_matrix_test.go b/internal/server/action_matrix_test.go index dec7d0d..81e462d 100644 --- a/internal/server/action_matrix_test.go +++ b/internal/server/action_matrix_test.go @@ -3,7 +3,7 @@ package server import ( "testing" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // 协作存储 U3 切片 2(KTD13):动作授权矩阵。未配置的动作默认拒绝; diff --git a/internal/server/adminzone_test.go b/internal/server/adminzone_test.go index 1779ccc..fb73d3a 100644 --- a/internal/server/adminzone_test.go +++ b/internal/server/adminzone_test.go @@ -7,14 +7,14 @@ import ( "path/filepath" "testing" - "agent-system-backend/internal/bus" - "agent-system-backend/internal/plugins" - "agent-system-backend/internal/profiles" - "agent-system-backend/internal/runmgr" - "agent-system-backend/internal/runtime" - "agent-system-backend/internal/settings" - "agent-system-backend/internal/store" - "agent-system-backend/internal/tools" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/bus" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/plugins" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/profiles" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/runmgr" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/runtime" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/settings" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/tools" ) // WP3-I3:GET /api/admin-zone/sections 展平编译插件的分区声明并按 diff --git a/internal/server/admission_test.go b/internal/server/admission_test.go index e16e5b8..efc5155 100644 --- a/internal/server/admission_test.go +++ b/internal/server/admission_test.go @@ -8,16 +8,16 @@ import ( "testing" "time" - "agent-system-backend/internal/bus" - "agent-system-backend/internal/cmdbus" - "agent-system-backend/internal/plugins" - "agent-system-backend/internal/profiles" - "agent-system-backend/internal/runmgr" - "agent-system-backend/internal/runtime" - "agent-system-backend/internal/settings" - "agent-system-backend/internal/store" - "agent-system-backend/internal/tools" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/bus" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/cmdbus" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/plugins" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/profiles" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/runmgr" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/runtime" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/settings" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/tools" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) func TestBusySendWritesNothing(t *testing.T) { diff --git a/internal/server/artifact_download_test.go b/internal/server/artifact_download_test.go index ee8bef6..a997ff2 100644 --- a/internal/server/artifact_download_test.go +++ b/internal/server/artifact_download_test.go @@ -6,8 +6,8 @@ import ( "strings" "testing" - "agent-system-backend/internal/store" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // TestArtifactContentDisposition:?download=1 切换 attachment;中文名走 RFC 5987 diff --git a/internal/server/audit_scope_test.go b/internal/server/audit_scope_test.go index 049532c..bceb9f6 100644 --- a/internal/server/audit_scope_test.go +++ b/internal/server/audit_scope_test.go @@ -6,7 +6,7 @@ import ( "net/http/httptest" "testing" - agentcommand "agent-command" + agentcommand "git-ssh.u1680832.nyat.app/weichen/Agent-Command.git" ) // 命令审计按租户作用域(回归:GET /api/commands/audit 曾返回全租户审计行—— diff --git a/internal/server/auth.go b/internal/server/auth.go index c32127e..487c950 100644 --- a/internal/server/auth.go +++ b/internal/server/auth.go @@ -5,7 +5,7 @@ import ( "net/http" "strings" - "agent-system-backend/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" ) // ownerCtxKey 携带租户身份(认证中间件注入;未启用认证 = store.OwnerDefault)。 diff --git a/internal/server/auth_e2e_test.go b/internal/server/auth_e2e_test.go index cb31fef..ba00c48 100644 --- a/internal/server/auth_e2e_test.go +++ b/internal/server/auth_e2e_test.go @@ -15,16 +15,16 @@ import ( "testing" "time" - "agent-system-backend/internal/bus" - "agent-system-backend/internal/plugins" - "agent-system-backend/internal/profiles" - "agent-system-backend/internal/runmgr" - "agent-system-backend/internal/runtime" - "agent-system-backend/internal/settings" - "agent-system-backend/internal/store" - "agent-system-backend/internal/tools" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/bus" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/plugins" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/profiles" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/runmgr" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/runtime" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/settings" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/tools" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // newAuthTestServer:开启 API key 认证的组合根(测试版)。 diff --git a/internal/server/borrow.go b/internal/server/borrow.go index 1ad8fd1..c78789d 100644 --- a/internal/server/borrow.go +++ b/internal/server/borrow.go @@ -6,9 +6,9 @@ import ( "regexp" "strings" - agentcommand "agent-command" - "agent-system-backend/internal/store" - core "agent-system-core" + agentcommand "git-ssh.u1680832.nyat.app/weichen/Agent-Command.git" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) var userCommandSlug = regexp.MustCompile(`^[a-z][a-z0-9-]*$`) diff --git a/internal/server/command_pairs_test.go b/internal/server/command_pairs_test.go index ea6a952..099710a 100644 --- a/internal/server/command_pairs_test.go +++ b/internal/server/command_pairs_test.go @@ -6,8 +6,8 @@ import ( "path/filepath" "testing" - agentcommand "agent-command" - "agent-system-backend/internal/cmdbus" + agentcommand "git-ssh.u1680832.nyat.app/weichen/Agent-Command.git" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/cmdbus" ) type pair struct { diff --git a/internal/server/compiled_list_test.go b/internal/server/compiled_list_test.go index 93d756d..a7233fb 100644 --- a/internal/server/compiled_list_test.go +++ b/internal/server/compiled_list_test.go @@ -8,15 +8,15 @@ import ( "path/filepath" "testing" - "agent-system-backend/internal/bus" - "agent-system-backend/internal/plugins" - "agent-system-backend/internal/profiles" - "agent-system-backend/internal/runmgr" - "agent-system-backend/internal/runtime" - "agent-system-backend/internal/settings" - "agent-system-backend/internal/store" - "agent-system-backend/internal/tools" - "agent-system-backend/pkg/extension" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/bus" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/plugins" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/profiles" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/runmgr" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/runtime" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/settings" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/tools" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/pkg/extension" ) type compiledListView struct { diff --git a/internal/server/disk_full_test.go b/internal/server/disk_full_test.go index e1e8b00..ec0b420 100644 --- a/internal/server/disk_full_test.go +++ b/internal/server/disk_full_test.go @@ -10,15 +10,15 @@ import ( "path/filepath" "testing" - "agent-system-backend/internal/bus" - "agent-system-backend/internal/cmdbus" - "agent-system-backend/internal/plugins" - "agent-system-backend/internal/profiles" - "agent-system-backend/internal/runmgr" - "agent-system-backend/internal/runtime" - "agent-system-backend/internal/settings" - "agent-system-backend/internal/store" - "agent-system-backend/internal/tools" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/bus" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/cmdbus" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/plugins" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/profiles" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/runmgr" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/runtime" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/settings" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/tools" ) // 协作存储 U7 故障矩阵(§7「磁盘满/备份恢复/整机失效」行的磁盘满维度): diff --git a/internal/server/e2e_test.go b/internal/server/e2e_test.go index 44a21c8..61bd8de 100644 --- a/internal/server/e2e_test.go +++ b/internal/server/e2e_test.go @@ -8,9 +8,9 @@ import ( "encoding/json" "fmt" - agentcommand "agent-command" - "agent-system-backend/internal/cardsvc" - "agent-system-backend/internal/cmdbus" + agentcommand "git-ssh.u1680832.nyat.app/weichen/Agent-Command.git" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/cardsvc" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/cmdbus" "io" "mime/multipart" "net/http" @@ -22,21 +22,21 @@ import ( "testing" "time" - agentllm "agent-native/runtime/llm" - nativetools "agent-native/runtime/tools" - nativeadp "agent-squad/adapters/native" - "agent-system-backend/internal/bus" - "agent-system-backend/internal/intentgate" - "agent-system-backend/internal/plugins" - "agent-system-backend/internal/profiles" - "agent-system-backend/internal/runmgr" - "agent-system-backend/internal/runtime" - "agent-system-backend/internal/settings" - skillseed "agent-system-backend/internal/skills" - "agent-system-backend/internal/squadadapter" - "agent-system-backend/internal/store" - "agent-system-backend/internal/tools" - core "agent-system-core" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" + nativetools "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/tools" + nativeadp "git-ssh.u1680832.nyat.app/weichen/Agent-Squad.git/adapters/native" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/bus" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/intentgate" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/plugins" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/profiles" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/runmgr" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/runtime" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/settings" + skillseed "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/skills" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/squadadapter" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/tools" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // newTestServer 组合根(测试版):mock runner 驱动全链路,不依赖模型。 diff --git a/internal/server/intent_button_test.go b/internal/server/intent_button_test.go index 7d7c03e..473ff04 100644 --- a/internal/server/intent_button_test.go +++ b/internal/server/intent_button_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - agentcommand "agent-command" - "agent-system-backend/internal/cmdbus" + agentcommand "git-ssh.u1680832.nyat.app/weichen/Agent-Command.git" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/cmdbus" ) // B 类硬化红测:button 入口命中写意图时不嵌套分发(无目标命令 receipt)。 diff --git a/internal/server/login_key_test.go b/internal/server/login_key_test.go index 84f2503..701cf69 100644 --- a/internal/server/login_key_test.go +++ b/internal/server/login_key_test.go @@ -7,7 +7,7 @@ import ( "net/http/httptest" "testing" - "agent-system-backend/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" ) func TestRedeemLoginKeyRestrictedSession(t *testing.T) { diff --git a/internal/server/login_recovery_test.go b/internal/server/login_recovery_test.go index 0936fd5..5749fb6 100644 --- a/internal/server/login_recovery_test.go +++ b/internal/server/login_recovery_test.go @@ -11,7 +11,7 @@ import ( "strings" "testing" - "agent-system-backend/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" ) // bootAdmin:建管理员并完成首登改密,返回已放行的会话 cookie 值。 diff --git a/internal/server/platform_api.go b/internal/server/platform_api.go index bd7d9e9..7891245 100644 --- a/internal/server/platform_api.go +++ b/internal/server/platform_api.go @@ -8,9 +8,9 @@ import ( "strconv" "strings" - "agent-system-backend/internal/store" - "agent-system-backend/internal/surfacesvc" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/surfacesvc" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) func (s *Server) createBackgroundTask(w http.ResponseWriter, r *http.Request) { diff --git a/internal/server/project_events.go b/internal/server/project_events.go index 7058cec..8ee6e4a 100644 --- a/internal/server/project_events.go +++ b/internal/server/project_events.go @@ -1,7 +1,7 @@ package server import ( - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // projectStreamMembership consults the registered resource authorizer using the diff --git a/internal/server/project_events_test.go b/internal/server/project_events_test.go index 0360ded..78bf867 100644 --- a/internal/server/project_events_test.go +++ b/internal/server/project_events_test.go @@ -1,9 +1,9 @@ package server import ( - "agent-system-backend/internal/cardsvc" - "agent-system-backend/pkg/extension" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/cardsvc" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/pkg/extension" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" "bufio" "bytes" "context" diff --git a/internal/server/project_lifecycle.go b/internal/server/project_lifecycle.go index ed2b29c..5a9b992 100644 --- a/internal/server/project_lifecycle.go +++ b/internal/server/project_lifecycle.go @@ -1,9 +1,9 @@ package server import ( - "agent-system-backend/internal/store" - "agent-system-backend/pkg/extension" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/pkg/extension" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" "context" "errors" "net/http" diff --git a/internal/server/project_lifecycle_test.go b/internal/server/project_lifecycle_test.go index a58553e..2b3c48d 100644 --- a/internal/server/project_lifecycle_test.go +++ b/internal/server/project_lifecycle_test.go @@ -1,11 +1,11 @@ package server import ( - "agent-system-backend/internal/cardsvc" - "agent-system-backend/internal/cmdbus" - "agent-system-backend/internal/surfacesvc" - "agent-system-backend/pkg/extension" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/cardsvc" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/cmdbus" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/surfacesvc" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/pkg/extension" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" "bytes" "context" "encoding/json" diff --git a/internal/server/project_resource_filter_test.go b/internal/server/project_resource_filter_test.go index 581f147..e7ab82e 100644 --- a/internal/server/project_resource_filter_test.go +++ b/internal/server/project_resource_filter_test.go @@ -1,8 +1,8 @@ package server import ( - "agent-system-backend/pkg/extension" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/pkg/extension" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" "context" "encoding/json" "testing" diff --git a/internal/server/ratelimit.go b/internal/server/ratelimit.go index 9fcc9ac..0825816 100644 --- a/internal/server/ratelimit.go +++ b/internal/server/ratelimit.go @@ -4,7 +4,7 @@ import ( "net/http" "time" - "agent-system-backend/internal/ratelimit" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/ratelimit" ) // 限流中间件(阶段 3):按租户 owner 固定窗口;limit<=0(默认)直接放行。 diff --git a/internal/server/ratelimit_e2e_test.go b/internal/server/ratelimit_e2e_test.go index d74f47e..527d12c 100644 --- a/internal/server/ratelimit_e2e_test.go +++ b/internal/server/ratelimit_e2e_test.go @@ -7,7 +7,7 @@ import ( "net/http/httptest" "testing" - "agent-system-backend/internal/ratelimit" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/ratelimit" ) func TestRateLimitMiddleware(t *testing.T) { diff --git a/internal/server/resource_authz_consumption_test.go b/internal/server/resource_authz_consumption_test.go index eebdead..1a2f508 100644 --- a/internal/server/resource_authz_consumption_test.go +++ b/internal/server/resource_authz_consumption_test.go @@ -11,9 +11,9 @@ import ( "net/http/httptest" "testing" - "agent-system-backend/internal/store" - "agent-system-backend/pkg/extension" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/pkg/extension" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) func newV2CaptureServer(t *testing.T) (*Server, *store.Store, string, string, string) { diff --git a/internal/server/resource_authz_test.go b/internal/server/resource_authz_test.go index f2599b5..57274b8 100644 --- a/internal/server/resource_authz_test.go +++ b/internal/server/resource_authz_test.go @@ -10,7 +10,7 @@ import ( "net/http/httptest" "testing" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // EXT-8 资源授权适配器(红测:基础设施已就位、读取入口尚未咨询)—— diff --git a/internal/server/rewind.go b/internal/server/rewind.go index 80d7748..9d5e10f 100644 --- a/internal/server/rewind.go +++ b/internal/server/rewind.go @@ -5,7 +5,7 @@ import ( "errors" "net/http" - "agent-system-backend/internal/runmgr" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/runmgr" ) func (s *Server) listCheckpoints(w http.ResponseWriter, r *http.Request) { diff --git a/internal/server/rewind_http_test.go b/internal/server/rewind_http_test.go index 3ddc8dc..5bfcd69 100644 --- a/internal/server/rewind_http_test.go +++ b/internal/server/rewind_http_test.go @@ -7,16 +7,16 @@ import ( "testing" "time" - "agent-system-backend/internal/bus" - "agent-system-backend/internal/cmdbus" - "agent-system-backend/internal/plugins" - "agent-system-backend/internal/profiles" - "agent-system-backend/internal/runmgr" - "agent-system-backend/internal/runtime" - "agent-system-backend/internal/settings" - "agent-system-backend/internal/store" - "agent-system-backend/internal/tools" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/bus" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/cmdbus" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/plugins" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/profiles" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/runmgr" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/runtime" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/settings" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/tools" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // ---- N3 WP3:rewind HTTP 层(happy + busy 409)---- diff --git a/internal/server/server.go b/internal/server/server.go index d90b3c3..3d13943 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -19,26 +19,26 @@ import ( "strings" "time" - agentcommand "agent-command" - "agent-system-backend/internal/cardsvc" - "agent-system-backend/internal/cmdbus" - "agent-system-backend/internal/ingest" - "agent-system-backend/internal/intentgate" - "agent-system-backend/internal/plugins" - "agent-system-backend/internal/profiles" - "agent-system-backend/internal/projectscope" - "agent-system-backend/internal/prompts" - "agent-system-backend/internal/ratelimit" - "agent-system-backend/internal/route" - "agent-system-backend/internal/runmgr" - "agent-system-backend/internal/settings" - "agent-system-backend/internal/store" - "agent-system-backend/internal/surfacesvc" - "agent-system-backend/internal/tools" - "agent-system-backend/internal/workflow" - "agent-system-backend/pkg/extension" - "agent-system-backend/web" - core "agent-system-core" + agentcommand "git-ssh.u1680832.nyat.app/weichen/Agent-Command.git" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/cardsvc" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/cmdbus" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/ingest" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/intentgate" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/plugins" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/profiles" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/projectscope" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/prompts" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/ratelimit" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/route" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/runmgr" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/settings" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/surfacesvc" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/tools" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/workflow" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/pkg/extension" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/web" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) type Server struct { diff --git a/internal/server/shared_projects_test.go b/internal/server/shared_projects_test.go index f6ab33f..fb2f948 100644 --- a/internal/server/shared_projects_test.go +++ b/internal/server/shared_projects_test.go @@ -10,7 +10,7 @@ import ( "net/http/httptest" "testing" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) func TestSharedProjectListAndConversation(t *testing.T) { diff --git a/internal/server/shared_retrieval_test.go b/internal/server/shared_retrieval_test.go index f4a1327..2e27dbf 100644 --- a/internal/server/shared_retrieval_test.go +++ b/internal/server/shared_retrieval_test.go @@ -11,7 +11,7 @@ import ( "testing" "time" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // EXT-8 切片 2(红测):适配器放行后,他人 owner 的项目知识对本人可检索; diff --git a/internal/server/sse_close_test.go b/internal/server/sse_close_test.go index 706604d..92c304f 100644 --- a/internal/server/sse_close_test.go +++ b/internal/server/sse_close_test.go @@ -12,7 +12,7 @@ import ( "testing" "time" - "agent-system-backend/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" ) // 打开真实流式服务,等一帧事件后作废会话,断言流在复验周期内关闭。 diff --git a/internal/server/sse_retry_test.go b/internal/server/sse_retry_test.go index c8c6e93..47ceb8f 100644 --- a/internal/server/sse_retry_test.go +++ b/internal/server/sse_retry_test.go @@ -9,8 +9,8 @@ import ( "testing" "time" - "agent-system-backend/internal/bus" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/bus" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) func TestSSERetryAndLiveDelivery(t *testing.T) { diff --git a/internal/server/surface_api_test.go b/internal/server/surface_api_test.go index 40f8e39..234bda8 100644 --- a/internal/server/surface_api_test.go +++ b/internal/server/surface_api_test.go @@ -12,7 +12,7 @@ import ( "net/http/httptest" "testing" - "agent-system-backend/internal/surfacesvc" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/surfacesvc" ) func TestSurfaceDirectAPIGuards(t *testing.T) { diff --git a/internal/server/workflow_route_test.go b/internal/server/workflow_route_test.go index dc6ec67..bd69563 100644 --- a/internal/server/workflow_route_test.go +++ b/internal/server/workflow_route_test.go @@ -6,14 +6,14 @@ import ( "testing" "time" - agentcommand "agent-command" - "agent-system-backend/internal/cmdbus" - "agent-system-backend/internal/intentgate" - "agent-system-backend/internal/runtime" - "agent-system-backend/internal/settings" - "agent-system-backend/internal/store" - "agent-system-backend/internal/workflow" - core "agent-system-core" + agentcommand "git-ssh.u1680832.nyat.app/weichen/Agent-Command.git" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/cmdbus" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/intentgate" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/runtime" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/settings" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/workflow" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) type routeCapture struct { diff --git a/internal/settings/project_metadata.go b/internal/settings/project_metadata.go index 2eb0035..62738f7 100644 --- a/internal/settings/project_metadata.go +++ b/internal/settings/project_metadata.go @@ -1,7 +1,7 @@ package settings import ( - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" "strings" ) diff --git a/internal/settings/project_metadata_test.go b/internal/settings/project_metadata_test.go index 443eb83..2dcdf80 100644 --- a/internal/settings/project_metadata_test.go +++ b/internal/settings/project_metadata_test.go @@ -1,7 +1,7 @@ package settings import ( - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" "bytes" "encoding/json" "testing" diff --git a/internal/settings/settings.go b/internal/settings/settings.go index c07074c..79e685d 100644 --- a/internal/settings/settings.go +++ b/internal/settings/settings.go @@ -6,8 +6,8 @@ import ( "sort" "strings" - "agent-system-backend/internal/store" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // Scope 层级键:user 与 project: 落库;system 是管理员全局层(owner 固定 diff --git a/internal/settings/settings_test.go b/internal/settings/settings_test.go index 8ab0654..6165a9c 100644 --- a/internal/settings/settings_test.go +++ b/internal/settings/settings_test.go @@ -7,8 +7,8 @@ import ( "strings" "testing" - "agent-system-backend/internal/store" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) func TestLLMRetriesDefault(t *testing.T) { diff --git a/internal/skills/validate.go b/internal/skills/validate.go index d0f978d..e4a4b58 100644 --- a/internal/skills/validate.go +++ b/internal/skills/validate.go @@ -3,7 +3,7 @@ package skills import ( "fmt" - agentskills "agent-native/runtime/skills" + agentskills "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/skills" ) // ValidateForPlugin 用 agent-native 的同一校验器验证插件技能 diff --git a/internal/squadadapter/adapter.go b/internal/squadadapter/adapter.go index cff3128..55f4011 100644 --- a/internal/squadadapter/adapter.go +++ b/internal/squadadapter/adapter.go @@ -16,11 +16,11 @@ import ( "path/filepath" "strings" - "agent-native/runtime/subagent" - nativeadp "agent-squad/adapters/native" - "agent-squad/squad" - "agent-system-backend/internal/quality" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/subagent" + nativeadp "git-ssh.u1680832.nyat.app/weichen/Agent-Squad.git/adapters/native" + "git-ssh.u1680832.nyat.app/weichen/Agent-Squad.git/squad" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/quality" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // Ctx 是适配器所需的窄端口(结构性接口;runmgr 的 runCtx 天然满足, diff --git a/internal/squadadapter/adapter_test.go b/internal/squadadapter/adapter_test.go index 852f2e2..c10efad 100644 --- a/internal/squadadapter/adapter_test.go +++ b/internal/squadadapter/adapter_test.go @@ -6,9 +6,9 @@ import ( "strings" "testing" - "agent-native/runtime/subagent" - "agent-squad/squad" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/subagent" + "git-ssh.u1680832.nyat.app/weichen/Agent-Squad.git/squad" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) func TestMapPlanAndStatus(t *testing.T) { diff --git a/internal/squadadapter/entry.go b/internal/squadadapter/entry.go index 902c3e7..08a66c4 100644 --- a/internal/squadadapter/entry.go +++ b/internal/squadadapter/entry.go @@ -7,11 +7,11 @@ import ( "path/filepath" "strings" - agentllm "agent-native/runtime/llm" - "agent-native/runtime/tools" - nativeadp "agent-squad/adapters/native" - "agent-squad/squad" - "agent-system-backend/internal/quality" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" + "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/tools" + nativeadp "git-ssh.u1680832.nyat.app/weichen/Agent-Squad.git/adapters/native" + "git-ssh.u1680832.nyat.app/weichen/Agent-Squad.git/squad" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/quality" ) // EntryOptions 是小队作为对话入口时的一次运行参数。 diff --git a/internal/squadadapter/orchestrate_native_test.go b/internal/squadadapter/orchestrate_native_test.go index 77ba5df..765e2fe 100644 --- a/internal/squadadapter/orchestrate_native_test.go +++ b/internal/squadadapter/orchestrate_native_test.go @@ -7,12 +7,12 @@ import ( "strings" "testing" - nativetools "agent-native/runtime/tools" + nativetools "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/tools" - agentllm "agent-native/runtime/llm" - nativeadp "agent-squad/adapters/native" - "agent-system-backend/internal/skills" - core "agent-system-core" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" + nativeadp "git-ssh.u1680832.nyat.app/weichen/Agent-Squad.git/adapters/native" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/skills" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) type orchFakeRc struct { diff --git a/internal/store/audit.go b/internal/store/audit.go index b5479a8..03a979d 100644 --- a/internal/store/audit.go +++ b/internal/store/audit.go @@ -5,7 +5,7 @@ import ( "encoding/json" "time" - agentcommand "agent-command" + agentcommand "git-ssh.u1680832.nyat.app/weichen/Agent-Command.git" ) // AppendAudit 追加命令审计信封(cmdbus 端口;v7 建表,v18 增加 owner 列)。 diff --git a/internal/store/audit_test.go b/internal/store/audit_test.go index 06458a9..c42cb7a 100644 --- a/internal/store/audit_test.go +++ b/internal/store/audit_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - agentcommand "agent-command" + agentcommand "git-ssh.u1680832.nyat.app/weichen/Agent-Command.git" ) // v18 迁移:command_audit 增加 owner 列并按 payload.actor 回填存量行 diff --git a/internal/store/borrow.go b/internal/store/borrow.go index 2eea5cc..0e51787 100644 --- a/internal/store/borrow.go +++ b/internal/store/borrow.go @@ -7,7 +7,7 @@ import ( "strings" "time" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // Secret 是一把带标签的服务密钥。列表接口不返回 Value。 diff --git a/internal/store/card_version_test.go b/internal/store/card_version_test.go index 7000af5..797bf6e 100644 --- a/internal/store/card_version_test.go +++ b/internal/store/card_version_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // 协作存储 U3(KTD7):卡片乐观并发。同版本竞争写入最多一个成功, diff --git a/internal/store/cards.go b/internal/store/cards.go index 49d13f3..4b3189e 100644 --- a/internal/store/cards.go +++ b/internal/store/cards.go @@ -7,7 +7,7 @@ import ( "fmt" "time" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // 收件箱任务卡持久化:payload 存 core.ActivityCard 整卡 JSON(卡片是可变状态对象, diff --git a/internal/store/config.go b/internal/store/config.go index 47f6b19..b43f10d 100644 --- a/internal/store/config.go +++ b/internal/store/config.go @@ -4,7 +4,7 @@ import ( "database/sql" "errors" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // ---- 画像(builtin=owner'' 共享;用户画像按 owner 隔离)---- diff --git a/internal/store/content.go b/internal/store/content.go index c740f98..bb85ece 100644 --- a/internal/store/content.go +++ b/internal/store/content.go @@ -7,7 +7,7 @@ import ( "fmt" "time" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // ---- 工件(元数据在库,内容在对象目录 data/artifacts/)---- diff --git a/internal/store/knowledge_authorization_test.go b/internal/store/knowledge_authorization_test.go index b765e96..545d89f 100644 --- a/internal/store/knowledge_authorization_test.go +++ b/internal/store/knowledge_authorization_test.go @@ -1,7 +1,7 @@ package store import ( - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" "context" "testing" ) diff --git a/internal/store/messages.go b/internal/store/messages.go index 58724f2..3895d05 100644 --- a/internal/store/messages.go +++ b/internal/store/messages.go @@ -10,7 +10,7 @@ import ( "strings" "time" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // isUniqueViolation 判定唯一约束冲突(PG 23505 / SQLite UNIQUE)。 diff --git a/internal/store/notices.go b/internal/store/notices.go index 72e5327..2b36732 100644 --- a/internal/store/notices.go +++ b/internal/store/notices.go @@ -5,7 +5,7 @@ import ( "errors" "time" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // Notice 是一条待投递的后台子代理完成通知(N2 WP5)。 diff --git a/internal/store/outbox_tx_test.go b/internal/store/outbox_tx_test.go index e42912e..6165d50 100644 --- a/internal/store/outbox_tx_test.go +++ b/internal/store/outbox_tx_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - corepkg "agent-system-core" + corepkg "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // U5 余项(KTD5):同事务 outbox——业务提交与命令投递原子(提交即生效、 diff --git a/internal/store/pgvector_test.go b/internal/store/pgvector_test.go index 00a8809..db33c63 100644 --- a/internal/store/pgvector_test.go +++ b/internal/store/pgvector_test.go @@ -9,7 +9,7 @@ import ( "strings" "testing" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // 协作存储 U6 切片三(KTD11「正确」步):库内向量检索。真库门控 diff --git a/internal/store/platform.go b/internal/store/platform.go index 0c11aa8..7b71ec7 100644 --- a/internal/store/platform.go +++ b/internal/store/platform.go @@ -5,7 +5,7 @@ import ( "fmt" "time" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // ---- 插件授权与自有数据版本 ---- diff --git a/internal/store/platform_test.go b/internal/store/platform_test.go index c6b3bea..dc36c7e 100644 --- a/internal/store/platform_test.go +++ b/internal/store/platform_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) func TestPlatformTables(t *testing.T) { diff --git a/internal/store/project_events.go b/internal/store/project_events.go index ea6e7c4..4674c82 100644 --- a/internal/store/project_events.go +++ b/internal/store/project_events.go @@ -1,7 +1,7 @@ package store import ( - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" "crypto/sha256" "database/sql" "encoding/hex" diff --git a/internal/store/project_events_test.go b/internal/store/project_events_test.go index 2c69aab..5e93639 100644 --- a/internal/store/project_events_test.go +++ b/internal/store/project_events_test.go @@ -1,7 +1,7 @@ package store import ( - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" "encoding/json" "testing" "time" diff --git a/internal/store/project_projection.go b/internal/store/project_projection.go index 13aa99d..cc6c806 100644 --- a/internal/store/project_projection.go +++ b/internal/store/project_projection.go @@ -1,7 +1,7 @@ package store import ( - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" "database/sql" "errors" "strings" diff --git a/internal/store/projects.go b/internal/store/projects.go index 009a701..cd34af9 100644 --- a/internal/store/projects.go +++ b/internal/store/projects.go @@ -7,7 +7,7 @@ import ( "strings" "time" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // ---- 项目与会话(租户域:owner 过滤是硬边界,跨租户一律 NotFound)---- diff --git a/internal/store/prompts.go b/internal/store/prompts.go index 2b164ad..e686eac 100644 --- a/internal/store/prompts.go +++ b/internal/store/prompts.go @@ -3,7 +3,7 @@ package store import ( "encoding/json" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // SavePromptModule 写用户提示词模块(覆盖或新建;按 owner 隔离)。 diff --git a/internal/store/recovery.go b/internal/store/recovery.go index 0ce0b49..4e01862 100644 --- a/internal/store/recovery.go +++ b/internal/store/recovery.go @@ -6,7 +6,7 @@ import ( "fmt" "time" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // DuplicateRequestError 带上已落库的那条消息。 diff --git a/internal/store/recovery_test.go b/internal/store/recovery_test.go index 351c4b6..45047e8 100644 --- a/internal/store/recovery_test.go +++ b/internal/store/recovery_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) func seedConversation(t *testing.T, st *Store) core.Conversation { diff --git a/internal/store/search_postgres.go b/internal/store/search_postgres.go index f5ffea5..ec68ecf 100644 --- a/internal/store/search_postgres.go +++ b/internal/store/search_postgres.go @@ -1,7 +1,7 @@ package store import ( - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // searchKnowledgePG:PG 档知识检索(设计 D16)。 diff --git a/internal/store/store.go b/internal/store/store.go index ae22d78..ef83f93 100644 --- a/internal/store/store.go +++ b/internal/store/store.go @@ -21,7 +21,7 @@ import ( "sync" "time" - "agent-system-backend/internal/blobstore" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/blobstore" _ "github.com/jackc/pgx/v5/stdlib" // PG 档驱动(注册名 "pgx") _ "modernc.org/sqlite" // 嵌入式档驱动(注册名 "sqlite",CGO-free) diff --git a/internal/store/store_test.go b/internal/store/store_test.go index 55edadf..bf19e7d 100644 --- a/internal/store/store_test.go +++ b/internal/store/store_test.go @@ -9,7 +9,7 @@ import ( "sync" "testing" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // openTestStore 双档测试入口:设 AGENT_PG_TEST_DSN 时对 PostgreSQL 档逐用例建独立 diff --git a/internal/store/surfaces.go b/internal/store/surfaces.go index 0ebf068..54e3c27 100644 --- a/internal/store/surfaces.go +++ b/internal/store/surfaces.go @@ -7,7 +7,7 @@ import ( "fmt" "time" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // ---- Generative UI Surface 存储(提案 U2;迁移 v21)---- diff --git a/internal/store/surfaces_test.go b/internal/store/surfaces_test.go index bfd586e..820fef0 100644 --- a/internal/store/surfaces_test.go +++ b/internal/store/surfaces_test.go @@ -3,7 +3,7 @@ package store import ( "testing" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) func testSnapshot(surfaceID, owner, plugin string, base int) core.SurfaceSnapshot { diff --git a/internal/store/typed_nil_blob_test.go b/internal/store/typed_nil_blob_test.go index e17c6b2..14b78ab 100644 --- a/internal/store/typed_nil_blob_test.go +++ b/internal/store/typed_nil_blob_test.go @@ -9,8 +9,8 @@ import ( "strings" "testing" - "agent-system-backend/internal/blobstore" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/blobstore" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) func TestFinishOpenTypedNilS3UsesLocalArtifacts(t *testing.T) { diff --git a/internal/store/vectors.go b/internal/store/vectors.go index e98c544..f536837 100644 --- a/internal/store/vectors.go +++ b/internal/store/vectors.go @@ -8,7 +8,7 @@ import ( "strconv" "strings" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // ---- 向量索引(4.12 向量管线)---- diff --git a/internal/surfacesvc/actions_test.go b/internal/surfacesvc/actions_test.go index b125f96..7767791 100644 --- a/internal/surfacesvc/actions_test.go +++ b/internal/surfacesvc/actions_test.go @@ -11,8 +11,8 @@ import ( "path/filepath" "testing" - "agent-system-backend/internal/store" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) type actionFixture struct { diff --git a/internal/surfacesvc/surfacesvc.go b/internal/surfacesvc/surfacesvc.go index d0d1d38..20f78f8 100644 --- a/internal/surfacesvc/surfacesvc.go +++ b/internal/surfacesvc/surfacesvc.go @@ -13,8 +13,8 @@ import ( "fmt" "log" - "agent-system-backend/internal/store" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // Emitter 由宿主注入(与 cardsvc 同一事件管道):持久化、seq 排序、断线重放。 diff --git a/internal/surfacesvc/surfacesvc_test.go b/internal/surfacesvc/surfacesvc_test.go index 9f615d0..9a29961 100644 --- a/internal/surfacesvc/surfacesvc_test.go +++ b/internal/surfacesvc/surfacesvc_test.go @@ -7,8 +7,8 @@ import ( "path/filepath" "testing" - "agent-system-backend/internal/store" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) func openSvcStore(t *testing.T) *store.Store { diff --git a/internal/tools/ask.go b/internal/tools/ask.go index 81589c9..dedbf17 100644 --- a/internal/tools/ask.go +++ b/internal/tools/ask.go @@ -5,7 +5,7 @@ import ( "fmt" "strings" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) type userAsker interface { diff --git a/internal/tools/codeorch_tool.go b/internal/tools/codeorch_tool.go index c578900..b3baae2 100644 --- a/internal/tools/codeorch_tool.go +++ b/internal/tools/codeorch_tool.go @@ -7,8 +7,8 @@ import ( "strings" "time" - "agent-native/runtime/codeorch" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/codeorch" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // RegisterCodeTool 注册 run_tool_script。开关关闭时执行会被拒绝,清单侧另行隐藏。 diff --git a/internal/tools/exec.go b/internal/tools/exec.go index 5a42cf0..1d4715e 100644 --- a/internal/tools/exec.go +++ b/internal/tools/exec.go @@ -16,7 +16,7 @@ import ( "strings" "sync/atomic" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) const ( diff --git a/internal/tools/exec_interpreter.go b/internal/tools/exec_interpreter.go index 55538b1..2a0a06a 100644 --- a/internal/tools/exec_interpreter.go +++ b/internal/tools/exec_interpreter.go @@ -22,9 +22,9 @@ import ( "syscall" "time" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" - agenttools "agent-native/runtime/tools" + agenttools "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/tools" ) // RegisterInterpreterTools 注册解释器执行原语(run_shell / run_python)。 diff --git a/internal/tools/exec_interpreter_test.go b/internal/tools/exec_interpreter_test.go index 41d28ee..c8297ae 100644 --- a/internal/tools/exec_interpreter_test.go +++ b/internal/tools/exec_interpreter_test.go @@ -8,7 +8,7 @@ import ( "strings" "testing" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) type execFake struct { diff --git a/internal/tools/fs.go b/internal/tools/fs.go index 913c93a..b5f54a4 100644 --- a/internal/tools/fs.go +++ b/internal/tools/fs.go @@ -12,7 +12,7 @@ import ( "sort" "strings" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) const ( diff --git a/internal/tools/fs_checkpoint_test.go b/internal/tools/fs_checkpoint_test.go index 35bdbc3..6515b71 100644 --- a/internal/tools/fs_checkpoint_test.go +++ b/internal/tools/fs_checkpoint_test.go @@ -4,7 +4,7 @@ import ( "encoding/json" "testing" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // ---- N3 WP3:backend 自家工具面的回滚资格钉住(验收② 产品侧)---- diff --git a/internal/tools/fs_test.go b/internal/tools/fs_test.go index 0853014..b8ce4ab 100644 --- a/internal/tools/fs_test.go +++ b/internal/tools/fs_test.go @@ -8,7 +8,7 @@ import ( "strings" "testing" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) type fakeFSCtx struct { diff --git a/internal/tools/http.go b/internal/tools/http.go index dce8bc9..efe6ea9 100644 --- a/internal/tools/http.go +++ b/internal/tools/http.go @@ -10,7 +10,7 @@ import ( "strings" "time" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // execHTTPTool 见 HTTPExecutor:声明式 HTTP 工具在注册时绑定 spec 闭包执行。 diff --git a/internal/tools/http_test.go b/internal/tools/http_test.go index 632685f..a26f9a9 100644 --- a/internal/tools/http_test.go +++ b/internal/tools/http_test.go @@ -5,7 +5,7 @@ import ( "net/http/httptest" "testing" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) type dummyCtx struct{ project string } diff --git a/internal/tools/peers.go b/internal/tools/peers.go index e0c7920..8f283ff 100644 --- a/internal/tools/peers.go +++ b/internal/tools/peers.go @@ -9,7 +9,7 @@ import ( "fmt" "strings" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) func registerPeerTools(r *Registry) error { diff --git a/internal/tools/peers_test.go b/internal/tools/peers_test.go index 9185e0e..1a14de0 100644 --- a/internal/tools/peers_test.go +++ b/internal/tools/peers_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) type fakePeerCtx struct { diff --git a/internal/tools/quality_review.go b/internal/tools/quality_review.go index 5277d78..a8d94a1 100644 --- a/internal/tools/quality_review.go +++ b/internal/tools/quality_review.go @@ -6,8 +6,8 @@ import ( "path/filepath" "strings" - "agent-system-backend/internal/quality" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/quality" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) func registerQualityReview(r *Registry) error { diff --git a/internal/tools/quality_review_test.go b/internal/tools/quality_review_test.go index 8e6f5a2..95d62e7 100644 --- a/internal/tools/quality_review_test.go +++ b/internal/tools/quality_review_test.go @@ -6,7 +6,7 @@ import ( "path/filepath" "testing" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) type qualityCtx struct{ root string } diff --git a/internal/tools/registry.go b/internal/tools/registry.go index c5900b2..baff056 100644 --- a/internal/tools/registry.go +++ b/internal/tools/registry.go @@ -10,7 +10,7 @@ import ( "sync" "time" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // Executor 是无状态执行器:入参已校验,返回输出文本或错误。 diff --git a/internal/tools/search.go b/internal/tools/search.go index 1315acc..a8db60c 100644 --- a/internal/tools/search.go +++ b/internal/tools/search.go @@ -9,8 +9,8 @@ import ( "fmt" "strings" - agenttools "agent-native/runtime/tools" - core "agent-system-core" + agenttools "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/tools" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // TavilySettings 装配期读取的搜索配置。 diff --git a/internal/tools/search_test.go b/internal/tools/search_test.go index a72a740..65b2ba9 100644 --- a/internal/tools/search_test.go +++ b/internal/tools/search_test.go @@ -7,8 +7,8 @@ import ( "strings" "testing" - agenttools "agent-native/runtime/tools" - core "agent-system-core" + agenttools "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/tools" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) type fakeProvider struct { diff --git a/internal/wfcompile/ab_demo_test.go b/internal/wfcompile/ab_demo_test.go index 081b81b..2f5d9ab 100644 --- a/internal/wfcompile/ab_demo_test.go +++ b/internal/wfcompile/ab_demo_test.go @@ -6,9 +6,9 @@ import ( "testing" "time" - "agent-system-backend/eval" - "agent-system-backend/internal/workflow" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/eval" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/workflow" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // ab_demo_test.go — Q3 WP5 验收:同批任务(含 demo.brief 场景)经两个入口 diff --git a/internal/wfcompile/compiler.go b/internal/wfcompile/compiler.go index 3dfb8ea..b85cbec 100644 --- a/internal/wfcompile/compiler.go +++ b/internal/wfcompile/compiler.go @@ -28,9 +28,9 @@ import ( "regexp" "strings" - "agent-squad/squad" - "agent-system-backend/internal/workflow" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-Squad.git/squad" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/workflow" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // 宿主 intent 步的意图 ID(目录由本包合成,处理函数在 host.go)。 diff --git a/internal/wfcompile/host.go b/internal/wfcompile/host.go index 67434b6..5b47030 100644 --- a/internal/wfcompile/host.go +++ b/internal/wfcompile/host.go @@ -11,13 +11,13 @@ import ( "sync" "time" - "agent-native/runtime/codeorch" - "agent-native/runtime/gates" - agentllm "agent-native/runtime/llm" - "agent-squad/squad" - "agent-system-backend/internal/tools" - "agent-system-backend/internal/workflow" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/codeorch" + "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/gates" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" + "git-ssh.u1680832.nyat.app/weichen/Agent-Squad.git/squad" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/tools" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/workflow" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // Host 是编译图执行所需的宿主窄端口(结构性接口;runtime.RunCtx 天然满足, diff --git a/internal/wfcompile/run.go b/internal/wfcompile/run.go index 661c5bf..a56e341 100644 --- a/internal/wfcompile/run.go +++ b/internal/wfcompile/run.go @@ -7,9 +7,9 @@ import ( "strings" "time" - "agent-squad/squad" - "agent-system-backend/internal/workflow" - core "agent-system-core" + "git-ssh.u1680832.nyat.app/weichen/Agent-Squad.git/squad" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/workflow" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // run.go — 编译图执行驱动(Q3 WP1):槽位补齐 → 编译 → squad 引擎装配 → diff --git a/internal/wfcompile/wfcompile_test.go b/internal/wfcompile/wfcompile_test.go index 6881c70..044d0ae 100644 --- a/internal/wfcompile/wfcompile_test.go +++ b/internal/wfcompile/wfcompile_test.go @@ -9,10 +9,10 @@ import ( "sync" "testing" - agentllm "agent-native/runtime/llm" - "agent-squad/squad" - "agent-system-backend/internal/workflow" - core "agent-system-core" + agentllm "git-ssh.u1680832.nyat.app/weichen/Agent-Native.git/runtime/llm" + "git-ssh.u1680832.nyat.app/weichen/Agent-Squad.git/squad" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/workflow" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // wfcompile_test.go — Q3 WP1 验收:demo.brief / demo.script 经编译图跑通 diff --git a/internal/workflow/registry.go b/internal/workflow/registry.go index da77d32..0374547 100644 --- a/internal/workflow/registry.go +++ b/internal/workflow/registry.go @@ -5,7 +5,7 @@ import ( "encoding/json" "sync" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // ScriptKey 是脚本正文的索引。同一个相对路径可以出现在不同工作流里。 diff --git a/internal/workflow/render.go b/internal/workflow/render.go index f82a482..d2ca43a 100644 --- a/internal/workflow/render.go +++ b/internal/workflow/render.go @@ -5,7 +5,7 @@ import ( "fmt" "regexp" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // Vars 是一次执行里可以填进模板的值。 diff --git a/internal/workflow/validate.go b/internal/workflow/validate.go index 12453fa..254dd7a 100644 --- a/internal/workflow/validate.go +++ b/internal/workflow/validate.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // 声明式工作流与模型生成的工作流用两套上限。 diff --git a/internal/workflow/workflow_test.go b/internal/workflow/workflow_test.go index 41084bd..ddc7499 100644 --- a/internal/workflow/workflow_test.go +++ b/internal/workflow/workflow_test.go @@ -6,7 +6,7 @@ import ( "strings" "testing" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) func known(names ...string) func(string) bool { diff --git a/pkg/extension/extension.go b/pkg/extension/extension.go index 2454e4e..658c802 100644 --- a/pkg/extension/extension.go +++ b/pkg/extension/extension.go @@ -8,7 +8,7 @@ import ( "errors" "sync" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // SurfaceVersion 是本包导出面的实验版本。变更导出符号必须同时更新 surface.txt。 diff --git a/pkg/extension/host.go b/pkg/extension/host.go index c528b81..ebaf836 100644 --- a/pkg/extension/host.go +++ b/pkg/extension/host.go @@ -3,7 +3,7 @@ package extension import ( "context" - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" ) // Request 是进程内命令处理器收到的一次分发请求(cmdbus.Request 的子集)。 diff --git a/pkg/extension/link/link.go b/pkg/extension/link/link.go index 1d6a41f..f13a6b4 100644 --- a/pkg/extension/link/link.go +++ b/pkg/extension/link/link.go @@ -3,8 +3,8 @@ package link import ( - "agent-system-backend/internal/app" - "agent-system-backend/pkg/extension" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/app" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/pkg/extension" ) func init() { diff --git a/pkg/extension/projects.go b/pkg/extension/projects.go index d0f5042..06d2b4f 100644 --- a/pkg/extension/projects.go +++ b/pkg/extension/projects.go @@ -1,7 +1,7 @@ package extension import ( - core "agent-system-core" + core "git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git" "context" ) diff --git a/pkg/identity/identity.go b/pkg/identity/identity.go index 76a4e92..42e5a31 100644 --- a/pkg/identity/identity.go +++ b/pkg/identity/identity.go @@ -13,8 +13,8 @@ import ( "runtime/debug" "strings" - "agent-system-backend/internal/app" - "agent-system-backend/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/app" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" ) // Usage 无参/未知子命令时打印到 stderr 的用法行。探测契约:同时含 "identity" diff --git a/pkg/identity/identity_test.go b/pkg/identity/identity_test.go index 81a238f..b36fdbd 100644 --- a/pkg/identity/identity_test.go +++ b/pkg/identity/identity_test.go @@ -8,7 +8,7 @@ import ( "strings" "testing" - "agent-system-backend/internal/store" + "git-ssh.u1680832.nyat.app/weichen/Agent-System-Backend.git/internal/store" ) // capture 把 stdout/stderr 重定向到管道并在 fn 返回后给出捕获文本。 -- 2.54.0 From fffd5790cfab317fadafb40fa55a11bab6e9a847 Mon Sep 17 00:00:00 2001 From: weichen Date: Tue, 13 Oct 2026 17:11:45 +0000 Subject: [PATCH 2/7] Adopt credential safe CI and retire replaced source gitlinks Why: Make independent version consumption work from ordinary clones while retaining historical commits and existing branch workspaces. Evidence: SELF Dev task receipts record 24 CI boundary cases, all workflow syntax checks, readonly private-source prefetch in clean exports, provider tests and package installation without acquisition scripts. Platform CI remains pending. Impact: Remove only replaced index links, preserve old physical checkouts, and update dependency guidance. Library consumers retain their immutable versions until an explicit dependency update. Refs: Agent-System-Dev feature/dependency-workspace; approved versioned-dependency r1, U3-U7 and R15. --- .gitea/workflows/ci.yml | 485 +++++++++++++++++++++++++++++++++++++++- .gitmodules | 21 -- AGENTS.md | 4 +- PROJECT.md | 2 +- README.md | 2 +- deps/agent-command | 1 - deps/agent-intent | 1 - deps/agent-native | 1 - deps/agent-squad | 1 - deps/agent-system-core | 1 - deps/error-code-system | 1 - deps/logging-system | 1 - go.mod | 4 +- go.sum | 8 +- 14 files changed, 483 insertions(+), 50 deletions(-) delete mode 100644 .gitmodules delete mode 160000 deps/agent-command delete mode 160000 deps/agent-intent delete mode 160000 deps/agent-native delete mode 160000 deps/agent-squad delete mode 160000 deps/agent-system-core delete mode 160000 deps/error-code-system delete mode 160000 deps/logging-system diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 7eb7aca..b7c092a 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -9,23 +9,251 @@ jobs: runs-on: ubuntu-latest env: GOPROXY: https://goproxy.cn,direct + GOTOOLCHAIN: local + GOWORK: "off" + GOPRIVATE: git-ssh.u1680832.nyat.app/weichen steps: - name: Checkout env: TOKEN: ${{ secrets.GITHUB_TOKEN }} SUBMODULE_TOKEN: ${{ secrets.SUBMODULE_TOKEN }} - run: | + run: &trusted_acquisition_1 | set -euo pipefail - git init -q - git remote add origin "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git" - git -c http.extraheader="AUTHORIZATION: token ${TOKEN}" fetch --depth=1 origin "${GITHUB_SHA}" - git checkout -q --detach FETCH_HEAD - if [ -z "${SUBMODULE_TOKEN}" ]; then - echo "SUBMODULE_TOKEN is not configured" >&2 - exit 1 - fi - git config --global url."https://weichen:${SUBMODULE_TOKEN}@git-home.u1680832.nyat.app:30319/".insteadOf "ssh://git@git-ssh.u1680832.nyat.app:31411/" - git -c fetch.recurseSubmodules=false submodule update --init --recursive + python3 - <<'PY_TRUSTED' + # Trusted workflow code only: never import or execute checkout scripts here. + # Token scopes, workflow provenance and runner isolation are platform NOT_RUN. + import json + import os + from pathlib import Path + import re + import shlex + import subprocess + import sys + import tempfile + from urllib.parse import urlsplit + + SERVER = os.environ.get("GITHUB_SERVER_URL", "").rstrip("/") + parsed = urlsplit(SERVER) + if (parsed.scheme not in {"http", "https"} or not parsed.netloc or + parsed.username or parsed.password or parsed.query or parsed.fragment): + sys.exit("Acquisition requires the platform-injected http(s) server") + SSH = "ssh://git@git-ssh.u1680832.nyat.app:31411/weichen/" + GO_PREFIX = "git-ssh.u1680832.nyat.app/weichen/" + REPOS = {"Agent-System-Dev", "Logging-System", "Error-Code-System", "Agent-System-Core", "Agent-Native", + "Agent-Intent", "Agent-Command", "Agent-Squad", "Agent-System-Backend", + "Agent-System-Frontend", "Agent-System-UI", "Agent-System-RDM", + "Development-Guidelines", "Agent-System-Documents"} + LEGACY = { + "modules/core": "Agent-System-Core", "modules/backend": "Agent-System-Backend", + "modules/frontend": "Agent-System-Frontend", "modules/ui": "Agent-System-UI", + "modules/documents": "Agent-System-Documents", "deps/agent-system-core": "Agent-System-Core", + "deps/development-guidelines": "Development-Guidelines", "deps/agent-native": "Agent-Native", + "deps/agent-squad": "Agent-Squad", "deps/agent-intent": "Agent-Intent", + "deps/agent-command": "Agent-Command", "deps/error-code-system": "Error-Code-System", + "deps/logging-system": "Logging-System", "pins/agent-system-backend": "Agent-System-Backend", + "pins/agent-system-core": "Agent-System-Core", "pins/agent-system-frontend": "Agent-System-Frontend", + "pins/agent-system-ui": "Agent-System-UI", + } + GO_REPOS = REPOS - {"Agent-System-Dev", "Agent-System-UI", "Agent-System-Frontend", "Development-Guidelines", "Agent-System-Documents"} + GO_MODULES = {GO_PREFIX + repo + ".git" for repo in GO_REPOS} + GO_MODULES |= {GO_PREFIX + "Agent-Squad.git/" + suffix for suffix in + ("adapters/native", "adapters/intent", "adapters/sqlite", "adapters/a2a", "cmd/agent-squad")} + root_token = os.environ.pop("TOKEN", "") + component_token = os.environ.pop("SUBMODULE_TOKEN", "") + # Go environment files and inherited Git tracing/config must not change acquisition. + clean = {k: v for k, v in os.environ.items() + if not k.startswith(("GIT_", "NPM_CONFIG_", "npm_config_")) and + not any(word in k.upper() for word in ("TOKEN", "PASSWORD", "SECRET"))} + clean.update(GIT_CONFIG_NOSYSTEM="1", GIT_CONFIG_SYSTEM="/dev/null", GIT_CONFIG_GLOBAL="/dev/null", + GIT_TERMINAL_PROMPT="0", GOENV="off", GOTOOLCHAIN="local", GOWORK="off", GOFLAGS="-mod=readonly", + GOPRIVATE=GO_PREFIX.rstrip("/"), GONOPROXY=GO_PREFIX.rstrip("/"), GONOSUMDB=GO_PREFIX.rstrip("/")) + if os.environ.get("npm_config_cache"): + clean["npm_config_cache"] = os.environ["npm_config_cache"] + config = {"core.hooksPath": "/dev/null", "core.fsmonitor": "false", "init.templateDir": "", + "credential.helper": "", "fetch.recurseSubmodules": "false", "submodule.recurse": "false", + "http.followRedirects": "false", "protocol.allow": "never", "protocol." + parsed.scheme + ".allow": "always"} + root = Path.cwd() + mirrors = root / ".ci-mirrors" + + def process_env(values): + env = clean | {"GIT_CONFIG_COUNT": str(len(values))} + for index, (key, value) in enumerate(values.items()): + env[f"GIT_CONFIG_KEY_{index}"] = key + env[f"GIT_CONFIG_VALUE_{index}"] = value + return env + + def git(directory, *args, token="", repo=""): + values = config.copy() + if token: + if repo not in REPOS: + raise ValueError("Credential destination is outside the reviewed repository allowlist") + values[f"http.{SERVER}/weichen/{repo}.git.extraheader"] = "AUTHORIZATION: token " + token + result = subprocess.run(["git", "-C", str(directory), *args], env=process_env(values), + check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) + return result.stdout + + def fixed_sha(value): + if not isinstance(value, str) or not re.fullmatch(r"[0-9a-fA-F]{40}", value): + raise ValueError("Source acquisition requires a fixed commit SHA") + return value.lower() + + def mirror(repo, sha, token): + sha = fixed_sha(sha) + destination = mirrors / (repo + ".git") + if destination.is_symlink() or mirrors.is_symlink(): + raise ValueError("Mirror directory cannot be a symlink") + mirrors.mkdir(exist_ok=True) + if not destination.exists(): + destination.mkdir() + git(destination, "init", "--bare", "-q") + url = f"{SERVER}/weichen/{repo}.git" + try: + git(destination, "cat-file", "-e", sha + "^{commit}") + except subprocess.CalledProcessError: + git(destination, "fetch", "--depth=200", url, sha, token=token, repo=repo) + git(destination, "update-ref", "refs/heads/main", sha) + git(destination, "symbolic-ref", "HEAD", "refs/heads/main") + git(destination, "update-ref", "refs/ci/" + sha, sha) + return destination + + def mirror_env(): + values = {"protocol.file.allow": "always", "core.hooksPath": "/dev/null", "credential.helper": ""} + # Distinct keys use repeated .insteadOf values, represented as a sequence below. + pairs = list(values.items()) + for repo in sorted(REPOS): + destination = mirrors / (repo + ".git") + if not destination.exists(): + continue + key = "url." + destination.as_uri() + ".insteadOf" + pairs.extend((key, url) for url in (SSH + repo + ".git", "https://" + GO_PREFIX + repo + ".git", + SERVER + "/weichen/" + repo + ".git", "https://" + GO_PREFIX + repo)) + env = clean | {"CI_DEPENDENCY_MIRRORS": str(mirrors), "GIT_CONFIG_COUNT": str(len(pairs))} + for index, (key, value) in enumerate(pairs): + env[f"GIT_CONFIG_KEY_{index}"] = key + env[f"GIT_CONFIG_VALUE_{index}"] = value + exports = {k: v for k, v in env.items() if k.startswith("GIT_CONFIG_") or k == "CI_DEPENDENCY_MIRRORS"} + (root / ".ci-mirrors.env").write_text("".join("export " + k + "=" + shlex.quote(v) + "\n" for k, v in exports.items())) + return env + + def materialize_legacy(directory, depth=0): + if depth > 16: + raise ValueError("Historical submodule depth exceeds the checkout limit") + links = {} + for entry in git(directory, "ls-tree", "-rz", "HEAD").split(b"\0"): + if entry: + metadata, path = entry.split(b"\t", 1) + mode, kind, commit = metadata.decode().split() + if mode == "160000": + links[path.decode()] = commit + if not links: + return + raw = git(directory, "config", "--no-includes", "--blob", "HEAD:.gitmodules", "--null", "--list") + entries = {} + for item in raw.split(b"\0"): + if not item: + continue + key, value = item.decode().split("\n", 1) + match = re.fullmatch(r"submodule\.(.+)\.(path|url)", key) + if not match: + raise ValueError("Unsupported candidate .gitmodules setting") + name, field = match.groups() + if field in entries.setdefault(name, {}): + raise ValueError("Duplicate candidate .gitmodules setting") + entries[name][field] = value + if set(entries) != set(links): + raise ValueError("Submodule names must match fixed gitlink paths") + for name, fields in entries.items(): + repo = LEGACY.get(name) + if not repo or fields.get("path") != name or fields.get("url") not in { + SSH + repo + ".git", f"{SERVER}/weichen/{repo}.git"}: + raise ValueError("Historical submodule source is outside the reviewed allowlist") + for name in entries: + repo = LEGACY[name] + sha = links[name] + url = f"{SERVER}/weichen/{repo}.git" + git(directory, "config", f"submodule.{name}.url", url) + # Trusted explicit checkout prevents candidate update commands from running. + git(directory, "submodule", "update", "--init", "--checkout", "--", name, token=component_token, repo=repo) + child = directory / name + if git(child, "rev-parse", "HEAD").decode().strip() != sha: + raise ValueError("Historical submodule does not match its fixed SHA") + mirror(repo, sha, component_token) + materialize_legacy(child, depth + 1) + + def materialize_manifest(directory): + manifest = directory / "components.json" + lock = directory / "components.lock.json" + if not manifest.exists() and not lock.exists(): + materialize_legacy(directory) + return + data = json.loads(manifest.read_text()) + locked = json.loads(lock.read_text()) + if data.get("schema") != 1 or locked.get("schema") != 1: + raise ValueError("Unsupported source manifest schema") + entries = {} + for item in data["components"]: + repo = item["id"] + path = ".workspace/" + repo + if (repo not in REPOS or repo in entries or item["path"] != path or + item["repo"] not in {SSH + repo + ".git", f"{SERVER}/weichen/{repo}.git"} or + item.get("role") not in {"go-library", "npm-library", "application", "guidelines", "documentation"}): + raise ValueError("Candidate source manifest is outside the reviewed allowlist") + for module in item.get("modules", []): + if module.get("path") not in GO_MODULES or not module["path"].startswith(GO_PREFIX + repo + ".git"): + raise ValueError("Candidate module mapping is outside the reviewed allowlist") + entries[repo] = item + selected = locked["components"] + if set(selected) - set(entries): + raise ValueError("Source lock refers to an unregistered repository") + for repo, item in entries.items(): + if item["role"] in {"application", "guidelines", "documentation"} and repo not in selected: + raise ValueError("Application and documentation source needs a fixed lock") + for repo, pin in selected.items(): + fixed_sha(pin["commit"]) + destination = directory / entries[repo]["path"] + if destination.exists() or destination.is_symlink() or destination.parent.is_symlink(): + raise ValueError("Source materialization requires a fresh destination") + # Validate the complete lock before any authenticated component fetch. + for repo, pin in selected.items(): + sha = fixed_sha(pin["commit"]) + destination = directory / entries[repo]["path"] + destination.mkdir(parents=True) + url = f"{SERVER}/weichen/{repo}.git" + git(destination, "init", "-q") + git(destination, "remote", "add", "origin", url) + git(destination, "fetch", "--depth=1", "origin", sha, token=component_token, repo=repo) + git(destination, "checkout", "-q", "--detach", "FETCH_HEAD") + if git(destination, "rev-parse", "HEAD").decode().strip() != sha: + raise ValueError("Materialized source differs from the fixed lock") + # Persist the registered identity; process config chooses the transport. + git(destination, "remote", "set-url", "origin", entries[repo]["repo"]) + mirror(repo, sha, component_token) + materialize_legacy(destination) + + try: + if os.environ.get("GITHUB_REPOSITORY") != "weichen/Agent-System-Backend": + raise ValueError("Checkout repository is outside the reviewed allowlist") + sha = fixed_sha(os.environ.get("GITHUB_SHA", "")) + if not root_token: + raise ValueError("Checkout requires TOKEN") + if (root / ".git").exists(): + raise ValueError("Checkout requires a fresh workspace") + git(root, "init", "-q") + git(root, "remote", "add", "origin", SERVER + "/weichen/Agent-System-Backend.git") + git(root, "fetch", "--depth=1", "origin", sha, token=root_token, repo="Agent-System-Backend") + git(root, "checkout", "-q", "--detach", "FETCH_HEAD") + if git(root, "rev-parse", "HEAD").decode().strip() != sha: + raise ValueError("Checked-out commit differs from the platform commit") + if (root / ".ci-mirrors").exists() or (root / ".ci-mirrors.env").exists(): + raise ValueError("Candidate cannot provide trusted prefetch state") + materialize_manifest(root) + mirror_env() + except (ValueError, KeyError, OSError, subprocess.CalledProcessError) as error: + # Do not print child stderr or environment: a failed credential fetch stays redacted. + sys.exit("Checkout refused: " + str(error)) + print("Fixed source checkout complete; credentials were not persisted") + PY_TRUSTED + unset TOKEN SUBMODULE_TOKEN - name: Install Go 1.27.1 run: | set -euo pipefail @@ -33,7 +261,240 @@ jobs: tar -C /usr/local -xzf "$RUNNER_TEMP/go.tgz" ln -sfn /usr/local/go/bin/go /usr/local/bin/go ln -sfn /usr/local/go/bin/gofmt /usr/local/bin/gofmt + - name: Prefetch Go modules without executing candidate code + env: + SUBMODULE_TOKEN: ${{ secrets.SUBMODULE_TOKEN }} + run: &trusted_acquisition_2 | + set -euo pipefail + python3 - <<'PY_TRUSTED' + # Trusted workflow code only: never import or execute checkout scripts here. + # Token scopes, workflow provenance and runner isolation are platform NOT_RUN. + import json + import os + from pathlib import Path + import re + import shlex + import subprocess + import sys + import tempfile + from urllib.parse import urlsplit + + SERVER = os.environ.get("GITHUB_SERVER_URL", "").rstrip("/") + parsed = urlsplit(SERVER) + if (parsed.scheme not in {"http", "https"} or not parsed.netloc or + parsed.username or parsed.password or parsed.query or parsed.fragment): + sys.exit("Acquisition requires the platform-injected http(s) server") + SSH = "ssh://git@git-ssh.u1680832.nyat.app:31411/weichen/" + GO_PREFIX = "git-ssh.u1680832.nyat.app/weichen/" + REPOS = {"Agent-System-Dev", "Logging-System", "Error-Code-System", "Agent-System-Core", "Agent-Native", + "Agent-Intent", "Agent-Command", "Agent-Squad", "Agent-System-Backend", + "Agent-System-Frontend", "Agent-System-UI", "Agent-System-RDM", + "Development-Guidelines", "Agent-System-Documents"} + LEGACY = { + "modules/core": "Agent-System-Core", "modules/backend": "Agent-System-Backend", + "modules/frontend": "Agent-System-Frontend", "modules/ui": "Agent-System-UI", + "modules/documents": "Agent-System-Documents", "deps/agent-system-core": "Agent-System-Core", + "deps/development-guidelines": "Development-Guidelines", "deps/agent-native": "Agent-Native", + "deps/agent-squad": "Agent-Squad", "deps/agent-intent": "Agent-Intent", + "deps/agent-command": "Agent-Command", "deps/error-code-system": "Error-Code-System", + "deps/logging-system": "Logging-System", "pins/agent-system-backend": "Agent-System-Backend", + "pins/agent-system-core": "Agent-System-Core", "pins/agent-system-frontend": "Agent-System-Frontend", + "pins/agent-system-ui": "Agent-System-UI", + } + GO_REPOS = REPOS - {"Agent-System-Dev", "Agent-System-UI", "Agent-System-Frontend", "Development-Guidelines", "Agent-System-Documents"} + GO_MODULES = {GO_PREFIX + repo + ".git" for repo in GO_REPOS} + GO_MODULES |= {GO_PREFIX + "Agent-Squad.git/" + suffix for suffix in + ("adapters/native", "adapters/intent", "adapters/sqlite", "adapters/a2a", "cmd/agent-squad")} + root_token = os.environ.pop("TOKEN", "") + component_token = os.environ.pop("SUBMODULE_TOKEN", "") + # Go environment files and inherited Git tracing/config must not change acquisition. + clean = {k: v for k, v in os.environ.items() + if not k.startswith(("GIT_", "NPM_CONFIG_", "npm_config_")) and + not any(word in k.upper() for word in ("TOKEN", "PASSWORD", "SECRET"))} + clean.update(GIT_CONFIG_NOSYSTEM="1", GIT_CONFIG_SYSTEM="/dev/null", GIT_CONFIG_GLOBAL="/dev/null", + GIT_TERMINAL_PROMPT="0", GOENV="off", GOTOOLCHAIN="local", GOWORK="off", GOFLAGS="-mod=readonly", + GOPRIVATE=GO_PREFIX.rstrip("/"), GONOPROXY=GO_PREFIX.rstrip("/"), GONOSUMDB=GO_PREFIX.rstrip("/")) + if os.environ.get("npm_config_cache"): + clean["npm_config_cache"] = os.environ["npm_config_cache"] + config = {"core.hooksPath": "/dev/null", "core.fsmonitor": "false", "init.templateDir": "", + "credential.helper": "", "fetch.recurseSubmodules": "false", "submodule.recurse": "false", + "http.followRedirects": "false", "protocol.allow": "never", "protocol." + parsed.scheme + ".allow": "always"} + root = Path.cwd() + mirrors = root / ".ci-mirrors" + + def process_env(values): + env = clean | {"GIT_CONFIG_COUNT": str(len(values))} + for index, (key, value) in enumerate(values.items()): + env[f"GIT_CONFIG_KEY_{index}"] = key + env[f"GIT_CONFIG_VALUE_{index}"] = value + return env + + def git(directory, *args, token="", repo=""): + values = config.copy() + if token: + if repo not in REPOS: + raise ValueError("Credential destination is outside the reviewed repository allowlist") + values[f"http.{SERVER}/weichen/{repo}.git.extraheader"] = "AUTHORIZATION: token " + token + result = subprocess.run(["git", "-C", str(directory), *args], env=process_env(values), + check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) + return result.stdout + + def fixed_sha(value): + if not isinstance(value, str) or not re.fullmatch(r"[0-9a-fA-F]{40}", value): + raise ValueError("Source acquisition requires a fixed commit SHA") + return value.lower() + + def mirror(repo, sha, token): + sha = fixed_sha(sha) + destination = mirrors / (repo + ".git") + if destination.is_symlink() or mirrors.is_symlink(): + raise ValueError("Mirror directory cannot be a symlink") + mirrors.mkdir(exist_ok=True) + if not destination.exists(): + destination.mkdir() + git(destination, "init", "--bare", "-q") + url = f"{SERVER}/weichen/{repo}.git" + try: + git(destination, "cat-file", "-e", sha + "^{commit}") + except subprocess.CalledProcessError: + git(destination, "fetch", "--depth=200", url, sha, token=token, repo=repo) + git(destination, "update-ref", "refs/heads/main", sha) + git(destination, "symbolic-ref", "HEAD", "refs/heads/main") + git(destination, "update-ref", "refs/ci/" + sha, sha) + return destination + + def mirror_env(): + values = {"protocol.file.allow": "always", "core.hooksPath": "/dev/null", "credential.helper": ""} + # Distinct keys use repeated .insteadOf values, represented as a sequence below. + pairs = list(values.items()) + for repo in sorted(REPOS): + destination = mirrors / (repo + ".git") + if not destination.exists(): + continue + key = "url." + destination.as_uri() + ".insteadOf" + pairs.extend((key, url) for url in (SSH + repo + ".git", "https://" + GO_PREFIX + repo + ".git", + SERVER + "/weichen/" + repo + ".git", "https://" + GO_PREFIX + repo)) + env = clean | {"CI_DEPENDENCY_MIRRORS": str(mirrors), "GIT_CONFIG_COUNT": str(len(pairs))} + for index, (key, value) in enumerate(pairs): + env[f"GIT_CONFIG_KEY_{index}"] = key + env[f"GIT_CONFIG_VALUE_{index}"] = value + exports = {k: v for k, v in env.items() if k.startswith("GIT_CONFIG_") or k == "CI_DEPENDENCY_MIRRORS"} + (root / ".ci-mirrors.env").write_text("".join("export " + k + "=" + shlex.quote(v) + "\n" for k, v in exports.items())) + return env + + def source_roots(): + bases = [root] + composition = root / ".ci-composition-dev" + if composition.is_dir() and not composition.is_symlink(): + bases.append(composition) + paths = [] + for base in bases: + paths += [base, base / "rdm"] + [base / path for path in LEGACY] + [base / ".workspace" / repo for repo in sorted(REPOS)] + return [path for path in paths if path.is_dir() and not path.is_symlink()] + try: + targets = [] + for source in source_roots(): + for suffix in (".", "examples/trace", "adapters/native", "adapters/intent", "adapters/sqlite", "adapters/a2a", "cmd/agent-squad"): + directory = source / suffix + if (directory / "go.mod").is_file() and directory.resolve() not in targets: + targets.append(directory.resolve()) + # Parse using the installed local Go tool without credentials or candidate execution. + original_files = {} + for directory in targets: + parsed_mod = json.loads(subprocess.check_output(["go", "mod", "edit", "-json"], cwd=directory, env=clean)) + canonical = parsed_mod["Module"]["Path"].startswith(GO_PREFIX) + for name in ("go.mod", "go.sum"): + dependency_file = directory / name + if dependency_file.is_file(): + original_files[(directory, name)] = dependency_file.read_bytes() + elif canonical and name == "go.sum": + original_files[(directory, name)] = None + for dep in (parsed_mod.get("Require") or []): + path = dep["Path"] + if path.startswith(GO_PREFIX) and path not in GO_MODULES: + raise ValueError("Go dependency is outside the reviewed module mapping") + for replacement in (parsed_mod.get("Replace") or []): + path = replacement["New"]["Path"] + if canonical and not replacement["New"].get("Version"): + raise ValueError("Canonical module cannot acquire a local path replacement") + if path.startswith(GO_PREFIX) and path not in GO_MODULES: + raise ValueError("Go replacement is outside the reviewed module mapping") + auth = config.copy() + for repo in sorted(GO_REPOS): + url = f"{SERVER}/weichen/{repo}.git" + auth[f"url.{url}.insteadOf"] = "https://" + GO_PREFIX + repo + auth[f"http.{url}.extraheader"] = "AUTHORIZATION: token " + component_token + def objects(output): + decoder = json.JSONDecoder() + remaining = output.strip() + while remaining: + item, end = decoder.raw_decode(remaining) + remaining = remaining[end:].lstrip() + yield item + def unchanged(): + for (owner, name), contents in original_files.items(): + dependency_file = owner / name + current = dependency_file.read_bytes() if dependency_file.exists() else None + if current != contents: + raise ValueError("Go acquisition modified a committed Go dependency file: " + str(dependency_file)) + for directory in targets: + # Resolve private go.mod metadata only through exact repository headers; + # validate the complete selected graph before acquiring module zip files. + graph = subprocess.run(["go", "list", "-mod=readonly", "-m", "-json", "all"], cwd=directory, + env=process_env(auth), capture_output=True, text=True) + if graph.returncode: + raise ValueError("Go selected graph resolution failed: " + graph.stderr.strip()) + for item in objects(graph.stdout): + if item.get("Main"): + continue + selected = item.get("Replace") or item + for path in (item.get("Path", ""), selected.get("Path", "")): + if path.startswith(GO_PREFIX) and path not in GO_MODULES: + raise ValueError("Selected Go module is outside the reviewed mapping") + unchanged() + # Go 1.27 can prune go.sum even under -mod=readonly for this + # metadata-only command. Use a disposable copy, then validate actual + # package loading against the unchanged committed source locks. + local_replacements = json.loads(subprocess.check_output( + ["go", "mod", "edit", "-json"], cwd=directory, env=clean)).get("Replace") or [] + downloaded = "" + if not any(not item["New"].get("Version") for item in local_replacements): + with tempfile.TemporaryDirectory(prefix="ci-go-prefetch-") as temporary: + download_root = Path(temporary) + for name in ("go.mod", "go.sum"): + if (directory / name).is_file(): + (download_root / name).write_bytes((directory / name).read_bytes()) + result = subprocess.run(["go", "mod", "download", "-json"], cwd=download_root, + env=process_env(auth), capture_output=True, text=True) + if result.returncode: + raise ValueError("Go module acquisition failed: " + result.stderr.strip()) + downloaded = result.stdout + unchanged() + for item in objects(downloaded): + path = item.get("Path", "") + if path.startswith(GO_PREFIX): + if path not in GO_MODULES: + raise ValueError("Resolved Go module is outside the reviewed mapping") + repo = path[len(GO_PREFIX):].split(".git", 1)[0] + origin = item.get("Origin") or json.loads(Path(item["Info"]).read_text()).get("Origin") or {} + mirror(repo, fixed_sha(origin.get("Hash")), component_token) + # Package metadata loads actual test/build dependencies without running + # vet, compilers, package init functions or candidate tests. No CGO tools. + packages = subprocess.run(["go", "list", "-mod=readonly", "-deps", "-test", "./..."], cwd=directory, + env=process_env(auth) | {"CGO_ENABLED": "0"}, capture_output=True, text=True) + if packages.returncode: + raise ValueError("Go test/build dependency acquisition failed: " + packages.stderr.strip()) + unchanged() + mirror_env() + except (ValueError, OSError, subprocess.CalledProcessError) as error: + sys.exit("Go prefetch refused: " + str(error)) + print("Go modules cached with GOTOOLCHAIN=local; no candidate code executed") + PY_TRUSTED + unset TOKEN SUBMODULE_TOKEN - name: Install house-style Python packages run: python3 -m pip install --break-system-packages -i https://pypi.tuna.tsinghua.edu.cn/simple python-docx python-pptx openpyxl - name: Vet and test - run: GOWORK=off go vet ./... && GOWORK=off go test -count=1 ./... + run: | + set -euo pipefail + source .ci-mirrors.env + GOWORK=off go vet -mod=readonly ./... && GOWORK=off go test -mod=readonly -count=1 ./... diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index de8d163..0000000 --- a/.gitmodules +++ /dev/null @@ -1,21 +0,0 @@ -[submodule "deps/agent-system-core"] - path = deps/agent-system-core - url = ssh://git@git-ssh.u1680832.nyat.app:31411/weichen/Agent-System-Core.git -[submodule "deps/agent-native"] - path = deps/agent-native - url = ssh://git@git-ssh.u1680832.nyat.app:31411/weichen/Agent-Native.git -[submodule "deps/agent-intent"] - path = deps/agent-intent - url = ssh://git@git-ssh.u1680832.nyat.app:31411/weichen/Agent-Intent.git -[submodule "deps/logging-system"] - path = deps/logging-system - url = ssh://git@git-ssh.u1680832.nyat.app:31411/weichen/Logging-System.git -[submodule "deps/error-code-system"] - path = deps/error-code-system - url = ssh://git@git-ssh.u1680832.nyat.app:31411/weichen/Error-Code-System.git -[submodule "deps/agent-squad"] - path = deps/agent-squad - url = ssh://git@git-ssh.u1680832.nyat.app:31411/weichen/Agent-Squad.git -[submodule "deps/agent-command"] - path = deps/agent-command - url = ssh://git@git-ssh.u1680832.nyat.app:31411/weichen/Agent-Command.git diff --git a/AGENTS.md b/AGENTS.md index 1ac936d..e62bc1d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,6 +1,6 @@ # Agent 工作说明(Agent-System-Backend) -本仓开发遵循 Development-Guidelines(Dev 仓 `deps/development-guidelines`,gitlink 固定版本): +本仓开发遵循 Development-Guidelines(由 Dev 固定规范来源;新布局见 Dev components.lock.json,规则目录 .workspace/Development-Guidelines;历史布局仍读原 gitlink): 核心规则见其 `core/`,按任务触发阅读 `standards/` 专题;日常交付走 `workflows/delivery.md`。 ## 任务启动门禁 @@ -15,7 +15,7 @@ ## 仓内规则 - 模块边界、公开契约与隔离档位见 `policy/modules/`(如有)与 PROJECT.md。 -- 跨仓 gitlink 变更须经组合验证后在 Dev 仓推进;受保护分支经 PR 合入。 +- 跨仓语言依赖/应用源码锁变更须经固定组合验证后在消费方推进;源码提交到所属仓;受保护分支经 PR 合入。 - 验证命令见 PROJECT.md「验证」节;完成声明须附实际命令输出证据。 ## Gitea 与 Git 访问事实(2026-09-30 实测) diff --git a/PROJECT.md b/PROJECT.md index 5574dca..d2b0fe4 100644 --- a/PROJECT.md +++ b/PROJECT.md @@ -10,7 +10,7 @@ - `GOWORK=off go test -mod=readonly -count=1 ./...` — 单元 + 端到端(mock runner 全链路:流式/折叠部件/HITL 三分支/子代理任务树/工件/上传解析/中文检索/SSE 在线与重放/命令路由/插件装卸 fail-closed)。 - `GOWORK=off CGO_ENABLED=0 go build -mod=readonly ./cmd/agent-system` — 单二进制(静态,内嵌前端后)。 - 存储:嵌入式 SQLite(modernc.org/sqlite,纯 Go);FTS5 全文 + CJK LIKE 兜底。 -- 依赖:完整模块路径的 Core、Native、Intent、Command、Squad 及基础库,版本由 `go.mod` / `go.sum` 固定;Native 复用 runtime/llm。正式消费使用 `GOWORK=off`、无本地目录 `replace`。旧 deps gitlink 暂留供历史提交与在途分支重建。 +- 依赖:完整模块路径的 Core、Native、Intent、Command、Squad 及基础库,版本由 `go.mod` / `go.sum` 固定;Native 复用 runtime/llm。正式消费使用 `GOWORK=off`、无本地目录 `replace`。旧提交保留其 gitlinks 供历史组合和在途分支重建;本提交已移除已替代指针。 ## 配置(启动层) diff --git a/README.md b/README.md index 5286e9d..943d1f2 100644 --- a/README.md +++ b/README.md @@ -13,4 +13,4 @@ GOWORK=off go test -mod=readonly -count=1 ./... GOWORK=off CGO_ENABLED=0 go build -mod=readonly -o /tmp/agent-system ./cmd/agent-system ``` -完整产品还需要 Dev 构建入口装配前端 `web/dist` 后再编译;Go 模块测试不证明前端组合产物。`deps/` 的旧源码 gitlink 暂留供历史提交与在途分支重建。本地源码联调通过 Dev 的显式组件链接管理;在途分支迁移 import 与模块前缀时保持公开协议、数据和事件标识。 +完整产品还需要 Dev 构建入口装配前端 `web/dist` 后再编译;Go 模块测试不证明前端组合产物。旧提交保留其 gitlinks 供历史组合和在途分支重建;本提交已移除已替代指针。本地源码联调通过 Dev 的显式组件链接管理;在途分支迁移 import 与模块前缀时保持公开协议、数据和事件标识。 diff --git a/deps/agent-command b/deps/agent-command deleted file mode 160000 index 4f583ca..0000000 --- a/deps/agent-command +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 4f583ca3eeeb07a56a714c5086de84dcd6ad2980 diff --git a/deps/agent-intent b/deps/agent-intent deleted file mode 160000 index 343b1e6..0000000 --- a/deps/agent-intent +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 343b1e6d9a5b58e47bf7e594826221036ae8175c diff --git a/deps/agent-native b/deps/agent-native deleted file mode 160000 index c348441..0000000 --- a/deps/agent-native +++ /dev/null @@ -1 +0,0 @@ -Subproject commit c348441691e8bdab784a03aa9be64d53dacff341 diff --git a/deps/agent-squad b/deps/agent-squad deleted file mode 160000 index 490b0b2..0000000 --- a/deps/agent-squad +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 490b0b2dfa1567cb16ff7a7230fd78e52bc2938e diff --git a/deps/agent-system-core b/deps/agent-system-core deleted file mode 160000 index 5773e74..0000000 --- a/deps/agent-system-core +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 5773e74086791731059730bd3726dc8c9cd1381f diff --git a/deps/error-code-system b/deps/error-code-system deleted file mode 160000 index a3ee67b..0000000 --- a/deps/error-code-system +++ /dev/null @@ -1 +0,0 @@ -Subproject commit a3ee67bba269e1276c14e22c026171ecf2cf6190 diff --git a/deps/logging-system b/deps/logging-system deleted file mode 160000 index 49b5d8b..0000000 --- a/deps/logging-system +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 49b5d8be604d05e4246dffa0d10fa1c2b7ad45d7 diff --git a/go.mod b/go.mod index 251bc9e..5307734 100644 --- a/go.mod +++ b/go.mod @@ -6,8 +6,8 @@ require ( git-ssh.u1680832.nyat.app/weichen/Agent-Command.git v0.0.0-20261013153614-1aa532f45e55 git-ssh.u1680832.nyat.app/weichen/Agent-Intent.git v0.0.0-20261013153611-3a8468c83a80 git-ssh.u1680832.nyat.app/weichen/Agent-Native.git v0.0.0-20261013153610-6ddd3da8df5c - git-ssh.u1680832.nyat.app/weichen/Agent-Squad.git v0.0.0-20261013154230-ed0952e08fd7 - git-ssh.u1680832.nyat.app/weichen/Agent-Squad.git/adapters/native v0.0.0-20261013154230-ed0952e08fd7 + git-ssh.u1680832.nyat.app/weichen/Agent-Squad.git v0.0.0-20261013154435-37b273e35f88 + git-ssh.u1680832.nyat.app/weichen/Agent-Squad.git/adapters/native v0.0.0-20261013154435-37b273e35f88 git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git v0.4.1-0.20261013151137-f32d4317846f git-ssh.u1680832.nyat.app/weichen/Error-Code-System.git v0.0.0-20261013150648-28d2d5074347 git-ssh.u1680832.nyat.app/weichen/Logging-System.git v0.0.0-20261013150647-9c5442f06d05 diff --git a/go.sum b/go.sum index f0c264d..af343ff 100644 --- a/go.sum +++ b/go.sum @@ -4,10 +4,10 @@ git-ssh.u1680832.nyat.app/weichen/Agent-Intent.git v0.0.0-20261013153611-3a8468c git-ssh.u1680832.nyat.app/weichen/Agent-Intent.git v0.0.0-20261013153611-3a8468c83a80/go.mod h1:idJ6YUupl8JapXrwk4x5hVaqemp7c7x6f2Qf2ezCpz0= git-ssh.u1680832.nyat.app/weichen/Agent-Native.git v0.0.0-20261013153610-6ddd3da8df5c h1:9FwMbsjF1qdnH/JANKZSYDXyHBd6H2tEo1z2cdPldds= git-ssh.u1680832.nyat.app/weichen/Agent-Native.git v0.0.0-20261013153610-6ddd3da8df5c/go.mod h1:hONk3TC2TIn8Us+AcvoDCkBnIDAh1Aj/nevo9tJcZv4= -git-ssh.u1680832.nyat.app/weichen/Agent-Squad.git v0.0.0-20261013154230-ed0952e08fd7 h1:V0WHk7KWxUIF3nzYhQmlx72WhSZ1IjQuhALDgh4MTgE= -git-ssh.u1680832.nyat.app/weichen/Agent-Squad.git v0.0.0-20261013154230-ed0952e08fd7/go.mod h1:WRNAbaAaumPt7pe0Wg/2SxajcUc6IVZoBd7VJEe0tqk= -git-ssh.u1680832.nyat.app/weichen/Agent-Squad.git/adapters/native v0.0.0-20261013154230-ed0952e08fd7 h1:l5ZotXZWDje0uBlQhOA+VSieCCGC5fkS5XPqulX7inw= -git-ssh.u1680832.nyat.app/weichen/Agent-Squad.git/adapters/native v0.0.0-20261013154230-ed0952e08fd7/go.mod h1:+MOrRWwFOPs1F5LCAPR3pW5yqPoLKJtB6sWHsN54VN4= +git-ssh.u1680832.nyat.app/weichen/Agent-Squad.git v0.0.0-20261013154435-37b273e35f88 h1:bE4or5GHlv7D78tqoLXtaC9TW0Bt/bzj/fZ8IK99XwY= +git-ssh.u1680832.nyat.app/weichen/Agent-Squad.git v0.0.0-20261013154435-37b273e35f88/go.mod h1:WRNAbaAaumPt7pe0Wg/2SxajcUc6IVZoBd7VJEe0tqk= +git-ssh.u1680832.nyat.app/weichen/Agent-Squad.git/adapters/native v0.0.0-20261013154435-37b273e35f88 h1:jiTBm6dcMBbDUdC6/ufXVxtLyCac8E8u7fVmae7cnEA= +git-ssh.u1680832.nyat.app/weichen/Agent-Squad.git/adapters/native v0.0.0-20261013154435-37b273e35f88/go.mod h1:+MOrRWwFOPs1F5LCAPR3pW5yqPoLKJtB6sWHsN54VN4= git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git v0.4.1-0.20261013151137-f32d4317846f h1:39RW0R6zmtXLNbLQaqFCmtZ6zjEs2lhDLb9YLhudIiM= git-ssh.u1680832.nyat.app/weichen/Agent-System-Core.git v0.4.1-0.20261013151137-f32d4317846f/go.mod h1:T3FU9NsngaxF/1C2ISi02fV7+aqNepOEvX0QhswA70Y= git-ssh.u1680832.nyat.app/weichen/Error-Code-System.git v0.0.0-20261013150648-28d2d5074347 h1:mESnwe9ZpZqpLoGPzLyCWEmXDHKm7ouKC8qpF8EztEQ= -- 2.54.0 From af2702de8a75dc7366e7bec2c729939cdcdc197b Mon Sep 17 00:00:00 2001 From: weichen Date: Wed, 14 Oct 2026 04:15:17 +0000 Subject: [PATCH 3/7] Wait for recovery worker before releasing test fixtures (U5) Why: ResumeInterruptedChildren starts a background worker; the recovery-hold test returned while it could still write to a temporary workspace and SQLite store, causing cleanup races. Evidence: SELF Root e3a full combination exposed the TempDir/database-close race; the corrected target passed 100 repetitions and full Backend Go tests passed in /tmp/dependency-recovery-hold-wait-green-20261014-01a1345f.json and /tmp/dependency-backend-test-repair-all-go-green-20261014-01a1345f.json. Impact: Test teardown synchronization only; no production recovery behavior changes. Refs: Backend PR #196; Dev PR #537; R14/R15 --- internal/runmgr/recovery_hold_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/internal/runmgr/recovery_hold_test.go b/internal/runmgr/recovery_hold_test.go index ed3e3c6..20e1c1b 100644 --- a/internal/runmgr/recovery_hold_test.go +++ b/internal/runmgr/recovery_hold_test.go @@ -80,6 +80,13 @@ func TestRecoveryHoldBlocksResumeUntilReleased(t *testing.T) { if held, herr := st.HasOpenRecoveryHold(child.ID, string(child.ConversationID)); held || herr != nil { t.Fatalf("解除后不应再有 hold:held=%v err=%v", held, herr) } + // ResumeInterruptedChildren 启动后台续跑。等它完成后再让测试关闭数据库 + // 和删除临时工作区,避免续跑与 t.Cleanup 并发写同一现场。 + waitUntil(t, func() bool { + c.mgr.noticeMu.Lock() + defer c.mgr.noticeMu.Unlock() + return c.mgr.bgInFlight[c.run.ConversationID] == 0 + }) } // 会话级 hold:同会话的其他中断子 run 一并跳过(副作用疑点未核对前, -- 2.54.0 From bada7ee40fba810d3563870226dfd001f9854810 Mon Sep 17 00:00:00 2001 From: weichen Date: Wed, 14 Oct 2026 04:15:17 +0000 Subject: [PATCH 4/7] Scope sandbox orphan probe to its own script (U5) Why: The host-wide s.sh grep counted unrelated host scripts as sandbox escapes and failed the fixed combination even when its sandbox script had exited. Evidence: SELF unrelated sentinel produced the exact original RED, while the scoped probe stayed GREEN under the same sentinel and detected its own positive-control script; full Backend Go tests passed. Receipts: /tmp/dependency-sandbox-host-collision-{red,green}-20261014-01a1345f.json and /tmp/dependency-backend-test-repair-all-go-green-20261014-01a1345f.json. Impact: Test process identity check only; the sandbox process isolation implementation and failure condition for its own script are unchanged. Refs: Backend PR #196; Dev PR #537; R8/R14 --- internal/tools/exec_backend_test.go | 83 +++++++++++++++++++++++++++-- 1 file changed, 78 insertions(+), 5 deletions(-) diff --git a/internal/tools/exec_backend_test.go b/internal/tools/exec_backend_test.go index 41006f3..9974ce7 100644 --- a/internal/tools/exec_backend_test.go +++ b/internal/tools/exec_backend_test.go @@ -13,6 +13,7 @@ import ( "os/exec" "path/filepath" "strings" + "syscall" "testing" "time" ) @@ -87,6 +88,11 @@ func requireBwrap(t *testing.T) { // sandboxRun 经 sandbox 后端执行一段 bash 脚本,返回合并输出与退出描述。 func sandboxRun(t *testing.T, script string, timeout time.Duration) (string, string) { + out, state, _ := sandboxRunWithPath(t, script, timeout) + return out, state +} + +func sandboxRunWithPath(t *testing.T, script string, timeout time.Duration) (string, string, string) { t.Helper() dir := t.TempDir() p := filepath.Join(dir, "s.sh") @@ -117,7 +123,7 @@ func sandboxRun(t *testing.T, script string, timeout time.Duration) (string, str if ctx.Err() == context.DeadlineExceeded { state = "exit=timeout" } - return out, state + return out, state, p } func TestSandboxHomeHidden(t *testing.T) { @@ -207,17 +213,84 @@ func TestSandboxForkBombContained(t *testing.T) { func TestSandboxOrphansDieWithNamespace(t *testing.T) { requireBwrap(t) - out, state := sandboxRun(t, ":(){ :|:& };:; echo gone", 30*time.Second) + out, state, scriptPath := sandboxRunWithPath(t, ":(){ :|:& };:; echo gone", 30*time.Second) if state != "exit=0" || !strings.Contains(out, "gone") { t.Fatalf("state=%s out=%q", state, out) } time.Sleep(500 * time.Millisecond) // 给孤儿进程留存活窗口 - hb, err := exec.Command("bash", "-c", "ps -eo args | grep -c '[s]\\.sh' || true").Output() + count, err := sandboxScriptProcessCount(scriptPath) if err != nil { t.Skipf("host ps probe failed: %v", err) } - if strings.TrimSpace(string(hb)) != "0" { - t.Fatalf("orphaned bomb survived outside the namespace: %s", hb) + if count != 0 { + t.Fatalf("sandbox script still has %d host processes: %s", count, scriptPath) + } +} + +func sandboxScriptProcessCount(scriptPath string) (int, error) { + out, err := exec.Command("ps", "-eo", "args").Output() + if err != nil { + return 0, err + } + count := 0 + for _, args := range strings.Split(string(out), "\n") { + if strings.Contains(args, scriptPath) { + count++ + } + } + return count, nil +} + +func TestSandboxOrphanProbeScopesScript(t *testing.T) { + dir := t.TempDir() + actual := filepath.Join(dir, "actual", "s.sh") + unrelated := filepath.Join(dir, "unrelated", "s.sh") + for _, path := range []string{actual, unrelated} { + if err := os.MkdirAll(filepath.Dir(path), 0o700); err != nil { + t.Fatal(err) + } + if err := os.WriteFile(path, []byte("sleep 10 & wait\n"), 0o600); err != nil { + t.Fatal(err) + } + } + start := func(path string) { + proc := exec.Command("bash", path) + proc.SysProcAttr = &syscall.SysProcAttr{Setpgid: true} + if err := proc.Start(); err != nil { + t.Fatal(err) + } + t.Cleanup(func() { _ = syscall.Kill(-proc.Process.Pid, syscall.SIGKILL); _ = proc.Wait() }) + } + start(unrelated) + for deadline := time.Now().Add(time.Second); ; { + count, err := sandboxScriptProcessCount(unrelated) + if err != nil { + t.Fatal(err) + } + if count > 0 { + break + } + if time.Now().After(deadline) { + t.Fatal("unrelated control script did not start") + } + time.Sleep(time.Millisecond) + } + if count, err := sandboxScriptProcessCount(actual); err != nil || count != 0 { + t.Fatalf("unrelated process counted as this sandbox script: count=%d err=%v", count, err) + } + start(actual) + for deadline := time.Now().Add(time.Second); ; { + count, err := sandboxScriptProcessCount(actual) + if err != nil { + t.Fatal(err) + } + if count > 0 { + break + } + if time.Now().After(deadline) { + t.Fatal("own sandbox script was not detected") + } + time.Sleep(time.Millisecond) } } -- 2.54.0 From 3b6254d02e514b173b6bc3d3c24dcbf4166cdcbb Mon Sep 17 00:00:00 2001 From: weichen Date: Wed, 14 Oct 2026 10:24:49 +0000 Subject: [PATCH 5/7] Reject sandbox tests when Bubblewrap never starts Why: Home and sibling isolation tests could pass after a Bubblewrap startup failure, hiding an untested security boundary. Evidence: Isolated fake-Bubblewrap replay changed both target tests from PASS to FAIL; SELF receipt /tmp/dependency-task1-fake-green-20261014-01a1345f.json. Native positive replay remains NOT_RUN. Impact: Test assertions only; production execution behavior is unchanged. Refs: Backend PR #196; Documents design 1790cf8 --- internal/tools/exec_backend_test.go | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/internal/tools/exec_backend_test.go b/internal/tools/exec_backend_test.go index 9974ce7..1e088e0 100644 --- a/internal/tools/exec_backend_test.go +++ b/internal/tools/exec_backend_test.go @@ -137,13 +137,13 @@ func TestSandboxHomeHidden(t *testing.T) { t.Skipf("cannot create home fixture: %v", err) } defer os.Remove(secret) - out, state := sandboxRun(t, "cat \"$HOME/.agent-ext16-marker\" 2>err.txt; cat err.txt; exit 7", 30*time.Second) + out, state := sandboxRun(t, "cat \"$HOME/.agent-ext16-marker\" 2>err.txt; cat err.txt; echo SANDBOX_SCRIPT_RAN; exit 7", 30*time.Second) + if state != "exit=7" || !strings.Contains(out, "SANDBOX_SCRIPT_RAN") { + t.Fatalf("sandbox script did not run: state=%s out=%q", state, out) + } if strings.Contains(out, "topsecret") { t.Fatalf("sandbox read real home secret (state=%s out=%q)", state, out) } - if state == "exit=0" || state == "exit=7" && strings.Contains(out, "topsecret") { - t.Fatalf("unexpected success: state=%s out=%q", state, out) - } } func TestSandboxSiblingSessionUnreadable(t *testing.T) { @@ -164,7 +164,7 @@ func TestSandboxSiblingSessionUnreadable(t *testing.T) { defer cancel() var buf bytes.Buffer spec := ExecSpec{ - Bin: "/bin/bash", Args: []string{"-c", "cat '" + marker + "'"}, Dir: a, + Bin: "/bin/bash", Args: []string{"-c", "cat '" + marker + "' 2>&1; echo SANDBOX_SCRIPT_RAN; exit 7"}, Dir: a, Env: []string{"PATH=/usr/bin:/bin", "HOME=/home/agent"}, } proc, err := sandboxBackend{}.Start(ctx, spec, &buf) @@ -172,7 +172,11 @@ func TestSandboxSiblingSessionUnreadable(t *testing.T) { t.Fatal(err) } werr := proc.Wait() - if werr == nil || buf.String() == "others-data" { + exit, ok := werr.(*exec.ExitError) + if !ok || exit.ExitCode() != 7 || !strings.Contains(buf.String(), "SANDBOX_SCRIPT_RAN") { + t.Fatalf("sandbox script did not run: wait=%v out=%q", werr, buf.String()) + } + if strings.Contains(buf.String(), "others-data") { t.Fatalf("sibling session readable inside sandbox: wait=%v out=%q", werr, buf.String()) } } -- 2.54.0 From c08003bc59b1b40694ddf842a46efdaafcf0a322 Mon Sep 17 00:00:00 2001 From: weichen Date: Wed, 14 Oct 2026 10:57:36 +0000 Subject: [PATCH 6/7] Preserve isolated Python tools in the DOCX lint test Why: The test replaced PYTHONPATH with the house-style source path, hiding the fixed Python wheels installed inside the candidate sandbox. Evidence: Isolated Backend TestLintErrorContinues replay passed with locked wheel acquisition and no host site-packages; SELF receipt /tmp/dependency-task3-backend-lint-probe-20261014-01a1345f.json. Impact: Test environment composition only; production runtime behavior is unchanged. Refs: Backend PR #196; Dev PR #537; Documents plan 5099e12 --- internal/runtime/llm_verify_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/runtime/llm_verify_test.go b/internal/runtime/llm_verify_test.go index 370f475..f339065 100644 --- a/internal/runtime/llm_verify_test.go +++ b/internal/runtime/llm_verify_test.go @@ -100,6 +100,9 @@ func TestLintErrorContinues(t *testing.T) { if err != nil { t.Fatal(err) } + if existing := os.Getenv("PYTHONPATH"); existing != "" { + abs += string(os.PathListSeparator) + existing + } t.Setenv("PYTHONPATH", abs) docx := badDocx(t) turns := padTurns( -- 2.54.0 From 0d31f942b3e6e874a1048d924a2d44d0a1229e0f Mon Sep 17 00:00:00 2001 From: weichen Date: Wed, 14 Oct 2026 11:11:55 +0000 Subject: [PATCH 7/7] Preserve Python dependency paths in Backend tests Why: Test-local PYTHONPATH overrides and an exact-value assertion hid the fixed wheel directory used by isolated composition. Evidence: Three affected Backend tests passed under local Bubblewrap with an 8-wheel offline install; SELF receipt /tmp/dependency-task3-backend-three-tests-20261014-01a1345f.json. Impact: Test environment and assertion changes only; production lint path behavior is unchanged. Refs: Backend PR #196; Dev PR #537; Documents plan 5099e12 --- internal/quality/score_lint_test.go | 3 ++- internal/skills/skills_test.go | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/internal/quality/score_lint_test.go b/internal/quality/score_lint_test.go index e81d261..4d32f5f 100644 --- a/internal/quality/score_lint_test.go +++ b/internal/quality/score_lint_test.go @@ -10,6 +10,7 @@ import ( func TestLintCommandEnvCarriesSkillsRoot(t *testing.T) { root := t.TempDir() + t.Setenv("PYTHONPATH", "/fixture/isolated-pydeps") SetLintEnvRoot(root) t.Cleanup(func() { SetLintEnvRoot("") }) env := lintCommandEnv() @@ -18,7 +19,7 @@ func TestLintCommandEnvCarriesSkillsRoot(t *testing.T) { if kv == "AGENT_SKILLS_DIR="+root { sawSkills = true } - if kv == "PYTHONPATH="+filepath.Join(root, "house-style") { + if kv == "PYTHONPATH="+filepath.Join(root, "house-style")+string(os.PathListSeparator)+"/fixture/isolated-pydeps" { sawPath = true } } diff --git a/internal/skills/skills_test.go b/internal/skills/skills_test.go index 0e389ff..dd1d7fd 100644 --- a/internal/skills/skills_test.go +++ b/internal/skills/skills_test.go @@ -159,9 +159,13 @@ func TestHouseStylePython(t *testing.T) { t.Fatal("caller") } dir := filepath.Join(filepath.Dir(thisFile), "recipes", "house-style") + pythonPath := dir + if existing := os.Getenv("PYTHONPATH"); existing != "" { + pythonPath += string(os.PathListSeparator) + existing + } + t.Setenv("PYTHONPATH", pythonPath) cmd := exec.Command("python3", "-m", "unittest", "tests.test_housestyle") cmd.Dir = dir - cmd.Env = append(os.Environ(), "PYTHONPATH="+dir) out, err := cmd.CombinedOutput() if err != nil { t.Fatalf("housestyle tests: %v\n%s", err, out) -- 2.54.0