Desktop prompt and progressive task skills
Date: 2026-11-04 America/Sao_Paulo. Baseline: 7151d64. Charter. Current contract.
Result
The compact desktop prompt and progressive tool catalog are implemented. Granite completed the initial window query instead of timing out, and kept the confirmed minimize/focus results. The first version still proposed a bad application launch and failed to load a skill for a natural color request. Explicit loading guidance fixed the color request in a fresh fixture. A worked launch example plus mandatory catalog discovery for human-readable names produced the correct launch proposal through the final browser check. These are small observed samples, not model certification or a guarantee of general instruction following.
The production model selection and weights remain unchanged. Granite was registered only temporarily in this worktree, then removed from the product sources. No claim about the new prompt's behavior on Liquid or other models: they were not rerun.
Method
Real OpenCode 2.1.4, llama.cpp b11960 and Granite 4.0 H Micro Q4_K_M. Same pinned weights and CPU settings as the model comparison: four threads, no GPU, context 32768, one slot, temperature 0.1, top_k 50 and repetition_penalty 1.05. Each phase starts with a fresh private profile/HOME/XDG, nonexistent system/session buses, testEnvironment and its own stateful synthetic Smithay socket. No inherited compositor/display authority. Shell 1, Calculadora QA 2, Editor de texto QA 3. The fixture updates minimize/focus and acknowledges layout; it does not render real windows or prove grid geometry. Synthetic catalog entries point to /bin/true, but no launch was approved or executed. Host-wide read-only Snap/Flatpak catalog entries also appear, as in the earlier comparison.
The old fixture had written literal backslash-n into synthetic desktop files. Both arms here correct that fixture issue and expose the real synthetic desktop IDs. Thus compare the two arms here with each other, not as an identical rerun of the older catalog environment.
Five sequential Portuguese requests per main arm, with matching fresh fixture state. Programmatic authenticated /api/send; idle/errors, approval, ten tool calls or 230 seconds end observation. Every approval is cancelled through the protected API. A context observer records only tool names, system/schema character counts and message count, not headers or credentials. Assistant results and errors are read from the private OpenCode database. Later refinement phases are explicitly separate, not extra trials pooled into a benchmark. Other development/test activity on this shared PC was not controlled, and sampling has no fixed seed.
First comparison
| Request | Full prompt/catalog | First compact version |
|---|---|---|
| Query open windows | 180.92 s, aborted / Step interrupted | 42.10 s, desktop_state and Portuguese window list |
| Minimize Calculadora QA | 58.13 s, confirmed minimize(2) | 8.03 s, confirmed minimize(2) |
| Focus Editor de texto QA | 12.05 s, confirmed focus(3) | 9.04 s, confirmed focus(3) |
| Arrange windows in Grid | 13.06 s, tile command acknowledged | 8.03 s, grid tool / tile command acknowledged |
| Open Calculadora QA | 6.10 s, invalid approval proposal | 4.03 s, same invalid proposal |
The bad proposal in both arms was {application:"qa-2",placement:"fit"}:
a window appId instead of a catalog ID, and Canvas placement on Grid. No launch
was executed. Minimize was not undone. The compact window-list answer included
the actual shell/application titles and focus labels. Layout evidence is dispatch
plus fixture acknowledgement, not visual proof of side-by-side geometry.
Initial model context:
| Payload | Full catalog | First compact version |
|---|---|---|
| Offered tools | 36 | 8 |
| System JSON characters | 15660 | 3821 |
| Tool-schema JSON characters | 30782 | 3935 |
Combined system/schema character volume fell about 83%. These are serialized character counts at the context hook, not token counts, memory or total history. The final prompt adds explicit loading and a generic worked launch example, so these exact character counts describe the first comparison, not the final text. The final basic catalog still has eight tools.
A following natural color request in this first version called list_applications and falsely said there were no color tools (25.22 s). This turn followed a refused launch, so interrupted-turn history is a possible influence. The next desktop query worked (17.06 s). This failure motivated explicit skill-loading guidance.
Refinements and final browser check
With explicit guidance to load appearance before answering system-color requests, a fresh phase received “Mostre as cores disponíveis para personalizar o sistema.” It called load_skill(appearance), then read_profile_color, and returned the actual presets in Portuguese (118.49 s). The next model step exposed 19 tools instead of eight and added only that skill's body. The next desktop turn returned to eight tools and no appearance body, called desktop_state and answered (22.06 s). Loading specialized schemas still costs CPU time. This does not prove fast customization. Its later open request still proposed qa-2/fit (4.03 s); improving only the tool description did not fix it.
The final prompt therefore requires discovery first for a human-readable app name, even when a matching window is already open, preserves direct launch for an explicit user-supplied executable and includes a generic Editor example using a catalog ID and Grid placement. The example does not name the QA application.
A separate fresh Granite fixture ran the final sources through the protected chat
in @Browser, 1280x720. Entered “Abra a Calculadora QA.” and clicked Send. The model
called list_applications and requested {application:"desktop:calculator.desktop", placement:"tile"}. The protected approval dialog visibly showed both exact
arguments. Clicked “Recusar”; the dialog closed and the composer returned to idle.
No executable ran and no visible application opening is claimed. Screenshot:
granite-ui/application-approval.png. No other browser/desktop was controlled.
The final browser check is one fresh launch proposal, not a repeat of the entire matrix after the final wording refinement. Browser proof covers the composer, correct proposal and protected refusal. Electron, real Smithay effects, Canvas, multiple monitors, held-window refusals, every other skill, long conversations and other models were not explored here.
Gates and local evidence
Verification: format, syntax, ESLint and UI build checks pass. The full Node run
completed 1241/1242 tests; the unrelated coordination-lock proposal test failed
because its synthetic marker job was interrupted. Its isolated file rerun passed
25/25. The final full run after rebase passed 1242/1242 with zero failures.
Format, syntax, ESLint and UI build checks also passed again after rebase.
Python completed 162/164,
with the same existing panel-fixture expectation failures in
test_interface_links.InterfaceLinks.test_home_links_and_configuration_preserve_profile_and_custom_config
and test_nested_qa.PanelSeedTests.test_the_real_core_gives_every_protected_panel,
also recorded before this task. The focused project-session file passed 13/13.
No supervisor or panel implementation was changed to suppress those failures.
Focused task-skill tests verify session/turn isolation, combined skills, invalid names, unchanged MCP schemas, auxiliary agents and disposal. Existing window-contract tests inspect the windows skill. Source-digest tests include changes to SKILL.md, so edits invalidate the installation's prepared-source fingerprint.
Artifacts stay outside Git at
~/.codex/artifacts/qa/agent-native-os/2026-11-04-prompt-skills/:
summary.json, original-prompt.txt, the local runners, per-phase fixture scripts,
messages.json, contexts.jsonl, command logs, final-source snapshot and the sanitized
browser screenshot. No upload, video, paid provider, live restart or model change.
All task-owned cores, fixtures and inference processes were stopped. The temporary
Granite runtime package was moved to the artifact directory; cached weights and
the installed Liquid package are preserved.