diff --git a/.agent-taskgraph/ROLES.md b/.agent-taskgraph/ROLES.md index ddc2db38..88c13d88 100644 --- a/.agent-taskgraph/ROLES.md +++ b/.agent-taskgraph/ROLES.md @@ -5,9 +5,9 @@ | Role ID | 名称 | 生命周期 | 状态 | 核心职责 | 当前 Goal | Session ID | 最后更新 | |---|---|---|---|---|---|---|---| | p91-game-designer | P9.1 游戏策划 | persistent | available | 六组合首局玩法、取舍、节奏和结果 | none | none | 2026-08-13 | -| p91-ux-visual-designer | P9.1 UX/视觉设计师 | persistent | available | 横屏页面、状态、中文因果表达与动效 | none | none | 2026-08-13 | +| p91-ux-visual-designer | P9.1 UX/视觉设计师 | persistent | reserved | 横屏页面、状态、中文因果表达与动效 | task:ABG-P9.1-VISUAL-SLICE | PENDING | 2026-08-13 | | p91-runtime-architect | P9.1 技术架构师 | persistent | available | 运行时拆分、API、状态所有权和迁移 | none | none | 2026-08-13 | -| p91-runtime-foundation-developer | 运行时基础开发 | persistent | available | 行为等价拆分与并行扩展边界 | PENDING | PENDING | 2026-08-13 | +| p91-runtime-foundation-developer | 运行时基础开发 | persistent | reserved | 行为等价拆分与并行扩展边界 | task:ABG-P9.1-RUNTIME-FOUNDATION | PENDING | 2026-08-13 | | p91-domain-developer | 领域逻辑开发 | persistent | available | 六组合领域状态和事务 | PENDING | PENDING | 2026-08-13 | | p91-ui-developer | Godot UI 开发 | persistent | available | P9.1 真实页面与反馈 | PENDING | PENDING | 2026-08-13 | | p91-test-developer | 测试与证据开发 | persistent | available | 矩阵、触摸、布局与捕获工具 | PENDING | PENDING | 2026-08-13 | diff --git a/.agent-taskgraph/STATUS.md b/.agent-taskgraph/STATUS.md index 352c649d..aab0b476 100644 --- a/.agent-taskgraph/STATUS.md +++ b/.agent-taskgraph/STATUS.md @@ -3,6 +3,10 @@ | 任务 ID | 标题 | 状态 | 负责人 | 轮次 | 最后更新 | 卡点 | |---|---|---|---|---|---|---| +| ABG-P9.1-RUNTIME-FOUNDATION | P9.1 behavior-equivalent runtime foundation extraction | inbox | p91-runtime-foundation-developer | 1 | now | preparing 0/1: session not created | + +| ABG-P9.1-VISUAL-SLICE | P9.1 representative first-battle visual slice | inbox | p91-ux-visual-designer | 1 | now | preparing 0/1: session not created | + ## 当前批次总结 - 批次:`abg-p9-1-continuous-development-01`。 diff --git a/.agent-taskgraph/manifests/ABG-P9.1-RUNTIME-FOUNDATION.json b/.agent-taskgraph/manifests/ABG-P9.1-RUNTIME-FOUNDATION.json new file mode 100644 index 00000000..c4ae585d --- /dev/null +++ b/.agent-taskgraph/manifests/ABG-P9.1-RUNTIME-FOUNDATION.json @@ -0,0 +1,50 @@ +{ + "task_id": "ABG-P9.1-RUNTIME-FOUNDATION", + "title": "P9.1 behavior-equivalent runtime foundation extraction", + "stage": "implementation-foundation", + "baseline": "0121015594b2da4b1c6e451cc8adeeeebb812320", + "branch": "agent/abg-p91-runtime-foundation", + "worktree": "/Users/wusumac/Documents/game/tmp/aetherbound-guild-worktrees/p91-runtime-foundation", + "frozen_spec": ".agent-taskgraph/spec.md revision p9.1-spec-r2; docs/runtime/PHASE9_1_ARBITRARY_PARTY_FIRST_SESSION_CONTRACT.md revision p9.1-contract-r1", + "graph_node": ".agent-taskgraph/graph.yaml#p91_runtime_foundation", + "context_revision": "p91-runtime-foundation-r1", + "context_mode": "deep", + "context_items": [ + {"path": "AGENTS.md", "revision": "0121015", "reason": "repository execution, evidence and release boundaries"}, + {"path": ".agent-taskgraph/PROJECT.md", "revision": "p9.1 profile", "reason": "confirmed runtime, model and write ownership"}, + {"path": ".agent-taskgraph/spec.md", "revision": "p9.1-spec-r2", "reason": "frozen stage topology and scope"}, + {"path": "docs/runtime/PHASE9_1_ARBITRARY_PARTY_FIRST_SESSION_CONTRACT.md", "revision": "p9.1-contract-r1", "reason": "reconciled foundation paths, APIs and exact regression gate"}, + {"path": "docs/runtime/p9_1/RUNTIME_ARCHITECTURE_SPEC.md", "revision": "7bc871d", "reason": "detailed extraction order and rollback criteria"}, + {"path": "runtime/main.gd", "revision": "41204ac product authority", "reason": "accepted monolithic runtime to extract behavior-equivalently"}, + {"path": "runtime/tests/", "revision": "P9.0R1-R10 accepted", "reason": "exact contract-listed regressions and facade seams"}, + {"path": "docs/runtime/PHASE9_0R10_PAIR_ADAPTATION_CONTRACT.md", "revision": "P9.0R10", "reason": "latest accepted product behavior boundary"} + ], + "role_id": "p91-runtime-foundation-developer", + "role_lifecycle": "persistent", + "role_responsibility": "Extract one authoritative runtime state, command, snapshot, clock, presenter and compatibility boundary without changing accepted P9.0 behavior", + "role_continuity": "first implementation Goal for the predeclared foundation role; fresh visible HAPI session", + "runtime_requested": {"runtime": "hapi", "flavor": "codex", "model": "gpt-5.6-sol", "effort": "xhigh", "permission": "yolo", "visibility": "visible"}, + "objective": "Behavior-equivalently extract the architect-defined P9.1 foundation from runtime/main.gd, keep one mutable source of truth, preserve the complete accepted P9.0R1-R10 surface, and leave stable disjoint APIs for later domain, UI and test workers.", + "needs": ["p91_spec_integration"], + "consumes": ["p9.1-contract-r1", "P9.0R10 fixed runtime source", "exact 26-script regression manifest"], + "produces": ["architect-defined foundation files and clean pushed foundation candidate"], + "writes": ["runtime/main.gd", "runtime/domain/p9_1/contracts.gd", "runtime/domain/p9_1/session_state.gd", "runtime/domain/p9_1/session_service.gd", "runtime/domain/p9_1/battle_fixture.gd", "runtime/presentation/", "runtime/ui/session_presenter.gd", "runtime/ui/widgets.gd", "runtime/compat/p9_0_root_facade.gd"], + "pass_route": "p91_domain_implementation", + "fail_route": "failed", + "max_attempts": 2, + "acceptance": [ + "[ ] Introduce exactly one authoritative FirstSessionState and FirstSessionService with immutable snapshots and atomic command results", + "[ ] Extract battle clock, animation, audio, feedback, presenter and widgets without changing accepted values, timing, pixels or input behavior", + "[ ] Keep main.gd as a thin RuntimeShell/facade and add no P9.1-only gameplay branch", + "[ ] Leave old run_state.gd and old p9_1_* tests unchanged and excluded from the foundation pass claim", + "[ ] Run the exact 26 contract-listed scripts serially with unique markers and strict diagnostics zero", + "[ ] Rerun the four named 844x390 presentation regressions and compare accepted behavior", + "[ ] Commit and push only the owned paths; worktree clean/upstream; no owned process remains" + ], + "frozen": [ + "Do not implement the six-pair P9.1 downstream gameplay matrix, new screens or new test expectations", + "Do not change assets, paid generation, product values, timing, copy, node names or accepted P9.0 assertions", + "Do not edit PMO TaskGraph files, checkpoint, ledger, packaging, devices, stores or release files" + ], + "estimate": "foundation extraction 4-6h; exact regression and presentation gate 1-2h; confidence medium" +} diff --git a/.agent-taskgraph/manifests/ABG-P9.1-VISUAL-SLICE.json b/.agent-taskgraph/manifests/ABG-P9.1-VISUAL-SLICE.json new file mode 100644 index 00000000..4d6b29c6 --- /dev/null +++ b/.agent-taskgraph/manifests/ABG-P9.1-VISUAL-SLICE.json @@ -0,0 +1,49 @@ +{ + "task_id": "ABG-P9.1-VISUAL-SLICE", + "title": "P9.1 representative first-battle visual slice", + "stage": "visual-production", + "baseline": "0121015594b2da4b1c6e451cc8adeeeebb812320", + "branch": "agent/abg-p91-visual-slice", + "worktree": "/Users/wusumac/Documents/game/tmp/aetherbound-guild-worktrees/p91-visual-slice", + "frozen_spec": ".agent-taskgraph/spec.md revision p9.1-spec-r2; docs/runtime/PHASE9_1_ARBITRARY_PARTY_FIRST_SESSION_CONTRACT.md revision p9.1-contract-r1", + "graph_node": ".agent-taskgraph/graph.yaml#p91_representative_visual_slice", + "context_revision": "p91-visual-slice-r1", + "context_mode": "balanced", + "context_items": [ + {"path": "AGENTS.md", "revision": "0121015", "reason": "art provenance, paid-call and originality boundaries"}, + {"path": ".agent-taskgraph/PROJECT.md", "revision": "p9.1 profile", "reason": "confirmed runtime and current paid image ceiling"}, + {"path": ".agent-taskgraph/spec.md", "revision": "p9.1-spec-r2", "reason": "frozen representative-slice scope"}, + {"path": "docs/runtime/PHASE9_1_ARBITRARY_PARTY_FIRST_SESSION_CONTRACT.md", "revision": "p9.1-contract-r1", "reason": "exact action chain, limits and evidence"}, + {"path": "docs/runtime/p9_1/UX_VISUAL_FLOW_SPEC.md", "revision": "25893dc", "reason": "844x390 composition, event language and required frames"}, + {"path": "docs/presentation/UI_AND_VISUAL_SYSTEM.md", "revision": "current", "reason": "accepted Japanese hand-painted visual system"}, + {"path": "runtime/assets/", "revision": "P9.0R10 accepted", "reason": "existing Recruit, battlefield, UI and VFX identity anchors"}, + {"path": "docs/prototype/generation/", "revision": "accepted source records only", "reason": "generation/provenance conventions; inspect only relevant families"} + ], + "role_id": "p91-ux-visual-designer", + "role_lifecycle": "persistent", + "role_responsibility": "Design and produce one play-size first-battle visual slice that makes formation, action, consequence and diagnosis readable", + "role_continuity": "reuse the P9.1 UX/visual role after expert spec integration, but start a fresh visible HAPI session and Goal", + "runtime_requested": {"runtime": "hapi", "flavor": "codex", "model": "gpt-5.6-sol", "effort": "xhigh", "permission": "yolo", "visibility": "visible"}, + "objective": "Graybox, generate only when needed, and hand off one representative 844x390 formation-review-to-first-diagnosis visual slice with authentic Japanese hand-painted game presentation, explicit layers and traceable generation records.", + "needs": ["p91_spec_integration"], + "consumes": ["p9.1-contract-r1", "UX visual flow", "accepted P9.0R3-R10 identity assets"], + "produces": ["docs/runtime/p9_1/visual_slice/"], + "writes": ["docs/runtime/p9_1/visual_slice/"], + "pass_route": "p91_runtime_integration", + "fail_route": "failed", + "max_attempts": 2, + "acceptance": [ + "[ ] Establish a play-size graybox and first/second/third focal priorities before any paid call", + "[ ] Cover formation review, approach/contact, profession response, damage/heal feedback and first causal result", + "[ ] Preserve the four accepted Recruit identities, landscape scale, original-member order and event readability", + "[ ] Use at most four paid image calls and USD 5 total including retries; record prompts, task IDs, returned cost and hashes", + "[ ] Provide editable layer/asset handoff and 844x390 previews; reject cropped, unreadable or identity-drifting outputs", + "[ ] Commit and push only docs/runtime/p9_1/visual_slice; no runtime integration or bulk asset generation" + ], + "frozen": [ + "Do not modify runtime source, tests, accepted runtime assets or PMO files", + "Do not generate audio/video, new character families, chapter assets, store media or more than the fixed paid ceiling", + "Do not copy commercial reference expression or claim Owner visual acceptance" + ], + "estimate": "graybox and prompt design 60m; up to four calls and postprocess 90m; handoff 45m; confidence medium-high" +} diff --git a/.agent-taskgraph/queue/inbox/ABG-P9.1-RUNTIME-FOUNDATION/context.md b/.agent-taskgraph/queue/inbox/ABG-P9.1-RUNTIME-FOUNDATION/context.md new file mode 100644 index 00000000..a1d12c00 --- /dev/null +++ b/.agent-taskgraph/queue/inbox/ABG-P9.1-RUNTIME-FOUNDATION/context.md @@ -0,0 +1,29 @@ +# Context Manifest: ABG-P9.1-RUNTIME-FOUNDATION + +> Task ID: `ABG-P9.1-RUNTIME-FOUNDATION` +> Revision: `p91-runtime-foundation-r1` +> Mode: `deep` +> Budget exception: `none` + +## 必须读取(默认不超过 8 项) + +| 路径或稳定引用 | Revision / 范围 | 为什么本 Goal 必须读 | +|---|---|---| +| `AGENTS.md` | 0121015 | repository execution, evidence and release boundaries | +| `.agent-taskgraph/PROJECT.md` | p9.1 profile | confirmed runtime, model and write ownership | +| `.agent-taskgraph/spec.md` | p9.1-spec-r2 | frozen stage topology and scope | +| `docs/runtime/PHASE9_1_ARBITRARY_PARTY_FIRST_SESSION_CONTRACT.md` | p9.1-contract-r1 | reconciled foundation paths, APIs and exact regression gate | +| `docs/runtime/p9_1/RUNTIME_ARCHITECTURE_SPEC.md` | 7bc871d | detailed extraction order and rollback criteria | +| `runtime/main.gd` | 41204ac product authority | accepted monolithic runtime to extract behavior-equivalently | +| `runtime/tests/` | P9.0R1-R10 accepted | exact contract-listed regressions and facade seams | +| `docs/runtime/PHASE9_0R10_PAIR_ADAPTATION_CONTRACT.md` | P9.0R10 | latest accepted product behavior boundary | + +## 按需检索(先搜索,再局部读取) + +| 路径/范围 | 触发条件 | 检索提示 | +|---|---|---| +| source tree | Goal 需要实现细节时 | 先 rg,再局部读取 | + +## 最近 Delta + +- 2026-08-13T01:31:53+00:00: structured pre-dispatch manifest created. diff --git a/.agent-taskgraph/queue/inbox/ABG-P9.1-RUNTIME-FOUNDATION/dispatch.md b/.agent-taskgraph/queue/inbox/ABG-P9.1-RUNTIME-FOUNDATION/dispatch.md new file mode 100644 index 00000000..61807178 --- /dev/null +++ b/.agent-taskgraph/queue/inbox/ABG-P9.1-RUNTIME-FOUNDATION/dispatch.md @@ -0,0 +1,21 @@ +# Dispatch Bootstrap: ABG-P9.1-RUNTIME-FOUNDATION + +| Field | Value | +|---|---| +| Task ID | ABG-P9.1-RUNTIME-FOUNDATION | +| Dispatch ID | dispatch:ABG-P9.1-RUNTIME-FOUNDATION:attempt-1 | +| Role ref | role:p91-runtime-foundation-developer | +| Role profile | roles/p91-runtime-foundation-developer/ROLE.md | +| Role lifecycle | persistent | +| Team revision | rev-p9.1-1 | +| Goal ref | task:ABG-P9.1-RUNTIME-FOUNDATION | +| Context manifest | context.md | +| Context revision | p91-runtime-foundation-r1 | +| Continuity | first implementation Goal for the predeclared foundation role; fresh visible HAPI session | +| Session ID | PENDING | +| Expected identity ACK | IDENTITY_READY dispatch_id=dispatch:ABG-P9.1-RUNTIME-FOUNDATION:attempt-1 role=role:p91-runtime-foundation-developer team_revision=rev-p9.1-1 goal=task:ABG-P9.1-RUNTIME-FOUNDATION context_revision=p91-runtime-foundation-r1 | +| Delivery | NOT_SENT | +| Identity ACK | PENDING | +| ACK evidence | PENDING | + +Read Role, PROJECT, context, Goal and direct evidence in that order. Return the exact identity ACK before executing the Goal. diff --git a/.agent-taskgraph/queue/inbox/ABG-P9.1-RUNTIME-FOUNDATION/goal.md b/.agent-taskgraph/queue/inbox/ABG-P9.1-RUNTIME-FOUNDATION/goal.md new file mode 100644 index 00000000..0c9162e4 --- /dev/null +++ b/.agent-taskgraph/queue/inbox/ABG-P9.1-RUNTIME-FOUNDATION/goal.md @@ -0,0 +1,72 @@ +# Goal: P9.1 behavior-equivalent runtime foundation extraction + +> Stage: implementation-foundation +> Started: 2026-08-13T01:31:53+00:00 +> Task ID: `ABG-P9.1-RUNTIME-FOUNDATION` +> Baseline: `0121015594b2da4b1c6e451cc8adeeeebb812320; branch=agent/abg-p91-runtime-foundation; clean` +> Frozen spec: `.agent-taskgraph/spec.md revision p9.1-spec-r2; docs/runtime/PHASE9_1_ARBITRARY_PARTY_FIRST_SESSION_CONTRACT.md revision p9.1-contract-r1` +> Graph node: `.agent-taskgraph/graph.yaml#p91_runtime_foundation` +> Independent contract: 不适用 +> Context manifest: `context.md` +> Context revision: `p91-runtime-foundation-r1` +> Legal terminal: **ABG-P9.1-RUNTIME-FOUNDATION candidate ready** 或 **ABG-P9.1-RUNTIME-FOUNDATION redesign required: <最早失败边界>** + +## Objective + +Behavior-equivalently extract the architect-defined P9.1 foundation from runtime/main.gd, keep one mutable source of truth, preserve the complete accepted P9.0R1-R10 surface, and leave stable disjoint APIs for later domain, UI and test workers. + +## 图输入、输出与写入范围 + +- 直接依赖(needs):p91_spec_integration +- 必须读取(consumes):p9.1-contract-r1, P9.0R10 fixed runtime source, exact 26-script regression manifest +- 必须产出(produces):architect-defined foundation files and clean pushed foundation candidate +- 唯一写入范围(writes):runtime/main.gd, runtime/domain/p9_1/contracts.gd, runtime/domain/p9_1/session_state.gd, runtime/domain/p9_1/session_service.gd, runtime/domain/p9_1/battle_fixture.gd, runtime/presentation/, runtime/ui/session_presenter.gd, runtime/ui/widgets.gd, runtime/compat/p9_0_root_facade.gd +- 路由:PASS -> p91_domain_implementation;FAIL -> failed;最大尝试 2 + +## 分配记录 + +- Role ref:`role:p91-runtime-foundation-developer` +- 角色职责:Extract one authoritative runtime state, command, snapshot, clock, presenter and compatibility boundary without changing accepted P9.0 behavior +- 角色生命周期:persistent +- 派给:p91-runtime-foundation-developer +- 分配理由:职责匹配 +- 连续性:first implementation Goal for the predeclared foundation role; fresh visible HAPI session +- 工作区:`/Users/wusumac/Documents/game/tmp/aetherbound-guild-worktrees/p91-runtime-foundation`(分支:`agent/abg-p91-runtime-foundation`) +- Runtime requested:`runtime=hapi; flavor=codex; model=gpt-5.6-sol; effort=xhigh; permission=yolo; visibility=visible` +- Runtime observed:`PENDING` +- Runtime verification:`PENDING` +- Session evidence:`PENDING` +- Dispatch bootstrap:`dispatch.md` +- Dispatch message:`NOT_SENT` +- Identity ACK:`PENDING` +- 完整启动方式:派发预览批准后由所选 runtime 控制面生成 + +## 报告协议 + +- 完成、失败或阻塞时通知 PMO,并引用任务号、legal terminal 和证据路径。 +- worker 不修改 PMO 管理的 queue ledger、STATUS 或角色注册表。 + +## 验收标准(证据门) + +- [ ] Introduce exactly one authoritative FirstSessionState and FirstSessionService with immutable snapshots and atomic command results +- [ ] Extract battle clock, animation, audio, feedback, presenter and widgets without changing accepted values, timing, pixels or input behavior +- [ ] Keep main.gd as a thin RuntimeShell/facade and add no P9.1-only gameplay branch +- [ ] Leave old run_state.gd and old p9_1_* tests unchanged and excluded from the foundation pass claim +- [ ] Run the exact 26 contract-listed scripts serially with unique markers and strict diagnostics zero +- [ ] Rerun the four named 844x390 presentation regressions and compare accepted behavior +- [ ] Commit and push only the owned paths; worktree clean/upstream; no owned process remains + +## Frozen(禁止触碰,明确列出) + +- Do not implement the six-pair P9.1 downstream gameplay matrix, new screens or new test expectations +- Do not change assets, paid generation, product values, timing, copy, node names or accepted P9.0 assertions +- Do not edit PMO TaskGraph files, checkpoint, ledger, packaging, devices, stores or release files + +## Estimate + +foundation extraction 4-6h; exact regression and presentation gate 1-2h; confidence medium + +## 完成时交付 + +- graph 节点约定的 produces +- 验收证据与残余风险 diff --git a/.agent-taskgraph/queue/inbox/ABG-P9.1-RUNTIME-FOUNDATION/ledger.md b/.agent-taskgraph/queue/inbox/ABG-P9.1-RUNTIME-FOUNDATION/ledger.md new file mode 100644 index 00000000..bb83b5b3 --- /dev/null +++ b/.agent-taskgraph/queue/inbox/ABG-P9.1-RUNTIME-FOUNDATION/ledger.md @@ -0,0 +1,45 @@ +# 台账记录:ABG-P9.1-RUNTIME-FOUNDATION + +| 字段 | 值 | +|---|---| +| 任务 ID | ABG-P9.1-RUNTIME-FOUNDATION | +| Goal ref | task:ABG-P9.1-RUNTIME-FOUNDATION | +| Goal current path | queue/inbox/ABG-P9.1-RUNTIME-FOUNDATION/goal.md | +| Context manifest | context.md | +| Context revision | p91-runtime-foundation-r1 | +| Role ref | role:p91-runtime-foundation-developer | +| Role lifecycle | persistent | +| Role profile | roles/p91-runtime-foundation-developer/ROLE.md | +| Role continuity | first implementation Goal for the predeclared foundation role; fresh visible HAPI session | +| Reviewer Role ref | PENDING | +| Reviewer Role profile | PENDING | +| Frozen spec | .agent-taskgraph/spec.md revision p9.1-spec-r2; docs/runtime/PHASE9_1_ARBITRARY_PARTY_FIRST_SESSION_CONTRACT.md revision p9.1-contract-r1 | +| Graph node | .agent-taskgraph/graph.yaml#p91_runtime_foundation | +| 依赖/路由 | needs: p91_spec_integration; PASS -> p91_domain_implementation; FAIL -> failed; max_attempts=2 | +| 状态 | inbox | +| 负责人 | p91-runtime-foundation-developer | +| 分配理由 | 职责匹配 | +| 轮次 | 1 | +| 开始时间 | 2026-08-13T01:31:53+00:00 | +| 最后更新 | 2026-08-13T01:31:53+00:00 | +| 验收结果 | PENDING | +| 日志指针 | PENDING | +| Runtime requested | runtime=hapi; flavor=codex; model=gpt-5.6-sol; effort=xhigh; permission=yolo; visibility=visible | +| Runtime observed | PENDING | +| Runtime verification | PENDING | +| Session ID | PENDING | +| Runtime evidence | PENDING | +| Dispatch bootstrap | dispatch.md | +| Dispatch message | NOT_SENT | +| Identity ACK | PENDING | +| 等待归属 | 在等谁:PMO;等什么:spawn + runtime verification + IDENTITY_READY;静默 5 分钟必须诊断并告知 Owner | + +## 备注 + +Prepared from task-manifest.json. Do not hand-edit field names. + +## 状态转换历史(追加式) + +| 时间 | from -> to | 操作者 | 依据/证据 | 唯一下一步 | +|---|---|---|---|---| +| 2026-08-13T01:31:53+00:00 | created -> inbox | PMO | structured manifest | run pre-dispatch validation | diff --git a/.agent-taskgraph/queue/inbox/ABG-P9.1-RUNTIME-FOUNDATION/task-manifest.json b/.agent-taskgraph/queue/inbox/ABG-P9.1-RUNTIME-FOUNDATION/task-manifest.json new file mode 100644 index 00000000..f792e220 --- /dev/null +++ b/.agent-taskgraph/queue/inbox/ABG-P9.1-RUNTIME-FOUNDATION/task-manifest.json @@ -0,0 +1,107 @@ +{ + "task_id": "ABG-P9.1-RUNTIME-FOUNDATION", + "title": "P9.1 behavior-equivalent runtime foundation extraction", + "stage": "implementation-foundation", + "baseline": "0121015594b2da4b1c6e451cc8adeeeebb812320", + "branch": "agent/abg-p91-runtime-foundation", + "worktree": "/Users/wusumac/Documents/game/tmp/aetherbound-guild-worktrees/p91-runtime-foundation", + "frozen_spec": ".agent-taskgraph/spec.md revision p9.1-spec-r2; docs/runtime/PHASE9_1_ARBITRARY_PARTY_FIRST_SESSION_CONTRACT.md revision p9.1-contract-r1", + "graph_node": ".agent-taskgraph/graph.yaml#p91_runtime_foundation", + "context_revision": "p91-runtime-foundation-r1", + "context_mode": "deep", + "context_items": [ + { + "path": "AGENTS.md", + "revision": "0121015", + "reason": "repository execution, evidence and release boundaries" + }, + { + "path": ".agent-taskgraph/PROJECT.md", + "revision": "p9.1 profile", + "reason": "confirmed runtime, model and write ownership" + }, + { + "path": ".agent-taskgraph/spec.md", + "revision": "p9.1-spec-r2", + "reason": "frozen stage topology and scope" + }, + { + "path": "docs/runtime/PHASE9_1_ARBITRARY_PARTY_FIRST_SESSION_CONTRACT.md", + "revision": "p9.1-contract-r1", + "reason": "reconciled foundation paths, APIs and exact regression gate" + }, + { + "path": "docs/runtime/p9_1/RUNTIME_ARCHITECTURE_SPEC.md", + "revision": "7bc871d", + "reason": "detailed extraction order and rollback criteria" + }, + { + "path": "runtime/main.gd", + "revision": "41204ac product authority", + "reason": "accepted monolithic runtime to extract behavior-equivalently" + }, + { + "path": "runtime/tests/", + "revision": "P9.0R1-R10 accepted", + "reason": "exact contract-listed regressions and facade seams" + }, + { + "path": "docs/runtime/PHASE9_0R10_PAIR_ADAPTATION_CONTRACT.md", + "revision": "P9.0R10", + "reason": "latest accepted product behavior boundary" + } + ], + "role_id": "p91-runtime-foundation-developer", + "role_lifecycle": "persistent", + "role_responsibility": "Extract one authoritative runtime state, command, snapshot, clock, presenter and compatibility boundary without changing accepted P9.0 behavior", + "role_continuity": "first implementation Goal for the predeclared foundation role; fresh visible HAPI session", + "runtime_requested": { + "runtime": "hapi", + "flavor": "codex", + "model": "gpt-5.6-sol", + "effort": "xhigh", + "permission": "yolo", + "visibility": "visible" + }, + "objective": "Behavior-equivalently extract the architect-defined P9.1 foundation from runtime/main.gd, keep one mutable source of truth, preserve the complete accepted P9.0R1-R10 surface, and leave stable disjoint APIs for later domain, UI and test workers.", + "needs": [ + "p91_spec_integration" + ], + "consumes": [ + "p9.1-contract-r1", + "P9.0R10 fixed runtime source", + "exact 26-script regression manifest" + ], + "produces": [ + "architect-defined foundation files and clean pushed foundation candidate" + ], + "writes": [ + "runtime/main.gd", + "runtime/domain/p9_1/contracts.gd", + "runtime/domain/p9_1/session_state.gd", + "runtime/domain/p9_1/session_service.gd", + "runtime/domain/p9_1/battle_fixture.gd", + "runtime/presentation/", + "runtime/ui/session_presenter.gd", + "runtime/ui/widgets.gd", + "runtime/compat/p9_0_root_facade.gd" + ], + "pass_route": "p91_domain_implementation", + "fail_route": "failed", + "max_attempts": 2, + "acceptance": [ + "[ ] Introduce exactly one authoritative FirstSessionState and FirstSessionService with immutable snapshots and atomic command results", + "[ ] Extract battle clock, animation, audio, feedback, presenter and widgets without changing accepted values, timing, pixels or input behavior", + "[ ] Keep main.gd as a thin RuntimeShell/facade and add no P9.1-only gameplay branch", + "[ ] Leave old run_state.gd and old p9_1_* tests unchanged and excluded from the foundation pass claim", + "[ ] Run the exact 26 contract-listed scripts serially with unique markers and strict diagnostics zero", + "[ ] Rerun the four named 844x390 presentation regressions and compare accepted behavior", + "[ ] Commit and push only the owned paths; worktree clean/upstream; no owned process remains" + ], + "frozen": [ + "Do not implement the six-pair P9.1 downstream gameplay matrix, new screens or new test expectations", + "Do not change assets, paid generation, product values, timing, copy, node names or accepted P9.0 assertions", + "Do not edit PMO TaskGraph files, checkpoint, ledger, packaging, devices, stores or release files" + ], + "estimate": "foundation extraction 4-6h; exact regression and presentation gate 1-2h; confidence medium" +} diff --git a/.agent-taskgraph/queue/inbox/ABG-P9.1-VISUAL-SLICE/context.md b/.agent-taskgraph/queue/inbox/ABG-P9.1-VISUAL-SLICE/context.md new file mode 100644 index 00000000..c8dcb870 --- /dev/null +++ b/.agent-taskgraph/queue/inbox/ABG-P9.1-VISUAL-SLICE/context.md @@ -0,0 +1,29 @@ +# Context Manifest: ABG-P9.1-VISUAL-SLICE + +> Task ID: `ABG-P9.1-VISUAL-SLICE` +> Revision: `p91-visual-slice-r1` +> Mode: `balanced` +> Budget exception: `none` + +## 必须读取(默认不超过 8 项) + +| 路径或稳定引用 | Revision / 范围 | 为什么本 Goal 必须读 | +|---|---|---| +| `AGENTS.md` | 0121015 | art provenance, paid-call and originality boundaries | +| `.agent-taskgraph/PROJECT.md` | p9.1 profile | confirmed runtime and current paid image ceiling | +| `.agent-taskgraph/spec.md` | p9.1-spec-r2 | frozen representative-slice scope | +| `docs/runtime/PHASE9_1_ARBITRARY_PARTY_FIRST_SESSION_CONTRACT.md` | p9.1-contract-r1 | exact action chain, limits and evidence | +| `docs/runtime/p9_1/UX_VISUAL_FLOW_SPEC.md` | 25893dc | 844x390 composition, event language and required frames | +| `docs/presentation/UI_AND_VISUAL_SYSTEM.md` | current | accepted Japanese hand-painted visual system | +| `runtime/assets/` | P9.0R10 accepted | existing Recruit, battlefield, UI and VFX identity anchors | +| `docs/prototype/generation/` | accepted source records only | generation/provenance conventions; inspect only relevant families | + +## 按需检索(先搜索,再局部读取) + +| 路径/范围 | 触发条件 | 检索提示 | +|---|---|---| +| source tree | Goal 需要实现细节时 | 先 rg,再局部读取 | + +## 最近 Delta + +- 2026-08-13T01:31:53+00:00: structured pre-dispatch manifest created. diff --git a/.agent-taskgraph/queue/inbox/ABG-P9.1-VISUAL-SLICE/dispatch.md b/.agent-taskgraph/queue/inbox/ABG-P9.1-VISUAL-SLICE/dispatch.md new file mode 100644 index 00000000..8fb3ceaf --- /dev/null +++ b/.agent-taskgraph/queue/inbox/ABG-P9.1-VISUAL-SLICE/dispatch.md @@ -0,0 +1,21 @@ +# Dispatch Bootstrap: ABG-P9.1-VISUAL-SLICE + +| Field | Value | +|---|---| +| Task ID | ABG-P9.1-VISUAL-SLICE | +| Dispatch ID | dispatch:ABG-P9.1-VISUAL-SLICE:attempt-1 | +| Role ref | role:p91-ux-visual-designer | +| Role profile | roles/p91-ux-visual-designer/ROLE.md | +| Role lifecycle | persistent | +| Team revision | rev-p9.1-1 | +| Goal ref | task:ABG-P9.1-VISUAL-SLICE | +| Context manifest | context.md | +| Context revision | p91-visual-slice-r1 | +| Continuity | reuse the P9.1 UX/visual role after expert spec integration, but start a fresh visible HAPI session and Goal | +| Session ID | PENDING | +| Expected identity ACK | IDENTITY_READY dispatch_id=dispatch:ABG-P9.1-VISUAL-SLICE:attempt-1 role=role:p91-ux-visual-designer team_revision=rev-p9.1-1 goal=task:ABG-P9.1-VISUAL-SLICE context_revision=p91-visual-slice-r1 | +| Delivery | NOT_SENT | +| Identity ACK | PENDING | +| ACK evidence | PENDING | + +Read Role, PROJECT, context, Goal and direct evidence in that order. Return the exact identity ACK before executing the Goal. diff --git a/.agent-taskgraph/queue/inbox/ABG-P9.1-VISUAL-SLICE/goal.md b/.agent-taskgraph/queue/inbox/ABG-P9.1-VISUAL-SLICE/goal.md new file mode 100644 index 00000000..ec1f82c9 --- /dev/null +++ b/.agent-taskgraph/queue/inbox/ABG-P9.1-VISUAL-SLICE/goal.md @@ -0,0 +1,71 @@ +# Goal: P9.1 representative first-battle visual slice + +> Stage: visual-production +> Started: 2026-08-13T01:31:53+00:00 +> Task ID: `ABG-P9.1-VISUAL-SLICE` +> Baseline: `0121015594b2da4b1c6e451cc8adeeeebb812320; branch=agent/abg-p91-visual-slice; clean` +> Frozen spec: `.agent-taskgraph/spec.md revision p9.1-spec-r2; docs/runtime/PHASE9_1_ARBITRARY_PARTY_FIRST_SESSION_CONTRACT.md revision p9.1-contract-r1` +> Graph node: `.agent-taskgraph/graph.yaml#p91_representative_visual_slice` +> Independent contract: 不适用 +> Context manifest: `context.md` +> Context revision: `p91-visual-slice-r1` +> Legal terminal: **ABG-P9.1-VISUAL-SLICE candidate ready** 或 **ABG-P9.1-VISUAL-SLICE redesign required: <最早失败边界>** + +## Objective + +Graybox, generate only when needed, and hand off one representative 844x390 formation-review-to-first-diagnosis visual slice with authentic Japanese hand-painted game presentation, explicit layers and traceable generation records. + +## 图输入、输出与写入范围 + +- 直接依赖(needs):p91_spec_integration +- 必须读取(consumes):p9.1-contract-r1, UX visual flow, accepted P9.0R3-R10 identity assets +- 必须产出(produces):docs/runtime/p9_1/visual_slice/ +- 唯一写入范围(writes):docs/runtime/p9_1/visual_slice/ +- 路由:PASS -> p91_runtime_integration;FAIL -> failed;最大尝试 2 + +## 分配记录 + +- Role ref:`role:p91-ux-visual-designer` +- 角色职责:Design and produce one play-size first-battle visual slice that makes formation, action, consequence and diagnosis readable +- 角色生命周期:persistent +- 派给:p91-ux-visual-designer +- 分配理由:职责匹配 +- 连续性:reuse the P9.1 UX/visual role after expert spec integration, but start a fresh visible HAPI session and Goal +- 工作区:`/Users/wusumac/Documents/game/tmp/aetherbound-guild-worktrees/p91-visual-slice`(分支:`agent/abg-p91-visual-slice`) +- Runtime requested:`runtime=hapi; flavor=codex; model=gpt-5.6-sol; effort=xhigh; permission=yolo; visibility=visible` +- Runtime observed:`PENDING` +- Runtime verification:`PENDING` +- Session evidence:`PENDING` +- Dispatch bootstrap:`dispatch.md` +- Dispatch message:`NOT_SENT` +- Identity ACK:`PENDING` +- 完整启动方式:派发预览批准后由所选 runtime 控制面生成 + +## 报告协议 + +- 完成、失败或阻塞时通知 PMO,并引用任务号、legal terminal 和证据路径。 +- worker 不修改 PMO 管理的 queue ledger、STATUS 或角色注册表。 + +## 验收标准(证据门) + +- [ ] Establish a play-size graybox and first/second/third focal priorities before any paid call +- [ ] Cover formation review, approach/contact, profession response, damage/heal feedback and first causal result +- [ ] Preserve the four accepted Recruit identities, landscape scale, original-member order and event readability +- [ ] Use at most four paid image calls and USD 5 total including retries; record prompts, task IDs, returned cost and hashes +- [ ] Provide editable layer/asset handoff and 844x390 previews; reject cropped, unreadable or identity-drifting outputs +- [ ] Commit and push only docs/runtime/p9_1/visual_slice; no runtime integration or bulk asset generation + +## Frozen(禁止触碰,明确列出) + +- Do not modify runtime source, tests, accepted runtime assets or PMO files +- Do not generate audio/video, new character families, chapter assets, store media or more than the fixed paid ceiling +- Do not copy commercial reference expression or claim Owner visual acceptance + +## Estimate + +graybox and prompt design 60m; up to four calls and postprocess 90m; handoff 45m; confidence medium-high + +## 完成时交付 + +- graph 节点约定的 produces +- 验收证据与残余风险 diff --git a/.agent-taskgraph/queue/inbox/ABG-P9.1-VISUAL-SLICE/ledger.md b/.agent-taskgraph/queue/inbox/ABG-P9.1-VISUAL-SLICE/ledger.md new file mode 100644 index 00000000..b05495a3 --- /dev/null +++ b/.agent-taskgraph/queue/inbox/ABG-P9.1-VISUAL-SLICE/ledger.md @@ -0,0 +1,45 @@ +# 台账记录:ABG-P9.1-VISUAL-SLICE + +| 字段 | 值 | +|---|---| +| 任务 ID | ABG-P9.1-VISUAL-SLICE | +| Goal ref | task:ABG-P9.1-VISUAL-SLICE | +| Goal current path | queue/inbox/ABG-P9.1-VISUAL-SLICE/goal.md | +| Context manifest | context.md | +| Context revision | p91-visual-slice-r1 | +| Role ref | role:p91-ux-visual-designer | +| Role lifecycle | persistent | +| Role profile | roles/p91-ux-visual-designer/ROLE.md | +| Role continuity | reuse the P9.1 UX/visual role after expert spec integration, but start a fresh visible HAPI session and Goal | +| Reviewer Role ref | PENDING | +| Reviewer Role profile | PENDING | +| Frozen spec | .agent-taskgraph/spec.md revision p9.1-spec-r2; docs/runtime/PHASE9_1_ARBITRARY_PARTY_FIRST_SESSION_CONTRACT.md revision p9.1-contract-r1 | +| Graph node | .agent-taskgraph/graph.yaml#p91_representative_visual_slice | +| 依赖/路由 | needs: p91_spec_integration; PASS -> p91_runtime_integration; FAIL -> failed; max_attempts=2 | +| 状态 | inbox | +| 负责人 | p91-ux-visual-designer | +| 分配理由 | 职责匹配 | +| 轮次 | 1 | +| 开始时间 | 2026-08-13T01:31:53+00:00 | +| 最后更新 | 2026-08-13T01:31:53+00:00 | +| 验收结果 | PENDING | +| 日志指针 | PENDING | +| Runtime requested | runtime=hapi; flavor=codex; model=gpt-5.6-sol; effort=xhigh; permission=yolo; visibility=visible | +| Runtime observed | PENDING | +| Runtime verification | PENDING | +| Session ID | PENDING | +| Runtime evidence | PENDING | +| Dispatch bootstrap | dispatch.md | +| Dispatch message | NOT_SENT | +| Identity ACK | PENDING | +| 等待归属 | 在等谁:PMO;等什么:spawn + runtime verification + IDENTITY_READY;静默 5 分钟必须诊断并告知 Owner | + +## 备注 + +Prepared from task-manifest.json. Do not hand-edit field names. + +## 状态转换历史(追加式) + +| 时间 | from -> to | 操作者 | 依据/证据 | 唯一下一步 | +|---|---|---|---|---| +| 2026-08-13T01:31:53+00:00 | created -> inbox | PMO | structured manifest | run pre-dispatch validation | diff --git a/.agent-taskgraph/queue/inbox/ABG-P9.1-VISUAL-SLICE/task-manifest.json b/.agent-taskgraph/queue/inbox/ABG-P9.1-VISUAL-SLICE/task-manifest.json new file mode 100644 index 00000000..7951f071 --- /dev/null +++ b/.agent-taskgraph/queue/inbox/ABG-P9.1-VISUAL-SLICE/task-manifest.json @@ -0,0 +1,98 @@ +{ + "task_id": "ABG-P9.1-VISUAL-SLICE", + "title": "P9.1 representative first-battle visual slice", + "stage": "visual-production", + "baseline": "0121015594b2da4b1c6e451cc8adeeeebb812320", + "branch": "agent/abg-p91-visual-slice", + "worktree": "/Users/wusumac/Documents/game/tmp/aetherbound-guild-worktrees/p91-visual-slice", + "frozen_spec": ".agent-taskgraph/spec.md revision p9.1-spec-r2; docs/runtime/PHASE9_1_ARBITRARY_PARTY_FIRST_SESSION_CONTRACT.md revision p9.1-contract-r1", + "graph_node": ".agent-taskgraph/graph.yaml#p91_representative_visual_slice", + "context_revision": "p91-visual-slice-r1", + "context_mode": "balanced", + "context_items": [ + { + "path": "AGENTS.md", + "revision": "0121015", + "reason": "art provenance, paid-call and originality boundaries" + }, + { + "path": ".agent-taskgraph/PROJECT.md", + "revision": "p9.1 profile", + "reason": "confirmed runtime and current paid image ceiling" + }, + { + "path": ".agent-taskgraph/spec.md", + "revision": "p9.1-spec-r2", + "reason": "frozen representative-slice scope" + }, + { + "path": "docs/runtime/PHASE9_1_ARBITRARY_PARTY_FIRST_SESSION_CONTRACT.md", + "revision": "p9.1-contract-r1", + "reason": "exact action chain, limits and evidence" + }, + { + "path": "docs/runtime/p9_1/UX_VISUAL_FLOW_SPEC.md", + "revision": "25893dc", + "reason": "844x390 composition, event language and required frames" + }, + { + "path": "docs/presentation/UI_AND_VISUAL_SYSTEM.md", + "revision": "current", + "reason": "accepted Japanese hand-painted visual system" + }, + { + "path": "runtime/assets/", + "revision": "P9.0R10 accepted", + "reason": "existing Recruit, battlefield, UI and VFX identity anchors" + }, + { + "path": "docs/prototype/generation/", + "revision": "accepted source records only", + "reason": "generation/provenance conventions; inspect only relevant families" + } + ], + "role_id": "p91-ux-visual-designer", + "role_lifecycle": "persistent", + "role_responsibility": "Design and produce one play-size first-battle visual slice that makes formation, action, consequence and diagnosis readable", + "role_continuity": "reuse the P9.1 UX/visual role after expert spec integration, but start a fresh visible HAPI session and Goal", + "runtime_requested": { + "runtime": "hapi", + "flavor": "codex", + "model": "gpt-5.6-sol", + "effort": "xhigh", + "permission": "yolo", + "visibility": "visible" + }, + "objective": "Graybox, generate only when needed, and hand off one representative 844x390 formation-review-to-first-diagnosis visual slice with authentic Japanese hand-painted game presentation, explicit layers and traceable generation records.", + "needs": [ + "p91_spec_integration" + ], + "consumes": [ + "p9.1-contract-r1", + "UX visual flow", + "accepted P9.0R3-R10 identity assets" + ], + "produces": [ + "docs/runtime/p9_1/visual_slice/" + ], + "writes": [ + "docs/runtime/p9_1/visual_slice/" + ], + "pass_route": "p91_runtime_integration", + "fail_route": "failed", + "max_attempts": 2, + "acceptance": [ + "[ ] Establish a play-size graybox and first/second/third focal priorities before any paid call", + "[ ] Cover formation review, approach/contact, profession response, damage/heal feedback and first causal result", + "[ ] Preserve the four accepted Recruit identities, landscape scale, original-member order and event readability", + "[ ] Use at most four paid image calls and USD 5 total including retries; record prompts, task IDs, returned cost and hashes", + "[ ] Provide editable layer/asset handoff and 844x390 previews; reject cropped, unreadable or identity-drifting outputs", + "[ ] Commit and push only docs/runtime/p9_1/visual_slice; no runtime integration or bulk asset generation" + ], + "frozen": [ + "Do not modify runtime source, tests, accepted runtime assets or PMO files", + "Do not generate audio/video, new character families, chapter assets, store media or more than the fixed paid ceiling", + "Do not copy commercial reference expression or claim Owner visual acceptance" + ], + "estimate": "graybox and prompt design 60m; up to four calls and postprocess 90m; handoff 45m; confidence medium-high" +} diff --git a/.agent-taskgraph/roles/p91-runtime-foundation-developer/ROLE.md b/.agent-taskgraph/roles/p91-runtime-foundation-developer/ROLE.md index 2abb6310..f5f58ea6 100644 --- a/.agent-taskgraph/roles/p91-runtime-foundation-developer/ROLE.md +++ b/.agent-taskgraph/roles/p91-runtime-foundation-developer/ROLE.md @@ -6,11 +6,11 @@ | Team revision | rev-p9.1-1 | | Origin | initial:p9.1-spec-r1 | | 生命周期 | persistent | -| 状态 | available | +| 状态 | reserved | | 核心职责 | Extract behavior-equivalent shared runtime state and extension APIs | | 负责范围 | Goal-defined foundation paths and shared entry during its exclusive stage | | 明确不负责 | Product redesign, PMO state, packaging or release | -| 当前 Goal | PENDING | +| 当前 Goal | task:ABG-P9.1-RUNTIME-FOUNDATION | | 当前 Session ID | PENDING | -| 连续性记录 | Reserved for wave two | +| 连续性记录 | First implementation Goal; fresh isolated worktree at 0121015 and fresh visible HAPI session pending | | 最后更新 | 2026-08-13 / PMO | diff --git a/.agent-taskgraph/roles/p91-ux-visual-designer/ROLE.md b/.agent-taskgraph/roles/p91-ux-visual-designer/ROLE.md index cebf57d4..9ec57a08 100644 --- a/.agent-taskgraph/roles/p91-ux-visual-designer/ROLE.md +++ b/.agent-taskgraph/roles/p91-ux-visual-designer/ROLE.md @@ -6,11 +6,11 @@ | Team revision | rev-p9.1-1 | | Origin | initial:p9.1-spec-r1 | | 生命周期 | persistent | -| 状态 | available | +| 状态 | reserved | | 核心职责 | Define exact landscape screens, Chinese causal copy, hierarchy, motion and accessibility | | 负责范围 | `docs/runtime/p9_1/UX_VISUAL_FLOW_SPEC.md` | | 明确不负责 | Product formulas, runtime code, paid/final media, packaging or PMO state | -| 当前 Goal | none | -| 当前 Session ID | none | -| 连续性记录 | Expert output `43d2d74` integrated as `25893dc`; reconciled contract closure `ed4a9fa`; HAPI b436eff6 archived before next visual Goal | +| 当前 Goal | task:ABG-P9.1-VISUAL-SLICE | +| 当前 Session ID | PENDING | +| 连续性记录 | Expert output `43d2d74` integrated as `25893dc`; reconciled contract closure `ed4a9fa`; old HAPI b436eff6 archived; fresh visual-slice worktree/session pending | | 最后更新 | 2026-08-13 / PMO |