Files
LLeMbas-CLI/harness/conformance/fill.json
T
HomerandClaude Opus 5.5 539896494f Harness spec 1.2.0: the library's tools fit both projects; the CLI implements it
The CLI's facts in memory, notes_search, note_manage, skills_list,
skill_view and skill_manage are `variables` now, filled with the CLI's own
values (src/tool/spec-vars.ts): every description and parameter list the CLI
sends is word for word what 1.1.0 said, except note and document ids, which
are strings on both sides (a number is still taken). Descriptions are
filled by the prompt texts' rules, parameter descriptions too. `narrow`
says what a project offers of a shared tool's parameters. Memory's changes
are one pure function (applyOps). Conformance: fill, narrow, memory.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 11:45:14 +00:00

89 lines
2.1 KiB
JSON

{
"about": "A tool description's or a prompt text's `{{variables}}` filled in (`vars`): a value replaces its variable where it stands; a line that is nothing but a bullet and a variable (`- {{name}}`) disappears when the value is empty or blank; a variable with no value at all is an error naming every one missing (`missing`, sorted). Applied to a tool's description and to every `description` inside its parameters. LLeMbas: services/harness_spec.py fill; CLI: prompt/fill.ts fillPrompt.",
"cases": [
{
"text": "Read a page{{files}}",
"vars": {
"files": "."
},
"expect": {
"text": "Read a page."
}
},
{
"text": "Kept across sessions{{kept}}.",
"vars": {
"kept": ""
},
"expect": {
"text": "Kept across sessions."
}
},
{
"text": "- create: one.\n- {{files}}\n- delete: two.",
"vars": {
"files": ""
},
"expect": {
"text": "- create: one.\n- delete: two."
}
},
{
"text": "- create: one.\n- {{files}}\n- delete: two.",
"vars": {
"files": " "
},
"expect": {
"text": "- create: one.\n- delete: two."
}
},
{
"text": "- create: one.\n * {{files}}\n- delete: two.",
"vars": {
"files": "write_file."
},
"expect": {
"text": "- create: one.\n * write_file.\n- delete: two."
}
},
{
"text": "A {{a}} and a {{b}} and {{a}} again",
"vars": {
"a": "x",
"b": "y"
},
"expect": {
"text": "A x and a y and x again"
}
},
{
"text": "Only {{a}} and {{c}} and {{b}}",
"vars": {
"a": "x"
},
"expect": {
"missing": [
"b",
"c"
]
}
},
{
"text": "No variables at all.",
"vars": {},
"expect": {
"text": "No variables at all."
}
},
{
"text": "- not only {{a}} on this line",
"vars": {
"a": ""
},
"expect": {
"text": "- not only on this line"
}
}
]
}