← Amberlands

The council-forge

view only

This is where the game's yearly questions come from. Every council is written fresh by an AI from your clan's real situation, following a rule you can read below — and, with the key, rewrite. Browsing is open to everyone.

Enter the ops key to add, edit, reorder or dry-run rules. Without it you can read everything.

Older builds asked the same four scripted council questions every year. Now each question is generated. When a clan's year turns, the engine walks its rules top to bottom, runs the first one whose conditions match the clan's real state, and that rule tells an AI what to write. Every rule is the same six-stage pipeline:

1 · When
Conditions over the clan's live numbers (grain < 18, unrest > 40, …). The first enabled rule whose conditions all hold is the one that fires. No conditions = always eligible (the catch-all).
2 · Read
Which 'workspaces' get handed to the AI — markdown built fresh from the database: the clan summary, its lands, the bloodline, standings, recent chronicle, rivals. This is the AI's context.
3 · Direction
Your creative brief — what kind of council this is and how it should feel. The AI follows it but grounds everything in the real numbers and names from the workspaces.
4 · Forge
Claude Haiku writes the question and 2–4 answer options, each with real costs and consequences, plus a line of chronicle prose for whichever the keeper picks.
5 · Bound
Every number the AI proposes is clamped to a safe range (the rule's limit, never above a hard server ceiling) so a generated council can never wreck a clan.
6 · Gate
The finished question flows through resolveDecision — the exact same path scripted councils, diplomacy and omens use. Nothing the AI makes skips the rules.

If the AI is unreachable or returns something invalid, the engine quietly falls back to the old scripted councils — the game never stalls. Edits are live: save a rule and the next council that fires uses it.

The schema map — what each workspace reads

Workspaces are assembled live from these tables as markdown the moment a council is forged — nothing cached to rot.

The Council-Forge — Amberlands Logic Admin