WeKnora/internal/application/service
nullptr-error e39277a75e
feat(sandbox): add tenant-configurable network policy (#2995)
* feat(sandbox): add the tenant network policy with its secrets and validation

Administrators need control over sandbox network access, so a named sandbox
config gains a network policy block. It lives inside the existing config JSONB,
so there is no schema change and old rows read back as the zero value.

Both booleans are phrased so that the zero value IS the intended default --
outbound open, inbound closed. That makes "no network block" and "explicitly
saved defaults" provably the same thing, and avoids a tri-state pointer where
nil would have to mean "allowed" for egress and "closed" for ingress.

Injected header values are credentials, so they ride the encrypt-at-rest and
mask-on-read path EnvVars already uses instead of a parallel mechanism. One
CloneWithSecrets traversal serves encrypt, decrypt and mask so the three
directions cannot disagree about which fields are secret.

Validation runs at save time because the alternative is failing at
sandbox-create time, where the admin no longer has the form in front of them.
It rejects both what a provider would refuse and what a provider would accept
without doing what the admin meant -- a domain allowlist with no deny-all
fallback still leaves every unresolved destination reachable.

* feat(sandbox): apply the network policy on both providers, persist the inbound token

Resolve the stored policy into one fully specified provider-neutral policy so
that nothing downstream re-derives a default. Both booleans come out non-nil on
every path, including the nil-tenant one, because a partially specified policy
would let the adapters fall back to their providers' more permissive defaults.
The three inversions (deny-egress to allow-internet, public-inbound, rule-deny
to rule-allow) happen in exactly one place.

Every sandbox-creating path carries it, so sessions, skill installs and the
deep connectivity check all run under the same config's policy rather than
each wiring its own.

Inbound access defaults to CLOSED, deliberately stricter than either
provider's own default: a sandbox URL reachable by anyone who learns the ID is
not a reasonable default for a tenant's workspace. Closing it makes the
provider issue a per-sandbox traffic token, and only at create time -- so the
token is stored with the session binding and replayed through Connect on every
reconnect. Without that, a sandbox that was paused on TTL or rebound after a
restart would answer 403 on every exec and file read, and 403 classifies as an
authentication error rather than NotFound, so the binding would never be
replaced and the session would stay wedged.

Connect therefore takes a request struct instead of a bare ID, which gives the
token a single documented way in rather than implicit state inside an adapter.

Metadata-based recovery is the one reconnect path with no binding to read the
token from. Rather than adopt a sandbox that would be permanently 403, it is
deleted and replaced -- but only for providers that have the credential at
all, since Docker has no inbound token and its containers are still adoptable.

go-e2b keeps the token and never sends it, so for E2B the data-plane
RoundTripper attaches the header from a process-local registry. Cube's SDK
already does this itself.

* fix(sandbox): classify data-plane traffic by authority shape, not the configured domain

isDataPlane suffix-matched the configured sandbox domain, which was wrong in
both directions. Both required a configured proxy_url, so E2B Cloud's default
usage was unaffected; the affected deployments are exactly the self-hosted and
E2B-compatible ones the gateway exists for.

A configured gateway could be silently ignored. sandbox_domain is optional for
E2B -- MissingRequiredFields asks only for api_key and template_id -- and with
it empty the check returned false for everything. The general form is worse
than the empty case: go-e2b's envdBaseURL prefers the domain the control plane
reported over the client-wide one, so the authority actually dialled need not
appear in the config at all. The failure is quiet whenever public DNS happens
to resolve the sandbox domain, and the operator believes traffic is passing
through a gateway that never sees it.

Control-plane calls could be sent to the gateway. E2B's own defaults put the
API host under the sandbox domain (api.e2b.app beneath e2b.app), so the suffix
match classified every Create, Connect and List as data-plane traffic. That
is loud where the gateway does not serve the API, but where it proxies both
planes it succeeds while downgrading an X-API-Key request to plaintext for an
http:// gateway. Cube was immune to the first problem, since it requires both
fields, but not to this one.

Classify on the "<port>-<sandboxID>.<domain>" shape both SDKs generate, using
the SandboxIDFromDataPlaneHost helper that token injection on the very same
request already relies on -- so routing and injection now agree by
construction instead of applying two different rules. That helper exists
precisely because the configured domain is unreliable here; it was simply
never used for the routing half.

The control host stays as an explicit exclusion. The shape test already
rejects api.<domain>, so this only covers an API host that itself wears the
shape, such as 8080-api.example.com.

One existing assertion was replaced rather than kept: the E2B pool test proved
that the Cube fields were ignored by asserting a cube.app authority was not
data-plane traffic, which tested the domain matching rather than the field
selection. It now asserts the transport dials the E2B gateway address and not
the Cube one.

* feat(sandbox): add the network policy editor to the sandbox config drawer

The policy sits in the runtime step, directly under the settings it
constrains, rather than in a step of its own. The existing execution timeouts
were compressed into a two-column grid to make room, keeping each field's own
label and its own tip -- the reason they were one per row was that three
unlabelled numbers sharing a footnote gave no clue which one you were editing,
and two columns with per-field tips does not regress that.

Provider-specific sections are shown only for the backend that has them: the
Cube L7 rule cards, E2B's per-host header transforms, and for Docker just the
bridge/none selector, since Docker can only express the overall switch.

Injected header values are write-only. A stored one shows as configured and is
preserved when the input is left blank, which is how env-var secrets already
behave. Renaming a rule or a header is the case worth care: the merge indexes
credentials on the rule-and-header pair, so a rename means the old value can no
longer be recovered. One helper decides both the placeholder text and whether
the payload re-attaches the value, so the form cannot claim a credential is
kept while the save blanks it.

The add buttons use keys of their own instead of reusing the env-var table's
"add variable", which read wrongly under a list of network destinations and
which the i18n key check cannot catch, since the key exists in every bundle.

* docs(sandbox): document the network policy and its inbound default change

The existing network bullet described the pre-feature state -- both providers
open by default, tunable only through the neutral policy at create time --
which is no longer true of the defaults or of the admin-facing surface.

Three things needed writing down rather than restating.

The inbound default flips from publicly reachable to credential-required. A
deployment that relies on a browser or an external service reaching a sandbox
port directly, rather than going through WeKnora, has to opt back in on that
config.

The binding store now holds a bearer credential in plaintext. Leaving it
unencrypted was a deliberate trade -- per-reconnect crypto on the hot path
against Redis's own access control -- and the trade is only sound if the
requirement is actually stated, along with the code-side constraint it depends
on: a binding or a handle is never logged whole, only the sandbox ID and
whether a credential is present.

On binding loss, a closed-inbound Cube or E2B config no longer adopts its old
sandbox by metadata. The token went with the binding and the provider will not
reissue it, so adoption would produce a session that answers 403 on every
data-plane call with no way back. The sandbox is deleted and rebuilt, which
costs the /workspace scratch. Docker has no such credential and still adopts.

* fix(sandbox): fail closed when a closed-inbound create has no traffic token

A Cube/E2B sandbox created without the inbound token would be bound anyway,
then 403 on every data-plane call as an unreplaceable authentication error.
Refuse the create, destroy the sandbox, and stop Docker from persisting
inbound/egress radios it cannot honour. Canonicalize IPv4 /0 deny-all onto
0.0.0.0/0 and reject CR/LF in injected header names and values.

* fix(sandbox): satisfy pre-push lint on the network policy files

Unexport the data-plane host parser, drop file-level package docs that
revive rejected, and lowercase error-string prefixes that staticcheck
ST1005 treats as capitalized English.

* fix(sandbox): persist rotated inbound tokens and stop misreporting restricted egress

Connect can reissue the traffic token after pause/resume; write it back onto
the binding so a restart does not restore a stale credential that 403s and
cannot be replaced. Restore the volume-support i18n key, map Docker
network_mode=none onto deny-egress, inject the E2B inbound header without a
gateway pool, and fold header names when merging redacted secrets.

---------

Co-authored-by: hailongzhao <hailongzhao@tencent.com>
Co-authored-by: wizardchen <wizardchen@tencent.com>
2026-09-03 10:49:46 +08:00
..
chat_pipeline feat(chat): keep prompt prefixes stable and send provider cache markers 2026-09-03 00:45:52 +08:00
file fix(s3): disable optional checksums for compatible endpoints 2026-08-31 12:25:33 +08:00
memory feat(memory): introduce long-term memory feature with i18n updates 2026-08-13 18:00:02 +08:00
metric feat(memory): add cross-session long-term memory 2026-08-13 18:00:02 +08:00
retriever feat(memory): add cross-session long-term memory 2026-08-13 18:00:02 +08:00
agent_history.go fix(agent): keep skill-script stdout on failure for the model and UI 2026-08-28 15:05:42 +08:00
agent_history_test.go fix(agent): keep skill-script stdout on failure for the model and UI 2026-08-28 15:05:42 +08:00
agent_memory_config_test.go feat(agent): write workspace scripts and run them with installed skills 2026-08-29 22:45:18 +08:00
agent_memory_tool_test.go feat(memory): introduce long-term memory feature with i18n updates 2026-08-13 18:00:02 +08:00
agent_rerank_requirement_test.go feat(agent): enforce model readiness and polish selector UX 2026-06-25 23:33:39 +08:00
agent_service.go feat(agent): keep long sandbox turns from truncating, overflowing, or rewriting files 2026-09-02 22:09:09 +08:00
agent_service_install_shell_test.go refactor(skills): introduce write_skill_file and edit_skill_file tools for skill directory management 2026-09-02 15:08:05 +08:00
agent_service_scope_test.go fix(agent): 共享知识库在 runtime_context 中 doc_count 为 0 2026-08-12 15:55:51 +08:00
agent_service_shell_test.go feat(sandbox): remove the Local host-process backend 2026-08-26 17:48:21 +08:00
agent_service_skill_bundle_test.go refactor(skills): improve skill bundle size handling and error management 2026-09-02 15:08:05 +08:00
agent_service_test.go feat(agent): keep long sandbox turns from truncating, overflowing, or rewriting files 2026-09-02 22:09:09 +08:00
agent_service_user_env_test.go feat(sandbox): inject per-user and workspace skill env vars at execution 2026-08-27 14:32:00 +08:00
agent_share.go fix(i18n): 修复内置智能体名称与描述不随界面语言切换的问题 (#2828) 2026-08-27 11:53:45 +08:00
agent_share_runtime_test.go fix(i18n): 修复内置智能体名称与描述不随界面语言切换的问题 (#2828) 2026-08-27 11:53:45 +08:00
artifact_collector.go fix(sandbox): record product-level Langfuse spans and detach idle sweeps 2026-08-31 19:42:32 +08:00
artifact_collector_store.go feat(sandbox) (#2301) 2026-08-10 21:28:20 +08:00
artifact_collector_test.go feat(agent): preview skill artifacts and verify installs without running them (#2823) 2026-08-27 10:30:32 +08:00
audit_log.go fix(audit_log): prevent deadlock in Stop() when Start() is never called 2026-05-18 17:28:58 +08:00
audit_log_retention.go fix(audit_log): prevent deadlock in Stop() when Start() is never called 2026-05-18 17:28:58 +08:00
audit_log_retention_test.go fix(audit_log): prevent deadlock in Stop() when Start() is never called 2026-05-18 17:28:58 +08:00
audit_log_test.go feat(rbac): per-tenant audit log for RBAC events (PR 6, #1303) 2026-05-18 17:28:58 +08:00
chunk.go fix(agent): exclude disabled FAQ entries 2026-07-29 14:40:54 +08:00
chunk_edit_parent_test.go fix(chunks): retain questions across content edits 2026-07-28 20:23:48 +08:00
custom_agent.go fix(i18n): 修复内置智能体名称与描述不随界面语言切换的问题 (#2828) 2026-08-27 11:53:45 +08:00
custom_agent_api_key_scope_test.go feat(agent): enhance suggested questions API with tag scopes 2026-07-17 10:19:43 +08:00
custom_agent_suggestion_limit_test.go fix(agent): honor suggested-questions limit parameter 2026-07-24 10:46:53 +08:00
custom_agent_suggestion_scope_test.go feat(agent): enhance suggested questions API with tag scopes 2026-07-17 10:19:43 +08:00
dataset.go init commit 2025-08-05 15:08:07 +08:00
datasource_delete_sqlite_test.go fix: 修复 SQLite 下删除 DataSource 失败 2026-07-31 11:00:47 +08:00
datasource_result_cap_test.go fix(feishu): resilient large-wiki sync — retry, streaming resume, failure visibility 2026-07-21 16:14:22 +08:00
datasource_service.go fix(datasource): perform real sync deletions scoped per data source (#2690) 2026-08-13 19:52:44 +08:00
datasource_service_test.go fix(datasource): perform real sync deletions scoped per data source (#2690) 2026-08-13 19:52:44 +08:00
datasource_stream_test.go fix(datasource): perform real sync deletions scoped per data source (#2690) 2026-08-13 19:52:44 +08:00
datasource_sweep_wiring_test.go fix(datasource): perform real sync deletions scoped per data source (#2690) 2026-08-13 19:52:44 +08:00
embed_channel.go fix(agent): honor suggested-questions limit parameter 2026-07-24 10:46:53 +08:00
embed_channel_chunk_test.go feat(embed): add backend embed channels with auth and rate limiting (#1657) 2026-06-12 23:10:39 +08:00
embed_channel_public_config_test.go refactor: remove Neo4j-based conversation memory feature 2026-07-18 23:41:48 +08:00
embed_channel_update_test.go refactor: remove Neo4j-based conversation memory feature 2026-07-18 23:41:48 +08:00
embed_session.go feat(embed): add backend embed channels with auth and rate limiting (#1657) 2026-06-12 23:10:39 +08:00
embed_session_test.go feat(embed): add backend embed channels with auth and rate limiting (#1657) 2026-06-12 23:10:39 +08:00
embed_webhook.go fix(security): harden outbound requests and file previews 2026-07-02 19:15:46 +08:00
embed_webhook_test.go fix(security): harden outbound requests and file previews 2026-07-02 19:15:46 +08:00
evaluation.go fix(evaluation): fix retrieval metrics by mapping chunks back to passage IDs 2026-07-31 11:05:13 +08:00
extract.go fix(data-analysis): 修复 Excel 表格摘要丢失样本数据 2026-08-13 11:18:08 +08:00
extract_data_table_summary_test.go fix(data-analysis): 修复 Excel 表格摘要丢失样本数据 2026-08-13 11:18:08 +08:00
fallback_messages_test.go refactor(agent): introduce modelcontext registry and fix handle-codec bugs 2026-07-27 11:05:43 +08:00
faq_clone_sync.go feat(knowledge): enhance FAQ export functionality 2026-07-23 10:50:32 +08:00
graph.go fix(knowledge): stitch chunks by text overlap, not by position 2026-05-30 17:53:47 +08:00
image_multimodal.go fix: retry document summaries before fallback 2026-08-05 19:29:32 +08:00
image_multimodal_orphan_test.go feat(tests): enhance image multimodal service tests and runtime task handling 2026-07-14 15:38:06 +08:00
image_multimodal_prompt_test.go Add instruction fields to knowledge base configuration 2026-07-13 12:16:19 +08:00
kb_activity.go Remove redundant Wiki operation log 2026-07-28 11:18:33 +08:00
kb_activity_test.go Remove redundant Wiki operation log 2026-07-28 11:18:33 +08:00
kbshare.go feat(knowledge): add scoped activity audit trail 2026-07-23 10:50:32 +08:00
knowledge.go feat: support editing document summaries (#2752) 2026-08-20 14:54:53 +08:00
knowledge_auto_tag.go fix(knowledge): harden auto-tagging and let it respect manual tags 2026-08-07 15:35:58 +08:00
knowledge_auto_tag_test.go fix(knowledge): harden auto-tagging and let it respect manual tags 2026-08-07 15:35:58 +08:00
knowledge_batch_reparse_test.go fix(knowledge): surface batch reparse failures 2026-07-31 19:06:16 +08:00
knowledge_clone_image_test.go fix(knowledge): copy embedded chunk images into exports namespace 2026-07-22 15:27:11 +08:00
knowledge_clone_move.go fix(wiki): ensure prompt language is always resolved 2026-08-05 16:14:50 +08:00
knowledge_content_binding_test.go feat(agent): preview skill artifacts and verify installs without running them (#2823) 2026-08-27 10:30:32 +08:00
knowledge_create.go feat(agent): preview skill artifacts and verify installs without running them (#2823) 2026-08-27 10:30:32 +08:00
knowledge_create_folder_test.go feat(knowledge): store folder path for folder uploads and expose folder tree API 2026-08-04 20:45:29 +08:00
knowledge_create_test.go fix(storage): allow image uploads to use file service fallback 2026-07-29 11:36:24 +08:00
knowledge_delete.go feat(agent): preview skill artifacts and verify installs without running them (#2823) 2026-08-27 10:30:32 +08:00
knowledge_delete_test.go fix(knowledge): clean bound vector stores in batch delete 2026-07-27 11:32:30 +08:00
knowledge_faq.go fix(faq): prevent duplicate entries when a create is retried 2026-08-05 17:05:51 +08:00
knowledge_faq_create_guard.go fix(faq): prevent duplicate entries when a create is retried 2026-08-05 17:05:51 +08:00
knowledge_faq_create_guard_test.go fix(faq): prevent duplicate entries when a create is retried 2026-08-05 17:05:51 +08:00
knowledge_faq_import.go feat(knowledge): enhance FAQ export functionality 2026-07-23 10:50:32 +08:00
knowledge_folder_move_test.go feat(knowledge): browse folders like a file manager and allow re-filing 2026-08-04 20:45:29 +08:00
knowledge_housekeeping.go fix(wiki): stop housekeeping from force-failing documents with durable Wiki backlog 2026-08-20 19:36:15 +08:00
knowledge_housekeeping_test.go fix(wiki): stop housekeeping from force-failing documents with durable Wiki backlog 2026-08-20 19:36:15 +08:00
knowledge_image_cleanup_test.go fix(knowledge): delete extracted images from storage when knowledge is removed 2026-04-02 12:04:04 +08:00
knowledge_index_content.go refactor(knowledge): keep metadata document scoped 2026-07-28 20:23:48 +08:00
knowledge_index_content_test.go fix(knowledge): enqueue stale summary refreshes 2026-07-28 20:23:48 +08:00
knowledge_manual_test.go fix: sanitize tab chars and avoid double .md extension in manual download filename 2026-03-16 18:18:23 +08:00
knowledge_move_gate_test.go fix: reject cross-store reuse_vectors knowledge move 2026-06-05 15:00:41 +08:00
knowledge_move_wiki_test.go feat(memory): add cross-session long-term memory 2026-08-13 18:00:02 +08:00
knowledge_owner_chain_test.go feat(rbac): per-KB ownership for knowledge / chunks / wiki pages (#1303) 2026-05-18 17:28:58 +08:00
knowledge_post_process.go fix(knowledge): address auto-tag review findings 2026-08-07 15:01:01 +08:00
knowledge_post_process_trace_test.go fix: correct graph and multimodal processing traces 2026-07-22 17:38:28 +08:00
knowledge_post_process_wiki_enqueue_test.go fix(wiki): prevent finalizing stalls on enqueue failure 2026-07-28 20:54:48 +08:00
knowledge_process.go fix(markdown): sanitize invalid UTF-8 and NUL bytes 2026-08-31 12:24:35 +08:00
knowledge_process_config.go refactor(knowledge): make the supported import extension set the single gate 2026-07-31 13:46:56 +08:00
knowledge_process_config_test.go refactor(knowledge): make the supported import extension set the single gate 2026-07-31 13:46:56 +08:00
knowledge_process_parent_child_test.go fix(chunking): preserve parent-child text child embeddings (#2680) 2026-08-13 11:20:03 +08:00
knowledge_process_status_test.go fix(knowledge): clear stale error_message on the remaining reprocess paths 2026-08-03 20:14:09 +08:00
knowledge_reparse_test.go fix(knowledge): clear stale errors on reparse 2026-07-28 20:44:34 +08:00
knowledge_resource_release_test.go feat(agent): preview skill artifacts and verify installs without running them (#2823) 2026-08-27 10:30:32 +08:00
knowledge_shared_access_test.go feat(rbac): lift org membership from per-user to per-tenant (Plan 3, #1303) 2026-05-18 17:28:58 +08:00
knowledge_span_tracker.go fix: correct graph and multimodal processing traces 2026-07-22 17:38:28 +08:00
knowledge_span_tracker_test.go fix(knowledge): enqueue stale summary refreshes 2026-07-28 20:23:48 +08:00
knowledge_storage_config_test.go fix(storage): merge tos/s3/oss/ks3 tenant configs in buildStorageConfig (#1117) 2026-05-06 17:09:42 +08:00
knowledge_summary_reconstruction_test.go fix(summary): preserve rows across table chunks / 修复表格分块摘要丢行 2026-08-05 13:12:59 +08:00
knowledge_summary_refresh.go fix(wiki): ensure prompt language is always resolved 2026-08-05 16:14:50 +08:00
knowledge_summary_refresh_test.go fix(knowledge): harden summary refresh after review feedback 2026-07-28 20:23:48 +08:00
knowledge_summary_sort_test.go fix(knowledge): harden summary refresh after review feedback 2026-07-28 20:23:48 +08:00
knowledge_summary_stale_test.go fix(knowledge): harden summary refresh after review feedback 2026-07-28 20:23:48 +08:00
knowledge_summary_test.go fix: retry document summaries before fallback 2026-08-05 19:29:32 +08:00
knowledge_task_options.go feat(worker): replace aggregate asynq concurrency with per-pool governance 2026-07-13 15:51:06 +08:00
knowledge_task_options_test.go feat(worker): replace aggregate asynq concurrency with per-pool governance 2026-07-13 15:51:06 +08:00
knowledge_update_test.go feat: support editing document summaries (#2752) 2026-08-20 14:54:53 +08:00
knowledge_util.go refactor(knowledge): make the supported import extension set the single gate 2026-07-31 13:46:56 +08:00
knowledge_util_filetype_test.go refactor(knowledge): make the supported import extension set the single gate 2026-07-31 13:46:56 +08:00
knowledge_util_ssrf_test.go fix(security): harden outbound URL SSRF protection (#2626) 2026-08-10 13:24:14 +08:00
knowledgebase.go feat(agent): preview skill artifacts and verify installs without running them (#2823) 2026-08-27 10:30:32 +08:00
knowledgebase_delete_datasource_test.go fix(knowledgebase): delete data sources when knowledge base is removed 2026-06-23 17:30:38 +08:00
knowledgebase_pr3_test.go fix(models): show usage details when deletion is blocked (#2975) 2026-09-02 17:20:37 +08:00
knowledgebase_search.go Fix/hybrid search match count normalization (#2750) 2026-08-20 11:36:38 +08:00
knowledgebase_search_budget_test.go fix(retriever): rebuild a missing vector store engine on demand 2026-07-29 12:25:18 +08:00
knowledgebase_search_fanout.go feat(search): fan-out KB retrieval across bound vector stores 2026-05-20 22:25:39 +08:00
knowledgebase_search_fanout_test.go fix(retriever): rebuild a missing vector store engine on demand 2026-07-29 12:25:18 +08:00
knowledgebase_search_faq.go Fix/hybrid search match count normalization (#2750) 2026-08-20 11:36:38 +08:00
knowledgebase_search_fusion.go feat(retrieval): configurable RRF parameters per tenant 2026-05-06 17:17:07 +08:00
knowledgebase_search_matchcount_test.go Fix/hybrid search match count normalization (#2750) 2026-08-20 11:36:38 +08:00
knowledgebase_search_results.go chore(types): add internal only ContentRevision to types.SearchResult 2026-08-06 12:14:25 +08:00
knowledgebase_search_results_edit_test.go fix(agent): exclude disabled FAQ entries 2026-07-29 14:40:54 +08:00
knowledgebase_search_shared.go feat(rbac): lift org membership from per-user to per-tenant (Plan 3, #1303) 2026-05-18 17:28:58 +08:00
knowledgebase_search_storegroup.go fix(retriever): rebuild a missing vector store engine on demand 2026-07-29 12:25:18 +08:00
knowledgebase_task_cancel_test.go fix(kb): retry KB delete when engine resolution is deferred 2026-07-29 12:25:18 +08:00
mcp_service.go fix(mcp): preserve omitted service update fields 2026-08-10 19:14:21 +08:00
mcp_service_test.go fix(test): use resolvable URLs in MCP service update test 2026-08-10 19:25:25 +08:00
mcp_tool_approval_service.go feat(agent): human-in-the-loop approval for MCP tool calls (#1173) 2026-05-10 22:57:12 +08:00
message.go feat(memory): add cross-session long-term memory 2026-08-13 18:00:02 +08:00
message_suggestion.go fix(observability): nest follow-up completions under the chat trace 2026-08-31 19:42:32 +08:00
message_suggestion_test.go fix(agent): ground follow-up suggestions and preserve KB scope on click 2026-07-15 19:16:53 +08:00
metric_hook.go fix(evaluation): fix retrieval metrics by mapping chunks back to passage IDs 2026-07-31 11:05:13 +08:00
model.go fix(models): show usage details when deletion is blocked (#2975) 2026-09-02 17:20:37 +08:00
model_builtin_management_test.go feat(models): let system admins edit builtin model config 2026-07-14 15:56:02 +08:00
model_delete_test.go fix(models): show usage details when deletion is blocked (#2975) 2026-09-02 17:20:37 +08:00
ocr_sanitizer.go feat(memory): add cross-session long-term memory 2026-08-13 18:00:02 +08:00
ocr_sanitizer_test.go feat(memory): add cross-session long-term memory 2026-08-13 18:00:02 +08:00
organization.go feat(memory): add cross-session long-term memory 2026-08-13 18:00:02 +08:00
parser_url_security.go fix(security): harden outbound URL SSRF protection (#2626) 2026-08-10 13:24:14 +08:00
parser_url_security_test.go fix(security): harden outbound URL SSRF protection (#2626) 2026-08-10 13:24:14 +08:00
password_policy.go feat: support complex password (#2929) 2026-09-01 11:50:10 +08:00
password_policy_test.go feat: support complex password (#2929) 2026-09-01 11:50:10 +08:00
resource.go feat(agent): preview skill artifacts and verify installs without running them (#2823) 2026-08-27 10:30:32 +08:00
resource_test.go feat(agent): preview skill artifacts and verify installs without running them (#2823) 2026-08-27 10:30:32 +08:00
session.go feat(sandbox): remove the Local host-process backend 2026-08-26 17:48:21 +08:00
session_agent_qa.go feat(agent): keep long sandbox turns from truncating, overflowing, or rewriting files 2026-09-02 22:09:09 +08:00
session_agent_qa_scope_test.go fix(skill): @mention 不再收窄技能白名单 2026-09-02 15:32:20 +08:00
session_attachment_staging.go feat(agent): write workspace scripts and run them with installed skills 2026-08-29 22:45:18 +08:00
session_attachment_staging_test.go feat(agent): write workspace scripts and run them with installed skills 2026-08-29 22:45:18 +08:00
session_knowledge_qa.go feat(memory): add cross-session long-term memory 2026-08-13 18:00:02 +08:00
session_knowledge_qa_test.go fix(wiki): fall back to a knowledge QA model 2026-08-31 12:28:37 +08:00
session_model_requirement_test.go fix(wiki): fall back to a knowledge QA model 2026-08-31 12:28:37 +08:00
session_qa_api_key_scope_test.go Refine scoped API key capabilities 2026-07-07 12:00:13 +08:00
session_qa_helpers.go fix(wiki): fall back to a knowledge QA model 2026-08-31 12:28:37 +08:00
session_sandbox_entry_test.go fix(sandbox): pin Docker sessions so skill artifacts get collected 2026-08-27 11:49:34 +08:00
session_sandbox_gating_test.go feat(sandbox): remove the Local host-process backend 2026-08-26 17:48:21 +08:00
session_sandbox_pin.go fix(sandbox): pin Docker sessions so skill artifacts get collected 2026-08-27 11:49:34 +08:00
session_sandbox_pin_test.go fix(sandbox): pin Docker sessions so skill artifacts get collected 2026-08-27 11:49:34 +08:00
session_sandbox_turn_test.go feat(sandbox): expose tenant skill management over HTTP and in the console (#2789) 2026-08-25 11:28:12 +08:00
session_tag_targets_test.go feat(agent): enhance suggested questions API with tag scopes 2026-07-17 10:19:43 +08:00
session_title_test.go fix(session): bound the auto-generated session title to fit the column 2026-08-20 15:35:34 +08:00
session_user_scope_test.go feat(sandbox): expose tenant skill management over HTTP and in the console (#2789) 2026-08-25 11:28:12 +08:00
skill_service.go feat: adapt preloaded skills to smart-reasoning agent 2026-02-04 20:08:49 +08:00
slug_fuzzy.go perf(wiki-ingest): scale to 4w-doc KBs + generic task queue / dead-letter 2026-05-10 00:01:06 +08:00
slug_fuzzy_test.go feat(memory): add cross-session long-term memory 2026-08-13 18:00:02 +08:00
storagebackend.go ui(sandbox): rename settings to skill sandbox and fix skill install (#2792) 2026-08-25 13:24:58 +08:00
storagebackend_test.go ui(sandbox): rename settings to skill sandbox and fix skill install (#2792) 2026-08-25 13:24:58 +08:00
system_setting.go feat: require opt-in for the Docker sandbox backend (#2936) 2026-09-01 15:42:28 +08:00
system_setting_validation_test.go feat(worker): replace aggregate asynq concurrency with per-pool governance 2026-07-13 15:51:06 +08:00
tag.go fix(retriever): rebuild a missing vector store engine on demand 2026-07-29 12:25:18 +08:00
temporary_document.go feat(agent): preview skill artifacts and verify installs without running them (#2823) 2026-08-27 10:30:32 +08:00
temporary_document_test.go feat(chat): add session-scoped temporary attachments with async parsing 2026-07-16 17:41:27 +08:00
tenant.go feat(storage): add multi-instance storage backends per workspace 2026-07-15 14:54:39 +08:00
tenant_api_key.go feat: support updating API key configuration 2026-08-12 11:43:03 +08:00
tenant_api_key_test.go feat: support updating API key configuration 2026-08-12 11:43:03 +08:00
tenant_invitation.go fix: reconcile direct invites after share-link join 2026-08-31 12:31:00 +08:00
tenant_invitation_test.go fix: reconcile direct invites after share-link join 2026-08-31 12:31:00 +08:00
tenant_member.go fix(tenant): clear stale home tenant after member removal 2026-08-07 14:35:10 +08:00
tenant_member_test.go fix(tenant): clear stale home tenant after member removal 2026-08-07 14:35:10 +08:00
tenant_sandbox_config.go feat(sandbox): add tenant-configurable network policy (#2995) 2026-09-03 10:49:46 +08:00
tenant_sandbox_config_test.go feat(sandbox): add tenant-configurable network policy (#2995) 2026-09-03 10:49:46 +08:00
tenant_sandbox_resolve.go feat(sandbox): 沙箱后端改为按空间配置,并补齐 E2B 模板与检测诊断 2026-08-11 15:42:02 +08:00
tenant_skill_admin.go fix(sandbox): make skill env capture fill blanks only 2026-08-27 14:32:00 +08:00
tenant_skill_admin_test.go fix(sandbox): make skill env capture fill blanks only 2026-08-27 14:32:00 +08:00
tenant_skill_bundle.go fix(skills): raise skill zip cap and keep uninstall progress stable 2026-09-02 15:08:05 +08:00
tenant_skill_bundle_test.go fix(skills): raise skill zip cap and keep uninstall progress stable 2026-09-02 15:08:05 +08:00
tenant_skill_catalog.go refactor(skills): enhance skill upload size management and error handling 2026-09-02 15:08:05 +08:00
tenant_skill_catalog_test.go refactor(skills): enhance skill upload size management and error handling 2026-09-02 15:08:05 +08:00
tenant_skill_effective.go feat(sandbox): expose tenant skill management over HTTP and in the console (#2789) 2026-08-25 11:28:12 +08:00
tenant_skill_effective_test.go feat(sandbox): remove the Local host-process backend 2026-08-26 17:48:21 +08:00
tenant_skill_env_declare.go fix(sandbox): allow skills to declare WEKNORA_* credential env vars 2026-08-27 16:55:09 +08:00
tenant_skill_env_declare_test.go fix(sandbox): allow skills to declare WEKNORA_* credential env vars 2026-08-27 16:55:09 +08:00
tenant_skill_files.go refactor(skills): enhance skill bundle management and catalog handling 2026-09-02 15:08:05 +08:00
tenant_skill_files_test.go refactor(skills): enhance skill bundle management and catalog handling 2026-09-02 15:08:05 +08:00
tenant_skill_install.go feat(agent): keep long sandbox turns from truncating, overflowing, or rewriting files 2026-09-02 22:09:09 +08:00
tenant_skill_install_test.go refactor(skills): introduce write_skill_file and edit_skill_file tools for skill directory management 2026-09-02 15:08:05 +08:00
tenant_skill_progress.go fix(sandbox): harden tenant skill install against races and credential rotation 2026-08-24 17:51:13 +08:00
tenant_skill_reaper.go refactor(skills): enhance skill bundle management and catalog handling 2026-09-02 15:08:05 +08:00
tenant_skill_reaper_test.go refactor(skills): enhance skill bundle management and catalog handling 2026-09-02 15:08:05 +08:00
tenant_skill_remove.go feat(skills): add StopSkill functionality to abort in-flight installs 2026-09-02 15:08:05 +08:00
tenant_skill_remove_test.go refactor(skills): enhance skill bundle management and catalog handling 2026-09-02 15:08:05 +08:00
tenant_skill_service.go feat(skills): add StopSkill functionality to abort in-flight installs 2026-09-02 15:08:05 +08:00
tenant_skill_service_test.go feat(sandbox): expose tenant skill management over HTTP and in the console (#2789) 2026-08-25 11:28:12 +08:00
tenant_skill_source.go fix(skills): install ClawHub skills.sh catalog pages via the install resolver 2026-09-02 16:22:55 +08:00
tenant_skill_source_test.go fix(skills): install ClawHub skills.sh catalog pages via the install resolver 2026-09-02 16:22:55 +08:00
tenant_skill_stale_sandbox_test.go feat(sandbox): expose tenant skill management over HTTP and in the console (#2789) 2026-08-25 11:28:12 +08:00
tenant_skill_stop.go feat(skills): add StopSkill functionality to abort in-flight installs 2026-09-02 15:08:05 +08:00
tenant_skill_stop_test.go feat(skills): add StopSkill functionality to abort in-flight installs 2026-09-02 15:08:05 +08:00
tenant_skill_transcript.go feat(agent): stream live +/- progress for sandbox write and edit 2026-09-02 23:36:58 +08:00
tenant_skill_transcript_test.go perf(skills): batch install verification and live installer progress (#2960) 2026-09-02 12:23:42 +08:00
tenant_skill_verify.go refactor(skills): introduce write_skill_file and edit_skill_file tools for skill directory management 2026-09-02 15:08:05 +08:00
tenant_skill_verify.py refactor(skills): introduce write_skill_file and edit_skill_file tools for skill directory management 2026-09-02 15:08:05 +08:00
tenant_skill_verify_python_test.go refactor(skills): introduce write_skill_file and edit_skill_file tools for skill directory management 2026-09-02 15:08:05 +08:00
tenant_storagebackend_test.go feat(storage): add multi-instance storage backends per workspace 2026-07-15 14:54:39 +08:00
user.go fix(auth): record last-active-tenant preference on SwitchTenant (#2922) 2026-09-01 15:43:40 +08:00
user_admin_create_test.go feat: support complex password (#2929) 2026-09-01 11:50:10 +08:00
user_auth_token_test.go feat: support complex password (#2929) 2026-09-01 11:50:10 +08:00
user_env.go ui(sandbox): redesign personal sandbox secrets settings 2026-08-27 16:55:09 +08:00
user_env_resolver.go feat(sandbox): inject per-user and workspace skill env vars at execution 2026-08-27 14:32:00 +08:00
user_env_resolver_test.go feat(sandbox): inject per-user and workspace skill env vars at execution 2026-08-27 14:32:00 +08:00
user_env_test.go ui(sandbox): redesign personal sandbox secrets settings 2026-08-27 16:55:09 +08:00
user_jwt_test.go fix(security): block refresh tokens as bearer and sandbox MCP uploads 2026-07-02 17:08:17 +08:00
user_oidc_security_test.go fix: close OIDC id_token verification gaps for explicit endpoints 2026-09-01 11:26:30 +08:00
user_oidc_verify_test.go fix: close OIDC id_token verification gaps for explicit endpoints 2026-09-01 11:26:30 +08:00
user_provisioning_test.go fix(tenant): clear stale home tenant after member removal 2026-08-07 14:35:10 +08:00
user_resource_favorite.go feat(favorites): implement user favorites and recents functionality 2026-05-18 17:28:58 +08:00
user_switch_tenant_test.go fix(auth): record last-active-tenant preference on SwitchTenant (#2922) 2026-09-01 15:43:40 +08:00
vectorstore.go fix: validate vector store connection addresses against SSRF policy 2026-06-04 15:26:56 +08:00
vectorstore_healthcheck.go fix(security): harden outbound URL SSRF protection (#2626) 2026-08-10 13:24:14 +08:00
vectorstore_healthcheck_ssrf_test.go fix(security): harden outbound URL SSRF protection (#2626) 2026-08-10 13:24:14 +08:00
vectorstore_opensearch_test.go feat(retriever): activate OpenSearch k-NN driver (PR 3 of 3) 2026-05-29 16:32:27 +08:00
vectorstore_ssrf_test.go fix: validate vector store connection addresses against SSRF policy 2026-06-04 15:26:56 +08:00
vectorstore_test.go fix(models): show usage details when deletion is blocked (#2975) 2026-09-02 17:20:37 +08:00
web_search.go refactor(terminology): rename user-facing tenant labels to workspace 2026-07-14 16:14:43 +08:00
web_search_provider.go feat: add Exa WebSearch (#2617) 2026-08-11 17:05:52 +08:00
web_search_provider_test.go feat: add Exa WebSearch (#2617) 2026-08-11 17:05:52 +08:00
web_search_state.go fix: update environment configuration for debugging and logging, enhance SQLite FTS5 table management, and improve API base URL handling 2026-04-11 18:51:16 +08:00
weknoracloud.go fix(security): harden outbound URL SSRF protection (#2626) 2026-08-10 13:24:14 +08:00
wiki_deleted_kb_guard_test.go fix(tasks): dequeue work for deleted knowledge bases 2026-07-23 12:17:14 +08:00
wiki_folder_prune_finalize_test.go feat(wiki): prune empty folders after document retract 2026-07-22 19:27:22 +08:00
wiki_ingest.go fix(wiki): prevent concurrent duplicate page identities (#2850) 2026-08-28 18:10:41 +08:00
wiki_ingest_batch.go fix(wiki): prevent concurrent duplicate page identities (#2850) 2026-08-28 18:10:41 +08:00
wiki_ingest_cite.go fix(wiki): prevent concurrent duplicate page identities (#2850) 2026-08-28 18:10:41 +08:00
wiki_ingest_cite_test.go refactor(agent): introduce modelcontext registry and fix handle-codec bugs 2026-07-27 11:05:43 +08:00
wiki_ingest_dedup.go fix(wiki): prevent concurrent duplicate page identities (#2850) 2026-08-28 18:10:41 +08:00
wiki_ingest_dedup_test.go fix(wiki): prevent concurrent duplicate page identities (#2850) 2026-08-28 18:10:41 +08:00
wiki_ingest_language_test.go fix(wiki): ensure prompt language is always resolved 2026-08-05 16:14:50 +08:00
wiki_ingest_retry_test.go perf(wiki): move ingest log to event table and index to on-demand API 2026-05-08 21:48:52 +08:00
wiki_ingest_taxonomy.go feat(wiki): implement folder management features in wiki API 2026-06-16 23:51:29 +08:00
wiki_ingest_taxonomy_test.go feat(memory): add cross-session long-term memory 2026-08-13 18:00:02 +08:00
wiki_ingest_test.go fix(wiki): set MaxTokens for generateWithTemplate LLM calls 2026-08-12 11:45:06 +08:00
wiki_linkify.go feat: Refactor cross-link injection logic for wiki pages 2026-04-22 21:18:09 +08:00
wiki_linkify_test.go feat: Refactor cross-link injection logic for wiki pages 2026-04-22 21:18:09 +08:00
wiki_lint.go Remove redundant Wiki operation log 2026-07-28 11:18:33 +08:00
wiki_page.go fix(wiki): prevent concurrent duplicate page identities (#2850) 2026-08-28 18:10:41 +08:00
wiki_page_revision_test.go feat(wiki): add page revision history with diff, revert, and manual editing 2026-07-27 15:03:24 +08:00
wiki_page_test.go fix(wiki): prevent concurrent duplicate page identities (#2850) 2026-08-28 18:10:41 +08:00
wiki_slug_handles.go refactor(agent): introduce modelcontext registry and fix handle-codec bugs 2026-07-27 11:05:43 +08:00
wiki_slug_handles_test.go refactor(agent): introduce modelcontext registry and fix handle-codec bugs 2026-07-27 11:05:43 +08:00