feat(memory): implement stability stage
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -203,5 +203,12 @@ while (Date.now() < deadline) {
|
||||
}
|
||||
if (!completed) throw new Error('[smoke] Multiplayer round did not resolve within 120 seconds.')
|
||||
if (!completed.rounds.find(round => round.id === roundId)?.narration) throw new Error('[smoke] Resolved round has no narration.')
|
||||
if (!completed.sceneState || !Array.isArray(completed.memories) || !Array.isArray(completed.relationships) || !Array.isArray(completed.activeGoals)) {
|
||||
throw new Error('[smoke] Campaign memory and world-state projections are missing from the shared campaign response.')
|
||||
}
|
||||
const usage = await appRequest('/api/v1/usage', owner.token)
|
||||
if (!usage?.totals || usage.totals.requests < 3 || usage.quota.usedToday < 2) {
|
||||
throw new Error('[smoke] AI usage telemetry or quota reservations were not recorded for the full-party flow.')
|
||||
}
|
||||
|
||||
console.log(`[smoke] PASS — 2 players, AI character drafting, persistent companion, shared readiness, worker resolution, and next round all work (campaign ${campaignId}).`)
|
||||
console.log(`[smoke] PASS — full party, AI drafting, persistent companions, shared readiness, atomic resolution, memory state, usage telemetry, and the next round all work (campaign ${campaignId}).`)
|
||||
|
||||
Reference in New Issue
Block a user