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
@@ -7,3 +7,5 @@
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.
@@ -1,10 +1,10 @@
# Dispatch: ABG-V2-CORE-SYSTEMS
- Dispatch ID: `dispatch:ABG-V2-CORE-SYSTEMS:r1`
- Dispatch ID: `dispatch:ABG-V2-CORE-SYSTEMS:r2`
- Role: `role:systems-designer`
- Team revision: `rev-2`
- Goal: `task:ABG-V2-CORE-SYSTEMS`
- Context revision: `1`
- Context revision: `2`
- Runtime: HAPI visible Codex `gpt-5.6-sol / xhigh / yolo`
- Session: `HAPI 22caeb51-307e-41a6-af3e-875b8e37ba6b`
- Identity ACK: `IDENTITY_READY role:systems-designer team:rev-2 goal:task:ABG-V2-CORE-SYSTEMS context:1 dispatch:ABG-V2-CORE-SYSTEMS:r1`
- Identity ACK: PENDING
@@ -58,3 +58,30 @@ taskgraph files.
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.
@@ -4,3 +4,4 @@
|---|---|---|---|
| 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 |
@@ -7,3 +7,5 @@
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.
@@ -1,10 +1,10 @@
# Dispatch: ABG-V2-UX-SCREENS
- Dispatch ID: `dispatch:ABG-V2-UX-SCREENS:r1`
- Dispatch ID: `dispatch:ABG-V2-UX-SCREENS:r2`
- Role: `role:presentation-designer`
- Team revision: `rev-3`
- Goal: `task:ABG-V2-UX-SCREENS`
- Context revision: `1`
- Context revision: `2`
- Runtime: HAPI visible Codex `gpt-5.6-sol / xhigh / yolo`
- Session: `HAPI c5b75ce7-3baa-45aa-a037-c7f8491c68ee`
- Identity ACK: `IDENTITY_READY role:presentation-designer team:rev-3 goal:task:ABG-V2-UX-SCREENS context:1 dispatch:ABG-V2-UX-SCREENS:r1`
- Identity ACK: PENDING
@@ -38,3 +38,22 @@ and postgame.
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.
@@ -6,3 +6,4 @@
| 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 |
@@ -5,3 +5,4 @@
| 2026-08-11T00:28:00+08:00 | inbox | Fixed integrated revision `7ffd6b0`; validator self-test 15 and full errors=0; repository clean | Verify/reuse Owner-created HAPI reviewer and obtain exact ACK |
| 2026-08-11T00:27:47+08:00 | inbox | HAPI reuse VERIFIED: session `5161887f`, Codex gpt-5.6-sol/xhigh/yolo, idle watermark captured | Send reviewer bootstrap and await exact ACK |
| 2026-08-11T00:29:00+08:00 | review | Exact independent reviewer ACK observed in HAPI | Review immutable `7ffd6b0` and report one legal terminal |
| 2026-08-11T00:34:00+08:00 | failed | `FAIL`: final Recruit dismissal can produce an undefined zero-Recruit Market state | Route product/save repair to systems role and UI synchronization to presentation role; require fresh reviewer |
@@ -0,0 +1,21 @@
# ABG-V2-REVIEW Report
Terminal: `ABG-V2-REVIEW FAIL: dismissal can create an undefined zero-recruit Market state`
Fixed revision: `7ffd6b0`
Reviewer: HAPI `5161887f-fc11-4850-92b7-321ac8aa1bc2`
Gates 1-3 passed: immutable detached archive, validator self-test/full/JSON,
deterministic hashes and the ten-minute core loop were coherent.
Earliest failure: Gate 4. Product and systems allow dismissing a lone Recruit;
save removes it without a recovery or run-close transition; protected offers
exist only after casualties; company-collapse evaluation occurs only after
failure settlement; and UX redirects an empty party back to Market. A low-Coin
player can therefore reach a zero-Recruit Market with no atomic exit except an
unrelated manual abandonment flow.
Repair route: prohibit final-survivor dismissal at preview and commit time;
retain a separate explicit run-abandonment transaction. Synchronize product,
economy, save and UX authority, then use a fresh reviewer on a new fixed
revision.