1
0
Fork 0
polaris-task-force/docs
Z8MB1E de27a53044 feat(npc-dialogue): make the AI prompt voice configurable
The system prompt was a single constant, so tuning how drafted dialogue
sounds meant editing code and redeploying. Split it into the half that is
copy and the half that is a contract.

VOICE and optional HOUSE RULES are now editable from a new
`npc-dialogue-settings` global, and per conversation through an
`voiceOverride` field on `npc-dialogues`. Precedence is dialogue, then
global, then the built-in default, resolved by the pure `resolveVoice`.
STRUCTURE, FIELDS, STATE, OUTPUT and the worked example stay in
`LOCKED_RULES`: the draft validator enforces the same rules, so an edit
there would make every draft fail for reasons an author cannot trace.

Both surfaces render the assembled prompt through the same pure
composer the server calls, so the preview cannot drift from what the
model receives. The global normalises dashes on save, bumps `revision`
only on a real text change, and keeps 20 versions for rollback.

Provenance gains `promptSource` and `promptRevision` so a stored draft
still names the voice that shaped it. A draft that fails twice while a
custom voice is active now says so, instead of looking like a model bug.

`composeDialogueSystemPrompt()` with no arguments reproduces the old
prompt byte for byte, pinned by a golden fixture.
2026-11-24 12:53:33 -05:00
..
.logs docs(deployment): update deployment diagram for clarity and add subtask log 2026-08-14 21:21:16 -04:00
arma-bridge feat(lockers): seed and unlimited-stock sync for limited arsenal 2026-11-20 19:52:15 -05:00
backups/pre-agents-split-20261009 docs(agents): split domain guidance into nested AGENTS.md files 2026-10-09 15:46:36 -04:00
bot feat(evaluations): gate leadership ratings by rank instead of squad assignments 2026-10-25 02:53:49 -04:00
case-studies docs: add AGENTS.md subdirectories and login case study 2026-08-19 19:48:35 -04:00
economy feat(economy): add economy tick with demand simulation and price modifiers 2026-09-06 17:22:30 -04:00
operations chore(operations): rollout controls, reconciliation, and bridge recovery 2026-09-20 02:45:00 -04:00
map-system.md feat(map-objectives): superuser-authored strategic objectives on mission maps 2026-10-27 02:12:31 -04:00
npc-dialogue-ai.md feat(npc-dialogue): make the AI prompt voice configurable 2026-11-24 12:53:33 -05:00
operation-timeline.md docs: add POLARIS operations timeline with campaign spine and branch stubs 2026-11-22 18:44:10 -05:00
wiki-demo-article.md docs(wiki): reword demo article examples 2026-09-06 17:23:03 -04:00
wiki-infobox-template.md feat(wiki): add scoped template CSS and developer HTML templates 2026-09-06 05:32:48 -04:00