The questions
You edit the TOML file. There is no prompt screen.
Each [[criteria]] table is one question the monitor asks the classifier. The
instructions line is the question. The other fields are the answers that
question is allowed to give.
The harness sends the note: the chat messages, or the systemone state, with
tool names written on the front. The file supplies the questions. One knock
becomes one System One batch, and the batch holds only the questions whose
faces include that door.
The file is the one the process started with. The first argument wins, then
HALL_MONITOR_CONFIG, then ./hall-monitor.toml. POST /admin/reload with
the Hall Monitor bearer re-reads that same file. A file that fails to parse
stays off the wall, and the questions already loaded keep running.
The first question means the file also has a [classifier] block. No
questions, and that block can stay out. The shell around the tables below is a
front-door key, a listen block, one conversational backend, and a classifier.
Yes or no
kind = "noul" asks for a probability. yes and no are the two stories the
classifier is choosing between. Leave faces out and both doors hear it.
[[criteria]]
id = "pii"
kind = "noul"
instructions = "The request contains personal data, secrets, or regulated identifiers."
yes = "Names, emails, account numbers, health data, credentials, or private customer data appear."
no = "No personal or secret data."
Load
.fromString(
file("""
[[criteria]]
id = "pii"
kind = "noul"
instructions = "The request contains personal data, secrets, or regulated identifiers."
yes = "Names, emails, account numbers, health data, credentials, or private customer data appear."
no = "No personal or secret data."
"""),
_ => None,
)
.map(summarize)pii noul doors=Conversational,Decision | The request contains personal data, secrets, or regulated identifiers. | yes: Names, emails, account numbers, health data, credentials, or private customer data appear. | no: No personal or secret data.A scale
kind = "score" asks where the note sits on a rubric. levels run from light
to heavy. Two to ten of them, with no repeats. faces keeps this one at the
conversation door.
[[criteria]]
id = "weight"
kind = "score"
instructions = "How heavy is the reasoning this request needs?"
levels = ["trivial", "light", "moderate", "heavy"]
faces = ["conversational"]
Load
.fromString(
file("""
[[criteria]]
id = "weight"
kind = "score"
instructions = "How heavy is the reasoning this request needs?"
levels = ["trivial", "light", "moderate", "heavy"]
faces = ["conversational"]
"""),
_ => None,
)
.map(summarize)weight score doors=Conversational | How heavy is the reasoning this request needs? | trivial < light < moderate < heavyA labeled choice
kind = "choice" asks the classifier to pick a label. The descriptions live in
[criteria.options], and that table belongs to the question directly above it.
A later [[criteria]] starts a new question, and an options table after that
one labels the new question.
[[criteria]]
id = "task"
kind = "choice"
instructions = "What kind of work is this?"
faces = ["conversational"]
[criteria.options]
coding-light = "A small edit, rename, format, or short snippet."
coding-heavy = "Architecture, a large refactor, or multi-file design."
chat = "Conversation, explanation, or writing without a code change."
Load
.fromString(
file("""
[[criteria]]
id = "task"
kind = "choice"
instructions = "What kind of work is this?"
faces = ["conversational"]
[criteria.options]
coding-light = "A small edit, rename, format, or short snippet."
coding-heavy = "Architecture, a large refactor, or multi-file design."
chat = "Conversation, explanation, or writing without a code change."
"""),
_ => None,
)
.map(summarize)task choice doors=Conversational | What kind of work is this? | chat=Conversation, explanation, or writing without a code change., coding-heavy=Architecture, a large refactor, or multi-file design., coding-light=A small edit, rename, format, or short snippet.The options table remembers the room
Put the choice first and a yes/no after it, then write [criteria.options].
The table labels the yes/no. The choice is left with an empty menu, and a
yes/no refuses options. Move the table back up so it sits on the choice.
Load.fromString(
file("""
[[criteria]]
id = "task"
kind = "choice"
instructions = "What kind of work is this?"
faces = ["conversational"]
[[criteria]]
id = "pii"
kind = "noul"
instructions = "The request contains personal data."
yes = "A name appears."
no = "No personal data."
[criteria.options]
coding-light = "A small edit."
"""),
_ => None,
)Invalid(List(ChoiceSize(task,0), ForeignField(pii,options)))A question nobody's rule names
A [[rules]] table names a question and says what the answer may do:
yesAtLeast, choice, atLeast, atMost. Until a rule names the question,
the monitor can ask it, write down a loud yes, and still hand the note to the
default model.
Hall.chosen(
ModelKind.Conversational,
Map(CriterionId("pii") -> Answer.Noul(Probability.unsafely(0.99))),
rules = Hall.policy.copy(rules = Nil),
)Right(public-fast)Which file
The first argument is the file. With no argument, HALL_MONITOR_CONFIG is the
file. With neither, the process reads ./hall-monitor.toml.
Load.resolvePath(List("desk.toml"), _ => None).toStringdesk.tomlLoad.resolvePath(Nil, Map("HALL_MONITOR_CONFIG" -> "wall.toml").get).toStringwall.tomlLoad.resolvePath(Nil, _ => None).toStringhall-monitor.toml