Support whole-turn answers with Basic Kull
Verify and publish checkpoint container / container (push) Successful in 10m21s

This commit is contained in:
Quintine committed 2026-10-29 01:37:33 +11:00
1 parent d6ddb7cb5c
commit 07f1f1f2ae
16 files changed
+870 -14

No files matched your search

+114 -3
View File
@@ -1618,6 +1618,8 @@ export type Game = {
revivalReceipt?: true;
/** New Kull/Semuta attempts retain the original alliance answer ledger. */
allianceReceipt?: true;
/** New Basic Kull attempts retain whole-answer order and progress. */
turnActionReceipt?: true;
stage: 'offer' | 'counter';
selection?: { source: 'printed' | 'nexus'; card: string; nexusEvent?: string };
intent: { kind: 'ordinary'; use: KaramaUse } | { kind: 'special'; use: SpecialKaramaIntent };
@@ -10020,6 +10022,10 @@ function finishTreacheryDiscard(g: Game, claim?: { player: string; card: string
requireRule(next.declaration && next.use, 'The Kull counter lost its saved continuation.');
g.pendingKull = next.frame;
g.pendingChoamWorthless = next.declaration;
// The verified Semuta exchange may legitimately advance a whole answer.
// Rebind only that new-format receipt before the original counter resumes.
if (result && g.pendingKull.turnActionReceipt)
g.pendingKull.signature = kullSignature(g, g.pendingKull);
completeKarama(g, getPlayer(g, next.player), next.use, pending.batch.entries[0].card);
}
return;
@@ -18288,6 +18294,8 @@ function responseCancelCards(
return p.hand
.filter((card) => {
if (karamaSpendingBlock(g, p, card, karamaUsePurpose(g, {kind:'cancel', response}))) return false;
if (g.kullPreview && byFaction(g, 'choam')?.id !== p.id &&
!kullOriginalWholeCostAllowed(g, p, card, {kind:'cancel', response})) return false;
const window = card.kind === 'special' && card.effect === 'karama' && g.response === response
? karamaBattleCancelOpportunity(g, p.id) : null;
if (!window || !g.turnActionPromises) return true;
@@ -19088,7 +19096,8 @@ function assertKaramaPromiseFeasibility(
use.response.kind === 'choamWorthless' && use.response.intent === 'Kull Wahad') {
const moves = liveMovementPromises(g.movementPromises ?? [], p.id, g.turn);
const expressions = liveMovementExpressionPromises(g.movementExpressionPromises ?? [], p.id, g.turn);
if (moves.length || expressions.length) {
const whole = liveTurnActionPromises(g.turnActionPromises ?? [], p.id, g.turn);
if ((moves.length || expressions.length) && !whole.length) {
if (!costCard) return false;
const projected = structuredClone(g);
const owner = getPlayer(projected, p.id);
@@ -19103,6 +19112,18 @@ function assertKaramaPromiseFeasibility(
throw error;
}
}
if (whole.length) {
if (!costCard || g.pendingKull.intent.kind !== 'ordinary') return false;
const projected = structuredClone(kullSource(g, g.pendingKull));
getPlayer(projected, p.id).hand = getPlayer(projected, p.id).hand.filter(card => card.id !== costCard.id);
const original = getPlayer(projected, g.pendingKull.owner);
const card = original.hand.find(row => row.id === g.pendingKull!.card);
if (!card) return false;
const tail = projectKullOrdinaryOutcome(projected, original, card, g.pendingKull.intent.use);
if (!tail || ((moves.length || expressions.length) &&
!groundMovementCompletion(tail, p.id, moves, expressions)) ||
!turnActionCompletion(tail, p.id)) return false;
}
}
const battlePromises =
g.battle && !g.battle.revealed && !g.battle.plans[p.id]
@@ -19211,7 +19232,8 @@ function kullCostPromisesAllow(g: Game, p: Player, card: Card, fuelSource: 'prin
? (source.battle.truthPromises ?? []).filter(promise => promise.player === p.id && !promise.released)
: [];
const shipmentPromises = liveShipmentPromises(source.shipmentPromises ?? [], p.id, source.turn);
if (!battlePromises.length && !shipmentPromises.length) return true;
const wholePromises = liveTurnActionPromises(source.turnActionPromises ?? [], p.id, source.turn);
if (!battlePromises.length && !shipmentPromises.length && !wholePromises.length) return true;
for (const success of [true, false]) {
const projected = structuredClone(source);
const owner = getPlayer(projected, p.id);
@@ -19230,8 +19252,19 @@ function kullCostPromisesAllow(g: Game, p: Player, card: Card, fuelSource: 'prin
projected.response = null;
projected.decision = null;
projected.pendingKarama = null;
let wholeSource = projected;
if (!success && wholePromises.length && g.pendingKull) {
if (g.pendingKull.intent.kind !== 'ordinary') return false;
const original = getPlayer(projected, g.pendingKull.owner);
const attempted = original.hand.find(row => row.id === g.pendingKull!.card);
if (!attempted) return false;
const resumed = projectKullOrdinaryOutcome(projected, original, attempted, g.pendingKull.intent.use);
if (!resumed) return false;
wholeSource = resumed;
}
if ((battlePromises.length && !findReachableBattlePlan(projected, owner, { promises: battlePromises })) ||
(shipmentPromises.length && !findShipmentCompletion(projected, owner, shipmentPromises)))
(shipmentPromises.length && !findShipmentCompletion(projected, owner, shipmentPromises)) ||
(wholePromises.length && !turnActionCompletion(wholeSource, p.id)))
return false;
}
return true;
@@ -19287,6 +19320,8 @@ function kullSignature(g: Game, frame: KullFrame): string {
...(frame.allianceReceipt ? {allianceReceipt:frame.allianceReceipt,alliancePromises:source.alliancePromises,
allianceExpressionPromises:source.allianceExpressionPromises,mixedAllianceQuestions:source.mixedAllianceQuestions,
alliancePromiseSequence:source.alliancePromiseSequence} : {}),
...(frame.turnActionReceipt ? {turnActionReceipt:frame.turnActionReceipt,
turnActionPromises:source.turnActionPromises,travelPromiseOrder:source.travelPromiseOrder} : {}),
});
}
/** Only the verified pre-source printed profile may bind its old held cost. */
@@ -19342,6 +19377,9 @@ function kullIntegrity(g: Game): void {
alliancePromiseModeSupported(g) && !!(g.alliancePromises?.length || g.allianceExpressionPromises?.length ||
g.mixedAllianceQuestions?.length),
'The Kull attempt has lost its original Basic alliance-answer ledger.');
requireRule(frame.turnActionReceipt === undefined || frame.turnActionReceipt === true &&
turnActionPromiseModeSupported(g) && !!g.turnActionPromises?.length,
'The Kull attempt has lost its original whole-answer ledger.');
validateKullAttemptStamp(g, frame, physicalTreacheryCards(g));
requireRule(Number.isSafeInteger(g.kullSequence) && g.kullSequence! > 0 &&
frame.event === JSON.stringify(['kull', g.turn, g.phase, g.kullSequence, frame.player, frame.owner]),
@@ -19432,6 +19470,8 @@ function beginKullAttempt(g: Game, p: Player, card: Card, intent: KullFrame['int
...(g.semutaPreview && alliancePromiseModeSupported(g) && (g.alliancePromises?.length ||
g.allianceExpressionPromises?.length || g.mixedAllianceQuestions?.length)
? { allianceReceipt: true as const } : {}),
...(turnActionPromiseModeSupported(g) && g.turnActionPromises?.length
? { turnActionReceipt: true as const } : {}),
worthless: structuredClone(g.pendingChoamWorthless ?? null), signature: '',
};
// Payment dispatch removed this control before entering its native branch.
@@ -19457,6 +19497,59 @@ function resumeKullAttempt(g: Game, prevented: boolean): void {
spendKarama(g, p, p.hand.find(card => card.id === frame.card)!, frame.intent.use, true);
}
}
/** Quote only known shipment-price and ordinary-auction effects without
* executing a foreign response, drawing a card or exposing a hidden lot.
* Other parent effects need their own deterministic whole-answer quotation. */
function projectKullOrdinaryOutcome(g: Game, player: Player, card: Card, use: KaramaUse): Game | null {
if (use.kind !== 'shipment' && use.kind !== 'purchase' && use.kind !== 'auctionPayment') return null;
const window = windowCardOpportunity(g, use.kind === 'shipment' ? 'karamaShipment' : 'karamaAuction');
const lot = use.kind === 'shipment' ? null : bidOpportunity(g);
if (use.kind !== 'shipment' && (!g.auction || !lot)) return null;
const trial = structuredClone(g), owner = getPlayer(trial, player.id);
if (!owner.hand.some(held => held.id === card.id)) return null;
owner.hand = owner.hand.filter(held => held.id !== card.id);
if (window && card.kind === 'special' && card.effect === 'karama') recordNativeTurnActionWindowCard(
trial, player.id, use.kind === 'shipment' ? 'karamaShipment' : 'karamaAuction', window.source);
if (use.kind === 'shipment') trial.karamaShipping = {player:use.recipient, owner:player.id, card:card.id};
else {
const auction = g.auction!, actual = auction.cards[auction.index];
if (!actual) return null;
if (livePhaseBidPromises(g.phaseBidPromises ?? [], player.id, g.turn).some(row => row.answer)) return null;
const known = player.faction === 'atreides' && !!auction.peekKnown;
const opaqueId = JSON.stringify(['kull-opaque-lot', g.turn, auction.index, player.id]);
const acquired: Card = known ? structuredClone(actual) : {id:opaqueId, name:'Unknown card', kind:'special'};
owner.hand.push(acquired);
if (!known) trial.auction!.cards[auction.index] = structuredClone(acquired);
if (!known) (trial as TurnActionCardProbe)._turnActionUnknownCards = [
...((trial as TurnActionCardProbe)._turnActionUnknownCards ?? []), opaqueId,
];
const original = liveTurnActionPromises(trial.turnActionPromises ?? [], player.id, trial.turn);
trial.turnActionPromises = turnActionRule(() => closeTurnActionBidding(
trial.turnActionPromises ?? [], trial.turn, lot!.source, player.id));
if (window) trial.turnActionPromises = turnActionRule(() => closeTurnActionWindowCardPlay(
trial.turnActionPromises!, player.id, trial.turn, 'karamaAuction', window.source));
if (original.some(row => trial.turnActionPromises?.find(next => next.event === row.event)?.released)) return null;
// Keep unawarded lots in their original custody while preventing this
// closed lot from becoming another bid or exposing its hidden face.
trial.currentAuctionSale = {winner:player.id, amount:auction.bid, free:true, origin:'normal', seller:null};
reconcileBidPromises(trial, {actor:player.id, action:{type:'card'}});
}
trial.truthtrance = null; trial.response = null; trial.decision = null;
trial.pendingKarama = null; trial.phaseOpening = null; trial.pendingKull = null;
return trial;
}
/** Before interrupting an owned Karama, prove its known original use can
* preserve the actor's whole answer if CHOAM declines or is countered. */
function kullOriginalWholeCostAllowed(g: Game, p: Player, card: Card, use: KaramaUse): boolean {
if (!liveTurnActionPromises(g.turnActionPromises ?? [], p.id, g.turn).length) return true;
try {
const trial = projectKullOrdinaryOutcome(g, p, card, use);
return !!trial && !!turnActionCompletion(trial, p.id);
} catch (error) {
if (error instanceof RuleError) return false;
throw error;
}
}
function decideKull(g: Game, p: Player, action: Action): void {
const frame = g.pendingKull!;
requireRule(action.type === 'kullDecision' && action.event === frame.event &&
@@ -19493,6 +19586,9 @@ function spendKarama(g: Game, p: Player, card: Card, use: KaramaUse, kullOffered
const blocked = karamaSpendingBlock(g, p, card, karamaUsePurpose(g, use));
requireRule(!blocked, blocked ?? 'This card cannot be spent as Karama.');
validateKaramaUse(g, p, use, card);
if (!kullOffered && !g.pendingKull && g.kullPreview && byFaction(g, 'choam')?.id !== p.id)
requireRule(kullOriginalWholeCostAllowed(g, p, card, use),
'Retain a legal completion of your whole Truthtrance answer if this Karama resolves.');
const promiseProven = assertKaramaPromiseFeasibility(g, p, use, card);
requireRule(!g.pendingKull || promiseProven,
'Kull preview cannot accept this unproven Truthtrance counter continuation.');
@@ -21982,6 +22078,17 @@ function turnActionFreshDiscardTail(source: Game,
game.pendingKarama = structuredClone(continuation.resume.pendingKarama);
game.phaseOpening = structuredClone(continuation.resume.phaseOpening);
}
if (continuation.kind === 'kullCounterDiscard' && continuation.frame.intent.kind === 'ordinary') {
// Passing the counter's discard resumes the original Karama, not the
// already-countered Kull response. Quote its known effects without
// executing the parent or sampling an unopened auction card.
const source = structuredClone(game);
Object.assign(source, structuredClone(continuation.frame.resume));
const original = getPlayer(source, continuation.frame.owner);
const card = original.hand.find(held => held.id === continuation.frame.card);
const projected = card && projectKullOrdinaryOutcome(source, original, card, continuation.frame.intent.use);
if (projected) return projected;
}
return game;
}
/** Fresh use precedes every later witness. An uncommitted hidden face cannot
@@ -22391,6 +22498,9 @@ function bindTurnActionTruth(g: Game, p: Player, claim: TurnActionClaim, answer:
appendTravelOrder(g, 'turnActions', g.turnActionPromises.length - 1);
}
function reconcileTurnActionPromises(g: Game, actor?: string, action?: Action, sourcePhase = g.phase) {
const suspendedKull = g.pendingTreacheryDiscard?.continuation.kind === 'kullSuccessDiscard' ||
g.pendingTreacheryDiscard?.continuation.kind === 'kullCounterDiscard';
if (g.pendingKull || suspendedKull) return;
reconcileTurnActionCombat(g);
reconcileTurnActionWindowCards(g);
for (const row of g.turnActionPromises ?? []) {
@@ -22493,6 +22603,7 @@ function projectedTurnActionGuide(g: Game, player: Player): { event: string; act
return action ? { event: row.event, action: { ...action,
turnActionPromiseEvent: row.event, turnActionPromisePhase: g.phase } } : null;
}
if (g.pendingKull) return null;
const ownedBox = g.decision?.kind === 'nullentropy' && g.pendingNullentropy?.player === player.id;
const ownedInvoice = g.decision?.kind === 'auctionPayment' && g.decision.player === player.id;
const saphoExtortion = g.decision?.kind === 'moritaniExtortion' &&
+1 -1
View File
@@ -14,7 +14,7 @@ export const FACTION_RULES: Record<
'Use Kulon on your movement turn to add one territory of range. Use La La La during Revival to prevent a player’s free force returns for the phase; a reactive decision lets you stop a pending free revival before it resolves. Both cards have Karama responses before discard.',
'Trip to Gamont returns one other player’s force from a chosen sector to its reserves during Mentat. Elite types are preserved. A Karama response precedes the return, and CHOAM gets a final opportunity after the closing market before victory is checked.',
'Baliset prevents a player from moving into a territory occupied by CHOAM for the turn, while permitting shipment. Jubba Cloak protects CHOAM forces in one territory from a moving storm. Both powers have Karama responses before the card is discarded.',
'New supported Basic lobbies with CHOAM and the CHOAM and Ix decks enable the Kull preview by default; the host may turn it off. Each selected faction needs its deck, and other optional modules remain outside this profile. React to a legal Karama attempt with held Kull Wahad before costs. The original card stays reserved; only a different eligible Karama can counter before the phase ban applies. Success spends Kull, retains the original unplayed card and prevents the activating player’s Karama uses for the phase. Decline or prevention resumes the original once; a prevented Kull stays held but its physical card’s effect is blocked that phase. With Richese, supported Kull and counter discards offer Semuta; ordinary bribe, Revival and alliance, simple and mixed current-lot bid, and phase-wide bid questions are supported. Combined turn-action questions and unfunded non-CHOAM Karama-dependent overbids remain deferred; see the Kull guide. Complete CHOAM rules remain unfinished.',
'New supported Basic lobbies with CHOAM and the CHOAM and Ix decks enable the Kull preview by default; the host may turn it off. Each selected faction needs its deck, and other optional modules remain outside this profile. React to a legal Karama attempt with held Kull Wahad before costs. The original card stays reserved; only a different eligible Karama can counter before the phase ban applies. Success spends Kull, retains the original unplayed card and prevents the activating player’s Karama uses for the phase. Decline or prevention resumes the original once; a prevented Kull stays held but its physical card’s effect is blocked that phase. With Richese, supported Kull and counter discards offer Semuta; ordinary bribe, Revival and alliance, simple and mixed current-lot bid, and phase-wide bid questions are supported. Combined turn-action questions are available in the supported Basic profile, with some Karama uses still guarded. Unfunded non-CHOAM Karama-dependent overbids remain deferred; see the Kull guide. Complete CHOAM rules remain unfinished.',
],
advanced: [
'Once per game, spend a real Karama and discard selected other cards for three spice each. The cash-in can occur during pending phase or power decisions, while committed battle cards remain protected. See the CHOAM special Karama topic for funding and timing details.',
+3 -2
View File
@@ -3316,6 +3316,7 @@ export const RULE_TOPICS: RuleTopic[] = [
steps: [
'In a quiet Basic Storm, Spice Blow, Charity, Bidding, Revival or Shipment and Movement window, ask whether a player will use a named native leader in their first later battle this turn, if one occurs. Storm must have a pending movement after the dials; Spice Blow must be before the draw. The answer waits for an actual battle; if none occurs, it expires. This separate provisional question currently supports classic factions without optional modules and uses only currently available leaders for its answer.',
'Choose Combine printed card plays, native battle powers and this turn’s other actions. Full AND/OR groups share sixteen logical leaves and four grouping levels, with optional current facts. This is a provisional composition of original-window card plays, native power declarations, printed Hajr/Ghola use, current battle decisions, final Nexus membership, current-lot bids, ordinary Revival, funded payments and owned-stage travel; wider action families and optional combinations remain unfinished.',
'The supported bare Basic printed-Kull profile also permits these questions, including with Richese and Semuta. The answer remains bound while Kull or its counter is resolving; some Karama uses remain guarded until their effects can be quoted without assuming hidden or foreign outcomes.',
'A final-alliance clause names another current participant during this original quiet native Nexus. Existing invitations and reciprocal formation remain authoritative. Offers, temporary membership and your own Ready do not settle the clause; final actual membership is fixed only when the Nexus closes.',
'Whole No can permit a temporary paid pair and later require a break. Own Ready must preserve a completion after final membership is fixed; remaining payment or physical-action alternatives keep their later deadlines. Definite answers, including constants, uniformly reopen own Nexus readiness; later ordinary payments require confirmation again.',
'Missing foreign consent can offer I don’t know and save or change the question; it never invents a definite Yes. Unknown requires an otherwise funded native completion, so a known unaffordable branch stays No. Foreign withdrawal can release impossibility without vetoing the other player’s rights.',
@@ -4862,7 +4863,7 @@ export const RULE_TOPICS: RuleTopic[] = [
summary: 'React before a Karama is played; a distinct counter can stop Kull before its phase restriction begins.',
steps: [
'In a new supported Basic lobby with CHOAM and the CHOAM and Ix decks, printed Kull is enabled by default as a development preview. The host may turn it off to keep the broader non-Kull Truthtrance options. Basic supports Richese, Ixians, Tleilaxu, Ecaz, Moritani and classic factions with each seated faction’s deck and no other optional modules. In an Advanced preview lobby, the host may explicitly select printed Kull with CHOAM, classic factions and exactly the CHOAM and Ix decks, without optional modules. Advanced supports Bene Gesserit substitutions and legal special powers. Both previews withhold some structured questions and defer unfunded non-CHOAM Karama-dependent bids. Existing games are not retrofitted, and this warning does not certify complete rules.',
'In the supported Basic printed Kull preview, simple and mixed current-lot ordinary bid, phase-wide bid, ordinary bribe, Revival and alliance questions are available, including with Richese and Semuta. A pending Kull response holds their controls while the original transaction resolves. Combined turn-action questions and wider interactions remain incomplete.',
'In the supported Basic printed Kull preview, simple and mixed current-lot ordinary bid, phase-wide bid, ordinary bribe, Revival and alliance questions are available, including with Richese and Semuta. Combined turn-action questions are also available in this profile. A pending Kull response holds their controls while the original transaction resolves; some Karama uses remain guarded. Wider interactions remain incomplete.',
'Another player’s legal Karama cancellation, shipment-rate use, immediate auction purchase, winning-bid payment or supported special activation pauses before its card and other costs. CHOAM sees the attempted player and purpose and may decline or choose a legal held Kull Wahad. Each Use names its printed source explicitly. The separate Nexus Kull guide covers additional Cunning costs in its new profile only. The same public opportunity appears without Kull in hand, so waiting does not disclose hidden ownership. Invalid attempts never open this window; CHOAM does not receive a self-targeted Kull offer.',
'Decline resumes the original attempt once. Declaring Kull opens the ordinary CHOAM-effect response. Kull is still pending: its target may counter with a different eligible physical Karama before any phase ban applies. The interrupted card stays reserved and cannot serve as its own counter. Other eligible responders use their existing response controls.',
'If everyone allows Kull, CHOAM discards the exact Kull card. The original attempted card remains in its owner’s hand; its effect and additional costs do not occur, and an attempted special once-per-game use remains unspent. Basic prevents that player’s Karama activations for this phase. A new Advanced attempt instead prevents only the specific effect: shipment pricing, free Treachery purchase, that faction’s special, or cancellation of the particular advantage. Other effects remain available; printed and substituted Karama share the same restriction. An allied shipment recipient is not automatically the restricted player.',
@@ -4877,7 +4878,7 @@ export const RULE_TOPICS: RuleTopic[] = [
example: 'Bene Gesserit attempts to use Baliset as Karama. CHOAM declares Kull. Baliset cannot also counter Kull; a different eligible Karama may. If Kull succeeds, Baliset stays held; in a new Advanced attempt BG cannot repeat that specific Karama effect this phase but may use another legal effect. If a distinct counter prevents Kull, the original Baliset attempt proceeds to its normal conversion response.',
related: ['choam-worthless', 'nexus-choam-kull', 'faction-choam', 'card-karama', 'advanced-beneGesserit', 'special-karama', 'bidding', 'choam-karama', 'nexus-cards', 'implementation-checklist'],
checklist: [
{ area: 'Implementation', status: 'Partial', detail: 'Selectable Kull binds typed intents, distinct physical counters and Basic/legacy all-purpose or new Advanced semantic-effect restrictions. Different effects remain playable; phase expiry is provisional in Advanced. Basic printed Kull admits native Richese, Ixians, Tleilaxu, Ecaz and Moritani; supported clean Kull discards offer Semuta before their suspended parent resumes. Simple and mixed current-lot bid, phase-wide bid, ordinary bribe, Revival and alliance commitments can coexist with this preview including Richese. Deferred overbid recovery, whole-turn answers and broader module support remain excluded.', evidence: ['game/choam-kull.ts', 'game/kull-purpose.ts', 'game/bribe-promises.ts', 'game/engine.ts', 'tests/kull-bid-runtime.test.ts', 'tests/kull-phase-bid-runtime.test.ts', 'tests/kull-richese-phase-bid-runtime.test.ts', 'tests/kull-richese-current-bid-runtime.test.ts', 'tests/kull-richese-mixed-bid-runtime.test.ts', 'tests/kull-richese-bribe-runtime.test.ts', 'tests/kull-richese-bribe-truth-semuta.test.ts', 'tests/kull-richese-bribe-table-controls.test.tsx', 'tests/kull-richese-revival-commitment.test.ts', 'tests/kull-richese-revival-truth-semuta.test.ts', 'tests/kull-richese-alliance-semuta.test.ts', 'tests/kull-richese-alliance-worm-ride.test.ts', 'tests/kull-richese-alliance-table-controls.test.tsx', 'tests/kull-truth-revival-runtime.test.ts', 'tests/kull-alliance-runtime.test.ts', 'tests/kull-richese-semuta-runtime.test.ts'] },
{ area: 'Implementation', status: 'Partial', detail: 'Selectable Kull binds typed intents, distinct physical counters and Basic/legacy all-purpose or new Advanced semantic-effect restrictions. Different effects remain playable; phase expiry is provisional in Advanced. Basic printed Kull admits native Richese, Ixians, Tleilaxu, Ecaz and Moritani; supported clean Kull discards offer Semuta before their suspended parent resumes. Simple and mixed current-lot bid, phase-wide bid, ordinary bribe, Revival and alliance commitments can coexist with this preview including Richese. Combined turn-action answers use guarded Kull continuation; some cancellation parents, deferred overbid recovery and broader module support remain excluded.', evidence: ['game/choam-kull.ts', 'game/kull-purpose.ts', 'game/bribe-promises.ts', 'game/engine.ts', 'tests/kull-bid-runtime.test.ts', 'tests/kull-phase-bid-runtime.test.ts', 'tests/kull-richese-phase-bid-runtime.test.ts', 'tests/kull-richese-current-bid-runtime.test.ts', 'tests/kull-richese-mixed-bid-runtime.test.ts', 'tests/kull-richese-bribe-runtime.test.ts', 'tests/kull-richese-bribe-truth-semuta.test.ts', 'tests/kull-richese-bribe-table-controls.test.tsx', 'tests/kull-richese-revival-commitment.test.ts', 'tests/kull-richese-revival-truth-semuta.test.ts', 'tests/kull-richese-alliance-semuta.test.ts', 'tests/kull-richese-alliance-worm-ride.test.ts', 'tests/kull-richese-alliance-table-controls.test.tsx', 'tests/kull-truth-revival-runtime.test.ts', 'tests/kull-alliance-runtime.test.ts', 'tests/kull-richese-semuta-runtime.test.ts'] },
{ area: 'Player controls', status: 'Partial', detail: 'Owner-only legal held costs and decline use the Kull event; counters reuse ordinary response controls. Public viewers receive purpose/actors, not private intent payloads or hidden choices.', evidence: ['components/choam-kull.tsx', 'components/game-table.tsx'] },
{ area: 'AI', status: 'Partial', detail: 'Legal preview participation uses projected reactor choices and ordinary distinct counter controls. Full strategy and difficulty calibration remain deferred.', evidence: ['game/bot-choam-kull.ts', 'game/bots.ts'] },
{ area: 'Documentation', status: 'Partial', detail: 'Pending versus active restrictions, distinct custody, decline/prevention/success, BG-before-conversion and deferred overbid limits have internal explanations. Publisher-source and full-faction acceptance remain separate.', evidence: ['docs/CHOAM_KULL_DESIGN.md', 'docs/CHOAM_KULL_SOURCE_UPDATE.md', 'docs/NEXUS_CHOAM_RULES.md'] },
+4 -4
View File
@@ -1,5 +1,5 @@
import { TERRITORIES, validLocation } from './board';
import { BribePromiseError, parseBribeClaim } from './bribe-promises';
import { BribePromiseError, bribePromiseModeSupported, parseBribeClaim } from './bribe-promises';
import { BidPromiseError, parseBidClaim } from './bid-promises';
import { AlliancePromiseError, parseAllianceClaim } from './alliance-promises';
import { parseRevivalActionClaim, type RevivalActionClaim } from './mixed-revival-question';
@@ -34,10 +34,10 @@ export const TURN_ACTION_MAX_DEPTH = 4;
/** Native whole answers retain Semuta's own discard continuation. Other
* unsupported interruption/module envelopes stay separately gated. */
export function turnActionPromiseModeSupported(game: NativePromiseScope & {
kullPreview?: unknown; nexusKullPreview?: unknown; richeseBetrayalPreview?: unknown;
kullPreview?: unknown; semutaPreview?: unknown; nexusKullPreview?: unknown; richeseBetrayalPreview?: unknown;
}): boolean {
return nativePromiseScopeSupported(game) && !game.kullPreview &&
!game.nexusKullPreview && !game.richeseBetrayalPreview;
return nativePromiseScopeSupported(game) && !game.nexusKullPreview && !game.richeseBetrayalPreview &&
(!game.kullPreview || game.kullPreview === true && !game.advanced && bribePromiseModeSupported(game));
}
export type TurnActionLeaf = TravelActionClaim | StormDialClaim | { kind: 'payment'; recipient: string; minimum: number } |