refactor(architect): Add self description for intent decoder and refine context (#22)

This commit is contained in:
2026-07-11 09:11:49 +05:30
parent 9bdc3ca04b
commit bfff93e793
12 changed files with 106 additions and 36 deletions

View File

@@ -62,6 +62,7 @@ describe("Actor Agent + Monologue Intent Integration (Tier 2)", () => {
type: "monologue",
originalText: "I can't believe Bob hasn't noticed me yet, Alice thought.",
description: "Alice internally reflects that Bob has not noticed her.",
selfDescription: "You internally reflect that Bob has not noticed you.",
actorId: "alice",
targetIds: [],
},
@@ -69,6 +70,7 @@ describe("Actor Agent + Monologue Intent Integration (Tier 2)", () => {
type: "dialogue",
originalText: '"Hey Bob," she called out softly.',
description: "Alice softly calls out to Bob.",
selfDescription: "You softly call out to Bob.",
actorId: "alice",
targetIds: ["bob"],
},
@@ -76,6 +78,7 @@ describe("Actor Agent + Monologue Intent Integration (Tier 2)", () => {
type: "action",
originalText: "She reached for the ledger on the table.",
description: "Alice reaches for the ledger on the table.",
selfDescription: "You reach for the ledger on the table.",
actorId: "alice",
targetIds: [],
},

View File

@@ -33,6 +33,7 @@ describe("Omnia Integration Tests (Tier 2)", () => {
type: "dialogue",
originalText: '"Cover me," Alice whispered to Bob.',
description: "Alice whispers to Bob to cover her.",
selfDescription: "You whisper to Bob to cover you.",
actorId: "alice",
targetIds: ["bob"],
},
@@ -40,6 +41,7 @@ describe("Omnia Integration Tests (Tier 2)", () => {
type: "action",
originalText: "She crept towards the door and pulled the handle.",
description: "Alice creeps to the door and pulls the handle.",
selfDescription: "You creep to the door and pull the handle.",
actorId: "alice",
targetIds: [],
},
@@ -108,6 +110,7 @@ describe("Omnia Integration Tests (Tier 2)", () => {
type: "action" as const,
originalText: "She tries to unlock the gate with a hairpin.",
description: "Alice attempts to pick the lock with a hairpin.",
selfDescription: "You attempt to pick the lock with a hairpin.",
actorId: "alice",
targetIds: [],
};
@@ -116,6 +119,7 @@ describe("Omnia Integration Tests (Tier 2)", () => {
type: "dialogue" as const,
originalText: '"This is useless," she mutters.',
description: "Alice mutters to herself.",
selfDescription: "You mutter to yourself.",
actorId: "alice",
targetIds: [],
};