Files
LLeMbas-CLI/harness/conformance/last_model.json
T
HomerandClaude Fable 5.2 55706542a4
ci / check (push) Canceled after 0s
Review of spec 3.9.0: a schedule's run is never a person's turn
From an independent review of the round. Spec and CLI together.

- A scheduled prompt for a session open in a terminal is judged, then
  refused (data.reason terminal) instead of being passed to the terminal as
  a person's turn on the terminal's model.
- A schedule's session keeps its model with it: opened from the store again
  — or in a terminal — it is on the model it had, and stays a schedule's
  session there (nothing in it becomes the directory's model).
- On a refused scheduled turn nothing about the session is changed; a
  command's interactive-only model in one is the same -32602 with its
  reason. In a schedule's session a turn a job wakes, and a subagent started
  with no person's turn running, are still scheduled work.
- A rerouted title or summary is counted under the model that was asked and
  that model is named; a model that cannot take a summary (window too
  small, no tools) is nowhere to go.
- A borrowed model is given back with returnModel, so a command whose model
  is the session's own leaves nothing borrowed. What is remembered goes
  through records(), the rule the conformance cases test; a change of model
  inside a turn the harness started is not remembered.
- models.json: a directory's time is refreshed as it is used; a write stats
  nothing, and gone directories are dropped apart from any turn.
- lembas run with no terminal says the way forward, in the refusal and in
  --help.
- Permission rules: a rule written again (the same permission and pattern,
  later) sets the earlier one aside, as a narrower one does. Cases pin it.
- Conformance and the examples use made-up model names.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-18 00:45:03 +00:00

379 lines
11 KiB
JSON

{
"about": "Spec 3.9.0 (acp.md *The model last used in a directory*; *Scheduled work*, *The run's model*). Three kinds. `kind: start` — the device: which model a session of its own starts on. `asked`: the model asked for at the start (--model; model / lembas_model in session/new); `project`: `model` in a trusted project's configuration; `directory`: the model remembered for exactly this directory; `global`: `model` in the device's global configuration; `served`: the ids the login serves now; `default`: the instance's default. → `{model, from}`, `from` one of `asked`, `project`, `directory`, `global`, `default`. Only the directory's model is checked against `served` and skipped when it is not there; the others are taken as written (a model nobody serves is that source's own error, as before). `kind: record` — the device: whether something makes the session's model the directory's. `session`: `terminal`, `link` (a session the client opened, or a terminal's shared one), `stdio`, `run` (one-shot lembas run) or `scheduled` (a session a schedule opened for its run); `agent`: `main` or `subagent`; `what`: `turn` (a turn begins; `machine: true` when the harness started it), `change` (the session's model is changed: /model, a setting, _lembas/configure; `machine: true` when it happens inside a turn the harness started) or `command` (a command's own model, for its prompt). → true or false. `kind: client` — the client (LLeMbas): the model a new agent chat on a device and directory, or a schedule's run there, starts on. `named`: the model the person chose for the chat, or the schedule names (absent: none); `directory`: `model` of the directory in the device's _lembas/directories answer (absent: none, an older device, or a device not asked); `has`: the models the person has now; `default`: what a chat or schedule without a model started on before 3.9.0. `scheduled: true`: it is a schedule's run, for which the directory's model counts only when it is not one of `interactive_only` (interactive.md §2; a person's chat may start on such a model). → `{model, from}`, `from` one of `named`, `directory`, `default`. CLI: src/session/lastmodel.ts.",
"cases": [
{
"about": "Nothing but the instance's default.",
"kind": "start",
"served": [
"open/flash",
"open/large"
],
"default": "open/flash",
"expect": {
"model": "open/flash",
"from": "default"
}
},
{
"about": "The global setting — what a login writes — over the instance's default.",
"kind": "start",
"global": "open/large",
"served": [
"open/flash",
"open/large"
],
"default": "open/flash",
"expect": {
"model": "open/large",
"from": "global"
}
},
{
"about": "The model last used in this directory over the global setting.",
"kind": "start",
"directory": "other/coder",
"global": "open/large",
"served": [
"open/flash",
"open/large",
"other/coder"
],
"default": "open/flash",
"expect": {
"model": "other/coder",
"from": "directory"
}
},
{
"about": "The project's setting over the directory's memory: it is written down on purpose.",
"kind": "start",
"project": "open/large",
"directory": "other/coder",
"global": "open/flash",
"served": [
"open/flash",
"open/large",
"other/coder"
],
"default": "open/flash",
"expect": {
"model": "open/large",
"from": "project"
}
},
{
"about": "The model asked for over everything.",
"kind": "start",
"asked": "open/flash",
"project": "open/large",
"directory": "other/coder",
"global": "open/large",
"served": [
"open/flash",
"open/large",
"other/coder"
],
"default": "open/large",
"expect": {
"model": "open/flash",
"from": "asked"
}
},
{
"about": "The remembered model is no longer served: skipped, the global setting decides.",
"kind": "start",
"directory": "other/coder",
"global": "open/large",
"served": [
"open/flash",
"open/large"
],
"default": "open/flash",
"expect": {
"model": "open/large",
"from": "global"
}
},
{
"about": "…and with no global setting, the instance's default.",
"kind": "start",
"directory": "other/coder",
"served": [
"open/flash",
"open/large"
],
"default": "open/flash",
"expect": {
"model": "open/flash",
"from": "default"
}
},
{
"about": "A global setting is not checked against the list here: it is taken as written.",
"kind": "start",
"global": "old/model",
"served": [
"open/flash"
],
"default": "open/flash",
"expect": {
"model": "old/model",
"from": "global"
}
},
{
"about": "A person's turn in a terminal.",
"kind": "record",
"session": "terminal",
"agent": "main",
"what": "turn",
"expect": true
},
{
"about": "A person's turn in a session the client opened.",
"kind": "record",
"session": "link",
"agent": "main",
"what": "turn",
"expect": true
},
{
"about": "An editor's session.",
"kind": "record",
"session": "stdio",
"agent": "main",
"what": "turn",
"expect": true
},
{
"about": "The person switches model.",
"kind": "record",
"session": "terminal",
"agent": "main",
"what": "change",
"expect": true
},
{
"about": "The chat's model is changed from the client between turns.",
"kind": "record",
"session": "link",
"agent": "main",
"what": "change",
"expect": true
},
{
"about": "A turn the harness started — a finished job's note — is nobody's choice.",
"kind": "record",
"session": "terminal",
"agent": "main",
"what": "turn",
"machine": true,
"expect": false
},
{
"about": "A subagent's model is not the directory's.",
"kind": "record",
"session": "terminal",
"agent": "subagent",
"what": "turn",
"expect": false
},
{
"about": "A command's own model holds for its prompt only.",
"kind": "record",
"session": "terminal",
"agent": "main",
"what": "command",
"expect": false
},
{
"about": "A one-shot run from a script.",
"kind": "record",
"session": "run",
"agent": "main",
"what": "turn",
"expect": false
},
{
"about": "A scheduled run never becomes the directory's model.",
"kind": "record",
"session": "scheduled",
"agent": "main",
"what": "turn",
"expect": false
},
{
"about": "…nor does a model change on a schedule's session.",
"kind": "record",
"session": "scheduled",
"agent": "main",
"what": "change",
"expect": false
},
{
"about": "A change of model made inside a turn the harness started — a model's own settings call there — is nobody's choice.",
"kind": "record",
"session": "terminal",
"agent": "main",
"what": "change",
"machine": true,
"expect": false
},
{
"about": "A person's turn in a session a schedule opened, wherever it is open: still the schedule's session.",
"kind": "record",
"session": "scheduled",
"agent": "main",
"what": "turn",
"expect": false
},
{
"about": "A new agent chat, no model chosen, the directory remembers one the person has.",
"kind": "client",
"directory": "other/coder",
"has": [
"open/flash",
"other/coder"
],
"default": "open/flash",
"expect": {
"model": "other/coder",
"from": "directory"
}
},
{
"about": "The person chose a model: theirs, whatever the directory remembers.",
"kind": "client",
"named": "open/flash",
"directory": "other/coder",
"has": [
"open/flash",
"other/coder"
],
"default": "open/flash",
"expect": {
"model": "open/flash",
"from": "named"
}
},
{
"about": "The person no longer has the remembered model: as before.",
"kind": "client",
"directory": "other/coder",
"has": [
"open/flash"
],
"default": "open/flash",
"expect": {
"model": "open/flash",
"from": "default"
}
},
{
"about": "An older device, or one that remembers nothing there: as before.",
"kind": "client",
"has": [
"open/flash",
"other/coder"
],
"default": "open/flash",
"expect": {
"model": "open/flash",
"from": "default"
}
},
{
"about": "An Agentic schedule that names no model follows the directory.",
"kind": "client",
"directory": "open/large",
"has": [
"open/flash",
"open/large"
],
"default": "open/flash",
"expect": {
"model": "open/large",
"from": "directory"
}
},
{
"about": "A schedule that names one runs on it.",
"kind": "client",
"named": "open/flash",
"directory": "open/large",
"has": [
"open/flash",
"open/large"
],
"default": "open/large",
"expect": {
"model": "open/flash",
"from": "named"
}
},
{
"about": "The directory's model is compared exactly: another spelling is not the model.",
"kind": "client",
"directory": "Other/Coder",
"has": [
"open/flash",
"other/coder"
],
"default": "open/flash",
"expect": {
"model": "open/flash",
"from": "default"
}
},
{
"about": "A schedule's run: an interactive-only model remembered for the directory does not count.",
"kind": "client",
"scheduled": true,
"directory": "plan/coder",
"has": [
"plan/coder",
"open/flash"
],
"interactive_only": [
"plan/coder"
],
"default": "open/flash",
"expect": {
"model": "open/flash",
"from": "default"
}
},
{
"about": "…while a person's new chat there starts on it: that is interactive.",
"kind": "client",
"directory": "plan/coder",
"has": [
"plan/coder",
"open/flash"
],
"interactive_only": [
"plan/coder"
],
"default": "open/flash",
"expect": {
"model": "plan/coder",
"from": "directory"
}
},
{
"about": "The device, for a scheduled session opened with no model: the same skip (`served` here is what the login serves that scheduled work may use).",
"kind": "start",
"directory": "plan/coder",
"global": "open/flash",
"served": [
"open/flash"
],
"default": "open/flash",
"expect": {
"model": "open/flash",
"from": "global"
}
}
]
}