chore: route zero-recruit state repair

This commit is contained in:
2026-08-11 00:37:19 +08:00
parent 619732c1bb
commit bfbc54cb10
17 changed files with 83 additions and 9 deletions
@@ -0,0 +1,11 @@
# Context: ABG-V2-CORE-SYSTEMS
- Read repository `AGENTS.md` and portfolio rules.
- Read `.agent-taskgraph/spec.md` revision `design-spec-r2`.
- Read `docs/reference/REFERENCE_RUNTIME_CENSUS.md` and
`docs/reference/TRANSFERABLE_STRUCTURE_LESSONS.md` as evidence-labeled
structural references only.
- Read the four current product documents to identify everything superseded.
- Ignore old queue Goals and old worker branches; this Goal is the only authority.
- Context revision `2`: attempt 2 consumes integrated `main` and the failed
reviewer report; only the final-Recruit dismissal boundary is reopened.
@@ -0,0 +1,10 @@
# Dispatch: ABG-V2-CORE-SYSTEMS
- Dispatch ID: `dispatch:ABG-V2-CORE-SYSTEMS:r2`
- Role: `role:systems-designer`
- Team revision: `rev-2`
- Goal: `task:ABG-V2-CORE-SYSTEMS`
- Context revision: `2`
- Runtime: HAPI visible Codex `gpt-5.6-sol / xhigh / yolo`
- Session: `HAPI 22caeb51-307e-41a6-af3e-875b8e37ba6b`
- Identity ACK: PENDING
@@ -0,0 +1,87 @@
# Goal: ABG-V2 Recruit-Line Core Systems
> Task ID: `ABG-V2-CORE-SYSTEMS`
> Frozen spec: `.agent-taskgraph/spec.md` revision `design-spec-r2`
> Graph node: `v2_core_systems`
> Baseline: PMO redesign baseline commit on `main`
> Legal terminal: `ABG-V2-CORE-SYSTEMS candidate ready` or `ABG-V2-CORE-SYSTEMS redesign required: <earliest failed boundary>`
## Objective
Replace the fixed-cast, six-unit, three-lane product authority with a complete,
original recruit-line auto-battler contract.
## Exclusive Writes
- `docs/product/GAME_PRODUCT_CONTRACT.md`
- `docs/product/SYSTEMS_AND_BATTLE.md`
- `docs/product/ECONOMY_AND_BALANCE.md`
- `docs/product/SAVE_AND_FAILURE_CONTRACT.md`
Do not edit root, content, reference, presentation, prototype, review or
taskgraph files.
## Required Design
- One ordered horizontal party line; explicit front-to-rear targeting,
protection, reach, projectile, healing, movement, push/pull, summon footprint,
death-collapse and replacement rules.
- Repeated shop loop with recruit, equipment, combat offer, reroll and lock;
price pressure must remain recoverable after deaths.
- Generated recruits use fixed profession catalog schema, attributes, one
lightweight trait and equipment. No relationships or personal story arcs.
- Simultaneous capacity grows from a small opening toward a simulation-selected
10-12 target. Cumulative run recruitment remains independent from capacity.
- Fully automatic combat with only prepare/reorder/equip/start/pause/speed/
inspect/retreat controls.
- Deterministic formulas, target rules, status ordering, damage floor, critical
resolution, battle cap and causal result explanation.
- Five pacing profiles with explicit shop/battle/decision timestamps, economy
solvency, recovery, no dominant reroll/recruit/dismiss strategy and 15-25 hour
first-clear target.
- Complete versioned save/failure contracts including atomic pending/applied
operations, retry, migration, corruption, duplicate claim, interruption,
rollback, clock rollback and bounded offline behavior.
## Acceptance
- Search finds no authoritative requirement for fixed 30 protagonists,
relationship systems, six-unit combat, three lanes, Directive, Anchor or
Cache battle mechanics.
- All four documents use one vocabulary and one formula authority.
- Existing design validator is updated only by PMO/integration later; worker
reports any validator assumptions that no longer match rather than editing it.
- Commit only the four owned documents; leave worktree clean and report commit,
checks and open human gates.
## Frozen
No runtime, engine, UI, art/audio generation, package, release or reference
asset copying. Do not silently change the content counts in design-spec-r2.
## Attempt 2: Final-Recruit Dismissal Closure
> Context revision: `2`
> Integrated baseline: `f0095af`
> Reviewer failure: `.agent-taskgraph/queue/failed/ABG-V2-REVIEW/report.md`
Repair the earliest review boundary using this fixed policy: dismissal preview
and commit are illegal when total live Recruits across deployed party and
reserve equals one. Ending a run remains a separate explicit abandonment
transaction; dismissal rebate and casualty-protected offers must not substitute
for it.
Required closure:
- Use one canonical count and precondition across product, systems, economy and
save authorities.
- Define stale-preview, duplicate-confirm and interruption behavior with zero
mutation when the count has fallen to one.
- State that blocked final dismissal creates no rebate, no protected offer and
no save operation receipt beyond the rejected intent response.
- Preserve casualty/company-collapse recovery and voluntary abandonment as
distinct transactions.
- Add an explicit counterexample trace for one live Recruit, low Coin, no
protected offer, and attempted dismissal.
- Run the integrated validator and focused cross-document searches; commit only
the four owned product documents and leave clean.
@@ -0,0 +1,7 @@
# Ledger: ABG-V2-CORE-SYSTEMS
| Time | State | Evidence | Next action |
|---|---|---|---|
| 2026-08-10T22:38:28+08:00 | inbox | Owner-approved design-spec-r2 and graph-r3 | Spawn and verify visible HAPI worker |
| 2026-08-10T23:25:46+08:00 | review | HAPI ACK verified; candidate `b0f9033` changes exactly four owned product docs; worktree clean | Freeze candidate for six-stream integration |
| 2026-08-11T00:34:00+08:00 | active | Independent review FAIL at zero-Recruit Market state | Attempt 2 prohibits final-survivor dismissal and preserves separate abandonment |
@@ -0,0 +1,39 @@
{
"status": "VERIFIED",
"phase": "pre-dispatch",
"verification_id": "ba378840-a7b5-4f29-84b3-9610d957932c",
"goal_ref": "task:ABG-V2-CORE-SYSTEMS",
"session_id": "22caeb51-307e-41a6-af3e-875b8e37ba6b",
"machine_id": "a15888ad-d405-4884-a407-c28ddd8b397c",
"machine_name": "小吴家",
"machine_host": "wusumacdeMac-mini.local",
"pid": "7861",
"flavor": "codex",
"cwd": "/Users/wusumac/Documents/game/tmp/aetherbound-guild-worktrees/v2-core",
"model": "gpt-5.6-sol",
"effort": "xhigh",
"permission": "yolo",
"messages_received": 0,
"message_watermark": {
"latest_page_count": 0,
"latest_message_id": "",
"snapshot_head_seq": null,
"snapshot_head_at": null,
"epoch": 0,
"captured_at": "2026-08-10T14:47:58.150704+00:00"
},
"active": true,
"thinking": false,
"lifecycle": "running",
"catalog": {
"status": "VERIFIED",
"source": "/api/machines/:id/codex-models",
"checked_at": "2026-08-10T14:47:55.136277+00:00",
"model": "gpt-5.6-sol",
"effort": "xhigh",
"model_supported": true,
"effort_supported": true
},
"evidence": "HAPI Hub session metadata, model catalog, and message watermark",
"verified_at": "2026-08-10T14:47:58.150919+00:00"
}
@@ -0,0 +1,11 @@
# Context: ABG-V2-UX-SCREENS
- Context revision: `1`
- Read `AGENTS.md`, `.agent-taskgraph/spec.md` revision `design-spec-r3`, the
role profile and this Goal.
- Read `docs/reference/TRANSFERABLE_STRUCTURE_LESSONS.md` only for labeled
structural lessons.
- Replace the two owned obsolete presentation documents; do not preserve their
fixed-cast, relationship, lane-grid or manual-command authority.
- Context revision `2`: attempt 2 consumes integrated `main` and synchronizes
only the final-Recruit dismissal policy from the failed review.
@@ -0,0 +1,10 @@
# Dispatch: ABG-V2-UX-SCREENS
- Dispatch ID: `dispatch:ABG-V2-UX-SCREENS:r2`
- Role: `role:presentation-designer`
- Team revision: `rev-3`
- Goal: `task:ABG-V2-UX-SCREENS`
- Context revision: `2`
- Runtime: HAPI visible Codex `gpt-5.6-sol / xhigh / yolo`
- Session: `HAPI c5b75ce7-3baa-45aa-a037-c7f8491c68ee`
- Identity ACK: PENDING
@@ -0,0 +1,59 @@
# Goal: ABG-V2 Landscape UX And Screen States
> Task ID: `ABG-V2-UX-SCREENS`
> Frozen spec: `.agent-taskgraph/spec.md` revision `design-spec-r3`
> Graph node: `v2_ux_screens`
> Baseline: `8c1fd7d6ee3341c41f27d5aec605cd7d0e921922`
> Worktree: `/Users/wusumac/Documents/game/tmp/aetherbound-guild-worktrees/v2-ux` (`agent/abg-v2-ux`)
> Legal terminal: `ABG-V2-UX-SCREENS candidate ready` or `ABG-V2-UX-SCREENS redesign required: <earliest failed boundary>`
## Objective
Replace the fixed-cast and lane-grid presentation authority with a complete
landscape screen/state and UI system for shop, generated recruitment,
equipment, horizontal ordering, automatic battle, casualty, reward, recovery
and postgame.
## Exclusive Writes
- `docs/presentation/SCREEN_AND_STATE_MAP.md`
- `docs/presentation/UI_AND_VISUAL_SYSTEM.md`
## Acceptance
- Cover title, shop, recruit, dismiss, equip, compare, party ordering, risk
choice, battle, pause/speed/inspect/retreat, result, death, reward, recovery,
progression, settings and postgame.
- Every screen defines purpose, primary action, consequence, empty/loading/
error/confirmation/interruption and return behavior.
- Define landscape phone/tablet layouts, touch/controller input, EN/zh_CN,
130% text, reduced motion/flashes, mute and low-power states.
- Remove fixed protagonists, relationships, six-unit grid, lanes, Directive,
Anchor and Cache UI authority.
- Use named integration bindings for unresolved cross-stream values; do not
create product formulas.
- Commit only the two owned files and leave the worktree clean.
## Frozen
No product/content/art/audio authority edits. No HTML, runtime, final media or
copied reference layouts.
## Attempt 2: Final-Recruit Dismissal UX
> Context revision: `2`
> Integrated baseline: `f0095af`
Synchronize the fixed product policy without inventing a new formula:
- When total live Recruits across deployed and reserve equals one, dismissal is
unavailable in recruit detail and review states.
- The disabled state must explain that one member must remain and direct a
player who intends to end the run to the separate abandonment review.
- A stale confirmation after the count falls to one closes with no mutation,
no rebate and a readable reason.
- The empty-party route remains reachable only through casualty/company-
collapse settlement or explicit abandonment, never ordinary dismissal.
- Touch, controller, EN/zh_CN, 130% text and confirmation behavior remain
covered.
- Commit only the two owned UX documents and leave clean.
@@ -0,0 +1,9 @@
# Ledger: ABG-V2-UX-SCREENS
| Time | State | Evidence | Next action |
|---|---|---|---|
| 2026-08-10T22:59:46+08:00 | inbox | Goal and isolated worktree prepared at baseline `8c1fd7d` | Spawn and verify HAPI session |
| 2026-08-10T23:17:02+08:00 | inbox | HAPI runtime VERIFIED: `c5b75ce7`, Codex gpt-5.6-sol/xhigh/yolo | Send bootstrap and await exact ACK |
| 2026-08-10T23:18:59+08:00 | active | Exact role/team/Goal/context/dispatch ACK observed in HAPI | Execute Goal without PMO interference |
| 2026-08-10T23:39:39+08:00 | review | Candidate `c364a5e`; exact two-file scope and clean worktree | Freeze for integrated validation |
| 2026-08-11T00:34:00+08:00 | active | Independent review FAIL requires UX synchronization for final-Recruit dismissal | Attempt 2 updates disabled/rejected/abandonment states only |
@@ -0,0 +1,39 @@
{
"status": "VERIFIED",
"phase": "pre-dispatch",
"verification_id": "73d41af9-9c85-44ee-84b1-5178fb8da6cb",
"goal_ref": "task:ABG-V2-UX-SCREENS",
"session_id": "c5b75ce7-3baa-45aa-a037-c7f8491c68ee",
"machine_id": "a15888ad-d405-4884-a407-c28ddd8b397c",
"machine_name": "小吴家",
"machine_host": "wusumacdeMac-mini.local",
"pid": "36695",
"flavor": "codex",
"cwd": "/Users/wusumac/Documents/game/tmp/aetherbound-guild-worktrees/v2-ux",
"model": "gpt-5.6-sol",
"effort": "xhigh",
"permission": "yolo",
"messages_received": 0,
"message_watermark": {
"latest_page_count": 0,
"latest_message_id": "",
"snapshot_head_seq": null,
"snapshot_head_at": null,
"epoch": 0,
"captured_at": "2026-08-10T15:17:02.788194+00:00"
},
"active": true,
"thinking": false,
"lifecycle": "running",
"catalog": {
"status": "VERIFIED",
"source": "/api/machines/:id/codex-models",
"checked_at": "2026-08-10T15:16:59.252002+00:00",
"model": "gpt-5.6-sol",
"effort": "xhigh",
"model_supported": true,
"effort_supported": true
},
"evidence": "HAPI Hub session metadata, model catalog, and message watermark",
"verified_at": "2026-08-10T15:17:02.788323+00:00"
}