AGC 随包资源 staging 归位:M1 单一声明与只读校验 + M2 入口接线(#519) #520
Open
suzmii
wants to merge 32 commits from
fix/agc-rust-staging-idempotency into master
pull from: fix/agc-rust-staging-idempotency
merge into: GenarrativeAI:master
GenarrativeAI:master
GenarrativeAI:refactor/remove-toolcall.jsonl-legacy
GenarrativeAI:opt/admin-sort-project
GenarrativeAI:feat/ui-editor-model-override
GenarrativeAI:fix/agc-release-gate-channel
GenarrativeAI:fix/dev-loopback-token-trust
GenarrativeAI:feat/tribo3d-integeration
GenarrativeAI:opt/test-compile-warning
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
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#520
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 "fix/agc-rust-staging-idempotency"
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?
关联 Issue:#519
已交付 M1(单一声明 + 准备步骤 + 只读校验)与 M2(入口接线 + 构建脚本退出写入)。方案与里程碑见
docs/technical/【技术方案】AGC随包资源staging归位-2026-09-26.md、docs/project-memory/plans/下的 M1/M2 规范与实施计划。M1:单一声明、准备步骤、只读校验
src-tauri/build_support/package-layout.json(Codex 三元表与组件白名单、上游候选路径、第三方声明来源、插件随包子目录与跳过规则、平台/feature 门槛、上游元数据期望值);Rust 侧由生成器产出编译期常量package-layout.generated.rs,门禁npm run agc:bundled-resources:check已进agc:typecheck链。scripts/prepare-bundled-resources.mjs:缓存 key = 布局版本 + 目标 + 上游 lockfileresolved/integrity;写临时目录后原子替换,命中缓存零写入,只替换本工具产物,失败即关闭并给出可执行提示。AGC_SKIP_RESOURCE_STAGING=1可只跑校验。M2:入口接线,构建脚本退出写入
start-tauri-dev.mjs在前端与配套后端就绪后、spawn Tauri CLI 之前调用准备步骤;build-release.mjs的runTauriBuild与既有stageRuntime并列调用,tauri build --no-bundle不强制 staging。origin:source由准备步骤写,build与外部工具链产物由构建脚本在产物生成后写;删除 codex 与插件白名单的写入分支及stage_plugin_file/copy_plugin_tree/copy_plugin_file。codex_package_metadata.rs因失去调用方删除;准备步骤改为同步实现,入口直接调用。验证(本机 macOS 实测)
cargo build --no-default-features×3resources/**快照(含 mtime)tauri dev真实 app(手工准备步骤 + 直接拉起)Rebuilding application0 次、Running DevCommand1 次、主 crate 编译 1 次(改造前 28+ 次重建),app 起来后持续处理项目package_layout36 passed、build-release39 passed、dev 入口 12 passedcheck-config、check:encoding(5103)、check:doc-index(228)、rustfmt、eslint、prettier、git diff --check全绿明确未完成(M3)
origin: build与libraryStaging);Windows 的构建新鲜度与打包一致性要在 M3 把这三处也归位后复验,.taurignore的 staging 条目同时保留到那时(提前删会在 Windows 上重新引入监听自触发)。npm run agc在本机被 SpacetimeDBPre-publish check(先 401 InvalidSignature、后 502 Bad Gateway,属既有本机环境问题)阻断,dev 侧改用等价探针取证。已知的既有失败(与本 PR 无关)
bash scripts/check-repository-ci.sh origin/master失败于scripts/git-hooks.test.mjs:246「hook fixtures do not mutate the calling linked worktree or its index」;在干净的origin/master独立 worktree 上复现同样失败。WIP: AGC dev 客户端 sccache 阻断修复与随包资源 staging 归位方案to AGC 随包资源 staging 归位:M1 单一声明与只读校验 + M2 入口接线(#519)suzmii referenced this pull request2026-09-30 11:51:47 +08:00
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.