prelude/postlude, prolog/epilog

  • prelude and postlude
  • prolog and epilog

prelude

  1. something that serves as a preceding event or introduces what follows
  2. music that precedes a fugue or introduces an act in an opera
  3. A standard module or library of subroutines and functions to be imported, generally by default, into a program
    • https://en.wiktionary.org/wiki/prelude

prolog / prologue

  1. A speech or section used as an introduction, especially to a play or novel.
  2. A name of programming language

A prologue or prolog is an opening to a story that establishes the setting and gives background details, often some earlier story that ties into the main one, and other miscellaneous information.

-- https://en.wikipedia.org/wiki/Prologue