vicfei
vicfei
The refactor PR implementing this proposal is up as #3150 — zero behavior change per path (the agent still multiplies in the position prior before its single clamp), with randomized...
重做版已提交:**#3533**(对 #3381 后的新文件布局重锚,方案与首轮 #3150 一致)。 - `searchutil.CompositeScoreRaw`(0.6/0.3/0.1+web_search 0.95,不 clamp——clamp 留在调用侧,因为 agent 要先乘位置先验)+ `PositionPrior`(两侧唯一行为差异,集中暴露)+ 泛型 `ApplyMMR`(增量形态,token sets 由调用方注入,返回选择+平均冗余供 chat 日志); - chat 保留并行分词与 pipeline 观测,agent 保留串行富化分词,三个一行委托与未用参数删除; - 位级对齐有测试钉死:两套旧公式作参考预言机的全矩阵 parity + 300...
Transparency update from further testing, so the record is complete: **Could not reproduce the answer-leak on stock main with fresh samples**: 9 short factual questions (mix of arithmetic / yes-no...
The fix is up as #3176: a conservative leak heuristic + question-derived fallback + never-answer few-shot prompt hardening, plus quote stripping in the sanitizer for the wrapping-quote defect observed first-hand...
在 upstream/main 上做了代码级核验,结论:**这是设计行为,不是缺陷**——您要的分享能力其实已经有了,入口在知识库设置里,不在侧栏菜单。证据链: 1. **「共享空间」菜单只对当前空间的 admin/owner 显示**,这是刻意设计:`frontend/src/stores/menu.ts:66-78`(注释原文:「共享空间 (organizations) 仅对当前空间的 admin / owner 暴露入口……后端 RBAC 才是权限的最终来源」)。后端口径一致:所有组织管理操作都是 `g.Admin()` 起,且服务层还要求「调用者空间是组织所有者」(`internal/router/routes_agent.go:97-130`)。 2. **邀请注册的用户确实不创建自己的空间**:`internal/handler/auth_register_by_invite.go:183`(`TenantProvisioningTenantless`,直接以被邀请的空间为家),成员角色由邀请单显式指定(`tenant_invitation.go:65`,role 为必填)。所以「成员级」用户看不到空间级共享入口是模型使然,不是丢功能。 3. **您描述的场景(部门成员建库后分享给部门同事)由 KB 级共享覆盖,且 Contributor 就能操作**:`POST /knowledge-bases/:id/shares` 的守卫是 `g.OwnedKBOrAdmin()`(`routes_agent.go:180-188`)——自己创建的 KB,在**知识库设置里直接分享到共享组织**即可,同事按...
Both guards from this issue are up as #3222: the catalog budget (full detail degrades to id-preserving single lines, hard ceiling with an omission note — 541-KB catalog drops ~666KB...
Confirmed on current main — the mechanism is exactly as reported: `GetSharedAgentForTenant` returns `ErrAgentShareNotFound` for a self-referential source (`sourceTenantID == callerTenant`, agent_share.go:466-468), and `resolveAgent` only falls back to the local...
Fix is up as #3249 — the self-referential selector normalizes to the absent selector at `resolveAgent` entry, so own agents resolve through the local path while the rejected-foreign-source guard stays...
I've verified the three culprits line-by-line against current `main` (the parser file is byte-identical to your pinned SHA) and have a layered fix plan before opening PRs. Your root-cause analysis...
PR-1 (postprocess gating) is up: #3283. Numeric-run debris stripping now requires the page to actually have vector figure clips, and page-number removal is gated on first/last-line position plus page-sequence value...