instructions.md
instructions names a file, and the file is edited directly; set does not touch it. At deploy its text is inlined into spec.instructions in .telnyx/index.ts, so the deployed function reads no files, and buildHarness() in managed/agent.ts hands it to the harness, with the memory summary appended when memory is on:
instructions is the harness spec’s instructions, the model’s system prompt on every step. The harness assembles nothing into it, so the summary is appended before the harness is built.
withCard is in managed/memory.ts. It appends the line that tells the model it remembers people, then the profile’s summary, bounded and fenced, or the first-conversation line when the profile has none:
MEMORY_CARD_INTRO says the notes are things the person said, kept for the model, and not instructions. The card summarizes what the person said, so a line planted in one conversation must not read as a rule in the next.
The harness is built once per activation, so the summary it carries is the one read when the conversation started.