1
0
Fork 0
polaris-task-force/docs
Z8MB1E 7adfcde72d fix(npc-dialogue): keep the conversation reachable when a branch attaches
Review findings, all in code this range introduced.

Attaching a branch to a node that already had a next step replaced that
hop, and "come back where it attached" pointed the branch back at the
caller, which loops: the caller then leads into the branch it just
returned from. Everything downstream was orphaned. The branch now
continues into the step that hop used to point at, so attaching inserts
in front of it instead of deleting it. Rejoining a condition is refused
outright, because re-entering re-evaluates the same flags and retakes the
same branch. Return candidates are limited to node types that read
`next`: a choice or condition open end would have received a hop no
walker follows.

The dialog says which of the three applies, and only offers the toggle
when a return exists, so an untouched default is not sent and reported
back as a refusal.

Condition true/false dots were drawn on the input handle: the hit-area
class sets left and right on the handle itself, which over-constrains
React Flow's `right: 0`, so both dots drifted to the card's left edge.
They now take the hit area as a child, like the other handles.

Refusals are honest: `connectHop` reports `changed: false` for a write it
did not make (it used to report true and return a new array), the editor
explains instead of rewriting an identical graph, and a refused
tail-drag keeps the original hop rather than deleting it first.

A passing connection test now really is invalidated when the
configuration changes. That ran in `afterChange`, whose return value is
only the operation's response, so the stored row kept showing a stale
pass while the test asserted the response. It moved to `beforeChange`,
counts only fields actually submitted (so the Test button's own result
write does not invalidate itself), and the test reads the row back.

Also: the fragment prompt no longer teaches `isStart: true` through the
worked example or asks for "the whole conversation" on retry; requests
carry a ten minute ceiling so an unreachable-but-accepting host cannot
hang Generate, Compose or the Test button; the API key description no
longer claims at-rest encryption, which does not exist; the per-dialogue
voice override gets the same dash and length cleaning as the global it
outranks; and the unused `describeAttachmentPoint` is gone, with the
attachment output now included in the hint the model receives.
2026-11-24 14:47:08 -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
ai-settings.md fix(npc-dialogue): keep the conversation reachable when a branch attaches 2026-11-24 14:47:08 -05: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 fix(npc-dialogue): keep the conversation reachable when a branch attaches 2026-11-24 14:47:08 -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