WIP: 重构 Direct 交付合同与租约机制 #608
Draft
lhk229
wants to merge 1 commits from
contract-lease-refactor into master
pull from: contract-lease-refactor
merge into: GenarrativeAI:master
GenarrativeAI:master
GenarrativeAI:fix/agc-composer-layout
GenarrativeAI:fix/agc-canvas-reference-insert
GenarrativeAI:fix/home-project-naming-async
GenarrativeAI:fix/ci-master-red
GenarrativeAI:feat/game-works-management
GenarrativeAI:feat/pricing-plan
GenarrativeAI:feat/play-count-with-cache
GenarrativeAI:feat/pricing-plan-limit
GenarrativeAI:codex/payment-service-20261003
GenarrativeAI:codex/profile-invite-gate-fix
GenarrativeAI:codex/profile-invite-entry
GenarrativeAI:feat/agc-ui-motion-ux
GenarrativeAI:feat/ui-editor-model-override
GenarrativeAI:fix/agc-release-gate-channel
GenarrativeAI:fix/dev-loopback-token-trust
GenarrativeAI:feat/tribo3d-integeration
GenarrativeAI:fix/api-timeout
GenarrativeAI:codex/admin-gray-game-publish
GenarrativeAI:codex/remove-agc-codex-restrictions
GenarrativeAI:feat/gptimage2to2.5
GenarrativeAI:backup/agc-macos-dualarch-node-runtime
GenarrativeAI:feat/Crt_Ws
GenarrativeAI:codex/preview-llm-router-config
GenarrativeAI:fix/stroke-width-regression-from-285
GenarrativeAI:agent-organize
GenarrativeAI:feat/game-agent-canvas-resource-workbench-v2
GenarrativeAI:feat/agc-new-workflow
GenarrativeAI:fix/agc-release-version-sync
GenarrativeAI:codex/shared-components-followup
GenarrativeAI:codex/game-agent-runtime-interaction-design
GenarrativeAI:feat/spine-sequence-export-v2
GenarrativeAI:codex/game-agent-run
GenarrativeAI:codex/ui-spritesheet-durable-transaction-latest
GenarrativeAI:feat/art-agent-more-tools
GenarrativeAI:codex/editor-canvas-null-source-repair
GenarrativeAI:hotfix/editor-layout-2mib
GenarrativeAI:codex/showcase
No Reviewers
Labels
Clear labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Breaking change that won't be backward compatible
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Priority
Critical
1
The priority is critical
Priority
High
2
The priority is high
Priority
Low
4
The priority is low
Priority
Medium
3
The priority is medium
Reviewed
Confirmed
1
Issue has been confirmed
Reviewed
Duplicate
2
This issue or pull request already exists
Reviewed
Invalid
3
Invalid issue
Reviewed
Won't Fix
3
This issue won't be fixed
Status
Abandoned
3
Somebody has started to work on this but abandoned work
Status
Blocked
1
Something is blocking this issue or pull request
Status
Need More Info
2
Feedback is required to reproduce issue or to continue work
No Label
Milestone
No items
No Milestone
Projects
Clear projects
No project
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: GenarrativeAI/Genarrative#608
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "contract-lease-refactor"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
当前 Direct 把交付合同作为操作准入条件,并在任意付费/执行失败后进入全局 Draining;一条无关的挂起命令可因此阻断后续代码编辑。本 PR 用于推进 #518、#529 的合同与租约机制重构。
当前仅提交草稿里程碑,运行时代码尚未修改,问题尚未修复。
工作范围:
docs/project-memory/plans/【里程碑】Direct合同与租约机制重构-2026-10-03.md。验证:
npm run check:doc-index、npm run check:encoding、git diff --cached --check通过。本次未运行运行时测试。关联 #518、#529;当前不关闭问题。
本次讨论关于租约机制的结论,作为后续实现方向:
合同方面:已识别 artifact/command 强制验收与 Agent 自身读取文件、判断命令结果的重叠。可选合同曾作为方向讨论,但是否保留新游戏等产品场景的强制交付检查、触发时机和工具形态尚未最终确定,需继续细化,不能把当前草稿视为已完成方案。
以上是已确认方向和明确的未决项;当前 PR 只有范围文档,尚未修改运行时实现。
This PR shall close #518 #529
合同机制的讨论结论更新:
目标是让合同跟随用户真实的游戏制作/交付请求,而不是由项目初始状态强加任务。此评论记录已确认方向;当前 PR 仍为 WIP,运行时尚未实现这些变更。
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.