Repository navigation
feat(goal): integrate durable goals after permission policy review - #2141
new-Beginner wants to merge 8 commits into
Conversation
Make Host tool membership an explicit internal policy so the Goal authorization design can be reviewed independently of storage and UI. Preserve the legacy Plan and Goal deny path until its Host producers are supplied by the dependent feature. Keep risk, approval, path and tool-specific execution guards unchanged; cover the existing policy matrix and native Goal refusal. Refs vastsa#1995
Keep the complete Goal lifecycle, migration chain and user controls from the reviewed candidate while selecting the typed tool policy only after Host execution validation. This separates authority review from storage and interface implementation without changing the feature's behavior. Exclude process reports, screenshots and one-off previews from the new feature history. Retain executable acceptance fixtures and put generated evidence in isolated scratch directories instead of the source tree. Refs vastsa#1995
Keep the policy extraction behavior unchanged while retaining the newer\nsteering and background-job documentation. Point the existing compaction\ncontract test at the extracted allowlist instead of its former module. Refs vastsa#1995
Preserve the existing Goal lifecycle and current main steering behavior. Reconcile the independent v28 migration histories without discarding backups or renumbering the six Goal upgrade steps. Retain Pi 1.5 and its TypeBox entry point. Keep source-contract assertions and refresh only the stale test path and steering fixture needed for the combined implementation. Refs vastsa#1995
Validate the existing policy boundary against the current remote base.
Keep the dependent Goal candidate on the current remote base and repaired policy foundation without rewriting either published PR history.
Keep the pre-guidance tool interruption observable and reject any extra errors. Compare complete guided Write arguments without accessing an unknown value, preserving the stale-write regression and type safety.
Minimal CI/conflict repairHead: Causes and exact changes
Conflict files (17 distinct files)Import/catalog conflicts retain main's mention composition, background-job tools/steering and existing Goal tools/planning. Workspace configuration retains Pi 1.5 and the feature's existing exact Rollup exclusions; existing patches are unchanged. Tests retain isolated image migration and full-upgrade coverage. Documentation conflicts retain both sides' applicable entries/scenarios. Incorporating repaired A later conflicted only in the same ADR index and E2E document, not additional source files. Additional directly necessary repair paths: Verification actually run
Explicit local native limitationThe 6 local Windows failures also reproduce in the A/main-based candidate, in unchanged No refactor, new capability, permission relaxation, timeout/tolerance increase, assertion removal, dependency downgrade, force-push, or merge to main. Existing published heads remain ancestors. PR #1999 and the primary checkout were not modified. B still depends on A; the repaired A head is an ancestor of B. Both candidates contain base Current repaired-head CI (snapshot at posting)
Pending checks are not claimed as passing. This comment does not request automatic merge. |
The integrated prompt ingress reads the Host-authoritative turn mode. Provide that boundary response in the existing mention fixture and assert its exact binding, preserving every original mention assertion.
Final follow-up: all checks greenFinal head: The first repaired-head JS run revealed four failures in At the final commit:
The earlier disclosure of six local Windows native baseline failures remains unchanged; they were not hidden or patched, and both remote Rust gates passed. Both PRs are open/unmerged and conflict-free. No force-push, main merge, release/daily-app installation, PR #1999 change, or additional scope expansion. |
|
@Tioit-Wang 回应你在 #1999 原始审阅意见 中提出的「六段数据库升级、新接口和权限变化混在一起,以及过程材料不应进入主干」问题:这份 B 是依赖 #2140 的 Goal 功能实现,不绕过 A 的设计审阅。
当前 head |
|
感谢 @new-Beginner 对持久 Goal、claim/CAS、预算及幂等结算机制的原创贡献。经维护者明确授权,本功能已提炼为可自定义的模式/分阶段工作流,并通过 #2194 合入 main(181d11e0cc254b91067ee6d17f7846ed1745dc73)。合入提交保留了你的 Co-authored-by 署名,移植模块和 ADR 也注明了来源;没有重写或强推你的分支。本 PR 由 #2194 替代,因此关闭,原讨论和贡献记录保留。 |
The staged-mode redesign (vastsa#2194) kept the durable Goal engine but dropped several controls that vastsa#1999 / vastsa#2141 and issue vastsa#1995 asked for. This adds them back on top of the mode run engine: edit the objective and budget of an open run (modes.update, effective from the next claim), a per-run and a settings default Goal budget (goalBudget), Remove as distinct from Stop, a bounded closeout when a running turn is paused, and hiding the task dock while a Goal run is open. The closeout and Remove reach the running turn through a new sidecar notice (agent.modeTurnNotice); both are system-side and never fake a user message. A CompleteStage from a turn claimed for an edited objective is refused with MODE_INPUT_CHANGED, and the next turn is told the objective changed. All contract changes are additive. Refs vastsa#1995
Summary / 概要
这是按 #1999 维护者意见 拆出的 B:完整 Goal 功能,依赖 https://github.com/vastsa/PI-Desktop/pull/2140;请先审阅并合入 A 的权限基础,不单独越过它合并 B。原 #1999 保持打开、head 不变,未强推或自动合并。
两份 PR 怎样看
两份都面向官方
main。由于 A 的分支位于 fork,B 的 GitHub 主 diff 仍包含 A 的提交,不伪称平台已自动隐藏它。保留的功能与兼容性
从原 #1999 head
9b8dbd5f8aa938d157f6ee1a50a266bf8f342515导入,并纳入最新 main。逐文件对照合成输入:全部 apps/packages 代码不变,六段数据库迁移不变。Rust 生产差异仅为三处 typed permission 接线与其测试。从新交付中移出的材料
新分支历史仅有 A + B 两个提交,不带入原大 PR 的旧提交历史。排除六个 Goal 过程目录的 **108 个文件(含 91 个二进制文件)**及 4 个一次性预览/流程图脚本。原 PR、历史分支和本地原件保留。
真实自动测试、产品文档、ADRs 和验收场景保留。保留的四个 UI runner 只改输出目录,改到唯一
PI_SCRATCH_DIR子目录;断言、步骤、截止时间、容差和重试不变。没有新增图片、日志、数据库、构建产物或私有事故报告。没有新能力或无进展熔断器。Verification / 实际验证
基线 main:
078bc3061953a6f50eef0b4151e80207313c5e97;A:9320826b68462a500c3897c4ab4c6ff458b7d454;B:e66935f677d6e244cd75f5ef49edd39df9091032。数量存在重叠,不相加。
最终提交的真实隔离 Rust Host + Node sidecar + AgentHost 回环夹具均通过,无真实模型费用:
没有运行完整 Rust/Desktop 全平台套件、完整工作区 build:js、Linux/macOS 本地验证、新一轮 Electron UI E2E、付费模型或发布安装;未运行
verify:ui:*。界面代码与原候选逐文件相同,并运行上述组件/服务回归,不把历史截图当本轮新验证。额外的脚本未使用变量检查在原
render-goal-live-refinements.mjs和新候选都报告同样 6 个未调用 helper;保留原测试,不删断言来掩盖提示。其余五个相关脚本补充 lint 通过。完整仓库规定 lint 已通过。新 PR 的 CI 以当前 head checks 为准。UI reference / 界面参考
本拆分不改变原候选 UI;复用 #1999 的公开历史夹具供设计对照,不冒充当前 head 的新截图,不把图片放入本分支:
Requirement link / 需求关联
Refs #1995