lispm-llm / lispm_data.py
Ryan.K
Publish LispM Emacs agent harness classifier
6ae9156 unverified
Raw History Blame Contribute Delete
22.3 kB
"""Synthetic LispM application intents with separately authored calibration.
These examples name public application commands, never arbitrary function or
tool dispatch. NAME stands for one literal string handled by the typed boundary.
Training wrappers and neutral word substitutions live in command_data.py; no
independent evaluation file is read here. Each family has concise and descriptive
phrases so application names are learned together with operation and direction.
"""
# Authored positive training bases, indexed by the exact closed action label.
TRAINING_FAMILIES = {
'lispm-finder-home': (
'open finder', 'show finder', 'launch finder', 'open the finder app',
'show the finder home folder', 'go home in finder', 'finder home',
'open my home folder in finder', 'browse my home directory',
'show my home directory in finder', 'start the file manager',
'bring up the finder application', 'open the file manager at home',
'show the home folder', 'take finder to my home directory',
),
'lispm-finder-open-directory': (
'open directory NAME', 'show folder NAME', 'browse folder NAME',
'open folder NAME in finder', 'show directory NAME in finder',
'navigate finder to NAME', 'browse directory NAME with finder',
'display the contents of folder NAME', 'list the files in directory NAME',
'go to directory NAME in finder', 'visit folder NAME in finder',
'use finder to open NAME', 'show me the folder NAME',
'open the directory named NAME', 'browse the directory at NAME',
),
'lispm-finder-back': (
'finder back', 'go back in finder', 'go backward in finder history',
'return to the previous folder in finder', 'revisit the last finder location',
'step back in the file manager', 'navigate back one folder in finder',
'show the previously visited finder directory', 'take finder back',
'move backward through finder history', 'return to the last directory in finder',
'backtrack in the file manager',
),
'lispm-finder-forward': (
'finder forward', 'go forward in finder', 'go forward in finder history',
'revisit the next folder in finder history', 'step forward in the file manager',
'navigate forward one location in finder', 'take finder forward',
'move forward through finder history', 'show the next directory in finder history',
'advance through the file manager history', 'restore the forward finder location',
'go to the next visited finder folder',
),
'lispm-finder-up': (
'finder up', 'go up in finder', 'open the parent folder in finder',
'go up one directory in finder', 'show the enclosing folder',
'go to the parent directory', 'navigate up a folder', 'move finder up one level',
'open the directory containing this folder', 'show the parent of this directory',
'take finder to its parent folder', 'ascend one level in the file manager',
),
'lispm-finder-refresh': (
'refresh finder', 'reload finder', 'refresh the folder listing',
'reload the current directory listing', 'update the files shown in finder',
'rescan this finder folder', 'refresh the file manager',
'show the latest folder contents', 'reread the current finder directory',
'update the finder view', 'reload the files in this folder',
'refresh the current finder window',
),
'lispm-finder-new-folder': (
'create directory NAME', 'create folder NAME', 'make folder NAME',
'make a new folder named NAME in finder', 'create a directory named NAME here',
'add a folder called NAME to this finder directory',
'create a child directory NAME', 'make a subfolder NAME',
'add folder NAME in finder', 'create the folder NAME in the current directory',
'make a new directory called NAME', 'create a subdirectory named NAME',
),
'lispm-browser': (
'open browser', 'open the browser', 'show the browser', 'launch the web browser',
'open the lispm browser', 'bring up the web browser', 'start the browser app',
'show the browser application', 'open the built in browser',
'bring the browser to the front', 'show my web browser', 'launch browser',
),
'lispm-browser-open-url': (
'open url NAME', 'browse url NAME', 'visit website NAME', 'open website NAME',
'open NAME in the browser', 'navigate the browser to NAME',
'load web address NAME', 'visit the web page at NAME',
'go to url NAME in the browser', 'browse to the website NAME',
'open the web address NAME', 'show the web page NAME',
'load NAME in the current browser tab', 'navigate to website NAME',
),
'lispm-browser-back': (
'browser back', 'go back in the browser', 'return to the previous web page',
'go backward in browser history', 'take the browser back one page',
'show the last visited web page', 'navigate back in this browser tab',
'step back through browsing history', 'revisit the previous browser page',
'return to the last page in the browser', 'move backward through web history',
'go back one page in this tab',
),
'lispm-browser-forward': (
'browser forward', 'go forward in the browser', 'go forward in browser history',
'take the browser forward one page', 'show the next page in browsing history',
'navigate forward in this browser tab', 'step forward through web history',
'revisit the next browser page', 'move forward through the browser history',
'go forward one page in this tab', 'advance the browser history',
'navigate to the next recorded page in the browser',
),
'lispm-browser-reload': (
'reload browser', 'refresh browser', 'reload the web page', 'refresh this website',
'reload the current browser tab', 'refresh the page in the browser',
'load this browser page again', 'update the current web page',
'refresh the active browser tab', 'reload this website in the browser',
'fetch this page again in the browser', 'refresh the displayed web page',
),
'lispm-browser-new-tab': (
'new browser tab', 'open a new browser tab', 'create a browser tab',
'add a new tab in the browser', 'open another web tab',
'create an empty browser tab', 'start a fresh browser tab',
'open a blank tab in the browser', 'add a blank web browser tab',
'make another tab for browsing', 'create a fresh tab in the web browser',
'open a new blank browser tab',
),
'lispm-browser-next-tab': (
'next browser tab', 'switch to the next browser tab', 'select the next web tab',
'cycle forward through browser tabs', 'move to the following browser tab',
'focus the next tab in the browser', 'activate the next browser tab',
'advance one browser tab', 'show the next web browser tab',
'go to the next tab in the browser', 'choose the following browser tab',
'change to the next browser tab',
),
'lispm-browser-previous-tab': (
'previous browser tab', 'switch to the previous browser tab',
'select the preceding web tab', 'cycle backward through browser tabs',
'move to the preceding browser tab', 'focus the previous tab in the browser',
'activate the previous browser tab', 'go back one browser tab',
'show the previous web browser tab', 'choose the preceding browser tab',
'change to the previous browser tab', 'go to the previous tab in the browser',
),
'lispm-browser-close-shown-tab': (
'close browser tab', 'close this browser tab', 'close the current browser tab',
'remove the active web tab', 'close the selected browser tab',
'dismiss this tab in the browser', 'close the displayed web browser tab',
'remove the current browser tab', 'close the tab shown in the browser',
'shut the active browser tab', 'close the web page tab',
'dismiss the current browser tab',
),
'lispm-stickies': (
'open stickies', 'show stickies', 'launch stickies', 'open the stickies app',
'show my sticky notes', 'bring up stickies', 'open the sticky notes application',
'show the stickies application', 'launch the sticky note app',
'bring my sticky notes into view', 'show the sticky notes app',
'open the lispm stickies application',
),
'lispm-stickies-new-note': (
'create a sticky note with text NAME', 'new sticky note NAME',
'make a sticky note saying NAME', 'write NAME on a new sticky note',
'create a note containing NAME in stickies', 'add a sticky note with content NAME',
'put NAME in a new sticky note', 'make a new stickies note with text NAME',
'add a note saying NAME to stickies', 'create a sticky containing NAME',
'write a new sticky note that says NAME', 'add a sticky with the text NAME',
),
'lispm-stickies-next-note': (
'next sticky note', 'show the next sticky note', 'select the next note in stickies',
'cycle forward through sticky notes', 'move to the following sticky note',
'focus the next stickies note', 'activate the next sticky note',
'go forward one note in stickies', 'switch to the next sticky note',
'bring the next note in stickies to the front', 'choose the following sticky note',
'advance to the next stickies note',
),
'lispm-stickies-previous-note': (
'previous sticky note', 'show the previous sticky note',
'select the previous note in stickies', 'cycle backward through sticky notes',
'move to the preceding sticky note', 'focus the previous stickies note',
'activate the previous sticky note', 'go back one note in stickies',
'switch to the previous sticky note', 'bring the preceding sticky note to the front',
'choose the preceding note in stickies', 'return to the previous stickies note',
),
'lispm-rotom': (
'open rotom', 'show rotom', 'launch the rotom dashboard', 'open the rotom app',
'show the rotom dashboard', 'bring up rotom', 'display rotom status',
'show the rotom control panel', 'open the rotom interface',
'view the rotom dashboard', 'show rotom providers', 'open the rotom overview',
),
'lispm-comfyui': (
'open comfyui', 'show comfyui', 'launch the comfyui app',
'open the comfyui workflow editor', 'show the comfyui canvas', 'bring up comfyui',
'open the comfyui interface', 'display the comfyui editor',
'show my comfyui workflow', 'open the comfyui application',
'view the comfyui workflow canvas', 'switch to the comfyui editor',
),
'lispm-office': (
'open office', 'show office', 'open the lispm office', 'launch the office app',
'show the office view', 'bring up the office', 'open the office overview',
'show the lispm office scene', 'display the office workspace',
'view the office application', 'open the office interface', 'show my office',
),
'lispm-mail': (
'open mail', 'show mail', 'launch mail', 'open the mail app',
'show my email', 'open the mail client', 'bring up the mail application',
'show the lispm mail interface', 'open the email client',
'display the mail application', 'show my mailbox', 'open my inbox in mail',
),
}
# Independently authored bases used only for model/threshold selection.
CALIBRATION_FAMILIES = {
'lispm-finder-home': (
'bring finder home', 'display my home folder in the file manager',
'start finder at my home directory', 'show the finder app at home',
'let me see my home directory', 'take me to the finder home view',
),
'lispm-finder-open-directory': (
'read directory NAME into a file listing', 'display folder NAME using finder',
'take the file manager to NAME', 'show the contents of directory NAME in finder',
'bring up the directory NAME in finder', 'inspect folder NAME with the file manager',
),
'lispm-finder-back': (
'retreat one entry in finder history', 'restore the previous finder location',
'return finder to where it was', 'use the finder back button',
'navigate to the prior directory in finder history', 'show the last folder visited in finder',
),
'lispm-finder-forward': (
'advance one entry in finder history', 'restore the next finder location',
'use the finder forward button', 'move ahead in the file manager history',
'go to the following directory in finder history', 'show the forward folder in finder',
),
'lispm-finder-up': (
'ascend to the containing directory', 'show the folder one level above',
'navigate finder to its parent directory', 'use the finder up button',
'leave this directory for its enclosing folder', 'take the file manager up a level',
),
'lispm-finder-refresh': (
'reread the directory listing', 'update the visible finder entries',
'rescan the current folder contents', 'refresh what the file manager displays',
'load the finder listing again', 'synchronize the current finder view with the folder',
),
'lispm-finder-new-folder': (
'add a subdirectory called NAME here', 'make a child folder with name NAME',
'create a new finder folder called NAME', 'place a new empty folder named NAME here',
'make directory NAME inside this folder', 'add a directory whose name is NAME',
),
'lispm-browser': (
'bring up the browser interface', 'show the built in web browser',
'launch the lispm web browser application', 'let me see the browser',
'display the web browsing app', 'bring the web browser into view',
),
'lispm-browser-open-url': (
'take this browser tab to NAME', 'navigate to the web address NAME',
'display the website located at NAME', 'visit NAME using the web browser',
'load the url NAME into the browser', 'bring up the page at NAME',
),
'lispm-browser-back': (
'return the browser to the prior page', 'use the browser back button',
'retreat one entry in browsing history', 'restore the preceding website in this tab',
'backtrack one page in the web browser', 'show the earlier page from this tab history',
),
'lispm-browser-forward': (
'use the browser forward button', 'advance one entry in browsing history',
'restore the following website in this tab', 'go ahead one page in web history',
'show the later page from this tab history', 'navigate this web tab forward in history',
),
'lispm-browser-reload': (
'request the current website again', 'refresh the contents of this web tab',
'use the browser reload button', 'reread the displayed page in the web browser',
'load the active web page once more', 'update what the current browser tab displays',
),
'lispm-browser-new-tab': (
'add an empty tab to the web browser', 'start browsing in a fresh tab',
'create another empty web tab', 'make a blank browsing tab',
'open an additional browser tab', 'give me a fresh blank tab in the browser',
),
'lispm-browser-next-tab': (
'advance the selected browser tab', 'give focus to the following web tab',
'cycle to the following tab in the browser', 'display the succeeding browser tab',
'choose the next tab among the browser tabs', 'step to the next browser tab',
),
'lispm-browser-previous-tab': (
'move the browser tab selection backward', 'give focus to the preceding web tab',
'cycle to the preceding tab in the browser', 'display the earlier browser tab',
'choose the previous tab among the browser tabs', 'step to the prior browser tab',
),
'lispm-browser-close-shown-tab': (
'dismiss the displayed web tab', 'remove the browser tab currently in view',
'shut this web browser tab', 'close only the shown browser tab',
'close the active tab of the web browser', 'remove this browsing tab',
),
'lispm-stickies': (
'display the sticky notes application', 'bring stickies into view',
'launch the lispm sticky notes app', 'open my collection of sticky notes',
'let me see the stickies app', 'show the stickies note board',
),
'lispm-stickies-new-note': (
'add a fresh sticky containing the words NAME', 'create a stickies note whose body is NAME',
'make a new sticky with content NAME', 'put the text NAME onto a fresh sticky',
'write the message NAME in a new stickies note', 'create a new note in stickies saying NAME',
),
'lispm-stickies-next-note': (
'display the following note in stickies', 'advance the sticky note selection',
'give focus to the succeeding sticky note', 'cycle to the following stickies note',
'bring the next sticky to the front', 'move forward through my stickies',
),
'lispm-stickies-previous-note': (
'display the preceding note in stickies', 'move the sticky note selection backward',
'give focus to the prior sticky note', 'cycle to the preceding stickies note',
'bring the previous sticky to the front', 'move backward through my stickies',
),
'lispm-rotom': (
'bring the rotom dashboard into view', 'display the rotom application',
'let me inspect rotom status', 'show the rotom provider dashboard',
'take me to the rotom overview', 'launch the rotom user interface',
),
'lispm-comfyui': (
'bring the comfyui canvas into view', 'launch the comfyui workflow interface',
'display the comfyui application', 'let me see the comfyui graph editor',
'take me to the comfyui workspace', 'bring up the comfyui workflow canvas',
),
'lispm-office': (
'bring the office view into focus', 'display the lispm office application',
'let me see the office scene', 'launch the lispm office interface',
'take me to the office view', 'bring up my office workspace',
),
'lispm-mail': (
'bring the mail client into view', 'display the lispm email application',
'let me see my mail client', 'launch the email interface',
'take me to the mail application', 'show the email app',
),
}
# Migrate exact old negative bases; the remaining negatives stay negative.
TRAINING_REJECT_MIGRATIONS = {
'create directory NAME': 'lispm-finder-new-folder',
'open directory NAME': 'lispm-finder-open-directory',
'show folder NAME': 'lispm-finder-open-directory',
}
CALIBRATION_REJECT_MIGRATIONS = {
'read directory NAME into a file listing': 'lispm-finder-open-directory',
}
# Unsupported neighbors teach the difference between opening an app and acting
# inside it, and between explicitly named application contexts and vague ones.
TRAINING_REJECTS = (
'go back', 'go forward', 'refresh it', 'close it', 'open it', 'next tab',
'previous tab', 'new note', 'delete the selected file in finder',
'rename the selected finder item to NAME', 'move this file to the trash',
'empty the trash', 'delete directory NAME', 'copy folder NAME',
'move the selected file to NAME', 'open every finder folder',
'create a folder in the parent directory', 'create three folders',
'switch finder to icon view', 'sort finder by modification time',
'open a terminal in this folder', 'run a shell command NAME',
'execute lisp NAME', 'call function NAME', 'invoke the tool NAME',
'open url', 'open website', 'open this url in a new browser tab NAME',
'open a private browser tab', 'close every browser tab',
'close the other browser tabs', 'restore the closed browser tab',
'move this browser tab to another window', 'clear browser history',
'add this website to bookmarks', 'download this web page',
'execute javascript NAME in the browser', 'search the web for NAME',
'send an email to NAME', 'reply to this email', 'delete the current email',
'compose an email', 'mark this email as read', 'refresh all mail accounts',
'submit the comfyui workflow', 'generate an image in comfyui',
'queue this comfyui workflow', 'install a comfyui node',
'start the rotom daemon', 'stop the rotom server', 'restart rotom',
'change the rotom provider', 'sign in to rotom', 'show the rotom api key',
'delete all sticky notes', 'close the current sticky note',
'change this sticky note to blue', 'replace the sticky note text with NAME',
'export the sticky note to NAME', 'create a sticky note titled NAME',
'create a blank sticky note', 'switch to sticky note NAME',
'send a message to the office agent', 'kill the office session',
'open the package store', 'install package NAME', 'update all applications',
'open mycin', 'open shrdlu', 'open the agent settings',
)
CALIBRATION_REJECTS = (
'return to where i was', 'advance to the next thing', 'update this view',
'remove the selected directory', 'give the finder file a new name NAME',
'duplicate this finder folder', 'put the selected file in the bin',
'arrange finder items by size', 'make several new directories',
'open a shell at the current finder location', 'evaluate the expression NAME',
'run the tool specified by NAME', 'open the site NAME in another tab',
'discard every open web tab', 'reopen the most recently closed web tab',
'erase the browsing history', 'bookmark the active website',
'save this website to a local file', 'submit the current mail message',
'answer the selected mail', 'remove the selected mail message',
'start composing a new email', 'run the current comfyui graph',
'add this graph to the comfyui queue', 'restart the rotom background process',
'authenticate a new rotom account', 'remove the current stickies note',
'recolor the active sticky', 'make the current sticky say NAME',
'make a sticky whose title is NAME', 'open the store application',
'upgrade every installed lispm application',
)