Skip to content

Improve readability of local Lisp results - #109

Merged
luciusmagn merged 8 commits into
lambda-symbolics:masterfrom
rajp152k:improve/lisp-result-readability
Oct 17, 2026
Merged

luciusmagn merged 8 commits into
lambda-symbolics:masterfrom
rajp152k:improve/lisp-result-readability

Conversation

@rajp152k

Copy link
Copy Markdown
Contributor

Summary

Improve synchronous and asynchronous local Lisp result display with width-aware pretty printing, aligned property lists, and Lisp syntax highlighting.

Print native task, job, and mission results as S-expressions. Preserve their parentheses, tagged roots, nesting, fields, field order, and value types. Obtain native values from explicit result contracts rather than parsing strings.

Keep ordinary, copied, composed, modified, and ambiguous strings in Lisp string notation. Preserve captured output, separate multiple values, and retain the same display text for conversation replay. Bound large and circular values and handle projection or printer failures without changing evaluation success.

Closes #108.

Validation

  • Focused checks: 36 cases, 496 checks, all passed.
  • Full ./script/check: 941 cases, 11,791 checks; only test-release-server failed.
  • The same release-server failure was reproduced on the unchanged implementation baseline 2e498adf: Permission denied while renaming a temporary release directory to public/releases/v0.32.2/.
  • Reviewed actual output at 60, 80, and 120 columns. User approved the rendered output.
  • git diff --check passed.

Before and after

Actual output from (task.agents :limit 1). The after sample uses an 80-column terminal. Long atomic strings are not split.

Before

⇒ "(:TASK-AGENTS :OFFSET 0 :COUNT 1 :TOTAL 7 :NEXT-OFFSET 1 :ENTRIES
 ((:KIND :AGENT :NAME \"scout\" :DESCRIPTION
   \"Fast read-only codebase research and compressed handoff context.\" :SOURCE
   :BUNDLED :PATHNAME NIL :MODELS (\"@smol\") :REASONING-EFFORT :MEDIUM :TOOLS
   (\"resource.read\" \"search.*\" \"web_search\") :SPAWNS NIL :OUTPUT-CONTRACT-P NIL
   :BLOCKING-P NIL)))"

After

⇒ (:TASK-AGENTS :OFFSET 0 :COUNT 1 :TOTAL 7 :NEXT-OFFSET 1 :ENTRIES
   ((:KIND              :AGENT
     :NAME              "scout"
     :DESCRIPTION       "Fast read-only codebase research and compressed handoff context."
     :SOURCE            :BUNDLED
     :PATHNAME          NIL
     :MODELS            ("@smol")
     :REASONING-EFFORT  :MEDIUM
     :TOOLS             ("resource.read" "search.*" "web_search")
     :SPAWNS            NIL
     :OUTPUT-CONTRACT-P NIL
     :BLOCKING-P        NIL)))

@luciusmagn
luciusmagn force-pushed the improve/lisp-result-readability branch from b527930 to 1ffac77 Compare October 17, 2026 11:46
@luciusmagn
luciusmagn merged commit 1ffac77 into lambda-symbolics:master Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve the readability of Lisp results in the terminal

3 participants